Strengthen various insn emission functions
[gcc.git] / gcc / ChangeLog
1 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2
3 * rtl.h (push_to_sequence): Strengthen param from rtx to
4 rtx_insn *.
5 (push_to_sequence2): Likewise for both params.
6 (delete_insns_since): Likewise for param.
7 (reorder_insns_nobb): Likewise for all three params.
8 (set_new_first_and_last_insn): Likewise for both params.
9
10 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
11 rtx_insn *. Remove now-redundant cast.
12 (set_last_insn): Likewise.
13
14 * builtins.c (expand_builtin_return): Strengthen local
15 "call_fusage" from rtx to rtx_insn *.
16 * cfgrtl.c (create_basic_block_structure): Likewise for local
17 "after".
18 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
19 "first", "last" and local "insn".
20 (delete_insns_since): Likewise for param "from".
21 (reorder_insns_nobb): Likewise for params "from", "to", "after"
22 and local "x".
23 (push_to_sequence): Likewise for param "first" and local "last".
24 (push_to_sequence2): Likewise for params "first" and "last".
25 * lra.c (emit_add3_insn): Likewise for local "last".
26 (lra_emit_add): Likewise.
27 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
28 "last_insn".
29 (process_address_1): Likewise for locals "insn", last".
30 * modulo-sched.c (ps_first_note): Likewise for return type.
31 * optabs.c (expand_binop_directly): Likewise for param "last".
32
33 2014-08-26 David Malcolm <dmalcolm@redhat.com>
34
35 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
36 to rtx_insn*.
37 * emit-rtl.c (get_last_insn_anywhere): Likewise.
38
39 2014-08-26 David Malcolm <dmalcolm@redhat.com>
40
41 * function.h (struct sequence_stack): Strengthen fields "first"
42 and "last" from rtx to rtx_insn *.
43 (struct emit_status): Likewise for fields "x_first_insn" and
44 "x_last_insn".
45
46 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
47 (set_first_insn): Add checked cast.
48 (get_last_insn): Remove now-redundant checked cast.
49 (set_last_insn): Add checked cast.
50
51 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
52 "saved_first" and "saved_last" from rtx to rtx_insn *.
53
54 2014-08-26 David Malcolm <dmalcolm@redhat.com>
55
56 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
57 (unlink_insn_chain): Strengthen both params from rtx to
58 rtx_insn *.
59
60 * cfgrtl.c (cfg_layout_function_header): Likewise for this
61 variable.
62 (unlink_insn_chain): Likewise for params "first" and "last".
63 Remove now-redundant checked cast.
64 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
65 (fixup_reorder_chain): Strengthen local "insn" from rtx to
66 rtx_insn *.
67 * emit-rtl.c (link_insn_into_chain): Likewise for all three
68 params.
69 (add_insn): Likewise for param "insn" and local "prev".
70 (add_insn_after_nobb): Likewise for both params and local "next".
71 (add_insn_before_nobb): Likewise for both params and local "prev".
72 (add_insn_after): Rename param "after" to "uncast_after",
73 introducing local "after" with another checked cast.
74 (add_insn_before): Rename params "insn" and "before", giving them
75 "uncast_" prefixes, adding the old names back using checked casts.
76 (emit_note_after): Likewise for param "after".
77 (emit_note_before): Likewise for param "before".
78 (emit_label): Add a checked cast.
79
80 2014-08-26 David Malcolm <dmalcolm@redhat.com>
81
82 * cselib.h (cselib_record_sets_hook): Strengthen initial param
83 "insn" from rtx to rtx_insn *.
84
85 * cselib.c (cselib_record_sets_hook): Likewise.
86
87 * var-tracking.c (add_with_sets): Likewise, renaming back from
88 "uncast_insn" to "insn" and eliminating the checked cast from rtx
89 to rtx_insn *.
90
91 2014-08-26 David Malcolm <dmalcolm@redhat.com>
92
93 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
94 and "header_" from rtx to rtx_insn *.
95 (struct basic_block_d): Likewise for field "head_" within "x"
96 field of union basic_block_il_dependent.
97 (BB_HEAD): Drop function...
98 (SET_BB_HEAD): ...and this function in favor of...
99 (BB_HEAD): ...reinstate macro.
100 (BB_END): Drop function...
101 (SET_BB_END): ...and this function in favor of...
102 (BB_END): ...reinstate macro.
103 (BB_HEADER): Drop function...
104 (SET_BB_HEADER): ...and this function in favor of...
105 (BB_HEADER): ...reinstate macro.
106
107 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
108 (fix_crossing_unconditional_branches): Likewise.
109 * caller-save.c (save_call_clobbered_regs): Likewise.
110 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
111 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
112 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
113 (merge_blocks_move_successor_nojumps): Likewise.
114 (outgoing_edges_match): Update use of for_each_rtx to
115 for_each_rtx_in_insn.
116 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
117 (expand_gimple_cond): Likewise.
118 (expand_gimple_tailcall): Likewise.
119 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
120 SET_BB_END.
121 (construct_exit_block): Drop use of SET_BB_END.
122 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
123 rtx_insn *.
124 (delete_insn): Rename param "insn" to "uncast_insn", introducing
125 a new local "insn" with a checked cast to rtx_insn *. Drop use of
126 SET_BB_HEAD and SET_BB_END.
127 (create_basic_block_structure): Drop use of SET_BB_HEAD and
128 SET_BB_END.
129 (rtl_delete_block): Drop use of SET_BB_HEAD.
130 (rtl_split_block): Drop use of SET_BB_END.
131 (emit_nop_for_unique_locus_between): Likewise.
132 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
133 (block_label): Drop use of SET_BB_HEAD.
134 (fixup_abnormal_edges): Drop use of SET_BB_END.
135 (record_effective_endpoints): Drop use of SET_BB_HEADER.
136 (relink_block_chain): Likewise.
137 (fixup_reorder_chain): Drop use of SET_BB_END.
138 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
139 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
140 rtx_insn **. Drop use of SET_BB_HEADER.
141 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
142 SET_BB_HEAD.
143 (BB_HEAD): Delete this function.
144 (SET_BB_HEAD): Likewise.
145 (BB_END): Likewise.
146 (SET_BB_END): Likewise.
147 (BB_HEADER): Likewise.
148 (SET_BB_HEADER): Likewise.
149 * emit-rtl.c (add_insn_after): Rename param "insn" to
150 "uncast_insn", adding a new local "insn" and a checked cast to
151 rtx_insn *. Drop use of SET_BB_END.
152 (remove_insn): Strengthen locals "next" and "prev" from rtx to
153 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
154 (reorder_insns): Drop use of SET_BB_END.
155 (emit_insn_after_1): Strengthen param "first" and locals "last",
156 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
157 (emit_pattern_after_noloc): Add checked cast.
158 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
159 (restore_other_notes): Likewise.
160 (move_insn): Likewise.
161 (sched_extend_bb): Likewise.
162 (fix_jump_move): Likewise.
163 * ifcvt.c (noce_process_if_block): Likewise.
164 (dead_or_predicable): Likewise.
165 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
166 * reg-stack.c (change_stack): Drop use of SET_BB_END.
167 * sel-sched-ir.c (sel_move_insn): Likewise.
168 * sel-sched.c (move_nop_to_previous_block): Likewise.
169
170 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
171 SET_BB_END.
172 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
173
174 2014-08-26 David Malcolm <dmalcolm@redhat.com>
175
176 * basic-block.h (create_basic_block_structure): Strengthen params
177 1 "head" and 2 "end" from rtx to rtx_insn *.
178 * cfgrtl.c (create_basic_block_structure): Likewise.
179 (rtl_create_basic_block): Update casts from void * to rtx to
180 rtx_insn *, so that we can pass them as rtx_insn * to
181 create_basic_block_structure.
182 * sel-sched-ir.c (sel_create_basic_block): Likewise.
183
184 2014-08-26 David Malcolm <dmalcolm@redhat.com>
185
186 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
187 rtx_insn **.
188 (check_for_inc_dec): Strengthen param "insn" from rtx to
189 rtx_insn *.
190
191 * cselib.h (cselib_process_insn): Likewise.
192
193 * cselib.c (cselib_record_sets): Likewise.
194 (cselib_process_insn): Likewise.
195
196 * dse.c (struct insn_info): Likewise for field "insn".
197 (check_for_inc_dec_1): Likewise for local "insn".
198 (check_for_inc_dec): Likewise for param "insn".
199 (scan_insn): Likewise.
200 (dse_step1): Likewise for local "insn".
201
202 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
203 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
204
205 2014-08-26 David Malcolm <dmalcolm@redhat.com>
206
207 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
208 from rtx to rtx_insn *.
209 (DEP_PRO): Delete this function and...
210 (SET_DEP_PRO): ...this function in favor of...
211 (DEP_PRO): ...reinstate this macro.
212 (DEP_CON): Delete this function and...
213 (SET_DEP_CON): ...this function in favor of...
214 (DEP_CON): ...reinstate this old macro.
215 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
216 (init_dep): Likewise.
217 (set_priorities): Likewise for both params.
218 (sd_copy_back_deps): Likewise for params 1 and 2.
219
220 * haifa-sched.c (priority): Likewise for param "insn" and local
221 "next".
222 (set_priorities): Likewise for params "head" and "tail" and local
223 "insn".
224 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
225 local "consumer".
226 (add_to_speculative_block): Add a checked cast.
227 (create_check_block_twin): Drop use of SET_DEP_CON.
228 (add_jump_dependencies): Strengthen params "insn" and "jump" from
229 rtx to rtx_insn *.
230
231 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
232 Drop use of SET_DEP_PRO
233 (init_dep): Strengthen params "pro" and "con" from rtx to
234 rtx_insn *.
235 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
236 use of SET_DEP_CON.
237 (DEP_PRO): Delete.
238 (DEP_CON): Delete.
239 (SET_DEP_PRO): Delete.
240 (SET_DEP_CON): Delete.
241
242 2014-08-26 David Malcolm <dmalcolm@redhat.com>
243
244 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
245 from rtx to rtx_insn *.
246 (VINSN_INSN_RTX): Eliminate rvalue function and...
247 (SET_VINSN_INSN): ...lvalue function in favor of...
248 (VINSN_INSN_RTX): reinstate this old macro.
249
250 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
251 in favor of VINSN_INSN_RTX.
252 (VINSN_INSN_RTX): Delete this function.
253 (SET_VINSN_INSN_RTX): Likewise.
254
255 2014-08-26 David Malcolm <dmalcolm@redhat.com>
256
257 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
258 (BND_TO): Delete this function and...
259 (SET_BND_TO): ...this functions in favor of...
260 (BND_TO): ...reinstating this macro.
261 (struct _fence): Strengthen field "executing_insns" from
262 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
263 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
264 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
265 and param "insn" from rtx to insn_t.
266 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
267 rtx_insn *.
268
269 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
270 vec<rtx_insn *> .
271 (rtx_vec_t): Likewise.
272 (struct sched_deps_info_def): Strengthen param of "start_insn"
273 callback from rtx to rtx_insn *. Likewise for param "insn2" of
274 "note_mem_dep" callback and first param of "note_dep" callback.
275
276 * haifa-sched.c (add_to_speculative_block): Strengthen param
277 "insn" from rtx to rtx_insn *.
278 (clear_priorities): Likewise.
279 (calc_priorities): Likewise for local "insn".
280
281 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
282 Remove redundant checked cast.
283 (haifa_note_mem_dep): Likewise for param "pending_insn".
284 (haifa_note_dep): Likewise for param "elem".
285 (note_mem_dep): Likewise for param "e".
286 (sched_analyze_1): Add checked casts.
287 (sched_analyze_2): Likewise.
288
289 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
290 from rtx to rtx_insn *.
291 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
292 from vec<rtx> * to vec<rtx_insn *> *.
293
294 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
295 scaffolding.
296 (flist_add): Strengthen param "executing_insns" from
297 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
298 (advance_deps_context): Remove now-redundant checked cast.
299 (init_fences): Replace uses of NULL_RTX with NULL.
300 (merge_fences): Strengthen params "last_scheduled_insn" and
301 "sched_next" from rtx to rtx_insn * and "executing_insns" from
302 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
303 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
304 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
305 an instruction, rather than doing double-duty as a pattern.
306 (return_nop_to_pool): Update for change of insn_t.
307 (deps_init_id): Remove now-redundant checked cast.
308 (struct sched_scan_info_def): Strengthen param of "init_insn"
309 callback from rtx to insn_t.
310 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
311 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
312 NULL.
313 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
314 "end" from rtx to rtx_insn *.
315 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
316 (rtx insn_rtx, bool force_unique_p)
317 (BND_TO): Delete function.
318 (SET_BND_TO): Delete function.
319
320 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
321 rtx to rtx_insn *.
322 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
323 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
324 rtx to rtx_insn *.
325 (undo_transformations): Likewise for param "insn".
326 (update_liveness_on_insn): Likewise.
327 (compute_live_below_insn): Likewise for param "insn" and local
328 "succ".
329 (update_data_sets): Likewise for param "insn".
330 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
331 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
332 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
333 rtx_insn *.
334 (move_cond_jump): Likewise for param "insn".
335 (move_cond_jump): Drop use of SET_BND_TO.
336 (compute_av_set_on_boundaries): Likewise.
337 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
338 (update_and_record_unavailable_insns): Strengthen local "bb_end"
339 from rtx to rtx_insn *.
340 (maybe_emit_renaming_copy): Likewise for param "insn".
341 (maybe_emit_speculative_check): Likewise.
342 (handle_emitting_transformations): Likewise.
343 (remove_insn_from_stream): Likewise.
344 (code_motion_process_successors): Strengthen local "succ" from rtx
345 to insn_t.
346
347 2014-08-26 David Malcolm <dmalcolm@redhat.com>
348
349 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
350 ilist_t, not _xlist_t;
351 (ILIST_INSN): Define in terms of new union field "insn".
352 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
353 _XLIST_NEXT.
354 (struct _list_node): Add new field "insn" to the union, of type
355 insn_t.
356 (ilist_add): Replace macro with an inline function, requiring an
357 insn_t.
358 (ilist_remove): Define this macro directly in terms of
359 _list_remove, rather than indirectly via _xlist_remove.
360 (ilist_clear): Likewise, in terms of _list_clear rather than
361 _xlist_clear.
362 (ilist_is_in_p): Replace macro with an inline function, requiring
363 an insn_t.
364 (_list_iter_cond_insn): New function.
365 (ilist_iter_remove): Define this macro directly in terms of
366 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
367 (ilist_iterator): Define directly in terms of _list_iterator
368 rather than indirectly through _xlist_iterator.
369 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
370 than in terms of _FOR_EACH_X.
371 (FOR_EACH_INSN_1): Likewise.
372
373 2014-08-26 Joseph Myers <joseph@codesourcery.com>
374
375 PR target/60606
376 PR target/61330
377 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
378 DECL_HARD_REGISTER and return for invalid register specifications.
379 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
380 DECL_HARD_REGISTER, call expand_one_error_var.
381 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
382 CC_REGNUM with non-MODE_CC modes.
383 (arm_regno_class): Return NO_REGS for PC_REGNUM.
384
385 2014-08-26 Marek Polacek <polacek@redhat.com>
386
387 PR c/61271
388 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
389
390 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
391
392 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
393 qi cost; add di cost.
394 (cortexa57_addrcost_table): Likewise.
395
396 2014-08-26 Marek Polacek <polacek@redhat.com>
397
398 PR c/61271
399 * expr.c (is_aligning_offset): Remove logical not.
400
401 2014-08-26 Marek Polacek <polacek@redhat.com>
402
403 PR c/61271
404 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
405 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
406
407 2014-08-26 Richard Biener <rguenther@suse.de>
408
409 PR tree-optimization/62175
410 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
411 expand possibly trapping operations.
412
413 2014-08-26 David Malcolm <dmalcolm@redhat.com>
414
415 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
416 "insn" from rtx to rtx_insn *.
417 (permute_load): Likewise for param "insn".
418 (permute_store): Likewise.
419 (handle_special_swappables): Likewise for local "insn".
420 (replace_swap_with_copy): Likewise for locals "insn" and
421 "new_insn".
422 (rs6000_analyze_swaps): Likewise for local "insn".
423
424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
425
426 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
427 to rtx_insn *.
428
429 2014-08-25 David Malcolm <dmalcolm@redhat.com>
430
431 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
432 "note_list" from rtx to rtx_insn *.
433 (BB_NOTE_LIST): Replace this function and...
434 (SET_BB_NOTE_LIST): ...this function with...
435 (BB_NOTE_LIST): ...the former macro implementation.
436
437 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
438 local "from_start" from rtx to rtx_insn *. Strengthen param
439 "to_endp" from rtx * to rtx_insn **.
440
441 * haifa-sched.c (concat_note_lists): Likewise.
442 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
443 BB_NOTE_LIST.
444 (sel_restore_notes): Likewise.
445 (move_bb_info): Likewise.
446 (BB_NOTE_LIST): Delete this function.
447 (SET_BB_NOTE_LIST): Delete this function.
448 * sel-sched.c (create_block_for_bookkeeping): Eliminate
449 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
450
451 2014-08-25 David Malcolm <dmalcolm@redhat.com>
452
453 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
454 from rtx * to rtx_insn **.
455 (reorder2): Likewise.
456 (dependencies_evaluation_hook): Strengthen params "head", "tail"
457 from rtx to rtx_insn *.
458
459 * doc/tm.texi: Update mechanically for above change to target.def.
460
461 * sched-int.h (note_list): Strengthen this variable from rtx to
462 rtx_insn *.
463 (remove_notes): Likewise for both params.
464 (restore_other_notes): Likewise for return type and first param.
465 (struct ready_list): Strengthen field "vec" from rtx * to
466 rtx_insn **.
467 (struct dep_replacement): Strenghten field "insn" from rtx to
468 rtx_insn *.
469 (struct deps_desc): Likewise for fields "last_debug_insn",
470 "last_args_size".
471 (struct haifa_sched_info): Likewise for callback field
472 "can_schedule_ready_p"'s param, for first param of "new_ready"
473 callback field, for both params of "rank" callback field, for
474 first field of "print_insn" callback field (with a const), for
475 both params of "contributes_to_priority" callback, for param
476 of "insn_finishes_block_p" callback, for fields "prev_head",
477 "next_tail", "head", "tail", for first param of "add_remove_insn"
478 callback, for first param of "begin_schedule_ready" callback, for
479 both params of "begin_move_insn" callback, and for second param
480 of "advance_target_bb" callback.
481 (add_dependence): Likewise for params 1 and 2.
482 (sched_analyze): Likewise for params 2 and 3.
483 (deps_analyze_insn): Likewise for param 2.
484 (ready_element): Likewise for return type.
485 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
486 (try_ready): Strenghten param from rtx to rtx_insn *.
487 (sched_emit_insn): Likewise for return type.
488 (record_delay_slot_pair): Likewise for params 1 and 2.
489 (add_delay_dependencies): Likewise for param.
490 (contributes_to_priority): Likewise for both params.
491 (find_modifiable_mems): Likewise.
492
493 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
494 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
495 "first_older_only_insn" from rtx to rtx_insn *.
496 (arm_sched_reorder): Strengthen param "ready" from rtx * to
497 rtx_insn **.
498
499 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
500 "last_scheduled_iter0" from rtx to rtx_insn *.
501 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
502 (c6x_sched_reorder_1): Strengthen param "ready" and locals
503 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
504 "insn" from rtx to rtx_insn *.
505 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
506 rtx_insn **.
507 (c6x_sched_reorder2): Strengthen param "ready" and locals
508 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
509 "insn" from rtx to rtx_insn *.
510 (c6x_variable_issue): Add a checked cast when assigning from insn
511 to ss.last_scheduled_iter0.
512 (split_delayed_branch): Strengthen param "insn" and local "i1"
513 from rtx to rtx_insn *.
514 (split_delayed_nonbranch): Likewise.
515 (undo_split_delayed_nonbranch): Likewise for local "insn".
516 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
517 "entry_after", "end_packet", "head_insn", "tail_insn",
518 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
519 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
520 to rtx_insn **. Remove now-redundant checked cast on last_insn,
521 but add a checked cast on loop->start_label. Consolidate calls to
522 avoid assigning result of gen_spkernel to "insn", now an
523 rtx_insn *.
524
525 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
526 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
527 rtx to rtx_insn *.
528 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
529 rtx_insn **. Strengthen locals "top", "next" from rtx to
530 rtx_insn *.
531 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
532 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
533 (add_parameter_dependencies): Strengthen params "call", "head" and
534 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
535 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
536 (add_dependee_for_func_arg): Likewise for param "arg" and local
537 "insn".
538 (ix86_dependencies_evaluation_hook): Likewise for params "head",
539 "tail" and locals "insn", "first_arg".
540
541 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
542 for params "head", "tail" and locals "insn", "next", "next_tail".
543 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
544 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
545 "insn", "lowest", "highest" from rtx to rtx_insn *.
546 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
547 rtx_insn **.
548 (ia64_sched_reorder2): Likewise.
549
550 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
551 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
552 from rtx * to rtx_insn **.
553 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
554 rtx_insn **.
555 (mep_print_sched_insn): Strengthen param "insn" from rtx to
556 rtx_insn *.
557 (mep_sched_reorder): Strengthen param "ready" from rtx * to
558 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
559 to rtx_insn *.
560
561 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
562 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
563 to rtx_insn *.
564 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
565 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
566 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
567 rtx_insn **.
568 (vr4130_reorder): Likewise.
569 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
570 rtx to rtx_insn *.
571 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
572 rtx_insn **.
573 (mips_sched_reorder): Likewise.
574 (mips_sched_reorder2): Likewise.
575
576 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
577
578 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
579 Strengthen local "tmp" from rtx to rtx_insn *.
580 (rs6000_sched_reorder2): Likewise.
581
582 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
583 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
584 (s390_sched_reorder): Strengthen param "ready" from rtx * to
585 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
586
587 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
588 "tmp2" from rtx to rtx_insn *.
589 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
590 Strengthen local "insn" from rtx to rtx_insn *.
591 (ready_reorder): Strengthen param "ready" from rtx * to
592 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
593 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
594 (sh_reorder2): Likewise.
595
596 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
597 local "insn" from rtx to rtx_insn *.
598
599 * haifa-sched.c (note_list): Strengthen this variable from rtx to
600 rtx_insn *.
601 (scheduled_insns): Strengthen this variable from vec<rtx> to
602 vec<rtx_insn *>.
603 (set_modulo_params): Likewise for locals "i1", "i2".
604 (record_delay_slot_pair): Likewise for params "i1", "i2".
605 (add_delay_dependencies): Likewise for param "insn".
606 (cond_clobbered_p): Likewise.
607 (recompute_todo_spec): Likewise for local "prev".
608 (last_scheduled_insn): Likewise for this variable.
609 (nonscheduled_insns_begin): Likewise.
610 (model_set_excess_costs): Strengthen param "insns" from rtx * to
611 rtx_insn **.
612 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
613 rtx_insn *.
614 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
615 Strengthen local "insn" from rtx to rtx_insn *.
616 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
617 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
618 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
619 (ready_remove_first): Likewise for return type and local "t".
620 (ready_element): Likewise for return type.
621 (ready_remove): Likewise for return type and local "t".
622 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
623 (check_clobbered_conditions): Strengthen local "x" from rtx to
624 rtx_insn *, adding a checked cast.
625 (schedule_insn): Likewise for param "insn".
626 (remove_notes): Likewise for params "head", "tail" and locals
627 "next_tail", "insn", "next".
628 (struct haifa_saved_data): Likewise for fields
629 "last_scheduled_insn", "nonscheduled_insns_begin".
630 (save_backtrack_point): Update for change to field "vec" of
631 struct ready_list.
632 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
633 rtx_insn **.
634 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
635 from rtx to rtx_insn *
636 (resolve_dependencies): Strengthen param "insn" from rtx to
637 rtx_insn *
638 (restore_other_notes): Likewise for return type, for param "head"
639 and local "note_head".
640 (undo_all_replacements): Likewise for local "insn".
641 (first_nonscheduled_insn): Likewise for return type and local "insn".
642 (queue_to_ready): Likewise for local "insn", adding checked casts.
643 (early_queue_to_ready): Likewise for local "insn".
644 (debug_ready_list_1): Strengthen local "p" from rtx * to
645 rtx_insn **.
646 (move_insn): Strengthen param "insn" and local "note" from rtx to
647 rtx_insn *
648 (insn_finishes_cycle_p): Likewise for param "insn".
649 (max_issue): Likewise for local "insn".
650 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
651 to rtx_insn **.
652 (commit_schedule): Strengthen param "prev_head" and local "insn"
653 from rtx to rtx_insn *
654 (prune_ready_list): Likewise for local "insn".
655 (schedule_block): Likewise for locals "prev_head", "head", "tail",
656 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
657 (set_priorities): Likewise for local "prev_head".
658 (try_ready): Likewise for param "next".
659 (fix_tick_ready): Likewise.
660 (change_queue_index): Likewise.
661 (sched_extend_ready_list): Update for change to field "vec" of
662 struct ready_list.
663 (generate_recovery_code): Strengthen param "insn" from rtx to
664 rtx_insn *.
665 (begin_speculative_block): Likewise.
666 (create_check_block_twin): Likewise for param "insn" and locals
667 "label", "check", "twin". Introduce local "check_pat" to avoid
668 "check" being used as a plain rtx before being used as an insn.
669 (fix_recovery_deps): Add a checked cast to rtx_insn * when
670 extracting elements from ready_list.
671 (sched_remove_insn): Strengthen param "insn" from rtx to
672 rtx_insn *.
673 (sched_emit_insn): Likewise for return type.
674 (ready_remove_first_dispatch): Likewise for return type and local
675 "insn".
676
677 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
678
679 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
680 const rtx_insn *.
681
682 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
683 from rtx to rtx_insn *.
684 (add_dependence_list): Likewise for param "insn". Add a checked
685 cast.
686 (add_dependence_list_and_free): Strengthen param "insn" from rtx
687 to rtx_insn *. Strengthen param "list_p" from rtx * to
688 rtx_insn **.
689 (chain_to_prev_insn): Strengthen param "insn" and locals
690 "prec_nonnote", "i" from rtx to rtx_insn *.
691 (flush_pending_lists): Likewise for param "insn".
692 (cur_insn): Likewise for this variable.
693 (haifa_start_insn): Add a checked cast.
694 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
695 (sched_analyze_reg): Likewise for param "insn".
696 (sched_analyze_1): Likewise.
697 (sched_analyze_2): Likewise. Add checked casts.
698 (sched_analyze_insn): Likewise. Also for local "prev".
699 (deps_analyze_insn): Likewise for param "insn".
700 (sched_analyze): Likewise for params "head", "tail" and local "insn".
701 (add_dependence_1): Likewise for params "insn", "elem".
702 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
703 (parse_add_or_inc): Likewise for param "insn".
704 (find_inc): Likewise for local "inc_cand".
705 (find_modifiable_mems): Likewise for params "head", "tail" and
706 locals "insn", "next_tail".
707
708 * sched-ebb.c (init_ready_list): Likewise for local "insn".
709 (begin_schedule_ready): Likewise for param "insn".
710 (begin_move_insn): Likewise for params "insn" and "last".
711 (ebb_print_insn): Strengthen param "insn" from const_rtx to
712 const rtx_insn *.
713 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
714 (ebb_contributes_to_priority): Likewise for params "next", "insn".
715 (ebb_add_remove_insn): Likewise for param "insn".
716 (advance_target_bb): Likewise.
717
718 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
719 "insn".
720 (check_live): Likewise for param "insn".
721 (init_ready_list): Likewise for local "insn".
722 (can_schedule_ready_p): Likewise for param "insn".
723 (begin_schedule_ready): Likewise.
724 (new_ready): Likewise for param "next".
725 (rgn_print_insn): Likewise for param "insn".
726 (rgn_rank): Likewise for params "insn1", "insn2".
727 (contributes_to_priority): Likewise for params "next", "insn".
728 (rgn_insn_finishes_block_p): Likewise for param "insn".
729 (add_branch_dependences): Likewise for params "head", "tail" and
730 locals "insn", "last".
731 (rgn_add_remove_insn): Likewise for param "insn".
732 (advance_target_bb): Likewise.
733
734 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
735 const_rtx to const rtx_insn *.
736
737 * sel-sched-dump.h (sel_print_insn): Likewise.
738
739 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
740 (deps_init_id): Likewise.
741
742 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
743 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
744 rtx_insn **.
745
746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
747
748 * output.h (final_start_function): Strengthen param 1 from rtx to
749 rtx_insn *.
750
751 * final.c (final_start_function): Likewise, renaming back from
752 "uncast_first" to "first", and dropping the checked cast from rtx
753 to rtx_insn *.
754
755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
756
757 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
758 * final.c (final): Likewise. Rename param back from
759 "uncast_first" to "first" and eliminate the checked cast from rtx
760 to rtx_insn *.
761
762 2014-08-25 David Malcolm <dmalcolm@redhat.com>
763
764 * output.h (shorten_branches): Strengthen param from rtx to
765 rtx_insn *.
766
767 * final.c (shorten_branches): Likewise, renaming param back from
768 "uncast_first" to "first", and dropping the checked cast from rtx
769 to rtx_insn *.
770
771 * genattr.c (gen_attr): Likewise when writing out the prototype of
772 shorten_branches.
773
774 2014-08-25 David Malcolm <dmalcolm@redhat.com>
775
776 * sched-int.h (struct haifa_sched_info): Strengthen fields
777 "prev_head" and "next_tail" from rtx to rtx_insn *.
778
779 2014-08-25 David Malcolm <dmalcolm@redhat.com>
780
781 * rtl.h (rtx_jump_table_data::get_labels): New method.
782 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
783 with use of the new rtx_jump_table_data::get_labels method.
784 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
785 to rtx_jump_table_data *. Simplify by using get_labels method.
786 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
787 a dyn_cast, introducing local "table", using it to replace
788 label-lookup logic with a get_labels method call.
789 (patch_jump_insn): Simplify using get_labels method.
790 * dwarf2cfi.c (create_trace_edges): Likewise.
791 * rtlanal.c (label_is_jump_target_p): Likewise.
792
793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
794
795 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
796 to rtx_insn *.
797
798 * emit-rtl.c (unshare_all_rtl_1): Likewise.
799 (unshare_all_rtl_again): Likewise, also for local "p".
800
801 2014-08-25 David Malcolm <dmalcolm@redhat.com>
802
803 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
804 to rtx_insn *.
805 * cfgrtl.c (delete_insn_and_edges): Likewise.
806
807 2014-08-25 David Malcolm <dmalcolm@redhat.com>
808
809 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
810 from rtx to rtx_insn *.
811
812 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
813
814 2014-08-25 David Malcolm <dmalcolm@redhat.com>
815
816 * function.c (thread_prologue_and_epilogue_insns): Likewise for
817 locals "returnjump", "epilogue_end", "insn", "next".
818
819 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
820 "returnjump" from rtx * to rtx_insn **.
821 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
822
823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
824
825 * basic-block.h (struct edge_def). Strengthen "r" within
826 union edge_def_insns from rtx to rtx_insn *.
827
828 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
829 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
830 rtx_insn *.
831 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
832 from rtx to rtx_insn *.
833 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
834 rtx_insn *.
835 * postreload-gcse.c (reg_killed_on_edge): Likewise.
836 (reg_used_on_edge): Likewise.
837 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
838 (gt_pch_nx): New overload for rtx_insn *&.
839 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
840 from rtx to rtx_insn *.
841
842 2014-08-25 David Malcolm <dmalcolm@redhat.com>
843
844 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
845 from rtx to rtx_insn *.
846 (BB_FOOTER): Replace function with access macro.
847 (SET_BB_FOOTER): Delete.
848
849 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
850 with BB_FOOTER.
851 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
852 (emit_barrier_after_bb): Likewise.
853 (record_effective_endpoints): Likewise.
854 (relink_block_chain): Likewise.
855 (fixup_fallthru_exit_predecessor): Likewise.
856 (cfg_layout_duplicate_bb): Likewise.
857 (cfg_layout_split_block): Likewise.
858 (cfg_layout_delete_block): Likewise.
859 (cfg_layout_merge_blocks): Likewise.
860 (BB_FOOTER): Delete function.
861 (SET_BB_FOOTER): Delete function.
862 * combine.c (update_cfg_for_uncondjump): Replace uses of
863 SET_BB_FOOTER with BB_FOOTER.
864
865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
866
867 * except.h (struct eh_landing_pad_d): Strengthen field
868 "landing_pad" from rtx to rtx_code_label *.
869
870 * except.c (sjlj_emit_dispatch_table): Likewise for param
871 "dispatch_label"
872 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
873
874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
875
876 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
877 first param from rtx to rtx_insn *.
878 * config/xtensa/xtensa.c (struct machine_function): Likewise for
879 field "set_frame_ptr_insn".
880 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
881 "csend" from rtx to rtx_code_label *.
882 (xtensa_expand_atomic): Likewise for local "csloop".
883 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
884 rtx_insn *.
885 (xtensa_call_tls_desc): Likewise for return type and locals
886 "call_insn", "insns".
887 (xtensa_legitimize_tls_address): Likewise for local "insns".
888 (xtensa_expand_prologue): Likewise for locals "insn", "first".
889
890 2014-08-25 David Malcolm <dmalcolm@redhat.com>
891
892 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
893 first param from rtx to rtx_insn *.
894 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
895 "insn".
896
897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
898
899 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
900 Strengthen param 1 from rtx to rtx_insn *.
901 (tilepro_output_cbranch): Likewise.
902 (tilepro_adjust_insn_length): Likewise.
903 (tilepro_final_prescan_insn): Likewise for sole param.
904
905 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
906 Likewise for local "last".
907 (cbranch_predicted_p): Likewise for param "insn".
908 (tilepro_output_simple_cbranch_with_opcode): Likewise.
909 (tilepro_output_cbranch_with_opcode): Likewise.
910 (tilepro_output_cbranch): Likewise.
911 (frame_emit_load): Likewise for return type and locals "seq",
912 "insn".
913 (emit_sp_adjust): Likewise for return type and local "insn".
914 (tilepro_expand_epilogue): Likewise for locals "last_insn",
915 "insn".
916 (tilepro_adjust_insn_length): Likewise for param "insn".
917 (next_insn_to_bundle): Likewise for return type and params
918 "r", "end".
919 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
920 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
921 local "new_insns".
922 (match_addli_pcrel): Likewise for param "insn".
923 (replace_addli_pcrel): Likewise.
924 (match_auli_pcrel): Likewise.
925 (replace_auli_pcrel): Likewise.
926 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
927 "next_insn".
928 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
929 "queue", "next_queue", "prev".
930 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
931 (tilepro_final_prescan_insn): Likewise for param "insn".
932
933 2014-08-25 David Malcolm <dmalcolm@redhat.com>
934
935 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
936 Strengthen param 1 from rtx to rtx_insn *.
937 (tilegx_output_cbranch): Likewise.
938 (tilegx_adjust_insn_length): Likewise.
939 (tilegx_final_prescan_insn): Likewise for sole param.
940
941 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
942 or local "last".
943 (cbranch_predicted_p): Likewise for param "insn".
944 (tilegx_output_simple_cbranch_with_opcode): Likewise.
945 (tilegx_output_cbranch_with_opcode): Likewise.
946 (tilegx_output_cbranch): Likewise.
947 (frame_emit_load): Likewise for return type.
948 (set_frame_related_p): Likewise for locals "seq", "insn".
949 (emit_sp_adjust): Likewise for return type, and for local "insn".
950 Introduce local "pat" for use in place of "insn" where the latter
951 isn't an instruction.
952 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
953 from rtx to rtx_insn *.
954 (tilegx_adjust_insn_length): Likewise for param "insn".
955 (next_insn_to_bundle): Likewise for return type and params "r" and
956 "end".
957 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
958 "end".
959 (replace_insns): Likewise for params "old_insn", "new_insns".
960 (replace_mov_pcrel_step1): Likewise for param "insn" and local
961 "new_insns".
962 (replace_mov_pcrel_step2): Likewise.
963 (replace_mov_pcrel_step3): Likewise.
964 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
965 "next_insn".
966 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
967 "queue", "next_queue", "prev".
968 (tilegx_output_mi_thunk): Likewise for local "insn".
969 (tilegx_final_prescan_insn): Likewise for param "insn".
970
971 2014-08-25 David Malcolm <dmalcolm@redhat.com>
972
973 * config/spu/spu.c (frame_emit_store): Strengthen return type from
974 rtx to rtx_insn *.
975 (frame_emit_load): Likewise.
976 (frame_emit_add_imm): Likewise, also for local "insn".
977 (spu_expand_prologue): Likewise for local "insn".
978 (struct spu_bb_info): Likewise for field "prop_jump".
979 (emit_nop_for_insn): Likewise for param "insn" and local
980 "new_insn".
981 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
982 "hbr_insn".
983 (spu_emit_branch_hint): Likewise for params "before", "branch" and
984 locals "hint", "insn".
985 (get_branch_target): Likewise for param "branch".
986 (insn_clobbers_hbr): Likewise for param "insn".
987 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
988 locals "insn", "before_4", "before_16".
989 (insert_hbrp): Likewise for local "insn".
990 (spu_machine_dependent_reorg): Likewise for locals "branch",
991 "insn", "next", "bbend".
992 (uses_ls_unit): Likewise for param "insn".
993 (get_pipe): Likewise.
994 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
995 introducing a checked cast.
996 (spu_sched_adjust_cost): Likewise for params "insn" and
997 "dep_insn".
998 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
999 (spu_sms_res_mii): Likewise.
1000
1001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1002
1003 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1004 from rtx to rtx_insn *.
1005 (output_cbranch): Likewise for param 6.
1006 (output_return): Likewise for param 1.
1007 (output_sibcall): Likewise.
1008 (output_v8plus_shift): Likewise.
1009 (output_v8plus_mult): Likewise.
1010 (output_v9branch): Likewise for param 7.
1011 (output_cbcond): Likewise for param 3.
1012
1013 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1014 for local "insn".
1015 (sparc_legitimize_pic_address): Likewise.
1016 (sparc_emit_call_insn): Likewise.
1017 (emit_save_or_restore_regs): Likewise.
1018 (emit_window_save): Likewise for return type and local "insn".
1019 (sparc_expand_prologue): Likewise for local "insn".
1020 (sparc_flat_expand_prologue): Likewise.
1021 (output_return): Likewise for param "insn".
1022 (output_sibcall): Likewise for param "insn" and local "delay".
1023 (output_ubranch): Likewise for param "insn".
1024 (output_cbranch): Likewise.
1025 (output_cbcond): Likewise.
1026 (output_v9branch): Likewise.
1027 (output_v8plus_shift): Likewise.
1028 (sparc_output_mi_thunk): Likewise for local "insn".
1029 (get_some_local_dynamic_name): Likewise.
1030 (output_v8plus_mult): Likewise for param "insn".
1031
1032 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1033
1034 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1035 from rtx to rtx_insn *.
1036 (output_branchy_insn): Likewise for param 3.
1037 (output_far_jump): Likewise for param 1.
1038 (final_prescan_insn): Likewise.
1039 (sh_insn_length_adjustment): Likewise for sole param.
1040
1041 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1042 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1043 rtx_code_label *.
1044 (sh_emit_compare_and_set): Likewise for local "lab".
1045 (output_far_jump): Strengthen param "insn" and local "prev" from
1046 rtx to rtx_insn *.
1047 (output_branchy_insn): Likewise for param "insn" and local
1048 "next_insn".
1049 (output_ieee_ccmpeq): Likewise for param "insn".
1050 (struct label_ref_list_d): Strengthen field "label" from rtx to
1051 rtx_code_label *.
1052 (pool_node): Likewise.
1053 (pool_window_label): Likewise for this global.
1054 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1055 (dump_table): Strengthen params "start", "barrier" and local
1056 "scan" from rtx to rtx_insn *.
1057 (broken_move): Likewise for param "insn".
1058 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1059 Strengthen param "first_mova" from rtx * to rtx_insn **.
1060 (mova_p): Likewise for param "insn".
1061 (fixup_mova): Likewise for param "mova".
1062 (find_barrier): Likewise for return type, params "mova" and
1063 "from", and locals "barrier_before_mova", "found_barrier",
1064 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1065 "label" from rtx to rtx_code_label *.
1066 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1067 rtx to rtx_insn *.
1068 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1069 (split_branches): Likewise for param "first" and local "insn".
1070 (final_prescan_insn): Likewise for param "insn".
1071 (sequence_insn_p): Likewise for locals "prev", "next".
1072 (sh_insn_length_adjustment): Likewise for param "insn".
1073 (sh_can_redirect_branch): Likewise for local "insn".
1074 (find_r0_life_regions): Likewise for locals "end", "insn".
1075 (sh_output_mi_thunk): Likewise for local "insns".
1076
1077 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1078
1079 * config/score/score.c (score_output_mi_thunk): Strengthen local
1080 "insn" from rtx to rtx_insn *.
1081 (score_prologue): Likewise.
1082
1083 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1084
1085 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1086 1 from rtx to rtx_insn *.
1087 (s390_emit_jump): Likewise for return type.
1088 (s390_emit_call): Likewise.
1089 (s390_load_got): Likewise.
1090
1091 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1092 variable.
1093 (s390_match_ccmode): Likewise for param "insn".
1094 (s390_emit_jump): Likewise for return type.
1095 (s390_split_branches): Likewise for local "label".
1096 (struct constant): Strengthen field "label" from rtx to
1097 rtx_code_label *.
1098 (struct constant_pool): Likewise for field "label". Strengthen
1099 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1100 rtx_insn *.
1101 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1102 insns.
1103 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1104 (s390_end_pool): Likewise.
1105 (s390_dump_pool): Likewise for local "insn".
1106 (s390_mainpool_start): Likewise.
1107 (s390_chunkify_start): Likewise.
1108 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1109 with insns. Strengthen locals "label", "jump", "barrier", "next",
1110 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1111 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1112 rtx_insn *.
1113 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1114 "jump", "label", "next_insn".
1115 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1116 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1117 "tbegin_insn".
1118 (s390_load_got): Likewise for return type and local "insns".
1119 (s390_save_gprs_to_fprs): Likewise for local "insn".
1120 (s390_restore_gprs_from_fprs): Likewise.
1121 (pass_s390_early_mach::execute): Likewise.
1122 (s390_emit_prologue): Likewise for local "insns".
1123 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1124 rtx_code_label *.
1125 (s390_emit_call): Strengthen return type and local "insn" from
1126 rtx to rtx_insn *.
1127 (s390_emit_tpf_eh_return): Likewise for local "insn".
1128 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1129 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1130 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1131 local "cur_insn".
1132 (s390_non_addr_reg_read_p): Likewise for param "insn".
1133 (find_cond_jump): Likewise for return type and param "insn".
1134 (s390_swap_cmp): Likewise for param "insn".
1135 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1136 "prev_insn", "next_insn".
1137 (s390_reorg): Likewise for locals "insn", "target".
1138 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1139 (s390_sched_variable_issue): For now, rename param "insn" to
1140 "uncast_insn", introducing a checked cast.
1141 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1142 insn.
1143 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1144 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1145
1146 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1147
1148 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1149 param from rtx to rtx_insn *.
1150 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1151
1152 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1153
1154 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1155 4 from rtx to rtx_insn *.
1156 (rs6000_final_prescan_insn): Likewise for first param.
1157 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1158 local "insn".
1159 (rs6000_get_some_local_dynamic_name): Likewise.
1160 (output_cbranch): Likewise for param "insn".
1161 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1162 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1163 (rs6000_emit_allocate_stack): Likewise for local "insn".
1164 (load_cr_save): Likewise.
1165 (restore_saved_cr): Likewise.
1166 (restore_saved_lr): Likewise.
1167 (emit_cfa_restores): Likewise.
1168 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1169 "deleted_debug_label".
1170 (rs6000_output_mi_thunk): Likewise for local "insn".
1171 (rs6000_final_prescan_insn): Likewise for param "insn".
1172
1173 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1174
1175 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1176 Strengthen param "insn" from rtx to rtx_insn *.
1177 * config/picochip/picochip.c (picochip_current_prescan_insn):
1178 Likewise for this variable.
1179 (picochip_final_prescan_insn): Likewise for param "insn".
1180
1181 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1182
1183 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1184 from rtx to rtx_insn *.
1185 (pa_output_indirect_call): Likewise.
1186 (pa_adjust_insn_length): Likewise.
1187 (pa_attr_length_millicode_call): Likewise.
1188 (pa_attr_length_call): Likewise.
1189 (pa_attr_length_indirect_call): Likewise.
1190
1191 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1192 "insn".
1193 (pa_attr_length_millicode_call): Likewise.
1194 (pa_attr_length_call): Likewise.
1195 (pa_output_call): Likewise.
1196 (pa_attr_length_indirect_call): Likewise.
1197 (pa_output_indirect_call): Likewise.
1198
1199 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1200
1201 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1202 Strengthen first param from rtx to rtx_insn *.
1203 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1204 param "insn".
1205
1206 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1207
1208 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1209 type from rtx to rtx_insn *.
1210 (mips_expand_call): Likewise.
1211 (mips_adjust_insn_length): Likewise for first param.
1212 (mips_output_conditional_branch): Likewise.
1213 (mips_output_order_conditional_branch): Likewise.
1214 (mips_final_prescan_insn): Likewise.
1215
1216 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1217 rtx_insn * for the SEQUENCE case.
1218 (SEQ_END): Likewise.
1219 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1220 (mips_emit_call_insn): Likewise, also for local "insn".
1221 (mips16_gp_pseudo_reg): Likewise for local "scan".
1222 (mips16_build_call_stub): Likewise for return type and for local
1223 "insn". Introduce a new local "pattern" so that "insn" can indeed
1224 be an insn.
1225 (mips_expand_call): Strengthen return type and local "insn" from
1226 rtx to rtx_insn *.
1227 (mips_block_move_loop): Strengthen local "label" from rtx to
1228 rtx_code_label *.
1229 (mips_expand_synci_loop): Likewise for locals "label",
1230 "end_label".
1231 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1232 rtx_insn *.
1233 (mips16e_collect_argument_saves): Likewise for locals "insn",
1234 "next".
1235 (mips_find_gp_ref): Likewise for param of callback for "pred"
1236 param, and for local "insn".
1237 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1238 (mips_insn_has_flexible_gp_ref_p): Likewise.
1239 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1240 local "insn".
1241 (mips_epilogue_set_cfa): Likewise for local "insn".
1242 (mips_expand_epilogue): Likewise.
1243 (mips_adjust_insn_length): Likewise for param "insn".
1244 (mips_output_conditional_branch): Likewise.
1245 (mips_output_order_conditional_branch): Likewise.
1246 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1247 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1248 "falu2_turn_enabled_insn".
1249 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1250 "done_label" from rtx to rtx_code_label *.
1251 (struct mips16_constant): Likewise for field "label".
1252 (mips16_add_constant): Likewise for return type.
1253 (mips16_emit_constants_1): Strengthen return type and param "insn"
1254 from rtx to rtx_insn *.
1255 (mips16_emit_constants): Likewise for param "insn".
1256 (mips16_insn_length): Likewise.
1257 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1258 to rtx_code_label *.
1259 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1260 from rtx to rtx_insn *.
1261 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1262 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1263 (r10k_simplify_address): Strengthen param "insn" and local
1264 "def_insn" from rtx to rtx_insn *.
1265 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1266 rtx_insn *.
1267 (r10k_needs_protection_p_1): Update target type of cast of data
1268 from to rtx to rtx_insn *.
1269 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1270 rtx * to rtx_insn **.
1271 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1272 rtx_insn *.
1273 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1274 (mips_call_expr_from_insn): Likewise for param "insn".
1275 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1276 (mips_find_pic_call_symbol): Likewise for param "insn".
1277 (mips_annotate_pic_calls): Likewise for local "insn".
1278 (mips_sim_insn): Likewise for this variable.
1279 (struct mips_sim): Likewise for field "insn" within elements of
1280 last_set array.
1281 (mips_sim_wait_reg): Likewise for param "insn".
1282 (mips_sim_wait_regs): Likewise.
1283 (mips_sim_wait_units): Likewise.
1284 (mips_sim_wait_insn): Likewise.
1285 (mips_sim_issue_insn): Likewise.
1286 (mips_sim_finish_insn): Likewise.
1287 (mips_seq_time): Likewise for param "seq" and local "insn".
1288 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1289 locals "first", "second".
1290 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1291 "last", "last2", "next".
1292 (mips_avoid_hazard): Likewise for params "after", "insn".
1293 (mips_reorg_process_insns): Likewise for locals "insn",
1294 "last_insn", "subinsn", "next_insn".
1295 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1296 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1297 "jump_sequence".
1298 (mips_output_mi_thunk): Likewise for local "insn".
1299 (mips_final_prescan_insn): Likewise for param "insn".
1300
1301 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1302
1303 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1304 Strengthen return type and local "insns" from rtx to rtx_insn *.
1305 (microblaze_legitimize_tls_address): Likewise for local "insns".
1306 (microblaze_block_move_loop): Strengthen local "label" from rtx
1307 to rtx_code_label *.
1308 (microblaze_expand_prologue): Strengthen two locals named "insn"
1309 from rtx to rtx_insn *.
1310 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1311 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1312 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1313 to rtx_code_label *.
1314
1315 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1316
1317 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1318 param from rtx to rtx_insn *.
1319 (mep_reuse_lo): Likewise for third param.
1320 (mep_use_post_modify_p): Likewise for first param.
1321 (mep_core_address_length): Likewise.
1322 (mep_cop_address_length): Likewise.
1323 (mep_final_prescan_insn): Likewise.
1324 (mep_store_data_bypass_p): Likewise for both params.
1325 (mep_mul_hilo_bypass_p): Likewise.
1326 (mep_ipipe_ldc_p): Likewise for param.
1327
1328 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1329 (mep_rewrite_mult): Likewise.
1330 (mep_rewrite_mulsi3): Likewise.
1331 (mep_rewrite_maddsi3): Likewise.
1332 (mep_reuse_lo_p_1): Likewise.
1333 (mep_reuse_lo_p): Likewise.
1334 (mep_frame_expr): Likewise.
1335 (mep_make_parallel): Likewise for both params.
1336 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1337 local "insn".
1338 (mep_use_post_modify_p): Likewise for param "insn".
1339 (mep_core_address_length): Likewise.
1340 (mep_cop_address_length): Likewise.
1341 (mep_reg_set_in_function): Likewise for local "insn".
1342 (mep_asm_without_operands_p): Likewise.
1343 (F): Likewise for return type and param "x".
1344 (add_constant): Likewise for local "insn".
1345 (maybe_dead_move): Likewise for return type and local "insn".
1346 (mep_expand_prologue): Likewise for local "insn".
1347 (mep_final_prescan_insn): Likewise for param "insn".
1348 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1349 "next", "follow", "x".
1350 (mep_insert_repeat_label_last): Likewise for return type, param
1351 "last_insn", and locals "next", "prev". Strengthen param "label"
1352 from rtx to rtx_code_label *.
1353 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1354 rtx_insn *.
1355 (struct mep_doloop_end): Likewise for fields "insn" and
1356 "fallthrough".
1357 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1358 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1359 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1360 rtx_insn *.
1361 (mep_invert_branch): Likewise for params "insn" and "after".
1362 (mep_reorg_erepeat): Likewise for param "insns" and locals
1363 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1364 "l" from rtx to rtx_code_label *.
1365 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1366 from rtx to rtx_insn *.
1367 (mep_reorg_addcombine): Likewise for param "insns" and locals
1368 "i", "n".
1369 (add_sp_insn_p): Likewise for param "insn".
1370 (mep_reorg_noframe): Likewise for param "insns" and locals
1371 "start_frame_insn", "end_frame_insn", "next".
1372 (mep_reorg): Likewise for local "insns".
1373 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1374 cast.
1375 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1376 (mep_mul_hilo_bypass_p): Likewise.
1377 (mep_ipipe_ldc_p): Likewise for param "insn".
1378 (mep_make_bundle): Likewise for return type, param "cop" and local
1379 "insn", splitting out the latter into a new local "seq" for when it
1380 is a SEQUENCE rather than an insn.
1381 (core_insn_p): Likewise for param "insn".
1382 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1383 "last", "first", "note", "prev", "core_insn".
1384
1385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1386
1387 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1388 rtx to rtx_insn *.
1389 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1390 (m68k_final_prescan_insn): Likewise for first param.
1391
1392 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1393 (m68k_set_frame_related): Likewise for param "insn".
1394 (output_btst): Likewise for param "insn".
1395 (m68k_final_prescan_insn): Likewise.
1396 (m68k_move_to_reg): Likewise for local "insn".
1397 (m68k_call_tls_get_addr): Likewise for local "insns".
1398 (m68k_call_m68k_read_tp): Likewise.
1399 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1400 (m68k_output_mi_thunk): Likewise for local "insn".
1401
1402 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1403
1404 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1405 first param from rtx to rtx_insn *.
1406 (iq2000_adjust_insn_length): Likewise.
1407 (iq2000_output_conditional_branch): Likewise.
1408 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1409 "insn" and local "nop_insn".
1410 (iq2000_annotate_frame_insn): Likewise for param "insn".
1411 (iq2000_expand_prologue): Likewise for both locals "insn".
1412 (iq2000_adjust_insn_length): Likewise for param "insn".
1413 (iq2000_output_conditional_branch): Likewise.
1414
1415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1416
1417 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1418 "insns" from rtx to rtx_insn *.
1419 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1420 (struct spill_fill_data): Likewise for field "init_after" and for
1421 elements of array field "prev_insn".
1422 (spill_restore_mem): Likewise for locals "insn", "first".
1423 (do_spill): Likewise for local "insn".
1424 (do_restore): Likewise.
1425 (ia64_expand_prologue): Likewise.
1426 (ia64_expand_epilogue): Likewise.
1427 (emit_insn_group_barriers): Likewise for locals "insn",
1428 "last_label".
1429 (emit_all_insn_group_barriers): Likewise for locals "insn",
1430 "last".
1431 (dfa_stop_insn): Likewise for this global.
1432 (dfa_pre_cycle_insn): Likewise.
1433 (ia64_nop): Likewise.
1434 (final_emit_insn_group_barriers): Likewise for locals "insn",
1435 "last".
1436 (emit_predicate_relation_info): Likewise for locals "head", "n",
1437 "insn", "b", "a".
1438 (ia64_reorg): Likewise for local "insn".
1439 (ia64_output_mi_thunk): Likewise.
1440 (expand_vec_perm_interleave_2): Likewise for local "seq".
1441
1442 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1443
1444 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1445 param 1 "insn" from rtx to rtx_insn *.
1446 (ix86_use_lea_for_mov): Likewise.
1447 (ix86_avoid_lea_for_addr): Likewise.
1448 (ix86_split_lea_for_addr): Likewise.
1449 (ix86_lea_for_add_ok): Likewise.
1450 (ix86_output_call_insn): Likewise.
1451
1452 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1453 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1454 (ix86_output_function_epilogue): Likewise for locals "insn",
1455 "deleted_debug_label".
1456 (legitimize_tls_address): Likewise for local "insn".
1457 (get_some_local_dynamic_name): Likewise.
1458 (increase_distance): Likewise for params "prev", "next".
1459 (distance_non_agu_define_in_bb): Likewise for params "insn",
1460 "start" and locals "prev", "next".
1461 (distance_non_agu_define): Likewise for param "insn".
1462 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1463 locals "next", "prev".
1464 (distance_agu_use): Likewise for param "insn".
1465 (ix86_lea_outperforms): Likewise.
1466 (ix86_ok_to_clobber_flags): Likewise.
1467 (ix86_avoid_lea_for_add): Likewise.
1468 (ix86_use_lea_for_mov): Likewise.
1469 (ix86_avoid_lea_for_addr): Likewise.
1470 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1471 (ix86_split_lea_for_addr): Likewise for param "insn".
1472 (ix86_lea_for_add_ok): Likewise for param "insn".
1473 (ix86_expand_carry_flag_compare): Likewise for local
1474 "compare_seq".
1475 (ix86_expand_int_movcc): Likewise.
1476 (ix86_output_call_insn): Likewise for param "insn".
1477 (ix86_output_call_insn): Likewise for local "i".
1478 (x86_output_mi_thunk): Introduce local "insn", using it in place
1479 of "tmp" when dealing with insns.
1480 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1481 "start".
1482 (ix86_pad_returns): Likewise for locals "ret", "prev".
1483 (ix86_count_insn_bb): Likewise for local "insn".
1484 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1485 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1486 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1487 (expand_vec_perm_interleave2): Likewise for local "seq".
1488 (expand_vec_perm_vperm2f128_vblend): Likewise.
1489 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1490 call to for_each_rtx with for_each_rtx_in_insn.
1491
1492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1493
1494 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1495 "label" from rtx to rtx_code_label *.
1496 (ix86_expand_prologue): Likewise.
1497 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1498 "varargs_label".
1499 (ix86_split_idivmod): Likewise for locals "end_label" and
1500 "qimode_label".
1501 (ix86_expand_branch): Likewise for local "label2".
1502 (ix86_expand_aligntest): Likewise for return type and local "label".
1503 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1504 "top_label".
1505 (expand_movmem_epilogue): Likewise for the various locals named
1506 "label".
1507 (expand_setmem_epilogue): Likewise.
1508 (expand_small_movmem_or_setmem): Likewise for local "label".
1509 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1510 Strengthen param "done_label" from rtx * to rtx_code_label **.
1511 Strengthen locals "loop_label" and "label" from rtx to
1512 rtx_code_label *.
1513 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1514 Likewise for locals "loop_label", "label".
1515 (ix86_expand_set_or_movmem): Likewise for locals "label",
1516 "jump_around_label", "hot_label".
1517 (ix86_expand_strlensi_unroll_1): Likewise for locals
1518 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1519 "end_2_label".
1520 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1521 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1522 "label2", "jump_label".
1523 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1524 local "label".
1525 (ix86_expand_lfloorceil): Likewise for local "label".
1526 (ix86_expand_rint): Likewise.
1527 (ix86_expand_floorceildf_32): Likewise.
1528 (ix86_expand_floorceil): Likewise.
1529 (ix86_expand_rounddf_32): Likewise.
1530 (ix86_expand_trunc): Likewise.
1531 (ix86_expand_truncdf_32): Likewise.
1532 (ix86_expand_round): Likewise.
1533
1534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1535
1536 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1537 first param from rtx to rtx_insn *.
1538 (h8300_insn_length_from_table): Likewise.
1539 * config/h8300/h8300.c (F): Likewise for return type and param
1540 "x".
1541 (Fpa): Add a checked cast to rtx_insn *.
1542 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1543 rtx_insn *.
1544 (final_prescan_insn): Likewise for param "insn".
1545 (h8300_binary_length): Likewise.
1546 (h8300_insn_length_from_table): Likewise.
1547
1548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1549
1550 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1551 Strengthen first param "insn" from rtx to rtx_insn *.
1552
1553 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1554 Likewise.
1555 (frame_insn): Likewise for return type. Introduce local "insn"
1556 for use in place of local "x" for use as an rtx_insn *.
1557 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1558 (epiphany_expand_prologue): Likewise for local "insn".
1559 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1560 * config/epiphany/resolve-sw-modes.c
1561 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1562 "seq".
1563
1564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1565
1566 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1567 param from rtx to rtx_insn *.
1568 (c6x_final_prescan_insn): Likewise for first param.
1569
1570 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1571 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1572 (c6x_expand_compare): Strengthen local "insns" from rtx to
1573 rtx_insn *.
1574 (c6x_get_unit_specifier): Likewise for param "insn".
1575 (c6x_print_unit_specifier_field): Likewise.
1576 (c6x_final_prescan_insn): Likewise.
1577 (emit_add_sp_const): Likewise for local "insn".
1578 (c6x_expand_prologue): Likewise.
1579
1580 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1581
1582 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1583 param 1 from rtx to rtx_insn *.
1584 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1585 the various locals named "insn".
1586 (expand_epilogue_reg_restore): Likewise.
1587 (frame_related_constant_load): Likewise.
1588 (add_to_reg): Likewise.
1589 (emit_link_insn): Likewise.
1590 (do_link): Likewise.
1591 (expand_interrupt_handler_prologue): Likewise.
1592 (branch_dest): Likewise for param "branch".
1593 (asm_conditional_branch): Likewise for param "insn".
1594 (gen_one_bundle): Likewise for elements of param "slot" and local
1595 "t".
1596 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1597 elements of local "slot".
1598 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1599 "queue", "next_queue", "prev".
1600 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
1601 (add_sched_insns_for_speculation): Likewise for local "insn".
1602
1603 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1604
1605 * config/avr/avr-protos.h (output_movqi): Strengthen first param
1606 from rtx to rtx_insn *.
1607 (output_movhi): Likewise.
1608 (output_movsisf): Likewise.
1609 (avr_out_tstsi): Likewise.
1610 (avr_out_tsthi): Likewise.
1611 (avr_out_tstpsi): Likewise.
1612 (avr_out_compare): Likewise.
1613 (avr_out_compare64): Likewise.
1614 (avr_out_movpsi): Likewise.
1615 (ashlqi3_out): Likewise.
1616 (ashlhi3_out): Likewise.
1617 (ashlsi3_out): Likewise.
1618 (ashrqi3_out): Likewise.
1619 (ashrhi3_out): Likewise.
1620 (ashrsi3_out): Likewise.
1621 (lshrqi3_out): Likewise.
1622 (lshrhi3_out): Likewise.
1623 (lshrsi3_out): Likewise.
1624 (avr_out_ashlpsi3): Likewise.
1625 (avr_out_ashrpsi3): Likewise.
1626 (avr_out_lshrpsi3): Likewise.
1627 (avr_out_fract): Likewise.
1628 (avr_out_sbxx_branch): Likewise.
1629 (avr_out_round): Likewise.
1630 (avr_out_xload): Likewise.
1631 (avr_out_movmem): Likewise.
1632 (adjust_insn_length): Likewise.
1633 (avr_out_lpm): Likewise.
1634 (reg_unused_after): Likewise.
1635 (_reg_unused_after): Likewise.
1636 (avr_jump_mode): Likewise for second param.
1637 (jump_over_one_insn): Likewise for first param.
1638 (avr_final_prescan_insn): Likewise.
1639 (out_shift_with_cnt): Likewise for second param.
1640
1641 * config/avr/avr.c (get_sequence_length): Likewise for param
1642 "insns" and local "insn".
1643 (emit_push_byte): Likewise for local "insn".
1644 (emit_push_sfr): Likewise.
1645 (avr_prologue_setup_frame): Likewise for locals "insn",
1646 "fp_plus_insns", "sp_plus_insns".
1647 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
1648 "sp_plus_insns".
1649 (avr_jump_mode): Likewise for param "insn".
1650 (avr_final_prescan_insn): Likewise.
1651 (avr_find_unused_d_reg): Likewise.
1652 (avr_out_lpm_no_lpmx): Likewise.
1653 (avr_out_lpm): Likewise.
1654 (avr_out_xload): Likewise.
1655 (output_movqi): Likewise.
1656 (output_movhi): Likewise.
1657 (out_movqi_r_mr): Likewise.
1658 (out_movhi_r_mr): Likewise.
1659 (out_movsi_r_mr): Likewise.
1660 (out_movsi_mr_r): Likewise.
1661 (output_movsisf): Likewise.
1662 (avr_out_load_psi): Likewise.
1663 (avr_out_store_psi): Likewise.
1664 (avr_out_movpsi): Likewise.
1665 (out_movqi_mr_r): Likewise.
1666 (avr_out_movhi_mr_r_xmega): Likewise.
1667 (out_movhi_mr_r): Likewise.
1668 (compare_condition): Likewise for param "insn" and local "next".
1669 (compare_sign_p): Likewise for param "insn".
1670 (compare_diff_p): Likewise.
1671 (compare_eq_p): Likewise.
1672 (avr_out_compare): Likewise.
1673 (avr_out_compare64): Likewise.
1674 (avr_out_tsthi): Likewise.
1675 (avr_out_tstpsi): Likewise.
1676 (avr_out_tstsi): Likewise.
1677 (out_shift_with_cnt): Likewise.
1678 (ashlqi3_out): Likewise.
1679 (ashlhi3_out): Likewise.
1680 (avr_out_ashlpsi3): Likewise.
1681 (ashlsi3_out): Likewise.
1682 (ashrqi3_out): Likewise.
1683 (ashrhi3_out): Likewise.
1684 (avr_out_ashrpsi3): Likewise.
1685 (ashrsi3_out): Likewise.
1686 (lshrqi3_out): Likewise.
1687 (lshrhi3_out): Likewise.
1688 (avr_out_lshrpsi3): Likewise.
1689 (lshrsi3_out): Likewise.
1690 (avr_out_fract): Likewise.
1691 (avr_out_round): Likewise.
1692 (avr_adjust_insn_length): Likewise.
1693 (reg_unused_after): Likewise.
1694 (_reg_unused_after): Likewise.
1695 (avr_compare_pattern): Likewise.
1696 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
1697 and locals "branch1", "branch2", "insn2", "jump".
1698 (avr_reorg): Likewise for local "insn".
1699 (avr_2word_insn_p): Likewise for param "insn".
1700 (jump_over_one_insn_p): Likewise.
1701 (avr_out_sbxx_branch): Likewise.
1702 (avr_out_movmem): Likewise.
1703
1704 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1705
1706 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
1707 param from rtx to rtx_insn *.
1708 (thumb1_final_prescan_insn): Likewise.
1709 (thumb2_final_prescan_insn): Likewise.
1710
1711 * config/arm/arm.c (emit_set_insn): Strengthen return type from
1712 rtx to rtx_insn *.
1713 (struct minipool_node): Likewise for field "insn".
1714 (dump_minipool): Likewise for param "scan".
1715 (create_fix_barrier): Likewise for local "from". Strengthen local
1716 "label" from rtx to rtx_code_label *.
1717 (push_minipool_barrier): Strengthen param "insn" from rtx to
1718 rtx_insn *.
1719 (push_minipool_fix): Likewise.
1720 (note_invalid_constants): Likewise.
1721 (thumb2_reorg): Likewise for local "insn".
1722 (arm_reorg): Likewise.
1723 (thumb2_final_prescan_insn): Likewise for param
1724 "insn" and local "first_insn".
1725 (arm_final_prescan_insn): Likewise for param "insn" and locals
1726 "start_insn", "this_insn".
1727 (arm_debugger_arg_offset): Likewise for param "insn".
1728 (thumb1_emit_multi_reg_push): Likewise for return type and local
1729 "insn".
1730 (thumb1_final_prescan_insn): Likewise for param "insn".
1731 (thumb_far_jump_used_p): Likewise for local "insn".
1732 (thumb1_expand_prologue): Likewise.
1733 (arm_expand_epilogue_apcs_frame): Likewise.
1734 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
1735 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
1736 from rtx to rtx_code_label *.
1737 (arm_split_atomic_op): Likewise for local "label".
1738 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
1739
1740 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1741
1742 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
1743 first param from rtx to rtx_insn *.
1744 (arc_verify_short): Likewise.
1745 (arc_short_long): Likewise.
1746 (arc_need_delay): Likewise.
1747
1748 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
1749 "target_insn".
1750 (arc_ccfsm_advance): Likewise for param "insn" and locals
1751 "start_insn", "this_insn".
1752 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
1753 (arc_ccfsm_post_advance): Likewise for param "insn".
1754 (arc_next_active_insn): Likewise for return type and param "insn".
1755 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
1756 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
1757 (output_short_suffix): Likewise for local "insn".
1758 (arc_final_prescan_insn): Likewise for param "insn". Remove
1759 now-redundant checked cast.
1760 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
1761 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
1762 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
1763 for use where lc_set became an insn.
1764 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
1765 rtx to rtx_insn *.
1766 (arc_get_insn_variants): Likewise for local "prev".
1767 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
1768 "next".
1769 (arc_predicate_delay_insns): Likewise for local "insn".
1770 (arc_pad_return): Likewise for local "prev". For now, add a
1771 checked cast when extracting the insn from "final_sequence".
1772 (arc_short_long): Likewise for param "insn".
1773 (arc_need_delay): Likewise for param "insn" and local "next".
1774 (arc_label_align): Likewise for locals "prev", "next".
1775
1776 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1777
1778 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
1779 "insn" from rtx to rtx_insn *.
1780 (alpha_gp_save_rtx): Likewise for local "seq".
1781 (alpha_instantiate_decls): Likewise for local "top".
1782 (get_some_local_dynamic_name): Likewise for local "insn".
1783 (alpha_does_function_need_gp): Likewise.
1784 (set_frame_related_p): Likewise for return type and for locals
1785 "seq" and "insn".
1786 (emit_frame_store_1): Likewise for local "insn".
1787 (alpha_expand_prologue): Likewise for locals "insn", "seq".
1788 (alpha_end_function): Likewise for local "insn".
1789 (alpha_output_mi_thunk_osf): Likewise.
1790 (alphaev4_insn_pipe): Likewise for param "insn".
1791 (alphaev5_insn_pipe): Likewise.
1792 (alphaev4_next_group): Likewise for return type and param 1
1793 "insn".
1794 (alphaev5_next_group): Likewise.
1795 (alpha_align_insns_1): Likewise for return type and param 1 of
1796 callback param "next_group", and for locals "i", "next", "prev",
1797 "where", "where2", "insn".
1798
1799 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
1800
1801 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
1802 rather than modifying the stmt.
1803
1804 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1805
1806 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
1807 cgraph_state conversion.
1808
1809 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1810
1811 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1812 Strengthen local "insns" from rtx to rtx_insn *.
1813 (aarch64_set_frame_expr): Likewise for local "insn".
1814 (aarch64_save_or_restore_fprs): Likewise.
1815 (aarch64_save_or_restore_callee_save_registers): Likewise.
1816 (aarch64_expand_prologue): Likewise.
1817 (aarch64_expand_epilogue): Likewise.
1818 (aarch64_output_mi_thunk): Likewise.
1819 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
1820 "label2" from rtx to rtx_code_label *.
1821 (aarch64_split_atomic_op): Likewise for local "label".
1822
1823 2014-08-25 Martin Liska <mliska@suse.cz>
1824
1825 * cgraph.h (symtab_node):
1826 (bool needed_p (void)): created from decide_is_symbol_needed
1827 (bool referred_to_p (void)): created from referred_to_p
1828 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
1829 * cgraph.h (cgraph_node):
1830 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
1831 (void expand (void)): created from expand_function
1832 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
1833 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
1834 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
1835 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
1836 * cgraph.h (varpool_node):
1837 (static void add (tree decl): created from varpool_add_new_variable
1838 * cgraph.h (cgraph_edge):
1839 void remove (void);
1840 (void remove_caller (void)): created from cgraph_edge_remove_caller
1841 (void remove_callee (void)): created from cgraph_edge_remove_callee
1842 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
1843 created from cgraph_set_call_stmt
1844 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
1845 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
1846 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
1847 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
1848 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
1849 created from cgraph_speculative_call_info
1850 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
1851 int freq_scale, bool update_original)): created from cgraph_clone_edge
1852 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
1853 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
1854 (bool recursive_p (void)): created from cgraph_edge_recursive_p
1855 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
1856 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
1857 (static void rebuild_references (void)): created from cgraph_rebuild_references
1858 * cgraph.h (symbol_table):
1859 (create_reference): renamed from add_reference
1860 (maybe_create_reference): renamed from maybe_add_reference
1861 (void register_symbol (symtab_node *node)): new function
1862 (void clear_asm_symbols (void)): new function
1863 (void unregister (symtab_node *node)): new function
1864 (void release_symbol (cgraph_node *node, int uid)): new function
1865 (cgraph_node * allocate_cgraph_symbol (void)): new function
1866 (void initialize (void)): created from cgraph_init
1867 (symtab_node *first_symbol (void)):new function
1868 (asm_node *first_asm_symbol (void)):new function
1869 (symtab_node *first_defined_symbol (void)):new function
1870 (varpool_node *first_variable (void)):new function
1871 (varpool_node *next_variable (varpool_node *node)):new function
1872 (varpool_node *first_static_initializer (void)):new function
1873 (varpool_node *next_static_initializer (varpool_node *node)):new function
1874 (varpool_node *first_defined_variable (void)):new function
1875 (varpool_node *next_defined_variable (varpool_node *node)):new function
1876 (cgraph_node *first_defined_function (void)):new function
1877 (cgraph_node *next_defined_function (cgraph_node *node)):new function
1878 (cgraph_node *first_function (void)):new function
1879 (cgraph_node *next_function (cgraph_node *node)):new function
1880 (cgraph_node *first_function_with_gimple_body (void)):new function
1881 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
1882 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
1883 created from symtab_remove_unreachable_nodes
1884 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
1885 (void process_new_functions (void)): created from cgraph_process_new_functions
1886 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
1887 (bool output_variables (void)): created from varpool_node::output_variables
1888 (void output_asm_statements (void)): created from output_asm_statements
1889 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
1890 (void compile (void)): created from compile
1891 (void output_weakrefs (void)): created from output_weakrefs
1892 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
1893 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
1894 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
1895 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
1896 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
1897 created from cgraph_next_function_with_gimple_body
1898 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
1899 created from cgraph_remove_edge_removal_hook
1900 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
1901 created from cgraph_add_node_removal_hook
1902 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
1903 created from cgraph_remove_node_removal_hook
1904 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
1905 created from varpool_add_node_removal_hook
1906 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
1907 created from varpool_remove_node_removal_hook
1908 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
1909 created from cgraph_add_function_insertion_hook
1910 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
1911 created from cgraph_remove_function_insertion_hook
1912 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
1913 created from varpool_add_variable_insertion_hook
1914 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
1915 created from varpool_remove_variable_insertion_hook
1916 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
1917 created from cgraph_add_edge_duplication_hook
1918 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
1919 created from cgraph_remove_edge_duplication_hook
1920 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
1921 created from cgraph_add_node_duplication_hook
1922 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
1923 created from cgraph_remove_node_duplication_hook
1924 (void call_edge_removal_hooks (cgraph_edge *e)):
1925 created from cgraph_call_edge_removal_hooks
1926 (void call_cgraph_insertion_hooks (cgraph_node *node)):
1927 created from call_function_insertion_hooks
1928 (void call_cgraph_removal_hooks (cgraph_node *node)):
1929 created from cgraph_call_node_removal_hooks
1930 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
1931 created from cgraph_node::call_duplication_hooks
1932 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
1933 created from cgraph_call_edge_duplication_hooks
1934 (void call_varpool_removal_hooks (varpool_node *node)):
1935 created from varpool_call_node_removal_hooks
1936 (void call_varpool_insertion_hooks (varpool_node *node)):
1937 created from varpool_call_variable_insertion_hooks
1938 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
1939 created from insert_to_assembler_name_hash
1940 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
1941 created from unlink_from_assembler_name_hash
1942 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
1943 created from symtab_prevail_in_asm_name_hash
1944 (void symtab_initialize_asm_name_hash (void)):
1945 created from symtab_initialize_asm_name_hash
1946 (void change_decl_assembler_name (tree decl, tree name)):
1947 created from change_decl_assembler_name
1948 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
1949 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
1950 created from decl_assembler_name_hash
1951 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
1952 created from decl_assembler_name_equal
1953 (static hashval_t hash_node_by_assembler_name (const void *p)):
1954 created from hash_node_by_assembler_name
1955 (static int eq_assembler_name (const void *p1, const void *p2)):
1956 created from eq_assembler_name
1957
1958 2014-08-25 Marek Polacek <polacek@redhat.com>
1959
1960 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
1961
1962 2014-08-25 Petr Murzin <petr.murzin@intel.com>
1963
1964 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
1965 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
1966 SWI1248_AVX512BW mode iterator.
1967
1968 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
1969
1970 PR target/62111
1971 * config/sh/predicates.md (general_extend_operand): Disable
1972 TRUNCATE before reload completes.
1973
1974 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
1975
1976 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
1977
1978 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
1979
1980 PR target/61996
1981 * config/sh/sh.opt (musermode): Allow negative form.
1982 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
1983 targets that don't support it.
1984 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
1985 Document -mno-usermode option.
1986
1987 2014-08-24 Kito Cheng <kito@0xlab.org>
1988
1989 * system.h (CALLER_SAVE_PROFITABLE): Poison.
1990 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
1991 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
1992 * doc/tm.texi: Regenerate.
1993
1994 2014-08-24 Kito Cheng <kito@0xlab.org>
1995
1996 * ira.c: Fix typo in comment.
1997
1998 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1999
2000 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2001 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2002
2003 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2004
2005 PR target/62038
2006 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2007 last_address when the current function is a thunk.
2008 (pa_asm_output_mi_thunk): When we don't have named sections or they
2009 are not being used, check that thunk can reach the stub table with a
2010 short branch.
2011
2012 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2013
2014 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2015 rtx_insn *.
2016 (pass_web::execute): Likewise for local "insn".
2017
2018 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2019
2020 * var-tracking.c (struct micro_operation_def): Strengthen field
2021 "insn" from rtx to rtx_insn *.
2022 (struct emit_note_data_def): Likewise.
2023 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2024 (vt_stack_adjustments): Likewise for local "insn".
2025 (adjust_insn): Likewise for param "insn".
2026 (val_store): Likewise.
2027 (val_resolve): Likewise.
2028 (struct count_use_info): Likewise for field "insn".
2029 (log_op_type): Likewise for param "insn".
2030 (reverse_op): Likewise.
2031 (prepare_call_arguments): Likewise.
2032 (add_with_sets): The initial param takes an insn, but we can't
2033 yet strengthen it from rtx to rtx_insn * since it's used as a
2034 cselib_record_sets_hook callback. For now rename initial param
2035 from "insn" to "uncast_insn", and introduce a local "insn" of
2036 the stronger rtx_insn * type, with a checked cast.
2037 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2038 rtx_insn *.
2039 (emit_note_insn_var_location): Likewise.
2040 (emit_notes_for_changes): Likewise.
2041 (emit_notes_for_differences): Likewise.
2042 (next_non_note_insn_var_location): Likewise for return type and
2043 for param "insn".
2044 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2045 (vt_initialize): Likewise for local "insn".
2046 (delete_debug_insns): Likewise for locals "insn" and "next".
2047
2048 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2049
2050 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2051 rtx_insn *.
2052 (mark_constant_pool): Likewise for local "insn".
2053
2054 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2055
2056 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2057 rtx to rtx_insn *.
2058 (dead_debug_promote_uses): Likewise.
2059 (dead_debug_insert_temp): Likewise.
2060
2061 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2062
2063 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2064 from const_rtx to const rtx_insn *.
2065 (store_killed_after): Likewise. Strengthen locals "last", "act"
2066 from rtx to rtx_insn *.
2067 (store_killed_before): Strengthen param "insn" from const_rtx to
2068 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2069 (find_moveable_store): Strengthen param "insn" from rtx to
2070 rtx_insn *.
2071 (compute_store_table): Likewise for local "insn".
2072 (insert_insn_start_basic_block): Likewise for param "insn" and
2073 locals "prev", "before", "insn".
2074 (insert_store): For now, add a checked cast to rtx_insn * on the
2075 result of gen_move_insn.
2076 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2077 to rtx_insn *.
2078 (replace_store_insn): Likewise. For now, add a checked cast to
2079 rtx_insn * on the result of gen_move_insn.
2080
2081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2082
2083 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2084 rtx_insn *.
2085 (expand_sjlj_dispatch_table): Likewise.
2086
2087 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2088
2089 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2090 "insn" from rtx to rtx_insn *.
2091
2092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2093
2094 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2095 "insn" from rtx to rtx_insn *.
2096 (dup_block_and_redirect): Likewise for param 3 "before".
2097
2098 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2099 from rtx to rtx_insn *.
2100 (move_insn_for_shrink_wrap): Likewise.
2101 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2102 (dup_block_and_redirect): Likewise for param "before" and local
2103 "insn".
2104 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2105 "end".
2106 (convert_to_simple_return): Likewise for local "start".
2107
2108 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2109 Strengthen local "insn" from rtx to rtx_insn *, for use when
2110 invoking requires_stack_frame_p.
2111
2112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2113
2114 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2115 rtx_insn *.
2116 (speculate_expr): Likewise for locals "orig_insn_rtx",
2117 "spec_insn_rtx".
2118 (eq_transformed_insns): Likewise for locals "i1", "i2".
2119 (check_for_new_jump): Likewise for return type and local "end".
2120 (find_new_jump): Likewise for return type and local "jump".
2121 (sel_split_edge): Likewise for local "jump".
2122 (sel_create_recovery_block): Likewise.
2123 (sel_redirect_edge_and_branch_force): Likewise.
2124 (sel_redirect_edge_and_branch): Likewise.
2125
2126 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2127
2128 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2129 "new_insn" from rtx to rtx_insn *.
2130 (create_insn_rtx_with_rhs): Likewise for return type and for local
2131 "insn_rtx".
2132 (create_insn_rtx_with_lhs): Likewise.
2133 (create_speculation_check): Likewise for local "insn_rtx".
2134 (implicit_clobber_conflict_p): Likewise for local "insn".
2135 (get_expr_cost): Likewise.
2136 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2137 (move_cond_jump): Likewise for locals "next", "prev", "link",
2138 "head", "from", "to".
2139
2140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2141
2142 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2143 "next" from rtx to rtx_insn *.
2144 (find_conditional_protection): Likewise for local "next".
2145 (is_conditionally_protected): Likewise for local "insn1".
2146 (is_pfree): Likewise for locals "insn1", "insn2".
2147
2148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2149
2150 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2151 from rtx to rtx_insn *.
2152
2153 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2154 locals "insn1", "insn2" from rtx to rtx_insn *.
2155 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2156 locals "insn", "prev", "last_jump", "next_tail".
2157 (schedule_ebb): Likewise for params "head", "tail".
2158 (schedule_ebbs): Likewise for locals "tail", "head".
2159
2160 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2161 to rtx_insn on "last_insn" in one of the invocations of
2162 schedule_ebb.
2163
2164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2165
2166 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2167 "elem", "insn" from rtx to rtx_insn *.
2168 (change_spec_dep_to_hard): Likewise.
2169 (get_back_and_forw_lists): Likewise for local "con".
2170 (sd_add_dep): Likewise for locals "elem", "insn".
2171 (sd_resolve_dep): Likewise for locals "pro", "con".
2172 (sd_unresolve_dep): Likewise.
2173 (sd_delete_dep): Likewise.
2174 (chain_to_prev_insn): Likewise for local "pro".
2175 (find_inc): Likewise for locals "pro", "con".
2176
2177 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2178
2179 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2180 to rtx_insn *.
2181 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2182 const rtx_insn *.
2183 (modified_between_p): Strengthen local "insn" from rtx to
2184 rtx_insn *.
2185 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2186 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2187 const rtx_insn *.
2188
2189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2190
2191 * resource.c (next_insn_no_annul): Strengthen local "next" from
2192 rtx to rtx_insn *.
2193 (mark_referenced_resources): Likewise for local "insn".
2194
2195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2196
2197 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2198 to rtx_insn *.
2199 (find_reloads): Likewise for param 1.
2200 (subst_reloads): Likewise for sole param.
2201 (find_equiv_reg): Likwise for param 2.
2202 (regno_clobbered_p): Likwise for param 2.
2203 (reload): Likewise for param 1.
2204
2205 * caller-save.c (save_call_clobbered_regs): Strengthen local
2206 "insn" from rtx to rtx_insn *.
2207 (insert_one_insn): Likewise for local "insn".
2208
2209 * reload.c (this_insn): Likewise for this global.
2210 (find_reloads): Likewise for param "insn".
2211 (find_reloads_toplev): Likewise.
2212 (find_reloads_address): Likewise.
2213 (subst_reg_equivs): Likewise.
2214 (update_auto_inc_notes): Likewise.
2215 (find_reloads_address_1): Likewise.
2216 (find_reloads_subreg_address): Likewise.
2217 (subst_reloads): Likewise.
2218 (find_equiv_reg): Likewise, also for local "p".
2219 (regno_clobbered_p): Likewise for param "insn".
2220
2221 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2222 array.
2223 (spill_reg_store): Likewise for the elements of this array.
2224 (remove_init_insns): Likewise for local "equiv_insn".
2225 (will_delete_init_insn_p): Likewise for param "insn".
2226 (reload): Likewise for param ""first" and local "insn".
2227 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2228 rtx_insn *.
2229 (calculate_elim_costs_all_insns): Likewise.
2230 (delete_caller_save_insns): Likewise.
2231 (spill_failure): Likewise for param "insn".
2232 (delete_dead_insn): Likewise.
2233 (set_label_offsets): Likewise.
2234 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2235 "prev_insn".
2236 (elimination_costs_in_insn): Likewise for param "insn".
2237 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2238 when referring to an insn.
2239 (set_initial_label_offsets): Likewise.
2240 (set_offsets_for_label): Strengthen param "insn" from rtx to
2241 rtx_insn *.
2242 (init_eliminable_invariants): Likewise for param "first" and local
2243 "insn".
2244 (fixup_eh_region_note): Likewise for param "insn".
2245 (reload_as_needed): Likewise for locals "prev", "insn",
2246 "old_next", "old_prev", "next".
2247 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2248 "last".
2249 (reload_inheritance_insn): Strengthen elements of this array from
2250 rtx to rtx_insn *.
2251 (failed_reload): Likewise for param "insn".
2252 (choose_reload_regs): Likewise for local "insn". Replace use of
2253 NULL_RTX with NULL when referring to an insn.
2254 (input_reload_insns): Strengthen elements of this array from rtx
2255 to rtx_insn *.
2256 (other_input_address_reload_insns): Likewise for this global.
2257 (other_input_reload_insns): Likewise for this global.
2258 (input_address_reload_insns): Likwise for the elements of this
2259 array.
2260 (inpaddr_address_reload_insns): Likwise for the elements of this
2261 array.
2262 (output_reload_insns): Likewise for the elements of this array.
2263 (output_address_reload_insns): Likewise for the elements of this
2264 array.
2265 (outaddr_address_reload_insns): Likewise for the elements of this
2266 array.
2267 (operand_reload_insns): Likewise for this global.
2268 (other_operand_reload_insns): Likewise for this global.
2269 (other_output_reload_insns): Likewise for the elements of this
2270 array.
2271 (new_spill_reg_store): Likewise for the elements of this
2272 array.
2273 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2274 Strengthen local "where" from rtx * to rtx_insn **.
2275 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2276 from rtx to rtx_insn *.
2277 (do_input_reload): Likewise for local "insn".
2278 (do_output_reload): Likewise for local "insn".
2279 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2280 (emit_insn_if_valid_for_reload): Likewise for return type and local
2281 "last". Add checked cast to rtx_insn when returning "insn" since
2282 this has been through emit_insn.
2283 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2284 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2285 returning "insn" since it's been through
2286 emit_insn_if_valid_for_reload at this point.
2287 (delete_output_reload): Strengthen param "insn" and locals
2288 "output_reload_insn", "i2" from rtx to rtx_insn *.
2289 (delete_address_reloads): Likewise for params "dead_insn",
2290 "current_insn" and locals "prev", "next".
2291 (delete_address_reloads_1): Likewise for params "dead_insn",
2292 "current_insn" and locals "prev", "i2".
2293 (inc_for_reload): Likewise for locals "last", "add_insn".
2294 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2295 rtx_insn *.
2296
2297 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2298 param of this duplicate of the prototype from reload.h
2299
2300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2301
2302 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2303 rtx to rtx_insn *.
2304 (regstat_bb_compute_calls_crossed): Likewise.
2305
2306 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2307
2308 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2309 to rtx_insn *.
2310 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2311 with an insn.
2312 (regrename_analyze): Strengthen local "insn" from rtx to
2313 rtx_insn *.
2314 (scan_rtx_reg): Likewise for param "insn".
2315 (scan_rtx_address): Likewise.
2316 (scan_rtx): Likewise.
2317 (restore_operands): Likewise.
2318 (record_out_operands): Likewise.
2319 (build_def_use): Likewise for local "insn". Replace use of
2320 NULL_RTX with NULL when dealing with an insn.
2321
2322 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2323
2324 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2325 * reginfo.c (reg_scan): Likewise, also for local "insn".
2326 (reg_scan_mark_refs): Likewise for param "insn".
2327 (init_subregs_of_mode): Likewise for local "insn".
2328
2329 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2330
2331 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2332 "insn" from rtx to rtx_insn *.
2333 (replace_oldest_value_reg): Likewise for param "insn".
2334 (replace_oldest_value_addr): Likewise.
2335 (replace_oldest_value_mem): Likewise.
2336 (apply_debug_insn_changes): Likewise for local "last_insn".
2337 (copyprop_hardreg_forward_1): Likewise for local "insn".
2338
2339 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2340
2341 * reg-stack.c (next_flags_user): Strengthen return type and param
2342 "insn" from rtx to rtx_insn *.
2343 (straighten_stack): Likewise for param "insn".
2344 (check_asm_stack_operands): Likewise.
2345 (remove_regno_note): Likewise.
2346 (emit_pop_insn): Likewise for return type, param "insn", local
2347 "pop_insn".
2348 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2349 "limit" from rtx to rtx_insn *.
2350 (swap_to_top): Likewise for param "insn".
2351 (move_for_stack_reg): Likewise.
2352 (move_nan_for_stack_reg): Likewise.
2353 (swap_rtx_condition): Likewise.
2354 (compare_for_stack_reg): Likewise.
2355 (subst_all_stack_regs_in_debug_insn): Likewise.
2356 (subst_stack_regs_pat): Likewise, and local "insn2".
2357 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2358 rtx_insn *.
2359 (subst_stack_regs): Likewise.
2360 (change_stack): Likewise.
2361 (convert_regs_1): Likewise for locals "insn", "next".
2362
2363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2364
2365 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2366 rtx_insn *.
2367 (combine_set_extension): Likewise for param "curr_insn".
2368 (transform_ifelse): Likewise for param "def_insn".
2369 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2370 from vec<rtx> * to vec<rtx_insn *> *.
2371 (is_cond_copy_insn): Likewise for param "insn".
2372 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2373 to vec<rtx_insn *>.
2374 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2375 local "def_insn" from rtx to rtx_insn *.
2376 (get_sub_rtx): Likewise for param "def_insn".
2377 (merge_def_and_ext): Likewise.
2378 (combine_reaching_defs): Likewise.
2379 (add_removable_extension): Likewise for param "insn".
2380 (find_removable_extensions): Likewise for local "insn".
2381 (find_and_remove_re): Likewise for locals "curr_insn" and
2382 "def_insn". Strengthen locals "reinsn_del_list" and
2383 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2384
2385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2386
2387 * recog.c (split_insn): Strengthen param "insn" and locals
2388 "first", "last" from rtx to rtx_insn *.
2389 (split_all_insns): Likewise for locals "insn", "next".
2390 (split_all_insns_noflow): Likewise.
2391
2392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2393
2394 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2395 const rtx_insn *.
2396 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2397 (debug_rtx_find): Likewise for param 1 "x".
2398
2399 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2400 const_rtx to const rtx_insn *. Likewise for local "insn".
2401 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2402 (debug_rtx_find): Likewise for param 1 "x".
2403 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2404 from const_rtx to const rtx_insn * within the appropriate cases of
2405 the switch statement.
2406
2407 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2408 Strengthen local "insns" from rtx to rtx_insn * since this is
2409 passed to a call to debug_rtx_list.
2410
2411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2412
2413 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2414 to rtx_insn *.
2415
2416 * function.c (stack_protect_epilogue): Add checked cast to
2417 rtx_insn for now when invoking predict_insn_def.
2418
2419 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2420 rtx_insn *.
2421 (predict_insn_def): Likewise.
2422 (rtl_predict_edge): Likewise for local "last_insn".
2423 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2424 const rtx_insn *.
2425 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2426 to rtx_insn *.
2427 (bb_estimate_probability_locally): Likewise for local "last_insn".
2428 (expensive_function_p): Likewise for local "insn".
2429
2430 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2431 local "jmp", since this is used when invoking predict_insn_def.
2432
2433 2014-08-22 Marek Polacek <polacek@redhat.com>
2434
2435 PR c++/62199
2436 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2437
2438 2014-08-22 Marek Polacek <polacek@redhat.com>
2439
2440 PR c/61271
2441 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2442 a comparison in parens.
2443 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2444 in parens.
2445
2446 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2447
2448 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2449 rtx_insn *.
2450
2451 * cprop.c (fis_get_condition): Likewise.
2452
2453 * postreload.c (reload_cse_regs): Likewise for param "first".
2454 (reload_cse_simplify): Likewise for param "insn".
2455 (reload_cse_regs_1): Likewise for local "insn".
2456 (reload_cse_simplify_set): Likewise for param "insn".
2457 (reload_cse_simplify_operands): Likewise.
2458 (struct reg_use): Likewise for field "insn".
2459 (reload_combine_purge_insn_uses): Likewise for param "insn".
2460 (fixup_debug_insns): Likewise for params "from", "to" and local
2461 "insn".
2462 (try_replace_in_use): Likewise for local "use_insn".
2463 (reload_combine_recognize_const_pattern): Likewise for param
2464 "insn" and locals "add_moved_after_insn", "use_insn".
2465 (reload_combine_recognize_pattern): Likewise for param "insn" and
2466 local "prev".
2467 (reload_combine): Likewise for locals "insn", "prev".
2468 (reload_combine_note_use): Likewise for param "insn".
2469 (move2add_use_add2_insn): Likewise.
2470 (move2add_use_add3_insn): Likewise.
2471 (reload_cse_move2add): Likewise, also for local "next".
2472 (move2add_note_store): Likewise for local "insn".
2473
2474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2475
2476 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2477 rtx to rtx_insn *.
2478 (struct unoccr): Likewise.
2479 (struct modifies_mem): Likewise.
2480 (alloc_mem): Likewise for local "insn".
2481 (insert_expr_in_table): Likewise for param "insn".
2482 (dump_expr_hash_table_entry): Likewise for local "insn".
2483 (oprs_unchanged_p): Likewise for param "insn".
2484 (load_killed_in_block_p): Likewise for local "setter".
2485 (record_last_reg_set_info): Likewise for param "insn".
2486 (record_last_reg_set_info_regno): Likewise.
2487 (record_last_mem_set_info): Likewise.
2488 (record_last_set_info): Likewise for local "last_set_insn".
2489 (record_opr_changes): Likewise for param "insn".
2490 (hash_scan_set): Likewise.
2491 (compute_hash_table): Likewise for local "insn".
2492 (get_avail_load_store_reg): Likewise for param "insn".
2493 (eliminate_partially_redundant_load): Likewise, also for locals
2494 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2495 RTX for insns.
2496 (eliminate_partially_redundant_loads): Likewise for local "insn".
2497
2498 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2499
2500 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2501 rtx to rtx_insn *.
2502 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2503 (expand_twoval_unop): Likewise for locals entry_last", "last".
2504 (expand_twoval_binop): Likewise.
2505 (expand_twoval_binop_libfunc): Likewise for local "insns".
2506 (widen_leading): Likewise for local "last".
2507 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2508 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2509 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2510 (expand_parity): Likewise for locals "last" and "seq".
2511 (expand_ffs): Likewise for local "seq". Strengthen local
2512 "nonzero_label" from rtx to rtx_code_label *.
2513 (expand_absneg_bit): Strengthen local "insns" from rtx to
2514 rtx_insn *.
2515 (expand_unop_direct): Likewise for local "last".
2516 (expand_unop): Likewise for locals "last", "insns".
2517 (expand_abs_nojump): Likewise for local "last".
2518 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2519 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2520 rtx_insn *.
2521 (expand_copysign_absneg): Strengthen local "label" from rtx to
2522 rtx_code_label *.
2523 (expand_copysign_bit): Strengthen local "insns" from rtx to
2524 rtx_insn *.
2525 (struct no_conflict_data): Likewise for fields "first", "insn".
2526 (emit_libcall_block_1): Likewise for param "insns" and locals
2527 "next", "last", "insn".
2528 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2529 on "insns" when invoking emit_libcall_block_1. Ultimately we
2530 want to strengthen insns itself.
2531 (prepare_cmp_insn): Strengthen local "last" from rtx to
2532 rtx_insn *.
2533 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2534 (prepare_float_lib_cmp): Likewise for local "insns".
2535 (emit_conditional_move): Likewise for local "last".
2536 (emit_conditional_add): Likewise.
2537 (have_sub2_insn): Likewise for local "seq".
2538 (expand_float): Likewise for local "insns". Strengthen locals
2539 "label", "neglabel" from rtx to rtx_code_label *.
2540 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2541 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2542 (expand_fixed_convert): Likewise for local "insns" (to
2543 rtx_insn *).
2544 (expand_sfix_optab): Likewise for local "last".
2545 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2546 to rtx_code_label *.
2547 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2548 from rtx to rtx_insn *.
2549 (expand_atomic_fetch_op): Likewise for local "insn".
2550 (maybe_legitimize_operand_same_code): Likewise for local "last".
2551 (maybe_legitimize_operands): Likewise.
2552
2553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2554
2555 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2556 "insn" from rtx to rtx_insn *.
2557 (ps_rtl_insn): Likewise for return type.
2558 (doloop_register_get): Likewise for params "head", "tail" and
2559 locals "insn", "first_insn_not_to_check".
2560 (schedule_reg_move): Likewise for local "this_insn".
2561 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2562 of gen_move_insn for now.
2563 (reset_sched_times): Strengthen local "insn" from rtx to
2564 rtx_insn *.
2565 (permute_partial_schedule): Likewise.
2566 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2567 (dump_insn_location): Likewise for param "insn".
2568 (loop_canon_p): Likewise for local "insn".
2569 (sms_schedule): Likewise.
2570 (print_partial_schedule): Likewise.
2571 (ps_has_conflicts): Likewise.
2572
2573 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2574
2575 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2576 "tailp" from rtx * to rtx_insn **.
2577
2578 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2579 from rtx to rtx_insn *.
2580 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2581 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2582 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2583 rtx to rtx_insn *.
2584 * modulo-sched.c (const_iteration_count): Strengthen return type
2585 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2586 use of NULL_RTX with NULL when working with insns.
2587 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2588 to rtx_insn *.
2589 (sms_schedule): Likewise.
2590 * sched-rgn.c (init_ready_list): Likewise, also for locals
2591 "src_head" and "src_next_tail".
2592 (compute_block_dependences): Likewise.
2593 (free_block_dependencies): Likewise.
2594 (debug_rgn_dependencies): Likewise.
2595 (free_rgn_deps): Likewise.
2596 (compute_priorities): Likewise.
2597 (schedule_region): Likewise.
2598 * sel-sched.c (find_ebb_boundaries): Likewise.
2599
2600 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
2601 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
2602
2603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2604
2605 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
2606 from rtx to rtx_insn *.
2607 (new_seginfo): Likewise for param "insn".
2608 (create_pre_exit): Likewise for locals "last_insn",
2609 "before_return_copy", "return_copy".
2610 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
2611 "mode_set".
2612
2613 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2614
2615 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
2616 from rtx to rtx_insn *.
2617 (lra_push_insn): Likewise for 1st param.
2618 (lra_push_insn_and_update_insn_regno_info): Likewise.
2619 (lra_pop_insn): Likewise for return type.
2620 (lra_invalidate_insn_data): Likewise for 1st param.
2621 (lra_set_insn_deleted): Likewise.
2622 (lra_delete_dead_insn): Likewise.
2623 (lra_process_new_insns): Likewise for first 3 params.
2624 (lra_set_insn_recog_data): Likewise for 1st param.
2625 (lra_update_insn_recog_data): Likewise.
2626 (lra_set_used_insn_alternative): Likewise.
2627 (lra_invalidate_insn_regno_info): Likewise.
2628 (lra_update_insn_regno_info): Likewise.
2629 (lra_former_scratch_operand_p): Likewise.
2630 (lra_eliminate_regs_1): Likewise.
2631 (lra_get_insn_recog_data): Likewise.
2632
2633 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
2634 rtx to rtx_insn *.
2635
2636 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
2637 "mv1" and "mv2".
2638 (substitute_within_insn): New.
2639 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
2640 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
2641 Replace call to "substitute" with call to substitute_within_insn.
2642
2643 * lra-constraints.c (curr_insn): Strengthen from rtx to
2644 rtx_insn *.
2645 (get_equiv_with_elimination): Likewise for param "insn".
2646 (match_reload): Strengthen params "before" and "after" from rtx *
2647 to rtx_insn **.
2648 (emit_spill_move): Likewise for return type. Add a checked cast
2649 to rtx_insn * on result of gen_move_insn for now.
2650 (check_and_process_move): Likewise for local "before". Replace
2651 NULL_RTX with NULL when referring to insns.
2652 (process_addr_reg): Strengthen params "before" and "after" from
2653 rtx * to rtx_insn **.
2654 (insert_move_for_subreg): Likewise.
2655 (simplify_operand_subreg): Strengthen locals "before" and "after"
2656 from rtx to rtx_insn *.
2657 (process_address_1): Strengthen params "before" and "after" from
2658 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
2659 rtx to rtx_insn *.
2660 (process_address): Strengthen params "before" and "after" from
2661 rtx * to rtx_insn **.
2662 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
2663 (curr_insn_transform): Strengthen locals "before" and "after"
2664 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
2665 to insns.
2666 (loc_equivalence_callback): Update cast of "data", changing
2667 resulting type from rtx to rtx_insn *.
2668 (substitute_pseudo_within_insn): New.
2669 (inherit_reload_reg): Strengthen param "insn" from rtx to
2670 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
2671 NULL when referring to insns. Add a checked cast to rtx_insn *
2672 when using usage_insn to invoke lra_update_insn_regno_info.
2673 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
2674 likewise for locals "restore", "save". Add checked casts to
2675 rtx_insn * when using usage_insn to invoke
2676 lra_update_insn_regno_info and lra_process_new_insns. Replace
2677 NULL_RTX with NULL when referring to insns.
2678 (split_if_necessary): Strengthen param "insn" from rtx to
2679 rtx_insn *.
2680 (update_ebb_live_info): Likewise for params "head", "tail" and local
2681 "prev_insn".
2682 (get_last_insertion_point): Likewise for return type and local "insn".
2683 (get_live_on_other_edges): Likewise for local "last".
2684 (inherit_in_ebb): Likewise for params "head", "tail" and locals
2685 "prev_insn", "next_insn", "restore".
2686 (remove_inheritance_pseudos): Likewise for local "prev_insn".
2687 (undo_optional_reloads): Likewise for local "insn".
2688
2689 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
2690 "insn".
2691 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
2692 insns.
2693 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
2694 rtx_insn *.
2695 (spill_pseudos): Likewise for local "insn".
2696 (init_elimination): Likewise.
2697 (process_insn_for_elimination): Likewise for param "insn".
2698
2699 * lra-lives.c (curr_insn): Likewise.;
2700
2701 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
2702 (remove_pseudos): Likewise for param "insn".
2703 (spill_pseudos): Likewise for local "insn".
2704 (lra_final_code_change): Likewise for locals "insn", "curr".
2705
2706 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
2707 (lra_set_insn_deleted): Likewise.
2708 (lra_delete_dead_insn): Likewise, and for local "prev".
2709 (new_insn_reg): Likewise for param "insn".
2710 (lra_set_insn_recog_data): Likewise.
2711 (lra_update_insn_recog_data): Likewise.
2712 (lra_set_used_insn_alternative): Likewise.
2713 (get_insn_freq): Likewise.
2714 (invalidate_insn_data_regno_info): Likewise.
2715 (lra_invalidate_insn_regno_info): Likewise.
2716 (lra_update_insn_regno_info): Likewise.
2717 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
2718 vec<rtx_insn *>.
2719 (lra_push_insn_1): Strengthen param "insn" from rtx to
2720 rtx_insn *.
2721 (lra_push_insn): Likewise.
2722 (lra_push_insn_and_update_insn_regno_info): Likewise.
2723 (lra_pop_insn): Likewise for return type and local "insn".
2724 (push_insns): Likewise for params "from", "to", and local "insn".
2725 (setup_sp_offset): Likewise for params "from", "last" and locals
2726 "before", "insn".
2727 (lra_process_new_insns): Likewise for params "insn", "before",
2728 "after" and local "last".
2729 (struct sloc): Likewise for field "insn".
2730 (lra_former_scratch_operand_p): Likewise for param "insn".
2731 (remove_scratches): Likewise for locals "insn", "last".
2732 (check_rtl): Likewise for local "insn".
2733 (add_auto_inc_notes): Likewise for param "insn".
2734 (update_inc_notes): Likewise for local "insn".
2735 (lra): Replace NULL_RTX with NULL when referring to insn.
2736
2737 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2738
2739 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
2740 to rtx_insn *.
2741 (resolve_reg_notes): Likewise.
2742 (resolve_simple_move): Likewise for return type, param "insn", and
2743 locals "insns", "minsn".
2744 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
2745 (resolve_use): Likewise.
2746 (resolve_debug): Likewise.
2747 (find_decomposable_shift_zext): Likewise.
2748 (resolve_shift_zext): Likewise for return type, param "insn", and
2749 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
2750 (decompose_multiword_subregs): Likewise for local "insn",
2751 "orig_insn", "decomposed_shift", "end".
2752
2753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2754
2755 * basic-block.h (basic_block split_edge_and_insert): Strengthen
2756 param "insns" from rtx to rtx_insn *.
2757
2758 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
2759 rtx to rtx_insn *.
2760 (struct iv_to_split): Likewise.
2761 (loop_exit_at_end_p): Likewise for local "insn".
2762 (split_edge_and_insert): Likewise for param "insns".
2763 (compare_and_jump_seq): Likewise for return type, param "cinsn",
2764 and locals "seq", "jump".
2765 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
2766 "branch_code"; update invocations of compare_and_jump_seq to
2767 eliminate NULL_RTX in favor of NULL.
2768 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
2769 rtx to rtx_insn *.
2770 (reset_debug_uses_in_loop): Likewise.
2771 (analyze_insn_to_expand_var): Likewise for param "insn".
2772 (analyze_iv_to_split_insn): Likewise.
2773 (analyze_insns_in_loop): Likewise for local "insn".
2774 (insert_base_initialization): Likewise for param
2775 "insn" and local "seq".
2776 (split_iv): Likewise for param "insn" and local "seq".
2777 (expand_var_during_unrolling): Likewise for param "insn".
2778 (insert_var_expansion_initialization): Likewise for local "seq".
2779 (combine_var_copies_in_loop_exit): Likewise.
2780 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
2781 "insn".
2782 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
2783 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
2784 "next".
2785
2786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2787
2788 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
2789 rtx_insn *.
2790 (iv_analyze_result): Likewise.
2791 (iv_analyze_expr): Likewise.
2792 (biv_p): Likewise.
2793
2794 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
2795 local "def_insn" from rtx to rtx_insn *.
2796 (get_biv_step_1): Likewise for local "insn".
2797 (iv_analyze_expr): Likewise for param "insn".
2798 (iv_analyze_def): Likewise for local "insn".
2799 (iv_analyze_op): Likewise for param "insn".
2800 (iv_analyze): Likewise.
2801 (iv_analyze_result): Likewise.
2802 (biv_p): Likewise.
2803 (suitable_set_for_replacement): Likewise.
2804 (simplify_using_initial_values): Likewise for local "insn".
2805 (iv_number_of_iterations): Likewise for param "insn".
2806 (check_simple_exit): Add checked cast to rtx_insn when invoking
2807 iv_number_of_iterations for now (until get_condition is
2808 strengthened).
2809
2810 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
2811 "insn" from rtx to rtx_insn *.
2812 (analyze_insns_in_loop): Likewise for local "insn".
2813
2814 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2815
2816 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
2817 to rtx_insn *.
2818 (struct invariant): Likewise.
2819 (hash_invariant_expr_1): Likewise for param "insn".
2820 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
2821 (find_exits): Likewise for local "insn".
2822 (create_new_invariant): Likewise for param "insn".
2823 (check_dependencies): Likewise.
2824 (find_invariant_insn): Likewise.
2825 (record_uses): Likewise.
2826 (find_invariants_insn): Likewise.
2827 (find_invariants_bb): Likewise for local "insn".
2828 (get_pressure_class_and_nregs): Likewise for param "insn".
2829 (calculate_loop_reg_pressure): Likewise for local "insn".
2830
2831 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2832
2833 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
2834 to rtx_insn *.
2835 (add_test): Likewise for locals "seq", "jump".
2836 (doloop_modify): Likewise for locals "sequence", "jump_insn".
2837
2838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2839
2840 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
2841 rtx_insn *.
2842 (rebuild_jump_labels_chain): Likewise for param "chain".
2843
2844 * cfgexpand.c (pass_expand::execute): Add checked cast to
2845 rtx_insn * when calling rebuild_jump_labels_chain in region where
2846 we know e->insns.r is non-NULL.
2847
2848 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
2849 rtx_insn *.
2850 (rebuild_jump_labels): Likewise.
2851 (rebuild_jump_labels_chain): Likewise for param "chain".
2852 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
2853 (init_label_info): Likewise for param "f".
2854 (maybe_propagate_label_ref): Likewise for params "jump_insn",
2855 "prev_nonjump_insn".
2856 (mark_all_labels): Likewise for param "f" and locals "insn",
2857 "prev_nonjump_insn".
2858
2859 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2860
2861 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
2862 from rtx to rtx_insn *insn.
2863 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
2864 (ira_add_allocno_copy): Likewise.
2865 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
2866 rtx to rtx_insn *.
2867 (ira_create_copy): Likewise.
2868 (ira_add_allocno_copy): Likewise.
2869 (create_bb_allocnos): Likewise for local "insn".
2870 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
2871 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
2872 process_regs_for_copy for rtx_insn * param.
2873 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
2874 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
2875 process_regs_for_copy for rtx_insn * param.
2876 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
2877 * ira-costs.c (record_reg_classes): Likewise for param "insn".
2878 (record_operand_costs): Likewise.
2879 (scan_one_insn): Likewise for return type, and for param "insn".
2880 (process_bb_for_costs): Likewise for local "insn".
2881 (process_bb_node_for_hard_reg_moves): Likewise.
2882 * ira-emit.c (struct move): Likewise for field "insn".
2883 (create_move): Eliminate use of NULL_RTX when dealing with an
2884 rtx_insn *.
2885 (emit_move_list): Strengthen return type and locals "result",
2886 "insn" from rtx to rtx_insn *insn.
2887 (emit_moves): Likewise for locals "insns", "tmp".
2888 (ira_emit): Likewise for local "insn".
2889 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
2890 "insn".
2891 (find_call_crossed_cheap_reg): Likewise.
2892 (process_bb_node_lives): Likewise for local "insn".
2893 * ira.c (decrease_live_ranges_number): Likewise.
2894 (compute_regs_asm_clobbered): Likewise.
2895 (build_insn_chain): Likewise.
2896 (find_moveable_pseudos): Likewise, also locals "def_insn",
2897 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
2898 to rtx_insn **. Add a checked cast when assigning from
2899 "closest_use" into closest_uses array in a region where we know
2900 it's a non-NULL insn.
2901 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
2902 to rtx_insn *.
2903 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
2904 "last_interesting_insn", "uin".
2905 (move_unallocated_pseudos): Likewise for locals "def_insn",
2906 "move_insn", "newinsn".
2907
2908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2909
2910 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
2911 Strengthen locals "done_label", "do_error" from rtx to
2912 rtx_code_label *.
2913 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
2914 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
2915 rtx_code_label *.
2916 (ubsan_expand_si_overflow_neg_check): Likewise for locals
2917 "done_label", "do_error" to rtx_code_label * and local "last" to
2918 rtx_insn *.
2919 (ubsan_expand_si_overflow_mul_check): Likewise for locals
2920 "done_label", "do_error", "large_op0", "small_op0_large_op1",
2921 "one_small_one_large", "both_ops_large", "after_hipart_neg",
2922 "after_lopart_neg", "do_overflow", "hipart_different" to
2923 rtx_code_label * and local "last" to rtx_insn *.
2924
2925 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2926
2927 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
2928 "insn" and "move_insn" from rtx to rtx_insn *.
2929
2930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2931
2932 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
2933 rtx_insn *.
2934 (cheap_bb_rtx_cost_p): Likewise.
2935 (first_active_insn): Likewise for return type and local "insn".
2936 (last_active_insn): Likewise for return type and locals "insn",
2937 "head".
2938 (struct noce_if_info): Likewise for fields "jump", "insn_a",
2939 "insn_b".
2940 (end_ifcvt_sequence): Likewise for return type and locals "insn",
2941 "seq".
2942 (noce_try_move): Likewise for local "seq".
2943 (noce_try_store_flag): Likewise.
2944 (noce_try_store_flag_constants): Likewise.
2945 (noce_try_addcc): Likewise.
2946 (noce_try_store_flag_mask): Likewise.
2947 (noce_try_cmove): Likewise.
2948 (noce_try_minmax): Likewise.
2949 (noce_try_abs): Likewise.
2950 (noce_try_sign_mask): Likewise.
2951 (noce_try_bitop): Likewise.
2952 (noce_can_store_speculate_p): Likewise for local "insn".
2953 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
2954 seq".
2955 (check_cond_move_block): Likewise for local "insn".
2956 (cond_move_convert_if_block): Likewise.
2957 (cond_move_process_if_block): Likewise for locals "seq",
2958 "loc_insn".
2959 (noce_find_if_block): Likewise for local "jump".
2960 (merge_if_block): Likewise for local "last".
2961 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
2962 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
2963 (block_has_only_trap): Likewise for return type and local "trap".
2964 (find_if_case_1): Likewise for local "jump".
2965 (dead_or_predicable): Likewise for locals "head", "end", "jump",
2966 "insn".
2967
2968 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2969
2970 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
2971 "last_insn", "loop_end" from rtx to rtx_insn *.
2972
2973 * hw-doloop.c (scan_loop): Likewise for local "insn".
2974 (discover_loop): Likewise for param "tail_insn".
2975 (discover_loops): Likewise for local "tail".
2976
2977 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
2978 cast to rtx_insn * when assigning from an rtx local to a
2979 hwloop_info's "last_insn" field.
2980
2981 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2982
2983 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
2984 (add_delay_dependencies): Strengthen local "pro" from rtx to
2985 rtx_insn *.
2986 (recompute_todo_spec): Likewise.
2987 (dep_cost_1): Likewise for locals "insn", "used".
2988 (schedule_insn): Likewise for local "dbg".
2989 (schedule_insn): Likewise for locals "pro", "next".
2990 (unschedule_insns_until): Likewise for local "con".
2991 (restore_pattern): Likewise for local "next".
2992 (estimate_insn_tick): Likewise for local "pro".
2993 (resolve_dependencies): Likewise for local "next".
2994 (fix_inter_tick): Likewise.
2995 (fix_tick_ready): Likewise for local "pro".
2996 (add_to_speculative_block): Likewise for locals "check", "twin",
2997 "pro".
2998 (sched_extend_bb): Likewise for locals "end", "insn".
2999 (init_before_recovery): Likewise for local "x".
3000 (sched_create_recovery_block): Likewise for local "barrier".
3001 (create_check_block_twin): Likewise for local "pro".
3002 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3003 "consumer".
3004 (unlink_bb_notes): Update for change to type of bb_header.
3005 Strengthen locals "prev", "label", "note", "next" from rtx to
3006 rtx_insn *.
3007 (clear_priorities): Likewise for local "pro".
3008
3009 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3010
3011 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3012 rtx_insn *.
3013 (test_insn): Likewise for this global.
3014 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3015 const rtx_insn *.
3016 (oprs_anticipatable_p): Likewise.
3017 (oprs_available_p): Likewise.
3018 (insert_expr_in_table): Strengthen param "insn" from rtx to
3019 rtx_insn *.
3020 (hash_scan_set): Likewise.
3021 (hash_scan_clobber): Likewise.
3022 (hash_scan_call): Likewise.
3023 (hash_scan_insn): Likewise.
3024 (compute_hash_table_work): Likewise for local "insn".
3025 (process_insert_insn): Likewise for return type and local "pat".
3026 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3027 "pat", "pat_end", "maybe_cc0_setter".
3028 (pre_edge_insert): Likewise for local "insn".
3029 (pre_insert_copy_insn): Likewise for param "insn".
3030 (pre_insert_copies): Likewise for local "insn".
3031 (struct set_data): Likewise for field "insn".
3032 (single_set_gcse): Likewise for param "insn".
3033 (gcse_emit_move_after): Likewise.
3034 (pre_delete): Likewise for local "insn".
3035 (update_bb_reg_pressure): Likewise for param "from" and local
3036 "insn".
3037 (should_hoist_expr_to_dom): Likewise for param "from".
3038 (hoist_code): Likewise for local "insn".
3039 (get_pressure_class_and_nregs): Likewise for param "insn".
3040 (calculate_bb_reg_pressure): Likewise for local "insn".
3041 (compute_ld_motion_mems): Likewise.
3042
3043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3044
3045 * genpeep.c (main): Rename param back from "uncast_ins1" to
3046 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3047 checked cast.
3048
3049 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3050
3051 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3052
3053 PR target/62195
3054 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3055 documentation to state it is only for VSX operations.
3056
3057 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3058 constraint only active if VSX.
3059
3060 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3061 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3062 (lfiwzx): Likewise.
3063
3064 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3065
3066 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3067 Strengthen local "insn" from rtx to rtx_insn *.
3068 (use_killed_between): Likewise for param "target_insn".
3069 (all_uses_available_at): Likewise for param "target_insn" and
3070 local "next".
3071 (update_df_init): Likewise for params "def_insn", "insn".
3072 (update_df): Likewise for param "insn".
3073 (try_fwprop_subst): Likewise for param "def_insn" and local
3074 "insn".
3075 (free_load_extend): Likewise for param "insn".
3076 (forward_propagate_subreg): Likewise for param "def_insn" and
3077 local "use_insn".
3078 (forward_propagate_asm): Likewise for param "def_insn" and local
3079 "use_insn".
3080 (forward_propagate_and_simplify): Likewise for param "def_insn"
3081 and local "use_insn".
3082 (forward_propagate_into): Likewise for locals "def_insn" and
3083 "use_insn".
3084
3085 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3086
3087 * function.c (emit_initial_value_sets): Strengthen local "seq"
3088 from rtx to rtx_insn *.
3089 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3090 local "seq".
3091 (instantiate_virtual_regs): Likewise for local "insn".
3092 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3093 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3094 (expand_function_end): Likewise for locals "insn" and "seq".
3095 (epilogue_done): Likewise for local "insn".
3096 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3097 "last", "trial".
3098 (reposition_prologue_and_epilogue_notes): Likewise for locals
3099 "insn", "last", "note", "first".
3100 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3101 (pass_match_asm_constraints::execute): Likewise for local "insn".
3102
3103 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3104
3105 * output.h (final_scan_insn): Strengthen return type from rtx to
3106 rtx_insn *.
3107 (final_forward_branch_p): Likewise for param.
3108 (current_output_insn): Likewise for this global.
3109
3110 * final.c (rtx debug_insn): Likewise for this variable.
3111 (current_output_insn): Likewise.
3112 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3113 adding "insn" back in as an rtx_insn * with a checked cast, so
3114 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3115 first param.
3116 (compute_alignments): Strengthen local "label" from rtx to
3117 rtx_insn *.
3118 (shorten_branches): Rename param from "first" to "uncast_first",
3119 introducing a new local rtx_insn * "first" using a checked cast to
3120 effectively strengthen "first" from rtx to rtx_insn * without
3121 affecting the type signature. Strengthen locals "insn", "seq",
3122 "next", "label" from rtx to rtx_insn *.
3123 (change_scope): Strengthen param "orig_insn" and local "insn" from
3124 rtx to rtx_insn *.
3125 (final_start_function): Rename param from "first" to "uncast_first",
3126 introducing a new local rtx_insn * "first" using a checked cast to
3127 effectively strengthen "first" from rtx to rtx_insn * without
3128 affecting the type signature. Strengthen local "insn" from rtx to
3129 rtx_insn *.
3130 (dump_basic_block_info): Strengthen param "insn" from rtx to
3131 rtx_insn *.
3132 (final): Rename param from "first" to "uncast_first",
3133 introducing a new local rtx_insn * "first" using a checked cast to
3134 effectively strengthen "first" from rtx to rtx_insn * without
3135 affecting the type signature. Strengthen locals "insn", "next"
3136 from rtx to rtx_insn *.
3137 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3138 rtx_insn *.
3139 (call_from_call_insn): Strengthen param "insn" from rtx to
3140 rtx_call_insn *.
3141 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3142 introducing a new local rtx_insn * "insn" using a checked cast to
3143 effectively strengthen "insn" from rtx to rtx_insn * without
3144 affecting the type signature. Strengthen return type and locals
3145 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3146 now-redundant checked cast to rtx_insn * from both invocations of
3147 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3148 introducing a local "call_insn" for use when invoking
3149 call_from_call_insn.
3150 (notice_source_line): Strengthen param "insn" from rtx to
3151 rtx_insn *.
3152 (leaf_function_p): Likewise for local "insn".
3153 (final_forward_branch_p): Likewise.
3154 (leaf_renumber_regs): Likewise for param "first".
3155 (rest_of_clean_state): Likewise for locals "insn" and "next".
3156 (self_recursive_call_p): Likewise for param "insn".
3157 (collect_fn_hard_reg_usage): Likewise for local "insn".
3158 (get_call_fndecl): Likewise for param "insn".
3159 (get_call_cgraph_rtl_info): Likewise.
3160 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3161 introducing a new local rtx_insn * "insn" using a checked cast to
3162 effectively strengthen "insn" from rtx to rtx_insn * without
3163 affecting the type signature.
3164
3165 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3166 cast when assigning from param "insn" to current_output_insn.
3167 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3168 so that we can assign it back to current_output_insn.
3169
3170 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3171
3172 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3173 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3174 atmxt540s and atmxt540sreva devices.
3175 * config/avr/avr-tables.opt: Regenerate.
3176 * config/avr/t-multilib: Regenerate.
3177 * doc/avr-mmcu.texi: Regenerate.
3178
3179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3180
3181 * expr.c (convert_move): Strengthen local "insns" from rtx to
3182 rtx_insn *.
3183 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3184 "top_label" from rtx to rtx_code_label *.
3185 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3186 rtx_insn *.
3187 (emit_single_push_insn): Likewise for locals "prev", "last".
3188 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3189 to rtx_code_label *.
3190 (store_constructor): Likewise for locals "loop_start", "loop_end".
3191 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3192 rtx_insn *.
3193 (expand_expr_real_2): Likewise.
3194 (expand_expr_real_1): Strengthen local "label" from rtx to
3195 rtx_code_label *.
3196
3197 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3198
3199 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3200 from rtx to rtx_insn *.
3201 (store_bit_field_1): Likewise.
3202 (extract_bit_field_1): Likewise.
3203 (expand_mult_const): Likewise for local "insns".
3204 (expmed_mult_highpart): Strengthen local "label" from rtx to
3205 rtx_code_label *.
3206 (expand_smod_pow2): Likewise.
3207 (expand_sdiv_pow2): Likewise.
3208 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3209 rtx_insn *. Strengthen locals "label", "label1", "label2",
3210 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3211 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3212 (emit_store_flag): Likewise.
3213 (emit_store_flag_force): Strengthen local "label" from rtx to
3214 rtx_code_label *.
3215 (do_cmp_and_jump): Likewise for param "label".
3216
3217 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3218
3219 * explow.c (force_reg): Strengthen local "insn" from rtx to
3220 rtx_insn *.
3221 (adjust_stack_1): Likewise.
3222 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3223 "final_label", "available_label", "space_available" from rtx to
3224 rtx_code_label *.
3225 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3226 (anti_adjust_stack_and_probe): Likewise.
3227
3228 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3229
3230 * except.h (sjlj_emit_function_exit_after): Strengthen param
3231 "after" from rtx to rtx_insn *. This is only called with
3232 result of get_last_insn (in function.c) so type-change should be
3233 self-contained.
3234
3235 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3236 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3237 to rtx_insn *. These fields are only used from except.c so this
3238 type-change should be self-contained to this patch.
3239
3240 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3241 local "last" from rtx to rtx_insn *.
3242 (dw2_build_landing_pads): Likewise for local "seq".
3243 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3244 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3245 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3246 rtx to rtx_insn *.
3247 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3248 to rtx_insn *.
3249 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3250 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3251 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3252 referring to an insn. Strengthen local "dispatch_label" from
3253 rtx to rtx_code_label *.
3254 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3255 rtx_insn *.
3256 (expand_eh_return): Strengthen local "around_label" from
3257 rtx to rtx_code_label *.
3258 (convert_to_eh_region_ranges): Strengthen locals "iter",
3259 "last_action_insn", "first_no_action_insn",
3260 "first_no_action_insn_before_switch",
3261 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3262
3263 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3264
3265 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3266 from rtx to rtx_insn *.
3267 (cached_next_real_insn): Likewise.
3268 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3269 working with insns.
3270 (dwarf2out_var_location): Strengthen locals "next_real",
3271 "next_note", "expected_next_loc_note", "last_start", "insn" from
3272 rtx to rtx_insn *.
3273
3274 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3275
3276 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3277 from rtx to rtx_insn *.
3278 (create_pseudo_cfg): Likewise for local "insn".
3279
3280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3281
3282 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3283 from rtx to rtx_insn *.
3284 (df_bb_regno_last_def_find): Likewise.
3285
3286 * df-problems.c (df_rd_bb_local_compute): Likewise.
3287 (df_lr_bb_local_compute): Likewise.
3288 (df_live_bb_local_compute): Likewise.
3289 (df_chain_remove_problem): Likewise.
3290 (df_chain_create_bb): Likewise.
3291 (df_word_lr_bb_local_compute): Likewise.
3292 (df_remove_dead_eq_notes): Likewise for param "insn".
3293 (df_note_bb_compute): Likewise for local "insn".
3294 (simulate_backwards_to_point): Likewise.
3295 (df_md_bb_local_compute): Likewise.
3296
3297 * df-scan.c (df_scan_free_bb_info): Likewise.
3298 (df_scan_start_dump): Likewise.
3299 (df_scan_start_block): Likewise.
3300 (df_install_ref_incremental): Likewise for local "insn".
3301 (df_insn_rescan_all): Likewise.
3302 (df_reorganize_refs_by_reg_by_insn): Likewise.
3303 (df_reorganize_refs_by_insn_bb): Likewise.
3304 (df_recompute_luids): Likewise.
3305 (df_bb_refs_record): Likewise.
3306 (df_update_entry_exit_and_calls): Likewise.
3307 (df_bb_verify): Likewise.
3308
3309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3310
3311 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3312 "first_note" from rtx to rtx_insn *.
3313 (get_node_of_insn): Likewise for param 2 "insn".
3314 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3315
3316 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3317 rtx_insn *.
3318 (mem_write_insn_p): Likewise.
3319 (mem_access_insn_p): Likewise.
3320 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3321 (def_has_ccmode_p): Likewise for param "insn".
3322 (add_cross_iteration_register_deps): Likewise for locals
3323 "def_insn" and "use_insn".
3324 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3325 (build_intra_loop_deps): Likewise for local "src_insn".
3326 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3327 to rtx_insn *.
3328 (get_node_of_insn): Likewise for param "insn".
3329
3330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3331
3332 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3333 (deletable_insn_p): Strengthen param "insn" from rtx to
3334 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3335 find_call_stack_args, since this is guarded by CALL_P (insn).
3336 (marked_insn_p): Strengthen param "insn" from rtx to
3337 rtx_insn *.
3338 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3339 invoking find_call_stack_args, since this is guarded by
3340 CALL_P (insn).
3341 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3342 rtx_insn *; we know this is an insn since this was called by
3343 mark_nonreg_stores.
3344 (mark_nonreg_stores_2): Likewise.
3345 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3346 rtx_insn *.
3347 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3348 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3349 to rtx_insn *.
3350 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3351 from rtx to rtx_insn *.
3352 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3353 "next", "ref_insn".
3354 (delete_unmarked_insns): Likewise for locals "insn", "next".
3355 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3356 (mark_reg_dependencies): Likewise for param "insn".
3357 (rest_of_handle_ud_dce): Likewise for local "insn".
3358 (word_dce_process_block): Likewise.
3359 (dce_process_block): Likewise.
3360
3361 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3362
3363 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3364 from rtx to rtx_insn *.
3365 (struct change_cc_mode_args): Likewise for field "insn".
3366 (this_insn): Strengthen from rtx to rtx_insn *.
3367 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3368 with insn.
3369 (validate_canon_reg): Strengthen param "insn" from rtx to
3370 rtx_insn *.
3371 (canon_reg): Likewise.
3372 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3373 dealing with insn.
3374 (record_jump_equiv): Strengthen param "insn" from rtx to
3375 rtx_insn *.
3376 (try_back_substitute_reg): Likewise, also for locals "prev",
3377 "bb_head".
3378 (find_sets_in_insn): Likewise for param "insn".
3379 (canonicalize_insn): Likewise.
3380 (cse_insn): Likewise. Add a checked cast.
3381 (invalidate_from_clobbers): Likewise for param "insn".
3382 (invalidate_from_sets_and_clobbers): Likewise.
3383 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3384 dealing with insn.
3385 (cse_prescan_path): Strengthen local "insn" from rtx to
3386 rtx_insn *.
3387 (cse_extended_basic_block): Likewise for locals "insn" and
3388 "prev_insn".
3389 (cse_main): Likewise for param "f".
3390 (check_for_label_ref): Likewise for local "insn".
3391 (set_live_p): Likewise for second param ("insn").
3392 (insn_live_p): Likewise for first param ("insn") and for local
3393 "next".
3394 (cse_change_cc_mode_insn): Likewise for first param "insn".
3395 (cse_change_cc_mode_insns): Likewise for first and second params
3396 "start" and "end".
3397 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3398 and "end".
3399 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3400 "cc_src_insn".
3401
3402 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3404 Anna Tikhonova <anna.tikhonova@intel.com>
3405 Ilya Tocar <ilya.tocar@intel.com>
3406 Andrey Turetskiy <andrey.turetskiy@intel.com>
3407 Ilya Verbin <ilya.verbin@intel.com>
3408 Kirill Yukhin <kirill.yukhin@intel.com>
3409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3410
3411 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3412 New.
3413 * config/i386/sse.md
3414 (define_mode_iterator VI248_AVX2): Delete.
3415 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3416 (define_mode_iterator VI48_AVX2): Ditto.
3417 (define_insn <shift_insn><mode>3): Delete.
3418 (define_insn "<shift_insn><mode>3<mask_name>" with
3419 VI2_AVX2_AVX512BW): New.
3420 (define_insn "<shift_insn><mode>3<mask_name>" with
3421 VI48_AVX2): Ditto.
3422
3423 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3425 Anna Tikhonova <anna.tikhonova@intel.com>
3426 Ilya Tocar <ilya.tocar@intel.com>
3427 Andrey Turetskiy <andrey.turetskiy@intel.com>
3428 Ilya Verbin <ilya.verbin@intel.com>
3429 Kirill Yukhin <kirill.yukhin@intel.com>
3430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3431
3432 * config/i386/sse.md
3433 (define_mode_iterator VI4F_BRCST32x2): New.
3434 (define_mode_attr 64x2_mode): Ditto.
3435 (define_mode_attr 32x2mode): Ditto.
3436 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3437 with VI4F_BRCST32x2): Ditto.
3438 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3439 with V16FI mode iterator): Ditto.
3440 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3441 with V16FI): Ditto.
3442 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3443 with VI8F_BRCST64x2): Ditto.
3444
3445 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3446 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3447 Anna Tikhonova <anna.tikhonova@intel.com>
3448 Ilya Tocar <ilya.tocar@intel.com>
3449 Andrey Turetskiy <andrey.turetskiy@intel.com>
3450 Ilya Verbin <ilya.verbin@intel.com>
3451 Kirill Yukhin <kirill.yukhin@intel.com>
3452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3453
3454 * config/i386/sse.md
3455 (define_mode_iterator VI8_AVX512VL): New.
3456 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3457
3458 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3459
3460 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3461 (define_mode_iterator V48_AVX512VL): New.
3462 (define_mode_iterator V12_AVX512VL): Ditto.
3463 (define_insn <avx512>_load<mode>_mask): Split into two similar
3464 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3465 Refactor output template.
3466 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3467
3468 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3469
3470 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3471 rtx_insn *.
3472 (reg_available_p): Likewise for param "insn".
3473 (insert_set_in_table): Likewise.
3474 (hash_scan_set): Likewise.
3475 (hash_scan_insn): Likewise.
3476 (make_set_regs_unavailable): Likewise.
3477 (compute_hash_table_work): Likewise for local "insn".
3478 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3479 const rtx_insn *.
3480 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3481 (try_replace_reg): Likewise.
3482 (find_avail_set): Likewise.
3483 (cprop_jump): Likewise for params "setcc", "jump".
3484 (constprop_register): Likewise for param "insn".
3485 (cprop_insn): Likewise.
3486 (do_local_cprop): Likewise.
3487 (local_cprop_pass): Likewise for local "insn".
3488 (bypass_block): Likewise for params "setcc" and "jump".
3489 (bypass_conditional_jumps): Likewise for locals "setcc" and
3490 "insn".
3491 (one_cprop_pass): Likewise for local "insn".
3492
3493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3494
3495 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3496 from rtx to rtx_insn *.
3497 (struct comparison): Likewise, also for field "prev_clobber".
3498 (conforming_compare): Likewise for param "insn".
3499 (arithmetic_flags_clobber_p): Likewise.
3500 (find_flags_uses_in_insn): Likewise.
3501 (find_comparison_dom_walker::before_dom_children): Likewise for
3502 locals "insn", "next", "last_clobber".
3503 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3504
3505 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3506
3507 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3508 "insn" from rtx to rtx_insn *.
3509 (single_set_for_csa): Likewise for param "insn".
3510 (record_one_stack_ref): Likewise.
3511 (try_apply_stack_adjustment): Likewise.
3512 (struct record_stack_refs_data): Likewise for field "insn".
3513 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3514 (prev_active_insn_bb): Likewise for return type and param "insn".
3515 (next_active_insn_bb): Likewise.
3516 (force_move_args_size_note): Likewise for params "prev" and "last"
3517 and locals "test", "next_candidate", "prev_candidate".
3518 (combine_stack_adjustments_for_block): Strengthen locals
3519 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3520 rtx_insn *.
3521
3522 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3523
3524 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3525 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3526 (subst_insn): Likewise for this variable.
3527 (added_links_insn): Likewise.
3528 (struct insn_link): Likewise for field "insn".
3529 (alloc_insn_link): Likewise for param "insn".
3530 (struct undobuf): Likewise for field "other_insn".
3531 (find_single_use): Likewise for param "insn" and local "next".
3532 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3533 (delete_noop_moves): Likewise for locals "insn", "next".
3534 (create_log_links): Likewise for locals "insn", "use_insn".
3535 Strengthen local "next_use" from rtx * to rtx_insn **.
3536 (insn_a_feeds_b): Likewise for params "a", "b".
3537 (combine_instructions): Likewise for param "f" and locals "insn",
3538 "next", "prev", "first", "last_combined_insn", "link", "link1",
3539 "temp". Replace use of NULL_RTX with NULL when referring to
3540 insns.
3541 (setup_incoming_promotions): Likewise for param "first"
3542 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3543 (can_combine_p): Likewise for params "insn", "i3", "pred",
3544 "pred2", "succ", "succ2" and for local "p".
3545 (combinable_i3pat): Likewise for param "i3".
3546 (cant_combine_insn_p): Likewise for param "insn".
3547 (likely_spilled_retval_p): Likewise.
3548 (adjust_for_new_dest): Likewise.
3549 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3550 (try_combine): Likewise for return type and for params "i3", "i2",
3551 "i1", "i0", "last_combined_insn", and for locals "insn",
3552 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3553 "i0_insn". Eliminate local "tem" in favor of new locals
3554 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3555 checked cast for now to rtx_insn * on the return type of
3556 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3557 insns.
3558 (find_split_point): Strengthen param "insn" from rtx to
3559 rtx_insn *.
3560 (simplify_set): Likewise for local "other_insn".
3561 (recog_for_combine): Likewise for param "insn".
3562 (record_value_for_reg): Likewise.
3563 (record_dead_and_set_regs_1): Likewise for local
3564 "record_dead_insn".
3565 (record_dead_and_set_regs): Likewise for param "insn".
3566 (record_promoted_value): Likewise.
3567 (check_promoted_subreg): Likewise.
3568 (get_last_value_validate): Likewise.
3569 (reg_dead_at_p): Likewise.
3570 (move_deaths): Likewise for param "to_insn".
3571 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3572 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3573 in favor of new locals "tem_note" and "tem_insn", the latter being
3574 an rtx_insn *.
3575 (distribute_links): Strengthen locals "place", "insn" from rtx to
3576 rtx_insn *.
3577
3578 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3579
3580 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3581 than a const_rtx.
3582 (can_delete_label_p): Require a const rtx_code_label * rather than
3583 a const_rtx.
3584 (delete_insn): Add checked cast to rtx_code_label * when we know
3585 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3586 rtx to rtx_insn *.
3587 (delete_insn_chain): Strengthen locals "prev" and "current" from
3588 rtx to rtx_insn *. Add a checked cast when assigning from
3589 "finish" (strengthening the params will come later). Add a
3590 checked cast to rtx_note * in region where we know
3591 NOTE_P (current).
3592 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3593 rtx_insn *.
3594 (compute_bb_for_insn): Likewise.
3595 (free_bb_for_insn): Likewise for local "insn".
3596 (compute_bb_for_insn): Likewise.
3597 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3598 local "insn" from rtx to rtx_insn *
3599 (flow_active_insn_p): Require a const rtx_insn * rather than a
3600 const_rtx.
3601 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
3602 rtx_insn *.
3603 (can_fallthru): Likewise for locals "insn" and "insn2".
3604 (bb_note): Likewise for local "note".
3605 (first_insn_after_basic_block_note): Likewise for local "note" and
3606 for return type.
3607 (rtl_split_block): Likewise for locals "insn" and "next".
3608 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
3609 "end".
3610 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
3611 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
3612 "prev", "tmp".
3613 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
3614 them), "kill_from", "barrier", "new_insn".
3615 (patch_jump_insn): Likewise for params "insn", "old_label".
3616 (redirect_branch_edge): Likewise for locals "old_label", "insn".
3617 (force_nonfallthru_and_redirect): Likewise for locals "insn",
3618 "old_label", "new_label".
3619 (rtl_tidy_fallthru_edge): Likewise for local "q".
3620 (rtl_split_edge): Likewise for locals "before", "last".
3621 (commit_one_edge_insertion): Likewise for locals "before",
3622 "after", "insns", "tmp", "last", adding a checked cast where
3623 currently necessary.
3624 (commit_edge_insertions): Likewise.
3625 (rtl_dump_bb): Likewise for locals "insn", "last".
3626 (print_rtl_with_bb): Likewise for local "x".
3627 (rtl_verify_bb_insns): Likewise for local "x".
3628 (rtl_verify_bb_pointers): Likewise for local "insn".
3629 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
3630 "head", "end".
3631 (rtl_verify_fallthru): Likewise for local "insn".
3632 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
3633 (purge_dead_edges): Likewise for local "insn".
3634 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
3635 (skip_insns_after_block): Likewise for return type and for locals
3636 "insn", "last_insn", "next_head", "prev".
3637 (record_effective_endpoints): Likewise for locals "next_insn",
3638 "insn", "end".
3639 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
3640 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
3641 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
3642 (duplicate_insn_chain): For now, add checked cast from rtx to
3643 rtx_insn * when returning insn.
3644 (cfg_layout_duplicate_bb): Likewise for local "insn".
3645 (cfg_layout_delete_block): Likewise for locals "insn", "next",
3646 "prev", "remaints".
3647 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
3648 (rtl_block_empty_p): Likewise.
3649 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
3650 "split_point", "last".
3651 (rtl_block_ends_with_call_p): Likewise for local "insn".
3652 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
3653 const rtx_insn *.
3654 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
3655 "split_at_insn" from rtx to rtx_insn *.
3656 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
3657 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
3658 to const rtx_insn *.
3659 (rtl_account_profile_record): Likewise.
3660
3661 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3662
3663 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
3664 rtx to rtx_insn *.
3665 (average_num_loop_insns): Likewise.
3666 (init_set_costs): Likewise for local "seq".
3667 (seq_cost): Likewise for param "seq", from const_rtx to const
3668 rtx_insn *.
3669
3670 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3671
3672 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
3673 rtx to rtx_insn *.
3674
3675 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3676
3677 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
3678 "f1" and "f2" from rtx * to rtx_insn **.
3679 (flow_find_head_matching_sequence): Likewise.
3680
3681 * cfgcleanup.c (try_simplify_condjump): Strengthen local
3682 "cbranch_insn" from rtx to rtx_insn *.
3683 (thread_jump): Likewise for local "insn".
3684 (try_forward_edges): Likewise for local "last".
3685 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
3686 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
3687 "real_b_end".
3688 (can_replace_by): Likewise for params "i1", "i2".
3689 (old_insns_match_p): Likewise.
3690 (merge_notes): Likewise.
3691 (walk_to_nondebug_insn): Likewise for param "i1".
3692 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
3693 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
3694 "afterlast1", "afterlast2" from rtx to rtx_insn *.
3695 (flow_find_head_matching_sequence): Strengthen params "f1" and
3696 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
3697 "last1", "last2", "beforelast1", "beforelast2" from rtx to
3698 rtx_insn *.
3699 (outgoing_edges_match): Likewise for locals "last1", "last2".
3700 (try_crossjump_to_edge): Likewise for local "insn".
3701 Replace call to for_each_rtx with for_each_rtx_in_insn.
3702
3703 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
3704 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
3705 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
3706 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
3707 (try_optimize_cfg): Strengthen local "last" from rtx to
3708 rtx_insn *.
3709 (delete_dead_jumptables): Likewise for locals "insn", "next",
3710 "label".
3711
3712 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
3713 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
3714 "rtx else_first_tail", to reflect the basic-block.h changes above.
3715
3716 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3717
3718 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
3719 rtx_insn *.
3720 (purge_dead_tablejump_edges): Likewise.
3721 (find_bb_boundaries): Likewise for locals "insn", "end",
3722 "flow_transfer_insn".
3723
3724 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3725
3726 * caller-save.c (save_call_clobbered_regs): Strengthen locals
3727 "ins" and "prev" from rtx to rtx_insn *.
3728
3729 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3730
3731 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
3732 rtx_insn *.
3733 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
3734 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
3735 "scan_start".
3736 (load_register_parameters): Likewise for local "before_arg".
3737 (check_sibcall_argument_overlap): Likewise for param "insn".
3738 (expand_call): Likewise for locals "normal_call_insns",
3739 "tail_call_insns", "insns", "before_call", "after_args",
3740 "before_arg", "last", "prev". Strengthen one of the "last" from
3741 rtx to rtx_call_insn *.
3742 (fixup_tail_calls): Strengthen local "insn" from rtx to
3743 rtx_insn *.
3744 (emit_library_call_value_1): Likewise for locals "before_call" and
3745 "last".
3746
3747 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3748
3749 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
3750 and "last" from rtx to rtx_insn *.
3751 (expand_builtin_nonlocal_goto): Likewise for local "insn".
3752 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
3753 rtx_call_insn *.
3754 (expand_errno_check): Strengthen local "lab" from rtx to
3755 rtx_code_label *.
3756 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
3757 rtx_insn *.
3758 (expand_builtin_mathfn_2): Likewise.
3759 (expand_builtin_mathfn_ternary): Likewise.
3760 (expand_builtin_mathfn_3): Likewise.
3761 (expand_builtin_interclass_mathfn): Likewise for local "last".
3762 (expand_builtin_int_roundingfn): Likewise for local "insns".
3763 (expand_builtin_int_roundingfn_2): Likewise.
3764 (expand_builtin_strlen): Likewise for local "before_strlen".
3765 (expand_builtin_strncmp): Likewise for local "seq".
3766 (expand_builtin_signbit): Likewise for local "last".
3767 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
3768 from rtx to rtx_code_label *.
3769 (expand_stack_restore): Strengthen local "prev" from rtx to
3770 rtx_insn *.
3771
3772 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3773
3774 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
3775 to rtx_insn *.
3776 (struct btr_def_s): Likewise.
3777 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
3778 const rtx_insn *.
3779 (add_btr_def): Likewise.
3780 (new_btr_user): Likewise.
3781 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
3782 rtx to rtx_insn *.
3783 (link_btr_uses): Likewise.
3784 (move_btr_def): Likewise for locals "insp", "old_insn",
3785 "new_insn". Add checked cast to rtx_insn * for now on result of
3786 gen_move_insn.
3787 (can_move_up): Strengthen param "insn" from const_rtx to
3788 const rtx_insn *.
3789
3790 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3791
3792 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
3793 rtx_insn *.
3794 (get_uncond_jump_length): Likewise for locals "label", "jump".
3795 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
3796 "jump", "insn".
3797 (add_labels_and_missing_jumps): Likewise for local "new_jump".
3798 (fix_up_fall_thru_edges): Likewise for local "old_jump".
3799 (find_jump_block): Likewise for local "insn".
3800 (fix_crossing_conditional_branches): Likewise for locals
3801 "old_jump", "new_jump".
3802 (fix_crossing_unconditional_branches): Likewise for locals
3803 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
3804 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
3805
3806 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3807
3808 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
3809 rtx to rtx_insn *.
3810 (struct mem_insn): Likewise for field "insn".
3811 (reg_next_use): Strengthen from rtx * to rtx_insn **.
3812 (reg_next_inc_use): Likewise.
3813 (reg_next_def): Likewise.
3814 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
3815 from rtx to rtx_insn *.
3816 (move_insn_before): Likewise for param "next_insn" and local "insns".
3817 (attempt_change): Likewise for local "mov_insn".
3818 (try_merge): Likewise for param "last_insn".
3819 (get_next_ref): Likewise for return type and local "insn".
3820 Strengthen param "next_array" from rtx * to rtx_insn **.
3821 (parse_add_or_inc): Strengthen param "insn" from rtx to
3822 rtx_insn *.
3823 (find_inc): Likewise for locals "insn" and "other_insn" (three of
3824 the latter).
3825 (merge_in_block): Likewise for locals "insn", "curr",
3826 "other_insn".
3827 (pass_inc_dec::execute): Update allocations of the arrays to
3828 reflect the stronger types.
3829
3830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3831
3832 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
3833 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
3834 from rtx to rtx_code_label *.
3835
3836 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3837
3838 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
3839 to rtx_insn *.
3840
3841 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3842
3843 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
3844 generated a warning and prevented bootstrapping the compiler.
3845
3846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3847
3848 * rtl.h (delete_related_insns): Strengthen return type from rtx to
3849 rtx_insn *.
3850
3851 * jump.c (delete_related_insns): Likewise, also for locals "next"
3852 and "prev".
3853
3854 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3855
3856 * genautomata.c (output_internal_insn_latency_func): When writing
3857 the function "internal_insn_latency" to insn-automata.c,
3858 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
3859 allowing the optional guard function of (define_bypass) clauses to
3860 expect a pair of rtx_insn *, rather than a pair of rtx.
3861 (output_insn_latency_func): When writing the function
3862 "insn_latency", add an "uncast_" prefix to params "insn" and
3863 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
3864 using checked casts from the params, thus enabling the above
3865 change to the generated "internal_insn_latency" function.
3866
3867 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
3868
3869 PR tree-optimization/62091
3870 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
3871 handle correctly arrays.
3872 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
3873 inheritance binfos.
3874 (record_known_type): Walk into inner type.
3875 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
3876 condition on no type changes.
3877
3878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3879
3880 * genattrtab.c (write_attr_get): Within the generated get_attr_
3881 functions, rename param "insn" to "uncast_insn" and reintroduce
3882 "insn" as an local rtx_insn * using a checked cast, so that "insn"
3883 is an rtx_insn * within insn-attrtab.c
3884
3885 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3886
3887 * output.h (peephole): Strengthen return type from rtx to
3888 rtx_insn *.
3889 * rtl.h (delete_for_peephole): Likewise for both params.
3890 * genpeep.c (main): In generated "peephole" function, strengthen
3891 return type and local "insn" from rtx to rtx_insn *. For now,
3892 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
3893 rtx_insn *, with a checked cast.
3894 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
3895 locals "insn", "next", "prev" from rtx to rtx_insn *.
3896
3897 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
3898
3899 PR tree-optimization/62112
3900 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
3901 * gimple-iterator.h (gsi_replace): Return bool.
3902 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
3903 moved from ref_may_alias_global_p.
3904 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
3905 New overloads.
3906 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
3907 (stmt_kills_ref_p_1): Rename...
3908 (stmt_kills_ref_p): ... to this.
3909 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
3910 stmt_kills_ref_p): Declare.
3911 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
3912 Move the self-assignment case...
3913 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
3914
3915 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3916
3917 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
3918
3919 * emit-rtl.c (try_split): Likewise, also for locals "before" and
3920 "after". For now, don't strengthen param "trial", which requires
3921 adding checked casts when returning it.
3922
3923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3924
3925 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
3926 "label" from rtx to rtx_code_label *. Strengthen param 1 of
3927 "var_location" hook from rtx to rtx_insn *.
3928 (debug_nothing_rtx): Delete in favor of...
3929 (debug_nothing_rtx_code_label): New prototype.
3930 (debug_nothing_rtx_rtx): Delete unused prototype.
3931 (debug_nothing_rtx_insn): New prototype.
3932
3933 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
3934 invoking debug_hooks->var_location (in two places, one in a NOTE
3935 case of a switch statement, the other guarded by a CALL_P
3936 conditional. Add checked cast to rtx_code_label * when invoking
3937 debug_hooks->label (within CODE_LABEL case of switch statement).
3938
3939 * dbxout.c (dbx_debug_hooks): Update "label" hook from
3940 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3941 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
3942 (xcoff_debug_hooks): Likewise.
3943 * debug.c (do_nothing_debug_hooks): Likewise.
3944 (debug_nothing_rtx): Delete in favor of...
3945 (debug_nothing_rtx_insn): New function.
3946 (debug_nothing_rtx_rtx): Delete unused function.
3947 (debug_nothing_rtx_code_label): New function.
3948 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
3949 debug_nothing_rtx to debug_nothing_rtx_code_label.
3950 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
3951 to rtx_insn *.
3952 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
3953 debug_nothing_rtx to debug_nothing_rtx_insn.
3954 (sdbout_label): Strengthen param "insn" from rtx to
3955 rtx_code_label *.
3956 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
3957 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3958 "var_location" hook from debug_nothing_rtx to
3959 debug_nothing_rtx_insn.
3960
3961 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3962
3963 * recog.h (insn_output_fn): Update this function typedef to match
3964 the changes below to the generated output functions, strengthening
3965 the 2nd param from rtx to rtx_insn *.
3966
3967 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
3968 insn when invoking an output function, to match the new signature
3969 of insn_output_fn with a stronger second param.
3970
3971 * genconditions.c (write_header): In the generated code for
3972 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
3973 to match the other changes in this patch.
3974
3975 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
3976 the generated "gen_" functions from rtx to rtx_insn * within their
3977 implementations.
3978
3979 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
3980 the subfunctions within the generated "recog_", "split", "peephole2"
3981 function trees from rtx to rtx_insn *. For now, the top-level
3982 generated functions ("recog", "split", "peephole2") continue to
3983 take a plain rtx for "insn", to avoid introducing dependencies on
3984 other patches. Rename this 2nd param from "insn" to
3985 "uncast_insn", and reintroduce "insn" as a local variable of type
3986 rtx_insn *, initialized at the top of the generated function with
3987 a checked cast on "uncast_insn".
3988 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
3989 the generated "gen_" functions from rtx to rtx_insn * within their
3990 prototypes.
3991
3992 * genoutput.c (process_template): Strengthen the 2nd param within
3993 the generated "output_" functions "insn" from rtx to rtx_insn *.
3994
3995 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3996
3997 * tree-profile.c (tree_profiling): Skip external functions
3998 when doing coverage instrumentation.
3999 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4000
4001 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4002
4003 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4004 (vec_mergee): Likewise.
4005 (vec_mergeo): Likewise.
4006 (vec_cntlz): Likewise.
4007 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4008 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4009 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4010 VMRGEW, and VMRGOW.
4011 * doc/extend.texi: Document various forms of vec_cpsgn,
4012 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4013 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4014 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4015 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4016 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4017
4018 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4019
4020 * config/rs6000/rs6000.c (context.h): New include.
4021 (tree-pass.h): Likewise.
4022 (make_pass_analyze_swaps): New decl.
4023 (rs6000_option_override): Register pass_analyze_swaps.
4024 (swap_web_entry): New subsclass of web_entry_base (df.h).
4025 (special_handling_values): New enum.
4026 (union_defs): New function.
4027 (union_uses): Likewise.
4028 (insn_is_load_p): Likewise.
4029 (insn_is_store_p): Likewise.
4030 (insn_is_swap_p): Likewise.
4031 (rtx_is_swappable_p): Likewise.
4032 (insn_is_swappable_p): Likewise.
4033 (chain_purpose): New enum.
4034 (chain_contains_only_swaps): New function.
4035 (mark_swaps_for_removal): Likewise.
4036 (swap_const_vector_halves): Likewise.
4037 (adjust_subreg_index): Likewise.
4038 (permute_load): Likewise.
4039 (permute_store): Likewise.
4040 (handle_special_swappables): Likewise.
4041 (replace_swap_with_copy): Likewise.
4042 (dump_swap_insn_table): Likewise.
4043 (rs6000_analyze_swaps): Likewise.
4044 (pass_data_analyze_swaps): New pass_data.
4045 (pass_analyze_swaps): New rtl_opt_pass.
4046 (make_pass_analyze_swaps): New function.
4047 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4048
4049 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4050
4051 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4052 type from rtx to rtx_insn *.
4053 (create_copy_of_insn_rtx): Likewise.
4054 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4055 (create_copy_of_insn_rtx): Likewise, also for local "res".
4056
4057 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4058
4059 * rtl.h (find_first_parameter_load): Strengthen return type from
4060 rtx to rtx_insn *.
4061 * rtlanal.c (find_first_parameter_load): Strengthen return type
4062 from rtx to rtx_insn *. Add checked cast for now, to postpone
4063 strengthening the params.
4064
4065 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4066
4067 PR fortran/44054
4068 * diagnostic.c: Set default caret.
4069 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4070 line is needed.
4071 * diagnostic.h (struct diagnostic_context):
4072
4073 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4074
4075 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4076 (sel_bb_head): Strengthen return type insn_t (currently just an
4077 rtx) to rtx_insn *.
4078 (sel_bb_end): Likewise.
4079
4080 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4081 (sel_bb_head): Strengthen return type and local "head" from
4082 insn_t (currently just an rtx) to rtx_insn *.
4083 (sel_bb_end): Likewise for return type.
4084 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4085 working with insn.
4086
4087 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4088
4089 * basic-block.h (get_last_bb_insn): Strengthen return type from
4090 rtx to rtx_insn *.
4091 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4092 end".
4093
4094 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4095
4096 PR fortran/44054
4097 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4098 to here ...
4099 (diagnostic_report_diagnostic): ... from here.
4100 * toplev.c (general_init): Move code to c-family.
4101
4102 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4103
4104 * df.h (web_entry_base): Replace existing struct web_entry with a
4105 new class web_entry_base with only the predecessor member.
4106 (unionfind_root): Remove declaration and move to class member.
4107 (unionfind_union): Remove declaration and move to friend
4108 function.
4109 (union_defs): Remove declaration.
4110 * web.c (web_entry_base::unionfind_root): Modify to be member
4111 function and adjust accessors.
4112 (unionfind_union): Modify to be friend function and adjust
4113 accessors.
4114 (web_entry): New subclass of web_entry_base containing the reg
4115 member.
4116 (union_match_dups): Modify for struct -> class changes.
4117 (union_defs): Likewise.
4118 (entry_register): Likewise.
4119 (pass_web::execute): Likewise.
4120
4121 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4122
4123 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4124 builtin define __VEC_ELEMENT_REG_ORDER__.
4125
4126 2014-08-20 Martin Jambor <mjambor@suse.cz>
4127 Wei Mi <wmi@google.com>
4128
4129 PR ipa/60449
4130 PR middle-end/61776
4131 * tree-ssa-operands.c (update_stmt_operands): Remove
4132 MODIFIED_NORETURN_CALLS.
4133 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4134 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4135 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4136 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4137 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4138 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4139 (gimple_call_set_ctrl_altering): New func.
4140 (gimple_call_ctrl_altering_p): Ditto.
4141 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4142 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4143 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4144 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4145 remove MODIFIED_NORETURN_CALLS.
4146
4147 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4148
4149 * coverage.c (coverage_compute_profile_id): Return non-0;
4150 also handle symbols with unique name.
4151 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4152
4153 2014-08-20 Steve Ellcey <sellcey@mips.com>
4154
4155 PR middle-end/49191
4156 * doc/sourcebuild.texi (non_strict_align): New.
4157
4158 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4159
4160 * cgraphunit.c (ipa_passes, compile): Reshedule
4161 symtab_remove_unreachable_nodes passes; update comments.
4162 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4163 TODO_remove_functions before the pass; the functions ought to be
4164 already removed.
4165 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4166 TODO_remove_functions.
4167 * passes.c (pass_data_early_local_passes): Do not schedule function
4168 removal.
4169 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4170
4171 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4172
4173 PR c/59304
4174 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4175 before setting the option.
4176 * diagnostic.c (diagnostic_classify_diagnostic): Record
4177 command-line status.
4178
4179 2014-08-20 Richard Biener <rguenther@suse.de>
4180
4181 PR lto/62190
4182 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4183 to build uint{16,32,64}_type_node.
4184
4185 2014-08-20 Terry Guo <terry.guo@arm.com>
4186
4187 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4188 with immediate_operand.
4189
4190 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4191
4192 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4193 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4194 NULL.
4195
4196 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4197
4198 PR preprocessor/51303
4199 * incpath.c (remove_duplicates): Use cpp_warning.
4200
4201 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4202
4203 PR c/60975
4204 PR c/53063
4205 * doc/options.texi (CPP): Document it.
4206 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4207 * optc-gen.awk: Handle CPP.
4208 * opth-gen.awk: Likewise.
4209
4210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4211
4212 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4213 rtx_insn *.
4214 (duplicate_insn_chain): Likewise.
4215 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4216 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4217 checked cast for now (until we can strengthen the params in the
4218 same way).
4219 (duplicate_insn_chain): Likewise.
4220
4221 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4222
4223 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4224 rtx_insn *.
4225 (prev_cc0_setter): Likewise.
4226
4227 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4228 rtx_insn *, adding checked casts for now as necessary.
4229 (prev_cc0_setter): Likewise.
4230
4231 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4232
4233 * expr.h (emit_move_insn): Strengthen return type from rtx to
4234 rtx_insn *.
4235 (emit_move_insn_1): Likewise.
4236 (emit_move_complex_push): Likewise.
4237 (emit_move_complex_parts): Likewise.
4238
4239 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4240 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4241 with insns.
4242 (emit_move_complex_push): Strengthen return type from rtx to
4243 rtx_insn *.
4244 (emit_move_complex): Likewise, also for local "ret".
4245 (emit_move_ccmode): Likewise.
4246 (emit_move_multi_word): Likewise for return type and locals
4247 "last_insn", "seq".
4248 (emit_move_insn_1): Likewise for return type and locals "result",
4249 "ret".
4250 (emit_move_insn): Likewise for return type and local "last_insn".
4251 (compress_float_constant): Likewise.
4252
4253 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4254
4255 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4256 from rtx to rtx_insn *.
4257
4258 * rtl.h (emit_insn_before): Likewise.
4259 (emit_insn_before_noloc): Likewise.
4260 (emit_insn_before_setloc): Likewise.
4261 (emit_jump_insn_before): Likewise.
4262 (emit_jump_insn_before_noloc): Likewise.
4263 (emit_jump_insn_before_setloc): Likewise.
4264 (emit_call_insn_before): Likewise.
4265 (emit_call_insn_before_noloc): Likewise.
4266 (emit_call_insn_before_setloc): Likewise.
4267 (emit_debug_insn_before): Likewise.
4268 (emit_debug_insn_before_noloc): Likewise.
4269 (emit_debug_insn_before_setloc): Likewise.
4270 (emit_label_before): Likewise.
4271 (emit_insn_after): Likewise.
4272 (emit_insn_after_noloc): Likewise.
4273 (emit_insn_after_setloc): Likewise.
4274 (emit_jump_insn_after): Likewise.
4275 (emit_jump_insn_after_noloc): Likewise.
4276 (emit_jump_insn_after_setloc): Likewise.
4277 (emit_call_insn_after): Likewise.
4278 (emit_call_insn_after_noloc): Likewise.
4279 (emit_call_insn_after_setloc): Likewise.
4280 (emit_debug_insn_after): Likewise.
4281 (emit_debug_insn_after_noloc): Likewise.
4282 (emit_debug_insn_after_setloc): Likewise.
4283 (emit_label_after): Likewise.
4284 (emit_insn): Likewise.
4285 (emit_debug_insn): Likewise.
4286 (emit_jump_insn): Likewise.
4287 (emit_call_insn): Likewise.
4288 (emit_label): Likewise.
4289 (gen_clobber): Likewise.
4290 (emit_clobber): Likewise.
4291 (gen_use): Likewise.
4292 (emit_use): Likewise.
4293 (emit): Likewise.
4294
4295 (emit_barrier_before): Strengthen return type from rtx to
4296 rtx_barrier *.
4297 (emit_barrier_after): Likewise.
4298 (emit_barrier): Likewise.
4299
4300 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4301 from rtx to rtx_insn *. Add checked casts for now when converting
4302 "last" from rtx to rtx_insn *.
4303 (emit_insn_before_noloc): Likewise for return type.
4304 (emit_jump_insn_before_noloc): Likewise.
4305 (emit_call_insn_before_noloc): Likewise.
4306 (emit_debug_insn_before_noloc): Likewise.
4307 (emit_barrier_before): Strengthen return type and local "insn"
4308 from rtx to rtx_barrier *.
4309 (emit_label_before): Strengthen return type from rtx to
4310 rtx_insn *. Add checked cast for now when returning param
4311 (emit_pattern_after_noloc): Strengthen return type from rtx to
4312 rtx_insn *. Add checked casts for now when converting "last" from
4313 rtx to rtx_insn *.
4314 (emit_insn_after_noloc): Strengthen return type from rtx to
4315 rtx_insn *.
4316 (emit_jump_insn_after_noloc): Likewise.
4317 (emit_call_insn_after_noloc): Likewise.
4318 (emit_debug_insn_after_noloc): Likewise.
4319 (emit_barrier_after): Strengthen return type from rtx to
4320 rtx_barrier *.
4321 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4322 Add checked cast for now when converting "label" from rtx to
4323 rtx_insn *.
4324 (emit_pattern_after_setloc): Strengthen return type from rtx to
4325 rtx_insn *. Add checked casts for now when converting "last" from
4326 rtx to rtx_insn *.
4327 (emit_pattern_after): Strengthen return type from rtx to
4328 rtx_insn *.
4329 (emit_insn_after_setloc): Likewise.
4330 (emit_insn_after): Likewise.
4331 (emit_jump_insn_after_setloc): Likewise.
4332 (emit_jump_insn_after): Likewise.
4333 (emit_call_insn_after_setloc): Likewise.
4334 (emit_call_insn_after): Likewise.
4335 (emit_debug_insn_after_setloc): Likewise.
4336 (emit_debug_insn_after): Likewise.
4337 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4338 when converting "last" from rtx to rtx_insn *.
4339 (emit_pattern_before): Strengthen return type from rtx to
4340 rtx_insn *.
4341 (emit_insn_before_setloc): Likewise.
4342 (emit_insn_before): Likewise.
4343 (emit_jump_insn_before_setloc): Likewise.
4344 (emit_jump_insn_before): Likewise.
4345 (emit_call_insn_before_setloc): Likewise.
4346 (emit_call_insn_before): Likewise.
4347 (emit_debug_insn_before_setloc): Likewise.
4348 (emit_debug_insn_before): Likewise.
4349 (emit_insn): Strengthen return type and locals "last", "insn",
4350 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4351 within cases where we know we have an insn.
4352 (emit_debug_insn): Likewise.
4353 (emit_jump_insn): Likewise.
4354 (emit_call_insn): Strengthen return type and local "insn" from rtx
4355 to rtx_insn *.
4356 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4357 a checked cast to rtx_insn * for now on "label".
4358 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4359 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4360 (emit_use): Likewise.
4361 (gen_use): Likewise, also for local "seq".
4362 (emit): Likewise for return type and local "insn".
4363 (rtx_insn): Likewise for return type and local "new_rtx".
4364
4365 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4366 from rtx to rtx_barrier *.
4367
4368 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4369 changed return type from rtx to rtx_insn *, we must update
4370 "emit_fn" type, and this in turn means updating...
4371 (frame_insn): ...this. Strengthen return type from rtx to
4372 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4373
4374 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4375
4376 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4377 rtx to rtx_jump_table_data *. Also for local.
4378 * rtl.h (emit_jump_table_data): Likewise.
4379
4380 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4381
4382 * basic-block.h (create_basic_block_structure): Strengthen third
4383 param "bb_note" from rtx to rtx_note *.
4384 * rtl.h (emit_note_before): Strengthen return type from rtx to
4385 rtx_note *.
4386 (emit_note_after): Likewise.
4387 (emit_note): Likewise.
4388 (emit_note_copy): Likewise. Also, strengthen param similarly.
4389 * function.h (struct rtl_data): Strengthen field
4390 "x_stack_check_probe_note" from rtx to rtx_note *.
4391
4392 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4393 from rtx to rtx_note *.
4394 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4395 "bb_note" from rtx to rtx_note *.
4396 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4397 when calling emit_note_copy.
4398 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4399 rtx_note *.
4400 (emit_note_after): Likewise.
4401 (emit_note_before): Likewise.
4402 (emit_note_copy): Likewise. Also, strengthen param similarly.
4403 (emit_note): Likewise.
4404 * except.c (emit_note_eh_region_end): Likewise for return type.
4405 Strengthen local "next" from rtx to rtx_insn *.
4406 (convert_to_eh_region_ranges): Strengthen local "note"
4407 from rtx to rtx_note *.
4408 * final.c (change_scope): Likewise.
4409 (reemit_insn_block_notes): Likewise, for both locals named "note".
4410 Also, strengthen local "insn" from rtx to rtx_insn *.
4411 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4412 rtx to rtx_note *.
4413 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4414 strengthen local "seq" from rtx to rtx_insn *.
4415 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4416 to rtx_note *.
4417 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4418 vec<rtx_note *>.
4419 (get_bb_note_from_pool): Strengthen return type from rtx to
4420 rtx_note *.
4421 (sel_create_basic_block): Strengthen local "new_bb_note" from
4422 insn_t to rtx_note *.
4423 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4424 "note" from rtx to rtx_note *.
4425 (emit_notes_in_bb): Likewise.
4426
4427 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4428
4429 * function.h (struct rtl_data): Strengthen field
4430 "x_parm_birth_insn" from rtx to rtx_insn *.
4431 * function.c (struct assign_parm_data_all): Strengthen fields
4432 "first_conversion_insn" and "last_conversion_insn" from rtx to
4433 rtx_insn *.
4434
4435 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4436
4437 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4438 to rtx_insn *; also for local "var_end_seq".
4439 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4440 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4441 "insn".
4442 (expand_gimple_cond): Likewise for locals "last2" and "last".
4443 (mark_transaction_restart_calls): Likewise for local "insn".
4444 (expand_gimple_stmt): Likewise for return type and locals "last"
4445 and "insn".
4446 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4447 (avoid_complex_debug_insns): Likewise for param "insn".
4448 (expand_debug_locations): Likewise for locals "insn", "last",
4449 "prev_insn" and "insn2".
4450 (expand_gimple_basic_block): Likewise for local "last".
4451 (construct_exit_block): Likewise for locals "head", "end",
4452 "orig_end".
4453 (pass_expand::execute): Likewise for locals "var_seq",
4454 "var_ret_seq", "next".
4455
4456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4457
4458 * asan.h (asan_emit_stack_protection): Strengthen return type from
4459 rtx to rtx_insn *.
4460 * asan.c (asan_emit_stack_protection): Likewise. Add local
4461 "insns" to hold the return value.
4462
4463 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4464
4465 * basic-block.h (bb_note): Strengthen return type from rtx to
4466 rtx_note *.
4467 * sched-int.h (bb_note): Likewise.
4468 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4469
4470 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4471
4472 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4473 rtx_insn *.
4474
4475 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4476 "insn" from rtx to rtx_insn *.
4477 (make_debug_insn_raw): Strengthen return type from rtx to
4478 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4479 (make_jump_insn_raw): Strengthen return type from rtx to
4480 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4481 (make_call_insn_raw): Strengthen return type from rtx to
4482 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4483 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4484 callback from rtx to rtx_insn *; likewise for local "insn" and
4485 "next", adding a checked cast to rtx_insn in the relevant cases of
4486 the switch statement.
4487 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4488 callback from rtx to rtx_insn *.
4489 (emit_pattern_after_setloc): Likewise.
4490 (emit_pattern_after): Likewise.
4491 (emit_pattern_before_setloc): Likewise.
4492 (emit_pattern_before): Likewise.
4493
4494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4495
4496 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4497 rtx_call_insn *.
4498 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4499 accepting an rtx_insn *.
4500 (last_call_insn): Strengthen return type from rtx to
4501 rtx_call_insn *.
4502
4503 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4504
4505 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4506 "insns" from rtx to rtx_insn *.
4507 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4508 locals "insn" and "prev".
4509
4510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4511
4512 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4513 rtx_jump_table_data **.
4514
4515 * cfgbuild.c (make_edges): Introduce local "table", using it in
4516 place of "tmp" for jump table data.
4517 (find_bb_boundaries): Strengthen local "table" from rtx to
4518 rtx_jump_table_data *.
4519 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4520 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4521 (try_crossjump_to_edge): Likewise.
4522 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4523 "table".
4524 (patch_jump_insn): Introduce local "table", using it in place of
4525 "tmp" for jump table data.
4526 (force_nonfallthru_and_redirect): Introduce local "table", so that
4527 call to tablejump_p can receive an rtx_jump_table_data **. Update
4528 logic around the call to overwrite "note" appropriately if
4529 tablejump_p returns non-zero.
4530 (get_last_bb_insn): Introduce local "table", using it in place of
4531 "tmp" for jump table data.
4532 * dwarf2cfi.c (create_trace_edges): Likewise.
4533
4534 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4535 from rtx to rtx_jump_table_data *.
4536 (create_fix_barrier): Strengthen local "tmp" from rtx to
4537 rtx_jump_table_data *.
4538 (arm_reorg): Likewise for local "table".
4539
4540 * config/s390/s390.c (s390_chunkify_start): Likewise.
4541
4542 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4543
4544 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4545 rtx to rtx_jump_table_data *.
4546
4547 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4548 rtx_jump_table_data **. Add a checked cast when writing through
4549 the pointer: we know there that local "table" is non-NULL and that
4550 JUMP_TABLE_DATA_P (table) holds.
4551 (label_is_jump_target_p): Introduce local "table", using it in
4552 place of "tmp" for jump table data.
4553
4554 2014-08-19 Marek Polacek <polacek@redhat.com>
4555
4556 PR c++/62153
4557 * doc/invoke.texi: Document -Wbool-compare.
4558
4559 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4560
4561 * rtl.h (entry_of_function): Strengthen return type from rtx to
4562 rtx_insn *.
4563 * cfgrtl.c (entry_of_function): Likewise.
4564
4565 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4566
4567 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4568 rtx_insn *, adding a checked cast for now.
4569 (get_last_insn): Likewise.
4570
4571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4572
4573 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4574 rtx_code_label *.
4575
4576 * emit-rtl.c (gen_label_rtx): Likewise.
4577
4578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4579
4580 * rtl.h (previous_insn): Strengthen return type from rtx to
4581 rtx_insn *.
4582 (next_insn): Likewise.
4583 (prev_nonnote_insn): Likewise.
4584 (prev_nonnote_insn_bb): Likewise.
4585 (next_nonnote_insn): Likewise.
4586 (next_nonnote_insn_bb): Likewise.
4587 (prev_nondebug_insn): Likewise.
4588 (next_nondebug_insn): Likewise.
4589 (prev_nonnote_nondebug_insn): Likewise.
4590 (next_nonnote_nondebug_insn): Likewise.
4591 (prev_real_insn): Likewise.
4592 (next_real_insn): Likewise.
4593 (prev_active_insn): Likewise.
4594 (next_active_insn): Likewise.
4595
4596 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4597 rtx_insn *, adding a checked cast.
4598 (previous_insn): Likewise.
4599 (next_nonnote_insn): Likewise.
4600 (next_nonnote_insn_bb): Likewise.
4601 (prev_nonnote_insn): Likewise.
4602 (prev_nonnote_insn_bb): Likewise.
4603 (next_nondebug_insn): Likewise.
4604 (prev_nondebug_insn): Likewise.
4605 (next_nonnote_nondebug_insn): Likewise.
4606 (prev_nonnote_nondebug_insn): Likewise.
4607 (next_real_insn): Likewise.
4608 (prev_real_insn): Likewise.
4609 (next_active_insn): Likewise.
4610 (prev_active_insn): Likewise.
4611
4612 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
4613 param "stepfunc" so that it returns an rtx_insn * rather than an
4614 rtx, to track the change to prev_nonnote_insn_bb, which is the
4615 only function this is called with.
4616 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
4617
4618 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
4619
4620 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
4621 assert.
4622
4623 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4624
4625 * coretypes.h (class rtx_debug_insn): Add forward declaration.
4626 (class rtx_nonjump_insn): Likewise.
4627 (class rtx_jump_insn): Likewise.
4628 (class rtx_call_insn): Likewise.
4629 (class rtx_jump_table_data): Likewise.
4630 (class rtx_barrier): Likewise.
4631 (class rtx_code_label): Likewise.
4632 (class rtx_note): Likewise.
4633
4634 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
4635 adding the invariant DEBUG_INSN_P (X).
4636 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
4637 the invariant NONJUMP_INSN_P (X).
4638 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
4639 the invariant JUMP_P (X).
4640 (class rtx_call_insn): New, a subclass of rtx_insn, adding
4641 the invariant CALL_P (X).
4642 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
4643 invariant JUMP_TABLE_DATA_P (X).
4644 (class rtx_barrier): New, a subclass of rtx_insn, adding the
4645 invariant BARRIER_P (X).
4646 (class rtx_code_label): New, a subclass of rtx_insn, adding
4647 the invariant LABEL_P (X).
4648 (class rtx_note): New, a subclass of rtx_insn, adding
4649 the invariant NOTE_P(X).
4650 (is_a_helper <rtx_debug_insn *>::test): New.
4651 (is_a_helper <rtx_nonjump_insn *>::test): New.
4652 (is_a_helper <rtx_jump_insn *>::test): New.
4653 (is_a_helper <rtx_call_insn *>::test): New.
4654 (is_a_helper <rtx_jump_table_data *>::test): New functions,
4655 overloaded for both rtx and rtx_insn *.
4656 (is_a_helper <rtx_barrier *>::test): New.
4657 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
4658 for both rtx and rtx_insn *.
4659 (is_a_helper <rtx_note *>::test): New.
4660
4661 2014-08-19 Marek Polacek <polacek@redhat.com>
4662
4663 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
4664 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4665 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
4666 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4667
4668 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4669
4670 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
4671 rtx_insn *. To help with transition, for now, convert from an
4672 access macro into a pair of functions: BND_TO, returning an
4673 rtx_insn *, and...
4674 (SET_BND_TO): New function, for use where BND_TO is used as an
4675 lvalue.
4676
4677 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
4678 SET_BND_TO.
4679 (BND_TO): New function, adding a checked cast.
4680 (SET_BND_TO): New function.
4681
4682 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
4683 SET_BND_TO.
4684 (compute_av_set_on_boundaries): Likewise.
4685
4686 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4687
4688 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
4689 destination if it is used in source.
4690 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
4691 (*popcount<mode>2_falsedep_1): Likewise.
4692
4693 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4694
4695 PR other/62168
4696 * configure.ac: Set install_gold_as_default to no first.
4697 * configure: Regenerated.
4698
4699 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4700
4701 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
4702 "note_list" field will eventually be an rtx_insn *. To help with
4703 transition, for now, convert from an access macro into a pair of
4704 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
4705 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
4706 used as an lvalue.
4707
4708 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
4709 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
4710
4711 * sel-sched-ir.c (init_bb): Likewise.
4712 (sel_restore_notes): Likewise.
4713 (move_bb_info): Likewise.
4714 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
4715 (SET_BB_NOTE_LIST): New function.
4716
4717 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4718
4719 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
4720 field will eventually be an rtx_insn *. To help with transition,
4721 for now, convert from an access macro into a pair of functions:
4722 VINSN_INSN_RTX, returning an rtx_insn *, and...
4723 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
4724 is used as an lvalue.
4725
4726 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
4727 SET_VINSN_INSN_RTX where it's used as an lvalue.
4728 (VINSN_INSN_RTX): New function.
4729 (SET_VINSN_INSN_RTX): New function.
4730
4731 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4732
4733 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
4734 eventually be rtx_insn *, but to help with transition, for now,
4735 convert from an access macro into a pair of functions: DEP_PRO
4736 returning an rtx_insn * and...
4737 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
4738 lvalue, returning an rtx&.
4739 (DEP_CON): Analogous changes to DEP_PRO above.
4740 (SET_DEP_CON): Likewise.
4741
4742 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
4743 an lvalue to SET_DEP_CON.
4744 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
4745 (sd_copy_back_deps): Likewise for DEP_CON.
4746 (DEP_PRO): New function, adding a checked cast for now.
4747 (DEP_CON): Likewise.
4748 (SET_DEP_PRO): New function.
4749 (SET_DEP_CON): Likewise.
4750
4751 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4752
4753 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
4754 (extra_options): Add i386/cygwin.opt.
4755 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
4756 (CPP_SPEC): Accept -pthread.
4757 (LINK_SPEC): Ditto.
4758 (GOMP_SELF_SPECS): Update comment.
4759 * config/i386/cygwin.opt: New file for -pthread flag.
4760
4761 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4762
4763 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
4764 * df.h (DF_REF_INSN): Convert from a macro to a function, so
4765 that we can return an rtx_insn *.
4766
4767 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4768
4769 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
4770 when building executables, not DLLs. Add --large-address-aware
4771 under the same conditions.
4772 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
4773 when building executables, not DLLs. Add --large-address-aware
4774 under the same conditions when using -m32.
4775
4776 * config/i386/cygwin-stdint.h: Throughout, make type
4777 definitions dependent on target architecture, not host.
4778
4779 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4780
4781 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
4782 the return type from rtx to rtx_insn *, which will enable various
4783 conversions in followup patches. For now this is is done by a
4784 checked cast.
4785 (NEXT_INSN): Likewise.
4786 (SET_PREV_INSN): Convert to an inline function. This is intended
4787 for use as an lvalue, and so returns an rtx& to allow in-place
4788 modification.
4789 (SET_NEXT_INSN): Likewise.
4790
4791 2014-07-08 Mark Wielaard <mjw@redhat.com>
4792
4793 PR debug/59051
4794 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
4795
4796 2014-08-19 Marek Polacek <polacek@redhat.com>
4797
4798 PR c/61271
4799 * cgraphunit.c (handle_alias_pairs): Fix condition.
4800
4801 2014-08-19 Richard Biener <rguenther@suse.de>
4802
4803 * gimple-fold.c (fold_gimple_assign): Properly build a
4804 null-pointer constant when devirtualizing addresses.
4805
4806 2014-07-07 Mark Wielaard <mjw@redhat.com>
4807
4808 * dwarf2out.c (decl_quals): New function.
4809 (modified_type_die): Take one cv_quals argument instead of two,
4810 one for const and one for volatile.
4811 (add_type_attribute): Likewise.
4812 (generic_parameter_die): Call add_type_attribute with one modifier
4813 argument.
4814 (base_type_for_mode): Likewise.
4815 (add_bounds_info): Likewise.
4816 (add_subscript_info): Likewise.
4817 (gen_array_type_die): Likewise.
4818 (gen_descr_array_type_die): Likewise.
4819 (gen_entry_point_die): Likewise.
4820 (gen_enumeration_type_die): Likewise.
4821 (gen_formal_parameter_die): Likewise.
4822 (gen_subprogram_die): Likewise.
4823 (gen_variable_die): Likewise.
4824 (gen_const_die): Likewise.
4825 (gen_field_die): Likewise.
4826 (gen_pointer_type_die): Likewise.
4827 (gen_reference_type_die): Likewise.
4828 (gen_ptr_to_mbr_type_die): Likewise.
4829 (gen_inheritance_die): Likewise.
4830 (gen_subroutine_type_die): Likewise.
4831 (gen_typedef_die): Likewise.
4832 (force_type_die): Likewise.
4833
4834 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4835
4836 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
4837 if unset.
4838 * configure: Regenerate.
4839
4840 2014-08-19 Richard Biener <rguenther@suse.de>
4841
4842 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
4843 DECL_EXTERNALs in BLOCKs as non-references.
4844 * tree-streamer-out.c (streamer_write_chain): Likewise.
4845
4846 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
4847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4848 Anna Tikhonova <anna.tikhonova@intel.com>
4849 Ilya Tocar <ilya.tocar@intel.com>
4850 Andrey Turetskiy <andrey.turetskiy@intel.com>
4851 Ilya Verbin <ilya.verbin@intel.com>
4852 Kirill Yukhin <kirill.yukhin@intel.com>
4853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4854
4855 * config/i386/sse.md
4856 (define_mode_iterator VI48_AVX512F): Delete.
4857 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
4858 (define_mode_iterator VI2_AVX512VL): Ditto.
4859 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
4860 Delete.
4861 (define_insn
4862 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
4863 New.
4864 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
4865 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
4866 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4867 with VI48_AVX512F_AVX512VL): New.
4868 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4869 with VI2_AVX512VL): Ditto.
4870
4871 2014-08-19 Marek Polacek <polacek@redhat.com>
4872
4873 * doc/invoke.texi: Document -Wc99-c11-compat.
4874
4875 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4876
4877 * rtl.h (PREV_INSN): Split macro in two: the existing one,
4878 for rvalues, and...
4879 (SET_PREV_INSN): New macro, for use as an lvalue.
4880 (NEXT_INSN, SET_NEXT_INSN): Likewise.
4881
4882 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
4883 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
4884 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4885 (fixup_abnormal_edges): Likewise.
4886 (unlink_insn_chain): Likewise.
4887 (fixup_reorder_chain): Likewise.
4888 (cfg_layout_delete_block): Likewise.
4889 (cfg_layout_merge_blocks): Likewise.
4890 * combine.c (update_cfg_for_uncondjump): Likewise.
4891 * emit-rtl.c (link_insn_into_chain): Likewise.
4892 (remove_insn): Likewise.
4893 (delete_insns_since): Likewise.
4894 (reorder_insns_nobb): Likewise.
4895 (emit_insn_after_1): Likewise.
4896 * final.c (rest_of_clean_state): Likewise.
4897 (final_scan_insn): Likewise.
4898 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
4899 * haifa-sched.c (concat_note_lists): Likewise.
4900 (remove_notes): Likewise.
4901 (restore_other_notes): Likewise.
4902 (move_insn): Likewise.
4903 (unlink_bb_notes): Likewise.
4904 (restore_bb_notes): Likewise.
4905 * jump.c (delete_for_peephole): Likewise.
4906 * optabs.c (emit_libcall_block_1): Likewise.
4907 * reorg.c (emit_delay_sequence): Likewise.
4908 (fill_simple_delay_slots): Likewise.
4909 * sel-sched-ir.c (sel_move_insn): Likewise.
4910 (sel_remove_insn): Likewise.
4911 (get_bb_note_from_pool): Likewise.
4912 * sel-sched.c (move_nop_to_previous_block): Likewise.
4913
4914 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
4915 * config/c6x/c6x.c (gen_one_bundle): Likewise.
4916 (c6x_gen_bundles): Likewise.
4917 (hwloop_optimize): Likewise.
4918 * config/frv/frv.c (frv_function_prologue): Likewise.
4919 (frv_register_nop): Likewise.
4920 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
4921 (ia64_reorg): Likewise.
4922 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
4923 (mep_make_bundle): Likewise.
4924 (mep_bundle_insns): Likewise.
4925 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
4926 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
4927 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
4928
4929 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4930
4931 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
4932 return type from rtx to rtx_insn *.
4933 (BB_END): Likewise.
4934 (BB_HEADER): Likewise.
4935 (BB_FOOTER): Likewise.
4936 (SET_BB_HEAD): Convert to a function.
4937 (SET_BB_END): Likewise.
4938 (SET_BB_HEADER): Likewise.
4939 (SET_BB_FOOTER): Likewise.
4940
4941 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
4942 Strengthen the return type from rtx to rtx_insn *. For now, this
4943 is done by adding a checked cast, but this will eventually
4944 become a field lookup.
4945 (BB_END): Likewise.
4946 (BB_HEADER): Likewise.
4947 (BB_FOOTER): Likewise.
4948 (SET_BB_HEAD): New function, from macro of same name. This is
4949 intended for use as an lvalue, and so returns an rtx& to allow
4950 in-place modification.
4951 (SET_BB_END): Likewise.
4952 (SET_BB_HEADER): Likewise.
4953 (SET_BB_FOOTER): Likewise.
4954
4955 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4956
4957 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
4958 for rvalues, and...
4959 (SET_BB_HEAD): New macro, for use as a lvalue.
4960 (BB_END, SET_BB_END): Likewise.
4961 (BB_HEADER, SET_BB_HEADER): Likewise.
4962 (BB_FOOTER, SET_BB_FOOTER): Likewise.
4963
4964 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
4965 of BB_* macros into SET_BB_* macros.
4966 (fix_crossing_unconditional_branches): Likewise.
4967 * caller-save.c (save_call_clobbered_regs): Likewise.
4968 (insert_one_insn): Likewise.
4969 * cfgbuild.c (find_bb_boundaries): Likewise.
4970 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4971 (outgoing_edges_match): Likewise.
4972 (try_optimize_cfg): Likewise.
4973 * cfgexpand.c (expand_gimple_cond): Likewise.
4974 (expand_gimple_tailcall): Likewise.
4975 (expand_gimple_basic_block): Likewise.
4976 (construct_exit_block): Likewise.
4977 * cfgrtl.c (delete_insn): Likewise.
4978 (create_basic_block_structure): Likewise.
4979 (rtl_delete_block): Likewise.
4980 (rtl_split_block): Likewise.
4981 (emit_nop_for_unique_locus_between): Likewise.
4982 (rtl_merge_blocks): Likewise.
4983 (block_label): Likewise.
4984 (try_redirect_by_replacing_jump): Likewise.
4985 (emit_barrier_after_bb): Likewise.
4986 (fixup_abnormal_edges): Likewise.
4987 (record_effective_endpoints): Likewise.
4988 (relink_block_chain): Likewise.
4989 (fixup_reorder_chain): Likewise.
4990 (fixup_fallthru_exit_predecessor): Likewise.
4991 (cfg_layout_duplicate_bb): Likewise.
4992 (cfg_layout_split_block): Likewise.
4993 (cfg_layout_delete_block): Likewise.
4994 (cfg_layout_merge_blocks): Likewise.
4995 * combine.c (update_cfg_for_uncondjump): Likewise.
4996 * emit-rtl.c (add_insn_after): Likewise.
4997 (remove_insn): Likewise.
4998 (reorder_insns): Likewise.
4999 (emit_insn_after_1): Likewise.
5000 * haifa-sched.c (get_ebb_head_tail): Likewise.
5001 (restore_other_notes): Likewise.
5002 (move_insn): Likewise.
5003 (sched_extend_bb): Likewise.
5004 (fix_jump_move): Likewise.
5005 * ifcvt.c (noce_process_if_block): Likewise.
5006 (dead_or_predicable): Likewise.
5007 * ira.c (update_equiv_regs): Likewise.
5008 * reg-stack.c (change_stack): Likewise.
5009 * sel-sched-ir.c (sel_move_insn): Likewise.
5010 * sel-sched.c (move_nop_to_previous_block): Likewise.
5011
5012 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5013 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5014
5015 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5016
5017 * rtl.h (for_each_rtx_in_insn): New function.
5018 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5019
5020 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5021
5022 * coretypes.h (class rtx_insn): Add forward declaration.
5023
5024 * rtl.h: Include is-a.h.
5025 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5026 workaround to ensure gengtype knows inheritance is occurring,
5027 whilst continuing to use the pre-existing special-casing for
5028 rtx_def.
5029 (class rtx_insn): New subclass of rtx_def, adding the
5030 invariant that we're dealing with something we can sanely use
5031 INSN_UID, NEXT_INSN, PREV_INSN on.
5032 (is_a_helper <rtx_insn *>::test): New.
5033 (is_a_helper <const rtx_insn *>::test): New.
5034
5035 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5036
5037 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5038
5039 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5040
5041 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5042 comdats as extern.
5043
5044 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5045
5046 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5047 to BUILT_IN_UNREACHABLE.
5048
5049 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5050
5051 PR target/62011
5052 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5053 New tune flag.
5054 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5055 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5056 (ffs<mode>2): Do not expand with tzcnt for
5057 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5058 (ffssi2_no_cmove): Ditto.
5059 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5060 (ctz<mode>2): New expander.
5061 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5062 (*ctz<mode>2_falsedep): New insn.
5063 (*ctz<mode>2): Rename from ctz<mode>2.
5064 (clz<mode>2_lzcnt): New expander.
5065 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5066 (*clz<mode>2_lzcnt_falsedep): New insn.
5067 (*clz<mode>2): Rename from ctz<mode>2.
5068 (popcount<mode>2): New expander.
5069 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5070 (*popcount<mode>2_falsedep): New insn.
5071 (*popcount<mode>2): Rename from ctz<mode>2.
5072 (*popcount<mode>2_cmp): Remove.
5073 (*popcountsi2_cmp_zext): Ditto.
5074
5075 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5076
5077 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5078 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5079 * config/microblaze/microblaze.h
5080 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5081
5082 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5083
5084 PR other/62168
5085 * configure.ac: Set install_gold_as_default to no for
5086 --enable-gold=no.
5087 * configure: Regenerated.
5088
5089 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5090
5091 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5092 * config.in: Add undef of HAVE_isl.
5093 * configure: Regenerate.
5094 * configure.ac: Add definition of HAVE_isl.
5095 * graphite-blocking.c: Add checking of HAVE_isl.
5096 * graphite-dependences.c: Likewise.
5097 * graphite-interchange.c: Likewise.
5098 * graphite-isl-ast-to-gimple.c: Likewise.
5099 * graphite-optimize-isl.c: Likewise.
5100 * graphite-poly.c: Likewise.
5101 * graphite-scop-detection.c: Likewise.
5102 * graphite-sese-to-poly.c: Likewise.
5103 * graphite.c: Likewise.
5104 * toplev.c: Replace the checking of HAVE_cloog with the checking
5105 of HAVE_isl.
5106
5107 2014-08-18 Richard Biener <rguenther@suse.de>
5108
5109 PR tree-optimization/62090
5110 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5111 (fold_builtin_3): Do not fold snprintf.
5112 (fold_builtin_4): Likewise.
5113 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5114 moved from builtins.c.
5115 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5116 (gimple_fold_builtin): Do not fold sprintf here.
5117
5118 2014-08-18 Richard Biener <rguenther@suse.de>
5119
5120 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5121 code to ...
5122 (maybe_canonicalize_mem_ref_addr): ... this function.
5123 (fold_stmt_1): Apply it here before all simplification.
5124
5125 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5126
5127 PR ipa/61800
5128 * cgraph.h (cgraph_node::create_indirect_edge): Add
5129 compute_indirect_info param.
5130 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5131 indirect_info only when it is required.
5132 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5133 indirect_info fore cloned indirect edge.
5134
5135 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5137 Anna Tikhonova <anna.tikhonova@intel.com>
5138 Ilya Tocar <ilya.tocar@intel.com>
5139 Andrey Turetskiy <andrey.turetskiy@intel.com>
5140 Ilya Verbin <ilya.verbin@intel.com>
5141 Kirill Yukhin <kirill.yukhin@intel.com>
5142 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5143
5144 * config/i386/sse.md
5145 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5146 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5147
5148 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5149 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5150 Anna Tikhonova <anna.tikhonova@intel.com>
5151 Ilya Tocar <ilya.tocar@intel.com>
5152 Andrey Turetskiy <andrey.turetskiy@intel.com>
5153 Ilya Verbin <ilya.verbin@intel.com>
5154 Kirill Yukhin <kirill.yukhin@intel.com>
5155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5156
5157 * config/i386/sse.md
5158 (define_mode_iterator VF1_AVX512VL): New.
5159 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5160 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5161 New.
5162
5163 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5164 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5165 Anna Tikhonova <anna.tikhonova@intel.com>
5166 Ilya Tocar <ilya.tocar@intel.com>
5167 Andrey Turetskiy <andrey.turetskiy@intel.com>
5168 Ilya Verbin <ilya.verbin@intel.com>
5169 Kirill Yukhin <kirill.yukhin@intel.com>
5170 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5171
5172 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5173 * config/i386/i386.md
5174 (define_code_iterator any_float): New.
5175 (define_code_attr floatsuffix): New.
5176 * config/i386/sse.md
5177 (define_mode_iterator VF1_128_256VL): New.
5178 (define_mode_iterator VF2_512_256VL): New.
5179 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5180 TARGET check.
5181 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5182 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5183 New.
5184 (define_mode_attr qq2pssuff): New.
5185 (define_mode_attr sselongvecmode): New.
5186 (define_mode_attr sselongvecmodelower): New.
5187 (define_mode_attr sseintvecmode3): New.
5188 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5189 New.
5190 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5191 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5192 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5193 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5194
5195 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5197 Anna Tikhonova <anna.tikhonova@intel.com>
5198 Ilya Tocar <ilya.tocar@intel.com>
5199 Andrey Turetskiy <andrey.turetskiy@intel.com>
5200 Ilya Verbin <ilya.verbin@intel.com>
5201 Kirill Yukhin <kirill.yukhin@intel.com>
5202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5203
5204 * config/i386/sse.md
5205 (define_mode_iterator VF2_AVX512VL): New.
5206 (define_mode_attr sseintvecmode2): New.
5207 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5208 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5209 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5210 (define_insn
5211 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5212 Ditto.
5213 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5214 Ditto.
5215 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5216 Ditto.
5217
5218 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5220 Anna Tikhonova <anna.tikhonova@intel.com>
5221 Ilya Tocar <ilya.tocar@intel.com>
5222 Andrey Turetskiy <andrey.turetskiy@intel.com>
5223 Ilya Verbin <ilya.verbin@intel.com>
5224 Kirill Yukhin <kirill.yukhin@intel.com>
5225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5226
5227 * config/i386/i386.md
5228 (define_insn "*movoi_internal_avx"): Add evex version.
5229 (define_insn "*movti_internal"): Ditto.
5230
5231 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5233 Anna Tikhonova <anna.tikhonova@intel.com>
5234 Ilya Tocar <ilya.tocar@intel.com>
5235 Andrey Turetskiy <andrey.turetskiy@intel.com>
5236 Ilya Verbin <ilya.verbin@intel.com>
5237 Kirill Yukhin <kirill.yukhin@intel.com>
5238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5239
5240 * config/i386/i386.md
5241 (define_attr "isa"): Add avx512dq, noavx512dq.
5242 (define_attr "enabled"): Ditto.
5243 * config/i386/sse.md
5244 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5245
5246 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5248 Anna Tikhonova <anna.tikhonova@intel.com>
5249 Ilya Tocar <ilya.tocar@intel.com>
5250 Andrey Turetskiy <andrey.turetskiy@intel.com>
5251 Ilya Verbin <ilya.verbin@intel.com>
5252 Kirill Yukhin <kirill.yukhin@intel.com>
5253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5254
5255 * config/i386/i386.c
5256 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5257 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5258 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5259 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5260 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5261 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5262 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5263 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5264 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5265 * config/i386/sse.md
5266 (define_mode_iterator VMOVE): Allow V4TI mode.
5267 (define_mode_iterator V_AVX512VL): New.
5268 (define_mode_iterator V): New handling for AVX512VL.
5269 (define_insn "avx512f_load<mode>_mask"): Delete.
5270 (define_insn "<avx512>_load<mode>_mask"): New.
5271 (define_insn "avx512f_store<mode>_mask"): Delete.
5272 (define_insn "<avx512>_store<mode>_mask"): New.
5273
5274
5275 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5276
5277 PR sanitizer/62089
5278 * asan.c (instrument_derefs): Fix bitfield check.
5279
5280 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5281
5282 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5283 * config/rs6000/htm.md (ttest): Remove clobber.
5284 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5285 (and_operand): Reformat.
5286 (and_2rld_operand): New predicate.
5287 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5288 parameter.
5289 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5290 parameter. Handle AND directly.
5291 (rs6000_split_logical_di): Remove last parameter.
5292 (rs6000_split_logical): Remove last parameter. Remove obsolete
5293 comment.
5294 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5295 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5296 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5297 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5298 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5299 and 5 anonymous splitters): Delete.
5300 (and<mode>3): New expander.
5301 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5302 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5303 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5304 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5305 (floatdisf2_internal1): Remove clobbers.
5306 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5307 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5308 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5309 (and<mode>3 for BOOL_128): Remove clobber.
5310 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5311 rs6000_split_logical.
5312 (*bool<mode>3_internal for BOOL_128): Adjust call of
5313 rs6000_split_logical.
5314 (*boolc<mode>3_internal1 for BOOL_128,
5315 *boolc<mode>3_internal2 for BOOL_128,
5316 *boolcc<mode>3_internal1 for BOOL_128,
5317 *boolcc<mode>3_internal2 for BOOL_128,
5318 *eqv<mode>3_internal1 for BOOL_128,
5319 *eqv<mode>3_internal2 for BOOL_128,
5320 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5321 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5322 clobber.
5323 (*vec_reload_and_reg_<mptrsize>): Delete.
5324
5325 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5326
5327 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5328 and split, *boolccsi3_internal3 and split): Delete.
5329 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5330 *boolccdi3_internal3 and split): Delete.
5331 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5332 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5333
5334 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5335
5336 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5337 and split, *boolcsi3_internal3 and split): Delete.
5338 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5339 *boolcdi3_internal3 and split): Delete.
5340 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5341
5342 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5343
5344 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5345 <'u'>: Also support printing the low-order 16 bits.
5346 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5347 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5348 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5349 *booldi3_internal3 and split): Delete.
5350 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5351 *bool<mode>3_dot2): New.
5352 (two anonymous define_splits for non_logical_cint_operand): Merge.
5353
5354 2014-08-17 Marek Polacek <polacek@redhat.com>
5355 Manuel López-Ibáñez <manu@gcc.gnu.org>
5356
5357 PR c/62059
5358 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5359 (diagnostic_show_locus): Don't print caret diagnostic
5360 if a column is larger than the line_width.
5361
5362 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5363
5364 * common.opt: Make the ISL AST generator to be the main code generator
5365 of Graphite.
5366
5367 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5368
5369 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5370
5371 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5372
5373 PR target/61641
5374 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5375 Declare.
5376 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5377 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5378 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5379 Define.
5380 * config/pa/pa.md (begin_brtab): Delete insn.
5381 (end_brtab): Likewise.
5382
5383 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5384
5385 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5386
5387 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5388
5389 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5390 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5391 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5392 (get_dynamic_type): Remove.
5393 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5394 (clear_speculation): Bring to ipa-deivrt.h
5395 (get_class_context): Rename to ...
5396 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5397 (contains_type_p): Update.
5398 (get_dynamic_type): Rename to ...
5399 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5400 (possible_polymorphic_call_targets): UPdate.
5401 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5402 * ipa-prop.c (ipa_analyze_call_uses): Update.
5403
5404 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5405
5406 * doc/invoke.texi (SH options): Document missing processor variant
5407 options. Remove references to Hitachi. Undocument deprecated mspace
5408 option.
5409
5410 2014-08-15 Jason Merrill <jason@redhat.com>
5411
5412 * tree.c (type_hash_canon): Uncomment assert.
5413
5414 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5415
5416 * input.h (in_system_header_at): Add comment.
5417
5418 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5419
5420 PR fortran/44054
5421 * diagnostic.c (build_message_string): Make it extern.
5422 * diagnostic.h (build_message_string): Make it extern.
5423
5424 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5425
5426 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5427 load/store from/to non-floating class pseudo.
5428
5429 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5430
5431 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5432
5433 2014-08-15 Richard Biener <rguenther@suse.de>
5434
5435 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5436 (get_constraint_for_ssa_var): Remove dead code.
5437 (get_constraint_for_1): Adjust.
5438 (find_what_var_points_to): Likewise.
5439 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5440
5441 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5442
5443 PR target/61878
5444 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5445 (_mm512_mask_cmpge_epu32_mask): Ditto.
5446 (_mm512_cmpge_epu32_mask): Ditto.
5447 (_mm512_mask_cmpge_epi64_mask): Ditto.
5448 (_mm512_cmpge_epi64_mask): Ditto.
5449 (_mm512_mask_cmpge_epu64_mask): Ditto.
5450 (_mm512_cmpge_epu64_mask): Ditto.
5451 (_mm512_mask_cmple_epi32_mask): Ditto.
5452 (_mm512_cmple_epi32_mask): Ditto.
5453 (_mm512_mask_cmple_epu32_mask): Ditto.
5454 (_mm512_cmple_epu32_mask): Ditto.
5455 (_mm512_mask_cmple_epi64_mask): Ditto.
5456 (_mm512_cmple_epi64_mask): Ditto.
5457 (_mm512_mask_cmple_epu64_mask): Ditto.
5458 (_mm512_cmple_epu64_mask): Ditto.
5459 (_mm512_mask_cmplt_epi32_mask): Ditto.
5460 (_mm512_cmplt_epi32_mask): Ditto.
5461 (_mm512_mask_cmplt_epu32_mask): Ditto.
5462 (_mm512_cmplt_epu32_mask): Ditto.
5463 (_mm512_mask_cmplt_epi64_mask): Ditto.
5464 (_mm512_cmplt_epi64_mask): Ditto.
5465 (_mm512_mask_cmplt_epu64_mask): Ditto.
5466 (_mm512_cmplt_epu64_mask): Ditto.
5467 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5468 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5469 (_mm512_cmpneq_epu32_mask): Ditto.
5470 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5471 (_mm512_cmpneq_epi64_mask): Ditto.
5472 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5473 (_mm512_cmpneq_epu64_mask): Ditto.
5474 (_mm512_castpd_ps): Ditto.
5475 (_mm512_castpd_si512): Ditto.
5476 (_mm512_castps_pd): Ditto.
5477 (_mm512_castps_si512): Ditto.
5478 (_mm512_castsi512_ps): Ditto.
5479 (_mm512_castsi512_pd): Ditto.
5480 (_mm512_castpd512_pd128): Ditto.
5481 (_mm512_castps512_ps128): Ditto.
5482 (_mm512_castsi512_si128): Ditto.
5483 (_mm512_castpd512_pd256): Ditto.
5484 (_mm512_castps512_ps256): Ditto.
5485 (_mm512_castsi512_si256): Ditto.
5486 (_mm512_castpd128_pd512): Ditto.
5487 (_mm512_castps128_ps512): Ditto.
5488 (_mm512_castsi128_si512): Ditto.
5489 (_mm512_castpd256_pd512): Ditto.
5490 (_mm512_castps256_ps512): Ditto.
5491 (_mm512_castsi256_si512): Ditto.
5492 (_mm512_cmpeq_epu32_mask): Ditto.
5493 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5494 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5495 (_mm512_cmpeq_epu64_mask): Ditto.
5496 (_mm512_cmpgt_epu32_mask): Ditto.
5497 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5498 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5499 (_mm512_cmpgt_epu64_mask): Ditto.
5500 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5501 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5502 * config/i386/i386.c (enum ix86_builtins): Add
5503 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5504 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5505 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5506 (bdesc_args): Add __builtin_ia32_si512_256si,
5507 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5508 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5509 __builtin_ia32_pd512_pd.
5510 (ix86_expand_args_builtin): Handle new FTYPEs.
5511 * config/i386/sse.md (castmode): Add 512-bit modes.
5512 (AVX512MODE2P): New.
5513 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5514 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5515
5516 2014-08-15 Richard Biener <rguenther@suse.de>
5517
5518 * fold-const.c (tree_swap_operands_p): Put all constants
5519 last, also strip sign-changing NOPs when considering further
5520 canonicalization. Canonicalize also when optimizing for size.
5521
5522 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5523
5524 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5525 one_match > zero_match case to just before simple_sequence.
5526
5527 2014-08-15 Richard Biener <rguenther@suse.de>
5528
5529 * data-streamer.h (streamer_string_index, string_for_index):
5530 Remove.
5531 * data-streamer-out.c (streamer_string_index): Make static.
5532 * data-streamer-in.c (string_for_index): Likewise.
5533 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5534 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5535
5536 2014-08-15 Richard Biener <rguenther@suse.de>
5537
5538 PR tree-optimization/62031
5539 * tree-data-ref.c (dr_analyze_indices): Do not set
5540 DR_UNCONSTRAINED_BASE.
5541 (dr_may_alias_p): All indirect accesses have to go the
5542 formerly DR_UNCONSTRAINED_BASE path.
5543 * tree-data-ref.h (struct indices): Remove
5544 unconstrained_base member.
5545 (DR_UNCONSTRAINED_BASE): Remove.
5546
5547 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5548
5549 PR middle-end/62092
5550 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5551 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5552 in OMP_CLAUSE_MAP in some outer target region.
5553
5554 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5555
5556 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5557 name_expansion_cache.
5558 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5559 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5560 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5561 (difference_cannot_overflow_p): New parameter. Use affine
5562 expansion for equality check.
5563 (iv_elimination_compare_lt): Pass new argument.
5564
5565 2014-08-14 DJ Delorie <dj@redhat.com>
5566
5567 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5568 variables to the accumulator.
5569
5570 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5571 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5572 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5573 with far-far moves.
5574
5575 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5576 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5577 (umulqihi3_virt): Likewise.
5578 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5579 (umulqihi3_real): Likewise.
5580
5581 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5582
5583 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5584
5585 PR tree-optimization/62091
5586 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5587 function_entry_reached.
5588 (walk_aliased_vdefs): Clear it here.
5589 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5590
5591 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5592
5593 * ipa-utils.h (compare_virtual_tables): Declare.
5594 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5595
5596 2014-08-14 Marek Polacek <polacek@redhat.com>
5597
5598 DR 458
5599 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
5600 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
5601
5602 2014-08-14 Tom de Vries <tom@codesourcery.com>
5603
5604 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
5605
5606 2014-08-14 Tom de Vries <tom@codesourcery.com>
5607
5608 PR rtl-optimization/62004
5609 PR rtl-optimization/62030
5610 * ifcvt.c (rtx_interchangeable_p): New function.
5611 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
5612 * emit-rtl.h (mem_attrs_eq_p): Declare.
5613
5614 2014-08-14 Roman Gareev <gareevroman@gmail.com>
5615
5616 * graphite-scop-detection.c:
5617 Add inclusion of cp-tree.h.
5618 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
5619 in case they are pointers to object types
5620
5621 2014-08-14 Richard Biener <rguenther@suse.de>
5622
5623 * BASE-VER: Change to 5.0.0
5624
5625 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5626 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5627 Anna Tikhonova <anna.tikhonova@intel.com>
5628 Ilya Tocar <ilya.tocar@intel.com>
5629 Andrey Turetskiy <andrey.turetskiy@intel.com>
5630 Ilya Verbin <ilya.verbin@intel.com>
5631 Kirill Yukhin <kirill.yukhin@intel.com>
5632 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5633
5634 * config/i386/sse.md (define_mode_attr avx512): New.
5635 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
5636 V4DI modes.
5637 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
5638 (define_mode_attr ssse3_avx2): Ditto.
5639 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
5640 (define_mode_attr avx2_avx512bw): New.
5641 (define_mode_attr ssedoublemodelower): New.
5642 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
5643 V32HI, V64QI modes.
5644 (define_mode_attr ssebytemode): Allow V8DI modes.
5645 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
5646 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
5647 (define_mode_attr ssePSmode2): New.
5648 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
5649 V16HI, V32HI modes.
5650 (define_mode_attr dbpsadbwmode): New.
5651 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
5652 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
5653 (vi8_sse4_1_avx2_avx512): New.
5654 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
5655 mode attribute.
5656 (define_mode_attr blendbits): Move before its immediate use.
5657
5658 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5660 Anna Tikhonova <anna.tikhonova@intel.com>
5661 Ilya Tocar <ilya.tocar@intel.com>
5662 Andrey Turetskiy <andrey.turetskiy@intel.com>
5663 Ilya Verbin <ilya.verbin@intel.com>
5664 Kirill Yukhin <kirill.yukhin@intel.com>
5665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5666
5667 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
5668 * config/i386/subst.md
5669 (define_mode_iterator SUBST_V): Update.
5670 (define_mode_iterator SUBST_A): Ditto.
5671 (define_subst_attr "mask_operand7"): New.
5672 (define_subst_attr "mask_operand10"): New.
5673 (define_subst_attr "mask_operand_arg34") : New.
5674 (define_subst_attr "mask_expand_op3"): New.
5675 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
5676 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
5677 (define_subst_attr "mask_avx512vl_condition"): New.
5678 (define_subst_attr "round_mask_operand4"): Ditto.
5679 (define_subst_attr "round_mask_scalar_op3"): Delete.
5680 (define_subst_attr "round_mask_op4"): New.
5681 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
5682 V16SImode.
5683 (define_subst_attr "round_modev8sf_condition"): New.
5684 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
5685 <MODE>mode.
5686 (define_subst_attr "round_saeonly_mask_operand4"): New.
5687 (define_subst_attr "round_saeonly_mask_op4"): New.
5688 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
5689 V8DImode, V16SImode.
5690 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
5691 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
5692 (define_subst_attr "mask_expand4_args"): New.
5693 (define_subst "mask_expand4"): New.
5694
5695 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5697 Anna Tikhonova <anna.tikhonova@intel.com>
5698 Ilya Tocar <ilya.tocar@intel.com>
5699 Andrey Turetskiy <andrey.turetskiy@intel.com>
5700 Ilya Verbin <ilya.verbin@intel.com>
5701 Kirill Yukhin <kirill.yukhin@intel.com>
5702 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5703
5704 * config/i386/i386.md
5705 (define_attr "isa"): Add avx512bw,noavx512bw.
5706 (define_attr "enabled"): Ditto.
5707 (define_split): Add 32/64-bit mask logic.
5708 (define_insn "*k<logic>qi"): New.
5709 (define_insn "*k<logic>hi"): New.
5710 (define_insn "*anddi_1"): Add mask version.
5711 (define_insn "*andsi_1"): Ditto.
5712 (define_insn "*<code><mode>_1"): Ditto.
5713 (define_insn "*<code>hi_1"): Ditto.
5714 (define_insn "kxnor<mode>"): New.
5715 (define_insn "kunpcksi"): New.
5716 (define_insn "kunpckdi"): New.
5717 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
5718 (define_insn "*one_cmplhi2_1"): Ditto.
5719
5720 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5721 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5722 Anna Tikhonova <anna.tikhonova@intel.com>
5723 Ilya Tocar <ilya.tocar@intel.com>
5724 Andrey Turetskiy <andrey.turetskiy@intel.com>
5725 Ilya Verbin <ilya.verbin@intel.com>
5726 Kirill Yukhin <kirill.yukhin@intel.com>
5727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5728
5729 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
5730 V32HImode.
5731
5732 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5733 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5734 Anna Tikhonova <anna.tikhonova@intel.com>
5735 Ilya Tocar <ilya.tocar@intel.com>
5736 Andrey Turetskiy <andrey.turetskiy@intel.com>
5737 Ilya Verbin <ilya.verbin@intel.com>
5738 Kirill Yukhin <kirill.yukhin@intel.com>
5739 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5740
5741 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
5742 registers.
5743 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
5744 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
5745 xmm/ymm16+ when availble.
5746 * config/i386/i386.h
5747 (HARD_REGNO_NREGS): Add mask regs.
5748 (VALID_AVX512F_REG_MODE): Ditto.
5749 (VALID_AVX512F_REG_MODE) : Define.
5750 (VALID_MASK_AVX512BW_MODE): Ditto.
5751 (reg_class) (MASK_REG_P(X)): Define.
5752 * config/i386/i386.md: Do not split long moves with mask register,
5753 use kmovb if avx512bw is availible.
5754 (movdi_internal): Handle mask registers.
5755
5756 2014-08-14 Richard Biener <rguenther@suse.de>
5757
5758 PR tree-optimization/62081
5759 * tree-ssa-loop.c (pass_fix_loops): New pass.
5760 (pass_tree_loop::gate): Do not fixup loops here.
5761 * tree-pass.h (make_pass_fix_loops): Declare.
5762 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
5763
5764 2014-08-14 Richard Biener <rguenther@suse.de>
5765
5766 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
5767 (type_hash_canon): ... this and avoid 2nd lookup for the add.
5768
5769 2014-08-14 Richard Biener <rguenther@suse.de>
5770
5771 PR tree-optimization/62090
5772 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
5773 (fold_builtin_2): Do not fold sprintf.
5774 (fold_builtin_3): Likewise.
5775 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
5776 moved from builtins.c.
5777 (gimple_fold_builtin): Fold sprintf.
5778
5779 2014-08-14 Richard Biener <rguenther@suse.de>
5780
5781 PR rtl-optimization/62079
5782 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
5783 run cleanup_cfg.
5784
5785 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5786
5787 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
5788 current_function_decl.
5789
5790 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5791
5792 * cgraph.c (cgraph_node::function_symbol): Fix wrong
5793 cgraph_function_node to cgraph_node::function_symbol
5794 refactoring.
5795
5796 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
5797
5798 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
5799 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
5800
5801 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
5802
5803 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
5804 warning.
5805
5806 2014-08-13 Roman Gareev <gareevroman@gmail.com>
5807
5808 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
5809 generator.
5810
5811 2014-08-12 Jakub Jelinek <jakub@redhat.com>
5812
5813 PR target/62025
5814 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
5815 any registers that are used in mem_insn.
5816
5817 2014-08-12 Steve Ellcey <sellcey@mips.com>
5818
5819 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
5820
5821 2014-08-12 Steve Ellcey <sellcey@mips.com>
5822
5823 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
5824 (MULTILIB_DIRNAMES): Ditto.
5825 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
5826 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
5827 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
5828 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
5829 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
5830 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
5831
5832 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5833
5834 PR target/61413
5835 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
5836 of __ARM_SIZEOF_WCHAR_T.
5837
5838 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5839
5840 PR target/62098
5841 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
5842 Remove unnecessary attributes.
5843
5844 2014-08-12 Yury Gribov <y.gribov@samsung.com>
5845
5846 * internal-fn.c (init_internal_fns): Fix off-by-one.
5847
5848 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5849 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5850 Anna Tikhonova <anna.tikhonova@intel.com>
5851 Ilya Tocar <ilya.tocar@intel.com>
5852 Andrey Turetskiy <andrey.turetskiy@intel.com>
5853 Ilya Verbin <ilya.verbin@intel.com>
5854 Kirill Yukhin <kirill.yukhin@intel.com>
5855 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5856
5857 * config/i386/i386.c (standard_sse_constant_opcode): Use
5858 vpxord/vpternlog if avx512 is availible.
5859
5860 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
5861
5862 PR middle-end/62103
5863 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
5864 bitfields, that is when size doesn't match the size of type or the
5865 size of the constructor.
5866
5867 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5868
5869 * config/rs6000/constraints.md (wh constraint): New constraint,
5870 for FP registers if direct move is available.
5871 (wi constraint): New constraint, for VSX/FP registers that can
5872 handle 64-bit integers.
5873 (wj constraint): New constraint for VSX/FP registers that can
5874 handle 64-bit integers for direct moves.
5875 (wk constraint): New constraint for VSX/FP registers that can
5876 handle 64-bit doubles for direct moves.
5877 (wy constraint): Make documentation match implementation.
5878
5879 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
5880 scalar_in_vmx_p field to simplify tests of whether SFmode or
5881 DFmode can go in the Altivec registers.
5882 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
5883 (rs6000_setup_reg_addr_masks): Likewise.
5884 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
5885 field, and wh/wi/wj/wk constraints.
5886 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
5887 the wh/wi/wj/wk constraints.
5888 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
5889 upper registers, prefer VSX registers unless the operation is a
5890 memory operation with REG+OFFSET addressing.
5891
5892 * config/rs6000/vsx.md (VSr mode attribute): Add support for
5893 DImode. Change SFmode to use ww constraint instead of d to allow
5894 SF registers in the upper registers.
5895 (VSr2): Likewise.
5896 (VSr3): Likewise.
5897 (VSr5): Fix thinko in comment.
5898 (VSa): New mode attribute that is an alternative to wa, that
5899 returns the VSX register class that a mode can go in, but may not
5900 be the preferred register class.
5901 (VS_64dm): New mode attribute for appropriate register classes for
5902 referencing 64-bit elements of vectors for direct moves and normal
5903 moves.
5904 (VS_64reg): Likewise.
5905 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
5906 register allocator to only registers the data type can handle.
5907 (vsx_le_perm_load_<mode>): Likewise.
5908 (vsx_le_perm_store_<mode>): Likewise.
5909 (vsx_xxpermdi2_le_<mode>): Likewise.
5910 (vsx_xxpermdi4_le_<mode>): Likewise.
5911 (vsx_lxvd2x2_le_<mode>): Likewise.
5912 (vsx_lxvd2x4_le_<mode>): Likewise.
5913 (vsx_stxvd2x2_le_<mode>): Likewise.
5914 (vsx_add<mode>3): Likewise.
5915 (vsx_sub<mode>3): Likewise.
5916 (vsx_mul<mode>3): Likewise.
5917 (vsx_div<mode>3): Likewise.
5918 (vsx_tdiv<mode>3_internal): Likewise.
5919 (vsx_fre<mode>2): Likewise.
5920 (vsx_neg<mode>2): Likewise.
5921 (vsx_abs<mode>2): Likewise.
5922 (vsx_nabs<mode>2): Likewise.
5923 (vsx_smax<mode>3): Likewise.
5924 (vsx_smin<mode>3): Likewise.
5925 (vsx_sqrt<mode>2): Likewise.
5926 (vsx_rsqrte<mode>2): Likewise.
5927 (vsx_tsqrt<mode>2_internal): Likewise.
5928 (vsx_fms<mode>4): Likewise.
5929 (vsx_nfma<mode>4): Likewise.
5930 (vsx_eq<mode>): Likewise.
5931 (vsx_gt<mode>): Likewise.
5932 (vsx_ge<mode>): Likewise.
5933 (vsx_eq<mode>_p): Likewise.
5934 (vsx_gt<mode>_p): Likewise.
5935 (vsx_ge<mode>_p): Likewise.
5936 (vsx_xxsel<mode>): Likewise.
5937 (vsx_xxsel<mode>_uns): Likewise.
5938 (vsx_copysign<mode>3): Likewise.
5939 (vsx_float<VSi><mode>2): Likewise.
5940 (vsx_floatuns<VSi><mode>2): Likewise.
5941 (vsx_fix_trunc<mode><VSi>2): Likewise.
5942 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
5943 (vsx_x<VSv>r<VSs>i): Likewise.
5944 (vsx_x<VSv>r<VSs>ic): Likewise.
5945 (vsx_btrunc<mode>2): Likewise.
5946 (vsx_b2trunc<mode>2): Likewise.
5947 (vsx_floor<mode>2): Likewise.
5948 (vsx_ceil<mode>2): Likewise.
5949 (vsx_<VS_spdp_insn>): Likewise.
5950 (vsx_xscvspdp): Likewise.
5951 (vsx_xvcvspuxds): Likewise.
5952 (vsx_float_fix_<mode>2): Likewise.
5953 (vsx_set_<mode>): Likewise.
5954 (vsx_extract_<mode>_internal1): Likewise.
5955 (vsx_extract_<mode>_internal2): Likewise.
5956 (vsx_extract_<mode>_load): Likewise.
5957 (vsx_extract_<mode>_store): Likewise.
5958 (vsx_splat_<mode>): Likewise.
5959 (vsx_xxspltw_<mode>): Likewise.
5960 (vsx_xxspltw_<mode>_direct): Likewise.
5961 (vsx_xxmrghw_<mode>): Likewise.
5962 (vsx_xxmrglw_<mode>): Likewise.
5963 (vsx_xxsldwi_<mode>): Likewise.
5964 (vsx_xscvdpspn): Tighten constraints to only use register classes
5965 the types use.
5966 (vsx_xscvspdpn): Likewise.
5967 (vsx_xscvdpspn_scalar): Likewise.
5968
5969 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
5970 wj, and wk constraints.
5971 (GPR_REG_CLASS_P): New helper macro for register classes targeting
5972 general purpose registers.
5973
5974 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
5975 direct moves.
5976 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
5977 DImode instead of wm. Use wk constraint for direct move of DFmode
5978 instead of wm.
5979 (extendsidi2_lfiwax): Likewise.
5980 (lfiwax): Likewise.
5981 (lfiwzx): Likewise.
5982 (movdi_internal64): Likewise.
5983
5984 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
5985 wk constraints. Make the wy constraint documentation match them
5986 implementation.
5987
5988 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
5989
5990 Replacement of isl_int by isl_val
5991 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
5992 (compute_bounds_for_param): use isl_val instead of isl_int
5993 (compute_bounds_for_loop): likewise
5994 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
5995 (build_linearized_memory_access): use isl_val instead of isl_int
5996 (pdr_stride_in_loop): likewise
5997 * graphite-optimize-isl.c:
5998 (getPrevectorMap): use isl_val instead of isl_int
5999 * graphite-poly.c:
6000 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6001 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6002 (extern the_isl_ctx): declare
6003 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6004 (extract_affine_gmp): likewise
6005 (wrap): likewise
6006 (build_loop_iteration_domains): likewise
6007 (add_param_constraints): likewise
6008
6009 2014-08-11 Richard Biener <rguenther@suse.de>
6010
6011 PR tree-optimization/62075
6012 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6013 handle uses in patterns.
6014
6015 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6016 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6017 Anna Tikhonova <anna.tikhonova@intel.com>
6018 Ilya Tocar <ilya.tocar@intel.com>
6019 Andrey Turetskiy <andrey.turetskiy@intel.com>
6020 Ilya Verbin <ilya.verbin@intel.com>
6021 Kirill Yukhin <kirill.yukhin@intel.com>
6022 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6023
6024 * common/config/i386/i386-common.c
6025 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6026 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6027 (ix86_handle_option): Handle OPT_mavx512vl.
6028 * config/i386/cpuid.h (bit_AVX512VL): Define.
6029 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6030 set -mavx512vl accordingly.
6031 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6032 OPTION_MASK_ISA_AVX512VL.
6033 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6034 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6035 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6036 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6037 * config/i386/i386.h (TARGET_AVX512VL): Define.
6038 (TARGET_AVX512VL_P(x)): Ditto.
6039 * config/i386/i386.opt: Add mavx512vl.
6040
6041 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6042
6043 PR tree-optimization/62073
6044 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6045 a basic block.
6046
6047 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6049 Anna Tikhonova <anna.tikhonova@intel.com>
6050 Ilya Tocar <ilya.tocar@intel.com>
6051 Andrey Turetskiy <andrey.turetskiy@intel.com>
6052 Ilya Verbin <ilya.verbin@intel.com>
6053 Kirill Yukhin <kirill.yukhin@intel.com>
6054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6055
6056 * common/config/i386/i386-common.c
6057 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6058 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6059 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6060 (ix86_handle_option): Handle OPT_mavx512bw.
6061 * config/i386/cpuid.h (bit_AVX512BW): Define.
6062 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6063 set -mavx512bw accordingly.
6064 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6065 OPTION_MASK_ISA_AVX512BW.
6066 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6067 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6068 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6069 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6070 * config/i386/i386.h (TARGET_AVX512BW): Define.
6071 (TARGET_AVX512BW_P(x)): Ditto.
6072 * config/i386/i386.opt: Add mavx512bw.
6073
6074 2014-08-11 Richard Biener <rguenther@suse.de>
6075
6076 PR tree-optimization/62070
6077 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6078 Remove SSA checking.
6079
6080 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6081
6082 * asan.c (asan_check_flags): New enum.
6083 (build_check_stmt_with_calls): Removed function.
6084 (build_check_stmt): Split inlining logic to
6085 asan_expand_check_ifn.
6086 (instrument_derefs): Rename parameter.
6087 (instrument_mem_region_access): Rename parameter.
6088 (instrument_strlen_call): Likewise.
6089 (asan_expand_check_ifn): New function.
6090 (asan_instrument): Remove old code.
6091 (pass_sanopt::execute): Change handling of
6092 asan-instrumentation-with-call-threshold.
6093 (asan_clear_shadow): Fix formatting.
6094 (asan_function_start): Likewise.
6095 (asan_emit_stack_protection): Likewise.
6096 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6097 Update description.
6098 * internal-fn.c (expand_ASAN_CHECK): New function.
6099 * internal-fn.def (ASAN_CHECK): New internal function.
6100 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6101 Update description.
6102 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6103 * tree.c: Small comment fix.
6104
6105 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6106
6107 * gimple.c (gimple_call_fnspec): Support internal functions.
6108 (gimple_call_return_flags): Use const.
6109 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6110 * internal-fn.def: Add fnspec information.
6111 * internal-fn.h (internal_fn_fnspec): New function.
6112 (init_internal_fns): Declare new function.
6113 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6114 (init_internal_fns): New function.
6115 * tree-core.h: Update macro call.
6116 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6117
6118 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6119
6120 * lto-streamer.h (struct output_block::symbol): Change from
6121 struct symtab_node to plain symtab_node.
6122 (referenced_from_this_partition_p): Change first parameter
6123 from struct symtab_node to plain symtab_node.
6124
6125 2014-08-10 Marek Polacek <polacek@redhat.com>
6126
6127 PR c/51849
6128 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6129
6130 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6131
6132 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6133 DECL correctly; do not give up on types in static storage.
6134
6135 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6136
6137 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6138
6139 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6140
6141 * graphite-isl-ast-to-gimple.c:
6142 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6143
6144 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6145
6146 2014-08-08 Guozhi Wei <carrot@google.com>
6147
6148 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6149
6150 2014-08-08 Cary Coutant <ccoutant@google.com>
6151
6152 * dwarf2out.c (get_skeleton_type_unit): Remove.
6153 (output_skeleton_debug_sections): Remove skeleton type units.
6154 (output_comdat_type_unit): Likewise.
6155 (dwarf2out_finish): Likewise.
6156
6157 2014-08-07 Yi Yang <ahyangyi@google.com>
6158
6159 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6160
6161 2014-08-08 Richard Biener <rguenther@suse.de>
6162
6163 * lto-streamer.h (struct lto_input_block): Make it a class
6164 with a constructor.
6165 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6166 (struct lto_function_header, struct lto_simple_header,
6167 struct lto_simple_header_with_strings,
6168 struct lto_decl_header, struct lto_function_header): Make
6169 a simple inheritance hieararchy. Remove unused fields.
6170 (struct lto_asm_header): Remove.
6171 * lto-streamer-out.c (produce_asm): Adjust.
6172 (lto_output_toplevel_asms): Likewise.
6173 (produce_asm_for_decls): Likewise.
6174 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6175 * data-streamer-in.c (string_for_index): Likewise.
6176 * ipa-inline-analysis.c (inline_read_section): Likewise.
6177 * ipa-prop.c (ipa_prop_read_section): Likewise.
6178 (read_replacements_section): Likewise.
6179 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6180 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6181 (lto_destroy_simple_input_block): Likewise.
6182 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6183 (lto_input_toplevel_asms): Likewise.
6184
6185 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6187 Anna Tikhonova <anna.tikhonova@intel.com>
6188 Ilya Tocar <ilya.tocar@intel.com>
6189 Andrey Turetskiy <andrey.turetskiy@intel.com>
6190 Ilya Verbin <ilya.verbin@intel.com>
6191 Kirill Yukhin <kirill.yukhin@intel.com>
6192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6193
6194 * common/config/i386/i386-common.c
6195 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6196 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6197 (ix86_handle_option): Handle OPT_mavx512dq.
6198 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6199 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6200 set -mavx512dq accordingly.
6201 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6202 OPTION_MASK_ISA_AVX512DQ.
6203 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6204 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6205 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6206 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6207 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6208 (TARGET_AVX512DQ_P(x)): Ditto.
6209 * config/i386/i386.opt: Add mavx512dq.
6210
6211 2014-08-08 Richard Biener <rguenther@suse.de>
6212
6213 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6214 target_percent, target_percent_s): Export.
6215 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6216 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6217 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6218 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6219 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6220 Move to gimple-fold.c.
6221 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6222 strcat and strcpy.
6223 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6224 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6225 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6226 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6227 (rewrite_call_expr_array): Remove.
6228 (fold_builtin_sprintf_chk): Likewise.
6229 (fold_builtin_snprintf_chk): Likewise.
6230 (fold_builtin_varargs): Remove handling of sprintf_chk,
6231 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6232 (gimple_fold_builtin_sprintf_chk): Remove.
6233 (gimple_fold_builtin_snprintf_chk): Likewise.
6234 (gimple_fold_builtin_varargs): Likewise.
6235 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6236 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6237 * gimple.c (gimple_seq_add_seq_without_update): New function.
6238 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6239 * gimple-fold.c: Include output.h.
6240 (gsi_replace_with_seq_vops): New function, split out from ...
6241 (gimplify_and_update_call_from_tree): ... here.
6242 (replace_call_with_value): New function.
6243 (replace_call_with_call_and_fold): Likewise.
6244 (var_decl_component_p): Moved from builtins.c.
6245 (gimple_fold_builtin_memory_op): Moved from builtins.c
6246 fold_builtin_memory_op and rewritten to GIMPLE.
6247 (gimple_fold_builtin_memset): Likewise.
6248 (gimple_fold_builtin_strcpy): Likewise.
6249 (gimple_fold_builtin_strncpy): Likewise.
6250 (gimple_fold_builtin_strcat): Likewise.
6251 (gimple_fold_builtin_fputs): Likewise.
6252 (gimple_fold_builtin_memory_chk): Likewise.
6253 (gimple_fold_builtin_stxcpy_chk): Likewise.
6254 (gimple_fold_builtin_stxncpy_chk): Likewise.
6255 (gimple_fold_builtin_snprintf_chk): Likewise.
6256 (gimple_fold_builtin_sprintf_chk): Likewise.
6257 (gimple_fold_builtin_strlen): New function.
6258 (gimple_fold_builtin_with_strlen): New function split out from
6259 gimple_fold_builtin.
6260 (gimple_fold_builtin): Change signature and handle
6261 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6262 here. Call gimple_fold_builtin_with_strlen.
6263 (gimple_fold_call): Adjust.
6264
6265 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6266
6267 * calls.c (precompute_arguments): Check
6268 promoted_for_signed_and_unsigned_p and set the promoted mode.
6269 (promoted_for_signed_and_unsigned_p): New function.
6270 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6271 and set the promoted mode.
6272 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6273 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6274 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6275
6276
6277 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6278
6279 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6280 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6281 (expand_call): Likewise.
6282 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6283 to get promoted mode.
6284 * combine.c (record_promoted_value): Skip > 0 comparison with
6285 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6286 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6287 of SUBREG_PROMOTED_UNSIGNED_P.
6288 (convert_modes): Likewise.
6289 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6290 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6291 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6292 SUBREG_PROMOTED_UNSIGNED_SET.
6293 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6294 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6295 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6296 SUBREG_PROMOTED_SET.
6297 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6298 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6299 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6300 of SUBREG_PROMOTED_UNSIGNED_P.
6301 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6302 (SUBREG_PROMOTED_SET): New define.
6303 (SUBREG_PROMOTED_GET): Likewise.
6304 (SUBREG_PROMOTED_SIGN): Likewise.
6305 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6306 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6307 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6308 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6309 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6310 (nonzero_bits1): Skip > 0 comparison with the results as
6311 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6312 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6313 of !SUBREG_PROMOTED_UNSIGNED_P.
6314 * simplify-rtx.c (simplify_unary_operation_1): Use new
6315 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6316 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6317 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6318 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6319
6320 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6321
6322 * ipa-devirt.c: Include gimple-pretty-print.h
6323 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6324 further tests.
6325 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6326 (get_polymorphic_call_info): Fix return value
6327 (type_change_info): New sturcture based on ipa-prop
6328 variant.
6329 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6330 based on ipa-prop variant.
6331 (extr_type_from_vtbl_ptr_store): New function
6332 based on ipa-prop variant.
6333 (record_known_type): New function.
6334 (check_stmt_for_type_change): New function.
6335 (get_dynamic_type): New function.
6336 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6337 * tree-ssa-pre.c: ipa-utils.h
6338 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6339 machinery; sanity check with ipa-prop devirtualization.
6340 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6341 polymorphic flag.
6342
6343 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6344
6345 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6346 * alias.c, cfgexpand.c, cgraphbuild.c,
6347 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6348 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6349 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6350 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6351 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6352 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6353 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6354 dse.c, except.c, gengtype.c, gimple-expr.c,
6355 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6356 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6357 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6358 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6359 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6360 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6361 pointer-set.h.
6362 * pointer-set.c: Remove file.
6363 * pointer-set.h: Remove file.
6364
6365 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6366
6367 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6368 * config/arm/types.md (f_sels, f_seld): Delete.
6369
6370 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6371
6372 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6373 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6374 (aarch64_movdi_<mode>high): Likewise.
6375 (aarch64_mov<mode>high_di): Likewise.
6376 (aarch64_movdi_<mode>low): Likewise.
6377 (aarch64_mov<mode>low_di): Likewise.
6378 (aarch64_movtilow_tilow): Likewise.
6379 Add comment explaining usage of fp,simd attributes and of
6380 TARGET_FLOAT and TARGET_SIMD.
6381
6382 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6383 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6384
6385 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6386 Use MOVN when one of the half-words is 0xffff.
6387
6388 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6389
6390 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6391
6392 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6393
6394 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6395 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6396 (rfs_str): String corresponding to RFS_* constants.
6397 (rank_for_schedule_stats_t): New typedef.
6398 (rank_for_schedule_stats): New static variable.
6399 (rfs_result): New static function.
6400 (rank_for_schedule): Track statistics for deciding heuristics.
6401 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6402 static functions.
6403 (ready_sort): Use them for debug printouts.
6404 (schedule_block): Init statistics state. Print statistics on
6405 rank_for_schedule decisions.
6406
6407 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6408
6409 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6410
6411 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6412
6413 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6414 constraint.
6415
6416 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6417
6418 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6419 function to not conflict.
6420 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6421 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6422 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6423 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6424 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6425 of pointer_map.
6426
6427 2014-08-07 Marek Polacek <polacek@redhat.com>
6428
6429 * fold-const.c (fold_binary_loc): Add folding of
6430 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6431
6432 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6433
6434 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6435 instead of type size.
6436 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6437
6438 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6439
6440 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6441 (*thumb1_movqi_insn): Likewise.
6442 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6443
6444 2014-08-07 Tom de Vries <tom@codesourcery.com>
6445
6446 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6447 (glibc_2_11_or_earlier): Remove effective-target keywords.
6448
6449 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6450
6451 * config/arm/arm.c (bdesc_2arg): Fix typo.
6452 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6453
6454 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6455
6456 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6457
6458 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6459
6460 PR debug/61923
6461 * haifa-sched.c (advance_one_cycle): Fix dump.
6462 (schedule_block): Don't advance cycle if we are already at the
6463 beginning of the cycle.
6464
6465 2014-08-06 Martin Jambor <mjambor@suse.cz>
6466
6467 PR ipa/61393
6468 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6469
6470 2014-08-06 Richard Biener <rguenther@suse.de>
6471
6472 PR lto/62034
6473 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6474 SCCs here.
6475 (lto_input_tree): Pop SCCs here.
6476
6477 2014-08-06 Richard Biener <rguenther@suse.de>
6478
6479 PR tree-optimization/61320
6480 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6481 handle misaligned loads.
6482
6483 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6484
6485 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6486 (aarch64_expand_vec_perm_const): Check for dup before zip.
6487
6488 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6489
6490 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6491 CONST_INT_P instead of GET_CODE and compare.
6492 (aarch64_select_cc_mode): Likewise.
6493 (aarch64_print_operand): Likewise.
6494 (aarch64_rtx_costs): Likewise.
6495 (aarch64_simd_valid_immediate): Likewise.
6496 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6497 (aarch64_simd_emit_pair_result_insn): Likewise.
6498
6499 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6500
6501 * gdbhooks.py (find_gcc_source_dir): New helper function.
6502 (class PassNames): New class, locating and parsing passes.def.
6503 (class BreakOnPass): New command "break-on-pass".
6504
6505 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6506
6507 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6508 getting olde.
6509
6510 2014-08-05 Richard Biener <rguenther@suse.de>
6511
6512 PR rtl-optimization/61672
6513 * emit-rtl.h (mem_attrs_eq_p): Declare.
6514 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6515 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6516 * cfgcleanup.c (merge_memattrs): Likewise.
6517 Include emit-rtl.h.
6518
6519 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6520
6521 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6522 rather than singleton vectors.
6523 (vqdmlsls_lane_s32): Likewise.
6524
6525 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6526
6527 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6528 Use VSDQ_HSI mode iterator.
6529 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6530 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6531 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6532 Use BUILTIN_VDQHS macro.
6533 (sqrdmulh_laneq): Likewise.
6534 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6535 (vqdmlals_laneq_s32): Likewise.
6536 (vqdmlslh_laneq_s16): Likewise.
6537 (vqdmlsls_laneq_s32): Likewise.
6538 (vqdmulhh_laneq_s16): Likewise.
6539 (vqdmulhs_laneq_s32): Likewise.
6540 (vqrdmulhh_laneq_s16): Likewise.
6541 (vqrdmulhs_laneq_s32): Likewise.
6542
6543 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6544
6545 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6546 (vmuld_laneq_f64): Likewise.
6547 (vmuls_laneq_f32): Likewise.
6548 (vmul_n_f64): Likewise.
6549 (vmuld_lane_f64): Reimplement in C.
6550 (vmuls_lane_f32): Likewise.
6551
6552 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6553
6554 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6555 to reservation.
6556 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6557
6558 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6559
6560 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6561 (rbitsi2): Likewise.
6562 (*arm_rev): Set predicable and predicable_short_it attributes.
6563
6564 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6565
6566 * convert.c (convert_to_integer): Guard transformation to lrint by
6567 -fno-math-errno.
6568
6569 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6570
6571 * config/aarch64/aarch64-builtins.c
6572 (aarch64_simd_builtin_type_mode): Delete.
6573 (v8qi_UP): Remap to V8QImode.
6574 (v4hi_UP): Remap to V4HImode.
6575 (v2si_UP): Remap to V2SImode.
6576 (v2sf_UP): Remap to V2SFmode.
6577 (v1df_UP): Remap to V1DFmode.
6578 (di_UP): Remap to DImode.
6579 (df_UP): Remap to DFmode.
6580 (v16qi_UP):V16QImode.
6581 (v8hi_UP): Remap to V8HImode.
6582 (v4si_UP): Remap to V4SImode.
6583 (v4sf_UP): Remap to V4SFmode.
6584 (v2di_UP): Remap to V2DImode.
6585 (v2df_UP): Remap to V2DFmode.
6586 (ti_UP): Remap to TImode.
6587 (ei_UP): Remap to EImode.
6588 (oi_UP): Remap to OImode.
6589 (ci_UP): Map to CImode.
6590 (xi_UP): Remap to XImode.
6591 (si_UP): Remap to SImode.
6592 (sf_UP): Remap to SFmode.
6593 (hi_UP): Remap to HImode.
6594 (qi_UP): Remap to QImode.
6595 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6596 (VAR1): Build builtin name.
6597 (aarch64_init_simd_builtins): Remove dead code.
6598
6599 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6600
6601 * graphite-isl-ast-to-gimple.c:
6602 (set_options): New function.
6603 (scop_to_isl_ast): Add calling of set_options.
6604
6605 2014-08-05 Jakub Jelinek <jakub@redhat.com>
6606
6607 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
6608 (analyze_iv_to_split_insn): Don't initialize them.
6609 (get_ivts_expr): Removed.
6610 (allocate_basic_variable, insert_base_initialization): Use
6611 SET_SRC instead of *get_ivts_expr.
6612 (split_iv): Use &SET_SRC instead of get_ivts_expr.
6613
6614 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6615
6616 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
6617 (translate_isl_ast_for_loop): Add checking of the
6618 flag_loop_parallelize_all.
6619 (ast_build_before_for): New function.
6620 (scop_to_isl_ast): Add checking of the
6621 flag_loop_parallelize_all.
6622 * graphite-dependences.c: Move the defenition of the
6623 scop_get_dependences from graphite-optimize-isl.c to this file.
6624 (apply_schedule_on_deps): Add checking of the ux's emptiness.
6625 (carries_deps): Add checking of the x's value.
6626 * graphite-optimize-isl.c: Move the defenition of the
6627 scop_get_dependences to graphite-dependences.c.
6628 * graphite-poly.h: Add declarations of scop_get_dependences
6629 and carries_deps.
6630
6631 2014-08-04 Rohit <rohitarulraj@freescale.com>
6632
6633 PR target/60102
6634 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
6635 names.
6636 (alt_reg_names): Likewise.
6637 (rs6000_dwarf_register_span): For SPE high registers, replace
6638 dwarf register numbers with GCC hard register numbers.
6639 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
6640 (rs6000_dbx_register_number): For SPE high registers, return dwarf
6641 register number for the corresponding GCC hard register number.
6642 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
6643 newly added GCC hard register numbers for SPE high registers.
6644 (DWARF_FRAME_REGISTERS): Likewise.
6645 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
6646 (DWARF_FRAME_REGNUM): Likewise.
6647 (FIXED_REGISTERS): Likewise.
6648 (CALL_USED_REGISTERS): Likewise.
6649 (CALL_REALLY_USED_REGISTERS): Likewise.
6650 (REG_ALLOC_ORDER): Likewise.
6651 (enum reg_class): Likewise.
6652 (REG_CLASS_NAMES): Likewise.
6653 (REG_CLASS_CONTENTS): Likewise.
6654 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
6655
6656 2014-08-04 Richard Biener <rguenther@suse.de>
6657
6658 * gimple-fold.h (gimple_fold_builtin): Remove.
6659 * gimple-fold.c (gimple_fold_builtin): Make static.
6660 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
6661 fold_stmt, not gimple_fold_builtin.
6662
6663 2014-08-04 Martin Liska <mliska@suse.cz>
6664
6665 * cgraph.h (csi_end_p): Removed.
6666 (csi_next): Likewise.
6667 (csi_node): Likewise.
6668 (csi_start): Likewise.
6669 (cgraph_node_in_set_p): Likewise.
6670 (cgraph_node_set_size): Likewise.
6671 (vsi_end_p): Likewise.
6672 (vsi_next): Likewise.
6673 (vsi_node): Likewise.
6674 (vsi_start): Likewise.
6675 (varpool_node_set_size): Likewise.
6676 (cgraph_node_set_nonempty_p): Likewise.
6677 (varpool_node_set_nonempty_p): Likewise.
6678 * cgraphunit.c (cgraph_process_new_functions): vec replaces
6679 cgraph_node_set.
6680 * ipa-inline-transform.c: Likewise.
6681 * ipa-utils.c (cgraph_node_set_new): Removed.
6682 (cgraph_node_set_add): Likewise.
6683 (cgraph_node_set_remove): Likewise.
6684 (cgraph_node_set_find): Likewise.
6685 (dump_cgraph_node_set): Likewise.
6686 (debug_cgraph_node_set): Likewise.
6687 (free_cgraph_node_set): Likewise.
6688 (varpool_node_set_new): Likewise.
6689 (varpool_node_set_add): Likewise.
6690 (varpool_node_set_remove): Likewise.
6691 (varpool_node_set_find): Likewise.
6692 (dump_varpool_node_set): Likewise.
6693 (free_varpool_node_set): Likewise.
6694 (debug_varpool_node_set): Likewise.
6695 * tree-emutls.c (struct tls_var_data):
6696 (emutls_index): Removed.
6697 (emutls_decl): Likewise.
6698 (gen_emutls_addr): Function implementation uses newly added
6699 hash_map<varpool_node *, tls_var_data>.
6700 (clear_access_vars): Likewise.
6701 (create_emultls_var): Likewise.
6702 (ipa_lower_emutls): Likewise.
6703 (reset_access): New function.
6704
6705 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6706
6707 * config/i386/i386.c (ix86_option_override_internal): Add
6708 PTA_RDRND and PTA_MOVBE for bdver4.
6709
6710 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6711 James Greenhalgh <james.greenhalgh@arm.com>
6712
6713 * doc/md.texi (clrsb): Document.
6714 (clz): Change reference to x into operand 1.
6715 (ctz): Likewise.
6716 (popcount): Likewise.
6717
6718 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6719
6720 PR target/61713
6721 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
6722 move to subtarget in serial version if result is ignored.
6723
6724 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6725 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6726
6727 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
6728 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
6729 (sched_analyze_insn): Update use of try_group_insn to
6730 sched_macro_fuse_insns.
6731 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
6732 arguments that are not conditional jumps.
6733
6734 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6735
6736 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
6737 family information. Handle BTVER2 cpu with cpuid family value.
6738
6739 2014-08-04 Tom de Vries <tom@codesourcery.com>
6740
6741 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6742 (glibc_2_11_or_earlier): Document effective-target keywords.
6743
6744 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6745
6746 * ipa-devirt.c (odr_type_warn_count): Add type.
6747 (possible_polymorphic_call_targets): Set it.
6748 (ipa_devirt): Use it.
6749
6750 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6751
6752 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
6753 Document.
6754 * ipa-devirt.c: Include hash-map.h
6755 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
6756 (clear_speculation): Break out of ...
6757 (get_class_context): ... here; speed up handling obviously useless
6758 speculations.
6759 (odr_type_warn_count, decl_warn_count): New structures.
6760 (final_warning_record): New structure.
6761 (final_warning_records): New static variable.
6762 (possible_polymorphic_call_targets): Cleanup handling of
6763 speculative info; do not build speculation when user do not care;
6764 record info about warnings when asked for.
6765 (add_decl_warning): New function.
6766 (type_warning_cmp): New function.
6767 (decl_warning_cmp): New function.
6768 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
6769 (gate): Enable pass when warnings are requested.
6770 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
6771 options.
6772
6773 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6774
6775 * hash-map.h (default_hashmap_traits::mark_key_deleted):
6776 Fix cast.
6777 (hash_map::remove): New method.
6778 (hash_map::traverse): New method.
6779 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
6780 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
6781 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
6782 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
6783 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
6784 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
6785 pointer_map.
6786
6787 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6788
6789 * hash-set.h: new File.
6790 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
6791 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
6792 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
6793 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
6794 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
6795 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
6796 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
6797 varpool.c: Use hash_set instead of pointer_set.
6798
6799 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
6800
6801 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
6802
6803 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6804
6805 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
6806 for frame access when strict_p is false.
6807
6808 2014-08-01 Renlin Li <renlin.li@arm.com>
6809 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6810
6811 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
6812 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
6813 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
6814 Declaration.
6815 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
6816 predicate.
6817 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
6818 aarch64_mem_pair_offset.
6819
6820 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6821
6822 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
6823 offset.
6824 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
6825 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
6826
6827 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
6828
6829 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
6830
6831 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
6832
6833 PR regression/61510
6834 * cgraphunit.c (analyze_functions): Use get_create rather than get
6835 for decls which are clones of abstract functions.
6836
6837 2014-08-01 Martin Liska <mliska@suse.cz>
6838
6839 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
6840 * ipa-prop.h (count_formal_params): Global function created from static.
6841 * ipa-prop.c (count_formal_params): Likewise.
6842 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
6843 profiles for semantically equivalent functions.
6844 * passes.c (do_per_function): If we load body of a function
6845 during WPA, this condition should behave same.
6846 * varpool.c (ctor_for_folding): More tolerant assert for variable
6847 aliases created during WPA.
6848
6849 2014-08-01 Martin Liska <mliska@suse.cz>
6850
6851 * doc/invoke.texi (Options That Control Optimization): Documentation
6852 for -foptimize-strlen introduced. Optimization levels default options
6853 fixed.
6854
6855 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6856
6857 * opts.c (common_handle_option): Handle -fsanitize=alignment.
6858 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
6859 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
6860 type to bool.
6861 * stor-layout.h (min_align_of_type): New prototype.
6862 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
6863 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
6864 check.
6865 * ubsan.c: Include builtins.h.
6866 (ubsan_expand_bounds_ifn): Change return type to bool,
6867 always return true.
6868 (ubsan_expand_null_ifn): Change return type to bool, change
6869 argument to gimple_stmt_iterator *. Handle both null and alignment
6870 sanitization, take type from ckind argument's type rather than
6871 first argument.
6872 (instrument_member_call): Removed.
6873 (instrument_mem_ref): Remove t argument, add mem and base arguments.
6874 Handle both null and alignment sanitization, don't say whole
6875 struct access is member access. Build 3 argument IFN_UBSAN_NULL
6876 call instead of 2 argument.
6877 (instrument_null): Adjust instrument_mem_ref caller. Don't
6878 instrument calls here.
6879 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
6880 like SANITIZE_NULL.
6881 * stor-layout.c (min_align_of_type): New function.
6882 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
6883 Or it into SANITIZE_UNDEFINED.
6884 * doc/invoke.texi (-fsanitize=alignment): Document.
6885
6886 2014-07-31 Andi Kleen <ak@linux.intel.com>
6887
6888 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
6889
6890 2014-07-31 Andi Kleen <ak@linux.intel.com>
6891
6892 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
6893 inchash.
6894 (vn_reference_compute_hash): Dito.
6895 (vn_nary_op_compute_hash): Dito.
6896 (vn_phi_compute_hash): Dito.
6897 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
6898
6899 2014-07-31 Andi Kleen <ak@linux.intel.com>
6900
6901 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
6902 Rename to inchash:add_expr_commutative. Convert to inchash.
6903 (iterative_hash_hashable_expr): Rename to
6904 inchash:add_hashable_expr. Convert to inchash.
6905 (avail_expr_hash): Dito.
6906
6907 2014-07-31 Andi Kleen <ak@linux.intel.com>
6908
6909 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
6910 Convert to inchash.
6911
6912 2014-07-31 Andi Kleen <ak@linux.intel.com>
6913
6914 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
6915
6916 2014-07-31 Andi Kleen <ak@linux.intel.com>
6917
6918 * Makefile.in (OBJS): Add rtlhash.o
6919 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
6920 (loc_checksum): Dito.
6921 (loc_checksum_ordered): Dito.
6922 (hash_loc_operands): Dito.
6923 (hash_locs): Dito.
6924 (hash_loc_list): Dito.
6925 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
6926 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
6927 * rtlhash.c: New file.
6928 * rtlhash.h: New file.
6929
6930 2014-07-31 Andi Kleen <ak@linux.intel.com>
6931
6932 * inchash.h (inchash): Change inchash class to namespace.
6933 (class hash): ... Rename from inchash.
6934 (add_object): Move from macro to class template.
6935 * lto-streamer-out.c (hash_tree): Change inchash
6936 to inchash::hash.
6937 * tree.c (build_type_attribute_qual_variant): Dito.
6938 (type_hash_list): Dito.
6939 (attribute_hash_list): Dito.
6940 (iterative_hstate_expr): Rename to inchash::add_expr
6941 (build_range_type_1): Change inchash to inchash::hash
6942 and use hash::add_expr.
6943 (build_array_type_1): Dito.
6944 (build_function_type): Dito
6945 (build_method_type_directly): Dito.
6946 (build_offset_type): Dito.
6947 (build_complex_type): Dito.
6948 (make_vector_type): Dito.
6949 * tree.h (iterative_hash_expr): Dito.
6950
6951 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
6952
6953 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
6954
6955 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6956
6957 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
6958 correct alphabetical position.
6959 (vpaddd_f64): Rewrite using builtins.
6960 (vpaddd_s64): Move to correct alphabetical position.
6961 (vpaddd_u64): New.
6962
6963 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
6964
6965 PR target/61844
6966 * config/sh/sh.c (sh_legitimate_address_p,
6967 sh_legitimize_reload_address): Handle reg+reg address modes when
6968 ALLOW_INDEXED_ADDRESS is false.
6969 * config/sh/predicates.md (general_movsrc_operand,
6970 general_movdst_operand): Likewise.
6971
6972 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6973
6974 * config/aarch64/aarch64-builtins.c
6975 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
6976 BYTES_BIG_ENDIAN.
6977
6978 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6979
6980 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
6981 the generated mask based on BYTES_BIG_ENDIAN.
6982 (aarch64_simd_check_vect_par_cnst_half): New.
6983 * config/aarch64/aarch64-protos.h
6984 (aarch64_simd_check_vect_par_cnst_half): New.
6985 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
6986 the check out to aarch64_simd_check_vect_par_cnst_half.
6987 (vect_par_cnst_lo_half): Likewise.
6988 * config/aarch64/aarch64-simd.md
6989 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
6990 (move_hi_quad_<mode>): Always generate a low mask.
6991
6992 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6993
6994 * doc/invoke.texi (AVR Options): Add documentation about
6995 __AVR_DEVICE_NAME__ built-in macro.
6996
6997 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
6998
6999 PR target/61948
7000 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7001 constraints are satisfied.
7002 (<shift>di3_neon): Likewise.
7003
7004 2014-07-31 Richard Biener <rguenther@suse.de>
7005
7006 PR tree-optimization/61964
7007 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7008 by structural equality.
7009
7010 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7011
7012 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7013 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7014 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7015 New enums.
7016 * gcc.c (sanitize_spec_function): Support new option.
7017 (SANITIZER_SPEC): Remove now redundant check.
7018 * opts.c (common_handle_option): Support new option.
7019 (finish_options): Check for incompatibilities.
7020 * toplev.c (process_options): Split userspace-specific checks.
7021
7022 2014-07-31 Richard Biener <rguenther@suse.de>
7023
7024 * lto-streamer.h (struct output_block): Remove global.
7025 (struct data_in): Remove labels, num_named_labels and
7026 num_unnamed_labels.
7027 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7028 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7029
7030 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7031
7032 PR c++/60517
7033 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7034 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7035 (isolate_path): New argument to avoid inserting a trap.
7036 (find_implicit_erroneous_behaviour): Handle returning the address
7037 of a local variable.
7038 (find_explicit_erroneous_behaviour): Likewise.
7039
7040 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7041
7042 PR lto/61868
7043 * toplev.c (init_random_seed): Move piece of code never called to
7044 set_random_seed.
7045 (set_random_seed): see above.
7046
7047 2014-07-31 Tom de Vries <tom@codesourcery.com>
7048
7049 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7050
7051 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7052
7053 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7054 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7055
7056 2014-07-31 Richard Biener <rguenther@suse.de>
7057
7058 * data-streamer.h (streamer_write_data_stream): Declare here,
7059 renamed from ...
7060 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7061 * lto-cgraph.c (lto_output_node): Adjust.
7062 (lto_output_varpool_node): Likewise.
7063 * data-streamer-out.c (streamer_string_index): Likewise.
7064 (streamer_write_data_stream, lto_append_block): Move from ...
7065 * lto-section-out.c (lto_output_data_stream,
7066 lto_append_block): ... here.
7067
7068 2014-07-30 Mike Stump <mikestump@comcast.net>
7069
7070 * configure.ac: Also check for popen.
7071 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7072 * configure: Regenerate.
7073 * config.in: Regenerate.
7074
7075 2014-07-30 Martin Jambor <mjambor@suse.cz>
7076
7077 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7078 parameter to gimple.
7079
7080 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7081
7082 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7083 address as second parameter to __tpf_eh_return routine.
7084
7085 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7086
7087 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7088 Thumb2.
7089
7090 2014-07-30 Tom Tromey <tromey@redhat.com>
7091
7092 PR c/59855
7093 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7094 * doc/extend.texi (Type Attributes): Document designated_init
7095 attribute.
7096
7097 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7098
7099 * graphite-isl-ast-to-gimple.c:
7100 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7101 (gcc_expression_from_isl_expression): Pass type to
7102 gcc_expression_from_isl_ast_expr_id.
7103
7104 2014-07-30 Richard Biener <rguenther@suse.de>
7105
7106 * lto-streamer.h (lto_write_data): New function.
7107 * langhooks.c (lhd_append_data): Do not free block.
7108 * lto-section-out.c (lto_write_data): New function writing
7109 raw data to the current section.
7110 (lto_write_stream): Adjust for langhook semantic change.
7111 (lto_destroy_simple_output_block): Write header directly.
7112 * lto-opts.c (lto_write_options): Write options directly.
7113 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7114 (lto_output_toplevel_asms): Likewise.
7115 (copy_function_or_variable): Copy data directly.
7116 (write_global_references): Output index table directly.
7117 (lto_output_decl_state_refs): Likewise.
7118 (write_symbol): Write data directly.
7119 (produce_symtab): Adjust.
7120 (produce_asm_for_decls): Output header and refs directly.
7121
7122 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7123
7124 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7125 to speculative_targets
7126 (get_class_context): Fix handling of contextes without outer type;
7127 avoid matching non-polymorphic types in LTO.
7128 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7129 parameter to speculative_targetsp; handle speculation.
7130 (dump_possible_polymorphic_call_targets): Update dumping.
7131
7132 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7133
7134 * common.opt (Wodr): Enable by default.
7135
7136 2014-07-29 Olivier Hainque <hainque@adacore.com>
7137
7138 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7139
7140 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7141
7142 PR bootstrap/61914
7143 * gengtype.c (strtoken): New function.
7144 (create_user_defined_type): Replace strtok with strtoken.
7145
7146 2014-07-29 Nathan Sidwell <nathan@acm.org>
7147
7148 * gcov-io.c (gcov_var): Make hidden.
7149 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7150 (gcov_do_dump): Declare.
7151 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7152
7153 2014-07-29 Martin Jambor <mjambor@suse.cz>
7154
7155 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7156 parameter to gimple.
7157 (sra_modify_assign): Likewise.
7158
7159 2014-07-29 Richard Biener <rguenther@suse.de>
7160
7161 PR middle-end/52478
7162 * expr.c (expand_expr_real_2): Revert last change.
7163
7164 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7165
7166 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7167 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7168 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7169 call.
7170 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7171 (contains_type_p): Forward declare.
7172 (polymorphic_call_target_hasher::hash): Hash speculative info.
7173 (polymorphic_call_target_hasher::equal): Compare speculative info.
7174 (get_class_context): Handle speuclation.
7175 (contains_type_p): Update.
7176 (get_polymorphic_call_info_for_decl): Update.
7177 (walk_ssa_copies): Break out from ...
7178 (get_polymorphic_call_info): ... here; set speculative context
7179 before giving up.
7180 * ipa-prop.c (ipa_write_indirect_edge_info,
7181 ipa_read_indirect_edge_info): Stream speculative context.
7182 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7183 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7184 SPECULATIVE_MAYBE_DERIVED_TYPE).
7185 (possible_polymorphic_call_targets overriders): Update.
7186 (dump_possible_polymorphic_call_targets overriders): Update.
7187 (dump_possible_polymorphic_call_target_p overriders): Update.
7188
7189 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7190
7191 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7192 ipa-devirt path; fix thinko there.
7193
7194 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7195
7196 * config/i386/i386.c (ix86_return_in_memory): Replace one
7197 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7198
7199 2014-07-28 Marek Polacek <polacek@redhat.com>
7200
7201 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7202
7203 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7204
7205 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7206 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7207 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7208 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7209 (USE_LD_AS_NEEDED): Likewise.
7210 (ASM_APP_ON): Likewise.
7211 (ASM_APP_OFF): Likewise.
7212 (TARGET_POSIX_IO): Likewise.
7213 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7214 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7215 (USE_LD_AS_NEEDED): Likewise.
7216 (ASM_APP_ON): Likewise.
7217 (ASM_APP_OFF): Likewise.
7218 (TARGET_POSIX_IO): Likewise.
7219
7220 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7221
7222 PR middle-end/61734
7223 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7224 operators other than the equality operators.
7225
7226 2014-07-28 Richard Biener <rguenther@suse.de>
7227
7228 PR middle-end/52478
7229 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7230 sure to register SImode ones, not only >= word_mode ones.
7231 * expr.c (expand_expr_real_2): When expanding -ftrapv
7232 binops do not use OPTAB_LIB_WIDEN.
7233
7234 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7235
7236 PR middle-end/61919
7237 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7238 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7239 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7240 inserting them in the insn stream.
7241
7242 2014-07-28 Marek Polacek <polacek@redhat.com>
7243
7244 PR middle-end/61913
7245 * common.opt (Wodr): Add Var.
7246
7247 2014-07-28 Richard Biener <rguenther@suse.de>
7248
7249 PR tree-optimization/61921
7250 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7251 if there is a varpool node before dereferencing it.
7252
7253 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7254
7255 * graphite-sese-to-poly.c:
7256 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7257 id of the pbb), which contains pointer to the pbb1.
7258
7259 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7260
7261 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7262
7263 * graphite-isl-ast-to-gimple.c:
7264 (graphite_create_new_guard): New function.
7265 (translate_isl_ast_node_if): New function.
7266 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7267
7268 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7269
7270 2014-07-27 Anthony Green <green@moxielogic.com>
7271
7272 * config.gcc: Add moxie-*-moxiebox* configuration.
7273 * config/moxie/moxiebox.h: New file.
7274
7275 2014-07-26 Andrew Pinski <apinski@cavium.com>
7276
7277 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7278 from the read only register.
7279
7280 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7281
7282 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7283 as the allocation class if it isn't likely to be spilled.
7284
7285 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7286
7287 * rtl.h (tls_referenced_p): Declare.
7288 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7289 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7290 (mips_cannot_force_const_mem): Use tls_referenced_p.
7291 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7292 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7293 instead of pa_tls_referenced_p.
7294 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7295 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7296 (pa_legitimate_constant_p): Likewise.
7297 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7298 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7299 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7300 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7301 rs6000_tls_referenced_p.
7302 (rs6000_tls_symbol_ref_1): Delete.
7303
7304 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7305
7306 PR target/44551
7307 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7308 Optimize inverse of a VEC_CONCAT.
7309
7310 2014-07-25 Xinliang David Li <davidxl@google.com>
7311
7312 * params.def: New parameter.
7313 * coverage.c (get_coverage_counts): Check new flag.
7314 (coverage_compute_profile_id): Check new flag.
7315 (coverage_begin_function): Check new flag.
7316 (coverage_end_function): Check new flag.
7317 * value-prof.c (coverage_node_map_initialized_p): New function.
7318 (init_node_map): Populate map with all functions.
7319 * doc/invoke.texi: Document new parameter.
7320
7321 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7322 Richard Biener <rguenther@suse.de>
7323
7324 * lto-streamer-out.c (struct sccs): Turn to ...
7325 (class DFS): ... this one; refactor the DFS walk so it can
7326 be re-done on per-SCC basis.
7327 (DFS::DFS): New constructor.
7328 (DFS::~DFS): New destructor.
7329 (hash_tree): Add new MAP argument holding in-SCC hash values;
7330 remove POINTER_TYPE hashing hack.
7331 (scc_entry_compare): Rename to ...
7332 (DFS::scc_entry_compare): ... this one.
7333 (hash_scc): Rename to ...
7334 (DFS::hash_scc): ... this one; pass output_block instead
7335 of streamer_cache; work harder to get unique and stable SCC
7336 hashes.
7337 (DFS_write_tree): Rename to ...
7338 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7339 (lto_output_tree): Update.
7340
7341 2014-07-25 Andi Kleen <ak@linux.intel.com>
7342
7343 * lto-streamer-out.c (hash_tree): Convert to inchash.
7344
7345 2014-07-25 Andi Kleen <ak@linux.intel.com>
7346
7347 * tree.c (build_type_attribute_qual_variant): Use inchash.
7348 (type_hash_list): Dito.
7349 (attribute_hash_list): Dito
7350 (iterative_hstate_expr): Dito.
7351 (iterative_hash_expr): Dito.
7352 (build_range_type_1): Dito.
7353 (build_array_type_1): Dito.
7354 (build_function_type): Dito.
7355 (build_method_type_directly): Dito.
7356 (build_offset_type): Dito.
7357 (build_complex_type): Dito.
7358 (make_vector_type): Dito.
7359 * tree.h (iterative_hash_expr): Add compat wrapper.
7360 (iterative_hstate_expr): Add.
7361
7362 2014-07-25 Andi Kleen <ak@linux.intel.com>
7363
7364 * Makefile.in (OBJS): Add inchash.o.
7365 (PLUGIN_HEADERS): Add inchash.h.
7366 * ipa-devirt.c: Include inchash.h.
7367 * lto-streamer-out.c: Dito.
7368 * tree-ssa-dom.c: Dito.
7369 * tree-ssa-pre.c: Dito.
7370 * tree-ssa-sccvn.c: Dito.
7371 * tree-ssa-tail-merge.c: Dito.
7372 * asan.c: Dito.
7373 * tree.c (iterative_hash_hashval_t): Move to ...
7374 (iterative_hash_host_wide_int): Move to ...
7375 * inchash.c: Here. New file.
7376 * tree.h (iterative_hash_hashval_t): Move to ...
7377 (iterative_hash_host_wide_int): Move to ...
7378 * inchash.h: Here. New file.
7379
7380 2014-07-25 Richard Biener <rguenther@suse.de>
7381
7382 PR middle-end/61762
7383 PR middle-end/61894
7384 * fold-const.c (native_encode_int): Add and handle offset
7385 parameter to do partial encodings of expr.
7386 (native_encode_fixed): Likewise.
7387 (native_encode_real): Likewise.
7388 (native_encode_complex): Likewise.
7389 (native_encode_vector): Likewise.
7390 (native_encode_string): Likewise.
7391 (native_encode_expr): Likewise.
7392 * fold-const.c (native_encode_expr): Add offset parameter
7393 defaulting to -1.
7394 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7395 (fold_ctor_reference): Handle all reads from tcc_constant
7396 ctors.
7397
7398 2014-07-25 Richard Biener <rguenther@suse.de>
7399
7400 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7401 as possibly unused.
7402
7403 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7404
7405 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7406
7407 2014-07-24 Kyle McMartin <kyle@redhat.com>
7408
7409 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7410
7411 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7412
7413 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7414 Add prototype.
7415 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7416 function.
7417 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7418 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7419 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7420
7421 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7422
7423 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7424 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7425 aggregate types. Instead, *all* aggregate types, except for single-
7426 element or homogeneous float/vector aggregates, are quadword-aligned
7427 if required by their type alignment. Issue -Wpsabi note when a type
7428 is now treated differently than before.
7429
7430 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7431
7432 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7433 does not fit fully into floating-point registers, and there is still
7434 space in the register parameter area, use GPRs to pass those parts
7435 of the argument. Issue -Wpsabi note if any parameter is now treated
7436 differently than before.
7437 (rs6000_arg_partial_bytes): Update.
7438
7439 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7440
7441 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7442
7443 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7444
7445 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7446 * toplev.c (initialize_rtl): Don't use it. Move previously
7447 "language-dependent" calls to...
7448 (backend_init): ...here.
7449 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7450 Assert that RTL initialization hasn't happend yet.
7451
7452 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7453
7454 PR rtl-optimization/61629
7455 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7456 they have already been initialized.
7457
7458 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7459
7460 PR middle-end/61268
7461 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7462 DECL_INCOMING_RTL and entry_parm.
7463 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7464 * calls.c (load_register_parameters): Likewise argument values.
7465 (emit_library_call_value_1, store_one_arg): Likewise argument
7466 save areas.
7467 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7468 stack slot.
7469 * explow.c (validize_mem): Modify the argument in-place.
7470
7471 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7472
7473 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7474 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7475
7476 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7477
7478 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7479 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7480
7481 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7482
7483 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7484 (aarch64_save_callee_saves): New parameter "skip_wb".
7485 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7486
7487 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7488
7489 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7490 "wb_candidate2".
7491 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7492
7493 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7494
7495 * graphite-isl-ast-to-gimple.c:
7496 (graphite_create_new_loop): Add calling of isl_id_free to properly
7497 decrement reference counts.
7498
7499 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7500
7501 2014-07-24 Martin Liska <mliska@suse.cz>
7502 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7503 function used.
7504 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7505 (rs6000_code_end): Likewise.
7506
7507 2014-07-24 Martin Liska <mliska@suse.cz>
7508
7509 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7510 symtab_node funtion used.
7511 (rs6000_xcoff_declare_object_name): Likewise.
7512
7513 2014-07-24 Martin Liska <mliska@suse.cz>
7514
7515 * cgraphunit.c (compile): Correct function used.
7516
7517 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7518
7519 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7520 as non-indexable.
7521
7522 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7523
7524 PR lto/61802
7525 * varasm.c (bss_initializer_p): Handle offlined ctors.
7526 (align_variable, get_variable_align): Likewise.
7527 (make_decl_one_only): Likewise.
7528 (default_binds_local_p_1): Likewise.
7529 (decl_binds_to_current_def_p): Likewise.
7530 (get_variable_section): Get constructor if it is offlined.
7531 (assemble_variable_contents): Sanity check that the caller
7532 streamed in the ctor in LTO.
7533
7534 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7535
7536 * graphite-isl-ast-to-gimple.c:
7537 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7538 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7539 isl_ast_op_pdiv_r to the different case.
7540
7541 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7542
7543 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7544
7545 PR middle-end/61876
7546 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7547 when flag_errno_math is on.
7548
7549 2014-07-24 Martin Liska <mliska@suse.cz>
7550
7551 * cgraph.h (varpool_node):
7552 (availability get_availability (void)):
7553 created from cgraph_variable_initializer_availability
7554 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7555 created from: cgraph_variable_initializer_availability
7556 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7557 (void finalize_named_section_flags (void)):
7558 created from varpool_finalize_named_section_flags
7559 (bool assemble_decl (void)): created from varpool_assemble_decl
7560 (void analyze (void)): created from varpool_analyze_node
7561 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7562 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7563 (void remove_initializer (void)): created from varpool_remove_initializer
7564 (tree get_constructor (void)): created from varpool_get_constructor
7565 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7566 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7567 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7568 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7569 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7570 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7571 (static bool output_variables (void)): created from varpool_output_variables
7572 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7573 created from varpool_extra_name_alias
7574 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7575 (static void dump_varpool (FILE *f)): created from dump_varpool
7576 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7577 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7578 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7579 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7580 (void assemble_aliases (void)): created from assemble_aliases
7581
7582 2014-07-24 Martin Liska <mliska@suse.cz>
7583
7584 * cgraph.h (symtab_node):
7585 (void register_symbol (void)): created from symtab_register_node
7586 (void remove (void)): created from symtab_remove_node
7587 (void dump (FILE *f)): created from dump_symtab_node
7588 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7589 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7590 (struct ipa_ref *add_reference (symtab_node *referred_node,
7591 enum ipa_ref_use use_type)): created from add_reference
7592 (struct ipa_ref *add_reference (symtab_node *referred_node,
7593 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7594 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7595 gimple stmt)): created from maybe_add_reference
7596 (bool semantically_equivalent_p (symtab_node *target)): created from
7597 symtab_semantically_equivalent_p
7598 (void remove_from_same_comdat_group (void)): created from
7599 remove_from_same_comdat_group
7600 (void add_to_same_comdat_group (symtab_node *old_node)): created from
7601 symtab_add_to_same_comdat_group
7602 (void dissolve_same_comdat_group_list (void)): created from
7603 symtab_dissolve_same_comdat_group_list
7604 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
7605 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
7606 created from symtab_alias_ultimate_target
7607 (inline symtab_node *next_defined_symbol (void)): created from
7608 symtab_next_defined_symbol
7609 (bool resolve_alias (symtab_node *target)): created from
7610 symtab_resolve_alias
7611 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
7612 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
7613 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
7614 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
7615 (void set_section (const char *section)): created from set_section_1
7616 (enum availability get_availability (void)): created from symtab_node_availability
7617 (void make_decl_local (void)): created from symtab_make_decl_local
7618 (bool real_symbol_p (void)): created from symtab_read_node
7619 (can_be_discarded_p (void)): created from symtab_can_be_discarded
7620 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
7621 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
7622 symtab_in_same_comdat_p;
7623 (bool address_taken_from_non_vtable_p (void)): created from
7624 address_taken_from_non_vtable_p
7625 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
7626 (static void dump_table (FILE *)): created from dump_symtab
7627 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
7628 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
7629 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
7630 symtab_used_from_object_file_p
7631 (void dump_base (FILE *)): created from dump_symtab_base
7632 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
7633 (void unregister (void)): created from symtab_unregister_node
7634 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
7635 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
7636 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
7637 symtab_nonoverwritable_alias_1
7638 * cgraph.h (cgraph_node):
7639 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
7640 created from cgraph_remove_node_and_inline_clones
7641 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
7642 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
7643 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
7644 (cgraph_node *function_symbol (enum availability *avail = NULL)):
7645 created from cgraph_function_node
7646 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
7647 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
7648 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
7649 created from cgraph_create_clone
7650 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
7651 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
7652 created from cgraph_create_virtual_clone
7653 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
7654 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
7655 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
7656 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
7657 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
7658 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
7659 created from cgraph_function_version_info
7660 (struct cgraph_function_version_info *insert_new_function_version (void)):
7661 created from insert_new_cgraph_node_version
7662 (struct cgraph_function_version_info *function_version (void)): created from
7663 get_cgraph_node_version
7664 (void analyze (void)): created from analyze_function
7665 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
7666 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
7667 tree real_alias) cgraph_add_thunk
7668 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
7669 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
7670 created from cgraph_function_or_thunk_node
7671 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
7672 created from expand_thunk
7673 (void reset (void)): created from cgraph_reset_node
7674 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
7675 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
7676 (void remove (void)): created from cgraph_remove_node
7677 (void dump (FILE *f)): created from dump_cgraph_node
7678 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
7679 (bool get_body (void)): created from cgraph_get_body
7680 (void release_body (void)): created from cgraph_release_function_body
7681 (void unnest (void)): created from cgraph_unnest_node
7682 (void make_local (void)): created from cgraph_make_node_local
7683 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
7684 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
7685 gcov_type count, int freq)): created from cgraph_create_edge
7686 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
7687 gcov_type count, int freq)): created from cgraph_create_indirect_edge
7688 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
7689 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
7690 created from cgraph_create_edge_including_clones
7691 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
7692 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
7693 (void remove_callers (void)): created from cgraph_node_remove_callers
7694 (void remove_callees (void)): created from cgraph_node_remove_callees
7695 (enum availability get_availability (void)): created from cgraph_function_body_availability
7696 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
7697 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
7698 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
7699 (void call_duplication_hooks (cgraph_node *node2)): created from
7700 cgraph_call_node_duplication_hooks
7701 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
7702 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
7703 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
7704 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
7705 (void call_function_insertion_hooks (void)):
7706 created from cgraph_call_function_insertion_hooks
7707 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
7708 (bool local_p (void)): created from cgraph_local_node
7709 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
7710 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
7711 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
7712 (inline bool only_called_directly_or_aliased_p (void)):
7713 created from cgraph_only_called_directly_or_aliased_p
7714 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
7715 created from cgraph_will_be_removed_from_program_if_no_direct_calls
7716 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
7717 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
7718 (bool can_remove_if_no_direct_calls_p (void)):
7719 created from cgraph_can_remove_if_no_direct_calls_p
7720 (inline bool has_gimple_body_p (void)):
7721 created from cgraph_function_with_gimple_body_p
7722 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
7723 (static void dump_cgraph (FILE *f)): created from dump_cgraph
7724 (static inline void debug_cgraph (void)): created from debug_cgraph
7725 (static void record_function_versions (tree decl1, tree decl2)):
7726 created from record_function_versions
7727 (static void delete_function_version (tree decl)):
7728 created from delete_function_version
7729 (static void add_new_function (tree fndecl, bool lowered)):
7730 created from cgraph_add_new_function
7731 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
7732 (static cgraph_node * create (tree decl)): created from cgraph_create_node
7733 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
7734 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
7735 (static cgraph_node *get_for_asmname (tree asmname)):
7736 created from cgraph_node_for_asm
7737 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
7738 created from cgraph_same_body_alias
7739 (static bool used_from_object_file_p_worker (cgraph_node *node,
7740 void *): new function
7741 (static bool non_local_p (cgraph_node *node, void *)):
7742 created from cgraph_non_local_node_p_1
7743 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
7744 created from verify_cgraph
7745 (static bool make_local (cgraph_node *node, void *)):
7746 created from cgraph_make_node_local
7747 (static cgraph_node *create_alias (tree alias, tree target)):
7748 created from cgraph_create_function_alias
7749 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
7750 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
7751 created from cgraph_create_edge_1
7752 * cgraph.h (varpool_node):
7753 (void remove (void)): created from varpool_remove_node
7754 (void dump (FILE *f)): created from dump_varpool_node
7755
7756 2014-07-24 Richard Biener <rguenther@suse.de>
7757
7758 PR ipa/61823
7759 * tree-ssa-structalias.c (create_variable_info_for_1):
7760 Use varpool_get_constructor.
7761 (create_variable_info_for): Likewise.
7762
7763 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7764
7765 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
7766 subtract outgoing area size when restoring stack_pointer_rtx.
7767
7768 2014-07-24 Nick Clifton <nickc@redhat.com>
7769
7770 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
7771 that operations are taking place in parallel.
7772 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
7773
7774 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
7775
7776 * omp-low.c (extract_omp_for_data): Add missing break statement.
7777
7778 2014-07-24 Richard Biener <rguenther@suse.de>
7779
7780 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
7781 * tree-inline.c (estimate_move_cost): Add speed_p parameter
7782 and adjust MOVE_RATIO query accordingly.
7783 (estimate_num_insns): Adjust callers.
7784 * ipa-prop.c (ipa_populate_param_decls): Likewise.
7785 * ipa-cp.c (gather_context_independent_values,
7786 estimate_local_effects): Likewise.
7787 * ipa-split.c (consider_split): Likewise.
7788
7789 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
7790
7791 * config/i386/driver-i386.c: Remove names of unused arguments and
7792 unnecessary unused attributes.
7793 * config/i386/host-mingw32.c: Likewise.
7794 * config/i386/i386.c: Likewise.
7795 * config/i386/winnt-stubs.c: Likewise.
7796 * config/i386/winnt.c: Likewise.
7797
7798 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7799
7800 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
7801 (aarch64_gen_loadwb_pair): New helper function.
7802 (aarch64_expand_epilogue): Simplify code using new helper functions.
7803 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
7804
7805 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7806
7807 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
7808 (aarch64_gen_storewb_pair): New helper function.
7809 (aarch64_expand_prologue): Simplify code using new helper functions.
7810 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
7811
7812 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7813
7814 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
7815 Rename to aarch64_save_callee_saves, remove restore code.
7816 (aarch64_restore_callee_saves): New function.
7817
7818 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7819
7820 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
7821 (aarch64_save_callee_saves): New function to handle reg save
7822 for both core and vectore regs.
7823
7824 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7825
7826 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
7827 (aarch64_gen_store_pair): New helper function.
7828 (aarch64_save_or_restore_callee_save_registers)
7829 (aarch64_save_or_restore_fprs): Use new helper functions.
7830
7831 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7832
7833 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
7834 (aarch64_save_or_restore_callee_save_registers)
7835 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
7836
7837 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7838
7839 * config/aarch64/aarch64.c
7840 (aarch64_save_or_restore_callee_save_registers)
7841 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
7842
7843 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7844
7845 * config/aarch64/aarch64.c
7846 (aarch64_save_or_restore_callee_save_registers)
7847 (aarch64_save_or_restore_fprs): Remove 'increment'.
7848
7849 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7850
7851 * config/aarch64/aarch64.c
7852 (aarch64_save_or_restore_callee_save_registers)
7853 (aarch64_save_or_restore_fprs): Use register offset in
7854 cfun->machine->frame.reg_offset.
7855
7856 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7857
7858 * config/aarch64/aarch64.c
7859 (aarch64_save_or_restore_callee_save_registers)
7860 (aarch64_save_or_restore_fprs): Remove base_rtx.
7861
7862 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7863
7864 * config/aarch64/aarch64.c
7865 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
7866 to 'start_offset'. Remove local variable 'start_offset'.
7867
7868 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7869
7870 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
7871 type to HOST_WIDE_INT.
7872
7873 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7874
7875 * config/aarch64/aarch64.c (aarch64_expand_prologue)
7876 (aarch64_save_or_restore_fprs)
7877 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
7878
7879 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7880
7881 * config/arm/t-rtems-eabi: Add
7882 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
7883 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
7884 mbig-endian/mthumb/march=armv7-r, and
7885 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
7886 multilibs.
7887
7888 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7889 Chris Johns <chrisj@rtems.org>
7890 Joel Sherrill <joel.sherrill@oarcorp.com>
7891
7892 * config.gcc: Add nios2-*-rtems*.
7893 * config/nios2/rtems.h: New file.
7894 * gcc/config/nios2/t-rtems: New file.
7895
7896 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7897
7898 PR target/61396
7899 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
7900 constant numbers, not general constants.
7901 (rs6000_expand_vector_init): Ditto.
7902
7903 2014-07-23 Nathan Sidwell <nathan@acm.org>
7904
7905 * gcov-tool.c (gcov_list): Declare here.
7906 (set_gcov_list): Remove.
7907 (gcov_output_files): Set gcov_list directly.
7908
7909 2014-07-23 Host Schirmeier <horst@schirmeier.com>
7910
7911 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
7912
7913 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7914
7915 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
7916 callee-saved registers are available for padding purpose
7917 and r3 is not mandatory, then prefer use those callee-saved
7918 instead of r3.
7919
7920 2014-07-23 Richard Biener <rguenther@suse.de>
7921
7922 * params.def (PARAM_MAX_COMBINE_INSNS): New.
7923 * combine.c: Include statistics.h and params.h.
7924 (combine_instructions): Guard three and four insn combines
7925 with max-combine-insns value. Record statistics for combines
7926 performed.
7927 * doc/invoke.texi (max-combine-insns): Document new param.
7928
7929 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7930
7931 * graphite-isl-ast-to-gimple.c:
7932 (translate_isl_ast_node_block): New function.
7933 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
7934
7935 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
7936 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
7937
7938 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7939
7940 * graphite-isl-ast-to-gimple.c:
7941 (get_max_schedule_dimensions): New function.
7942 (extend_schedule): Likewise.
7943 (generate_isl_schedule): Add calling of extend_schedule and
7944 get_max_schedule_dimensions.
7945
7946 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7947
7948 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
7949 (case UNSPEC): Handle UNSPEC_RBIT.
7950
7951 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7952
7953 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
7954 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
7955
7956 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7957
7958 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
7959
7960 2014-07-22 Roman Gareev <gareevroman@gmail.com>
7961
7962 * graphite-isl-ast-to-gimple.c:
7963 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
7964 (ivs_params_clear):
7965 (build_iv_mapping): New function.
7966 (translate_isl_ast_node_user): Likewise.
7967 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
7968
7969 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
7970 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
7971 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
7972
7973 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7974
7975 PR target/55701
7976 * config/arm/arm.md (setmem): New pattern.
7977 * config/arm/arm-protos.h (struct tune_params): New fields.
7978 (arm_gen_setmem): New prototype.
7979 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7980 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7981 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7982 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7983 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7984 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7985 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7986 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7987 (arm_const_inline_cost): New function.
7988 (arm_block_set_max_insns): New function.
7989 (arm_block_set_non_vect_profit_p): New function.
7990 (arm_block_set_vect_profit_p): New function.
7991 (arm_block_set_unaligned_vect): New function.
7992 (arm_block_set_aligned_vect): New function.
7993 (arm_block_set_unaligned_non_vect): New function.
7994 (arm_block_set_aligned_non_vect): New function.
7995 (arm_block_set_vect, arm_gen_setmem): New functions.
7996
7997 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7998
7999 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8000
8001 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8002
8003 PR target/61855
8004 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8005 out of #ifdef __OPTIMIZE__.
8006
8007 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8008
8009 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8010 different trapping status if -fnon-call-exceptions is enabled.
8011
8012 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8013
8014 * expr.c (store_field): Handle VOIDmode for calls that return values
8015 in multiple locations.
8016
8017 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8018
8019 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8020 (altivec_vsldoi_<mode>): Likewise.
8021
8022 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8023
8024 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8025 to the number of characters in the line.
8026
8027 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8028
8029 * graphite-isl-ast-to-gimple.c: Add using of
8030 build_nonstandard_integer_type instead of int128_integer_type_node.
8031
8032 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8033
8034 * toplev.c (output_stack_usage): Adjust the location of the warning.
8035
8036 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8037
8038 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8039 (*membar_storeload): Disable for LEON3.
8040
8041 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8042
8043 PR rtl-optimization/61461
8044 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8045
8046 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8047
8048 PR target/61794
8049 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8050 Fix instruction constraint.
8051 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8052
8053 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8054
8055 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8056
8057 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8058
8059 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8060 GNU coding standards.
8061 (nds32_register_move_cost): Likewise.
8062 (nds32_memory_move_cost): Likewise.
8063 (nds32_address_cost): Likewise.
8064
8065 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8066
8067 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8068
8069 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8070
8071 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8072 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8073 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8074 (HAVE_sync_compare_and_swapqi): Define.
8075 (HAVE_sync_compare_and_swaphi): Likewise.
8076 (HAVE_sync_compare_and_swapsi): Likewise.
8077
8078 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8079
8080 * config/mips/p5600.md: Add missing cpu tests.
8081
8082 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8083
8084 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8085 (vmla_f64): Likewise.
8086 (vfms_f64): Likewise.
8087 (vmls_f64): Likewise.
8088
8089 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8090
8091 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8092 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8093
8094 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8095
8096 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8097 (vmlal_high_lane_s32): Likewise.
8098 (vmlal_high_lane_u16): Likewise.
8099 (vmlal_high_lane_u32): Likewise.
8100 (vmlsl_high_lane_s16): Likewise.
8101 (vmlsl_high_lane_s32): Likewise.
8102 (vmlsl_high_lane_u16): Likewise.
8103 (vmlsl_high_lane_u32): Likewise.
8104
8105 2014-07-17 Terry Guo <terry.guo@arm.com>
8106
8107 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8108 (alus_reg): Renamed to alus_sreg.
8109 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8110 from alu_reg to alu_sreg. Change type of dsp instructions from
8111 alu_reg to alu_dsp_reg.
8112 * config/arm/thumb1.md: Likewise.
8113 * config/arm/thumb2.md: Likewise.
8114 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8115 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8116 with alu_sreg and alus_sreg.
8117 * config/arm/arm1026ejs.md (alu_op): Likewise.
8118 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8119 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8120 * config/arm/fa526.md (526_alu_op): Likewise.
8121 * config/arm/fa606te.md (606te_alu_op): Likewise.
8122 * config/arm/fa626te.md (626te_alu_op): Likewise.
8123 * config/arm/fa726te.md (726te_alu_op): Likewise.
8124 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8125 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8126 alu_sreg, alu_dsp_reg and alus_sreg.
8127 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8128 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8129 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8130 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8131 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8132 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8133 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8134 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8135 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8136 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8137 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8138 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8139 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8140 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8141 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8142 alus_reg to alus_sreg.
8143
8144 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8145
8146 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8147 infinity format.
8148
8149 2014-07-17 Richard Biener <rguenther@suse.de>
8150
8151 PR rtl-optimization/61801
8152 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8153 don't set reg_pending_barrier if it appears in a debug-insn.
8154
8155 2014-07-16 DJ Delorie <dj@redhat.com>
8156
8157 * config/rx/rx.c (rx_option_override): Fix alignment values.
8158 (rx_align_for_label): Likewise.
8159
8160 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8161
8162 PR target/61737.
8163 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8164 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8165 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8166 functions.
8167 (cris_print_index, cris_print_operand, cris_constant_index_p)
8168 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8169 (cris_address_cost): Ditto last CONSTANT_P.
8170 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8171 callers changed. Yield cris_offsettable_symbol for non-PIC
8172 constant symbolic expressions including labels. Yield cris_unspec
8173 for all unspecs.
8174 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8175 target to pic_offset_table_rtx for calls that will likely go
8176 through PLT, const0_rtx when they can't. All callers changed.
8177 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8178 symbolic expressions to be PICified. Remove second, redundant,
8179 assert on can_create_pseudo_p returning non-zero. Use
8180 replace_equiv_address_nv, not replace_equiv_address, for final
8181 operand update.
8182 * config/cris/cris.md ("movsi"): Move variable t to pattern
8183 toplevel. Adjust assert for new cris_symbol_type member. Use
8184 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8185 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8186 for lapc stricter.
8187 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8188 ("call", "call_value"): Use second incoming operand as a marker
8189 for pic-offset-table-register being used.
8190 ("*expanded_call_non_v32", "*expanded_call_v32")
8191 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8192 second incoming operand to CALL, match cris_call_type_marker.
8193 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8194 ("*expanded_call_side"): Ditto. Fix typo in comment.
8195 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8196 CONSTANT_P.
8197 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8198 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8199 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8200 users changed. Add members cris_offsettable_symbol and cris_unspec.
8201 (cris_symbol_type): Rename from cris_pic_symbol_type.
8202 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8203 just CONSTANT_P.
8204 * config/cris/cris-protos.h (cris_symbol_type_of,
8205 cris_expand_pic_call_address): Adjust prototypes.
8206 (cris_legitimate_constant_p): New prototype.
8207
8208 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8209 an existing tmake_file. Don't add t-slibgcc and t-linux.
8210
8211 2014-07-17 Jason Merrill <jason@redhat.com>
8212
8213 PR c++/61623
8214 * symtab.c (symtab_remove_from_same_comdat_group): Also
8215 set_comdat_group to NULL_TREE.
8216 (verify_symtab): Fix diagnostic.
8217
8218 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8219
8220 PR target/61662
8221 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8222
8223 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8224
8225 Support location tracking for built-in macro tokens
8226 * input.h (is_location_from_builtin_token): New function declaration.
8227 * input.c (is_location_from_builtin_token): New function definition.
8228 * toplev.c (general_init): Tell libcpp what the pre-defined
8229 spelling location for built-in tokens is.
8230
8231 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8232
8233 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8234 on the FUNCTION_DECL.
8235
8236 2014-07-16 Richard Biener <rguenther@suse.de>
8237
8238 PR other/61782
8239 * doc/extend.texi (always_inline): Clarify.
8240
8241 2014-07-15 Eric Christopher <echristo@gmail.com>
8242
8243 * doc/invoke.texi (Link Options): Document -z option.
8244
8245 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8246
8247 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8248 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8249
8250 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8251
8252 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8253
8254 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8255
8256 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8257 varpool_assemble_decl.
8258 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8259 true.
8260
8261 2014-07-15 Michael Matz <matz@suse.de>
8262
8263 PR rtl-optimization/61772
8264 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8265
8266 2014-07-15 Richard Biener <rguenther@suse.de>
8267
8268 * opts.c (default_options_table): Disable bit-ccp at -Og.
8269
8270 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8271
8272 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8273
8274 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8275
8276 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8277 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8278 call langhook for unknown declaration.
8279 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8280 * tree.h (DECL_ARGUMENTS): Update.
8281 * print-tree.c (print_node): Update.
8282 * tree-core.h (tree_decl_non_common): Remove arguments.
8283 (tree_function_decl): Add arguments.
8284
8285 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8286
8287 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8288
8289 2014-07-14 Richard Biener <rguenther@suse.de>
8290
8291 PR tree-optimization/61779
8292 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8293 simplifying a condition.
8294
8295 2014-07-14 Richard Biener <rguenther@suse.de>
8296
8297 * builtins.c (c_strlen): Make only_value == 2 really only
8298 affect warning generation.
8299
8300 2014-07-14 Richard Biener <rguenther@suse.de>
8301
8302 PR tree-optimization/61757
8303 PR tree-optimization/61783
8304 PR tree-optimization/61787
8305 * tree-ssa-dom.c (record_equality): Revert canonicalization
8306 change and add comment.
8307 (propagate_rhs_into_lhs): Revert previous fix, removing
8308 loop depth restriction again.
8309
8310 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8311
8312 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8313 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8314 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8315 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8316 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8317 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8318 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8319
8320 2014-07-14 Richard Biener <rguenther@suse.de>
8321
8322 * cgraph.h (decl_in_symtab_p): Make inline.
8323
8324 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8325
8326 PR middle-end/61294
8327 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8328
8329 PR target/61656
8330 * config/i386/i386.c (classify_argument): Don't merge classes above
8331 number of words.
8332
8333 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8334
8335 * cgraph.h (symtab_node): Add nonzero_address.
8336 (decl_in_symtab_p): Break out from ...
8337 (symtab_get_node): ... here.
8338 * fold-const.c: Include cgraph.h
8339 (tree_single_nonzero_warnv_p): Use symtab to determine
8340 if symbol is non-zero.
8341 * symtab.c (symtab_node::nonzero_address): New method.
8342
8343 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8344
8345 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8346 forgotten in previous commit.
8347
8348 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8349
8350 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8351 on builtin types.
8352 * ipa-devirt.c: Include stor-layout.h and intl.h
8353 (odr_subtypes_equivalent_p): New function.
8354 (warn_odr): New function.
8355 (warn_type_mismatch): New function.
8356 (odr_types_equivalent_p): New function.
8357 (add_type_duplicate): Use it.
8358 * common.opt (Wodr): New flag.
8359 * doc/invoke.texi (Wodr): Document new warning.
8360
8361 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8362
8363 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8364 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8365 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8366 (varpool_get_constructor): Push CTORS_IN timevar.
8367 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8368
8369 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8370
8371 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8372 Remove VOID_FTYPE_PUSHORT.
8373 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8374 Change code to USHORT_FTYPE_VOID.
8375 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8376 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8377 (ix86_atomic_assign_expand_fenv): Update for
8378 __builtin_ia32_fnstsw changes.
8379 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8380 (fnstsw): Change operand 0 to nonimmediate operand.
8381
8382 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8383
8384 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8385 (varpool_get_constructor): New function.
8386 (varpool_ctor_useable_for_folding_p): Break out from ...
8387 (ctor_for_folding): ... here; use varpool_get_constructor.
8388 (varpool_assemble_decl): Likewise.
8389 * lto-streamer.h (struct output_block): Turn cgraph_node
8390 to symbol filed.
8391 (lto_input_variable_constructor): Declare.
8392 * ipa-visibility.c (function_and_variable_visibility): Use
8393 varpool_get_constructor.
8394 * cgraph.h (varpool_get_constructor): Declare.
8395 (varpool_ctor_useable_for_folding_p): New function.
8396 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8397 parameter; return error_mark_node for non-trivial constructors.
8398 (lto_write_tree_1, DFS_write_tree): Update use of
8399 get_symbol_initial_value.
8400 (output_function): Update initialization of symbol.
8401 (output_constructor): New function.
8402 (copy_function): Rename to ..
8403 (copy_function_or_variable): ... this one; handle vars too.
8404 (lto_output): Output variable sections.
8405 * lto-streamer-in.c (input_constructor): New function.
8406 (lto_read_body): Rename from ...
8407 (lto_read_body_or_constructor): ... this one; handle vars too.
8408 (lto_input_variable_constructor): New function.
8409 * ipa-prop.c (ipa_prop_write_jump_functions,
8410 ipa_prop_write_all_agg_replacement): Update.
8411 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8412 (output_cgraph_opt_summary): Set symbol to NULL.
8413
8414 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8415
8416 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8417 non-polymorphic types.
8418 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8419 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8420 of types is not polymorphic.
8421
8422 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8423
8424 * lra-constraints.c (remove_inheritance_pseudos): Process
8425 destination pseudo too.
8426
8427 2014-07-11 Rong Xu <xur@google.com>
8428
8429 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8430 commit r212448.
8431
8432 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8433
8434 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8435 * config/avr/avr-devices.c (AVR_MCU): Same.
8436 (avr_mcu_types): add text start value to end of device list.
8437 * config/avr/avr-mcus.def: Add text section start for all devices.
8438 (ata5782): Add new avr5 device.
8439 (ata5831): Same.
8440 * config/avr/avr-tables.opt: Regenerate.
8441 * config/avr/avr.h: Add declaration for text section start handler.
8442 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8443 SPEC functions.
8444 (LINK_SPEC): Include text section start handler to linker spec.
8445 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8446 pass -Ttext option to linker if the text section start for the device
8447 is not zero.
8448 * config/avr/t-multilib: Regenerate.
8449 * doc/avr-mmcu.texi: Regenerate.
8450
8451 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8452
8453 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8454 * config/rs6000/aix52.h (LINK_SPEC): Same.
8455 * config/rs6000/aix53.h (LINK_SPEC): Same.
8456 * config/rs6000/aix61.h (LINK_SPEC): Same.
8457 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8458
8459 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8460
8461 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8462 (graphite_verify): New function.
8463 (ivs_params_clear): New function.
8464 (gcc_expression_from_isl_ast_expr_id): New function.
8465 (gcc_expression_from_isl_expr_int): New function.
8466 (binary_op_to_tree): New function.
8467 (ternary_op_to_tree): New function.
8468 (unary_op_to_tree): New function.
8469 (nary_op_to_tree): New function.
8470 (gcc_expression_from_isl_expr_op): New function.
8471 (gcc_expression_from_isl_expression): New function.
8472 (graphite_create_new_loop): New function.
8473 (translate_isl_ast_for_loop): New function.
8474 (get_upper_bound): New function.
8475 (graphite_create_new_loop_guard): New function.
8476 (translate_isl_ast_node_for): New function.
8477 (translate_isl_ast): New function.
8478 (add_parameters_to_ivs_params): New function.
8479 (scop_to_isl_ast): New parameter ip.
8480 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8481
8482 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8483
8484 * config/xtensa/predicates.md (call expander): Update for
8485 DECL_SECTION_NAME being string.
8486
8487 2014-07-11 Richard Biener <rguenther@suse.de>
8488
8489 PR middle-end/61473
8490 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8491 can be implemented with a single load followed by a single store.
8492 (c_strlen): Only warn when only_value is not 2.
8493
8494 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8495
8496 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8497
8498 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8499
8500 PR target/61561
8501 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8502 (*movhi_bytes): Likewise.
8503 (*arm_movqi_insn): Likewise.
8504
8505 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8506
8507 PR target/56858
8508 * config/alpha/alpha.c: Include tree-pass.h, context.h
8509 and pass_manager.h.
8510 (pass_data_handle_trap_shadows): New pass.
8511 (pass_handle_trap_shadows::gate): New pass gate function.
8512 (make_pass_handle_trap_shadows): New function.
8513 (rest_of_handle_trap_shadows): Ditto.
8514
8515 (alpha_align_insns_1): Rename from alpha_align_insns.
8516 (pass_data_align_insns): New pass.
8517 (pass_align_insns::gate): New pass gate function.
8518 (make_pass_aling_insns): New function.
8519 (rest_of_align_insns): Ditto.
8520 (alpha_align_insns): Ditto.
8521
8522 (alpha_option_override): Declare handle_trap_shadows info
8523 and align_insns_info. Register handle_trap_shadows and align_insns
8524 passes here.
8525 (alpha_reorg): Do not call alpha_trap_shadows and
8526 alpha_align_insn from here.
8527
8528 (alpha_pad_function_end): Do not skip BARRIERs.
8529
8530 2014-07-10 Rong Xu <xur@google.com>
8531
8532 Add gcov-tool: an offline gcda profile processing tool support.
8533 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8534 (gcov_is_error): Ditto.
8535 (gcov_read_string): Ditto.
8536 (gcov_read_sync): Ditto.
8537 * gcov-io.h: Move counter defines to gcov-counter.def.
8538 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8539 * coverage.c: Ditto.
8540 * gcov-tool.c: Offline gcda profile processing tool.
8541 (unlink_gcda_file): Remove one gcda file.
8542 (unlink_profile_dir): Remove gcda files from the profile path.
8543 (gcov_output_files): Output gcda files to an output dir.
8544 (profile_merge): Merge two profiles in directory.
8545 (print_merge_usage_message): Print merge usage.
8546 (merge_usage): Print merge usage and exit.
8547 (do_merge): Driver for profile merge sub-command.
8548 (profile_rewrite): Rewrite profile.
8549 (print_rewrite_usage_message): Print rewrite usage.
8550 (rewrite_usage): Print rewrite usage and exit.
8551 (do_rewrite): Driver for profile rewrite sub-command.
8552 (print_usage): Print gcov-info usage and exit.
8553 (print_version): Print gcov-info version.
8554 (process_args): Process arguments.
8555 (main): Main routine for gcov-tool.
8556 * Makefile.in: Build and install gcov-tool.
8557 * gcov-counter.def: New file split from gcov-io.h.
8558 * doc/gcc.texi: Include gcov-tool.texi.
8559 * doc/gcov-tool.texi: Document for gcov-tool.
8560
8561 2014-07-10 Richard Biener <rguenther@suse.de>
8562
8563 PR tree-optimization/61757
8564 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8565 (propagate_rhs_into_lhs): Revert part of last change.
8566
8567 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8568
8569 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8570 FUNCTION_DECLs.
8571
8572 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8573
8574 PR middle-end/53590
8575 * function.c (allocate_struct_function): Revert r188667 change.
8576
8577 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8578
8579 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8580
8581 * doc/install.texi: Remove links to defunct package providers for
8582 Solaris.
8583
8584 2014-07-09 Tom de Vries <tom@codesourcery.com>
8585
8586 * final.c (get_call_fndecl): Declare.
8587 (self_recursive_call_p): New function.
8588 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8589
8590 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8591
8592 * ipa-devirt.c (record_node): Walk through aliases.
8593
8594 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8595
8596 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8597
8598 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8599
8600 Revert:
8601 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8602
8603 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8604
8605 * ipa-visibility.c (function_and_variable_visibility): Remove
8606 temporary hack disabling local aliases on AIX.
8607
8608 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8609
8610 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
8611 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
8612
8613 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8614
8615 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
8616 * rs6000/rs6000.c: Inline output of .set instruction.
8617 (declare_alias_data): New struct.
8618 (rs6000_declare_alias): New function.
8619 (rs6000_xcoff_declare_function_name): Use it.
8620 (rs6000_xcoff_declare_object_name): New function.
8621 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
8622 (ASM_OUTPUT_DEF): Turn to empty definition.
8623
8624 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8625
8626 PR bootstrap/61679
8627 * hash-table.h: use hash_table::value_type instead of
8628 Descriptor::value_type in the return types of several methods.
8629
8630 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8631
8632 * tree-pass.h (pass_data): Remove has_execute member.
8633 * passes.c (execute_one_pass): Don't check pass->has_execute.
8634 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8635 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8636 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8637 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8638 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
8639 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
8640 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
8641 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
8642 gimple-low.c, gimple-ssa-isolate-paths.c,
8643 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
8644 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
8645 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
8646 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
8647 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8648 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
8649 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
8650 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
8651 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
8652 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
8653 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
8654 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
8655 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8656 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8657 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8658 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8659 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8660 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8661 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8662 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8663 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
8664 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
8665 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
8666 web.c: Remove initializer for pass_data::has_execute.
8667
8668 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8669
8670 * graphite-htab.h: Use hash_map instead of hash_table.
8671 * graphite-clast-to-gimple.c: Adjust.
8672 * passes.c: Use hash_map instead of hash_table.
8673 * sese.c: Likewise.
8674 * sese.h: Remove now unused code.
8675
8676 2014-07-08 Sriraman Tallam <tmsriram@google.com>
8677
8678 PR target/61599
8679 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
8680 than zero.
8681
8682 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8683
8684 PR rtl-optimization/61673
8685 * combine.c (simplify_comparison): Test just mode's sign bit
8686 in tmode rather than the sign bit and any bits above it.
8687
8688 2014-07-08 Roman Gareev <gareevroman@gmail.com>
8689
8690 * graphite-isl-ast-to-gimple.c (generate_isl_context):
8691 Add __isl_give to the declaration.
8692 (generate_isl_schedule): Likewise.
8693 (scop_to_isl_ast): Likewise.
8694
8695 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8696
8697 * config/arm/arm.c (cortexa5_extra_costs): New table.
8698 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
8699
8700 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8701
8702 PR tree-optimization/61725
8703 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
8704 range, use range_includes_zerop_p instead of integer_zerop on
8705 vr0->min, only use log2 of max if min is not negative.
8706
8707 2014-07-08 Richard Biener <rguenther@suse.de>
8708
8709 * tree-ssa-dom.h (loop_depth_of_name): Remove.
8710 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
8711 restriction on loop depth difference.
8712 (record_equality): Likewise.
8713 (propagate_rhs_into_lhs): Likewise. Simplify condition.
8714 (loop_depth_of_name): Remove.
8715 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
8716 restriction on loop depth difference.
8717 (init_copy_prop): Likewise.
8718
8719 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8720
8721 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
8722 parameter.
8723 (walk_aliased_vdefs): Likewise.
8724 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
8725 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
8726 (detect_type_change_from_memory_writes): Check if entry was reached.
8727
8728 2014-07-08 Richard Biener <rguenther@suse.de>
8729
8730 PR tree-optimization/61681
8731 * tree-ssa-structalias.c (find_what_var_points_to): Expand
8732 NONLOCAL inside ESCAPED.
8733
8734 2014-07-08 Richard Biener <rguenther@suse.de>
8735
8736 PR tree-optimization/61680
8737 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8738 Handle properly all read-write dependences with group accesses.
8739
8740 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8741
8742 PR tree-optimization/61576
8743 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
8744 block containing reduction statement is predecessor of phi basi block.
8745
8746 2014-07-08 Marek Polacek <polacek@redhat.com>
8747
8748 PR c/60226
8749 * fold-const.c (round_up_loc): Change the parameter type.
8750 Remove assert.
8751 * fold-const.h (round_up_loc): Adjust declaration.
8752 * stor-layout.c (finalize_record_size): Check for too large types.
8753
8754 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
8755
8756 * symtab.c: Include calls.h.
8757 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
8758
8759 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
8760
8761 * config/rs6000/rs6000.c (output_vec_const_move): Handle
8762 little-endian code generation.
8763 * config/rs6000/spe.md (spe_evmergehi): Rename to...
8764 (vec_perm00_v2si): ... this. Handle little-endian code generation.
8765 (spe_evmergehilo): Rename to...
8766 (vec_perm01_v2si): ... this. Handle little-endian code generation.
8767 (spe_evmergelo): Rename to...
8768 (vec_perm11_v2si): ... this. Handle little-endian code generation.
8769 (spe_evmergelohi): Rename to...
8770 (vec_perm10_v2si): ... this. Handle little-endian code generation.
8771 (spe_evmergehi, spe_evmergehilo): New expanders.
8772 (spe_evmergelo, spe_evmergelohi): Likewise.
8773 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
8774 (*frob_tf_ti): Likewise.
8775 (*frob_<mode>_di_2): Likewise.
8776 (*frob_tf_di_8_2): Likewise.
8777 (*frob_di_<mode>): Likewise.
8778 (*frob_ti_tf): Likewise.
8779 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
8780 (*frob_ti_<mode>_8_2): Likewise.
8781 (*frob_ti_tf_2): Likewise.
8782 (mov_si<mode>_e500_subreg0): Rename to...
8783 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
8784 endianness only.
8785 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
8786 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
8787 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
8788 the big endianness only.
8789 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
8790 (*mov_si<mode>_e500_subreg0_2): Rename to...
8791 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
8792 big big endianness only.
8793 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
8794 (*mov_si<mode>_e500_subreg4): Rename to...
8795 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
8796 endianness only.
8797 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
8798 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
8799 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
8800 the big endianness only.
8801 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
8802 pattern.
8803 (*mov_si<mode>_e500_subreg4_2): Rename to...
8804 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
8805 endianness only.
8806 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
8807 (*mov_sitf_e500_subreg8): Rename to...
8808 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
8809 endianness only.
8810 (*mov_sitf_e500_subreg8_le): New instruction pattern.
8811 (*mov_sitf_e500_subreg8_2): Rename to...
8812 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
8813 endianness only.
8814 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
8815 (*mov_sitf_e500_subreg12): Rename to...
8816 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
8817 endianness only.
8818 (*mov_sitf_e500_subreg12_le): New instruction pattern.
8819 (*mov_sitf_e500_subreg12_2): Rename to...
8820 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
8821 endianness only.
8822 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
8823
8824 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
8825
8826 * asan.c (instrument_strlen_call): Do not instrument first byte
8827 in strlen if already instrumented.
8828
8829 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8830
8831 * config/arm/arm.opt (mwords-little-endian): Delete.
8832 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
8833 of TARGET_LITTLE_WORDS.
8834 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
8835 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
8836 warning.
8837 * doc/invoke.texi: Remove references to -mwords-little-endian.
8838
8839 2014-07-07 Jakub Jelinek <jakub@redhat.com>
8840
8841 * expmed.c (struct init_expmed_rtl): Change all fields but
8842 pow2 and cint from struct rtx_def to rtx.
8843 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
8844 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
8845 at the end again.
8846
8847 2014-07-06 Marek Polacek <polacek@redhat.com>
8848
8849 PR c/6940
8850 * doc/invoke.texi: Document -Wsizeof-array-argument.
8851
8852 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
8853
8854 * wide-int.h (wide_int_storage): Change declaration from struct
8855 to class.
8856
8857 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
8858
8859 * cgraph.c (cgraph_create_indirect_edge): Update call of
8860 get_polymorphic_call_info.
8861 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
8862 (possible_polymorphic_call_targets): Add parameter call.
8863 (decl_maybe_in_construction_p): New predicate.
8864 (get_polymorphic_call_info): Add parameter call;
8865 use decl_maybe_in_construction_p.
8866 * gimple-fold.c (fold_gimple_assign): Update use of
8867 possible_polymorphic_call_targets.
8868 (gimple_fold_call): Likewise.
8869 * ipa-prop.c: Inlcude calls.h
8870 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
8871 (param_type_may_change_p): New predicate.
8872 (detect_type_change_from_memory_writes): Break out from ...
8873 (detect_type_change): ... this one; use param_type_may_change_p.
8874 (detect_type_change_ssa): Use param_type_may_change_p.
8875 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
8876
8877 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
8878
8879 PR target/49423
8880 * config/arm/arm-protos.h (arm_legitimate_address_p,
8881 arm_is_constant_pool_ref): Add prototypes.
8882 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
8883 (arm_is_constant_pool_ref) New function.
8884 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
8885 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
8886 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
8887 operand. Remove pool_range and neg_pool_range attributes.
8888 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
8889 pool_range and neg_pool_range attributes.
8890 * config/arm/constraints.md (Uh): New constraint.
8891 (Uq): Don't allow constant pool references.
8892
8893 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
8894
8895 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
8896 (move_lo_quad_internal_be_<mode>): Likewise.
8897 (move_lo_quad_<mode>): Convert to define_expand.
8898 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
8899 (aarch64_simd_move_hi_quad_be_<mode>): New.
8900 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
8901 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
8902 (aarch64_combinez_be<mode>): New.
8903 (aarch64_combine<mode>): Convert to define_expand.
8904 (aarch64_combine_internal<mode>): New.
8905 (aarch64_simd_combine<mode>): Remove bogus RTL description.
8906
8907 2014-07-04 Tom de Vries <tom@codesourcery.com>
8908
8909 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
8910 combination of earlyclobber and read/write modifiers.
8911
8912 2014-07-04 Tom de Vries <tom@codesourcery.com>
8913
8914 * config/aarch64/aarch64-simd.md
8915 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
8916
8917 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
8918
8919 PR target/61714
8920 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
8921
8922 2014-07-04 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR middle-end/61654
8925 * cgraphunit.c (expand_thunk): Call free_dominance_info.
8926
8927 PR tree-optimization/61684
8928 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
8929 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
8930
8931 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8932 Kito Cheng <kito@0xlab.org>
8933 Monk Chiang <sh.chiang04@gmail.com>
8934
8935 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
8936 (nds32_symbol_load_store_p): Move to ...
8937 (nds32_fp_as_gp_check_available): Move to ...
8938 * config/nds32/nds32-fp-as-gp.c: ... here.
8939 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
8940 extern declaration.
8941
8942 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8943 Kito Cheng <kito@0xlab.org>
8944 Monk Chiang <sh.chiang04@gmail.com>
8945
8946 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
8947 (nds32_expand_store_multiple): Move to ...
8948 (nds32_expand_movmemqi): Move to ...
8949 * config/nds32/nds32-memory-manipulation.c: ... here.
8950
8951 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8952 Kito Cheng <kito@0xlab.org>
8953 Monk Chiang <sh.chiang04@gmail.com>
8954
8955 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
8956 (nds32_output_casesi_pc_relative): Move to ...
8957 (nds32_output_casesi): Move to ...
8958 (nds32_mem_format): Move to ...
8959 (nds32_output_16bit_store): Move to ...
8960 (nds32_output_16bit_load): Move to ...
8961 (nds32_output_32bit_store): Move to ...
8962 (nds32_output_32bit_load): Move to ...
8963 (nds32_output_32bit_load_s): Move to ...
8964 (nds32_output_stack_push): Move to ...
8965 (nds32_output_stack_pop): Move to ...
8966 * config/nds32/nds32-md-auxiliary.c: ... here.
8967
8968 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8969 Ling-Hua Tseng <uranus@tinlans.org>
8970
8971 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
8972 the purpose of this file.
8973
8974 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8975 Kito Cheng <kito@0xlab.org>
8976 Monk Chiang <sh.chiang04@gmail.com>
8977
8978 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
8979 (nds32_address_cost): Move implementation to ...
8980 * config/nds32/nds32-cost.c: ... here.
8981 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
8982 (nds32_address_cost_impl): Declare.
8983
8984 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8985 Kito Cheng <kito@0xlab.org>
8986 Monk Chiang <sh.chiang04@gmail.com>
8987
8988 * config/nds32/nds32.c
8989 (nds32_consecutive_registers_load_store_p): Move to ...
8990 (nds32_valid_multiple_load_store): Move to ...
8991 (nds32_valid_stack_push_pop): Move to ...
8992 (nds32_can_use_bclr_p): Move to ...
8993 (nds32_can_use_bset_p): Move to ...
8994 (nds32_can_use_btgl_p): Move to ...
8995 (nds32_can_use_bitci_p): Move to ...
8996 * config/nds32/nds32-predicates.c: ... here.
8997
8998 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8999 Kito Cheng <kito@0xlab.org>
9000 Monk Chiang <sh.chiang04@gmail.com>
9001
9002 * config/nds32/nds32.c
9003 (nds32_expand_builtin_null_ftype_reg): Move to ...
9004 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9005 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9006 (nds32_init_builtins): Move implementation to ...
9007 (nds32_expand_builtin): Move implementation to ...
9008 * config/nds32/nds32-intrinsic.c: ... here.
9009 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9010 (nds32_expand_builtin_impl): Declare.
9011
9012 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9013 Kito Cheng <kito@0xlab.org>
9014 Monk Chiang <sh.chiang04@gmail.com>
9015
9016 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9017 (nds32_emit_section_tail_template): Move to ...
9018 (nds32_emit_isr_jmptbl_section): Move to ...
9019 (nds32_emit_isr_vector_section): Move to ...
9020 (nds32_emit_isr_reset_conten): Move to ...
9021 (nds32_check_isr_attrs_conflict): Move to ...
9022 (nds32_construct_isr_vectors_information): Move to ...
9023 (nds32_asm_file_start): Move implementation to ...
9024 (nds32_asm_file_end): Move implementation to ...
9025 * config/nds32/nds32-isr.c: ... here.
9026 * config/nds32/nds32-protos.h
9027 (nds32_check_isr_attrs_conflict): Declare.
9028 (nds32_construct_isr_vectors_information): Declare.
9029 (nds32_asm_file_start_for_isr): Declare.
9030 (nds32_asm_file_end_for_isr): Declare.
9031
9032 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9033 Kito Cheng <kito@0xlab.org>
9034 Monk Chiang <sh.chiang04@gmail.com>
9035
9036 * config.gcc (nds32*): Add new modules to extra_objs.
9037 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9038 (nds32be-*-*): Likewise.
9039 * config/nds32/nds32-cost.c: New file.
9040 * config/nds32/nds32-fp-as-gp.c: New file.
9041 * config/nds32/nds32-intrinsic.c: New file.
9042 * config/nds32/nds32-isr.c: New file.
9043 * config/nds32/nds32-md-auxiliary.c: New file.
9044 * config/nds32/nds32-memory-manipulation.c: New file.
9045 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9046 * config/nds32/nds32-predicates.c: New file.
9047 * config/nds32/t-nds32: New file.
9048
9049 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9050
9051 PR tree-optimization/61682
9052 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9053 using cases and when one of the operands is equal to 1.
9054
9055 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9056
9057 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9058 ashr<mode>3): Correct mode of operands[2].
9059 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9060 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9061 Correct mode of operands[2]. Fix split condition.
9062
9063 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9064
9065 * arm.md (arch): Add armv6_or_vfpv3.
9066 (arch_enabled): Add test for the above.
9067 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9068 on VFP9.
9069 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9070
9071 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9072
9073 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9074 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9075 HWI 1 and negate the unsigned value.
9076 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9077 use AND instead of shift.
9078 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9079
9080 2014-07-03 Marek Polacek <polacek@redhat.com>
9081
9082 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9083 (-fsanitize=float-divide-by-zero): Move to the table with
9084 -fsanitize=undefined suboptions.
9085 (-fsanitize=float-cast-overflow): Likewise.
9086
9087 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9088
9089 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9090 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9091 endianness.
9092
9093 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9094
9095 * loop-invariant.c (struct invariant): Add a new member: eqno;
9096 (find_identical_invariants): Update eqno;
9097 (create_new_invariant): Init eqno;
9098 (get_inv_cost): Compute comp_cost with eqno;
9099
9100 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9101
9102 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9103 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9104 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9105 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9106 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9107
9108 2014-07-02 Christian Bruel <christian.bruel@st.com>
9109
9110 PR target/29349
9111 PR target/53513
9112 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9113 (make_preds_opaque): Delete.
9114 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9115 (commit_mode_sets): New function.
9116 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9117 Process all modes at once.
9118 * basic-block.h (pre_edge_lcm_avs): Declare.
9119 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9120 Call clear_aux_for_edges. Fix comments.
9121 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9122 (pre_edge_rev_lcm): Idem.
9123 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9124 parameter.
9125 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9126 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9127 Idem.
9128 * config/i386/i386.c (x96_emit_mode_set): Idem.
9129 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9130 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9131 (fpscr_toggle) Disallow from delay slot.
9132 * target.def (emit_mode_set): Add prev_mode parameter.
9133 * doc/tm.texi: Regenerate.
9134
9135 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9136
9137 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9138 variable i.
9139
9140 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9141
9142 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9143 vtable_pointer_value_to_vtable): Constify.
9144 (contains_polymorphic_type_p): Declare.
9145 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9146 vtable_pointer_value_to_vtable): Constify.
9147 (contains_polymorphic_type_p): New predicate.
9148 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9149 polymorphic types.
9150 (ipa_set_ancestor_jf): Likewise.
9151 (detect_type_change): Return false in easy cases.
9152 (compute_complex_assign_jump_func): Require type to contain
9153 polymorphic type.
9154 (compute_known_type_jump_func): Likewise.
9155
9156 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9157
9158 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9159 Remove.
9160 (type_in_anonymous_namespace_p): Constify argument.
9161 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9162 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9163 (main_odr_variant): New function.
9164 (hash_type_name): Make static; update assert; do not ICE on
9165 non-records.
9166 (types_same_for_odr): Bring here from tree.c; simplify and remove
9167 old structural comparing code that doesn't work for templates.
9168 (odr_hasher::equal): Update assert.
9169 (add_type_duplicate): Return true when bases should be computed;
9170 replace incomplete loader by complete; do not output duplicated
9171 warnings; do not ICE on non-records; set odr_violated flag.
9172 (get_odr_type): Be ready to replace incomplete type by complete
9173 one; work on ODR variants instead of main variants; reorder item
9174 in array so bases have still smaller indexes.
9175 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9176 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9177
9178 2014-07-01 Cary Coutant <ccoutant@google.com>
9179
9180 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9181 lookup.
9182 (resolve_addr_in_expr): When replacing the rtx in a location list
9183 entry, get a new address table entry.
9184 (dwarf2out_finish): Call index_location_lists even if there are no
9185 addr_index_table entries yet.
9186
9187 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9188
9189 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9190 change for not being obvious.
9191
9192 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9193
9194 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9195 unused argument.
9196
9197 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9198
9199 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9200 (vcagt_f64): Likewise.
9201 (vcale_f64): Likewise.
9202 (vcaled_f64): Likewise.
9203 (vcales_f32): Likewise.
9204 (vcalt_f64): Likewise.
9205 (vcaltd_f64): Likewise.
9206 (vcalts_f32): Likewise.
9207
9208 2014-07-01 Marek Polacek <polacek@redhat.com>
9209
9210 * doc/invoke.texi: Document -Wint-conversion.
9211
9212 2014-07-01 Marek Polacek <polacek@redhat.com>
9213
9214 PR c/58286
9215 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9216
9217 2014-07-01 Martin Liska <mliska@suse.cz>
9218
9219 IPA REF alias refactoring
9220 * cgraph.h (iterate_direct_aliases): New function.
9221 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9222 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9223 FOR_EACH_ALIAS added.
9224 (cgraph_for_node_and_aliases): Likewise.
9225 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9226 * ipa-inline.c (reset_edge_caches): Likewise.
9227 (update_caller_keys): Likewise.
9228 * trans-mem.c (ipa_tm_execute): Likewise.
9229 *varpool.c (varpool_analyze_node): Likewise.
9230 (varpool_for_node_and_aliases): Likewise.
9231 * ipa-ref.h (first_alias): New function.
9232 (last_alias): Likewise.
9233 (has_aliases_p): Likewise.
9234 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9235 is sensitive to IPA_REF_ALIASes.
9236 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9237 are put at the beginning of the list.
9238 (symtab_node::iterate_direct_aliases): New function.
9239
9240 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9241
9242 Revert:
9243 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9244 type is complete.
9245 (write_ts_type_common_tree_pointers): Do not stream fields not set
9246 for incomplete types; do not stream duplicated fields for variants;
9247 sanity check that variant and type match.
9248 (write_ts_type_non_common_tree_pointers): Likewise.
9249 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9250 TYPE_SIZE whether type is complete.
9251 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9252 write_ts_type_common_tree_pointers
9253 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9254
9255 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9256
9257 * var-tracking.c (add_stores): Return instead of asserting if old
9258 and new values for conditional store are the same.
9259
9260 2014-06-30 Richard Henderson <rth@redhat.com>
9261
9262 PR rtl-opt/61608
9263 PR target/39284
9264 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9265 the cfg if there were any changes.
9266 * passes.def: Revert move of peephole2 after reorder_blocks;
9267 move duplicate_computed_gotos before peephole2.
9268
9269 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9270
9271 * except.c (emit_note_eh_region_end): New helper function.
9272 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9273 emit EH_REGION_END note.
9274 * jump.c (cleanup_barriers): Do not split a call and its
9275 corresponding CALL_ARG_LOCATION note.
9276
9277 2014-06-30 Jeff Law <law@redhat.com>
9278
9279 PR tree-optimization/61607
9280 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9281 deeper into the SSA_NAME_VALUE chain.
9282
9283 2014-06-30 Marek Polacek <polacek@redhat.com>
9284
9285 * convert.c (convert_to_integer): Don't instrument conversions if the
9286 function has no_sanitize_undefined attribute.
9287 * ubsan.c: Don't run the ubsan pass if the function has
9288 no_sanitize_undefined attribute.
9289
9290 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9291
9292 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9293 -fsanitize=undefined suboptions.
9294
9295 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9296
9297 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9298 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9299 against bigendian and adjust indices.
9300
9301 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9302
9303 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9304
9305 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9306
9307 PR target/61633
9308 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9309 Add alternative; make early clobber. Adjust both split patterns
9310 to use operand 0 as the working register.
9311
9312 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9313
9314 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9315 as ira_object_id_map might be NULL, or 1.
9316
9317 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9318
9319 * loop-invariant.c (get_inv_cost): Handle register class.
9320 (gain_for_invariant): Check the register pressure of the inv
9321 and its overlapped register class, other than all.
9322
9323 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9324
9325 * doc/invoke.texi (Optimize Options): Fix descriptions of
9326 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9327
9328 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9329
9330 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9331 documentation.
9332
9333 2014-06-29 Tobias Grosser <tobias@grosser.es>
9334
9335 PR bootstrap/61650
9336 * graphite-isl-ast-to-gimple.c: Add missing guards.
9337
9338 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9339
9340 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9341 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9342 * flag-types.h: Add new enum fgraphite_generator.
9343 * graphite-isl-ast-to-gimple.c: New.
9344 * graphite-isl-ast-to-gimple.h: New.
9345 * graphite.c (graphite_transform_loops): Add choice of Graphite
9346 code generator, which depends on flag_graphite_code_gen.
9347
9348 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9349
9350 * graphite-dependences.c (subtract_commutative_associative_deps):
9351 Add NULL checking of the following variables: must_raw_no_source,
9352 may_raw_no_source, must_war_no_source, may_war_no_source,
9353 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9354 must_war, may_war, must_waw, may_waw.
9355
9356 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9357
9358 * graphite-clast-to-gimple.c: gloog is renamed to
9359 graphite_regenerate_ast_cloog. gloog_error is renamed to
9360 graphite_regenerate_error.
9361 * graphite-clast-to-gimple.h: The definition of the struct
9362 bb_pbb_def is moved to graphite-htab.h.
9363 Add inclusion of the hash-table.h.
9364 * graphite-htab.h: The declaration of the function gloog is moved
9365 to graphite-clast-to-gimple.h and renamed to
9366 graphite_regenerate_ast_cloog.
9367 * graphite.c (graphite_transform_loops): gloog is renamed
9368 to graphite_regenerate_ast_cloog.
9369
9370 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9371
9372 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9373 type is complete.
9374 (write_ts_type_common_tree_pointers): Do not stream fields not set
9375 for incomplete types; do not stream duplicated fields for variants;
9376 sanity check that variant and type match.
9377 (write_ts_type_non_common_tree_pointers): Likewise.
9378 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9379 TYPE_SIZE whether type is complete.
9380 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9381 write_ts_type_common_tree_pointers
9382 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9383
9384 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9385
9386 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9387
9388 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9389
9390 * tree-inline.c (remap_type_1): Do not duplicate fields
9391 that are shared in between type and its main variant.
9392
9393 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9394
9395 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9396 of the type.
9397 (ipa_set_ancestor_jf) Likewise.
9398 (check_stmt_for_type_change): Check that we work on main variant.
9399 (detect_type_change): Look into main variant.
9400 (compute_known_type_jump_func): Check that main variant has BINFO.
9401
9402 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9403
9404 * ipa-devirt.c (set_type_binfo): New function.
9405 (add_type_duplicate): Use it.
9406 (get_odr_type): Sanity check that binfos points to main variants.
9407 (get_class_context): Be sure the context's outer_type is main variant.
9408 (contains_type_p): Walk main variant.
9409 (get_polymorphic_call_info_for_decl): Set outer_type to be
9410 main variant.
9411 (get_polymorphic_call_info): Likewise.
9412 (possible_polymorphic_call_targets): Sanity check that we operate
9413 on main variant.
9414
9415 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9416
9417 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9418
9419 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9420
9421 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9422 accidental change due to wide-int branch merge.
9423
9424 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9425
9426 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9427 compressed debug support.
9428 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9429 * configure: Regenerate.
9430 * config.in: Regenerate.
9431 * common.opt (compressed_debug_sections): New enum.
9432 (gz, gz=): New options.
9433 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9434 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9435 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9436 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9437 LINK_COMPRESS_DEBUG_SPEC.
9438 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9439 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9440 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9441 (Debugging Options): Document -gz[=type].
9442
9443 2014-06-27 Martin Jambor <mjambor@suse.cz>
9444
9445 PR ipa/61160
9446 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9447 args_to_skip, use those from node instead. Copy args_to_skip and
9448 combined_args_to_skip from node to the new thunk.
9449 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9450 (cgraph_create_virtual_clone): Moved computation of
9451 combined_args_to_skip...
9452 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9453
9454 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9455
9456 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9457 redundant diagnostic machinary.
9458
9459 2014-06-27 Richard Biener <rguenther@suse.de>
9460
9461 * tree-ssa-math-opts.c (bswap_replace): Fix
9462 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9463
9464 2014-06-27 Martin Liska <mliska@suse.cz>
9465
9466 * gimple.h (gimple_location_safe): New function introduced.
9467 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9468 of gimple_location_safe replaces gimple_location.
9469 (gimple_fold_call): Likewise.
9470 * ipa-devirt.c (ipa_devirt): Likewise.
9471 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9472 * ipa.c (walk_polymorphic_call_targets): Likewise.
9473 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9474
9475 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9476
9477 PR tree-optimization/57233
9478 PR tree-optimization/61299
9479 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9480 functions.
9481 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9482 would be lowered to scalar shifts, check if corresponding
9483 shifts and vector BIT_IOR_EXPR are supported and don't lower
9484 or lower just to narrower vector type in that case.
9485 * expmed.c (expand_shift_1): Fix up handling of vector
9486 shifts and rotates.
9487
9488 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9489
9490 PR target/61586
9491 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9492
9493 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9494
9495 * doc/invoke.texi (-fsemantic-interposition): Document.
9496 * common.opt (fsemantic-interposition): New flag.
9497 * varasm.c (decl_replaceable_p): Use it.
9498
9499 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9500
9501 PR target/61542
9502 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9503 extraction other than index 3.
9504
9505 2014-06-26 Teresa Johnson <tejohnson@google.com>
9506
9507 * doc/invoke.texi: Fix typo.
9508 * dumpfile.c: Add support for documented -fdump-* options
9509 optimized/missed/note/optall.
9510
9511 2014-06-26 Martin Jambor <mjambor@suse.cz>
9512
9513 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9514 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9515 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9516 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9517 * opts.c (default_options_optimization): Set
9518 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9519 * doc/invoke.texi (allow-load-data-races)
9520 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9521 (allow-store-data-races): Document the new default.
9522
9523 2014-06-26 Martin Jambor <mjambor@suse.cz>
9524
9525 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9526 renamed to ipa_impossible_devirt_target. Fix typo.
9527 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9528 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9529 ipa_impossible_devirt_target.
9530
9531 2014-06-26 Richard Biener <rguenther@suse.de>
9532
9533 PR tree-optimization/61607
9534 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9535 explaining why we restrict copies on loop depth.
9536 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9537 on loop depth.
9538 (record_equivalences_from_phis): Instead add it here.
9539
9540 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9541
9542 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9543 (LTO_WRAPPER_OBJS): New variable.
9544 (lto-wrapper$(exeext)): Use it.
9545 * collect2.c: Include "collect-utils.h".
9546 (verbose, debug): Remove variables.
9547 (at_file_supplied): No longer static.
9548 (tool_name): New variable.
9549 (do_wait, fork_execute, maybe_unlink): Don't declare.
9550 (tool_cleanup): No longer static.
9551 (notice): Remove function.
9552 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9553 fork_execute calls.
9554 (collect_wait, do_wait, collect_execute): Remove functions.
9555 (maybe_unlink): No longer static.
9556 * collect2.h (verbose, debug): Don't declare.
9557 (at_file_supplied): Declare.
9558 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9559 changed.
9560 (collect_execute): Replace with implementation from collect2, plus a
9561 new arg use_atfile. All callers changed.
9562 (collect_wait): Replace with implementation from collect2.
9563 (maybe_unlink_file): Remove function.
9564 (fork_execute): Replace with implementation from collect2, plus a
9565 new arg use_atfile. All callers changed.
9566 (do_wait): Add call to utils_cleanup to the error path.
9567 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9568 (tool_cleanup): Adjust declarations.
9569 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9570 * tlink.c: Include "collect-utils.h".
9571 (tlink_execute): New arg use_atfile. All callers changed.
9572 (tlink_init, tlink_execute): Remove declarations.
9573
9574 * collect-utils.c (save_temps): New variable.
9575 (do_wait): Use it instead of debug. Use fatal_error.
9576 * collect-utils.h (save_temps): Declare.
9577 * collect2.c (verbose): Rename from vflag. All uses changed.
9578 (tool_cleanup): New function, copied from collect_atexit.
9579 (collect_atexit, handler): Just call it.
9580 * collect2.h (verbose): Declaration renamed from vflag.
9581 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9582 debug.
9583
9584 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9585 (lto-wrapper$(exeext)): Link with collect-utils.o.
9586 * collect-utils.c: New file.
9587 * collect-utils.h: New file.
9588 * lto-wrapper.c: Include "collect-utils.h".
9589 (args_name): Delete variable.
9590 (tool_name): New variable.
9591 (tool_cleanup): New function.
9592 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9593 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9594 (fork_execute): Remove functions.
9595
9596 2014-06-26 Nick Clifton <nickc@redhat.com>
9597
9598 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
9599
9600 * doc/extend.texi (Function Attributes): Fix typo in description
9601 of RX vector attribute.
9602
9603 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9604
9605 * config.gcc (supported_defaults): Error when passing either
9606 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
9607
9608 2014-06-26 Richard Biener <rguenther@suse.de>
9609
9610 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9611 propagating volatile pointers.
9612
9613 2014-06-26 Richard Biener <rguenther@suse.de>
9614
9615 PR tree-optimization/61607
9616 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
9617 loop if we redirected its latch edge.
9618 (thread_block_1): Do not cancel loops prematurely.
9619
9620 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
9621
9622 * toplev.c (backend_init_target): Move init_emit_regs and
9623 init_regs to...
9624 (backend_init) ... here; skip ira_init_once and backend_init_target.
9625 (target_reinit) ... and here; clear
9626 this_target_rtl->lang_dependent_initialized.
9627 (lang_dependent_init_target): Clear
9628 this_target_rtl->lang_dependent_initialized;
9629 break out rtl initialization to ...
9630 (initialize_rtl): ... here; call also backend_init_target
9631 and ira_init_once.
9632 * toplev.h (initialize_rtl): New function.
9633 * function.c: Include toplev.h
9634 (init_function_start): Call initialize_rtl.
9635 * rtl.h (target_rtl): Add target_specific_initialized,
9636 lang_dependent_initialized.
9637
9638 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
9639 Jakub Jelinek <jakub@redhat.com>
9640
9641 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
9642
9643 2014-06-25 Tom de Vries <tom@codesourcery.com>
9644
9645 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
9646
9647 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
9648
9649 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
9650 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
9651 Issue a strict overflow warning if appropriate.
9652
9653 2014-06-25 Martin Liska <mliska@suse.cz>
9654
9655 IPA REF refactoring
9656 * Makefile.in: Removed header file (ipa-ref-inline.h).
9657 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
9658 called.
9659 (cgraph_speculative_call_info): Likewise.
9660 (cgraph_for_node_thunks_and_aliases): Likewise.
9661 (cgraph_for_node_and_aliases): Likewise.
9662 (verify_cgraph_node): Likewise.
9663 * cgraph.h: Batch of IPA REF functions become member functions of
9664 symtab_node: add_reference, maybe_add_reference, clone_references,
9665 clone_referring, clone_reference, find_reference,
9666 remove_stmt_references, remove_all_references,
9667 remove_all_referring, dump_references, dump_referring,
9668 has_alias_p, iterate_reference, iterate_referring.
9669 * cgraphbuild.c (record_reference): New IPA REF function used.
9670 (record_type_list): Likewise.
9671 (record_eh_tables): Likewise.
9672 (mark_address): Likewise.
9673 (mark_load): Likewise.
9674 (mark_store): Likewise.
9675 (pass_build_cgraph_edges): Likewise.
9676 (rebuild_cgraph_edge): Likewise.
9677 (cgraph_rebuild_references): Likewise.
9678 (pass_remove_cgraph_callee_edges): Likewise.
9679 * cgraphclones.c (cgraph_clone_node): Likewise.
9680 (cgraph_create_virtual_clone): Likewise.
9681 (cgraph_materialize_clone): Likewise.
9682 (cgraph_materialize_all_clones): Likewise.
9683 * cgraphunit.c (cgraph_reset_node): Likewise.
9684 (cgraph_reset_node): Likewise.
9685 (analyze_function): Likewise.
9686 (assemble_thunks_and_aliases): Likewise.
9687 (expand_function): Likewise.
9688 * ipa-comdats.c (propagate_comdat_group): Likewise.
9689 (enqueue_references): Likewise.
9690 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
9691 (create_specialized_node): Likewise.
9692 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
9693 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
9694 * ipa-inline.c (reset_edge_caches): Likewise.
9695 (update_caller_keys): Likewise.
9696 (execute): Likewise.
9697 * ipa-prop.c (remove_described_reference): Likewise.
9698 (propagate_controlled_uses): Likewise.
9699 (ipa_edge_duplication_hook): Likewise.
9700 (ipa_modify_call_arguments): Likewise.
9701 * ipa-pure-const.c (propagate_pure_const): Likewise.
9702 * ipa-ref-inline.h: Header file removed, functions moved
9703 to symtab_node class.
9704 * ipa-ref.c (remove_reference): New class member function.
9705 (cannot_lead_to_return): New class member function.
9706 (referring_ref_list): Likewise.
9707 (referred_ref_list): Likewise.
9708 Rest of functions moved to symtab_node class.
9709 * ipa-ref.h: New member functions remove_reference,
9710 cannot_lead_to_return, referring_ref_list, referred_ref_list added
9711 to ipa_ref class.
9712 ipa_ref_list class has new member functions: first_reference,
9713 first_referring, clear, nreferences.
9714 * ipa-reference.c (analyze_function): New IPA REF function used.
9715 (write_node_summary_p): Likewise.
9716 (ipa_reference_write_optimization_summary): Likewise.
9717 * ipa-split.c (split_function): Likewise.
9718 * ipa-utils.c (ipa_reverse_postorder): Likewise.
9719 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
9720 (function_and_variable_visibility): Likewise.
9721 * ipa.c (has_addr_references_p): Likewise.
9722 (process_references): Argument type changed.
9723 (symtab_remove_unreachable_nodes): New IPA REF function used.
9724 (process_references): Likewise.
9725 (set_writeonly_bit): Likewise.
9726 * lto-cgraph.c: Implementation of new symtab_node member functions
9727 that uses new IPA REF functions.
9728 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
9729 function used.
9730 * lto-streamer-out.c (output_symbol_p): Likewise.
9731 * lto-streamer.h (referenced_from_this_partition_p): Argument type
9732 changed.
9733 * symtab.c: Implementation of new IPA REF API.
9734 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
9735 (ipa_tm_create_version): Likewise.
9736 (ipa_tm_execute): Likewise.
9737 * tree-emutls.c (gen_emutls_addr): Likewise.
9738 * tree-inline.c (copy_bb): Likewise.
9739 (delete_unreachable_blocks_update_callgraph): Likewise.
9740 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
9741 (varpool_for_node_and_aliases): Likewise.
9742
9743 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9744
9745 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
9746
9747 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9748
9749 PR bootstrap/61598
9750 * fold-const.c (fold_checksum_tree): Use a hash_table of const
9751 tree_node * instead of tree_node *.
9752 (fold): Adjust.
9753 (print_fold_checksum): Likewise.
9754 (fold_check_failed): Likewise.
9755 (debug_fold_checksum): Likewise.
9756 (fold_build1_stat_loc): Likewise.
9757 (fold_build2_stat_loc): Likewise.
9758 (fold_build3_stat_loc): Likewise.
9759 (fold_build_call_array_loc): Likewise.
9760
9761 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
9762
9763 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
9764 implementation with call to...
9765 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
9766 function.
9767 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
9768 Declare.
9769
9770 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
9771
9772 PR tree-optimization/57742
9773 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
9774 after replacing the statement.
9775
9776 2014-06-25 Nick Clifton <nickc@redhat.com>
9777
9778 * config/v850/v850.c (GHS_default_section_names): Change to const
9779 char * type.
9780 (GHS_current_section_names): Likewise.
9781 (v850_insert_attributes): Do not build strings, just assign the
9782 names directly. Change the type of 'chosen_section' to const
9783 char*.
9784 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
9785 directly to the array entry.
9786 * config/v850/v850.h (GHS_default_section_names): Change to const
9787 char * type.
9788 (GHS_current_section_names): Likewise.
9789
9790 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9791
9792 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
9793 (LANG_HOOKS_DECLS): Add it.
9794 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
9795 has correct type.
9796 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
9797 * langhooks.h (struct lang_hooks_for_decls): Add
9798 omp_clause_linear_ctor hook.
9799 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
9800 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
9801 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
9802 combined simd loop use omp_clause_linear_ctor hook.
9803
9804 2014-06-24 Cong Hou <congh@google.com>
9805
9806 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
9807 pattern recognition.
9808 (type_conversion_p): PROMOTION is true if it's a type promotion
9809 conversion, and false otherwise. Return true if the given expression
9810 is a type conversion one.
9811 * tree-vectorizer.h: Adjust the number of patterns.
9812 * tree.def: Add SAD_EXPR.
9813 * optabs.def: Add sad_optab.
9814 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
9815 * expr.c (expand_expr_real_2): Likewise.
9816 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9817 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9818 * optabs.c (optab_for_tree_code): Likewise.
9819 * tree-cfg.c (estimate_operator_cost): Likewise.
9820 * tree-ssa-operands.c (get_expr_operands): Likewise.
9821 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
9822 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
9823 * doc/generic.texi: Add document for SAD_EXPR.
9824 * doc/md.texi: Add document for ssad and usad.
9825
9826 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9827
9828 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
9829 qualification in cast.
9830
9831 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
9832
9833 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
9834 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
9835 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
9836 (tree_function_decl): ... here.
9837 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
9838 streaming of vindex to ...
9839 (write_ts_function_decl_tree_pointers): ... here.
9840 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
9841 Do not stream DECL_VINDEX.
9842 (lto_input_ts_function_decl_tree_pointers): Stream it here.
9843
9844 2014-06-24 Catherine Moore <clm@codesourcery.com>
9845 Sandra Loosemore <sandra@codesourcery.com>
9846
9847 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
9848 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
9849 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
9850
9851 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9852
9853 * doc/invoke.texi (Warning Options): Remove duplicated
9854 -Wmaybe-uninitialized.
9855
9856 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9857
9858 PR tree-optimization/57742
9859 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
9860 (handle_builtin_malloc, handle_builtin_memset): New functions.
9861 (strlen_optimize_stmt): Call them.
9862 * passes.def: Move strlen after loop+dom but before vrp.
9863
9864 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9865
9866 PR target/61570
9867 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
9868 model family 6 CPU with has_longmode never use a CPU without
9869 64-bit support.
9870
9871 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
9872
9873 PR target/61570
9874 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
9875 the last change.
9876
9877 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9878
9879 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
9880 * dominance.c (iterate_fix_dominators): Use hash_map instead of
9881 pointer_map.
9882 * hash-map.h: New file.
9883 * ipa-comdats.c: Use hash_map instead of pointer_map.
9884 * ipa.c: Likewise.
9885 * lto-section-out.c: Adjust.
9886 * lto-streamer.h: Replace pointer_map with hash_map.
9887 * symtab.c (verify_symtab): Likewise.
9888 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
9889 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
9890 * tree-streamer.h: Likewise.
9891 * tree-streamer.c: Adjust.
9892 * pointer-set.h: Remove pointer_map.
9893
9894 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9895
9896 * hash-table.h: Add a template arg to choose between storing values
9897 and storing pointers to values, and then provide partial
9898 specializations for both.
9899 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
9900 should store, not the type values should point to.
9901 * tree-into-ssa.c (var_info_hasher): Likewise.
9902 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9903 * tree-complex.c: Adjust.
9904 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
9905 table instead of int_tree_map *.
9906 * tree-parloops.c: Adjust.
9907 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
9908 type is being stored.
9909 * tree-vectorizer.c: Adjust.
9910
9911 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9912
9913 * hash-table.h: Remove a layer of indirection from hash_table so that
9914 it contains the hash table's data instead of a pointer to the data.
9915 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
9916 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
9917 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
9918 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
9919 fold-const.c, gcse.c, ggc-common.c,
9920 gimple-ssa-strength-reduction.c, gimplify.c,
9921 graphite-clast-to-gimple.c, graphite-dependences.c,
9922 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
9923 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9924 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
9925 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
9926 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
9927 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
9928 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
9929 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
9930 tree-ssa-live.c, tree-ssa-loop-im.c,
9931 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
9932 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
9933 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9934 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
9935 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
9936 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
9937 vtable-verify.c, vtable-verify.h: Adjust.
9938
9939 2014-06-24 Richard Biener <rguenther@suse.de>
9940
9941 PR tree-optimization/61572
9942 * tree-ssa-sink.c (statement_sink_location): Do not sink
9943 loads from hard registers.
9944
9945 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9946
9947 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
9948 not mentioned in clauses use private clause if the iterator is
9949 declared in #pragma omp for simd, and when adding lastprivate
9950 instead, add it to the outer #pragma omp for too. Diagnose
9951 if the variable is private in outer context. For simd collapse > 1
9952 loops, replace all iterators with temporaries.
9953 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
9954 same even in collapse > 1 loops.
9955
9956 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
9957 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
9958 non-NULL.
9959 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
9960 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
9961 non-NULL.
9962 (gimplify_adjust_omp_clauses): Likewise.
9963 * omp-low.c (lower_rec_simd_input_clauses,
9964 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
9965 safelen the same as safelen(1).
9966 * tree-nested.c (convert_nonlocal_omp_clauses,
9967 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
9968 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
9969 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
9970 Fixup handling of GIMPLE_OMP_TARGET.
9971 (convert_tramp_reference_stmt, convert_gimple_call): Handle
9972 GIMPLE_OMP_TARGET.
9973
9974 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
9975
9976 PR tree-optimization/61554
9977 * tree-ssa-propagate.c: Include "bitmap.h".
9978 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
9979 properly update constructor/destructor.
9980 (substitute_and_fold_dom_walker::before_dom_children):
9981 Remove call to gimple_purge_dead_eh_edges, add bb->index to
9982 need_eh_cleaup instead.
9983 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
9984 need_eh_cleanup.
9985
9986 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
9987
9988 * varpool.c (dump_varpool_node): Dump used_by_single_function.
9989 * tree-pass.h (make_pass_ipa_single_use): New pass.
9990 * cgraph.h (used_by_single_function): New flag.
9991 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
9992 Stream it.
9993 * passes.def (pass_ipa_single_use): Scedule.
9994 * ipa.c (BOTTOM): New macro.
9995 (meet): New function
9996 (propagate_single_user): New function.
9997 (ipa_single_use): New function.
9998 (pass_data_ipa_single_use): New pass.
9999 (pass_ipa_single_use): New pass.
10000 (pass_ipa_single_use::gate): New gate.
10001 (make_pass_ipa_single_use): New function.
10002
10003 2014-06-23 Kai Tietz <ktietz@redhat.com>
10004
10005 PR target/39284
10006 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10007 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10008
10009 2014-06-23 Richard Biener <rguenther@suse.de>
10010
10011 * tree-ssa-loop.c (gate_loop): New function.
10012 (pass_tree_loop::gate): Call it.
10013 (pass_data_tree_no_loop, pass_tree_no_loop,
10014 make_pass_tree_no_loop): New.
10015 * tree-vectorizer.c: Include tree-scalar-evolution.c
10016 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10017 required.
10018 (pass_slp_vectorize::clone): New method.
10019 * timevar.def (TV_TREE_NOLOOP): New.
10020 * tree-pass.h (make_pass_tree_no_loop): Declare.
10021 * passes.def (pass_tree_no_loop): New pass group with
10022 SLP vectorizer.
10023
10024 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10025
10026 PR target/61570
10027 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10028 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10029
10030 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10031
10032 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10033 "yes" where needed.
10034
10035 2014-06-23 Alan Modra <amodra@gmail.com>
10036
10037 PR bootstrap/61583
10038 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10039 to zero on debug statements.
10040
10041 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10042
10043 PR target/60825
10044 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10045 Ignore third operand if present by marking qualifier_internal.
10046
10047 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10048
10049 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10050 vector extension.
10051 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10052 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10053 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10054 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10055 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10056 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10057 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10058 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10059 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10060 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10061 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10062 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10063 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10064 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10065 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10066 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10067 logic in GCC vector extensions
10068
10069 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10070 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10071 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10072 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10073 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10074 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10075 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10076 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10077 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10078 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10079
10080 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10081
10082 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10083 extensions.
10084
10085 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10086 (vget_low_s64): Use __GET_LOW macro.
10087 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10088 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10089 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10090 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10091 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10092
10093 (vcombine_s64): Use GCC vector extensions; remove cast.
10094 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10095 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10096 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10097 Fix type signature; remove cast.
10098
10099 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10100
10101 PR target/60825
10102 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10103 V1DFmode.
10104 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10105 add V1DFmode
10106 (BUILTIN_VD1): New.
10107 (BUILTIN_VD_RE): Remove.
10108 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10109 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10110 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10111 variant but not df.
10112 (vreinterpretv1df*, vreinterpret*v1df): New.
10113 (vreinterpretdf*, vreinterpret*df): Remove.
10114 * config/aarch64/aarch64-simd.md (aarch64_create,
10115 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10116 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10117 (VD1): New.
10118 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10119 (vcreate_f64): Remove cast, use v1df builtin.
10120 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10121 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10122 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10123 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10124 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10125 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10126 add range check using __builtin_aarch64_im_lane_boundsi.
10127 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10128 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10129 type signature, use gcc vector extensions.
10130 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10131 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10132 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10133 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10134 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10135 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10136 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10137 vreinterpret_u64_f64): Use v1df builtin not df.
10138
10139 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10140
10141 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10142 vector registers.
10143
10144 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10145
10146 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10147 priority directly.
10148
10149 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10150
10151 * loop-invariant.c (pre_check_invariant_p): New function.
10152 (find_invariant_insn): Call pre_check_invariant_p.
10153
10154 2014-06-22 Richard Henderson <rth@redhat.com>
10155
10156 PR target/61565
10157 * compare-elim.c (struct comparison): Add eh_note.
10158 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10159 a redundant comparison in a different EH region. Purge EH edges if
10160 necessary.
10161
10162 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10163
10164 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10165 (var_shift): Use it.
10166 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10167 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10168 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10169 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10170 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10171 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10172 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10173 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10174 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10175 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10176 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10177 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10178 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10179 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10180 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10181 *rotldi3_internal15be): Use the new attribute. Merge register and
10182 integer alternatives.
10183
10184 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10185
10186 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10187 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10188 split, *ashrdi3_internal3 and split): Delete, merge into...
10189 (ashr<mode>3): New expander.
10190 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10191 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10192
10193 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10194
10195 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10196 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10197 *rotldi3_internal3 and split): Delete, merge into...
10198 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10199 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10200 Use "rotlw" extended mnemonic.
10201
10202 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10203
10204 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10205 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10206 and split, *ashldi3_internal3 and split): Delete, merge into...
10207 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10208 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10209
10210 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10211
10212 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10213 (lshrsi3, two anonymous define_insns and define_splits,
10214 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10215 *lshrdi3_internal3 and split): Delete, merge into...
10216 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10217 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10218
10219 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10220
10221 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10222 Remove "O" alternative.
10223
10224 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10225
10226 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10227 (mips_move_from_gpr_cost): Likewise.
10228 (mips_register_move_cost): Update accordingly.
10229 (mips_secondary_reload_class): Remove name of in_p.
10230
10231 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10232
10233 PR target/61503
10234 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10235 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10236
10237 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10238
10239 * config/nios2/nios2.c: Include "builtins.h".
10240
10241 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10242
10243 * cgraph.h (tls_model_names): New variable.
10244 * print-tree.c (print_node): Simplify.
10245 * varpool.c (tls_model_names): New variable.
10246 (dump_varpool_node): Output tls model.
10247
10248 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10249
10250 * ipa-visibility.c (function_and_variable_visibility): Disable
10251 temporarily local aliases for some targets.
10252
10253 2014-06-20 Marek Polacek <polacek@redhat.com>
10254
10255 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10256 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10257 into SANITIZE_UNDEFINED.
10258 * doc/invoke.texi: Describe -fsanitize=bounds.
10259 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10260 functions created in the FEs.
10261 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10262 (expand_UBSAN_BOUNDS): New function.
10263 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10264 * internal-fn.h: Don't define internal functions here.
10265 * opts.c (common_handle_option): Add -fsanitize=bounds.
10266 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10267 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10268 * tree-core.h: Define internal functions here.
10269 (struct tree_base): Add ifn field.
10270 * tree-pretty-print.c: Include "internal-fn.h".
10271 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10272 * tree.c (get_callee_fndecl): Likewise.
10273 (build_call_expr_internal_loc): New function.
10274 * tree.def (CALL_EXPR): Update description.
10275 * tree.h (CALL_EXPR_IFN): Define.
10276 (build_call_expr_internal_loc): Declare.
10277 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10278 types.
10279 (ubsan_type_descriptor): Change bool parameter to enum
10280 ubsan_print_style. Adjust the code. Add handling of
10281 UBSAN_PRINT_ARRAY.
10282 (ubsan_expand_bounds_ifn): New function.
10283 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10284 (ubsan_build_overflow_builtin): Likewise.
10285 (instrument_bool_enum_load): Likewise.
10286 (ubsan_instrument_float_cast): Likewise.
10287 * ubsan.h (enum ubsan_print_style): New enum.
10288 (ubsan_expand_bounds_ifn): Declare.
10289 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10290
10291 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10292
10293 * config/rs6000/rs6000.md: Append `DONE' to preparation
10294 statements of `bswap' pattern splitters.
10295
10296 2014-06-20 Tom de Vries <tom@codesourcery.com>
10297
10298 * target.def (call_fusage_contains_non_callee_clobbers): Update
10299 definition.
10300 * doc/tm.texi: Regenerate.
10301
10302 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10303 Max Ostapenko <m.ostapenko@partner.samsung.com>
10304
10305 PR sanitizer/61547
10306 * asan.c (instrument_strlen_call): Fixed instrumentation of
10307 trailing byte.
10308
10309 2014-06-20 Martin Jambor <mjambor@suse.cz>
10310
10311 PR ipa/61540
10312 * ipa-prop.c (impossible_devirt_target): New function.
10313 (try_make_edge_direct_virtual_call): Use it, also instead of
10314 asserting.
10315
10316 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10317 Max Ostapenko <m.ostapenko@partner.samsung.com>
10318
10319 PR sanitizer/61530
10320 * asan.c (build_check_stmt): Add condition.
10321
10322 2014-06-20 Martin Jambor <mjambor@suse.cz>
10323
10324 PR ipa/61211
10325 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10326 expanded clones.
10327
10328 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10329
10330 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10331 Update comments.
10332 (VCONQ): Make comment more helpful.
10333 (VCON): Delete.
10334 * config/aarch64/aarch64-simd.md
10335 (aarch64_sqdmulh_lane<mode>):
10336 Use VCOND for operands 2. Update lane checking and flipping logic.
10337 (aarch64_sqrdmulh_lane<mode>): Likewise.
10338 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10339 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10340 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10341 attribute of operand 3 to VCOND.
10342 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10343 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10344 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10345 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10346 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10347 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10348 define_insn.
10349 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10350 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10351 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10352 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10353 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10354 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10355 operand to VCOND. Update lane flipping and bounds checking logic.
10356 (aarch64_sqdmlal2_lane<mode>): Likewise.
10357 (aarch64_sqdmlsl_lane<mode>): Likewise.
10358 (aarch64_sqdmull_lane<mode>): Likewise.
10359 (aarch64_sqdmull2_lane<mode>): Likewise.
10360 (aarch64_sqdmlal_laneq<mode>):
10361 Replace VCON usage with VCONQ.
10362 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10363 (aarch64_sqdmlal2_laneq<mode>): Emit
10364 aarch64_sqdmlal2_laneq<mode>_internal insn.
10365 Replace VCON with VCONQ.
10366 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10367 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10368 (aarch64_sqdmull_laneq<mode>): Emit
10369 aarch64_sqdmull_laneq<mode>_internal insn.
10370 Replace VCON with VCONQ.
10371 (aarch64_sqdmull2_laneq<mode>): Emit
10372 aarch64_sqdmull2_laneq<mode>_internal insn.
10373 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10374 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10375 of 3rd argument to int16x4_t.
10376 (vqdmlalh_lane_s16): Likewise.
10377 (vqdmlslh_lane_s16): Likewise.
10378 (vqdmull_high_lane_s16): Likewise.
10379 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10380 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10381 (vqdmlsl_lane_s16): Likewise.
10382 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10383 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10384 (vqdmlals_lane_s32): Likewise.
10385 (vqdmlsls_lane_s32): Likewise.
10386 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10387 (vqdmulls_lane_s32): Likewise.
10388 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10389 (vqdmlsl_lane_s32): Likewise.
10390 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10391 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10392 (vqrdmulhh_lane_s16): Likewise.
10393 (vqdmlsl_high_lane_s16): Likewise.
10394 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10395 (vqdmlsl_high_lane_s32): Likewise.
10396 (vqrdmulhs_lane_s32): Likewise.
10397
10398 2014-06-20 Tom de Vries <tom@codesourcery.com>
10399
10400 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10401 get_call_reg_set_usage.
10402
10403 2014-06-20 Tom de Vries <tom@codesourcery.com>
10404
10405 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10406 it contains all call_used_regs.
10407
10408 2014-06-20 Tom de Vries <tom@codesourcery.com>
10409
10410 * final.c (collect_fn_hard_reg_usage): Add and use variable
10411 function_used_regs.
10412
10413 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10414
10415 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10416 (set_init_priority, get_init_priority, set_fini_priority,
10417 get_fini_priority): New methods.
10418 * tree.c (init_priority_for_decl): Remove.
10419 (init_ttree): Do not initialize init priority.
10420 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10421 (decl_priority_info): Remove.
10422 (decl_init_priority_insert): Rewrite.
10423 (decl_fini_priority_insert): Rewrite.
10424 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10425 tree_priority_map_marked_p): Remove.
10426 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10427 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10428 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10429 not output priorities.
10430 (pack_ts_function_decl_value_fields): Likewise.
10431 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10432 not input priorities.
10433 (unpack_ts_function_decl_value_fields): Likewise.
10434 * symtab.c (symbol_priority_map): Declare.
10435 (init_priority_hash): Declare.
10436 (symtab_unregister_node): Unregister from priority hash, too.
10437 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10438 New methods.
10439 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10440 (symbol_priority_info): New function.
10441 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10442 New methods.
10443 * tree-core.h (tree_priority_map): Remove.
10444
10445 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10446
10447 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10448 0xff to uint64_t before shifting it up.
10449
10450 2014-06-20 Julian Brown <julian@codesourcery.com>
10451 Chung-Lin Tang <cltang@codesourcery.com>
10452
10453 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10454 TARGET_THUMB1_ONLY. Add comments.
10455
10456 2014-06-19 Tom de Vries <tom@codesourcery.com>
10457
10458 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10459 return type to void.
10460 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10461
10462 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10463
10464 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10465 as "move", from depends_on.
10466
10467 2014-06-19 Terry Guo <terry.guo@arm.com>
10468
10469 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10470 stage.
10471
10472 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10473
10474 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10475 Remove cr5.
10476 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10477
10478 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10479
10480 PR target/61550
10481 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10482 addresses here if reload in progress or completed.
10483
10484 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10485
10486 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10487 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10488 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10489 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10490 (mips_register_priority): New function that implements the target
10491 hook TARGET_REGISTER_PRIORITY.
10492 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10493 (mips_lra_p): Likewise for TARGET_LRA_P.
10494 (TARGET_REGISTER_PRIORITY): Define macro.
10495 (TARGET_SPILL_CLASS): Likewise.
10496 (TARGET_LRA_P): Likewise.
10497 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10498 classes.
10499 (REG_CLASS_NAMES): Likewise.
10500 (REG_CLASS_CONTENTS): Likewise.
10501 (BASE_REG_CLASS): Use M16_SP_REGS.
10502 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10503 New set attribute to enable alternatives depending on the register
10504 allocator used.
10505 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10506 (*lea64): Disable pattern for MIPS16.
10507 * config/mips/mips.opt (mlra): New option.
10508
10509 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10510
10511 * lra-constraints.c (base_to_reg): New function.
10512 (process_address): Use new function.
10513
10514 2014-06-18 Tom de Vries <tom@codesourcery.com>
10515
10516 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10517 * config/aarch64/aarch64.c
10518 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10519 (aarch64_emit_call_insn): New function.
10520 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10521 of emit_call_insn.
10522 * config/aarch64/aarch64.md (define_expand "call_internal")
10523 (define_expand "call_value_internal", define_expand "sibcall_internal")
10524 (define_expand "sibcall_value_internal"): New.
10525 (define_expand "call", define_expand "call_value")
10526 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10527 expand variant and aarch64_emit_call_insn.
10528
10529 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10530 Tom de Vries <tom@codesourcery.com>
10531
10532 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10533 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10534 Redefine to true.
10535 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10536 clobbers to CALL_INSN_FUNCTION_USAGE.
10537 (define_expand "sibcall_internal")
10538 (define_expand "sibcall_value_internal"): New.
10539 (define_expand "call", define_expand "call_value"): Add argument to
10540 arm_emit_call_insn.
10541 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10542 (define_expand "sibcall_value"): Use sibcall_value_internal and
10543 arm_emit_call_insn.
10544
10545 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10546
10547 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10548
10549 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10550
10551 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10552 __udivmoddi4.
10553
10554 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10555
10556 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10557 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10558 annotations. Fix DWARF information.
10559
10560 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10561
10562 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10563 __udivmoddi4, and fixups for negative operands.
10564
10565 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10566
10567 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10568
10569 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10570
10571 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10572 to __udivmoddi4.
10573
10574 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10575
10576 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10577 manipulation.
10578
10579 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10580
10581 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10582 describing register usage on function entry and exit.
10583
10584 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10585
10586 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10587 (__aeabi_ldivmod): Fix whitespace.
10588
10589 2014-06-18 Andreas Schwab <schwab@suse.de>
10590
10591 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10592 Remove blank line after @item.
10593
10594 2014-06-18 Richard Henderson <rth@redhat.com>
10595
10596 PR target/61545
10597 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10598
10599 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10600
10601 * config/arm/arm.c (neon_vector_mem_operand): Allow register
10602 POST_MODIFY for neon loads and stores.
10603 (arm_print_operand): Output post-index register for neon loads and
10604 stores.
10605
10606 2014-06-18 Richard Biener <rguenther@suse.de>
10607
10608 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
10609
10610 2014-06-18 Richard Biener <rguenther@suse.de>
10611
10612 * tree-pass.h (make_pass_dce_loop): Remove.
10613 * passes.def: Replace pass_dce_loop with pass_dce.
10614 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
10615 changed free niter estimates and reset the scev cache.
10616 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
10617 make_pass_dce_loop): Remove.
10618 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
10619 (fini_copy_prop): Return whether something changed. Always
10620 let substitute_and_fold perform DCE and free niter estimates
10621 and reset the scev cache if so.
10622 (execute_copy_prop): If sth changed schedule cleanup-cfg.
10623 (pass_data_copy_prop): Do not unconditionally schedule
10624 cleanup-cfg or update-ssa.
10625
10626 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10627
10628 PR tree-optimization/61518
10629 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
10630 reduction var is used in reduction stmt or phi-function only.
10631
10632 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10633
10634 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
10635
10636 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
10637
10638 PR tree-optimization/61517
10639 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
10640 whose rhs's first tree is the source expression instead of the
10641 expression itself.
10642 (find_bswap_or_nop): Likewise.
10643 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
10644 gimple stmt whose rhs's first tree is the source. In the memory source
10645 case, move the stmt to be replaced close to one of the original load to
10646 avoid the problem of a store between the load and the stmt's original
10647 location.
10648 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
10649 signature.
10650
10651 2014-06-18 Andreas Schwab <schwab@suse.de>
10652
10653 PR rtl-optimization/54555
10654 * postreload.c (move2add_use_add2_insn): Substitute
10655 STRICT_LOW_PART only if it is cheaper.
10656
10657 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
10658
10659 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
10660 Do not use unspec as call operand. Use memory_operand instead of
10661 memory_nox32_operand and add "m" operand constraint. Disable
10662 pattern for TARGET_X32.
10663 (*sibcall_pop_memory): Ditto.
10664 (*sibcall_value_memory): Ditto.
10665 (*sibcall_value_pop_memory): Ditto.
10666 (sibcall peepholes): Merge SImode and DImode patterns using
10667 W mode iterator. Use memory_operand instead of memory_nox32_operand.
10668 Disable pattern for TARGET_X32. Check if eliminated register is
10669 really dead after call insn. Generate call RTX without unspec operand.
10670 (sibcall_value peepholes): Ditto.
10671 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
10672 instead of memory_nox32_operand. Check if eliminated register is
10673 really dead after call insn. Generate call RTX without unspec operand.
10674 (sibcall_value_pop peepholes): Ditto.
10675 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
10676
10677 2014-06-18 Terry Guo <terry.guo@arm.com>
10678
10679 PR target/61544
10680 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
10681 reach the head.
10682
10683 2014-06-18 Olivier Hainque <hainque@adacore.com>
10684
10685 * tree-core.h (tree_block): Add an "end_locus" field, allowing
10686 memorization of the end of block source location.
10687 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
10688 * gimplify.c (gimplify_bind_expr): Propagate the block start and
10689 end source location info we have on the block entry/exit code we
10690 generate.
10691
10692 2014-06-18 Richard Biener <rguenther@suse.de>
10693
10694 * common.opt (fssa-phiopt): New option.
10695 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
10696 but not with -Og.
10697 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
10698 * doc/invoke.texi (-fssa-phiopt): Document.
10699
10700 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10701
10702 * genattrtab.c (n_bypassed): New variable.
10703 (process_bypasses): Initialise n_bypassed.
10704 Count number of bypassed reservations.
10705 (make_automaton_attrs): Allocate space for bypassed reservations
10706 rather than number of bypasses.
10707
10708 2014-06-18 Richard Biener <rguenther@suse.de>
10709
10710 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
10711 we propagated anything.
10712 (substitute_and_fold_dom_walker::before_dom_children): Something
10713 changed if we propagated into PHI arguments.
10714 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
10715 we removed a stmt.
10716
10717 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
10718
10719 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
10720 vector case.
10721 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
10722 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
10723 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
10724 Introduces alternative way of loads group permutaions.
10725 (vect_transform_grouped_load): Try alternative way of permutations.
10726
10727 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10728
10729 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
10730 changed in ORT_TARGET region, don't jump to do_outer.
10731 (struct gimplify_adjust_omp_clauses_data): New type.
10732 (gimplify_adjust_omp_clauses_1): Adjust for data being
10733 a struct gimplify_adjust_omp_clauses_data pointer instead
10734 of tree *. Pass pre_p as a new argument to
10735 lang_hooks.decls.omp_finish_clause hook.
10736 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
10737 splay_tree_foreach to pass both list_p and pre_p.
10738 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
10739 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
10740 gimplify_adjust_omp_clauses callers.
10741 * langhooks.c (lhd_omp_finish_clause): New function.
10742 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
10743 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
10744 * langhooks.h (struct lang_hooks_for_decls): Add a new
10745 gimple_seq * argument to omp_finish_clause hook.
10746 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
10747 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
10748 (scan_omp_parallel, lower_omp_for): When adding
10749 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
10750 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
10751 * tree-nested.c (convert_nonlocal_omp_clauses,
10752 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
10753 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
10754
10755 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
10756
10757 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
10758 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
10759
10760 2014-06-17 Xinliang David Li <davidxl@google.com>
10761
10762 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
10763 * passes.c (pass_init_dump_file): Do not set initialize
10764 flag to false unconditionally.
10765
10766 2014-06-17 Richard Biener <rguenther@suse.de>
10767
10768 * genopinit.c (main): Use vec<>::qsort method.
10769 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
10770 Likewise.
10771 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
10772
10773 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
10774
10775 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
10776 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
10777 (mips_move_to_gpr_cost): Remove ST_REGS case.
10778 (mips_move_from_gpr_cost): Likewise.
10779 (mips_register_move_cost): Likewise.
10780 (mips_secondary_reload_class): Likewise.
10781
10782 2014-06-17 Richard Biener <rguenther@suse.de>
10783
10784 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
10785 (pass_all_optimizations): Move 3rd copy-prop pass from after
10786 fre to before ifcombine/phiopt.
10787
10788 2014-06-17 Richard Biener <rguenther@suse.de>
10789
10790 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
10791 and allow all blocks to be forwarders.
10792
10793 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
10794
10795 PR target/61483
10796 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
10797 variable 'size'; calculate 'size' right in the front; use
10798 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
10799 pcum->aapcs_stack_words.
10800
10801 2014-06-17 Nick Clifton <nickc@redhat.com>
10802
10803 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
10804 (umulhi3, mulsidi3, umulsidi3): Likewise.
10805
10806 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
10807
10808 PR middle-end/61508
10809 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
10810 check for section name.
10811
10812 2014-06-17 Richard Biener <rguenther@suse.de>
10813
10814 * tree-ssa-propagate.c: Include domwalk.h.
10815 (substitute_and_fold): Outline main worker into a domwalker ...
10816 (substitute_and_fold_dom_walker::before_dom_children): ... here.
10817 Schedule stmts we can fully propagate for removal. Remove
10818 poor-mans DCE.
10819 (substitute_and_fold): Apply a dominator walk to perform
10820 substitution. Process stmts scheduled for removal here.
10821
10822 2014-06-17 Richard Biener <rguenther@suse.de>
10823
10824 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
10825 of PHI node moving.
10826
10827 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
10828
10829 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
10830 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
10831 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10832 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
10833 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
10834 TARGET_HARD_FLOAT.
10835 (get_fpscr) : Likewise.
10836
10837 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10838
10839 PR rtl-optimization/61325
10840 * lra-constraints.c (valid_address_p): Add forward declaration.
10841 (simplify_operand_subreg): Check address validity before and after
10842 alter_reg of memory subreg.
10843
10844 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
10845
10846 * config/i386/i386.c (decide_alg): Correctly handle
10847 maximum size of stringop algorithm.
10848
10849 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10850
10851 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
10852
10853 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10854
10855 PR rtl-optimization/61522
10856 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
10857
10858 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
10859
10860 Revert:
10861 * symtab.c (symtab_node::reset_section): New method.
10862 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
10863 for localization.
10864 * cgraph.h (reset_section): Declare.
10865 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
10866 do not consider comdat locals.
10867 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
10868 for new symbol.
10869 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
10870 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
10871 reset sections of symbols dragged out of the comdats.
10872 (function_and_variable_visibility): Reset sections of
10873 localized symbols.
10874
10875 2014-06-16 Richard Biener <rguenther@suse.de>
10876
10877 PR tree-optimization/61482
10878 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
10879 [-INF(OVF), +INF(OVF)] range.
10880
10881 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10882
10883 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
10884 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
10885 handling 32-bit multiplication.
10886
10887 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
10888
10889 PR middle-end/61430
10890 * lra-lives.c (process_bb_lives): Skip creating copy during
10891 insn scan when src/dest has constrained to same regno.
10892
10893 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10894
10895 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
10896 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
10897
10898 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10899
10900 * asan.c (check_func): New function.
10901 (maybe_create_ssa_name): Likewise.
10902 (build_check_stmt_with_calls): Likewise.
10903 (use_calls_p): Likewise.
10904 (report_error_func): Change interface.
10905 (build_check_stmt): Allow non-integer lengths; add support
10906 for new parameter.
10907 (asan_instrument): Likewise.
10908 (instrument_mem_region_access): Moved code to build_check_stmt.
10909 (instrument_derefs): Likewise.
10910 (instrument_strlen_call): Likewise.
10911 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
10912 * doc/invoke.texi: Describe new parameter.
10913 * params.def: Define new parameter.
10914 * params.h: Likewise.
10915 * sanitizer.def: Describe new builtins.
10916
10917 2014-06-16 Richard Biener <rguenther@suse.de>
10918
10919 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10920 Make all defs available at the end.
10921 (eliminate): If we remove a PHI node schedule cfg-cleanup.
10922
10923 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10924
10925 PR plugins/45078
10926 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
10927
10928 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
10929
10930 PR bootstrap/61516
10931 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
10932 initialization. Replace remaining use of uid.
10933
10934 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10935
10936 * c-family/c-common.c (handle_tls_model_attribute): Use
10937 set_decl_tls_model.
10938 * c-family/c-common.c (handle_tls_model_attribute): Use
10939 set_decl_tls_model.
10940 * cgraph.h (struct varpool_node): Add tls_model.
10941 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
10942 * tree.h (DECL_TLS_MODEL): Update.
10943 (DECL_THREAD_LOCAL_P): Check that variable is static.
10944 (decl_tls_model): Declare.
10945 (set_decl_tls_model): Declare.
10946 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
10947 set symbol prorperties.
10948 (get_emutls_init_templ_addr): Cleanup.
10949 (new_emutls_decl): Update.
10950 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
10951 (lto_input_varpool_node): Likewise.
10952 * lto-streamer-out.c (hash_tree): Likewise.
10953 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10954 not stream DECL_TLS_MODEL.
10955 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
10956 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
10957
10958 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10959
10960 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
10961
10962 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10963
10964 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
10965 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
10966 lists.
10967 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
10968 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
10969 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
10970 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
10971 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
10972 (df_get_artificial_defs, df_get_artificial_uses)
10973 (df_single_def, df_single_use): Update accordingly.
10974 (df_refs_chain_dump): Take the first element in a linked list as
10975 parameter, rather than a pointer to an array of pointers.
10976 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
10977 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
10978 (df_chain_create_bb_process_use): Likewise.
10979 (df_md_bb_local_compute_process_def): Likewise.
10980 * fwprop.c (process_defs, process_uses): Likewise.
10981 (register_active_defs, update_uses): Likewise.
10982 (forward_propagate_asm): Update for new df_ref linking.
10983 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
10984 (df_null_ref_rec, df_null_mw_rec): Likewise.
10985 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
10986 explicitly.
10987 (df_scan_free_bb_info): Remove check for null artificial_defs.
10988 (df_install_ref_incremental): Adjust for new df_ref linking.
10989 Use a single-element insertion rather than a full sort.
10990 (df_ref_chain_delete_du_chain): Take the first element
10991 in a linked list as parameter, rather than a pointer to an array of
10992 pointers.
10993 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
10994 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
10995 (df_insn_info_delete): Remove check for null defs and call to
10996 df_scan_free_mws_vec.
10997 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
10998 null rather than df_null_*_rec.
10999 (df_insn_rescan_debug_internal): Likewise, and update null
11000 checks in the same way. Remove check for null defs.
11001 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11002 Move a single element rather doing a full sort.
11003 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11004 linking.
11005 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11006 Initialize df_ref and df_mw_hardreg lists to null rather than
11007 df_null_*_rec.
11008 (df_ref_compare): Take df_refs as parameter, transferring the
11009 old interface to...
11010 (df_ref_ptr_compare): ...this new function.
11011 (df_sort_and_compress_refs): Update accordingly.
11012 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11013 old interface to...
11014 (df_mw_ptr_compare): ...this new function.
11015 (df_sort_and_compress_mws): Update accordingly.
11016 (df_install_refs, df_install_mws): Return a linked list rather than
11017 an array of pointers.
11018 (df_refs_add_to_chains): Assert that old lists are empty rather
11019 than freeing them.
11020 (df_insn_refs_verify): Don't handle null defs speciailly.
11021 * web.c (union_match_dups): Update for new df_ref linking.
11022
11023 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11024
11025 * df.h (df_ref_create, df_ref_remove): Delete.
11026 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11027 (df_ref_remove): Likewise.
11028
11029 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11030
11031 * df.h (df_single_def, df_single_use): New functions.
11032 * ira.c (find_moveable_pseudos): Use them.
11033
11034 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11035
11036 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11037 * df-problems.c (df_note_bb_compute): Use it.
11038 * regstat.c (regstat_bb_compute_ri): Likewise.
11039
11040 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11041
11042 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11043 * cse.c (cse_extended_basic_block): Use them.
11044 * dce.c (mark_artificial_use): Likewise.
11045 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11046 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11047 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11048 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11049 (df_simulate_initialize_backwards): Likewise.
11050 (df_simulate_finalize_backwards): Likewise.
11051 (df_simulate_initialize_forwards): Likewise.
11052 (df_md_simulate_artificial_defs_at_top): Likewise.
11053 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11054 * regrename.c (init_rename_info): Likewise.
11055 * regstat.c (regstat_bb_compute_ri): Likewise.
11056 (regstat_bb_compute_calls_crossed): Likewise.
11057
11058 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11059
11060 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11061 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11062 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11063 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11064 * combine.c (create_log_links): Likewise.
11065 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11066 (try_eliminate_compare): Likewise.
11067 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11068 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11069 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11070 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11071 (word_dce_process_block, dce_process_block): Likewise.
11072 * ddg.c (def_has_ccmode_p): Likewise.
11073 * df-core.c (df_bb_regno_first_def_find): Likewise.
11074 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11075 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11076 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11077 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11078 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11079 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11080 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11081 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11082 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11083 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11084 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11085 * fwprop.c (local_ref_killed_between_p): Likewise.
11086 (all_uses_available_at, free_load_extend): Likewise.
11087 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11088 * hw-doloop.c (scan_loop): Likewise.
11089 * ifcvt.c (dead_or_predicable): Likewise.
11090 * init-regs.c (initialize_uninitialized_regs): Likewise.
11091 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11092 (process_bb_node_lives): Likewise.
11093 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11094 (find_moveable_pseudos): Likewise.
11095 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11096 * recog.c (peep2_find_free_register): Likewise.
11097 * ree.c (get_defs): Likewise.
11098 * regstat.c (regstat_bb_compute_ri): Likewise.
11099 (regstat_bb_compute_calls_crossed): Likewise.
11100 * sched-deps.c (find_inc, find_mem): Likewise.
11101 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11102 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11103 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11104 (prepare_shrink_wrap): Likewise.
11105 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11106 * web.c (union_defs, pass_web::execute): Likewise.
11107 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11108 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11109
11110 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11111
11112 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11113 to inheritance pseudos.
11114 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11115
11116 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11117
11118 PR target/61415
11119 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11120 (BU_MISC_2): Rename to ...
11121 (BU_LDBL128_2): ... this.
11122 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11123 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11124 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11125 RS6000_BTM_LDBL128.
11126 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11127 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11128 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11129 (unpacktf_1): Likewise.
11130 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11131 (__builtin_longdouble_dw1): Likewise.
11132 * doc/sourcebuild.texi (longdouble128): Document.
11133
11134 2014-06-13 Jeff Law <law@redhat.com>
11135
11136 PR rtl-optimization/61094
11137 PR rtl-optimization/61446
11138 * ree.c (combine_reaching_defs): Get the mode for the copy from
11139 the extension insn rather than the defining insn.
11140
11141 2014-06-13 Dehao Chen <dehao@google.com>
11142
11143 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11144
11145 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11146
11147 * doc/install.texi (--enable-linker-plugin-configure-flags)
11148 (--enable-linker-plugin-flags): Document new flags.
11149
11150 2014-06-13 Martin Jambor <mjambor@suse.cz>
11151
11152 PR ipa/61186
11153 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11154 cache_token if returning early.
11155
11156 2014-06-13 Nick Clifton <nickc@redhat.com>
11157
11158 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11159 requested alignment is active.
11160 (LABEL_ALIGN): Likewise.
11161 (LOOP_ALIGN): Likewise.
11162
11163 2014-06-13 Richard Biener <rguenther@suse.de>
11164
11165 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11166 Rewrite to propagate the VN result into all uses where
11167 possible and to remove stmts becoming dead because of that.
11168 (eliminate): Generalize stmt removal handling, remove in
11169 reverse dominator order to support proper debug stmt
11170 generation. Update stmts before removing stmts.
11171 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11172
11173 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11174
11175 PR tree-optimization/61375
11176 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11177 symbolic number cannot be represented in an uint64_t.
11178 (find_bswap_or_nop_1): Likewise.
11179
11180 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11181
11182 * symtab.c (symtab_node::reset_section): New method.
11183 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11184 for localization.
11185 * cgraph.h (reset_section): Declare.
11186 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11187 do not consider comdat locals.
11188 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11189 for new symbol.
11190 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11191 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11192 reset sections of symbols dragged out of the comdats.
11193 (function_and_variable_visibility): Reset sections of
11194 localized symbols.
11195
11196 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11197
11198 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11199 to use symtab and decl_binds_to_current_def_p
11200 * tree-vectorizer.c (increase_alignment): Increase alignment
11201 of alias target, too.
11202
11203 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11204
11205 PR middle-end/61486
11206 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11207 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11208 if outer combined construct is distribute.
11209 (gimplify_omp_for): For OMP_DISTRIBUTE set
11210 gimplify_omp_ctxp->distribute.
11211 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11212 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11213 mapping into decl map.
11214
11215 2014-06-12 Jason Merrill <jason@redhat.com>
11216
11217 * common.opt (fabi-version): Change default to 0.
11218
11219 2014-06-12 Jason Merrill <jason@redhat.com>
11220
11221 * toplev.c (process_options): Reject -fabi-version=1.
11222
11223 2014-06-12 Jeff Law <law@redhat.com>
11224
11225 PR tree-optimization/61009
11226 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11227 value when we stop processing a block due to problematic PHIs.
11228
11229 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11230
11231 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11232 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11233 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11234 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11235 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11236 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11237 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11238 are not in the spec.
11239
11240 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11241
11242 PR target/59843
11243 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11244 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11245 Support V1DFmode.
11246
11247 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11248
11249 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11250
11251 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11252
11253 PR target/61443
11254 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11255 loading from address spaces.
11256
11257 2014-06-12 Martin Liska <mliska@suse.cz>
11258
11259 PR ipa/61462
11260 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11261 statement is reachable.
11262
11263 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11264
11265 * symtab.c (section_hash): New hash.
11266 (symtab_unregister_node): Clear section before freeing.
11267 (hash_section_hash_entry): New haser.
11268 (eq_sections): New function.
11269 (symtab_node::set_section_for_node): New method.
11270 (set_section_1): Update.
11271 (symtab_node::set_section): Take string instead of tree as parameter.
11272 (symtab_resolve_alias): Update.
11273 * cgraph.h (section_hash_entry_d): New structure.
11274 (section_hash_entry): New typedef.
11275 (cgraph_node): Change comdat_group_ to x_comdat_group,
11276 change section_ to x_section and turn into section_hash_entry;
11277 update accestors; put set_section_for_node offline.
11278 * tree.c (decl_section_name): Turn into string.
11279 (set_decl_section_name): Change parameter to be string.
11280 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11281 * sdbout.c (sdbout_one_type): Update.
11282 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11283 * varasm.c (IN_NAMED_SECTION, get_named_section,
11284 resolve_unique_section, hot_function_section, get_named_text_section,
11285 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11286 make_decl_rtl, default_unique_section): Update.
11287 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11288 (c6x_elf_unique_section): Update.
11289 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11290 * config/pa/pa.c (pa_function_section): Update.
11291 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11292 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11293 * config/arc/arc.c (arc_in_small_data_p): Update.
11294 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11295 * config/mcore/mcore.c (mcore_unique_section): Update.
11296 * config/mips/mips.c (mips16_build_function_stub): Update.
11297 (mips16_build_call_stub): Update.
11298 (mips_function_rodata_section): Update.
11299 (mips_in_small_data_p): Update.
11300 * config/score/score.c (score_in_small_data_p): Update.
11301 * config/rx/rx.c (rx_in_small_data): Update.
11302 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11303 (rs6000_xcoff_asm_named_section): Update.
11304 (rs6000_xcoff_unique_section): Update.
11305 * config/frv/frv.c (frv_string_begins_with): Update.
11306 (frv_in_small_data_p): Update.
11307 * config/v850/v850.c (v850_encode_data_area): Update.
11308 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11309 (bfin_handle_l1_data_attribute): Update.
11310 (bfin_handle_l2_attribute): Update.
11311 * config/mep/mep.c (mep_unique_section): Update.
11312 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11313 Update.
11314 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11315 (h8300_handle_tiny_data_attribute): Update.
11316 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11317 (m32r_in_small_data_p): Update.
11318 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11319 * config/i386/i386.c (ix86_in_large_data_p): Update.
11320 * config/i386/winnt.c (i386_pe_unique_section): Update.
11321 * config/darwin.c (darwin_function_section): Update.
11322 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11323 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11324 (new_emutls_decl): Update.
11325 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11326 input_varpool_node): Update.
11327 (ead_string_cst): Turn to ...
11328 (read_string): ... this one.
11329 * dwarf2out.c (secname_for_decl): Update.
11330 * asan.c (asan_protect_global): Update.
11331
11332 2014-06-11 DJ Delorie <dj@redhat.com>
11333
11334 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11335 cache lines.
11336 * config/rx/rx.c (rx_option_override): Likewise.
11337 (rx_align_for_label): Likewise.
11338
11339 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11340
11341 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11342
11343 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11344 prototype.
11345
11346 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11347
11348 * common.md: New file.
11349 * doc/md.texi: Update description of generic, machine-independent
11350 constraints.
11351 * config/s390/constraints.md (e): Delete.
11352 * Makefile.in (md_file): Include common.md.
11353 * config/m32c/t-m32c (md_file): Likewise.
11354 * genpreds.c (general_mem): New array.
11355 (generic_constraint_letters): Remove constraints now defined by
11356 common.md.
11357 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11358 Allow the first character to be '<' or '>' as well.
11359 * genoutput.c (general_mem): New array.
11360 (indep_constraints): Remove constraints now defined by common.md.
11361 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11362 Remove special handling of 'm'.
11363 * ira-costs.c (record_reg_classes): Remove special handling of
11364 constraints now defined by common.md.
11365 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11366 * ira-lives.c (single_reg_class): Likewise.
11367 (ira_implicitly_set_insn_hard_regs): Likewise.
11368 * lra-constraints.c (reg_class_from_constraints): Likewise.
11369 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11370 * postreload.c (reload_cse_simplify_operands): Likewise.
11371 * reload.c (push_secondary_reload, scratch_reload_class)
11372 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11373 * reload1.c (maybe_fix_stack_asms): Likewise.
11374 * targhooks.c (default_secondary_reload): Likewise.
11375 * stmt.c (parse_output_constraint): Likewise.
11376 * recog.c (preprocess_constraints): Likewise.
11377 (constrain_operands, peep2_find_free_register): Likewise.
11378 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11379 must be handled specially.
11380
11381 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11382
11383 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11384 * genpreds.c (have_const_dbl_constraints): Delete.
11385 (add_constraint): Don't set it.
11386 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11387 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11388 constraints using the lookup_constraint logic.
11389 * ira-lives.c (single_reg_class): Likewise.
11390 * ira.c (ira_setup_alts): Likewise.
11391 * lra-constraints.c (process_alt_operands): Likewise.
11392 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11393 * reload.c (find_reloads): Likewise.
11394
11395 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11396
11397 * genpreds.c (const_int_start, const_int_end): New variables.
11398 (choose_enum_order): Output CONST_INT constraints before memory
11399 constraints.
11400 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11401 Add CT_CONST_INT.
11402 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11403 * ira.c (ira_setup_alts): Likewise.
11404 * lra-constraints.c (process_alt_operands): Likewise.
11405 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11406 * reload.c (find_reloads): Likewise.
11407
11408 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11409
11410 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11411 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11412 * recog.c (preprocess_constraints): Update accordingly.
11413
11414 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11415
11416 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11417 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11418 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11419 * genpreds.c (print_type_tree): New function.
11420 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11421 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11422 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11423 Write out enum constraint_type and get_constraint_type.
11424 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11425 constraint_num rather than a constraint string.
11426 (satisfies_address_constraint_p): Likewise.
11427 (reg_class_from_constraints): Avoid old constraint macros.
11428 (process_alt_operands, process_address_1): Likewise.
11429 (curr_insn_transform): Likewise.
11430 * ira-costs.c (record_reg_classes): Likewise.
11431 (record_operand_costs): Likewise.
11432 * ira-lives.c (single_reg_class): Likewise.
11433 (ira_implicitly_set_insn_hard_regs): Likewise.
11434 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11435 * postreload.c (reload_cse_simplify_operands): Likewise.
11436 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11437 (constrain_operands, peep2_find_free_register): Likewise.
11438 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11439 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11440 * reload1.c (maybe_fix_stack_asms): Likewise.
11441 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11442 * targhooks.c (default_secondary_reload): Likewise.
11443 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11444 to EXTRA_CONSTRAINT_STR.
11445 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11446
11447 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11448
11449 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11450 (write_constraint_satisfied_p_array): ...this new function.
11451 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11452 an array.
11453 (write_insn_preds_c): Update accordingly.
11454
11455 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11456
11457 * genpreds.c (write_lookup_constraint): Rename to...
11458 (write_lookup_constraint_1): ...this.
11459 (write_lookup_constraint_array): New function.
11460 (write_tm_preds_h): Define lookup_constraint as an inline function
11461 that uses write_lookup_constraint_array where possible.
11462 (write_insn_preds_c): Update for the changes above.
11463
11464 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11465
11466 * doc/md.texi (regclass_for_constraint): Rename to...
11467 (reg_class_for_constraint): ...this.
11468 * genpreds.c (num_constraints, enum_order, register_start)
11469 (register_end, satisfied_start, memory_start, memory_end)
11470 (address_start, address_end): New variables.
11471 (add_constraint): Count the number of constraints.
11472 (choose_enum_order): New function.
11473 (write_enum_constraint_num): Iterate over enum_order.
11474 (write_regclass_for_constraint): Rename to...
11475 (write_reg_class_for_constraint_1): ...this and update output
11476 accordingly.
11477 (write_constraint_satisfied_p): Rename to...
11478 (write_constraint_satisfied_p_1): ...this and update output
11479 accordingly. Do nothing if all extra constraints are register
11480 constraints.
11481 (write_insn_extra_memory_constraint): Delete.
11482 (write_insn_extra_address_constraint): Delete.
11483 (write_range_function): New function.
11484 (write_tm_preds_h): Define constraint_satisfied_p and
11485 reg_class_for_constraint as inline functions that do a range check
11486 before calling the out-of-line function. Use write_range_function
11487 to implement insn_extra_{register,memory,address}_constraint,
11488 the first of which is new.
11489 (write_insn_preds_c): Update after above changes to write_* functions.
11490 (main): Call choose_enum_order.
11491
11492 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11493
11494 PR tree-optimization/61306
11495 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11496 expression instead of its size.
11497 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11498 false to prevent optimization when the result is unpredictable due to
11499 arithmetic right shift of signed type with highest byte is set.
11500 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11501 (init_symbolic_number): Likewise.
11502 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11503 when the result is unpredictable due to sign extension.
11504
11505 2014-06-11 Terry Guo <terry.guo@arm.com>
11506
11507 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11508 (*thumb1_addsi3): Ditto.
11509 (*thumb_subdi3): Ditto.
11510 (thumb1_subsi3_insn): Ditto.
11511 (*thumb_mulsi3): Ditto.
11512 (*thumb_mulsi3_v6): Ditto.
11513 (*thumb1_andsi3_insn): Ditto.
11514 (thumb1_bicsi3): Ditto.
11515 (*thumb1_iorsi3_insn): Ditto.
11516 (*thumb1_xorsi3_insn): Ditto.
11517 (*thumb1_ashlsi3): Ditto.
11518 (*thumb1_ashrsi3): Ditto.
11519 (*thumb1_lshrsi3): Ditto.
11520 (*thumb1_rotrsi3): Ditto.
11521 (*thumb1_negdi2): Ditto.
11522 (*thumb1_negsi2): Ditto.
11523 (*thumb1_abssi2): Ditto.
11524 (*thumb1_neg_abssi2): Ditto.
11525 (*thumb1_one_cmplsi2): Ditto.
11526 (*thumb1_zero_extendhisi2): Ditto.
11527 (*thumb1_zero_extendqisi2): Ditto.
11528 (*thumb1_zero_extendqisi2_v6): Ditto.
11529 (thumb1_extendhisi2): Ditto.
11530 (thumb1_extendqisi2): Ditto.
11531 (*thumb1_movdi_insn): Ditto.
11532 (*thumb1_movsi_insn): Ditto.
11533 (*thumb1_movhi_insn): Ditto.
11534 (thumb_movhi_clobber): Ditto.
11535 (*thumb1_movqi_insn): Ditto.
11536 (*thumb1_movhf): Ditto.
11537 (*thumb1_movsf_insn): Ditto.
11538 (*thumb_movdf_insn): Ditto.
11539 (movmem12b): Ditto.
11540 (movmem8b): Ditto.
11541 (cbranchqi4): Ditto.
11542 (cbranchsi4_insn): Ditto.
11543 (cbranchsi4_scratch): Ditto.
11544 (*negated_cbranchsi4): Ditto.
11545 (*tbit_cbranch): Ditto.
11546 (*tlobits_cbranch): Ditto.
11547 (*tstsi3_cbranch): Ditto.
11548 (*cbranchne_decr1): Ditto.
11549 (*addsi3_cbranch): Ditto.
11550 (*addsi3_cbranch_scratch): Ditto.
11551 (*thumb_cmpdi_zero): Ditto.
11552 (cstoresi_eq0_thumb1): Ditto.
11553 (cstoresi_ne0_thumb1): Ditto.
11554 (*cstoresi_eq0_thumb1_insn): Ditto.
11555 (*cstoresi_ne0_thumb1_insn): Ditto.
11556 (cstoresi_nltu_thumb1): Ditto.
11557 (cstoresi_ltu_thumb1): Ditto.
11558 (thumb1_addsi3_addgeu): Ditto.
11559 (*thumb_jump): Ditto.
11560 (*call_reg_thumb1_v5): Ditto.
11561 (*call_reg_thumb1): Ditto.
11562 (*call_value_reg_thumb1_v5): Ditto.
11563 (*call_value_reg_thumb1): Ditto.
11564 (*call_insn): Ditto.
11565 (*call_value_insn): Ditto.
11566 (thumb1_casesi_internal_pic): Ditto.
11567 (thumb1_casesi_dispatch): Ditto.
11568 (*thumb1_indirect_jump): Ditto.
11569 (prologue_thumb1_interwork): Ditto.
11570 (*epilogue_insns): Ditto.
11571 (consttable_1): Ditto.
11572 (consttable_2): Ditto.
11573 (tablejump): Ditto.
11574 (*thumb1_tablejump): Ditto.
11575 (thumb_eh_return): Ditto.
11576 (define_peephole2): Two of them are thumb1 only and got moved into
11577 new file thumb1.md.
11578 (define_split): Six of them are thumb1 only and got moved into new
11579 file thumb1.md.
11580 * config/arm/thumb1.md: New file comprised of above thumb1 only
11581 patterns.
11582
11583 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11584
11585 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11586 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11587 dependencies.
11588 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11589 (aarch64_crc_builtin_datum): New struct.
11590 (aarch64_crc_builtin_data): New.
11591 (aarch64_init_crc32_builtins): New function.
11592 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11593 (aarch64_crc32_expand_builtin): New.
11594 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11595 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11596 __ARM_FEATURE_CRC32 when appropriate.
11597 (TARGET_CRC32): Define.
11598 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
11599 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
11600 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
11601 (aarch64_<crc_variant>): New pattern.
11602 * config/aarch64/arm_acle.h: New file.
11603 * config/aarch64/iterators.md (CRC): New int iterator.
11604 (crc_variant, crc_mode): New int attributes.
11605 * doc/aarch64-acle-intrinsics.texi: New file.
11606 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
11607 Include aarch64-acle-intrinsics.texi.
11608
11609 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
11610
11611 * tree-vect-data-refs.c (vect_grouped_store_supported): New
11612 check for stores group of length 3.
11613 (vect_permute_store_chain): New permutations for stores group of
11614 length 3.
11615 * tree-vect-stmts.c (vect_model_store_cost): Change cost
11616 of vec_perm_shuffle for the new permutations.
11617
11618 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11619
11620 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
11621 table rewriting temporarily on targets not supporting ONE_ONLY.
11622
11623 2014-06-11 Richard Biener <rguenther@suse.de>
11624
11625 PR middle-end/61437
11626 Revert
11627 2014-06-04 Richard Biener <rguenther@suse.de>
11628
11629 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
11630 TREE_PUBLIC and DECL_EXTERNAL decls.
11631
11632 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11633
11634 * varasm.c (set_implicit_section): New function.
11635 (resolve_unique_section): Use it to set implicit section
11636 for aliases, too.
11637 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
11638 (default_function_section): Likewise.
11639 (decl_binds_to_current_def_p): Constify argument.
11640 * varasm.h (decl_binds_to_current_def_p): Update prototype.
11641 * asan.c (asan_protect_global): Use
11642 symtab_get_node (decl)->implicit_section.
11643 * symtab.c (dump_symtab_base): Dump implicit sections.
11644 (verify_symtab_base): Verify sanity of sectoins and comdats.
11645 (symtab_resolve_alias): Alias share the section of its target.
11646 (set_section_1): New function.
11647 (symtab_node::set_section): Move here, recurse to aliases.
11648 (verify_symtab): Check for duplicated symtab lists.
11649 * tree-core.h (implicit_section_name_p): Remove.
11650 * tree-vect-data-refs.c: Include varasm.h.
11651 (vect_can_force_dr_alignment_p): Fix conditional on when
11652 decl bints to current definition; use
11653 symtab_get_node (decl)->implicit_section.
11654 * cgraph.c (cgraph_make_node_local_1): Fix section set.
11655 * cgraph.h (struct symtab_node): Add implicit_section.
11656 (set_section): Rename to ...
11657 (set_section_for_node): ... this one.
11658 (set_section): Declare.
11659 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
11660 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11661 input_overwrite_node, input_varpool_node): Stream implicit_section.
11662 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
11663 removal; it will fail in LTO.
11664
11665 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11666
11667 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
11668 Change second alternative type to f_mcr.
11669 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
11670 and 12th alternatives' types to f_mcr and f_mrc.
11671 (*movdi_aarch64): Same for 12th and 13th alternatives.
11672 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
11673 (aarch64_movtilow_tilow): Change type to fmov.
11674
11675 2014-06-10 Jiong Wang <jiong.wang@arm.com>
11676
11677 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
11678 (aarch64_save_or_restore_callee_save_registers): Fix layout.
11679
11680 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11681
11682 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
11683 New expander.
11684 (aarch64_sqrdmulh_lane<mode>): Likewise.
11685 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11686 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11687 (aarch64_sqdmulh_laneq<mode>): New expander.
11688 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11689 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
11690 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
11691 (aarch64_sqdmulh_lane<mode>): New expander.
11692 (aarch64_sqrdmulh_lane<mode>): Likewise.
11693 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11694 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11695 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
11696 (aarch64_sqdmlal_laneq<mode>): Likewise.
11697 (aarch64_sqdmlsl_lane<mode>): Likewise.
11698 (aarch64_sqdmlsl_laneq<mode>): Likewise.
11699 (aarch64_sqdmlal2_lane<mode>): Likewise.
11700 (aarch64_sqdmlal2_laneq<mode>): Likewise.
11701 (aarch64_sqdmlsl2_lane<mode>): Likewise.
11702 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11703 (aarch64_sqdmull_lane<mode>): Likewise.
11704 (aarch64_sqdmull_laneq<mode>): Likewise.
11705 (aarch64_sqdmull2_lane<mode>): Likewise.
11706 (aarch64_sqdmull2_laneq<mode>): Likewise.
11707
11708 2014-06-10 Richard Biener <rguenther@suse.de>
11709
11710 PR tree-optimization/61438
11711 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
11712 (eliminate_dom_walker::before_dom_children): Only try to inhibit
11713 insertion of IVs if running PRE.
11714 (eliminate): Adjust.
11715 (pass_pre::execute): Likewise.
11716 (pass_fre::execute): Likewise.
11717
11718 2014-06-10 Richard Biener <rguenther@suse.de>
11719
11720 PR middle-end/61456
11721 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11722 Do not use the main variant for the type comparison.
11723 (ncr_compar): Likewise.
11724 (nonoverlapping_component_refs_p): Likewise.
11725
11726 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
11727
11728 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
11729 REG_CFA_RESTORE mode.
11730
11731 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
11732
11733 * config/i386/i386.c (expand_vec_perm_pblendv): New.
11734 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
11735 expand_vec_perm_pblendv.
11736
11737 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11738
11739 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
11740 available.
11741 Simplify description of __crc32d and __crc32cd intrinsics.
11742 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
11743 availability.
11744
11745 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
11746
11747 PR lto/61334
11748 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
11749 * config.in: Regenerate.
11750 * configure: Likewise.
11751
11752 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11753
11754 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
11755 and public vars.
11756 (intersect_static_var_sets): Remove.
11757 (propagate): Do not prune local statics.
11758
11759 2014-06-10 Jakub Jelinek <jakub@redhat.com>
11760
11761 PR fortran/60928
11762 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
11763 Set lastprivate_firstprivate even if omp_private_outer_ref
11764 langhook returns true.
11765 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
11766 langhook, call unshare_expr on new_var and call
11767 build_outer_var_ref to get the last argument.
11768
11769 2014-06-10 Marek Polacek <polacek@redhat.com>
11770
11771 PR c/60988
11772 * doc/extend.texi: Add cindex for transparent_union.
11773
11774 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
11775
11776 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
11777 init_symbolic_number ().
11778
11779 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
11780
11781 PR middle-end/61141
11782 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
11783 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
11784 (verify_rtl_sharing): Likewise.
11785
11786 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
11787
11788 PR c++/54442
11789 * tree.c (build_qualified_type): Use a canonical type for
11790 TYPE_CANONICAL.
11791
11792 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11793
11794 * config/arm/arm-modes.def: Remove XFmode.
11795
11796 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
11797
11798 PR target/61062
11799 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
11800 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
11801 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
11802 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
11803 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
11804 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
11805 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
11806 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
11807 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
11808
11809 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
11810
11811 * tree-core.h (tree_decl_with_vis): Remove section_name.
11812
11813 2014-06-09 Kito Cheng <kito@0xlab.org>
11814
11815 * ira.c (ira): Don't call init_caller_save if LRA enabled
11816 since LRA use its own infrastructure to handle that.
11817
11818 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11819
11820 * symtab.c (dump_symtab_base): Update dumping.
11821 (symtab_make_decl_local): Clear only DECL_COMDAT.
11822 * tree-vect-data-refs.c (Check that variable is static before
11823 tampering with sections.
11824 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
11825 (cgraph_create_virtual_clone): Likewise.
11826 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
11827 (decl_section_name, set_decl_section_name): New accessors.
11828 (find_decls_types_r): Do not walk section name
11829 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
11830 (decl_comdat_group, decl_comdat_group_id): Constify.
11831 (decl_section_name, set_decl_section_name): Update.
11832 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
11833 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
11834 (cgraph_make_node_local_1): Clear section and comdat group.
11835 * cgraph.h (set_comdat_group): Sanity check.
11836 (get_section, set_section): New.
11837 * ipa-comdats.c (ipa_comdats): Use get_section.
11838 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
11839 * lto-streamer-out.c: Do not follow section names.
11840 * c-family/c-common.c (handle_section_attribute): Update.
11841 * lto-cgraph.c (lto_output_node): Output section.
11842 (lto_output_varpool_node): Likewise.
11843 (read_comdat_group): Rename to ...
11844 (read_identifier): ... this one.
11845 (read_string_cst): New function.
11846 (input_node, input_varpool_node): Input section names.
11847 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11848 (new_emutls_decl): Update.
11849 (secname_for_decl): Check section names only of static vars.
11850 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
11851 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
11852 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11853 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11854 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
11855 * config/mcore/mcore.c (mcore_unique_section): Likewise.
11856 * config/mips/mips.c (mips16_build_function_stub): Likewise.
11857 * config/v850/v850.c (v850_insert_attributes): Likewise.
11858 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
11859 Likewise.
11860 (h8300_handle_tiny_data_attribute): Likewise.
11861 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
11862 (bfin_handle_l2_attribute): Likewise.
11863
11864 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11865
11866 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
11867 remove static initializer.
11868
11869 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11870
11871 * varasm.c (use_blocks_for_decl_p): Check symbol table
11872 instead of alias attribute.
11873 (place_block_symbol): Recurse on aliases.
11874
11875 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11876
11877 * ipa-visibility.c: Include varasm.h
11878 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
11879
11880 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11881
11882 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
11883 outputting aliases.
11884
11885 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
11886
11887 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
11888 from test_insn into GGC space escape via SET_SRC.
11889
11890 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
11891
11892 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
11893 call statement, if any.
11894 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
11895 statements, if any. Tidy up.
11896
11897 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11898
11899 PR target/61431
11900 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
11901 iterators, VSX_D that handles 64-bit types, and VSX_LE that
11902 handles swapping the two 64-bit double words on little endian
11903 systems. Include V1TImode and optionally TImode in VSX_LE so that
11904 these types are properly swapped. Change all of the insns and
11905 splits that do the 64-bit swaps to use VSX_LE.
11906 (vsx_le_perm_load_<mode>): Likewise.
11907 (vsx_le_perm_store_<mode>): Likewise.
11908 (splitters for little endian memory operations): Likewise.
11909 (vsx_xxpermdi2_le_<mode>): Likewise.
11910 (vsx_lxvd2x2_le_<mode>): Likewise.
11911 (vsx_stxvd2x2_le_<mode>): Likewise.
11912
11913 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
11914
11915 PR target/61423
11916 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
11917 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
11918 and corresponding splitters. Zero extend general register
11919 or memory input operand to XMM temporary. Enable for
11920 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
11921 (floatunssi<mode>2): Update expander predicate.
11922
11923 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
11924
11925 PR rtl-optimization/61325
11926 * lra-constraints.c (process_address_1): Check scale equal to one
11927 to prevent transformation: base + scale * index => base + new_reg.
11928
11929 2014-06-06 Richard Biener <rguenther@suse.de>
11930
11931 PR tree-optimization/59299
11932 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
11933 a def operand.
11934 (nearest_common_dominator_of_uses): Likewise.
11935 (statement_sink_location): Adjust. Support sinking loads.
11936
11937 2014-06-06 Martin Jambor <mjambor@suse.cz>
11938
11939 * ipa-prop.c (get_place_in_agg_contents_list): New function.
11940 (build_agg_jump_func_from_list): Likewise.
11941 (determine_known_aggregate_parts): Renamed to
11942 determine_locally_known_aggregate_parts. Moved some functionality
11943 to the two functions above, removed bound checks.
11944
11945 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
11946
11947 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
11948 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
11949 (aarch64_progress_pointer): Likewise.
11950 (aarch64_copy_one_part_and_move_pointers): Likewise.
11951 (aarch64_expand_movmen): Likewise.
11952 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
11953 * config/aarch64/aarch64.md (movmem<mode>): New.
11954
11955 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
11956
11957 * targhooks.c (default_add_stmt_cost): Call target specific
11958 hook instead of default one.
11959
11960 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11961
11962 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
11963 endianness instead of host endianness.
11964 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
11965 comments.
11966
11967 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11968
11969 PR debug/53927
11970 * function.c (instantiate_decls): Process the saved static chain.
11971 (expand_function_start): If not optimizing, save the static chain
11972 onto the stack.
11973 * tree-nested.c (convert_all_function_calls): Always create the static
11974 chain for nested functions if not optimizing.
11975
11976 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11977
11978 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
11979
11980 2014-06-06 Richard Biener <rguenther@suse.de>
11981
11982 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
11983 (construct_init_block): Likewise.
11984 (construct_exit_block): Likewise.
11985 (pass_expand::execute): Likewise.
11986 * graphite.c (graphite_transforms): Replace check for current_loops
11987 with a check for > 1 loops.
11988 (pass_graphite_transforms::execute): Adjust.
11989 * ipa-split.c (split_function): Remove check for current_loops.
11990 * omp-low.c (expand_parallel_call): Likewise.
11991 (expand_omp_for_init_counts): Likewise.
11992 (extract_omp_for_update_vars): Likewise.
11993 (expand_omp_for_generic): Likewise.
11994 (expand_omp_sections): Likewise.
11995 (expand_omp_target): Likewise.
11996 * tracer.c (tail_duplicate): Likewise.
11997 (pass_tracer::execute): Likewise.
11998 * trans-mem.c (expand_transaction): Likewise.
11999 * tree-complex.c (expand_complex_div_wide): Likewise.
12000 * tree-eh.c (lower_resx): Likewise.
12001 (cleanup_empty_eh_merge_phis): Likewise.
12002 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12003 current_loops with a check for > 1 loops.
12004 (pass_predcom::execute): Adjust.
12005 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12006 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12007 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12008 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12009 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12010 * tree-switch-conversion.c (process_switch): Likewise.
12011 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12012 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12013 (execute_vrp): Likewise.
12014 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12015
12016 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12017
12018 * rtl.h (insn_location): Declare.
12019 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12020 with UNKNOWN_LOCATION.
12021 * emit-rtl.c (insn_location): New function.
12022 * final.c (notice_source_line): Check that the instruction has a
12023 location before retrieving it and use insn_location.
12024 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12025 * print-rtl.c (print_rtx): Likewise.
12026
12027 2014-06-06 Richard Biener <rguenther@suse.de>
12028
12029 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12030
12031 2014-06-06 Christian Bruel <christian.bruel@st.com>
12032
12033 PR tree-optimization/43934
12034 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12035 cost.
12036
12037 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12038
12039 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12040 return NO_REGS for extra address and memory constraints. Handle
12041 operands that match (or are equivalent to something that matches)
12042 extra constant constraints. Ignore other non-register operands.
12043
12044 2014-06-06 Alan Modra <amodra@gmail.com>
12045
12046 PR target/61300
12047 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12048 * doc/tm.texi: Regenerate.
12049 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12050 Use throughout in place of REG_PARM_STACK_SPACE.
12051 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12052 "incoming" param. Pass to rs6000_function_parms_need_stack.
12053 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12054 prototype_p when incoming. Use function decl when incoming
12055 to handle K&R style functions.
12056 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12057 (INCOMING_REG_PARM_STACK_SPACE): Define.
12058
12059 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12060
12061 PR target/52472
12062 * cfgexpand.c (expand_debug_expr): Use address space of nested
12063 TREE_TYPE for ADDR_EXPR and MEM_REF.
12064
12065 2014-06-05 Jeff Law <law@redhat.com>
12066
12067 PR tree-optimization/61289
12068 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12069 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12070 looking for those which match LHS. All callers changed.
12071 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12072 parameters and code which manipulated them. All callers changed.
12073 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12074 and DST_MAP parameters. Simplify invalidation code by just calling
12075 invalidate_equivalences. All callers changed.
12076 (thread_across_edge): Simplify now that we don't need to maintain
12077 the map of equivalences to invalidate.
12078
12079 2014-06-05 Kai Tietz <ktietz@redhat.com>
12080 Richard Henderson <rth@redhat.com>
12081
12082 PR target/46219
12083 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12084 checking for !TARGET_X32.
12085 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12086 (sibcall_intern): New define_insn, plus required peepholes.
12087 (sibcall_pop_intern): Likewise.
12088 (sibcall_value_intern): Likewise.
12089 (sibcall_value_pop_intern): Likewise.
12090
12091 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12092
12093 * tree-inline.c (tree_function_versioning): Check DF info existence
12094 before accessing it.
12095
12096 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12097
12098 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12099 frame_size.
12100 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12101 aarch64_frame hard_fp_offset and frame_size.
12102 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12103 frame_size; remove original_frame_size.
12104 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12105 (aarch64_initial_elimination_offset): Remove frame_size and
12106 offset. Use aarch64_frame frame_size.
12107
12108 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12109 Jiong Wang <jiong.wang@arm.com>
12110 Renlin <renlin.li@arm.com>
12111
12112 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12113 initialization of R30 offset. Update offset. Iterate core
12114 regisers upto X30. Remove X29, X30 specific code.
12115
12116 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12117 Jiong Wang <jiong.wang@arm.com>
12118
12119 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12120 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12121 (aarch64_register_saved_on_entry): Adjust test.
12122
12123 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12124
12125 * config/aarch64/aarch64.h (machine_function): Move
12126 saved_varargs_size from here...
12127 (aarch64_frame): ... to here.
12128
12129 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12130 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12131 (aarch64_initial_elimination_offset)
12132 (aarch64_setup_incoming_varargs): Adjust location of
12133 saved_varargs_size.
12134
12135 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12136
12137 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12138 layout comment.
12139
12140 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12141 Prachi Godbole <Prachi.Godbole@imgtec.com>
12142
12143 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12144 mips32r5 entry to use PROCESSOR_P5600.
12145 * config/mips/mips-tables.opt: Regenerate.
12146 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12147 * config/mips/mips.c (mips_fmadd_bypass): New function.
12148 (mips_rtx_cost_data): Add costs for p5600.
12149 (mips_issue_rate): Add support for p5600.
12150 (mips_multipass_dfa_lookahead): Likewise.
12151 * config/mips/mips.h (TUNE_P5600): New define.
12152 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12153 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12154 * config/mips/mips.md: Include p5600.md.
12155 (processor): Add p5600.
12156 * config/mips/p5600.md: New file.
12157
12158 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12159
12160 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12161 * config/i386/predicates.md (palignr_operand): New.
12162 Indicates if permutation is suitable for palignr instruction.
12163
12164 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12165
12166 PR tree-optimization/61319
12167 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12168 stmt belongs to loop.
12169
12170 2014-06-05 Richard Biener <rguenther@suse.de>
12171
12172 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12173 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12174 (lookup_tmp_var): Adjust.
12175 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12176
12177 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12178
12179 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12180
12181 2014-06-05 Marek Polacek <polacek@redhat.com>
12182
12183 PR c/49706
12184 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12185
12186 2014-06-04 Tom de Vries <tom@codesourcery.com>
12187
12188 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12189 CONST_INT.
12190
12191 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12192
12193 PR tree-optimization/61385
12194 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12195
12196 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12197
12198 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12199 changed to use fatal_error.
12200 (main): Ensure lto_wrapper_cleanup is run atexit.
12201
12202 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12203
12204 * lra-constraints.c (valid_address_p): Move earlier in file.
12205 (address_eliminator): New structure.
12206 (satisfies_memory_constraint_p): New function.
12207 (satisfies_address_constraint_p): Likewise.
12208 (process_alt_operands, process_address, curr_insn_transform): Use them.
12209
12210 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12211
12212 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12213 const pointer.
12214 (target_lra_int, default_target_lra_int, this_target_lra_int)
12215 (op_alt_data): Delete.
12216 * lra.h (lra_init): Delete.
12217 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12218 (init_insn_code_data_once): Remove op_alt_data handling.
12219 (finish_insn_code_data_once): Likewise.
12220 (init_op_alt_data): Delete.
12221 (get_static_insn_data): Initialize operand_alternative to null.
12222 (free_insn_recog_data): Cast operand_alternative before freeing it.
12223 (setup_operand_alternative): Take the operand_alternative as
12224 parameter and assume it isn't already cached in the static
12225 insn data.
12226 (lra_set_insn_recog_data): Update accordingly.
12227 (lra_init): Delete.
12228 * ira.c (ira_init): Don't call lra_init.
12229 * target-globals.h (this_target_lra_int): Declare.
12230 (target_globals): Remove lra_int.
12231 (restore_target_globals): Update accordingly.
12232 * target-globals.c: Don't include lra-int.h.
12233 (default_target_globals, save_target_globals): Remove lra_int.
12234
12235 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12236
12237 * recog.h (operand_alternative): Convert reg_class, reject,
12238 matched and matches into bitfields.
12239 (preprocess_constraints): New overload.
12240 (preprocess_insn_constraints): New function.
12241 (preprocess_constraints): Take the insn as parameter.
12242 (recog_op_alt): Change into a pointer.
12243 (target_recog): Add x_op_alt.
12244 * recog.c (asm_op_alt): New variable.
12245 (recog_op_alt): Change into a pointer.
12246 (preprocess_constraints): New overload, replacing the old function
12247 definition with one that doesn't use global state.
12248 (preprocess_insn_constraints): New function.
12249 (preprocess_constraints): Use them. Take the insn as parameter.
12250 Use asm_op_alt for asms.
12251 (recog_init): Free existing x_op_alt entries.
12252 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12253 pointer const.
12254 (make_early_clobber_and_input_conflicts): Likewise.
12255 (process_bb_node_lives): Pass the insn to process_constraints.
12256 * reg-stack.c (check_asm_stack_operands): Likewise.
12257 (subst_asm_stack_regs): Likewise.
12258 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12259 * regrename.c (build_def_use): Likewise.
12260 * sched-deps.c (sched_analyze_insn): Likewise.
12261 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12262 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12263 (note_invalid_constants): Likewise.
12264 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12265 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12266 const.
12267
12268 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12269
12270 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12271 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12272 alternatives.
12273 (make_early_clobber_and_input_conflicts): Likewise.
12274 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12275
12276 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12277
12278 * recog.h (alternative_class): New function.
12279 (which_op_alt): Return a const recog_op_alt.
12280 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12281 (subst_asm_stack_regs): Likewise.
12282 * config/arm/arm.c (note_invalid_constants): Likewise.
12283 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12284 the operand_alternative; use alternative class instead.
12285 * sel-sched.c (get_reg_class): Likewise.
12286 * regrename.c (build_def_use): Likewise.
12287 (hide_operands, restore_operands, record_out_operands): Update type
12288 accordingly.
12289
12290 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12291
12292 * recog.h (recog_op_alt): Convert to a flat array.
12293 (which_op_alt): New function.
12294 * recog.c (recog_op_alt): Convert to a flat array.
12295 (preprocess_constraints): Update accordingly, grouping all
12296 operands of the same alternative together, rather than the
12297 other way around.
12298 * ira-lives.c (check_and_make_def_conflict): Likewise.
12299 (make_early_clobber_and_input_conflicts): Likewise.
12300 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12301 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12302 (subst_asm_stack_regs): Likewise.
12303 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12304 * regrename.c (hide_operands, record_out_operands): Likewise.
12305 (build_def_use): Likewise.
12306 * sel-sched.c (get_reg_class): Likewise.
12307 * config/arm/arm.c (note_invalid_constants): Likewise.
12308
12309 2014-06-04 Jason Merrill <jason@redhat.com>
12310
12311 PR c++/51253
12312 PR c++/61382
12313 * gimplify.c (gimplify_arg): Non-static.
12314 * gimplify.h: Declare it.
12315
12316 2014-06-04 Richard Biener <rguenther@suse.de>
12317
12318 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12319 TREE_PUBLIC and DECL_EXTERNAL decls.
12320
12321 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12322
12323 * regcprop.c (copyprop_hardreg_forward_1): Account for
12324 HARD_REGNO_CALL_PART_CLOBBERED.
12325
12326 2014-06-04 Richard Biener <rguenther@suse.de>
12327
12328 * configure.ac: Check whether the underlying type of int64_t
12329 is long or long long.
12330 * configure: Regenerate.
12331 * config.in: Likewise.
12332 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12333 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12334
12335 2014-06-04 Richard Biener <rguenther@suse.de>
12336
12337 PR tree-optimization/60098
12338 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12339 we hit a kill.
12340 (dse_optimize_stmt): Simplify, now that we found a kill
12341 earlier.
12342
12343 2014-06-04 Richard Biener <rguenther@suse.de>
12344
12345 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12346 of accesses with non-invariant address.
12347
12348 2014-06-04 Martin Liska <mliska@suse.cz>
12349
12350 * cgraph.h (cgraph_make_wrapper): New function introduced.
12351 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12352 * ipa-inline.h (inline_analyze_function): The function is global.
12353 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12354
12355 2014-06-04 Martin Liska <mliska@suse.cz>
12356
12357 * tree.h (private_lookup_attribute_starting): New function.
12358 (lookup_attribute_starting): Likewise.
12359 * tree.c (private_lookup_attribute_starting): Likewise.
12360
12361 2014-06-04 Martin Liska <mliska@suse.cz>
12362
12363 * cgraph.h (expand_thunk): New argument added.
12364 (address_taken_from_non_vtable_p): New global function.
12365 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12366 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12367 * cgraphunit.c (analyze_function): Likewise.
12368 (assemble_thunks_and_aliases): Argument added to call.
12369 (expand_thunk): New argument forces to produce GIMPLE thunk.
12370
12371 2014-06-04 Martin Liska <mliska@suse.cz>
12372
12373 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12374 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12375 * profile.c (branch_prob): Likewise.
12376
12377 2014-06-04 Martin Jambor <mjambor@suse.cz>
12378
12379 PR ipa/61340
12380 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12381 handler for switch on an ipa_ref_use enum.
12382 * ipa-reference.c (analyze_function): Likewise.
12383
12384 2014-06-04 Kai Tietz <ktietz@redhat.com>
12385
12386 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12387 from old call-instruction.
12388
12389 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12390
12391 * config/aarch64/aarch64.c (aarch64_classify_address)
12392 (aarch64_legitimize_reload_address): Support full addressing modes
12393 for vector modes.
12394 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12395 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12396
12397 2014-06-03 Andrew Pinski <apinski@cavium.com>
12398
12399 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12400 for OP0.
12401
12402 2014-06-03 Andrew Pinski <apinski@cavium.com>
12403
12404 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12405 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12406
12407 2014-06-03 Kai Tietz <ktietz@redhat.com>
12408
12409 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12410 for 64-bit ms-abi.
12411
12412 2014-06-03 Dehao Chen <dehao@google.com>
12413
12414 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12415 the same loop.
12416
12417 2014-06-03 Marek Polacek <polacek@redhat.com>
12418
12419 PR c/60439
12420 * doc/invoke.texi: Document -Wswitch-bool.
12421 * function.c (stack_protect_epilogue): Cast controlling expression of
12422 the switch to int.
12423 * gengtype.c (walk_type): Generate switch expression with its
12424 controlling expression cast to int.
12425
12426 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12427
12428 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12429 and attiny841.
12430 * config/avr/avr-tables.opt: Regenerate.
12431 * config/avr/t-multilib: Regenerate.
12432 * doc/avr-mmcu.texi: Regenerate.
12433
12434 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12435 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12436
12437 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12438 (ata6617c, ata664251): Add new avr35 devices.
12439 (ata6612c): Add new avr4 device.
12440 (ata6613c, ata6614q): Add new avr5 devices.
12441 * config/avr/avr-tables.opt: Regenerate.
12442 * config/avr/t-multilib: Regenerate.
12443 * doc/avr-mmcu.texi: Regenerate.
12444
12445 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12446
12447 * gcc/config/aarch64/aarch64-builtins.c
12448 (aarch64_types_binop_ssu_qualifiers): New static data.
12449 (TYPES_BINOP_SSU): Define.
12450 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12451 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12452 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12453 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12454 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12455 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12456 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12457 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12458 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12459 suffix to builtin function name, remove cast.
12460 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12461 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12462 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12463
12464 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12465
12466 * gcc/config/aarch64/aarch64-builtins.c
12467 (aarch64_types_binop_uus_qualifiers,
12468 aarch64_types_shift_to_unsigned_qualifiers,
12469 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12470 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12471 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12472 sqshlu_n, uqshl_n): Update qualifiers.
12473 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12474 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12475 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12476 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12477 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12478 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12479 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12480 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12481 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12482 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12483 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12484 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12485 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12486 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12487 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12488 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12489 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12490 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12491 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12492 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12493 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12494 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12495 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12496 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12497 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12498 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12499 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12500
12501 2014-06-03 Teresa Johnson <tejohnson@google.com>
12502
12503 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12504
12505 2014-06-02 Jason Merrill <jason@redhat.com>
12506
12507 PR c++/61020
12508 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12509
12510 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12511
12512 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12513 location == 0.
12514
12515 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12516
12517 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12518 New pattern.
12519 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12520 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12521 * config/aarch64/iterators.md (REVERSE): New iterator.
12522 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12523 (rev_op): New int_attribute.
12524 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12525 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12526 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12527 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12528 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12529 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12530 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12531 Replace temporary __asm__ with __builtin_shuffle.
12532
12533 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12534
12535 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12536 mips64r5.
12537 * config/mips/mips-tables.opt: Regenerate.
12538 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12539 to use mips_isa_rev rather than ISA_MIPS32R2.
12540 * config/mips/mips.h (ISA_MIPS32R3): New define.
12541 (ISA_MIPS32R5): New define.
12542 (ISA_MIPS64R3): New define.
12543 (ISA_MIPS64R5): New define.
12544 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12545 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12546 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12547 and mips64r5.
12548 (MIPS_ISA_SYNCI_SPEC): Likewise.
12549 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12550 (LINK_SPEC): Added mips32r3 and mips32r5.
12551 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12552 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12553 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12554 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12555 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12556 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12557 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12558
12559 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12560
12561 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12562 options.
12563 * config/mips/mips.opt (mxpa): New option.
12564 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12565 assembler.
12566
12567 2014-06-03 Martin Jambor <mjambor@suse.cz>
12568
12569 PR ipa/61160
12570 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12571 thunks.
12572
12573 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12574
12575 PR tree-optimization/61328
12576 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12577 initialization from find_bswap_or_nop_1.
12578 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12579 in source_expr2 before using the size value the function sets. Also
12580 make use of init_symbolic_number () in both the old place and
12581 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12582 doing recursion in the GIMPLE_BINARY_RHS case.
12583
12584 2014-06-03 Richard Biener <rguenther@suse.de>
12585
12586 PR tree-optimization/61383
12587 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12588 stmts can't trap.
12589
12590 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12591
12592 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12593 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12594 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12595 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12596 in this file.
12597 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12598 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
12599 * system.h: ...here and make it unconditional.
12600 * target.def (conditional_register_usage): Mention
12601 define_register_constraint instead of old-style constraint macros.
12602 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
12603 * doc/tm.texi: Regenerate.
12604 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
12605 protected by !USE_MD_CONSTRAINTS.
12606 * config/frv/frv.md: Remove quote from old version of documentation.
12607 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
12608 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
12609 CONST_DOUBLE_OK_FOR_LETTER.
12610 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
12611
12612 2014-06-02 Andrew Pinski <apinski@cavium.com>
12613
12614 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
12615 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
12616 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
12617 file whose name depends on -mabi= and -mbig-endian.
12618 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
12619 Handle LP64 better and handle ilp32 too.
12620 (MULTILIB_OPTIONS): Delete.
12621 (MULTILIB_DIRNAMES): Delete.
12622
12623 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
12624
12625 * expr.h: Remove prototypes of functions defined in builtins.c.
12626 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
12627 Remove prototypes of functions defined in builtins.c.
12628 * builtins.h: Update prototype list to include all exported functions.
12629 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
12630 no_c99_libc_has_function): Move to targhooks.c
12631 (build_string_literal, build_call_expr_loc_array,
12632 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
12633 to tree.c.
12634 (expand_builtin_object_size, fold_builtin_object_size): Make static.
12635 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
12636 no_c99_libc_has_function): Relocate from builtins.c.
12637 * tree.c: Include builtins.h.
12638 (build_call_expr_loc_array, build_call_expr_loc_vec,
12639 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
12640 from builtins.c.
12641 * fold-const.h (fold_fma): Move prototype to builtins.h.
12642 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
12643 * asan.c: Include builtins.h.
12644 * cfgexpand.c: Likewise.
12645 * convert.c: Likewise.
12646 * emit-rtl.c: Likewise.
12647 * except.c: Likewise.
12648 * expr.c: Likewise.
12649 * fold-const.c: Likewise.
12650 * gimple-fold.c: Likewise.
12651 * gimple-ssa-strength-reduction.c: Likewise.
12652 * gimplify.c: Likewise.
12653 * ipa-inline.c: Likewise.
12654 * ipa-prop.c: Likewise.
12655 * lto-streamer-out.c: Likewise.
12656 * stmt.c: Likewise.
12657 * tree-inline.c: Likewise.
12658 * tree-object-size.c: Likewise.
12659 * tree-sra.c: Likewise.
12660 * tree-ssa-ccp.c: Likewise.
12661 * tree-ssa-forwprop.c: Likewise.
12662 * tree-ssa-loop-ivcanon.c: Likewise.
12663 * tree-ssa-loop-ivopts.c: Likewise.
12664 * tree-ssa-math-opts.c: Likewise.
12665 * tree-ssa-reassoc.c: Likewise.
12666 * tree-ssa-threadedge.c: Likewise.
12667 * tree-streamer-in.c: Likewise.
12668 * tree-vect-data-refs.c: Likewise.
12669 * tree-vect-patterns.c: Likewise.
12670 * tree-vect-stmts.c: Likewise.
12671 * config/aarch64/aarch64.c: Likewise.
12672 * config/alpha/alpha.c: Likewise.
12673 * config/arc/arc.c: Likewise.
12674 * config/arm/arm.c: Likewise.
12675 * config/avr/avr.c: Likewise.
12676 * config/bfin/bfin.c: Likewise.
12677 * config/c6x/c6x.c: Likewise.
12678 * config/cr16/cr16.c: Likewise.
12679 * config/cris/cris.c: Likewise.
12680 * config/epiphany/epiphany.c: Likewise.
12681 * config/fr30/fr30.c: Likewise.
12682 * config/frv/frv.c: Likewise.
12683 * config/h8300/h8300.c: Likewise.
12684 * config/i386/i386.c: Likewise.
12685 * config/i386/winnt.c: Likewise.
12686 * config/ia64/ia64.c: Likewise.
12687 * config/iq2000/iq2000.c: Likewise.
12688 * config/lm32/lm32.c: Likewise.
12689 * config/m32c/m32c.c: Likewise.
12690 * config/m32r/m32r.c: Likewise.
12691 * config/m68k/m68k.c: Likewise.
12692 * config/mcore/mcore.c: Likewise.
12693 * config/mep/mep.c: Likewise.
12694 * config/microblaze/microblaze.c: Likewise.
12695 * config/mips/mips.c: Likewise.
12696 * config/mmix/mmix.c: Likewise.
12697 * config/mn10300/mn10300.c: Likewise.
12698 * config/moxie/moxie.c: Likewise.
12699 * config/msp430/msp430.c: Likewise.
12700 * config/nds32/nds32.c: Likewise.
12701 * config/pa/pa.c: Likewise.
12702 * config/pdp11/pdp11.c: Likewise.
12703 * config/picochip/picochip.c: Likewise.
12704 * config/rl78/rl78.c: Likewise.
12705 * config/rs6000/rs6000.c: Likewise.
12706 * config/rx/rx.c: Likewise.
12707 * config/s390/s390.c: Likewise.
12708 * config/score/score.c: Likewise.
12709 * config/sh/sh.c: Likewise.
12710 * config/sparc/sparc.c: Likewise.
12711 * config/spu/spu.c: Likewise.
12712 * config/stormy16/stormy16.c: Likewise.
12713 * config/tilegx/tilegx.c: Likewise.
12714 * config/tilepro/tilepro.c: Likewise.
12715 * config/v850/v850.c: Likewise.
12716 * config/vax/vax.c: Likewise.
12717 * config/xtensa/xtensa.c: Likewise.
12718
12719 2014-06-02 Jeff Law <law@redhat.com>
12720
12721 PR rtl-optimization/61094
12722 * ree.c (combine_reaching_defs): Do not reextend an insn if it
12723 was marked as do_no_reextend. If a copy is needed to eliminate
12724 an extension, then mark it as do_not_reextend.
12725
12726 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
12727
12728 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
12729
12730 2014-06-02 Richard Henderson <rth@redhat.com>
12731
12732 PR target/61336
12733 * config/alpha/alpha.c (print_operand_address): Allow symbolic
12734 addresses inside asms. Use output_operand_lossage instead of
12735 gcc_unreachable.
12736
12737 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
12738
12739 PR target/61239
12740 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
12741 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
12742
12743 2014-06-02 Tom de Vries <tom@codesourcery.com>
12744
12745 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
12746 case that x has VOIDmode.
12747
12748 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
12749
12750 * varasm.c (copy_constant): Delete function.
12751 (build_constant_desc): Don't call it.
12752
12753 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12754
12755 PR target/61154
12756 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
12757 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
12758 with immediate_operand.
12759
12760 2014-06-02 Andreas Schwab <schwab@suse.de>
12761
12762 * config/ia64/ia64.c
12763 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
12764 pending_data_specs first.
12765
12766 2014-06-02 Richard Biener <rguenther@suse.de>
12767
12768 PR tree-optimization/61378
12769 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
12770 valueized_anything.
12771
12772 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
12773
12774 * config/i386/constraints.md (Bw): Rename from 'w'.
12775 (Bz): Rename from 'z'.
12776 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
12777
12778 2014-06-01 Kai Tietz <ktietz@redhat.com>
12779
12780 PR target/61377
12781 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
12782 * config/i386/i386.md (sibcall_insn_operand): Use Bs
12783 instead of m constraint.
12784
12785 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
12786
12787 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
12788 a separate alternative where the scratch operand 2 is marked as
12789 early clobber.
12790
12791 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
12792
12793 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12794 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
12795 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
12796 and __builtins_arm_get_fpscr.
12797 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12798 __builtins_arm_get_fpscr.
12799 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
12800 __builtins_arm_ldfpscr.
12801 (arm_atomic_assign_expand_fenv): New function.
12802 * config/arm/vfp.md (set_fpscr): New pattern.
12803 (get_fpscr) : Likewise.
12804 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
12805 VUNSPEC_SET_FPSCR.
12806 * doc/extend.texi (AARCH64 Built-in Functions) : Document
12807 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
12808
12809 2014-05-30 Jakub Jelinek <jakub@redhat.com>
12810
12811 * asan.c (report_error_func): Add SLOW_P argument, use
12812 BUILT_IN_ASAN_*_N if set.
12813 (build_check_stmt): Likewise.
12814 (instrument_derefs): If T has insufficient alignment,
12815 force same handling as for odd sizes.
12816
12817 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
12818 BUILT_IN_ASAN_REPORT_STORE_N): New.
12819 * asan.c (struct asan_mem_ref): Change access_size type to
12820 HOST_WIDE_INT.
12821 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
12822 update_mem_ref_hash_table): Likewise.
12823 (asan_mem_ref_hasher::hash): Hash in a HWI.
12824 (report_error_func): Change size_in_bytes argument to HWI.
12825 Use *_N builtins if size_in_bytes is larger than 16 or not power of
12826 two.
12827 (build_shadow_mem_access): New function.
12828 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
12829 Handle size_in_bytes not power of two or larger than 16.
12830 (instrument_derefs): Don't give up if size_in_bytes is not
12831 power of two or is larger than 16.
12832
12833 2014-05-30 Kai Tietz <ktietz@redhat.com>
12834
12835 PR target/60104
12836 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
12837 for sibling-tail-calls.
12838 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
12839 to its use.
12840 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
12841 (sibcall_insn_operand): Add check for sibcall_memory_operand.
12842
12843 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12844
12845 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
12846 * config/avr/avr-tables.opt: Regenerate.
12847 * config/avr/t-multilib: Regenerate.
12848 * doc/avr-mmcu.texi: Regenerate.
12849
12850 2014-05-30 Ian Lance Taylor <iant@google.com>
12851
12852 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
12853 target("sse").
12854
12855 2014-05-30 Tom de Vries <tom@codesourcery.com>
12856
12857 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12858 Redefine as true.
12859
12860 2014-05-30 Tom de Vries <tom@codesourcery.com>
12861
12862 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12863 * lra.c (initialize_lra_reg_info_element): Add init of
12864 actual_call_used_reg_set field.
12865 (lra): Call lra_create_live_ranges before lra_inheritance for
12866 -fuse-caller-save.
12867 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12868 -fuse-caller-save.
12869 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
12870 instead of call_used_reg_set for -fuse-caller-save.
12871 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12872
12873 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12874
12875 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
12876 to mov_imm.
12877 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
12878
12879 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12880
12881 * ira.c (ira_get_dup_out_num): Check for output operands at
12882 the start of the loop. Handle cases where an included alternative
12883 follows an excluded one.
12884
12885 2014-05-29 Mike Stump <mikestump@comcast.net>
12886
12887 PR debug/61352
12888 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
12889 post ld passes when lto is used.
12890
12891 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
12892
12893 PR rtl-optimization/61325
12894 * lra-constraints.c (process_address): Rename to process_address_1.
12895 (process_address): New function.
12896
12897 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
12898
12899 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
12900 TYPES_BINOPV): New static data.
12901 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
12902 New builtin.
12903 * config/aarch64/aarch64-simd.md (aarch64_ext,
12904 aarch64_im_lane_boundsi): New patterns.
12905 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
12906 patterns for EXT.
12907 (aarch64_evpc_ext): New function.
12908
12909 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
12910
12911 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
12912 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
12913 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
12914 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
12915 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
12916
12917 2014-05-29 Tom de Vries <tom@codesourcery.com>
12918
12919 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
12920
12921 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
12922 Richard Sandiford <rdsandiford@googlemail.com>
12923
12924 * arm/iterators.md (shiftable_ops): New code iterator.
12925 (t2_binop0, arith_shift_insn): New code attributes.
12926 * arm/predicates.md (shift_nomul_operator): New predicate.
12927 * arm/arm.md (insn_enabled): Delete.
12928 (enabled): Remove insn_enabled test.
12929 (*arith_shiftsi): Delete. Replace with ...
12930 (*<arith_shift_insn>_multsi): ... new pattern.
12931 (*<arith_shift_insn>_shiftsi): ... new pattern.
12932 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
12933
12934 2014-05-29 Radovan Obradovic <robradovic@mips.com>
12935 Tom de Vries <tom@codesourcery.com>
12936
12937 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
12938 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
12939 clobber.
12940 (mips_split_call): Use POST_CALL_TMP_REG.
12941 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
12942
12943 2014-05-29 Tom de Vries <tom@codesourcery.com>
12944
12945 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
12946 with #ifdef STACK_REGS.
12947
12948 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
12949
12950 * varasm.c (get_variable_section): Walk aliases.
12951 (place_block_symbol): Walk aliases.
12952
12953 2014-05-28 Tom de Vries <tom@codesourcery.com>
12954
12955 Revert:
12956 2014-05-28 Tom de Vries <tom@codesourcery.com>
12957
12958 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12959 * lra.c (initialize_lra_reg_info_element): Add init of
12960 actual_call_used_reg_set field.
12961 (lra): Call lra_create_live_ranges before lra_inheritance for
12962 -fuse-caller-save.
12963 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12964 -fuse-caller-save.
12965 * lra-constraints.c (need_for_call_save_p): Use
12966 actual_call_used_reg_set instead of call_used_reg_set for
12967 -fuse-caller-save.
12968 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12969
12970 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12971
12972 * doc/md.texi: Document that the % constraint character must
12973 be at the beginning of the string.
12974 * genoutput.c (validate_insn_alternatives): Check that '=',
12975 '+' and '%' only appear at the beginning of a constraint.
12976 * ira.c (commutative_constraint_p): Delete.
12977 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
12978 at the start of the string.
12979 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
12980 duplicate '='s.
12981 * config/arm/neon.md (bicdi3_neon): Likewise.
12982 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
12983 (slt_si, sltu_si): Likewise.
12984 * config/vax/vax.md (sbcdi3): Likewise.
12985 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
12986 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
12987 (mul64): Move '%' to beginning of constraint.
12988 * config/arm/arm.md (*xordi3_insn): Likewise.
12989 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
12990 (xorsi3): Likewise.
12991
12992 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12993
12994 * doc/md.texi: Document the restrictions on the "enabled" attribute.
12995
12996 2014-05-28 Jason Merrill <jason@redhat.com>
12997
12998 PR c++/47202
12999 * cgraph.h (symtab_node::get_comdat_group_id): New.
13000 * cgraphunit.c (analyze_functions): Call it.
13001 * symtab.c (dump_symtab_node): Likewise.
13002 * tree.c (decl_comdat_group_id): New.
13003 * tree.h: Declare it.
13004 * lto-streamer-out.c (write_symbol): Use it.
13005 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13006
13007 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13008
13009 PR bootstrap/PR61146
13010 * wide-int.cc: Do not include longlong.h when compiling with clang.
13011
13012 2014-05-28 Richard Biener <rguenther@suse.de>
13013
13014 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13015 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13016 (vrp_visit_assignment_or_call): Print less vertical space.
13017 (vrp_visit_stmt): Likewise.
13018 (vrp_visit_phi_node): Likewise. For a PHI argument with
13019 VR_VARYING range consider recording it as copy.
13020
13021 2014-05-28 Richard Biener <rguenther@suse.de>
13022
13023 Revert
13024 2014-05-28 Richard Biener <rguenther@suse.de>
13025
13026 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13027
13028 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13029
13030 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13031 sufficiently aligned and an offset is used at the same time.
13032 (expand_expr_real_1): Likewise.
13033
13034 2014-05-28 Richard Biener <rguenther@suse.de>
13035
13036 PR middle-end/61045
13037 * fold-const.c (fold_comparison): When folding
13038 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13039 the sign of the remaining constant operand stays the same.
13040
13041 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13042
13043 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13044 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13045 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13046 to the assembler.
13047 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13048 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13049 (m32bit-doubles) Likewise.
13050 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13051 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13052 option for RL78.
13053
13054 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13055
13056 * configure.ac ($gcc_cv_ld_clearcap): New test.
13057 * configure: Regenerate.
13058 * config.in: Regenerate.
13059 * config/sol2.opt (mclear-hwcap): New option.
13060 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13061 * config/sol2-clearcap.map: Moved here from
13062 testsuite/gcc.target/i386/clearcap.map.
13063 * config/sol2-clearcapv2.map: Move here from
13064 gcc.target/i386/clearcapv2.map.
13065 * config/t-sol2 (install): Depend on install-clearcap-map.
13066 (install-clearcap-map): New target.
13067 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13068 -mclear-hwcap.
13069
13070 2014-05-28 Richard Biener <rguenther@suse.de>
13071
13072 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13073 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13074 ... here and remove the rest.
13075 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13076
13077 2014-05-28 Richard Biener <rguenther@suse.de>
13078
13079 PR tree-optimization/61335
13080 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13081 new range fails, drop to varying.
13082
13083 2014-05-28 Olivier Hainque <hainque@adacore.com>
13084
13085 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13086 (CPP_SPEC): Add entry for -mcpu=8548.
13087 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13088 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13089
13090 2014-05-28 Tom de Vries <tom@codesourcery.com>
13091
13092 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13093 * lra.c (initialize_lra_reg_info_element): Add init of
13094 actual_call_used_reg_set field.
13095 (lra): Call lra_create_live_ranges before lra_inheritance for
13096 -fuse-caller-save.
13097 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13098 -fuse-caller-save.
13099 * lra-constraints.c (need_for_call_save_p): Use
13100 actual_call_used_reg_set instead of call_used_reg_set for
13101 -fuse-caller-save.
13102 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13103
13104 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13105 Tom de Vries <tom@codesourcery.com>
13106
13107 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13108 to gccoptlist.
13109 (@item -fuse-caller-save): New item.
13110
13111 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13112 Tom de Vries <tom@codesourcery.com>
13113
13114 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13115 OPT_fuse_caller_save.
13116
13117 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13118 Tom de Vries <tom@codesourcery.com>
13119
13120 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13121 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13122 get_call_reg_set_usage.
13123 * resource.c (mark_set_resources, mark_target_live_regs): Use
13124 get_call_reg_set_usage.
13125 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13126 field.
13127 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13128 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13129 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13130 * ira-build.c (ira_create_allocno): Init
13131 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13132 (create_cap_allocno, propagate_allocno_info)
13133 (propagate_some_info_from_allocno)
13134 (copy_info_to_removed_store_destinations): Handle
13135 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13136 * ira-costs.c (ira_tune_allocno_costs): Use
13137 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13138
13139 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13140 Tom de Vries <tom@codesourcery.com>
13141
13142 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13143 and function_used_regs_valid fields.
13144 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13145 find_all_hard_reg_sets.
13146 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13147 (get_call_reg_set_usage): New function.
13148 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13149 * regs.h (get_call_reg_set_usage): Declare.
13150
13151 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13152
13153 PR libgcc/61152
13154 * config/dbx.h (License): Add Runtime Library Exception.
13155 * config/newlib-stdint.h (License): Same.
13156 * config/rtems.h (License): Same
13157 * config/initfini-array.h (License): Same
13158 * config/v850/v850.h (License): Same.
13159 * config/v850/v850-opts.h (License): Same
13160 * config/v850/rtems.h (License): Same.
13161
13162 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13163
13164 PR target/61044
13165 * doc/extend.texi (Local Labels): Note that label differences are
13166 not supported for AVR.
13167
13168 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13169 Olivier Hainque <hainque@adacore.com>
13170
13171 * rtl.h (set_for_reg_notes): Declare.
13172 * emit-rtl.c (set_for_reg_notes): New function.
13173 (set_unique_reg_note): Use it.
13174 * optabs.c (add_equal_note): Likewise
13175
13176 2014-05-27 Andrew Pinski <apinski@cavium.com>
13177
13178 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13179 Use <w> for the register in assembly template.
13180 (stack_protect_test): Use the mode of operands[0] for the result.
13181 (stack_protect_test_<mode>): Use <w> for the register
13182 in assembly template.
13183
13184 2014-05-27 DJ Delorie <dj@redhat.com>
13185
13186 * config/rx/rx.c (add_vector_labels): New.
13187 (rx_output_function_prologue): Call it.
13188 (rx_handle_func_attribute): Don't require empty arguments.
13189 (rx_handle_vector_attribute): New.
13190 (rx_attribute_table): Add "vector" attribute.
13191 * doc/extend.texi (interrupt, vector): Document new/changed
13192 RX-specific attributes.
13193
13194 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13195
13196 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13197
13198 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13199 predicate to detect a negative quotient.
13200
13201 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13202
13203 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13204 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13205 Add X - Y CMP 0 to X CMP Y transformation.
13206 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13207
13208 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13209
13210 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13211 before printing.
13212
13213 2014-05-27 Steve Ellcey <sellcey@mips.com>
13214
13215 * config/mips/mips.c: Add include of cgraph.h.
13216
13217 2014-05-27 Richard Biener <rguenther@suse.de>
13218
13219 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13220
13221 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13222
13223 PR libgcc/61152
13224 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13225 * config/arm/arm-cores.def (License): Same.
13226 * config/arm/arm-opts.h (License): Same.
13227 * config/arm/aout.h (License): Same.
13228 * config/arm/bpabi.h (License): Same.
13229 * config/arm/elf.h (License): Same.
13230 * config/arm/linux-elf.h (License): Same.
13231 * config/arm/linux-gas.h (License): Same.
13232 * config/arm/netbsd-elf.h (License): Same.
13233 * config/arm/uclinux-eabi.h (License): Same.
13234 * config/arm/uclinux-elf.h (License): Same.
13235 * config/arm/vxworks.h (License): Same.
13236
13237 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13238
13239 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13240 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13241 (arm_init_neon_builtins): Handle NEON_BSWAP.
13242 Define required type nodes.
13243 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13244 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13245 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13246 * config/arm/iterators.md (VDQHSD): New mode iterator.
13247
13248 2014-05-27 Richard Biener <rguenther@suse.de>
13249
13250 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13251 Try using literal operands when comparing value-ranges failed.
13252
13253 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13254
13255 * ira.c (commutative_operand): Adjust for change to recog_data.
13256 [Missing from previous commit.]
13257
13258 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13259
13260 * system.h (TEST_BIT): New macro.
13261 * recog.h (alternative_mask): New type.
13262 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13263 (recog_data_d): Replace alternative_enabled_p array with
13264 enabled_alternatives.
13265 (target_recog): New structure.
13266 (default_target_recog, this_target_recog): Declare.
13267 (get_enabled_alternatives, recog_init): Likewise.
13268 * recog.c (default_target_recog, this_target_recog): New variables.
13269 (get_enabled_alternatives): New function.
13270 (extract_insn): Use it.
13271 (recog_init): New function.
13272 (preprocess_constraints, constrain_operands): Adjust for change to
13273 recog_data.
13274 * postreload.c (reload_cse_simplify_operands): Likewise.
13275 * reload.c (find_reloads): Likewise.
13276 * ira-costs.c (record_reg_classes): Likewise.
13277 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13278 all alternatives after a disabled one would be skipped.
13279 (ira_implicitly_set_insn_hard_regs): Likewise.
13280 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13281 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13282 with enabled_alternatives.
13283 * lra.c (free_insn_recog_data): Update accordingly.
13284 (lra_update_insn_recog_data): Likewise.
13285 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13286 * lra-constraints.c (process_alt_operands): Likewise. Handle
13287 only_alternative as part of the enabled mask.
13288 * target-globals.h (this_target_recog): Declare.
13289 (target_globals): Add a recog field.
13290 (restore_target_globals): Restore this_target_recog.
13291 * target-globals.c: Include recog.h.
13292 (default_target_globals): Initialize recog field.
13293 (save_target_globals): Likewise.
13294 * reginfo.c (reinit_regs): Call recog_init.
13295 * toplev.c (backend_init_target): Likewise.
13296
13297 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13298
13299 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13300 rather than any named insn's code.
13301
13302 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13303
13304 PR libgcc/61152
13305 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13306 * config/arm/arm-cores.def (License): Same.
13307
13308 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13309
13310 * tree.h (decl_comdat_group): Declare.
13311 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13312 * tree.c (decl_comdat_group): Here.
13313
13314 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13315
13316 PR rtl-optimization/61222
13317 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13318 the shift, truncate the PLUS operand to the result mode.
13319
13320 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13321
13322 PR target/61271
13323 * config/i386/i386.c (ix86_rtx_costs)
13324 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13325 Fix condition.
13326
13327 2014-05-26 Martin Jambor <mjambor@suse.cz>
13328
13329 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13330 subreg uses.
13331
13332 2014-05-26 Richard Biener <rguenther@suse.de>
13333
13334 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13335 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13336 Provide specializations.
13337 (wi::int_traits <HOST_WIDE_INT>,
13338 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13339
13340 2014-05-26 Alan Modra <amodra@gmail.com>
13341
13342 PR target/61098
13343 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13344 params and return a bool. Remove dead code. Update comment.
13345 Assert we have a const_int source. Remove bogus code from
13346 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13347 handling of constants > 2G and reg_equal note, from..
13348 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13349 return value. Update comment. If we can, use a new pseudo
13350 for intermediate calculations.
13351 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13352 prototype.
13353 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13354 call to rs6000_emit_set_const in splitter.
13355 (movdi_internal64+2, +3): Likewise.
13356
13357 2014-05-26 Richard Biener <rguenther@suse.de>
13358
13359 * system.h: Define __STDC_FORMAT_MACROS before
13360 including inttypes.h.
13361 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13362 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13363 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13364 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13365 HOST_WIDEST_INT_C): Remove.
13366 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13367 if C99 inttypes.h is not available.
13368 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13369 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13370 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13371 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13372 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13373 (struct output_info): Likewise.
13374 (print_statistics): Adjust.
13375 (dump_bitmap_statistics): Likewise.
13376 * bt-load.c (migrate_btr_defs): Print with PRId64.
13377 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13378 (MAX_SAFE_MULTIPLIER): Adjust.
13379 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13380 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13381 dump_cgraph_node): Likewise.
13382 * final.c (dump_basic_block_info): Likewise.
13383 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13384 * gcov.c (format_gcov): Likewise.
13385 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13386 for calculation.
13387 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13388 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13389 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13390 Use PRId64 for dumping.
13391 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13392 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13393 (add_allocno_hard_regs): Adjust.
13394 * loop-doloop.c (doloop_modify): Print using PRId64.
13395 * loop-iv.c (inverse): Compute in uint64_t.
13396 (determine_max_iter, iv_number_of_iterations): Likewise.
13397 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13398 Print using PRId64.
13399 * lto-streamer-out.c (write_symbol): Use uint64_t.
13400 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13401 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13402 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13403 * modulo-sched.c (const_iteration_count): Use int64_t.
13404 (sms_schedule): Dump using PRId64.
13405 * predict.c (dump_prediction): Likewise.
13406 * pretty-print.h (pp_widest_integer): Remove.
13407 * profile.c (get_working_sets, is_edge_inconsistent,
13408 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13409 * tree-pretty-print.c (pp_double_int): Remove case handling
13410 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13411 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13412 and adjust users.
13413 (pass_optimize_bswap::execute): Remove restriction on hosts.
13414 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13415 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13416 * tree.c (widest_int_cst_value): Remove.
13417 * tree.h (widest_int_cst_value): Likewise.
13418 * value-prof.c (dump_histogram_value): Print using PRId64.
13419 * gengtype.c (main): Also inject int64_t.
13420 * ggc-page.c (struct max_alignment): Use int64_t.
13421 * alloc-pool.c (struct allocation_object_def): Likewise.
13422 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13423 for computation.
13424 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13425 * doc/tm.texi: Regenerated.
13426 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13427 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13428 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13429 mmix_output_register_setting): Use [u]int64_t in prototypes.
13430 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13431 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13432 mmix_output_octa, mmix_output_shifted_value): Adjust.
13433 (mmix_intval): Adjust. Remove unreachable case.
13434 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13435
13436 2014-05-26 Richard Biener <rguenther@suse.de>
13437
13438 * configure.ac: Drop __int64 type check. Insist that we
13439 found uint64_t and int64_t.
13440 * hwint.h (HOST_BITS_PER___INT64): Remove.
13441 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13442 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13443 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13444 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13445 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13446 for dst_q_src_df_rms_cdt.
13447 * configure: Regenerate.
13448 * config.in: Likewise.
13449
13450 2014-05-26 Michael Tautschnig <mt@debian.org>
13451
13452 PR target/61249
13453 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13454 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13455
13456 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13457
13458 PR rtl-optimization/61278
13459 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13460
13461 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13462
13463 PR rtl-optimization/61220
13464 Part of PR rtl-optimization/61225
13465 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13466 insn; skip split_edge for a block with only one successor.
13467
13468 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13469
13470 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13471 for variables.
13472
13473 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13474
13475 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13476 (update_vtable_references): New function.
13477 (function_and_variable_visibility): Rewrite also vtable initializers.
13478 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13479
13480 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13481
13482 * ggc.h (ggc_grow): New function.
13483 * ggc-none.c (ggc_grow): New function.
13484 * ggc-page.c (ggc_grow): Likewise.
13485
13486 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13487
13488 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13489 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13490 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13491 varpool_externally_visible_p, can_replace_by_local_alias,
13492 update_visibility_by_resolution_info, function_and_variable_visibility,
13493 pass_data_ipa_function_and_variable_visibility,
13494 make_pass_ipa_function_and_variable_visibility,
13495 whole_program_function_and_variable_visibility,
13496 pass_data_ipa_whole_program_visibility,
13497 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13498 * cgraph.h (cgraph_local_node_p): Declare.
13499 * ipa-visibility.c: New file.
13500 * Makefile.in (OBJS): Add ipa-visiblity.o
13501
13502 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13503
13504 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13505 that var decl is available.
13506
13507 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13508
13509 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13510 symtab_node pointer.
13511 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13512 (find_decls_types_r): Do not walk COMDAT_GROUP.
13513 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13514 * varasm.c (make_decl_one_only): Use set_comdat_group;
13515 create node if needed.
13516 * ipa-inline-transform.c (save_inline_function_body): Update
13517 way we decl->symtab mapping.
13518 * symtab.c (symtab_hash, hash_node, eq_node
13519 symtab_insert_node_to_hashtable): Remove.
13520 (symtab_register_node): Update.
13521 (symtab_unregister_node): Update.
13522 (symtab_get_node): Reimplement as inline function.
13523 (symtab_add_to_same_comdat_group): Update.
13524 (symtab_dissolve_same_comdat_group_list): Update.
13525 (dump_symtab_base): Update.
13526 (verify_symtab_base): Update.
13527 (symtab_make_decl_local): Update.
13528 (fixup_same_cpp_alias_visibility): Update.
13529 (symtab_nonoverwritable_alias): Update.
13530 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13531 * ipa.c (update_visibility_by_resolution_info): UPdate.
13532 * bb-reorder.c: Include cgraph.h
13533 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13534 with comdat groups.
13535 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13536 * cgraph.c (cgraph_get_create_node): Update.
13537 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13538 and comdat_group_.
13539 (symtab_get_node): Make inline.
13540 (symtab_insert_node_to_hashtable): Remove.
13541 (symtab_can_be_discarded): Update.
13542 (decl_comdat_group): New function.
13543 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13544 Update.
13545 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13546 comdat group name.
13547 (read_comdat_group): New function.
13548 (input_node, input_varpool_node): Use it.
13549 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13550 comdat groups.
13551 * mips.c (mips_start_unique_function): Likewise.
13552 (ix86_code_end): Likewise.
13553 (rs6000_code_end): Likweise.
13554 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13555
13556 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13557
13558 * gengtype-state.c (fatal_reading_state): Bring offline.
13559 * optabs.c (widening_optab_handler): Bring offline.
13560 * optabs.h (widening_optab_handler): Likewise.
13561 * final.c (get_attr_length_1): Likewise.
13562
13563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13564
13565 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13566
13567 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13568
13569 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13570 (ppc440-compare): Include shift with dot.
13571 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13572 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13573 without dot.
13574 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13575 without dot.
13576 (e6500_sfx2): Include it.
13577 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13578 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13579 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13580 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13581 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13582 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13583 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13584 *lshiftrt_internal1le, *lshiftrt_internal1be,
13585 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13586 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13587 *rotldi3_internal10le, *rotldi3_internal10be,
13588 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13589 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13590 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13591 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13592 define_insns): Use type "shift" in the appropriate alternatives.
13593
13594 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13595
13596 * config/rs6000/rs6000.md (type): Add "logical". Delete
13597 "fast_compare".
13598 (dot): Adjust comment.
13599 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
13600 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
13601 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
13602 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
13603 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
13604 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
13605 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
13606 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13607
13608 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13609 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13610 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13611 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13612 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13613 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13614 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13615 * config/rs6000/8540.md (ppc8540_su): Adjust.
13616 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13617 cell-cmp-microcoded): Adjust.
13618 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13619 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13620 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13621 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13622 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13623 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13624 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13625 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13626 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13627 Adjust.
13628 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13629 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
13630 Adjust. Adjust comment.
13631 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13632 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13633
13634 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13635
13636 * config/rs6000/rs6000.md (type): Add "add".
13637 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
13638 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
13639 define_insns): Use it.
13640 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13641
13642 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13643 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13644 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13645 * config/rs6000/601.md (ppc601-integer): Adjust.
13646 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13647 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13648 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13649 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13650 * config/rs6000/8540.md (ppc8540_su): Adjust.
13651 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13652 cell-cmp-microcoded): Adjust.
13653 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13654 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13655 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13656 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13657 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13658 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13659 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13660 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13661 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13662 Adjust.
13663 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13664 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
13665 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13666 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13667
13668 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13669
13670 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
13671 "delayed_compare", "var_delayed_compare".
13672 (var_shift): New attribute.
13673 (cell_micro): Adjust.
13674 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
13675 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
13676 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
13677 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13678 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13679 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13680 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13681 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
13682 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
13683 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13684 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
13685 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
13686 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
13687 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
13688 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
13689 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
13690 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
13691 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
13692 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
13693 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
13694 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
13695 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
13696 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
13697 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13698 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13699
13700 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13701 * config/rs6000/440.md (ppc440-integer): Adjust.
13702 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13703 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
13704 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13705 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13706 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13707 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13708 * config/rs6000/8540.md (ppc8540_su): Adjust.
13709 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13710 cell-cmp-microcoded): Adjust.
13711 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
13712 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13713 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
13714 e500mc64_delayed): Adjust.
13715 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
13716 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
13717 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13718 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
13719 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
13720 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
13721 power6-delayed-compare, power6-var-delayed-compare): Adjust.
13722 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
13723 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
13724 Adjust comment.
13725 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13726 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13727
13728 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13729
13730 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
13731 (bits): New mode_attr.
13732 (idiv_ldiv): Delete mode_attr.
13733 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
13734 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13735 rs6000_adjust_priority, is_nonpipeline_insn,
13736 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13737
13738 * config/rs6000/40x.md (ppc403-idiv): Adjust.
13739 * config/rs6000/440.md (ppc440-idiv): Adjust.
13740 * config/rs6000/476.md (ppc476-idiv): Adjust.
13741 * config/rs6000/601.md (ppc601-idiv): Adjust.
13742 * config/rs6000/603.md (ppc603-idiv): Adjust.
13743 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
13744 ppc620-ldiv): Adjust.
13745 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
13746 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
13747 * config/rs6000/8540.md (ppc8540_divide): Adjust.
13748 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
13749 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
13750 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
13751 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
13752 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
13753 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
13754 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
13755 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
13756 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
13757 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
13758 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
13759 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
13760 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
13761 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
13762 * config/rs6000/titan.md (titan_fxu_div): Adjust.
13763
13764 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13765
13766 * config/rs6000/rs6000.md (type): Delete "insert_word",
13767 "insert_dword". Add "insert".
13768 (size): Update comment.
13769 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13770 insn_must_be_first_in_group): Adjust.
13771 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13772 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13773 *insvsi_internal6, insvdi_internal): Adjust.
13774
13775 * config/rs6000/40x.md (ppc403-integer): Adjust.
13776 * config/rs6000/440.md (ppc440-integer): Adjust.
13777 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
13778 * config/rs6000/601.md (ppc601-integer): Adjust.
13779 * config/rs6000/603.md (ppc603-integer): Adjust.
13780 * config/rs6000/6xx.md (ppc604-integer): Adjust.
13781 * config/rs6000/7450.md (ppc7450-integer): Adjust.
13782 * config/rs6000/7xx.md (ppc750-integer): Adjust.
13783 * config/rs6000/8540.md (ppc8540_su): Adjust.
13784 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
13785 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
13786 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13787 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
13788 * config/rs6000/e5500.md (e5500_sfx): Adjust.
13789 * config/rs6000/e6500.md (e6500_sfx): Adjust.
13790 * config/rs6000/mpc.md (mpccore-integer): Adjust.
13791 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
13792 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
13793 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
13794 * config/rs6000/power7.md (power7-integer): Adjust.
13795 * config/rs6000/power8.md (power8-1cyc): Adjust.
13796 * config/rs6000/rs64.md (rs64a-integer): Adjust.
13797 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13798
13799 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13800
13801 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
13802 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
13803 (size): New attribute.
13804 (dot): New attribute.
13805 (cell_micro): Adjust.
13806 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
13807 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
13808 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
13809 umuldi3_highpart): Adjust.
13810 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13811 rs6000_adjust_priority, is_nonpipeline_insn,
13812 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13813
13814 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
13815 ppc405-imul3): Adjust.
13816 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
13817 * config/rs6000/476.md (ppc476-imul): Adjust.
13818 * config/rs6000/601.md (ppc601-imul): Adjust.
13819 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
13820 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
13821 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
13822 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
13823 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
13824 Adjust.
13825 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
13826 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
13827 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
13828 cell-imul): Adjust.
13829 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
13830 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
13831 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
13832 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
13833 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
13834 * config/rs6000/mpc.md (mpccore-imul): Adjust.
13835 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
13836 power4-lmul, power4-imul, power4-imul3): Adjust.
13837 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
13838 power5-lmul, power5-imul, power5-imul3): Adjust.
13839 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
13840 power6-lmul, power6-imul, power6-imul3): Adjust.
13841 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
13842 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
13843
13844 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
13845 rs64a-lmul): Adjust.
13846 * config/rs6000/titan.md (titan_imul): Adjust.
13847
13848 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13849
13850 * config/rs6000/rs6000.md (type): Add new value "halfmul".
13851 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
13852 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
13853 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
13854 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
13855 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
13856 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
13857 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
13858 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
13859 * config/rs6000/titan.md: Delete nonsensical comment.
13860 (titan_imul): Add type imul3.
13861 (titan_mulhw): Remove type imul3; add type halfmul.
13862
13863 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13864
13865 * config/rs6000/rs6000.md (type): Reorder, reformat.
13866
13867 2014-05-23 Martin Jambor <mjambor@suse.cz>
13868
13869 PR tree-optimization/53787
13870 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
13871 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
13872 analysis_done, update all uses.
13873 * ipa-prop.c: Include domwalk.h
13874 (param_analysis_info): Removed.
13875 (param_aa_status): New type.
13876 (ipa_bb_info): Likewise.
13877 (func_body_info): Likewise.
13878 (ipa_get_bb_info): New function.
13879 (aa_overwalked): Likewise.
13880 (find_dominating_aa_status): Likewise.
13881 (parm_bb_aa_status_for_bb): Likewise.
13882 (parm_preserved_before_stmt_p): Changed to use new param AA info.
13883 (load_from_unmodified_param): Accept func_body_info as a parameter
13884 instead of parms_ainfo.
13885 (parm_ref_data_preserved_p): Changed to use new param AA info.
13886 (parm_ref_data_pass_through_p): Likewise.
13887 (ipa_load_from_parm_agg_1): Likewise. Update callers.
13888 (compute_complex_assign_jump_func): Changed to use new param AA info.
13889 (compute_complex_ancestor_jump_func): Likewise.
13890 (ipa_compute_jump_functions_for_edge): Likewise.
13891 (ipa_compute_jump_functions): Removed.
13892 (ipa_compute_jump_functions_for_bb): New function.
13893 (ipa_analyze_indirect_call_uses): Likewise, moved variable
13894 declarations down.
13895 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
13896 and info, moved variable declarations down.
13897 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
13898 node and info.
13899 (ipa_analyze_stmt_uses): Likewise.
13900 (ipa_analyze_params_uses): Removed.
13901 (ipa_analyze_params_uses_in_bb): New function.
13902 (ipa_analyze_controlled_uses): Likewise.
13903 (free_ipa_bb_info): Likewise.
13904 (analysis_dom_walker): New class.
13905 (ipa_analyze_node): Handle node-specific forbidden analysis,
13906 initialize and free func_body_info, use dominator walker.
13907 (ipcp_modif_dom_walker): New class.
13908 (ipcp_transform_function): Create and free func_body_info, use
13909 ipcp_modif_dom_walker, moved a lot of functionality there.
13910
13911 2014-05-23 Marek Polacek <polacek@redhat.com>
13912 Jakub Jelinek <jakub@redhat.com>
13913
13914 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
13915 * gcc.c (sanitize_spec_function): Likewise.
13916 * convert.c (convert_to_integer): Include "ubsan.h". Add
13917 floating-point to integer instrumentation.
13918 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
13919 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
13920 SANITIZE_NONDEFAULT.
13921 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
13922 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
13923 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
13924 * ubsan.c: Include "realmpfr.h" and "dfp.h".
13925 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
13926 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
13927 float/double/long double.
13928 (ubsan_instrument_float_cast): New function.
13929 * ubsan.h (ubsan_instrument_float_cast): Declare.
13930
13931 2014-05-23 Jiong Wang <jiong.wang@arm.com>
13932
13933 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
13934 predicate.
13935 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
13936 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
13937 Adjust for tailcalling through registers.
13938 * config/aarch64/aarch64.h (enum reg_class): New caller save
13939 register class.
13940 (REG_CLASS_NAMES): Likewise.
13941 (REG_CLASS_CONTENTS): Likewise.
13942 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
13943 Allow tailcalling without decls.
13944
13945 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13946
13947 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13948 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
13949
13950 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
13951 gsi, and variables v_* to v*.
13952
13953 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
13954
13955 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
13956
13957 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13958
13959 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
13960 * omp-low.c: Update accordingly.
13961
13962 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
13963 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
13964 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
13965 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
13966 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
13967 GF_OMP_TARGET_KIND_UPDATE.
13968
13969 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13970 Explicitly enumerate the expected region types.
13971
13972 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
13973
13974 PR other/56955
13975 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
13976 documentation; the old documentation didn't clearly state the
13977 constraints on the contents of the pointed-to storage.
13978
13979 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13980
13981 Fix bootstrap error on ia64
13982 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
13983 Return default value.
13984
13985 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
13986
13987 PR tree-optimization/54733
13988 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
13989 (CMPNOP): Define.
13990 (find_bswap_or_nop_load): New.
13991 (find_bswap_1): Renamed to ...
13992 (find_bswap_or_nop_1): This. Also add support for memory source.
13993 (find_bswap): Renamed to ...
13994 (find_bswap_or_nop): This. Also add support for memory source and
13995 detection of bitwise operations equivalent to load in target
13996 endianness.
13997 (execute_optimize_bswap): Likewise. Also move its leading comment back
13998 in place and split statement transformation into ...
13999 (bswap_replace): This.
14000
14001 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14002
14003 PR rtl-optimization/61215
14004 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14005 simplify_gen_subreg until final substitution.
14006
14007 2014-05-23 Alan Modra <amodra@gmail.com>
14008
14009 PR target/61231
14010 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14011 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14012 Use "Y" constraint rather than "m".
14013
14014 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14015
14016 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14017 define.
14018 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14019 New function declaration.
14020 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14021 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14022 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14023 (aarch64_init_builtins) : Initialize builtins
14024 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14025 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14026 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14027 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14028 and __builtins_aarch64_set_fpsr.
14029 (aarch64_atomic_assign_expand_fenv): New function.
14030 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14031 (get_fpcr) : Likewise.
14032 (set_fpsr) : Likewise.
14033 (get_fpsr) : Likewise.
14034 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14035 and UNSPECV_SET_FPSR.
14036 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14037 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14038 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14039
14040 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14041
14042 PR rtl-optimization/60969
14043 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14044 constraints. Set up mem cost for NO_REGS case.
14045
14046 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14047
14048 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14049
14050 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14051
14052 * config/darwin.c: Include "lto-section-names.h".
14053 (LTO_SEGMENT_NAME): Don't define.
14054 * config/i386/winnt.c: Include "lto-section-names.h".
14055 * lto-streamer.c: Include "lto-section-names.h".
14056 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14057 * lto-wrapper.c: Include "lto-section-names.h".
14058 (LTO_SECTION_NAME_PREFIX): Don't define.
14059 * lto-section-names.h: New file.
14060 * cgraphunit.c: Include "lto-section-names.h".
14061
14062 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14063
14064 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14065
14066 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14067
14068 PR target/61208
14069 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14070
14071 2014-05-22 Nick Clifton <nickc@redhat.com>
14072
14073 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14074
14075 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14076
14077 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14078 -> (T)A transformation to integer types.
14079
14080 2014-05-22 Teresa Johnson <tejohnson@google.com>
14081
14082 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14083 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14084 (gcov_rewrite): Use gcov_nonruntime_assert.
14085 (gcov_open): Ditto.
14086 (gcov_write_words): Ditto.
14087 (gcov_write_length): Ditto.
14088 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14089 gcc_assert from IN_LIBGCOV code.
14090 (gcov_read_summary): Use gcov_error to flag profile corruption.
14091 (gcov_sync): Use gcov_nonruntime_assert.
14092 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14093 (gcov_histo_index): Use gcov_nonruntime_assert.
14094 (static void gcov_histogram_merge): Ditto.
14095 (compute_working_sets): Ditto.
14096 * gcov-io.h (gcov_nonruntime_assert): Define.
14097 (gcov_error): Define for !IN_LIBGCOV
14098
14099 2014-05-22 Richard Biener <rguenther@suse.de>
14100
14101 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14102 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14103 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14104 and deallocation site.
14105 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14106 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14107 passing through the incoming points-to set.
14108 (handle_lhs_call): Use flags argument instead of recomputing it.
14109 (find_func_aliases_for_call): Call handle_lhs_call with proper
14110 call return flags.
14111
14112 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14113
14114 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14115 all padding bits in REAL_VALUE_TYPE are cleared.
14116
14117 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14118
14119 Cleanup and improve multipass_dfa_lookahead_guard
14120 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14121 (core2i7_first_cycle_multipass_begin,)
14122 (core2i7_first_cycle_multipass_issue,)
14123 (core2i7_first_cycle_multipass_backtrack): Update signature.
14124 * config/ia64/ia64.c
14125 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14126 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14127 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14128 hook definition.
14129 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14130 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14131 values.
14132 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14133 return values.
14134 * doc/tm.texi: Regenerate.
14135 * doc/tm.texi.in
14136 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14137 * haifa-sched.c (ready_try): Make signed to allow negative values.
14138 (rebug_ready_list_1): Update.
14139 (choose_ready): Simplify.
14140 (sched_extend_ready_list): Update.
14141
14142 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14143
14144 Remove IA64 speculation tweaking flags
14145 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14146 speculation tuning flags.
14147 (msched-prefer-non-data-spec-insns,)
14148 (msched-prefer-non-control-spec-insns): Obsolete options.
14149 * haifa-sched.c (choose_ready): Remove handling of
14150 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14151 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14152 and PREFER_NON_DATA_SPEC.
14153 * sel-sched.c (process_spec_exprs): Remove handling of
14154 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14155
14156 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14157
14158 Improve scheduling debug output
14159 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14160 (advance_one_cycle): Update.
14161 (schedule_insn, queue_to_ready): Add debug printouts.
14162 (debug_ready_list_1): New static function.
14163 (debug_ready_list): Update.
14164 (max_issue): Add debug printouts.
14165 (dump_insn_stream): New static function.
14166 (schedule_block): Use it. Also better indent printouts.
14167
14168 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14169
14170 Fix sched_insn debug counter
14171 * haifa-sched.c (schedule_insn): Update.
14172 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14173 (save_backtrack_point, restore_backtrack_point): Update.
14174 (first_nonscheduled_insn): New static function.
14175 (queue_to_ready, choose_ready): Use it.
14176 (schedule_block): Init nonscheduled_insns_begin.
14177 (sched_emit_insn): Update.
14178
14179
14180 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14181
14182 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14183 to GENERAL_REGS.
14184 (aarch64_secondary_reload) : LikeWise.
14185 (aarch64_class_max_nregs) : Remove CORE_REGS.
14186 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14187 (REG_CLASS_NAMES) : Likewise.
14188 (REG_CLASS_CONTENTS) : LikeWise.
14189 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14190
14191 2014-05-21 Guozhi Wei <carrot@google.com>
14192
14193 PR target/61202
14194 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14195 constraint.
14196 (vqdmulhq_n_s16): Likewise.
14197
14198 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14199
14200 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14201
14202 2014-05-21 Marek Polacek <polacek@redhat.com>
14203
14204 PR sanitizer/61272
14205 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14206
14207 2014-05-21 Martin Jambor <mjambor@suse.cz>
14208
14209 * doc/invoke.texi (Optimize Options): Document parameters
14210 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14211 ipa-cp-array-index-hint-bonus.
14212
14213 2014-05-21 Mark Wielaard <mjw@redhat.com>
14214
14215 PR debug/16063
14216 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14217 version >= 3 or not strict DWARF.
14218 * langhooks.h (struct lang_hooks_for_types): Add
14219 enum_underlying_base_type.
14220 * langhooks.c (lhd_enum_underlying_base_type): New function.
14221 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14222 enum_underlying_base_type.
14223 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14224 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14225 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14226
14227 2014-05-21 Richard Biener <rguenther@suse.de>
14228
14229 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14230
14231 2014-05-21 John Marino <gnugcc@marino.st>
14232
14233 * config.gcc (*-*-dragonfly*): New target.
14234 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14235 * configure: Regenerate.
14236 * config/dragonfly-stdint.h: New.
14237 * config/dragonfly.h: New.
14238 * config/dragonfly.opt: New.
14239 * config/i386/dragonfly.h: New.
14240 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14241
14242 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14243
14244 * tree.def (VOID_CST): New.
14245 * tree-core.h (TI_VOID): New.
14246 * tree.h (void_node): New.
14247 * tree.c (tree_node_structure_for_code, tree_code_size)
14248 (iterative_hash_expr): Handle VOID_CST.
14249 (build_common_tree_nodes): Initialize void_node.
14250
14251 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14252
14253 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14254 functions.
14255 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14256
14257 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14258 more places.
14259
14260 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14261 flag_reorder_blocks_and_partition.
14262 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14263
14264 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14265
14266 PR target/54236
14267 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14268 constraints.
14269 (*addc_r_t): Add new insn_and_split.
14270
14271 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14272
14273 PR middle-end/61252
14274 * omp-low.c (handle_simd_reference): New function.
14275 (lower_rec_input_clauses): Use it. Defer adding reference
14276 initialization even for reduction without placeholder if in simd,
14277 handle it properly later on.
14278
14279 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14280
14281 PR tree-optimization/60899
14282 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14283 assume all static symbols will have definition wile parsing and
14284 check the do have definition later in compilation; check that
14285 variable referring symbol will be output before concluding that
14286 reference is safe; be conservative for referring local statics;
14287 be more precise about when comdat is output in other partition.
14288
14289 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14290
14291 PR bootstrap/60984
14292 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14293 parameter.
14294 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14295 (ipa_inline): Loop inline_to_all_callers until no more aliases
14296 are removed.
14297
14298 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14299
14300 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14301 set writeonly flag only for vars actually written to.
14302
14303 2014-05-20 Dehao Chen <dehao@google.com>
14304
14305 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14306 and callee count to get clone count.
14307 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14308 count in copy_body.
14309
14310 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14311
14312 PR rtl-optimization/61243
14313 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14314
14315 2014-05-20 Xinliang David Li <davidxl@google.com>
14316
14317 * cgraphunit.c (walk_polymorphic_call_targets): Add
14318 dbgcnt and fopt-info support.
14319 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14320 * ipa-devirt.c (ipa_devirt): Ditto.
14321 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14322 * ipa.c (walk_polymorphic_call_targets): Ditto.
14323 * gimple-fold.c (fold_gimple_assign): Ditto.
14324 (gimple_fold_call): Ditto.
14325 * dbgcnt.def: New counter.
14326
14327 2014-05-20 DJ Delorie <dj@redhat.com>
14328
14329 * config/msp430/msp430.md (split): Don't allow subregs when
14330 splitting SImode adds.
14331 (andneghi): Fix subtraction logic.
14332 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14333
14334 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14335
14336 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14337 symbols.
14338 * except.c (switch_to_exception_section, resolve_unique_section,
14339 get_named_text_section, default_function_rodata_section,
14340 align_variable, get_block_for_decl, default_section_type_flags):
14341 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14342 * symtab.c (symtab_add_to_same_comdat_group,
14343 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14344 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14345 Likewise.
14346 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14347 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14348 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14349 (c6x_function_in_section_p): Likewise.
14350 * config/darwin.c (machopic_select_section): Likewise.
14351 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14352 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14353 * config/mep/mep.c (mep_select_section): LIkewise.
14354 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14355
14356 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14357
14358 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14359 EH region of calls to pure functions that can throw an exception.
14360 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14361 (copy_reference_ops_from_call): Also copy the EH region of the call if
14362 it can throw an exception.
14363
14364 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14365
14366 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14367 nested VEC_SELECTs that are inverses of each other.
14368
14369 2014-05-20 Richard Biener <rguenther@suse.de>
14370
14371 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14372 (extract_and_process_scc_for_name): not here.
14373 (cond_dom_walker::before_dom_children): Only process
14374 stmts that end the BB in interesting ways.
14375 (run_scc_vn): Mark param uses as visited.
14376
14377 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14378
14379 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14380 arm_restrict_it.
14381
14382 2014-05-20 Nick Clifton <nickc@redhat.com>
14383
14384 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14385 (msp430_gimplify_va_arg_expr): New function.
14386 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14387
14388 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14389 operand 0 in order to prevent confusion about the number of
14390 registers involved.
14391
14392 2014-05-20 Richard Biener <rguenther@suse.de>
14393
14394 PR tree-optimization/61221
14395 * tree-ssa-pre.c (el_to_update): Remove.
14396 (eliminate_dom_walker::before_dom_children): Handle released
14397 VDEFs by value-numbering them to the associated VUSE. Update
14398 stmt immediately for substituted call address.
14399 (eliminate): Remove delayed stmt updating code.
14400 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14401 possibly late re-numbered vuses.
14402 (vn_reference_lookup_2): Adjust.
14403 (vn_reference_lookup_pieces): Likewise.
14404 (vn_reference_lookup): Likewise.
14405
14406 2014-05-20 Richard Biener <rguenther@suse.de>
14407
14408 * config.gcc: Remove need_64bit_hwint.
14409 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14410 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14411 it to be true.
14412 * config.in: Regenerate.
14413 * configure: Likewise.
14414
14415 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14416
14417 * doc/extend.texi: Create Label Attributes section,
14418 move all label attributes into it and reference it.
14419
14420 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14421
14422 * arm.c (thumb1_reorg): When scanning backwards skip anything
14423 that's not a proper insn.
14424
14425 2014-05-19 Richard Biener <rguenther@suse.de>
14426
14427 PR tree-optimization/61221
14428 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14429 Do nothing for unreachable blocks.
14430 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14431 Improve unreachability detection.
14432
14433 2014-05-19 Richard Biener <rguenther@suse.de>
14434
14435 PR tree-optimization/61209
14436 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14437
14438 2014-05-19 Nick Clifton <nickc@redhat.com>
14439
14440 * except.c (init_eh): Fix computation of builtin setjmp buffer
14441 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14442
14443 2014-05-19 Richard Biener <rguenther@suse.de>
14444
14445 PR tree-optimization/61184
14446 * tree-vrp.c (is_negative_overflow_infinity): Use
14447 TREE_OVERFLOW_P and do that check first.
14448 (is_positive_overflow_infinity): Likewise.
14449 (is_overflow_infinity): Likewise.
14450 (vrp_operand_equal_p): Properly treat operands with
14451 differing overflow as not equal.
14452
14453 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14454
14455 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14456 shift simplification where it was intended.
14457
14458 2014-05-19 Christian Bruel <christian.bruel@st.com>
14459
14460 PR target/61195
14461 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14462
14463 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14464
14465 PR target/61084
14466 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14467 than wide_int.
14468
14469 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14470
14471 * reg-notes.def (CROSSING_JUMP): Likewise.
14472 * rtl.h (rtx_def): Update comment for jump flag.
14473 (CROSSING_JUMP_P): Define.
14474 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14475 of a REG_CROSSING_JUMP note.
14476 * cfghooks.c (tidy_fallthru_edges): Likewise.
14477 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14478 * emit-rtl.c (try_split): Likewise.
14479 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14480 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14481 * jump.c (redirect_jump_2): Likewise.
14482 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14483 (relax_delay_slots): Likewise.
14484 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14485 (bbit_di): Likewise.
14486 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14487 * config/sh/sh.md (jump_compact): Likewise.
14488 * bb-reorder.c (rotate_loop): Likewise.
14489 (pass_duplicate_computed_gotos::execute): Likewise.
14490 (add_reg_crossing_jump_notes): Rename to...
14491 (update_crossing_jump_flags): ...this.
14492 (pass_partition_blocks::execute): Update accordingly.
14493
14494 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14495
14496 * tree.h: Remove extraneous template <>.
14497
14498 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14499
14500 * ipa.c (symtab_remove_unreachable_nodes): Remove
14501 symbol from comdat group if its body was eliminated.
14502 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14503 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14504 (symtab_unregister_node): ... this one.
14505 (verify_symtab_base): More strict checking of comdats.
14506 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14507
14508 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14509
14510 * tree-pass.h (make_pass_ipa_comdats): New pass.
14511 * timevar.def (TV_IPA_COMDATS): New timevar.
14512 * passes.def (pass_ipa_comdats): Add.
14513 * Makefile.in (OBJS): Add ipa-comdats.o
14514 * ipa-comdats.c: New file.
14515
14516 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14517
14518 * ipa.c (update_visibility_by_resolution_info): New function.
14519 (function_and_variable_visibility): Use it.
14520
14521 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14522
14523 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14524 New functions.
14525 (FOR_EACH_DEFINED_SYMBOL): New macro.
14526 (varpool_first_static_initializer, varpool_next_static_initializer,
14527 varpool_first_defined_variable, varpool_next_defined_variable):
14528 Fix comments.
14529 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14530
14531 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14532
14533 * ggc-page.c (ggc_handle_finalizers): Add comment.
14534
14535 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14536
14537 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14538 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14539 (ggc_internal_cleared_alloc): Likewise.
14540 * ggc-page.c (finalizer): New class.
14541 (vec_finalizer): Likewise.
14542 (globals::finalizers): New member.
14543 (globals::vec_finalizers): Likewise.
14544 (ggc_internal_alloc): Record the finalizer if any for the block being
14545 allocated.
14546 (ggc_handle_finalizers): New function.
14547 (ggc_collect): Call ggc_handle_finalizers.
14548 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14549 finalizer.
14550 (ggc_internal_cleared_alloc): Likewise.
14551 (finalize): New function.
14552 (need_finalization_p): Likewise.
14553 (ggc_alloc): Install the type's destructor as the finalizer if it
14554 might do something.
14555 (ggc_cleared_alloc): Likewise.
14556 (ggc_vec_alloc): Likewise.
14557 (ggc_cleared_vec_alloc): Likewise.
14558
14559 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14560
14561 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14562
14563 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14564
14565 * alias.c (record_alias_subset): Adjust.
14566 * bitmap.c (bitmap_element_allocate): Likewise.
14567 (bitmap_gc_alloc_stat): Likewise.
14568 * cfg.c (init_flow): Likewise.
14569 (alloc_block): Likewise.
14570 (unchecked_make_edge): Likewise.
14571 * cfgloop.c (alloc_loop): Likewise.
14572 (flow_loops_find): Likewise.
14573 (rescan_loop_exit): Likewise.
14574 * cfgrtl.c (init_rtl_bb_info): Likewise.
14575 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14576 (cgraph_allocate_node): Likewise.
14577 (cgraph_create_edge_1): Likewise.
14578 (cgraph_allocate_init_indirect_info): Likewise.
14579 * cgraphclones.c (cgraph_clone_edge): Likewise.
14580 * cgraphunit.c (add_asm_node): Likewise.
14581 (init_lowered_empty_function): Likewise.
14582 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14583 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14584 (alpha_use_linkage): Likewise.
14585 * config/arc/arc.c (arc_init_machine_status): Likewise.
14586 * config/arm/arm.c (arm_init_machine_status): Likewise.
14587 * config/avr/avr.c (avr_init_machine_status): Likewise.
14588 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14589 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14590 * config/cris/cris.c (cris_init_machine_status): Likewise.
14591 * config/darwin.c (machopic_indirection_name): Likewise.
14592 (darwin_build_constant_cfstring): Likewise.
14593 (darwin_enter_string_into_cfstring_table): Likewise.
14594 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14595 * config/frv/frv.c (frv_init_machine_status): Likewise.
14596 * config/i386/i386.c (get_dllimport_decl): Likewise.
14597 (ix86_init_machine_status): Likewise.
14598 (assign_386_stack_local): Likewise.
14599 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14600 (i386_pe_maybe_record_exported_symbol): Likewise.
14601 (i386_pe_record_stub): Likewise.
14602 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14603 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14604 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14605 (m32c_note_pragma_address): Likewise.
14606 * config/mep/mep.c (mep_init_machine_status): Likewise.
14607 (mep_note_pragma_flag): Likewise.
14608 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
14609 (mips16_local_alias): Likewise.
14610 (mips_init_machine_status): Likewise.
14611 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
14612 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
14613 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
14614 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
14615 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
14616 * config/pa/pa.c (pa_init_machine_status): Likewise.
14617 (pa_get_deferred_plabel): Likewise.
14618 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
14619 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
14620 (rs6000_init_machine_status): Likewise.
14621 (output_toc): Likewise.
14622 * config/s390/s390.c (s390_init_machine_status): Likewise.
14623 * config/score/score.c (score_output_external): Likewise.
14624 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14625 * config/spu/spu.c (spu_init_machine_status): Likewise.
14626 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
14627 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
14628 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14629 * coverage.c (coverage_end_function): Likewise.
14630 * dbxout.c (dbxout_init): Likewise.
14631 * doc/gty.texi: Don't mention variable_size attribute.
14632 * dwarf2cfi.c (new_cfi): Adjust.
14633 (new_cfi_row): Likewise.
14634 (copy_cfi_row): Likewise.
14635 (create_cie_data): Likewise.
14636 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
14637 (new_loc_descr): Likewise.
14638 (find_AT_string_in_table): Likewise.
14639 (add_addr_table_entry): Likewise.
14640 (new_die): Likewise.
14641 (add_var_loc_to_decl): Likewise.
14642 (clone_die): Likewise.
14643 (clone_as_declaration): Likewise.
14644 (break_out_comdat_types): Likewise.
14645 (new_loc_list): Likewise.
14646 (add_loc_descr_to_each): Likewise.
14647 (add_location_or_const_value_attribute): Likewise.
14648 (add_linkage_name): Likewise.
14649 (lookup_filename): Likewise.
14650 (dwarf2out_var_location): Likewise.
14651 (new_line_info_table): Likewise.
14652 (dwarf2out_init): Likewise.
14653 (mem_loc_descriptor): Likewise.
14654 (loc_descriptor): Likewise.
14655 (add_const_value_attribute): Likewise.
14656 (tree_add_const_value_attribute): Likewise.
14657 (comp_dir_string): Likewise.
14658 (dwarf2out_vms_debug_main_pointer): Likewise.
14659 (string_cst_pool_decl): Likewise.
14660 * emit-rtl.c (set_mem_attrs): Likewise.
14661 (get_reg_attrs): Likewise.
14662 (start_sequence): Likewise.
14663 (init_emit): Likewise.
14664 (init_emit_regs): Likewise.
14665 * except.c (init_eh_for_function): Likewise.
14666 (gen_eh_region): Likewise.
14667 (gen_eh_region_catch): Likewise.
14668 (gen_eh_landing_pad): Likewise.
14669 (add_call_site): Likewise.
14670 * function.c (add_frame_space): Likewise.
14671 (insert_temp_slot_address): Likewise.
14672 (assign_stack_temp_for_type): Likewise.
14673 (get_hard_reg_initial_val): Likewise.
14674 (allocate_struct_function): Likewise.
14675 (prepare_function_start): Likewise.
14676 (types_used_by_var_decl_insert): Likewise.
14677 * gengtype.c (variable_size_p): Remove function.
14678 (enum alloc_quantity): Remove enum.
14679 (write_typed_alloc_def): Remove function.
14680 (write_typed_struct_alloc_def): Likewise.
14681 (write_typed_typedef_alloc_def): Likewise.
14682 (write_typed_alloc_defns): Likewise.
14683 (main): Adjust.
14684 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
14685 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
14686 * ggc.h (ggc_alloc): new function.
14687 (ggc_cleared_alloc): Likewise.
14688 (ggc_vec_alloc): Template on type of vector element, and remove
14689 element size argument.
14690 (ggc_cleared_vec_alloc): Likewise.
14691 * gimple.c (gimple_build_omp_for): Adjust.
14692 (gimple_copy): Likewise.
14693 * ipa-cp.c (get_replacement_map): Likewise.
14694 (find_aggregate_values_for_callers_subset): Likewise.
14695 (known_aggs_to_agg_replacement_list): Likewise.
14696 * ipa-devirt.c (get_odr_type): Likewise.
14697 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
14698 (read_agg_replacement_chain): Likewise.
14699 * loop-iv.c (get_simple_loop_desc): Likewise.
14700 * lto-cgraph.c (input_node_opt_summary): Likewise.
14701 * lto-section-in.c (lto_new_in_decl_state): Likewise.
14702 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
14703 (input_eh_region): Likewise.
14704 (input_eh_lp): Likewise.
14705 (input_cfg): Likewise.
14706 * optabs.c (set_optab_libfunc): Likewise.
14707 (init_tree_optimization_optabs): Likewise.
14708 (set_conv_libfunc): Likewise.
14709 * passes.c (do_per_function_toporder): Likewise.
14710 * rtl.h: Don't use variable_size gty attribute.
14711 * sese.c (if_region_set_false_region): Adjust.
14712 * stringpool.c (gt_pch_save_stringpool): Likewise.
14713 * target-globals.c (save_target_globals): Likewise.
14714 * toplev.c (general_init): Likewise.
14715 * trans-mem.c (record_tm_replacement): Likewise.
14716 (split_bb_make_tm_edge): Likewise.
14717 * tree-cfg.c (move_sese_region_to_fn): Likewise.
14718 * tree-data-ref.h (lambda_vector_new): Likewise.
14719 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
14720 * tree-iterator.c (tsi_link_before): Likewise.
14721 (tsi_link_after): Likewise.
14722 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
14723 * tree-ssa-loop-niter.c (record_estimate): Likewise.
14724 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
14725 * tree-ssa-operands.h: Don't use variable_size gty attribute.
14726 * tree-ssa.c (init_tree_ssa): Adjust.
14727 * tree-ssanames.c (set_range_info): Likewise.
14728 (get_ptr_info): Likewise.
14729 (duplicate_ssa_name_ptr_info): Likewise.
14730 (duplicate_ssa_name_range_info): Likewise.
14731 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
14732 (unpack_ts_fixed_cst_value_fields): Likewise.
14733 * tree.c (build_fixed): Likewise.
14734 (build_real): Likewise.
14735 (build_string): Likewise.
14736 (decl_priority_info): Likewise.
14737 (decl_debug_expr_insert): Likewise.
14738 (decl_value_expr_insert): Likewise.
14739 (decl_debug_args_insert): Likewise.
14740 (type_hash_add): Likewise.
14741 (build_omp_clause): Likewise.
14742 * ubsan.c (decl_for_type_insert): Likewise.
14743 * varasm.c (get_unnamed_section): Likewise.
14744 (get_noswitch_section): Likewise.
14745 (get_section): Likewise.
14746 (get_block_for_section): Likewise.
14747 (create_block_symbol): Likewise.
14748 (build_constant_desc): Likewise.
14749 (create_constant_pool): Likewise.
14750 (force_const_mem): Likewise.
14751 (record_tm_clone_pair): Likewise.
14752 * varpool.c (varpool_create_empty_node): Likewise.
14753
14754 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14755
14756 * dwarf2out.c (tree_add_const_value_attribute): Call
14757 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
14758 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
14759 instead of ggc_internal_<x>alloc_stat.
14760 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
14761 (ggc_realloc): Likewise.
14762 * ggc-none.c (ggc_internal_alloc): Likewise.
14763 (ggc_internal_cleared_alloc): Likewise.
14764 * ggc-page.c: Likewise.
14765 * ggc.h (ggc_internal_alloc_stat): Likewise.
14766 (ggc_internal_alloc): Remove macro.
14767 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
14768 (ggc_internal_cleared_alloc): Remove macro.
14769 (GGC_RESIZEVEC): Adjust.
14770 (ggc_resizevar): Remove macro.
14771 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
14772 (ggc_internal_cleared_vec_alloc_stat): Likewise.
14773 (ggc_internal_vec_cleared_alloc): Remove macro.
14774 (ggc_alloc_atomic_stat): Drop _stat suffix.
14775 (ggc_alloc_atomic): Remove macro.
14776 (ggc_alloc_cleared_atomic): Remove macro.
14777 (ggc_alloc_string_stat): Drop _stat suffix.
14778 (ggc_alloc_string): Remove macro.
14779 (ggc_alloc_rtx_def_stat): Adjust.
14780 (ggc_alloc_tree_node_stat): Likewise.
14781 (ggc_alloc_cleared_tree_node_stat): Likewise.
14782 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
14783 (ggc_alloc_cleared_simd_clone_stat): Likewise.
14784 * gimple.c (gimple_build_omp_for): Likewise.
14785 (gimple_copy): Likewise.
14786 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
14787 * toplev.c (realloc_for_line_map): Adjust.
14788 * tree-data-ref.h (lambda_vector_new): Likewise.
14789 * tree-phinodes.c (allocate_phi_node): Likewise.
14790 * tree.c (grow_tree_vec_stat): Likewise.
14791 * vec.h (va_gc::reserve): Adjust.
14792
14793 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
14794
14795 * config/microblaze/microblaze.c (break_handler): New Declaration.
14796 (microblaze_break_function_p,microblaze_is_break_handler): New.
14797 (compute_frame_size): Use microblaze_break_function_p.
14798 Add the test of break_handler.
14799 (microblaze_function_prologue) : Add the test of variable
14800 break_handler. Check the fnname by BREAK_HANDLER_NAME.
14801 (microblaze_function_epilogue) : Add the test of break_handler.
14802 (microblaze_globalize_label) : Add the test of break_handler.
14803 Check the name by BREAK_HANDLER_NAME.
14804
14805 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
14806
14807 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
14808 microblaze_is_break_handler test.
14809 (call_internal1,call_value_intern): Use microblaze_break_function_p.
14810 Use SYMBOL_REF_DECL.
14811
14812 * config/microblaze/microblaze-protos.h
14813 (microblaze_break_function_p,microblaze_is_break_handler):
14814 New Declaration.
14815
14816 * doc/extend.texi (MicroBlaze break_handler Functions): Document
14817 new MicroBlaze break_handler functions.
14818
14819 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14820
14821 * doc/extend.texi (Size of an asm): Move node text according
14822 to its @menu entry position.
14823
14824 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
14825
14826 PR tree-optimization/61140
14827 PR tree-optimization/61150
14828 PR tree-optimization/61197
14829 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
14830
14831 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14832
14833 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
14834
14835 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
14836
14837 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
14838 __SIZEOF_INT128__ is defined.
14839
14840 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14841
14842 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
14843 (rs6000_delegitimize_address): Use it.
14844
14845 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14846
14847 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
14848 inplace argument. Store the new address in the original MEM when true.
14849 * emit-rtl.c (change_address_1): Likewise.
14850 (adjust_address_1, adjust_automodify_address_1, offset_address):
14851 Update accordingly.
14852 * rtl.h (plus_constant): Add an inplace argument.
14853 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
14854 when true. Avoid generating (plus X (const_int 0)).
14855 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
14856 in-place. Pass true to plus_constant.
14857 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
14858
14859 2014-05-16 Dehao Chen <dehao@google.com>
14860
14861 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
14862
14863 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14864
14865 PR target/54089
14866 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
14867 patterns.
14868 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
14869
14870 2014-05-16 Dehao Chen <dehao@google.com>
14871
14872 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
14873 optimize_function_for_size_p.
14874 * regs.h (REG_FREQ_FROM_BB): Likewise.
14875
14876 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14877
14878 PR target/51244
14879 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
14880 negt_reg_operand cases.
14881 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
14882 predicate.
14883 * config/sh/predicates.md (cbranch_treg_value): Simplify.
14884
14885 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14886
14887 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
14888 target variants.
14889
14890 2014-05-16 David Malcolm <dmalcolm@redhat.com>
14891
14892 Revert:
14893 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14894
14895 * tree-cfg.c (dump_function_to_file): Dump the return type of
14896 functions, in a line to itself before the function body, mimicking
14897 the layout of a C function.
14898
14899 2014-05-16 Dehao Chen <dehao@google.com>
14900
14901 * cfghooks.c (make_forwarder_block): Use direct computation to
14902 get fall-through edge's count and frequency.
14903
14904 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
14905
14906 * config/arc/arc.c (arc_init): Fix typo in error message.
14907 * config/i386/i386.c (ix86_expand_builtin): Likewise.
14908 (split_stack_prologue_scratch_regno): Likewise.
14909 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
14910 word from error message.
14911
14912 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14913
14914 * ira-costs.c: Fix typo in comment.
14915
14916 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
14917
14918 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
14919
14920 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
14921
14922 * varpool.c (dump_varpool_node): Dump write-only flag.
14923 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
14924 write-only flag.
14925 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
14926 write-only variables.
14927 * ipa.c (process_references): New function.
14928 (set_readonly_bit): New function.
14929 (set_writeonly_bit): New function.
14930 (clear_addressable_bit): New function.
14931 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
14932 fix handling of aliases.
14933 * cgraph.h (struct varpool_node): Add writeonly flag.
14934
14935 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
14936
14937 PR rtl-optimization/60969
14938 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
14939 Calculate costs for this case.
14940
14941 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
14942
14943 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
14944 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
14945
14946 2014-05-16 Richard Biener <rguenther@suse.de>
14947
14948 PR tree-optimization/61194
14949 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
14950 bool patterns ending in a COND_EXPR.
14951
14952 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14953
14954 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
14955
14956 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14957
14958 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
14959 where we were unable to cost an RTX.
14960
14961 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14962
14963 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
14964 HIGH, LO_SUM.
14965
14966 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14967 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14968
14969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
14970
14971 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14972 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14973
14974 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
14975 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
14976
14977 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14978 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14979
14980 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
14981 operators.
14982
14983 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14984 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14985
14986 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14987 DIV/MOD.
14988
14989 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14990 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14991
14992 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
14993 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
14994
14995 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14996 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14997
14998 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14999 rotates and shifts.
15000
15001 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15002 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15003
15004 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15005 ZERO_EXTEND and SIGN_EXTEND better.
15006
15007 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15008 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15009
15010 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15011 logical operations.
15012
15013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15015
15016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15017 costs when costing loads and stores to memory.
15018
15019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15020 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15021
15022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15023 for SET RTX.
15024
15025 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15026
15027 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15028
15029 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15030 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15031
15032 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15033 to...
15034 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15035 well formed.
15036 (aarch64_rtx_mult_cost): New.
15037 (aarch64_rtx_costs): Use it, refactor as appropriate.
15038
15039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15040 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15041
15042 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15043 emit instructions, return number of instructions which would
15044 be emitted.
15045 (aarch64_add_constant): Update call to aarch64_build_constant.
15046 (aarch64_output_mi_thunk): Likewise.
15047 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15048 a CONST_DOUBLE.
15049
15050 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15051
15052 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15053 (TARGET_RTX_COSTS): Call it.
15054
15055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15056
15057 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15058 (cortexa57_vector_cost): Likewise.
15059 (cortexa57_tunings): Use them.
15060
15061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15062
15063 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15064 (cpu_addrcost_table): Use it.
15065 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15066 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15067 move it.
15068
15069 2014-05-16 Richard Biener <rguenther@suse.de>
15070
15071 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15072 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15073 (visit_phi): Ignore edges marked as not executable.
15074 (class cond_dom_walker): New.
15075 (cond_dom_walker::before_dom_children): Value-number
15076 control statements and mark successor edges as not
15077 executable if possible.
15078 (run_scc_vn): First walk all control statements in
15079 dominator order, marking edges as not executable.
15080 * tree-inline.c (copy_edges_for_bb): Be not confused
15081 about random edge flags.
15082
15083 2014-05-16 Richard Biener <rguenther@suse.de>
15084
15085 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15086
15087 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15088
15089 PR target/61193
15090 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15091 (__TM_simple_begin): Use it.
15092 (__TM_begin): Likewise.
15093
15094 2014-05-15 Martin Jambor <mjambor@suse.cz>
15095
15096 PR ipa/61085
15097 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15098 type_preserved flag when the indirect edge is polymorphic.
15099
15100 2014-05-15 Martin Jambor <mjambor@suse.cz>
15101
15102 PR tree-optimization/61090
15103 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15104 build_ref_for_model.
15105
15106 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15107
15108 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15109 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15110
15111 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15112
15113 PR tree-optimization/61158
15114 * fold-const.c (fold_binary_loc): If X is zero-extended and
15115 shiftc >= prec, make sure zerobits is all ones instead of
15116 invoking undefined behavior.
15117
15118 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15119
15120 * regcprop.h: New file.
15121 * regcprop.c (skip_debug_insn_p): New decl.
15122 (replace_oldest_value_reg): Check skip_debug_insn_p.
15123 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15124 * shrink-wrap.c: Include regcprop.h.
15125 (prepare_shrink_wrap): Call
15126 copyprop_hardreg_forward_bb_without_debug_insn.
15127
15128 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15129
15130 * shrink-wrap.h: Update comment.
15131 * shrink-wrap.c: Update comment.
15132 (next_block_for_reg): Rename to live_edge_for_reg.
15133 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15134 (move_insn_for_shrink_wrap): Split live_edge.
15135 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15136
15137 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15138
15139 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15140 Delete.
15141 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15142 * config/sparc/sparc.md (fptype_ut699): New attribute.
15143 (in_branch_delay): Return false if -mfix-ut699 is specified and
15144 fptype_ut699 is set to single.
15145 (truncdfsf2): Add fptype_ut699 attribute.
15146 (fix_truncdfsi2): Likewise.
15147 (floatsisf2): Change fptype attribute.
15148 (fix_truncsfsi2): Likewise.
15149 (negtf2_notv9): Delete.
15150 (negtf2_v9): Likewise.
15151 (negtf2_hq): New instruction.
15152 (negtf2): New instruction and splitter.
15153 (negdf2_notv9): Rewrite.
15154 (abstf2_notv9): Delete.
15155 (abstf2_hq_v9): Likewise.
15156 (abstf2_v9): Likewise.
15157 (abstf2_hq): New instruction.
15158 (abstf2): New instruction and splitter.
15159 (absdf2_notv9): Rewrite.
15160
15161 2014-05-14 Cary Coutant <ccoutant@google.com>
15162
15163 PR debug/61013
15164 * opts.c (common_handle_option): Don't special-case "-g".
15165 (set_debug_level): Default to at least level 2 with "-g".
15166
15167 2014-05-14 DJ Delorie <dj@redhat.com>
15168
15169 * config/msp430/msp430.c (msp430_builtin): Add
15170 MSP430_BUILTIN_DELAY_CYCLES.
15171 (msp430_init_builtins): Register void __delay_cycles(long long).
15172 (msp430_builtin_decl): Add it.
15173 (cg_magic_constant): New.
15174 (msp430_expand_delay_cycles): New.
15175 (msp430_expand_builtin): Call it.
15176 (msp430_print_operand_raw): Change integer printing from "int" to
15177 HOST_WIDE_INT.
15178 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15179 (delay_cycles_start): New.
15180 (delay_cycles_end): New.
15181 (delay_cycles_32): New.
15182 (delay_cycles_32x): New.
15183 (delay_cycles_16): New.
15184 (delay_cycles_16x): New.
15185 (delay_cycles_2): New.
15186 (delay_cycles_1): New.
15187 * doc/extend.texi: Document __delay_cycles().
15188
15189 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15190
15191 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15192 length attribute computation.
15193
15194 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15195
15196 PR debug/61188
15197 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15198
15199 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15200
15201 PR target/61084
15202 * config/sparc/sparc.md: Fix types of low and high in DI constant
15203 splitter. Use gen_int_mode in some other splitters.
15204
15205 2014-05-14 Martin Jambor <mjambor@suse.cz>
15206
15207 PR ipa/60897
15208 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15209
15210 2014-05-14 James Norris <jnorris@codesourcery.com>
15211
15212 * omp-low.c (expand_parallel_call): Remove shadow variable.
15213 (expand_omp_taskreg): Likewise.
15214
15215 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15216
15217 * common/config/i386/i386-common.c
15218 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15219 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15220 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15221 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15222 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15223 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15224 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15225 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15226 xsavecintrin.h, xsavesintrin.h.
15227 (x86_64-*-*): Ditto.
15228 * config/i386/clflushoptintrin.h: New.
15229 * config/i386/xsavecintrin.h: Ditto.
15230 * config/i386/xsavesintrin.h: Ditto.
15231 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15232 (bit_XSAVES): Ditto.
15233 (bit_XSAVES): Ditto.
15234 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15235 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15236 -mno-clflushopt.
15237 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15238 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15239 OPTION_MASK_ISA_XSAVES.
15240 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15241 -mxsavec, -mxsaves.
15242 (PTA_CLFLUSHOPT) Define.
15243 (PTA_XSAVEC): Ditto.
15244 (PTA_XSAVES): Ditto.
15245 (ix86_option_override_internal): Handle new options.
15246 (ix86_valid_target_attribute_inner_p): Ditto.
15247 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15248 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15249 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15250 (bdesc_special_args): Add __builtin_ia32_xsaves,
15251 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15252 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15253 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15254 (ix86_expand_builtin): Handle new builtins.
15255 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15256 (TARGET_CLFLUSHOPT_P): Ditto.
15257 (TARGET_XSAVEC): Ditto.
15258 (TARGET_XSAVEC_P): Ditto.
15259 (TARGET_XSAVES): Ditto.
15260 (TARGET_XSAVES_P): Ditto.
15261 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15262 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15263 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15264 (ANY_XRSTOR): New.
15265 (ANY_XRSTOR64): Ditto.
15266 (xrstor): Ditto.
15267 (xrstor): Change into <xrstor>.
15268 (xrstor_rex64): Change into <xrstor>_rex64.
15269 (xrstor64): Change into <xrstor>64
15270 (clflushopt): New.
15271 * config/i386/i386.opt (mclflushopt): New.
15272 (mxsavec): Ditto.
15273 (mxsaves): Ditto.
15274 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15275 xsavecintrin.h.
15276 * doc/invoke.texi: Document new options.
15277
15278 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15279
15280 PR rtl-optimization/60866
15281 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15282 Default it to -1. Pass it down to init_simplejump_data.
15283 (init_simplejump_data): New parameter old_seqno. Pass it down
15284 to get_seqno_for_a_jump.
15285 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15286 initializing new jump seqno as a last resort. Add comment.
15287 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15288 jump and pass it down to sel_init_new_insn.
15289 (sel_redirect_edge_and_branch_force): Likewise.
15290
15291 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15292
15293 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15294 shifted values to avoid build warning.
15295
15296 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15297
15298 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15299 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15300 (cfg_layout_merge_blocks): Likewise.
15301 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15302
15303 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15304
15305 PR rtl-optimization/60901
15306 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15307 bb predecessor belongs to the same scheduling region. Adjust comment.
15308
15309 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15310
15311 * doc/sourcebuild.texi: (dfp_hw): Document.
15312 (p8vector_hw): Likewise.
15313 (powerpc_eabi_ok): Likewise.
15314 (powerpc_elfv2): Likewise.
15315 (powerpc_htm_ok): Likewise.
15316 (ppc_recip_hw): Likewise.
15317 (vsx_hw): Likewise.
15318
15319 2014-05-13 Cary Coutant <ccoutant@google.com>
15320
15321 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15322
15323 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15324
15325 * gengtype-parse.c (require3): Eliminate in favor of...
15326 (require4): New.
15327 (require_template_declaration): Update to support optional single *
15328 on a type.
15329
15330 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15331 (create_user_defined_type): Handle a single level of explicit
15332 pointerness within template arguments.
15333 (struct write_types_data): Add field "kind".
15334 (filter_type_name): Handle "*" character.
15335 (write_user_func_for_structure_ptr): Require a write_types_data
15336 rather than just a prefix string, so that we can look up the kind
15337 of the wtd and use it as an index into wrote_user_func_for_ptr,
15338 ensuring that such functions are written at most once. Support
15339 subclasses by invoking the marking function of the ultimate base class.
15340 (write_user_func_for_structure_body): Require a write_types_data
15341 rather than just a prefix string, so that we can pass this to
15342 write_user_func_for_structure_ptr.
15343 (write_func_for_structure): Likewise.
15344 (ggc_wtd): Add initializer of new "kind" field.
15345 (pch_wtd): Likewise.
15346
15347 * gengtype.h (enum write_types_kinds): New.
15348 (struct type): Add field wrote_user_func_for_ptr to the "s"
15349 union member.
15350
15351 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15352
15353 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15354 instead of const_binop.
15355 (fold_binary_loc): Likewise.
15356
15357 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15358
15359 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15360 calculation to match get_ref_base_and_extent.
15361
15362 2014-05-13 Catherine Moore <clm@codesourcery.com>
15363 Sandra Loosemore <sandra@codesourcery.com>
15364
15365 * configure.ac: Fix assembly for explicit JALR relocation check.
15366 * configure: Regenerate.
15367
15368 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15369
15370 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15371 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15372 Remove associated type declarations and initialisations.
15373 (arm_expand_neon_builtin): Likewise.
15374 (neon_emit_pair_result_insn): Delete.
15375 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15376 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15377 (neon_vzip<mode>): Likewise.
15378 (neon_vuzp<mode>): Likewise.
15379
15380 2014-05-13 Richard Biener <rguenther@suse.de>
15381
15382 PR ipa/60973
15383 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15384 it needs revisiting whether the call still may be tail-called.
15385
15386 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15387
15388 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15389 * rtl.h (block_symbol): Reduce number of fields to 2.
15390 (rtx_def): Add u2.symbol_ref_flags.
15391 (SYMBOL_REF_FLAGS): Use it.
15392 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15393 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15394 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15395 Lower index of SYMBOL_REF_DATA.
15396 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15397 Print SYMBOL_REF_FLAGS at the same time.
15398 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15399
15400 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15401
15402 * rtl.def (VAR_LOCATION): Remove "i" field.
15403 * rtl.h (rtx_def): Add u2.var_location_status.
15404 (PAT_VAR_LOCATION_STATUS): Use it.
15405 (gen_rtx_VAR_LOCATION): Declare.
15406 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15407 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15408 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15409
15410 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15411
15412 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15413 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15414
15415 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15416
15417 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15418 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15419 * rtl.h (rtx_def): Add insn_uid to u2 field.
15420 (RTX_FLAG_CHECK8): Delete in favor of...
15421 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15422 (INSN_DELETED_P): Update accordingly.
15423 (INSN_UID): Use u2.insn_uid.
15424 (INSN_CHAIN_CODE_P): Define.
15425 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15426 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15427 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15428 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15429 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15430 indices accordingly.
15431 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15432 Update indices for insn-chain rtxes.
15433 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15434 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15435 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15436 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15437 * combine.c (try_combine): Likewise.
15438 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15439
15440 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15441
15442 * rtl.def (REG): Remove middle field.
15443 * rtl.h (rtx_def): Add orignal_regno to u2.
15444 (ORIGINAL_REGNO): Use it instead of field 1.
15445 (REG_ATTRS): Lower field index accordingly.
15446 * gengtype.c (adjust_field_rtx_def): Remove handling of
15447 ORIGINAL_REGNO. Move REG_ATTRS index down.
15448 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15449 code that prints the REGNO.
15450
15451 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15452
15453 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15454 GENERATOR_FILE.
15455
15456 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15457
15458 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15459
15460 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15461
15462 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15463 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15464
15465 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15466
15467 * config/aarch64/aarch64-protos.h
15468 (aarch64_hard_regno_caller_save_mode): New prototype.
15469 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15470 New function.
15471 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15472
15473 2014-05-13 Christian Bruel <christian.bruel@st.com>
15474
15475 * target.def (mode_switching): New hook vector.
15476 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15477 (mode_exit, modepriority_to_mode): Likewise.
15478 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15479 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15480 * target.h: Include tm.h and hard-reg-set.h.
15481 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15482 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15483 * doc/tm.texi Regenerate.
15484 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15485 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15486 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15487 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15488 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15489 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15490 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15491 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15492 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15493 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15494 (ix86_emit_mode_set): Hookify.
15495 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15496 Delete.
15497 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15498 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15499 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15500 (epiphany_mode_priority_to_mode): Remove declaration.
15501 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15502 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15503 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15504 Likewise.
15505 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15506 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15507 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15508
15509 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15510
15511 PR target/61060
15512 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15513 is const0_rtx, return immediately. Don't test count == 0 when
15514 it is always true.
15515
15516 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15517
15518 * Makefile.in: add shrink-wrap.o.
15519 * config/i386/i386.c: include "shrink-wrap.h"
15520 * function.c: Likewise.
15521 (requires_stack_frame_p, next_block_for_reg,
15522 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15523 dup_block_and_redirect): Move to shrink-wrap.c
15524 (thread_prologue_and_epilogue_insns): Extract three code segments
15525 as functions in shrink-wrap.c
15526 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15527 shrink-wrap.h
15528 * shrink-wrap.c: New file.
15529 * shrink-wrap.h: New file.
15530
15531 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15532
15533 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15534 reference to Solaris.
15535
15536 2014-05-12 Mike Stump <mikestump@comcast.net>
15537
15538 PR other/31778
15539 * genattrtab.c (filename): Add.
15540 (convert_set_attr_alternative): Improve error message.
15541 (check_defs): Restore read_md_filename for error messages.
15542 (gen_insn): Save filename.
15543
15544 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15545
15546 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15547 -fno-local-ivars and -fivar-visibility.
15548 * c-family/c.opt: Make -Wshadow also implicitly enable
15549 -Wshadow-ivar.
15550
15551 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15552
15553 * doc/tm.texi: Remove reference to deleted macro.
15554 * doc/tm.texi.in: Likewise.
15555
15556 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15557
15558 PR target/60991
15559 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15560 to restore Y.
15561
15562 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15563
15564 PR libgcc/61152
15565 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15566 * config/arm/aout.h (License): Same.
15567 * config/arm/bpabi.h (License): Same.
15568 * config/arm/elf.h (License): Same.
15569 * config/arm/linux-elf.h (License): Same.
15570 * config/arm/linux-gas.h (License): Same.
15571 * config/arm/netbsd-elf.h (License): Same.
15572 * config/arm/uclinux-eabi.h (License): Same.
15573 * config/arm/uclinux-elf.h (License): Same.
15574 * config/arm/vxworks.h (License): Same.
15575
15576 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15577
15578 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15579 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15580 number of operands to 3.
15581 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15582 * tree-nested.c (convert_nonlocal_omp_clauses,
15583 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15584 * gimplify.c (gimplify_scan_omp_clauses): Handle
15585 OMP_CLAUSE_LINEAR_STMT.
15586 * omp-low.c (lower_rec_input_clauses): Fix typo.
15587 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15588 cast between Fortran boolean_type_node and C _Bool if
15589 needed.
15590
15591 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15592
15593 PR tree-optimization/61136
15594 * wide-int.h (multiple_of_p): Define a version that doesn't return
15595 the quotient.
15596 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15597 integer_zerop/const_binop pair.
15598 (multiple_of_p): Likewise, converting both operands to widest_int
15599 precision.
15600
15601 2014-05-09 Teresa Johnson <tejohnson@google.com>
15602
15603 * cgraphunit.c (analyze_functions): Use correct dump file.
15604
15605 2014-05-09 Florian Weimer <fweimer@redhat.com>
15606
15607 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
15608 expand_used_vars.
15609 (stack_protect_return_slot_p): New function.
15610 (expand_used_vars): Call stack_protect_decl_p and
15611 stack_protect_return_slot_p for -fstack-protector-strong.
15612
15613 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
15614 Andrew Haley <aph@redhat.com>
15615 Richard Sandiford <rdsandiford@googlemail.com>
15616
15617 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
15618 pages.
15619
15620 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
15621
15622 PR middle-end/61111
15623 * fold-const.c (fold_binary_loc): Changed width of mask.
15624
15625 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15626
15627 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
15628 unsigned int initializers for regno_in, regno_out.
15629
15630 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15631
15632 PR target/61055
15633 * config/avr/avr.md (cc): Add new attribute set_vzn.
15634 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
15635 Set cc insn attribute to set_vzn instead of set_zn for alternatives
15636 with INC, DEC or NEG.
15637 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
15638 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
15639 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
15640
15641 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15642
15643 Revert:
15644 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15645
15646 * wide-int.cc (UTItype): Define.
15647 (UDWtype): Define for appropriate W_TYPE_SIZE.
15648
15649 2014-05-09 Richard Biener <rguenther@suse.de>
15650
15651 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
15652 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
15653 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
15654 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
15655 ssa_propagate): Adjust.
15656
15657 2014-05-08 Jeff Law <law@redhat.com>
15658
15659 PR tree-optimization/61009
15660 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
15661 tri-state rather than a boolean. When a block is too big to
15662 thread through, inform caller via negative return value.
15663 (thread_across_edge): If a block was too big for normal threading,
15664 then it's too big for a joiner too, so remove temporary equivalences
15665 and return immediately.
15666
15667 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15668 Matthias Klose <doko@ubuntu.com>
15669
15670 PR driver/61106
15671 * optc-gen.awk: Fix option handling for -Wunused-parameter.
15672
15673 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15674
15675 PR target/59952
15676 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
15677
15678 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15679
15680 PR target/61092
15681 * config/alpha/alpha.c: Include gimple-iterator.h.
15682 (alpha_gimple_fold_builtin): New function. Move
15683 ALPHA_BUILTIN_UMULH folding from ...
15684 (alpha_fold_builtin): ... here.
15685 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
15686
15687 2014-05-08 Wei Mi <wmi@google.com>
15688
15689 PR target/58066
15690 * config/i386/i386.c (ix86_compute_frame_layout): Update
15691 preferred_stack_boundary for call, expanded from tls descriptor.
15692 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
15693 to depend on SP register.
15694 (*tls_local_dynamic_base_32_gnu): Ditto.
15695 (*tls_local_dynamic_32_once): Ditto.
15696 (tls_global_dynamic_64_<mode>): Set
15697 ix86_tls_descriptor_calls_expanded_in_cfun.
15698 (tls_local_dynamic_base_64_<mode>): Ditto.
15699 (tls_global_dynamic_32): Set
15700 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
15701 to depend on SP register.
15702 (tls_local_dynamic_base_32): Ditto.
15703
15704 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15705
15706 * config/arm/arm_neon.h: Update comment.
15707 * config/arm/neon-docgen.ml: Delete.
15708 * config/arm/neon-gen.ml: Delete.
15709 * doc/arm-neon-intrinsics.texi: Update comment.
15710
15711 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15712
15713 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
15714 and v4sf versions.
15715 (vand, vorr, veor, vorn, vbic): Remove.
15716 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
15717 iterator.
15718 (neon_vsub_unspec): Likewise.
15719 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
15720
15721 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15722
15723 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
15724 (vadd_s16): Likewise.
15725 (vadd_s32): Likewise.
15726 (vadd_f32): Likewise.
15727 (vadd_u8): Likewise.
15728 (vadd_u16): Likewise.
15729 (vadd_u32): Likewise.
15730 (vadd_s64): Likewise.
15731 (vadd_u64): Likewise.
15732 (vaddq_s8): Likewise.
15733 (vaddq_s16): Likewise.
15734 (vaddq_s32): Likewise.
15735 (vaddq_s64): Likewise.
15736 (vaddq_f32): Likewise.
15737 (vaddq_u8): Likewise.
15738 (vaddq_u16): Likewise.
15739 (vaddq_u32): Likewise.
15740 (vaddq_u64): Likewise.
15741 (vmul_s8): Likewise.
15742 (vmul_s16): Likewise.
15743 (vmul_s32): Likewise.
15744 (vmul_f32): Likewise.
15745 (vmul_u8): Likewise.
15746 (vmul_u16): Likewise.
15747 (vmul_u32): Likewise.
15748 (vmul_p8): Likewise.
15749 (vmulq_s8): Likewise.
15750 (vmulq_s16): Likewise.
15751 (vmulq_s32): Likewise.
15752 (vmulq_f32): Likewise.
15753 (vmulq_u8): Likewise.
15754 (vmulq_u16): Likewise.
15755 (vmulq_u32): Likewise.
15756 (vsub_s8): Likewise.
15757 (vsub_s16): Likewise.
15758 (vsub_s32): Likewise.
15759 (vsub_f32): Likewise.
15760 (vsub_u8): Likewise.
15761 (vsub_u16): Likewise.
15762 (vsub_u32): Likewise.
15763 (vsub_s64): Likewise.
15764 (vsub_u64): Likewise.
15765 (vsubq_s8): Likewise.
15766 (vsubq_s16): Likewise.
15767 (vsubq_s32): Likewise.
15768 (vsubq_s64): Likewise.
15769 (vsubq_f32): Likewise.
15770 (vsubq_u8): Likewise.
15771 (vsubq_u16): Likewise.
15772 (vsubq_u32): Likewise.
15773 (vsubq_u64): Likewise.
15774 (vand_s8): Likewise.
15775 (vand_s16): Likewise.
15776 (vand_s32): Likewise.
15777 (vand_u8): Likewise.
15778 (vand_u16): Likewise.
15779 (vand_u32): Likewise.
15780 (vand_s64): Likewise.
15781 (vand_u64): Likewise.
15782 (vandq_s8): Likewise.
15783 (vandq_s16): Likewise.
15784 (vandq_s32): Likewise.
15785 (vandq_s64): Likewise.
15786 (vandq_u8): Likewise.
15787 (vandq_u16): Likewise.
15788 (vandq_u32): Likewise.
15789 (vandq_u64): Likewise.
15790 (vorr_s8): Likewise.
15791 (vorr_s16): Likewise.
15792 (vorr_s32): Likewise.
15793 (vorr_u8): Likewise.
15794 (vorr_u16): Likewise.
15795 (vorr_u32): Likewise.
15796 (vorr_s64): Likewise.
15797 (vorr_u64): Likewise.
15798 (vorrq_s8): Likewise.
15799 (vorrq_s16): Likewise.
15800 (vorrq_s32): Likewise.
15801 (vorrq_s64): Likewise.
15802 (vorrq_u8): Likewise.
15803 (vorrq_u16): Likewise.
15804 (vorrq_u32): Likewise.
15805 (vorrq_u64): Likewise.
15806 (veor_s8): Likewise.
15807 (veor_s16): Likewise.
15808 (veor_s32): Likewise.
15809 (veor_u8): Likewise.
15810 (veor_u16): Likewise.
15811 (veor_u32): Likewise.
15812 (veor_s64): Likewise.
15813 (veor_u64): Likewise.
15814 (veorq_s8): Likewise.
15815 (veorq_s16): Likewise.
15816 (veorq_s32): Likewise.
15817 (veorq_s64): Likewise.
15818 (veorq_u8): Likewise.
15819 (veorq_u16): Likewise.
15820 (veorq_u32): Likewise.
15821 (veorq_u64): Likewise.
15822 (vbic_s8): Likewise.
15823 (vbic_s16): Likewise.
15824 (vbic_s32): Likewise.
15825 (vbic_u8): Likewise.
15826 (vbic_u16): Likewise.
15827 (vbic_u32): Likewise.
15828 (vbic_s64): Likewise.
15829 (vbic_u64): Likewise.
15830 (vbicq_s8): Likewise.
15831 (vbicq_s16): Likewise.
15832 (vbicq_s32): Likewise.
15833 (vbicq_s64): Likewise.
15834 (vbicq_u8): Likewise.
15835 (vbicq_u16): Likewise.
15836 (vbicq_u32): Likewise.
15837 (vbicq_u64): Likewise.
15838 (vorn_s8): Likewise.
15839 (vorn_s16): Likewise.
15840 (vorn_s32): Likewise.
15841 (vorn_u8): Likewise.
15842 (vorn_u16): Likewise.
15843 (vorn_u32): Likewise.
15844 (vorn_s64): Likewise.
15845 (vorn_u64): Likewise.
15846 (vornq_s8): Likewise.
15847 (vornq_s16): Likewise.
15848 (vornq_s32): Likewise.
15849 (vornq_s64): Likewise.
15850 (vornq_u8): Likewise.
15851 (vornq_u16): Likewise.
15852 (vornq_u32): Likewise.
15853 (vornq_u64): Likewise.
15854
15855 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15856
15857 * wide-int.cc (UTItype): Define.
15858 (UDWtype): Define for appropriate W_TYPE_SIZE.
15859
15860 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
15861
15862 PR tree-optimization/59100
15863 * tree-ssa-phiopt.c: Include tree-inline.h.
15864 (neutral_element_p, absorbing_element_p): New functions.
15865 (value_replacement): Handle conditional binary operations with a
15866 neutral or absorbing element.
15867
15868 2014-05-08 Richard Biener <rguenther@suse.de>
15869
15870 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
15871 folding the expression.
15872 (valueize_expr): Remove.
15873 (visit_reference_op_load): Do not valueize the result of
15874 vn_get_expr_for.
15875 (simplify_binary_expression): Likewise.
15876 (simplify_unary_expression): Likewise.
15877
15878 2014-05-08 Richard Biener <rguenther@suse.de>
15879
15880 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
15881 looking at TYPE_ARG_TYPES.
15882
15883 2014-05-08 Richard Biener <rguenther@suse.de>
15884
15885 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15886 pointer propagation special-case.
15887
15888 2014-05-08 Bin Cheng <bin.cheng@arm.com>
15889
15890 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
15891 core part of address expressions.
15892
15893 2014-05-08 Alan Modra <amodra@gmail.com>
15894
15895 PR target/60737
15896 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
15897 loads and stores when -mno-strict-align at any alignment.
15898 (expand_block_clear): Similarly. Also correct calculation of
15899 instruction count.
15900
15901 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15902
15903 PR middle-end/39246
15904 * tree-complex.c (expand_complex_move): Keep line info when expanding
15905 complex move.
15906 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
15907 of complex expression. Use new argument to display correct location
15908 for values coming from phi statement.
15909 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
15910 (warn_uninitialized_phi): Pass location of phi argument to
15911 warn_uninit.
15912 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
15913 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
15914
15915 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
15916
15917 * config/rs6000/predicates.md (indexed_address_mem): New.
15918 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
15919 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
15920 fpstore_ux, fpstore_u.
15921 (sign_extend, indexed, update): New.
15922 (cell_micro): Adjust.
15923 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
15924 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
15925 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
15926 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
15927 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15928 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
15929 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
15930 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
15931 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
15932 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
15933 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
15934 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
15935 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
15936 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
15937 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
15938
15939 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
15940 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
15941 *vsx_extract_<mode>_store): Adjust.
15942 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
15943 is_cracked_insn, insn_must_be_first_in_group,
15944 insn_must_be_last_in_group): Adjust.
15945
15946 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
15947 Adjust.
15948 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
15949 ppc440-fpstore): Adjust.
15950 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
15951 ppc476-fpstore): Adjust.
15952 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
15953 ppc601-fpstore): Adjust.
15954 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
15955 Adjust.
15956 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
15957 Adjust.
15958 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
15959 ppc7450-fpstore): Adjust.
15960 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
15961 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
15962 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
15963 Adjust.
15964 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
15965 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
15966 cell-fpstore, cell-fpstore-update): Adjust.
15967 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
15968 ppce300c3_store, ppce300c3_fpstore): Adjust.
15969 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
15970 e500mc_fpstore): Adjust.
15971 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
15972 e500mc64_store, e500mc64_fpstore): Adjust.
15973 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
15974 e5500_fpstore): Adjust.
15975 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
15976 e6500_fpstore): Adjust.
15977 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
15978 Adjust.
15979 * config/rs6000/power4.md (power4-load, power4-load-ext,
15980 power4-load-ext-update, power4-load-ext-update-indexed,
15981 power4-load-update-indexed, power4-load-update, power4-fpload,
15982 power4-fpload-update, power4-store, power4-store-update,
15983 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
15984 Adjust.
15985 * config/rs6000/power5.md (power5-load, power5-load-ext,
15986 power5-load-ext-update, power5-load-ext-update-indexed,
15987 power5-load-update-indexed, power5-load-update, power5-fpload,
15988 power5-fpload-update, power5-store, power5-store-update,
15989 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
15990 Adjust.
15991 * config/rs6000/power6.md (power6-load, power6-load-ext,
15992 power6-load-update, power6-load-update-indexed,
15993 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
15994 power6-fpload-update, power6-store, power6-store-update,
15995 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
15996 Adjust.
15997 * config/rs6000/power7.md (power7-load, power7-load-ext,
15998 power7-load-update, power7-load-update-indexed,
15999 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16000 power7-fpload-update, power7-store, power7-store-update,
16001 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16002 Adjust.
16003 * config/rs6000/power8.md (power8-load, power8-load-update,
16004 power8-load-ext, power8-load-ext-update, power8-fpload,
16005 power8-fpload-update, power8-store, power8-store-update-indexed,
16006 power8-fpstore, power8-fpstore-update): Adjust.
16007 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16008 Adjust.
16009 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16010 titan_lsu_store, titan_lsu_fpstore): Adjust.
16011 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16012
16013 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16014
16015 PR target/60884
16016 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16017 unrolled byte insns. Emit address increments after move insns.
16018
16019 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16020
16021 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16022 const_gimple, rather than a gimple.
16023 (gimple_call_builtin_p): Likewise, for the three variants.
16024
16025 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16026 (gimple_call_builtin_p): Likewise, for the three variants.
16027
16028 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16029
16030 PR tree-optimization/61095
16031 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16032
16033 2014-05-07 Richard Biener <rguenther@suse.de>
16034
16035 PR tree-optimization/61034
16036 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16037 (maybe_skip_until): Use translate to take into account
16038 lattices when trying to do disambiguations.
16039 (get_continuation_for_phi_1): Likewise.
16040 (get_continuation_for_phi): Adjust for added translate arguments.
16041 (walk_non_aliased_vuses): Likewise.
16042 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16043 (walk_non_aliased_vuses): Likewise.
16044 (call_may_clobber_ref_p_1): Declare.
16045 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16046 calls. Stop early if we are only supposed to disambiguate.
16047 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16048
16049 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16050
16051 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16052 Emit an error when the function has arguments.
16053
16054 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16055
16056 * cfgloop.h (unswitch_loops): Remove.
16057 * doc/passes.texi: Remove references to loop-unswitch.c
16058 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16059
16060 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16061
16062 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16063 check for loads group of length 3.
16064 (vect_permute_load_chain): New permutations for loads group of
16065 length 3.
16066 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16067 of vec_perm_shuffle for the new permutations.
16068
16069 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16070
16071 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16072 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16073 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16074 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16075 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16076 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16077 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16078 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16079
16080 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16081
16082 * loop-unswitch.c: Delete.
16083
16084 2014-05-07 Richard Biener <rguenther@suse.de>
16085
16086 * config.gcc: Always set need_64bit_hwint to yes.
16087
16088 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16089
16090 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16091 of using optimize_size.
16092
16093 2014-05-06 Mike Stump <mikestump@comcast.net>
16094
16095 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16096
16097 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16098
16099 * config/i386/sse.md (*mov<mode>_internal)
16100 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16101 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16102 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16103 (*<code><mode>3, *andnot<mode>3<mask_name>)
16104 (<mask_codefor><code><mode>3<mask_name>): Only consider
16105 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16106
16107 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16108
16109 Revert:
16110 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16111
16112 * lra-constraints.c (valid_address_p): Move earlier in file.
16113 Add a constraint argument to the address_info version.
16114 (satisfies_memory_constraint_p): New function.
16115 (satisfies_address_constraint_p): Likewise.
16116 (process_alt_operands, curr_insn_transform): Use them.
16117 (process_address): Pass the constraint to valid_address_p when
16118 checking address operands.
16119
16120 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16121
16122 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16123 to their respective blocks. Fix inadvertent use of "node".
16124
16125 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16126
16127 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16128 out from...
16129 (init_emit_once): ...here.
16130 * rtl.h (init_derived_machine_modes): Declare.
16131 * toplev.c (do_compile): Call it even if no_backend.
16132
16133 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16134 Mike Stump <mikestump@comcast.net>
16135 Richard Sandiford <rdsandiford@googlemail.com>
16136 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16137
16138 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16139 (rtx_equal_for_memref_p): Update comment.
16140 (adjust_offset_for_component_ref): Use wide-int interfaces.
16141 * builtins.c (get_object_alignment_2): Likewise.
16142 (c_readstr): Likewise.
16143 (target_char_cast): Add comment.
16144 (determine_block_size): Use wide-int interfaces.
16145 (expand_builtin_signbit): Likewise.
16146 (fold_builtin_int_roundingfn): Likewise.
16147 (fold_builtin_bitop): Likewise.
16148 (fold_builtin_bswap): Likewise.
16149 (fold_builtin_logarithm): Use signop.
16150 (fold_builtin_pow): Likewise.
16151 (fold_builtin_memory_op): Use wide-int interfaces.
16152 (fold_builtin_object_size): Likewise.
16153 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16154 nb_iterations_estimate.
16155 (record_niter_bound): Use wide-int interfaces.
16156 (get_estimated_loop_iterations_int): Likewise.
16157 (get_estimated_loop_iterations): Likewise.
16158 (get_max_loop_iterations): Likewise.
16159 * cfgloop.h: Include wide-int.h.
16160 (struct nb_iter_bound): Change bound to widest_int.
16161 (struct loop): Change nb_iterations_upper_bound and
16162 nb_iterations_estimate to widest_int.
16163 (record_niter_bound): Switch to use widest_int.
16164 (get_estimated_loop_iterations): Likewise.
16165 (get_max_loop_iterations): Likewise.
16166 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16167 update for wide-int.
16168 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16169 * combine.c (try_combine): Likewise.
16170 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16171 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16172 interfaces.
16173 (aarch64_float_const_representable_p): Likewise.
16174 * config/arc/arc.c: Include wide-int.h.
16175 (arc_can_use_doloop_p): Use wide-int interfaces.
16176 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16177 (vfp3_const_double_index): Likewise.
16178 * config/avr/avr.c (avr_out_round): Likewise.
16179 (avr_fold_builtin): Likewise.
16180 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16181 (bfin_can_use_doloop_p): Likewise.
16182 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16183 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16184 * config/i386/i386.c: Include wide-int.h.
16185 (ix86_data_alignment): Use wide-int interfaces.
16186 (ix86_local_alignment): Likewise.
16187 (ix86_emit_swsqrtsf): Update real_from_integer.
16188 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16189 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16190 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16191 (zero_constant): Likewise.
16192 (input_operand): Likewise.
16193 (splat_input_operand): Likewise.
16194 (non_logical_cint_operand): Change const_double to const_wide_int.
16195 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16196 (easy_altivec_constant): Remove comment.
16197 (paired_expand_vector_init): Use CONSTANT_P.
16198 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16199 (rs6000_emit_move): Update checks.
16200 (rs6000_aggregate_candidate): Use wide-int interfaces.
16201 (rs6000_expand_ternop_builtin): Likewise.
16202 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16203 (rs6000_assemble_integer): Likewise.
16204 (rs6000_hash_constant): Likewise.
16205 (output_toc): Likewise.
16206 (rs6000_rtx_costs): Likewise.
16207 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16208 * config/rs6000/rs6000-c.c: Include wide-int.h.
16209 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16210 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16211 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16212 Handle CONST_WIDE_INT.
16213 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16214 Use tree_fits_uhwi_p.
16215 * config/sparc/sparc.c: Include wide-int.h.
16216 (sparc_fold_builtin): Use wide-int interfaces.
16217 * config/vax/vax.c: Include wide-int.h.
16218 (vax_float_literal): Use real_from_integer.
16219 * coretypes.h (struct hwivec_def): New.
16220 (hwivec): New.
16221 (const_hwivec): New.
16222 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16223 (equiv_constant): Handle CONST_WIDE_INT.
16224 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16225 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16226 * dbxout.c (stabstr_U): Use wide-int interfaces.
16227 (dbxout_type): Update to use cst_fits_shwi_p.
16228 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16229 (TARGET_SUPPORTS_WIDE_INT): Add default.
16230 * dfp.c: Include wide-int.h.
16231 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16232 decimal_real_to_integer.
16233 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16234 decimal_real_to_integer.
16235 * doc/generic.texi (Constant expressions): Update for wide_int.
16236 * doc/rtl.texi (const_double): Likewise.
16237 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16238 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16239 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16240 (REAL_VALUE_FROM_INT): Remove.
16241 (TARGET_SUPPORTS_WIDE_INT): New.
16242 * doc/tm.texi: Regenerate.
16243 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16244 * double-int.h: Include wide-int.h.
16245 (struct wi::int_traits): New.
16246 * dwarf2out.c (get_full_len): New.
16247 (dw_val_equal_p): Add case dw_val_class_wide_int.
16248 (size_of_loc_descr): Likewise.
16249 (output_loc_operands): Likewise.
16250 (insert_double): Remove.
16251 (insert_wide_int): New.
16252 (add_AT_wide): New.
16253 (print_die): Add case dw_val_class_wide_int.
16254 (attr_checksum): Likewise.
16255 (attr_checksum_ordered): Likewise.
16256 (same_dw_val_p): Likewise.
16257 (size_of_die): Likewise.
16258 (value_format): Likewise.
16259 (output_die): Likewise.
16260 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16261 Use wide-int.
16262 (clz_loc_descriptor): Use wide-int interfaces.
16263 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16264 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16265 (round_up_to_align): Use wide-int interfaces.
16266 (field_byte_offset): Likewise.
16267 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16268 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16269 CONST_DOUBLE handling. Use wide-int interfaces.
16270 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16271 (gen_enumeration_type_die): Use add_AT_wide.
16272 (hash_loc_operands): Add case dw_val_class_wide_int.
16273 (compare_loc_operands): Likewise.
16274 * dwarf2out.h: Include wide-int.h.
16275 (wide_int_ptr): New.
16276 (enum dw_val_class): Add dw_val_class_wide_int.
16277 (struct dw_val_struct): Add val_wide.
16278 * emit-rtl.c (const_wide_int_htab): New.
16279 (const_wide_int_htab_hash): New.
16280 (const_wide_int_htab_eq): New.
16281 (lookup_const_wide_int): New.
16282 (const_double_htab_hash): Use wide-int interfaces.
16283 (const_double_htab_eq): Likewise.
16284 (rtx_to_double_int): Conditionally compile for wide-int.
16285 (immed_double_int_const): Rename to immed_wide_int_const and
16286 update for wide-int.
16287 (immed_double_const): Conditionally compile for wide-int.
16288 (init_emit_once): Use wide-int interfaces.
16289 * explow.c (plus_constant): Likewise.
16290 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16291 (lshift_value): Use wide-int interfaces.
16292 (expand_mult): Likewise.
16293 (choose_multiplier): Likewise.
16294 (expand_smod_pow2): Likewise.
16295 (make_tree): Likewise.
16296 * expr.c (convert_modes): Consolidate handling of constants.
16297 Use wide-int interfaces.
16298 (emit_group_load_1): Add note.
16299 (store_expr): Update comment.
16300 (get_inner_reference): Use wide-int interfaces.
16301 (expand_constructor): Update comment.
16302 (expand_expr_real_2): Use wide-int interfaces.
16303 (expand_expr_real_1): Likewise.
16304 (reduce_to_bit_field_precision): Likewise.
16305 (const_vector_from_tree): Likewise.
16306 * final.c: Include wide-int-print.h.
16307 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16308 * fixed-value.c: Include wide-int.h.
16309 (fixed_from_string): Use wide-int interfaces.
16310 (fixed_to_decimal): Likewise.
16311 (fixed_convert_from_real): Likewise.
16312 (real_convert_from_fixed): Likewise.
16313 * fold-const.h (mem_ref_offset): Return an offset_int.
16314 (div_if_zero_remainder): Remove code parameter.
16315 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16316 Use wide-int interfaces.
16317 (may_negate_without_overflow_p): Use wide-int interfaces.
16318 (negate_expr_p): Likewise.
16319 (fold_negate_expr): Likewise.
16320 (int_const_binop_1): Likewise.
16321 (const_binop): Likewise.
16322 (fold_convert_const_int_from_int): Likewise.
16323 (fold_convert_const_int_from_real): Likewise.
16324 (fold_convert_const_int_from_fixed): Likewise.
16325 (fold_convert_const_fixed_from_int): Likewise.
16326 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16327 (sign_bit_p): Use wide-int interfaces.
16328 (make_range_step): Likewise.
16329 (build_range_check): Likewise. Pass an integer of the correct type
16330 instead of using integer_one_node.
16331 (range_predecessor): Pass an integer of the correct type instead
16332 of using integer_one_node.
16333 (range_successor): Likewise.
16334 (merge_ranges): Likewise.
16335 (unextend): Use wide-int interfaces.
16336 (extract_muldiv_1): Likewise.
16337 (fold_div_compare): Likewise.
16338 (fold_single_bit_test): Likewise.
16339 (fold_sign_changed_comparison): Likewise.
16340 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16341 (fold_plusminus_mult_expr): Use wide-int interfaces.
16342 (native_encode_int): Likewise.
16343 (native_interpret_int): Likewise.
16344 (fold_unary_loc): Likewise.
16345 (pointer_may_wrap_p): Likewise.
16346 (size_low_cst): Likewise.
16347 (mask_with_tz): Likewise.
16348 (fold_binary_loc): Likewise.
16349 (fold_ternary_loc): Likewise.
16350 (multiple_of_p): Likewise.
16351 (tree_call_nonnegative_warnv_p): Update calls to
16352 tree_int_cst_min_precision and real_from_integer.
16353 (fold_negate_const): Use wide-int interfaces.
16354 (fold_abs_const): Likewise.
16355 (fold_relational_const): Use tree_int_cst_lt.
16356 (round_up_loc): Use wide-int interfaces.
16357 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16358 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16359 * gengtype.c: Remove include of double-int.h.
16360 (do_typedef): Use wide-int interfaces.
16361 (open_base_files): Add wide-int.h.
16362 (main): Add offset_int and widest_int typedefs.
16363 * gengtype-lex.l: Handle "^".
16364 (CXX_KEYWORD): Add "static".
16365 * gengtype-parse.c (require3): New.
16366 (require_template_declaration): Handle constant template arguments
16367 and nested templates.
16368 * gengtype-state.c: Don't include "double-int.h".
16369 * genpreds.c (write_one_predicate_function): Update comment.
16370 (write_tm_constrs_h): Add check for hval and lval use in
16371 CONST_WIDE_INT.
16372 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16373 (add_to_sequence): Likewise.
16374 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16375 and const_double_operand.
16376 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16377 interfaces.
16378 * gimple-fold.c (get_base_constructor): Likewise.
16379 (fold_array_ctor_reference): Likewise.
16380 (fold_nonarray_ctor_reference): Likewise.
16381 (fold_const_aggregate_ref_1): Likewise.
16382 (gimple_val_nonnegative_real_p): Likewise.
16383 (gimple_fold_indirect_ref): Likewise.
16384 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16385 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16386 (struct slsr_cand_d): Change index to be widest_int.
16387 (struct incr_info_d): Change incr to be widest_int.
16388 (alloc_cand_and_find_basis): Use wide-int interfaces.
16389 (slsr_process_phi): Likewise.
16390 (backtrace_base_for_ref): Likewise. Return a widest_int.
16391 (restructure_reference): Take a widest_int instead of a double_int.
16392 (slsr_process_ref): Use wide-int interfaces.
16393 (create_mul_ssa_cand): Likewise.
16394 (create_mul_imm_cand): Likewise.
16395 (create_add_ssa_cand): Likewise.
16396 (create_add_imm_cand): Take a widest_int instead of a double_int.
16397 (slsr_process_add): Use wide-int interfaces.
16398 (slsr_process_cast): Likewise.
16399 (slsr_process_copy): Likewise.
16400 (dump_candidate): Likewise.
16401 (dump_incr_vec): Likewise.
16402 (replace_ref): Likewise.
16403 (cand_increment): Likewise. Return a widest_int.
16404 (cand_abs_increment): Likewise.
16405 (replace_mult_candidate): Take a widest_int instead of a double_int.
16406 (replace_unconditional_candidate): Use wide-int interfaces.
16407 (incr_vec_index): Take a widest_int instead of a double_int.
16408 (create_add_on_incoming_edge): Likewise.
16409 (create_phi_basis): Use wide-int interfaces.
16410 (replace_conditional_candidate): Likewise.
16411 (record_increment): Take a widest_int instead of a double_int.
16412 (record_phi_increments): Use wide-int interfaces.
16413 (phi_incr_cost): Take a widest_int instead of a double_int.
16414 (lowest_cost_path): Likewise.
16415 (total_savings): Likewise.
16416 (analyze_increments): Use wide-int interfaces.
16417 (ncd_with_phi): Take a widest_int instead of a double_int.
16418 (ncd_of_cand_and_phis): Likewise.
16419 (nearest_common_dominator_for_cands): Likewise.
16420 (insert_initializers): Use wide-int interfaces.
16421 (all_phi_incrs_profitable): Likewise.
16422 (replace_one_candidate): Likewise.
16423 (replace_profitable_candidates): Likewise.
16424 * godump.c: Include wide-int-print.h.
16425 (go_output_typedef): Use wide-int interfaces.
16426 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16427 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16428 (build_loop_iteration_domains): Likewise.
16429 * hooks.h: Include wide-int.h rather than double-int.h.
16430 (hook_bool_dint_dint_uint_bool_true): Delete.
16431 (hook_bool_wint_wint_uint_bool_true): Declare.
16432 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16433 (hook_bool_wint_wint_uint_bool_true): New.
16434 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16435 interfaces.
16436 (ubsan_expand_si_overflow_mul_check): Likewise.
16437 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16438 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16439 (get_ancestor_addr_info): Likewise.
16440 (ipa_modify_call_arguments): Likewise.
16441 * loop-doloop.c (doloop_modify): Likewise.
16442 (doloop_optimize): Likewise.
16443 * loop-iv.c (iv_number_of_iterations): Likewise.
16444 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16445 (unroll_loop_constant_iterations): Likewise.
16446 (decide_unroll_runtime_iterations): Likewise.
16447 (unroll_loop_runtime_iterations): Likewise.
16448 (decide_peel_simple): Likewise.
16449 (decide_unroll_stupid): Likewise.
16450 * lto-streamer-in.c (streamer_read_wi): Add.
16451 (input_cfg): Use wide-int interfaces.
16452 (lto_input_tree_1): Likewise.
16453 * lto-streamer-out.c (streamer_write_wi): Add.
16454 (hash_tree): Use wide-int interfaces.
16455 (output_cfg): Likewise.
16456 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16457 (GTFILES): Add wide-int.h and signop.h.
16458 (TAGS): Look for .cc files too.
16459 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16460 * optabs.c (expand_subword_shift): Likewise.
16461 (expand_doubleword_shift): Likewise.
16462 (expand_absneg_bit): Likewise.
16463 (expand_copysign_absneg): Likewise.
16464 (expand_copysign_bit): Likewise.
16465 * postreload.c (reload_cse_simplify_set): Likewise.
16466 * predict.c (predict_iv_comparison): Likewise.
16467 * pretty-print.h: Include wide-int-print.h.
16468 (pp_wide_int) New.
16469 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16470 * print-tree.c: Include wide-int-print.h.
16471 (print_node_brief): Use wide-int interfaces.
16472 (print_node): Likewise.
16473 * read-rtl.c (validate_const_wide_int): New.
16474 (read_rtx_code): Add CONST_WIDE_INT case.
16475 * real.c: Include wide-int.h.
16476 (real_to_integer2): Delete.
16477 (real_to_integer): New function, returning a wide_int.
16478 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16479 (ten_to_ptwo): Update call to real_from_integer.
16480 (real_digit): Likewise.
16481 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16482 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16483 (REAL_VALUE_TO_INT): Delete.
16484 (real_to_integer): Declare a wide-int form.
16485 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16486 * recog.c (const_int_operand): Improve comment.
16487 (const_scalar_int_operand): New.
16488 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16489 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16490 (split_double): Likewise.
16491 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16492 (rtx_size): Likewise.
16493 (rtx_alloc_stat_v): New.
16494 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16495 (cwi_output_hex): New.
16496 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16497 (cwi_check_failed_bounds): New.
16498 * rtl.def (CONST_WIDE_INT): New.
16499 * rtl.h: Include <utility> and wide-int.h.
16500 (struct hwivec_def): New.
16501 (CWI_GET_NUM_ELEM): New.
16502 (CWI_PUT_NUM_ELEM): New.
16503 (struct rtx_def): Add num_elem and hwiv.
16504 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16505 (CASE_CONST_UNIQUE): Likewise.
16506 (CASE_CONST_ANY): Likewise.
16507 (CONST_SCALAR_INT_P): Likewise.
16508 (CONST_WIDE_INT_P): New.
16509 (CWI_ELT): New.
16510 (HWIVEC_CHECK): New.
16511 (cwi_check_failed_bounds): New.
16512 (CWI_ELT): New.
16513 (HWIVEC_CHECK): New.
16514 (CONST_WIDE_INT_VEC) New.
16515 (CONST_WIDE_INT_NUNITS) New.
16516 (CONST_WIDE_INT_ELT) New.
16517 (rtx_mode_t): New type.
16518 (wi::int_traits <rtx_mode_t>): New.
16519 (wi::shwi): New.
16520 (wi::min_value): New.
16521 (wi::max_value): New.
16522 (rtx_alloc_v) New.
16523 (const_wide_int_alloc): New.
16524 (immed_wide_int_const): New.
16525 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16526 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16527 * signop.h: New file.
16528 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16529 (simplify_const_unary_operation): Use wide-int interfaces.
16530 (simplify_binary_operation_1): Likewise.
16531 (simplify_const_binary_operation): Likewise.
16532 (simplify_const_relational_operation): Likewise.
16533 (simplify_immed_subreg): Likewise.
16534 * stmt.c (expand_case): Likewise.
16535 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16536 signop rather than a bool.
16537 * stor-layout.c (layout_type): Use wide-int interfaces.
16538 (initialize_sizetypes): Update calls to
16539 set_min_and_max_values_for_integral_type.
16540 (set_min_and_max_values_for_integral_type): Take a signop rather
16541 than a bool. Use wide-int interfaces.
16542 (fixup_signed_type): Update accordingly. Remove
16543 HOST_BITS_PER_DOUBLE_INT limit.
16544 (fixup_unsigned_type): Likewise.
16545 * system.h (STATIC_CONSTANT_P): New.
16546 (STATIC_ASSERT): New.
16547 * target.def (can_use_doloop_p): Take widest_ints rather than
16548 double_ints.
16549 * target.h: Include wide-int.h rather than double-int.h.
16550 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16551 than double_ints.
16552 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16553 rather than INT_CST_LT_UNSIGNED.
16554 (can_use_doloop_if_innermost): Take widest_ints rather than
16555 double_ints.
16556 * tree-affine.c: Include wide-int-print.h.
16557 (double_int_ext_for_comb): Delete.
16558 (wide_int_ext_for_comb): New.
16559 (aff_combination_zero): Use wide-int interfaces.
16560 (aff_combination_const): Take a widest_int instead of a double_int.
16561 (aff_combination_elt): Use wide-int interfaces.
16562 (aff_combination_scale): Take a widest_int instead of a double_int.
16563 (aff_combination_add_elt): Likewise.
16564 (aff_combination_add_cst): Likewise.
16565 (aff_combination_add): Use wide-int interfaces.
16566 (aff_combination_convert): Likewise.
16567 (tree_to_aff_combination): Likewise.
16568 (add_elt_to_tree): Take a widest_int instead of a double_int.
16569 (aff_combination_to_tree): Use wide-int interfaces.
16570 (aff_combination_remove_elt): Likewise.
16571 (aff_combination_add_product): Take a widest_int instead of
16572 a double_int.
16573 (aff_combination_mult): Use wide-int interfaces.
16574 (aff_combination_expand): Likewise.
16575 (double_int_constant_multiple_p): Delete.
16576 (wide_int_constant_multiple_p): New.
16577 (aff_combination_constant_multiple_p): Take a widest_int pointer
16578 instead of a double_int pointer.
16579 (print_aff): Use wide-int interfaces.
16580 (get_inner_reference_aff): Take a widest_int pointer
16581 instead of a double_int pointer.
16582 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16583 * tree-affine.h: Include wide-int.h.
16584 (struct aff_comb_elt): Change type of coef to widest_int.
16585 (struct affine_tree_combination): Change type of offset to widest_int.
16586 (double_int_ext_for_comb): Delete.
16587 (wide_int_ext_for_comb): New.
16588 (aff_combination_const): Use widest_int instead of double_int.
16589 (aff_combination_scale): Likewise.
16590 (aff_combination_add_elt): Likewise.
16591 (aff_combination_constant_multiple_p): Likewise.
16592 (get_inner_reference_aff): Likewise.
16593 (aff_comb_cannot_overlap_p): Likewise.
16594 (aff_combination_zero_p): Use wide-int interfaces.
16595 * tree.c: Include tree.h.
16596 (init_ttree): Use make_int_cst.
16597 (tree_code_size): Removed code for INTEGER_CST case.
16598 (tree_size): Add INTEGER_CST case.
16599 (make_node_stat): Update comment.
16600 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
16601 (build_int_cst_type): Use wide-int interfaces.
16602 (double_int_to_tree): Likewise.
16603 (double_int_fits_to_tree_p): Delete.
16604 (force_fit_type_double): Delete.
16605 (force_fit_type): New.
16606 (int_cst_hash_hash): Use wide-int interfaces.
16607 (int_cst_hash_eq): Likewise.
16608 (build_int_cst_wide): Delete.
16609 (wide_int_to_tree): New.
16610 (cache_integer_cst): Use wide-int interfaces.
16611 (build_low_bits_mask): Likewise.
16612 (cst_and_fits_in_hwi): Likewise.
16613 (real_value_from_int_cst): Likewise.
16614 (make_int_cst_stat): New.
16615 (integer_zerop): Use wide_int interfaces.
16616 (integer_onep): Likewise.
16617 (integer_all_onesp): Likewise.
16618 (integer_pow2p): Likewise.
16619 (integer_nonzerop): Likewise.
16620 (tree_log2): Likewise.
16621 (tree_floor_log2): Likewise.
16622 (tree_ctz): Likewise.
16623 (int_size_in_bytes): Likewise.
16624 (mem_ref_offset): Return an offset_int rather than a double_int.
16625 (build_type_attribute_qual_variant): Use wide_int interfaces.
16626 (type_hash_eq): Likewise
16627 (tree_int_cst_equal): Likewise.
16628 (tree_int_cst_lt): Delete.
16629 (tree_int_cst_compare): Likewise.
16630 (tree_fits_shwi_p): Use wide_int interfaces.
16631 (tree_fits_uhwi_p): Likewise.
16632 (tree_int_cst_sign_bit): Likewise.
16633 (tree_int_cst_sgn): Likewise.
16634 (tree_int_cst_min_precision): Take a signop rather than a bool.
16635 (simple_cst_equal): Use wide_int interfaces.
16636 (compare_tree_int): Likewise.
16637 (iterative_hash_expr): Likewise.
16638 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
16639 INT_CST_LT.
16640 (get_type_static_bounds): Use wide_int interfaces.
16641 (tree_int_cst_elt_check_failed): New.
16642 (build_common_tree_nodes): Reordered to set prec before filling in
16643 value.
16644 (int_cst_value): Check cst_and_fits_in_hwi.
16645 (widest_int_cst_value): Use wide_int interfaces.
16646 (upper_bound_in_type): Likewise.
16647 (lower_bound_in_type): Likewise.
16648 (num_ending_zeros): Likewise.
16649 (drop_tree_overflow): Likewise.
16650 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
16651 (gen_conditions_for_pow_cst_base): Likewise.
16652 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
16653 (group_case_labels_stmt): Use wide-int interfaces.
16654 (verify_gimple_assign_binary): Likewise.
16655 (print_loop): Likewise.
16656 * tree-chrec.c (tree_fold_binomial): Likewise.
16657 * tree-core.h (struct tree_base): Add int_length.
16658 (struct tree_int_cst): Change rep of value.
16659 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
16660 (dr_may_alias_p): Likewise.
16661 (max_stmt_executions_tree): Likewise.
16662 * tree.def (INTEGER_CST): Update comment.
16663 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
16664 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
16665 * tree-dump.c: Include wide-int.h and wide-int-print.h.
16666 (dequeue_and_dump): Use wide-int interfaces.
16667 * tree.h: Include wide-int.h.
16668 (NULL_TREE): Moved to earlier loc in file.
16669 (TREE_INT_CST_ELT_CHECK): New.
16670 (tree_int_cst_elt_check_failed): New.
16671 (TYPE_SIGN): New.
16672 (TREE_INT_CST): Delete.
16673 (TREE_INT_CST_LOW): Use wide-int interfaces.
16674 (TREE_INT_CST_HIGH): Delete.
16675 (TREE_INT_CST_NUNITS): New.
16676 (TREE_INT_CST_EXT_NUNITS): Likewise.
16677 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
16678 (TREE_INT_CST_ELT): Likewise.
16679 (INT_CST_LT): Delete.
16680 (tree_int_cst_elt_check): New (two forms).
16681 (type_code_size): Update comment.
16682 (make_int_cst_stat, make_int_cst): New.
16683 (tree_to_double_int): Delete.
16684 (double_int_fits_to_tree_p): Delete.
16685 (force_fit_type_double): Delete.
16686 (build_int_cstu): Replace with out-of-line function.
16687 (build_int_cst_wide): Delete.
16688 (tree_int_cst_lt): Define inline.
16689 (tree_int_cst_le): New.
16690 (tree_int_cst_compare): Define inline.
16691 (tree_int_cst_min_precision): Take a signop rather than a bool.
16692 (wi::int_traits <const_tree>): New.
16693 (wi::int_traits <tree>): New.
16694 (wi::extended_tree): New.
16695 (wi::int_traits <wi::extended_tree>): New.
16696 (wi::to_widest): New.
16697 (wi::to_offset): New.
16698 (wi::fits_to_tree_p): New.
16699 (wi::min_value): New.
16700 (wi::max_value): New.
16701 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
16702 (copy_tree_body_r): Likewise.
16703 * tree-object-size.c (compute_object_offset): Likewise.
16704 (addr_object_size): Likewise.
16705 * tree-predcom.c: Include wide-int-print.h.
16706 (struct dref_d): Change type of offset to widest_int.
16707 (dump_dref): Call wide-int printer.
16708 (aff_combination_dr_offset): Use wide-int interfaces.
16709 (determine_offset): Take a widest_int pointer rather than a
16710 double_int pointer.
16711 (split_data_refs_to_components): Use wide-int interfaces.
16712 (suitable_component_p): Likewise.
16713 (order_drefs): Likewise.
16714 (add_ref_to_chain): Likewise.
16715 (valid_initializer_p): Likewise.
16716 (determine_roots_comp): Likewise.
16717 * tree-pretty-print.c: Include wide-int-print.h.
16718 (dump_generic_node): Use wide-int interfaces.
16719 * tree-sra.c (sra_ipa_modify_expr): Likewise.
16720 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
16721 (move_fixed_address_to_symbol): Likewise.
16722 (move_hint_to_base): Likewise.
16723 (move_pointer_to_base): Likewise.
16724 (move_variant_to_index): Likewise.
16725 (most_expensive_mult_to_index): Likewise.
16726 (addr_to_parts): Likewise.
16727 (copy_ref_info): Likewise.
16728 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16729 (indirect_refs_may_alias_p): Likewise.
16730 (stmt_kills_ref_p_1): Likewise.
16731 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16732 * tree-ssa-ccp.c: Update comment at top of file. Include
16733 wide-int-print.h.
16734 (struct prop_value_d): Change type of mask to widest_int.
16735 (extend_mask): New function.
16736 (dump_lattice_value): Use wide-int interfaces.
16737 (get_default_value): Likewise.
16738 (set_constant_value): Likewise.
16739 (set_value_varying): Likewise.
16740 (valid_lattice_transition): Likewise.
16741 (set_lattice_value): Likewise.
16742 (value_to_double_int): Delete.
16743 (value_to_wide_int): New.
16744 (get_value_from_alignment): Use wide-int interfaces.
16745 (get_value_for_expr): Likewise.
16746 (do_dbg_cnt): Likewise.
16747 (ccp_finalize): Likewise.
16748 (ccp_lattice_meet): Likewise.
16749 (bit_value_unop_1): Use widest_ints rather than double_ints.
16750 (bit_value_binop_1): Likewise.
16751 (bit_value_unop): Use wide-int interfaces.
16752 (bit_value_binop): Likewise.
16753 (bit_value_assume_aligned): Likewise.
16754 (evaluate_stmt): Likewise.
16755 (ccp_fold_stmt): Likewise.
16756 (visit_cond_stmt): Likewise.
16757 (ccp_visit_stmt): Likewise.
16758 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16759 (constant_pointer_difference): Likewise.
16760 (associate_pointerplus): Likewise.
16761 (combine_conversions): Likewise.
16762 * tree-ssa-loop.h: Include wide-int.h.
16763 (struct tree_niter_desc): Change type of max to widest_int.
16764 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
16765 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
16766 (remove_redundant_iv_tests): Likewise.
16767 (canonicalize_loop_induction_variables): Likewise.
16768 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
16769 (constant_multiple_of): Take a widest_int pointer instead of
16770 a double_int pointer.
16771 (get_computation_aff): Use wide-int interfaces.
16772 (ptr_difference_cost): Likewise.
16773 (difference_cost): Likewise.
16774 (get_loop_invariant_expr_id): Likewise.
16775 (get_computation_cost_at): Likewise.
16776 (iv_elimination_compare_lt): Likewise.
16777 (may_eliminate_iv): Likewise.
16778 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
16779 instead of double_int.
16780 (max_loop_iterations): Likewise.
16781 (max_stmt_executions): Likewise.
16782 (estimated_stmt_executions): Likewise.
16783 * tree-ssa-loop-niter.c: Include wide-int-print.h.
16784 (split_to_var_and_offset): Use wide-int interfaces.
16785 (determine_value_range): Likewise.
16786 (bound_difference_of_offsetted_base): Likewise.
16787 (bounds_add): Take a widest_int instead of a double_int.
16788 (number_of_iterations_ne_max): Use wide-int interfaces.
16789 (number_of_iterations_ne): Likewise.
16790 (number_of_iterations_lt_to_ne): Likewise.
16791 (assert_loop_rolls_lt): Likewise.
16792 (number_of_iterations_lt): Likewise.
16793 (number_of_iterations_le): Likewise.
16794 (number_of_iterations_cond): Likewise.
16795 (number_of_iterations_exit): Likewise.
16796 (finite_loop_p): Likewise.
16797 (derive_constant_upper_bound_assign): Likewise.
16798 (derive_constant_upper_bound): Return a widest_int.
16799 (derive_constant_upper_bound_ops): Likewise.
16800 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
16801 (record_estimate): Take a widest_int rather than a double_int.
16802 (record_nonwrapping_iv): Use wide-int interfaces.
16803 (double_int_cmp): Delete.
16804 (wide_int_cmp): New.
16805 (bound_index): Take a widest_int rather than a double_int.
16806 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
16807 (maybe_lower_iteration_bound): Likewise.
16808 (estimate_numbers_of_iterations_loop): Likewise.
16809 (estimated_loop_iterations): Take a widest_int pointer than than
16810 a double_int pointer.
16811 (estimated_loop_iterations_int): Use wide-int interfaces.
16812 (max_loop_iterations): Take a widest_int pointer than than
16813 a double_int pointer.
16814 (max_loop_iterations_int): Use wide-int interfaces.
16815 (max_stmt_executions): Take a widest_int pointer than than
16816 a double_int pointer.
16817 (estimated_stmt_executions): Likewise.
16818 (n_of_executions_at_most): Use wide-int interfaces.
16819 (scev_probably_wraps_p): Likewise.
16820 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
16821 to real_to_integer.
16822 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
16823 interfaces.
16824 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
16825 double_ints. Adjust for trailing_wide_ints <3> representation.
16826 (set_nonzero_bits): Likewise.
16827 (get_range_info): Return wide_ints rather than double_ints.
16828 Adjust for trailing_wide_ints <3> representation.
16829 (get_nonzero_bits): Likewise.
16830 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
16831 representation.
16832 * tree-ssanames.h (struct range_info_def): Replace min, max and
16833 nonzero_bits with a trailing_wide_ints <3>.
16834 (set_range_info): Use wide_int_refs rather than double_ints.
16835 (set_nonzero_bits): Likewise.
16836 (get_range_info): Return wide_ints rather than double_ints.
16837 (get_nonzero_bits): Likewise.
16838 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
16839 * tree-ssa-pre.c (phi_translate_1): Likewise.
16840 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
16841 (acceptable_pow_call): Likewise.
16842 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
16843 interfaces.
16844 (vn_reference_fold_indirect): Likewise.
16845 (vn_reference_maybe_forwprop_address): Likewise.
16846 (valueize_refs_1): Likewise.
16847 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
16848 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
16849 tree_int_cst_lt and tree_int_cst_le.
16850 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
16851 interfaces.
16852 (streamer_alloc_tree): Likewise.
16853 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
16854 (streamer_write_tree_header): Likewise.
16855 (streamer_write_integer_cst): Likewise.
16856 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16857 (build_constructors): Likewise.
16858 (array_value_type): Likewise.
16859 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
16860 (vect_check_gather): Likewise.
16861 * tree-vect-generic.c (build_replicated_const): Likewise.
16862 (expand_vector_divmod): Likewise.
16863 * tree-vect-loop.c (vect_transform_loop): Likewise.
16864 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
16865 (vect_do_peeling_for_alignment): Likewise.
16866 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16867 * tree-vrp.c: Include wide-int.h.
16868 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
16869 (extract_range_from_assert): Use wide-int interfaces.
16870 (vrp_int_const_binop): Likewise.
16871 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
16872 double_int pointers.
16873 (ranges_from_anti_range): Use wide-int interfaces.
16874 (quad_int_cmp): Delete.
16875 (quad_int_pair_sort): Likewise.
16876 (extract_range_from_binary_expr_1): Use wide-int interfaces.
16877 (extract_range_from_unary_expr_1): Likewise.
16878 (adjust_range_with_scev): Likewise.
16879 (masked_increment): Take and return wide_ints rather than double_ints.
16880 (register_edge_assert_for_2): Use wide-int interfaces.
16881 (check_array_ref): Likewise.
16882 (search_for_addr_array): Likewise.
16883 (maybe_set_nonzero_bits): Likewise.
16884 (union_ranges): Pass an integer of the correct type instead of
16885 using integer_one_node.
16886 (intersect_ranges): Likewise.
16887 (simplify_truth_ops_using_ranges): Likewise.
16888 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
16889 (range_fits_type_p): Likewise.
16890 (simplify_cond_using_ranges): Likewise. Take a signop rather than
16891 a bool.
16892 (simplify_conversion_using_ranges): Use wide-int interfaces.
16893 (simplify_float_conversion_using_ranges): Likewise.
16894 (vrp_finalize): Likewise.
16895 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
16896 (gimple_stringops_transform): Likewise.
16897 * varasm.c (decode_addr_const): Likewise.
16898 (const_hash_1): Likewise.
16899 (const_rtx_hash_1): Likewise
16900 (output_constant): Likewise.
16901 (array_size_for_constructor): Likewise.
16902 (output_constructor_regular_field): Likewise.
16903 (output_constructor_bitfield): Likewise.
16904 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
16905 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
16906 GENERATOR_FILEs.
16907 * gencheck.c: Define BITS_PER_UNIT.
16908 * wide-int.cc: New.
16909 * wide-int.h: New.
16910 * wide-int-print.cc: New.
16911 * wide-int-print.h: New.
16912
16913 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16914
16915 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
16916
16917 2014-05-06 Richard Biener <rguenther@suse.de>
16918
16919 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
16920 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
16921 (TODO_verify_all): Adjust.
16922 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
16923 TODO_verify_stmts and TODO_verify_rtl_sharing.
16924 * bb-reorder.c: Likewise.
16925 * cfgexpand.c: Likewise.
16926 * cprop.c: Likewise.
16927 * cse.c: Likewise.
16928 * function.c: Likewise.
16929 * fwprop.c: Likewise.
16930 * gcse.c: Likewise.
16931 * gimple-ssa-isolate-paths.c: Likewise.
16932 * gimple-ssa-strength-reduction.c: Likewise.
16933 * ipa-split.c: Likewise.
16934 * loop-init.c: Likewise.
16935 * loop-unroll.c: Likewise.
16936 * lower-subreg.c: Likewise.
16937 * modulo-sched.c: Likewise.
16938 * postreload-gcse.c: Likewise.
16939 * predict.c: Likewise.
16940 * recog.c: Likewise.
16941 * sched-rgn.c: Likewise.
16942 * store-motion.c: Likewise.
16943 * tracer.c: Likewise.
16944 * trans-mem.c: Likewise.
16945 * tree-call-cdce.c: Likewise.
16946 * tree-cfg.c: Likewise.
16947 * tree-cfgcleanup.c: Likewise.
16948 * tree-complex.c: Likewise.
16949 * tree-eh.c: Likewise.
16950 * tree-emutls.c: Likewise.
16951 * tree-if-conv.c: Likewise.
16952 * tree-into-ssa.c: Likewise.
16953 * tree-loop-distribution.c: Likewise.
16954 * tree-object-size.c: Likewise.
16955 * tree-parloops.c: Likewise.
16956 * tree-pass.h: Likewise.
16957 * tree-sra.c: Likewise.
16958 * tree-ssa-ccp.c: Likewise.
16959 * tree-ssa-copy.c: Likewise.
16960 * tree-ssa-copyrename.c: Likewise.
16961 * tree-ssa-dce.c: Likewise.
16962 * tree-ssa-dom.c: Likewise.
16963 * tree-ssa-dse.c: Likewise.
16964 * tree-ssa-forwprop.c: Likewise.
16965 * tree-ssa-ifcombine.c: Likewise.
16966 * tree-ssa-loop-ch.c: Likewise.
16967 * tree-ssa-loop-ivcanon.c: Likewise.
16968 * tree-ssa-loop.c: Likewise.
16969 * tree-ssa-math-opts.c: Likewise.
16970 * tree-ssa-phiopt.c: Likewise.
16971 * tree-ssa-phiprop.c: Likewise.
16972 * tree-ssa-pre.c: Likewise.
16973 * tree-ssa-reassoc.c: Likewise.
16974 * tree-ssa-sink.c: Likewise.
16975 * tree-ssa-strlen.c: Likewise.
16976 * tree-ssa-tail-merge.c: Likewise.
16977 * tree-ssa-uncprop.c: Likewise.
16978 * tree-switch-conversion.c: Likewise.
16979 * tree-tailcall.c: Likewise.
16980 * tree-vect-generic.c: Likewise.
16981 * tree-vectorizer.c: Likewise.
16982 * tree-vrp.c: Likewise.
16983 * tsan.c: Likewise.
16984 * var-tracking.c: Likewise.
16985 * bt-load.c: Likewise.
16986 * cfgcleanup.c: Likewise.
16987 * combine-stack-adj.c: Likewise.
16988 * combine.c: Likewise.
16989 * compare-elim.c: Likewise.
16990 * config/epiphany/resolve-sw-modes.c: Likewise.
16991 * config/i386/i386.c: Likewise.
16992 * config/mips/mips.c: Likewise.
16993 * config/s390/s390.c: Likewise.
16994 * config/sh/sh_treg_combine.cc: Likewise.
16995 * config/sparc/sparc.c: Likewise.
16996 * dce.c: Likewise.
16997 * dse.c: Likewise.
16998 * final.c: Likewise.
16999 * ifcvt.c: Likewise.
17000 * mode-switching.c: Likewise.
17001 * passes.c: Likewise.
17002 * postreload.c: Likewise.
17003 * ree.c: Likewise.
17004 * reg-stack.c: Likewise.
17005 * regcprop.c: Likewise.
17006 * regrename.c: Likewise.
17007 * web.c: Likewise.
17008
17009 2014-05-06 Richard Biener <rguenther@suse.de>
17010
17011 PR middle-end/61070
17012 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17013 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17014
17015 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17016
17017 PR ipa/60965
17018 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17019
17020 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17021 Tom de Vries <tom@codesourcery.com>
17022
17023 * target.def (call_fusage_contains_non_callee_clobbers): New
17024 DEFHOOKPOD.
17025 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17026 Hooks to @menu.
17027 (@node Miscellaneous Register Hooks): New node.
17028 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17029 * doc/tm.texi: Regenerate.
17030
17031 2014-05-05 Marek Polacek <polacek@redhat.com>
17032
17033 PR driver/61065
17034 * opts.c (common_handle_option): Call error_at instead of warning_at.
17035
17036 2014-05-05 Richard Biener <rguenther@suse.de>
17037
17038 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17039 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17040 under the TODO_verify_il umbrella.
17041
17042 2014-05-05 Richard Biener <rguenther@suse.de>
17043
17044 * passes.c (execute_function_todo): Move TODO_verify_flow under
17045 the TODO_verify_ul umbrella.
17046
17047 2014-05-05 Richard Biener <rguenther@suse.de>
17048
17049 PR middle-end/61010
17050 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17051 X & CST away from a CST that is the mask of a mode.
17052
17053 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17054
17055 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17056 int argument to enum machine_mode.
17057 (picochip_class_max_nregs): Ditto.
17058 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17059 (picochip_class_max_nregs): Ditto.
17060
17061 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17062
17063 * target.def: Add new target hook.
17064 * doc/tm.texi: Regenerate.
17065 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17066 * targhooks.c (default_keep_leaf_when_profiled): New function.
17067
17068 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17069 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17070
17071 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17072
17073 PR tree-optimization/60363
17074 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17075 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17076 (update_destination_phis): New parameter.
17077 (create_edge_and_update_destination_phis): Ditto.
17078 (ssa_fix_duplicate_block_edges): Pass new arguments.
17079 (thread_single_edge): Ditto.
17080
17081 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17082
17083 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17084 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17085 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17086 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17087 Use RS6000_BTM_HARD_FLOAT.
17088 (BU_MISC_2): Likewise.
17089 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17090 RS6000_BTM_HARD_FLOAT.
17091 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17092 is explicitly used.
17093 (rs6000_invalid_builtin): Add hard floating builtin support.
17094 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17095 hard float builtins.
17096 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17097
17098 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17099
17100 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17101 Add missing function* argument.
17102
17103 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17104
17105 * lra-constraints.c (valid_address_p): Move earlier in file.
17106 Add a constraint argument to the address_info version.
17107 (satisfies_memory_constraint_p): New function.
17108 (satisfies_address_constraint_p): Likewise.
17109 (process_alt_operands, curr_insn_transform): Use them.
17110 (process_address): Pass the constraint to valid_address_p when
17111 checking address operands.
17112
17113 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17114
17115 * config/mips/mips.c (mips_isa_rev): New variable.
17116 (mips_set_architecture): Set it.
17117 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17118 from mips_isa_rev.
17119 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17120 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17121 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17122 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17123 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17124 conditions in terms of mips_isa_rev.
17125 (mips_isa_rev): Declare.
17126
17127 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17128
17129 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17130 (prob_unlikely, prob_likely): Make variables const.
17131
17132 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17133
17134 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17135
17136 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17137
17138 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17139
17140 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17141
17142 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17143 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17144 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17145 functions.
17146 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17147 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17148 sh_pass_in_reg_p.
17149 Replace usage of ROUND_REG with sh_round_reg.
17150 Use CEIL instead of ROUND_ADVANCE.
17151
17152 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17153
17154 PR target/61026
17155 * config/sh/sh.c: Include stdlib headers before everything else.
17156
17157 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17158
17159 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17160 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17161 (gimplify_adjust_omp_clauses): Simd region is never
17162 directly nested in combined parallel. Instead, for linear
17163 with copyin/copyout, if in combined for simd loop, make decl
17164 firstprivate/lastprivate on OMP_FOR.
17165 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17166 expand_omp_for_static_chunk): When setting endvar, also set
17167 fd->loop.v to the same value.
17168
17169 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17170
17171 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17172
17173 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17174
17175 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17176 expression.
17177
17178 2014-05-02 Marek Polacek <polacek@redhat.com>
17179
17180 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17181
17182 2014-05-02 Kito Cheng <kito@0xlab.org>
17183
17184 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17185 to a C expression marco.
17186 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17187 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17188 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17189 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17190 HONOR_REG_ALLOC_ORDER.
17191 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17192
17193 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17194
17195 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17196
17197 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17198
17199 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17200
17201 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17202
17203 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17204 (convert_scalar_cond_reduction): Likewise.
17205 (predicate_scalar_phi): Add recognition and transformation
17206 of simple conditioanl reduction to be vectorizable.
17207
17208 2014-05-01 Marek Polacek <polacek@redhat.com>
17209
17210 PR c/43245
17211 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17212
17213 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17214
17215 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17216 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17217 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17218 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17219 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17220 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17221 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17222 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17223
17224 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17225
17226 * config/arc/arc.opt (mlra): Move comment above option name
17227 to avoid mis-parsing as language options.
17228
17229 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17230
17231 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17232 * config/sol2.h: ... here.
17233 * config/sol2-10.h: Remove.
17234
17235 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17236 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17237 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17238 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17239 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17240 * config/sol2.h: ... here.
17241 (SECTION_NAME_FORMAT): Don't redefine.
17242 (STARTFILE_ARCH32_SPEC): Rename to ...
17243 (STARTFILE_ARCH_SPEC): ... this.
17244 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17245 * config/sparc/sol2.h: ... here.
17246 (SECTION_NAME_FORMAT): Don't undef.
17247 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17248 (SUBTARGET_EXTRA_SPECS): Remove.
17249 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17250
17251 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17252 (MD_STARTFILE_PREFIX): Remove.
17253 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17254 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17255 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17256 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17257 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17258 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17259 * config/i386/sol2.h: ... here.
17260 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17261 * config/i386/sol2-bi.h: Remove.
17262 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17263 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17264
17265 * config/i386/t-sol2-64: Rename to ...
17266 * config/i386/t-sol2: ... this.
17267 * config/sparc/t-sol2-64: Rename to ...
17268 * config/sparc/t-sol2: ... this.
17269
17270 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17271 sol2_tm_file_head, sol2_tm_file_tail.
17272 Include ${cpu_type}/sol2.h before sol2.h.
17273 Remove sol2-10.h.
17274 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17275 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17276 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17277 Reflect i386/t-sol2-64 renaming.
17278 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17279 Reflect sparc/t-sol2-64 renaming.
17280
17281 2014-04-30 Richard Biener <rguenther@suse.de>
17282
17283 * passes.c (execute_function_todo): Move TODO_verify_stmts
17284 and TODO_verify_ssa under the TODO_verify_il umbrella.
17285 * tree-ssa.h (verify_ssa): Adjust prototype.
17286 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17287 we should verify SSA operands.
17288 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17289 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17290 whether we should verify whether not throwing stmts have EH info.
17291 * graphite-scop-detection.c (create_sese_edges): Adjust.
17292 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17293 * tree-eh.c (lower_try_finally_switch): Do not add the
17294 default case label twice.
17295
17296 2014-04-30 Marek Polacek <polacek@redhat.com>
17297
17298 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17299 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17300 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17301 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17302
17303 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17304
17305 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17306 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17307 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17308 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17309 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17310 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17311 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17312 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17313
17314 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17315
17316 * tree-cfg.c (dump_function_to_file): Dump the return type of
17317 functions, in a line to itself before the function body, mimicking
17318 the layout of a C function.
17319
17320 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17321
17322 PR tree-optimization/60971
17323 * tree-tailcall.c (process_assignment): Reject conversions which
17324 reduce precision.
17325
17326 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17327
17328 * calls.c (initialize_argument_information): Always treat
17329 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17330 (expand_call): Likewise.
17331 (emit_library_call_calue_1): Likewise.
17332 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17333 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17334 code accordingly.
17335
17336 2014-04-29 Nick Clifton <nickc@redhat.com>
17337
17338 * config/msp430/msp430.md (umulsidi): Fix typo.
17339 (mulhisi3): Enable even inside interrupt handlers.
17340 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17341 bigger return address pushed in large mode.
17342
17343 2014-04-29 Nick Clifton <nickc@redhat.com>
17344
17345 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17346 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17347 available modes.
17348 * config/m32r/m32r.c (init_reg_tables): Likewise.
17349 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17350 enum to hold the modes.
17351
17352 2014-04-29 Richard Biener <rguenther@suse.de>
17353
17354 * dominance.c (free_dominance_info): Add overload with
17355 function parameter.
17356 (dom_info_state): Likewise.
17357 (dom_info_available_p): Likewise.
17358 * basic-block.h (free_dominance_info, dom_info_state,
17359 dom_info_available_p): Declare overloads.
17360 * passes.c (execute_function_todo): Verify that verifiers
17361 don't change dominator info state. Drop dominator info
17362 for IPA pass invocations.
17363 * cgraph.c (release_function_body): Restore asserts that
17364 dominator information is released.
17365
17366 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17367
17368 * doc/invoke.texi: Fix typo.
17369 * tree-vrp.c: Fix typos.
17370 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17371
17372 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17373
17374 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17375
17376 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17377
17378 * config/aarch64/aarch64-builtins.c
17379 (aarch64_types_storestruct_lane_qualifiers): New.
17380 (TYPES_STORESTRUCT_LANE): Likewise.
17381 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17382 (st3_lane): Likewise.
17383 (st4_lane): Likewise.
17384 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17385 (vec_store_lanesci_lane<mode>): Likewise.
17386 (vec_store_lanesxi_lane<mode>): Likewise.
17387 (aarch64_st2_lane<VQ:mode>): Likewise.
17388 (aarch64_st3_lane<VQ:mode>): Likewise.
17389 (aarch64_st4_lane<VQ:mode>): Likewise.
17390 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17391 * config/aarch64/arm_neon.h
17392 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17393 use new macro arguments.
17394 (__ST3_LANE_FUNC): Likewise.
17395 (__ST4_LANE_FUNC): Likewise.
17396 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17397 (V_THREE_ELEM): Likewise.
17398 (V_FOUR_ELEM): Likewise.
17399
17400 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17401
17402 * doc/gimple.texi: Replace the description of the now-defunct
17403 union gimple_statement_d with a diagram showing the
17404 gimple_statement_base class hierarchy and its relationships to
17405 the GSS_ and GIMPLE_ enums.
17406
17407 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17408
17409 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17410 * config/aarch64/aarch64.c
17411 (aarch64_cannot_change_mode_class): Weaken conditions.
17412 (aarch64_modes_tieable_p): New.
17413 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17414
17415 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17416
17417 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17418 (loadsync_<mode>): Change mode.
17419 (load_quadpti, store_quadpti): New.
17420 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17421 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17422
17423 2014-04-28 Martin Jambor <mjambor@suse.cz>
17424
17425 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17426 same alias type as the original statement.
17427 (subreplacement_assignment_data): New type.
17428 (handle_unscalarized_data_in_subtree): New type of parameter,
17429 generate new memory accesses with same alias type as the original
17430 statement.
17431 (load_assign_lhs_subreplacements): Likewise.
17432 (sra_modify_constructor_assign): Generate new memory accesses with
17433 same alias type as the original statement.
17434
17435 2014-04-28 Richard Biener <rguenther@suse.de>
17436
17437 * tree-pass.h (TODO_verify_il): Define.
17438 (TODO_verify_all): Complete properly.
17439 * passes.c (execute_function_todo): Move existing loop-closed
17440 SSA verification under TODO_verify_il.
17441 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17442 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17443 Fix tree sharing issue.
17444
17445 2014-04-28 Richard Biener <rguenther@suse.de>
17446
17447 PR middle-end/60092
17448 * builtins.def (DEF_C11_BUILTIN): Add.
17449 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17450 * coretypes.h (enum function_class): Add function_c11_misc.
17451 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17452 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17453 (call_may_clobber_ref_p_1): Likewise.
17454 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17455 (mark_all_reaching_defs_necessary_1): Likewise.
17456 (propagate_necessity): Likewise.
17457 (eliminate_unnecessary_stmts): Likewise.
17458 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17459
17460 2014-04-28 Richard Biener <rguenther@suse.de>
17461
17462 * tree-vrp.c (vrp_var_may_overflow): Remove.
17463 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17464 with overflow immediately bump to one before that value and
17465 let iteration figure out overflow status.
17466
17467 2014-04-28 Richard Biener <rguenther@suse.de>
17468
17469 * configure.ac: Do valgrind header checks unconditionally.
17470 Add --enable-valgrind-annotations.
17471 * system.h: Guard valgrind header inclusion with
17472 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17473 * alloc-pool.c (pool_alloc, pool_free): Use
17474 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17475 to guard possibly dead code.
17476 * config.in: Regenerated.
17477 * configure: Likewise.
17478
17479 2014-04-28 Jeff Law <law@redhat.com>
17480
17481 PR tree-optimization/60902
17482 * tree-ssa-threadedge.c
17483 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17484 over real defs when invalidating outputs from statements that do not
17485 produce useful outputs for threading.
17486
17487 2014-04-28 Richard Biener <rguenther@suse.de>
17488
17489 PR tree-optimization/60979
17490 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17491 SCOPs that end in a block with a successor with abnormal
17492 predecessors.
17493
17494 2014-04-28 Richard Biener <rguenther@suse.de>
17495
17496 * tree-pass.h (execute_pass_list): Adjust prototype.
17497 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17498 (do_per_function): Change callback signature, push all actual
17499 work to the callbals.
17500 (do_per_function_toporder): Likewise.
17501 (execute_function_dump): Adjust.
17502 (execute_function_todo): Likewise.
17503 (clear_last_verified): Likewise.
17504 (verify_curr_properties): Likewise.
17505 (update_properties_after_pass): Likewise.
17506 (execute_pass_list_1): Split out from ...
17507 (execute_pass_list): ... here. Adjust.
17508 (execute_ipa_pass_list): Likewise.
17509 * cgraphunit.c (cgraph_add_new_function): Adjust.
17510 (analyze_function): Likewise.
17511 (expand_function): Likewise.
17512 * cgraph.c (release_function_body): Free dominance info
17513 here instead of asserting it was magically freed elsewhere.
17514
17515 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17516
17517 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17518 * configure: Regenerate.
17519 * config/sparc/sparc.opt (muser-mode): New option.
17520 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17521 for LEON3.
17522 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17523 * doc/invoke.texi (SPARC options): Document -muser-mode.
17524
17525 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17526
17527 * cselib.c (find_slot_memmode): Delete.
17528 (cselib_hasher): Change compare_type to a struct.
17529 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17530 constants.
17531 (preserve_constants_and_equivs): Adjust for new compare_type.
17532 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17533 (wrap_constant): Delete.
17534 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17535
17536 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17537
17538 * doc/install.texi (Building with profile feedback): Remove
17539 outdated sentence.
17540
17541 2014-04-26 Tom de Vries <tom@codesourcery.com>
17542
17543 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17544 array accesses.
17545
17546 2014-04-25 Cary Coutant <ccoutant@google.com>
17547
17548 PR debug/60929
17549 * dwarf2out.c (should_move_die_to_comdat): A type definition
17550 can contain a subprogram definition, but don't move it to a
17551 comdat unit.
17552 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17553 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17554 from original DIE.
17555 (clone_tree_hash): Rename to...
17556 (clone_tree_partial): ...this; change callers. Copy
17557 DW_TAG_subprogram DIEs as declarations.
17558 (copy_decls_walk): Don't copy children of a declaration into a
17559 type unit.
17560
17561 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17562
17563 PR target/60969
17564 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17565 alternative 12.
17566
17567 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17568
17569 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17570 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17571 reg for long_call.
17572 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17573 restriction.
17574
17575 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17576
17577 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17578
17579 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17580
17581 PR tree-optimization/60930
17582 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17583 creating a multiply candidate by folding two constant
17584 multiplicands when the result overflows.
17585
17586 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17587
17588 PR tree-optimization/60960
17589 * tree-vect-generic.c (expand_vector_operation): Only call
17590 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17591
17592 2014-04-25 Tom de Vries <tom@codesourcery.com>
17593
17594 * expr.c (clobber_reg_mode): New function.
17595 * expr.h (clobber_reg): New function.
17596
17597 2014-04-25 Tom de Vries <tom@codesourcery.com>
17598
17599 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
17600 clobbers.
17601
17602 2014-04-25 Radovan Obradovic <robradovic@mips.com>
17603 Tom de Vries <tom@codesourcery.com>
17604
17605 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
17606 handle.
17607 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
17608 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
17609 new argument to find_all_hard_reg_sets call.
17610
17611 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17612
17613 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
17614 Use HOST_WIDE_INT_C for mask literal.
17615 (aarch_rev16_shleft_mask_imm_p): Likewise.
17616
17617 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
17618
17619 PR target/60941
17620 * config/sparc/sparc.md (ashlsi3_extend): Delete.
17621
17622 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
17623
17624 PR preprocessor/56540
17625 * config/i386/i386-c.c (ix86_target_macros): Define
17626 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
17627
17628 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17629
17630 * configure.ac (tga_func): Remove.
17631 (LIB_TLS_SPEC): Remove.
17632 * configure: Regenerate.
17633 * config.in: Regenerate.
17634 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
17635
17636 2014-04-25 Richard Biener <rguenther@suse.de>
17637
17638 PR ipa/60912
17639 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
17640 call stmt use/clobber sets during stmt walk instead of
17641 walking the possibly incomplete set of caller edges.
17642
17643 2014-04-25 Richard Biener <rguenther@suse.de>
17644
17645 PR ipa/60911
17646 * passes.c (apply_ipa_transforms): Inline into only caller ...
17647 (execute_one_pass): ... here. Properly bring in function
17648 bodies for nodes we want to apply IPA transforms to.
17649
17650 2014-04-24 Cong Hou <congh@google.com>
17651
17652 PR tree-optimization/60896
17653 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
17654 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
17655 (vect_mark_pattern_stmts): Set the def type of all statements in
17656 PATTERN_DEF_SEQ as vect_internal_def.
17657
17658 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17659
17660 * doc/extend.texi (PowerPC Built-in Functions): Document new
17661 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
17662 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
17663
17664 * config/rs6000/predicates.md (const_0_to_3_operand): New
17665 predicate to match 0..3 integer constants.
17666
17667 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
17668 to support adding miscellaneous builtin functions.
17669 (BU_DFP_MISC_2): Likewise.
17670 (BU_P7_MISC_1): Likewise.
17671 (BU_P7_MISC_2): Likewise.
17672 (BU_P8V_MISC_3): Likewise.
17673 (BU_MISC_1): Likewise.
17674 (BU_MISC_2): Likewise.
17675 (DIVWE): Add extended divide builtin functions.
17676 (DIVWEO): Likewise.
17677 (DIVWEU): Likewise.
17678 (DIVWEUO): Likewise.
17679 (DIVDE): Likewise.
17680 (DIVDEO): Likewise.
17681 (DIVDEU): Likewise.
17682 (DIVDEUO): Likewise.
17683 (DXEX): Add decimal floating-point builtin functions.
17684 (DXEXQ): Likewise.
17685 (DDEDPD): Likewise.
17686 (DDEDPDQ): Likewise.
17687 (DENBCD): Likewise.
17688 (DENBCDQ): Likewise.
17689 (DIEX): Likewise.
17690 (DIEXQ): Likewise.
17691 (DSCLI): Likewise.
17692 (DSCLIQ): Likewise.
17693 (DSCRI): Likewise.
17694 (DSCRIQ): Likewise.
17695 (CDTBCD): Add new BCD builtin functions.
17696 (CBCDTD): Likewise.
17697 (ADDG6S): Likewise.
17698 (BCDADD): Likewise.
17699 (BCDADD_LT): Likewise.
17700 (BCDADD_EQ): Likewise.
17701 (BCDADD_GT): Likewise.
17702 (BCDADD_OV): Likewise.
17703 (BCDSUB): Likewise.
17704 (BCDSUB_LT): Likewise.
17705 (BCDSUB_EQ): Likewise.
17706 (BCDSUB_GT): Likewise.
17707 (BCDSUB_OV): Likewise.
17708 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
17709 (UNPACK_TD): Likewise.
17710 (PACK_TF): Likewise.
17711 (UNPACK_TF): Likewise.
17712 (UNPACK_TF_0): Likewise.
17713 (UNPACK_TF_1): Likewise.
17714 (PACK_V1TI): Likewise.
17715 (UNPACK_V1TI): Likewise.
17716
17717 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17718 support for decimal floating point builtin functions.
17719 (rs6000_expand_ternop_builtin): Add checks for the new builtin
17720 functions that take constant arguments.
17721 (rs6000_invalid_builtin): Add decimal floating point builtin support.
17722 (rs6000_init_builtins): Setup long double, _Decimal64, and
17723 _Decimal128 types for new builtin functions.
17724 (builtin_function_type): Set the unsigned flags appropriately for
17725 the new builtin functions.
17726 (rs6000_opt_masks): Add support for decimal floating point builtin
17727 functions.
17728
17729 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
17730 floating point builtin functions.
17731 (RS6000_BTM_COMMON): Likewise.
17732 (RS6000_BTI_long_double): Likewise.
17733 (RS6000_BTI_dfloat64): Likewise.
17734 (RS6000_BTI_dfloat128): Likewise.
17735 (long_double_type_internal_node): Likewise.
17736 (dfloat64_type_internal_node): Likewise.
17737 (dfloat128_type_internal_node): Likewise.
17738
17739 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
17740 2.07 bcd arithmetic instructions.
17741 (UNSPEC_BCDSUB): Likewise.
17742 (UNSPEC_BCD_OVERFLOW): Likewise.
17743 (UNSPEC_BCD_ADD_SUB): Likewise.
17744 (bcd_add_sub): Likewise.
17745 (BCD_TEST): Likewise.
17746 (bcd<bcd_add_sub>): Likewise.
17747 (bcd<bcd_add_sub>_test): Likewise.
17748 (bcd<bcd_add_sub>_test2): Likewise.
17749 (bcd<bcd_add_sub>_<code>): Likewise.
17750 (peephole2 for combined bcd ops): Likewise.
17751
17752 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
17753 decimal floating point builtin functions.
17754 (UNSPEC_DENBCD): Likewise.
17755 (UNSPEC_DXEX): Likewise.
17756 (UNSPEC_DIEX): Likewise.
17757 (UNSPEC_DSCLI): Likewise.
17758 (UNSPEC_DSCRI): Likewise.
17759 (D64_D128): Likewise.
17760 (dfp_suffix): Likewise.
17761 (dfp_ddedpd_<mode>): Likewise.
17762 (dfp_denbcd_<mode>): Likewise.
17763 (dfp_dxex_<mode>): Likewise.
17764 (dfp_diex_<mode>): Likewise.
17765 (dfp_dscli_<mode>): Likewise.
17766 (dfp_dscri_<mode>): Likewise.
17767
17768 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
17769 builtin functions.
17770 (UNSPEC_CDTBCD): Likewise.
17771 (UNSPEC_CBCDTD): Likewise.
17772 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
17773 (UNSPEC_DIVEO): Likewise.
17774 (UNSPEC_DIVEU): Likewise.
17775 (UNSPEC_DIVEUO): Likewise.
17776 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
17777 pack/unpack 128-bit types.
17778 (UNSPEC_PACK_128BIT): Likewise.
17779 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
17780 (udiv<mode>3): Use idiv_ldiv mode attribute.
17781 (div<mode>3): Likewise.
17782 (addg6s): Add new BCD builtin functions.
17783 (cdtbcd): Likewise.
17784 (cbcdtd): Likewise.
17785 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
17786 (div_extend): Likewise.
17787 (div<div_extend>_<mode>"): Likewise.
17788 (FP128_64): Add support for new builtin functions to pack/unpack
17789 128-bit types.
17790 (unpack<mode>): Likewise.
17791 (unpacktf_0): Likewise.
17792 (unpacktf_1): Likewise.
17793 (unpack<mode>_dm): Likewise.
17794 (unpack<mode>_nodm): Likewise.
17795 (pack<mode>): Likewise.
17796 (unpackv1ti): Likewise.
17797 (packv1ti): Likewise.
17798
17799 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
17800
17801 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
17802 is disabled.
17803
17804 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17805
17806 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
17807 * gimplify.c (omp_is_private): Change last argument's type to int.
17808 Only diagnose lastprivate if the simd argument is 1, only diagnose
17809 linear if the simd argument is 2.
17810 (gimplify_omp_for): Adjust omp_is_private callers. When adding
17811 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
17812 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
17813 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
17814 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
17815 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17816 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
17817 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17818 * tree-nested.c (convert_nonlocal_omp_clauses,
17819 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
17820
17821 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
17822
17823 PR target/60822
17824 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
17825 operand 1.
17826
17827 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
17828
17829 * flag-types.h (enum ivar_visibility): Add.
17830
17831 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
17832
17833 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
17834 function * argument.
17835
17836 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
17837
17838 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
17839
17840 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17841 Tom de Vries <tom@codesourcery.com>
17842
17843 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
17844 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
17845 reg-note.
17846 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
17847 * emit-rtl.c (try_split): Same.
17848
17849 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17850 Tom de Vries <tom@codesourcery.com>
17851
17852 * common.opt (fuse-caller-save): New option.
17853
17854 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
17855
17856 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
17857 elements for big-endian.
17858
17859 2014-04-24 Richard Biener <rguenther@suse.de>
17860
17861 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
17862 during TER and instead use the sepops interface for expanding
17863 non-GIMPLE_SINGLE_RHS.
17864
17865 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17866
17867 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
17868 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
17869
17870 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17871
17872 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
17873 assembler 64-bit option.
17874 * configure: Regenerate.
17875
17876 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17877
17878 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
17879 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
17880 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
17881 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
17882 (TARGET_CRYPTO): Take TARGET_SIMD into account.
17883
17884 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17885
17886 * config/aarch64/aarch64-builtins.c
17887 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
17888 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
17889 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
17890 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
17891 builtins.
17892 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
17893 (Vrevsuff): New mode attribute.
17894
17895 2014-04-24 Terry Guo <terry.guo@arm.com>
17896
17897 * config/arm/arm.h (machine_function): Define variable
17898 after_arm_reorg here.
17899 * config/arm/arm.c (after_arm_reorg): Remove the definition.
17900 (arm_split_constant): Update the way to access variable
17901 after_arm_reorg.
17902 (arm_reorg): Ditto.
17903 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
17904
17905 2014-04-23 Tom de Vries <tom@codesourcery.com>
17906
17907 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
17908
17909 2014-04-23 David Malcolm <dmalcolm@redhat.com>
17910
17911 * is-a.h: Update comments to reflect the following changes to the
17912 "pointerness" of the API, making the template parameter match the
17913 return type, allowing use of is-a.h with typedefs of pointers.
17914 (is_a_helper::cast): Return a T rather then a pointer to a T, so
17915 that the return type matches the parameter to the is_a_helper.
17916 (as_a): Likewise.
17917 (dyn_cast): Likewise.
17918
17919 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
17920 pointer from the is-a.h API.
17921
17922 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
17923 (is_a_helper <cgraph_node *>::test): ...this, matching change to
17924 is-a.h API.
17925 (is_a_helper <varpool_node>::test): Likewise, convert to...
17926 (is_a_helper <varpool_node *>::test): ...this.
17927
17928 (varpool_first_variable): Update for removal of implicit pointer
17929 from the is-a.h API.
17930 (varpool_next_variable): Likewise.
17931 (varpool_first_static_initializer): Likewise.
17932 (varpool_next_static_initializer): Likewise.
17933 (varpool_first_defined_variable): Likewise.
17934 (varpool_next_defined_variable): Likewise.
17935 (cgraph_first_defined_function): Likewise.
17936 (cgraph_next_defined_function): Likewise.
17937 (cgraph_first_function): Likewise.
17938 (cgraph_next_function): Likewise.
17939 (cgraph_first_function_with_gimple_body): Likewise.
17940 (cgraph_next_function_with_gimple_body): Likewise.
17941 (cgraph_alias_target): Likewise.
17942 (varpool_alias_target): Likewise.
17943 (cgraph_function_or_thunk_node): Likewise.
17944 (varpool_variable_node): Likewise.
17945 (symtab_real_symbol_p): Likewise.
17946 * cgraphunit.c (referred_to_p): Likewise.
17947 (analyze_functions): Likewise.
17948 (handle_alias_pairs): Likewise.
17949 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
17950 * gimple-ssa.h (gimple_vuse_op): Likewise.
17951 (gimple_vdef_op): Likewise.
17952 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
17953 * gimple.c (gimple_build_asm_1): Likewise.
17954 (gimple_build_try): Likewise.
17955 (gimple_build_resx): Likewise.
17956 (gimple_build_eh_dispatch): Likewise.
17957 (gimple_build_omp_for): Likewise.
17958 (gimple_omp_for_set_clauses): Likewise.
17959
17960 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
17961 (is_a_helper <gimple_statement_asm *>::test): ...this.
17962 (is_a_helper <gimple_statement_bind>::test): Convert to...
17963 (is_a_helper <gimple_statement_bind *>::test): ...this.
17964 (is_a_helper <gimple_statement_call>::test): Convert to...
17965 (is_a_helper <gimple_statement_call *>::test): ...this.
17966 (is_a_helper <gimple_statement_catch>::test): Convert to...
17967 (is_a_helper <gimple_statement_catch *>::test): ...this.
17968 (is_a_helper <gimple_statement_resx>::test): Convert to...
17969 (is_a_helper <gimple_statement_resx *>::test): ...this.
17970 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
17971 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
17972 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
17973 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
17974 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
17975 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
17976 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
17977 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
17978 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
17979 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
17980 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
17981 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
17982 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
17983 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
17984 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
17985 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
17986 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
17987 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
17988 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
17989 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
17990 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
17991 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
17992 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
17993 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
17994 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
17995 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
17996 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
17997 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
17998 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
17999 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18000 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18001 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18002 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18003 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18004 (is_a_helper <gimple_statement_phi>::test): Convert to...
18005 (is_a_helper <gimple_statement_phi *>::test): ...this.
18006 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18007 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18008 (is_a_helper <gimple_statement_try>::test): Convert to...
18009 (is_a_helper <gimple_statement_try *>::test): ...this.
18010 (is_a_helper <gimple_statement_wce>::test): Convert to...
18011 (is_a_helper <gimple_statement_wce *>::test): ...this.
18012 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18013 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18014 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18015 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18016 (is_a_helper <const gimple_statement_call>::test): Convert to...
18017 (is_a_helper <const gimple_statement_call *>::test): ...this.
18018 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18019 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18020 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18021 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18022 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18023 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18024 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18025 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18026 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18027 Convert to...
18028 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18029 ...this.
18030 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18031 Convert to...
18032 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18033 ...this.
18034 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18035 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18036 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18037 to...
18038 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18039 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18040 to...
18041 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18042 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18043 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18044 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18045 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18046 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18047 to...
18048 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18049 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18050 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18051 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18052 to...
18053 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18054 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18055 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18056 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18057 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18058 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18059 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18060 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18061 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18062 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18063 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18064 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18065 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18066 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18067 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18068 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18069 to...
18070 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18071 ...this.
18072 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18073 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18074
18075 (gimple_use_ops): Update for removal of implicit pointer from the
18076 is-a.h API.
18077 (gimple_set_use_ops): Likewise.
18078 (gimple_vuse): Likewise.
18079 (gimple_vdef): Likewise.
18080 (gimple_vuse_ptr): Likewise.
18081 (gimple_vdef_ptr): Likewise.
18082 (gimple_set_vuse): Likewise.
18083 (gimple_set_vdef): Likewise.
18084 (gimple_omp_return_set_lhs): Likewise.
18085 (gimple_omp_return_lhs): Likewise.
18086 (gimple_omp_return_lhs_ptr): Likewise.
18087 (gimple_call_fntype): Likewise.
18088 (gimple_call_set_fntype): Likewise.
18089 (gimple_call_set_internal_fn): Likewise.
18090 (gimple_call_use_set): Likewise.
18091 (gimple_call_clobber_set): Likewise.
18092 (gimple_bind_vars): Likewise.
18093 (gimple_bind_set_vars): Likewise.
18094 (gimple_bind_body_ptr): Likewise.
18095 (gimple_bind_set_body): Likewise.
18096 (gimple_bind_add_stmt): Likewise.
18097 (gimple_bind_block): Likewise.
18098 (gimple_bind_set_block): Likewise.
18099 (gimple_asm_ninputs): Likewise.
18100 (gimple_asm_noutputs): Likewise.
18101 (gimple_asm_nclobbers): Likewise.
18102 (gimple_asm_nlabels): Likewise.
18103 (gimple_asm_input_op): Likewise.
18104 (gimple_asm_input_op_ptr): Likewise.
18105 (gimple_asm_output_op): Likewise.
18106 (gimple_asm_output_op_ptr): Likewise.
18107 (gimple_asm_set_output_op): Likewise.
18108 (gimple_asm_clobber_op): Likewise.
18109 (gimple_asm_set_clobber_op): Likewise.
18110 (gimple_asm_label_op): Likewise.
18111 (gimple_asm_set_label_op): Likewise.
18112 (gimple_asm_string): Likewise.
18113 (gimple_catch_types): Likewise.
18114 (gimple_catch_types_ptr): Likewise.
18115 (gimple_catch_handler_ptr): Likewise.
18116 (gimple_catch_set_types): Likewise.
18117 (gimple_catch_set_handler): Likewise.
18118 (gimple_eh_filter_types): Likewise.
18119 (gimple_eh_filter_types_ptr): Likewise.
18120 (gimple_eh_filter_failure_ptr): Likewise.
18121 (gimple_eh_filter_set_types): Likewise.
18122 (gimple_eh_filter_set_failure): Likewise.
18123 (gimple_eh_must_not_throw_fndecl): Likewise.
18124 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18125 (gimple_eh_else_n_body_ptr): Likewise.
18126 (gimple_eh_else_e_body_ptr): Likewise.
18127 (gimple_eh_else_set_n_body): Likewise.
18128 (gimple_eh_else_set_e_body): Likewise.
18129 (gimple_try_eval_ptr): Likewise.
18130 (gimple_try_cleanup_ptr): Likewise.
18131 (gimple_try_set_eval): Likewise.
18132 (gimple_try_set_cleanup): Likewise.
18133 (gimple_wce_cleanup_ptr): Likewise.
18134 (gimple_wce_set_cleanup): Likewise.
18135 (gimple_phi_capacity): Likewise.
18136 (gimple_phi_num_args): Likewise.
18137 (gimple_phi_result): Likewise.
18138 (gimple_phi_result_ptr): Likewise.
18139 (gimple_phi_set_result): Likewise.
18140 (gimple_phi_arg): Likewise.
18141 (gimple_phi_set_arg): Likewise.
18142 (gimple_resx_region): Likewise.
18143 (gimple_resx_set_region): Likewise.
18144 (gimple_eh_dispatch_region): Likewise.
18145 (gimple_eh_dispatch_set_region): Likewise.
18146 (gimple_omp_critical_name): Likewise.
18147 (gimple_omp_critical_name_ptr): Likewise.
18148 (gimple_omp_critical_set_name): Likewise.
18149 (gimple_omp_for_clauses): Likewise.
18150 (gimple_omp_for_clauses_ptr): Likewise.
18151 (gimple_omp_for_set_clauses): Likewise.
18152 (gimple_omp_for_collapse): Likewise.
18153 (gimple_omp_for_index): Likewise.
18154 (gimple_omp_for_index_ptr): Likewise.
18155 (gimple_omp_for_set_index): Likewise.
18156 (gimple_omp_for_initial): Likewise.
18157 (gimple_omp_for_initial_ptr): Likewise.
18158 (gimple_omp_for_set_initial): Likewise.
18159 (gimple_omp_for_final): Likewise.
18160 (gimple_omp_for_final_ptr): Likewise.
18161 (gimple_omp_for_set_final): Likewise.
18162 (gimple_omp_for_incr): Likewise.
18163 (gimple_omp_for_incr_ptr): Likewise.
18164 (gimple_omp_for_set_incr): Likewise.
18165 (gimple_omp_for_pre_body_ptr): Likewise.
18166 (gimple_omp_for_set_pre_body): Likewise.
18167 (gimple_omp_parallel_clauses): Likewise.
18168 (gimple_omp_parallel_clauses_ptr): Likewise.
18169 (gimple_omp_parallel_set_clauses): Likewise.
18170 (gimple_omp_parallel_child_fn): Likewise.
18171 (gimple_omp_parallel_child_fn_ptr): Likewise.
18172 (gimple_omp_parallel_set_child_fn): Likewise.
18173 (gimple_omp_parallel_data_arg): Likewise.
18174 (gimple_omp_parallel_data_arg_ptr): Likewise.
18175 (gimple_omp_parallel_set_data_arg): Likewise.
18176 (gimple_omp_task_clauses): Likewise.
18177 (gimple_omp_task_clauses_ptr): Likewise.
18178 (gimple_omp_task_set_clauses): Likewise.
18179 (gimple_omp_task_child_fn): Likewise.
18180 (gimple_omp_task_child_fn_ptr): Likewise.
18181 (gimple_omp_task_set_child_fn): Likewise.
18182 (gimple_omp_task_data_arg): Likewise.
18183 (gimple_omp_task_data_arg_ptr): Likewise.
18184 (gimple_omp_task_set_data_arg): Likewise.
18185 (gimple_omp_taskreg_clauses): Likewise.
18186 (gimple_omp_taskreg_clauses_ptr): Likewise.
18187 (gimple_omp_taskreg_set_clauses): Likewise.
18188 (gimple_omp_taskreg_child_fn): Likewise.
18189 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18190 (gimple_omp_taskreg_set_child_fn): Likewise.
18191 (gimple_omp_taskreg_data_arg): Likewise.
18192 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18193 (gimple_omp_taskreg_set_data_arg): Likewise.
18194 (gimple_omp_task_copy_fn): Likewise.
18195 (gimple_omp_task_copy_fn_ptr): Likewise.
18196 (gimple_omp_task_set_copy_fn): Likewise.
18197 (gimple_omp_task_arg_size): Likewise.
18198 (gimple_omp_task_arg_size_ptr): Likewise.
18199 (gimple_omp_task_set_arg_size): Likewise.
18200 (gimple_omp_task_arg_align): Likewise.
18201 (gimple_omp_task_arg_align_ptr): Likewise.
18202 (gimple_omp_task_set_arg_align): Likewise.
18203 (gimple_omp_single_clauses): Likewise.
18204 (gimple_omp_single_clauses_ptr): Likewise.
18205 (gimple_omp_single_set_clauses): Likewise.
18206 (gimple_omp_target_clauses): Likewise.
18207 (gimple_omp_target_clauses_ptr): Likewise.
18208 (gimple_omp_target_set_clauses): Likewise.
18209 (gimple_omp_target_child_fn): Likewise.
18210 (gimple_omp_target_child_fn_ptr): Likewise.
18211 (gimple_omp_target_set_child_fn): Likewise.
18212 (gimple_omp_target_data_arg): Likewise.
18213 (gimple_omp_target_data_arg_ptr): Likewise.
18214 (gimple_omp_target_set_data_arg): Likewise.
18215 (gimple_omp_teams_clauses): Likewise.
18216 (gimple_omp_teams_clauses_ptr): Likewise.
18217 (gimple_omp_teams_set_clauses): Likewise.
18218 (gimple_omp_sections_clauses): Likewise.
18219 (gimple_omp_sections_clauses_ptr): Likewise.
18220 (gimple_omp_sections_set_clauses): Likewise.
18221 (gimple_omp_sections_control): Likewise.
18222 (gimple_omp_sections_control_ptr): Likewise.
18223 (gimple_omp_sections_set_control): Likewise.
18224 (gimple_omp_for_set_cond): Likewise.
18225 (gimple_omp_for_cond): Likewise.
18226 (gimple_omp_atomic_store_set_val): Likewise.
18227 (gimple_omp_atomic_store_val): Likewise.
18228 (gimple_omp_atomic_store_val_ptr): Likewise.
18229 (gimple_omp_atomic_load_set_lhs): Likewise.
18230 (gimple_omp_atomic_load_lhs): Likewise.
18231 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18232 (gimple_omp_atomic_load_set_rhs): Likewise.
18233 (gimple_omp_atomic_load_rhs): Likewise.
18234 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18235 (gimple_omp_continue_control_def): Likewise.
18236 (gimple_omp_continue_control_def_ptr): Likewise.
18237 (gimple_omp_continue_set_control_def): Likewise.
18238 (gimple_omp_continue_control_use): Likewise.
18239 (gimple_omp_continue_control_use_ptr): Likewise.
18240 (gimple_omp_continue_set_control_use): Likewise.
18241 (gimple_transaction_body_ptr): Likewise.
18242 (gimple_transaction_label): Likewise.
18243 (gimple_transaction_label_ptr): Likewise.
18244 (gimple_transaction_set_body): Likewise.
18245 (gimple_transaction_set_label): Likewise.
18246
18247 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18248 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18249 * ipa-ref.c (ipa_record_reference): Likewise.
18250 * ipa-reference.c (analyze_function): Likewise.
18251 (ipa_reference_write_optimization_summary): Likewise.
18252 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18253 (address_taken_from_non_vtable_p): Likewise.
18254 (comdat_can_be_unshared_p_1): Likewise.
18255 * lto-cgraph.c (lto_output_ref): Likewise.
18256 (add_references): Likewise.
18257 (compute_ltrans_boundary): Likewise.
18258 (output_symtab): Likewise.
18259 (input_ref): Likewise.
18260 (input_cgraph_1): Likewise.
18261 (output_cgraph_opt_summary): Likewise.
18262 * lto-streamer-out.c (lto_output): Likewise.
18263 (output_symbol_p): Likewise.
18264 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18265 (lsei_start_function_in_partition): Likewise.
18266 (lsei_next_variable_in_partition): Likewise.
18267 (lsei_start_variable_in_partition): Likewise.
18268 * symtab.c (insert_to_assembler_name_hash): Likewise.
18269 (unlink_from_assembler_name_hash): Likewise.
18270 (symtab_unregister_node): Likewise.
18271 (symtab_remove_node): Likewise.
18272 (dump_symtab_node): Likewise.
18273 (verify_symtab_base): Likewise.
18274 (verify_symtab_node): Likewise.
18275 (symtab_make_decl_local): Likewise.
18276 (symtab_alias_ultimate_target): Likewise.
18277 (symtab_resolve_alias): Likewise.
18278 (symtab_get_symbol_partitioning_class): Likewise.
18279 * tree-phinodes.c (allocate_phi_node): Likewise.
18280 (reserve_phi_args_for_new_edge): Likewise.
18281 (remove_phi_args): Likewise.
18282 * varpool.c (varpool_node_for_asm): Likewise.
18283 (varpool_remove_unreferenced_decls): Likewise.
18284
18285 2014-04-23 Jeff Law <law@redhat.com>
18286
18287 PR tree-optimization/60902
18288 * tree-ssa-threadedge.c
18289 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18290 invalidate outputs from statements that do not produce useful
18291 outputs for threading.
18292
18293 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18294
18295 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18296 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18297 machine descriptions for Stack Smashing Protector.
18298
18299 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18300
18301 * aarch64.md (<optab>_rol<mode>3): New pattern.
18302 (<optab>_rolsi3_uxtw): Likewise.
18303 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18304
18305 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18306
18307 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18308 (arm_cortex_a12_tune): Likewise.
18309
18310 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18311
18312 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18313
18314 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18315
18316 * config/arm/arm.md (arm_rev16si2): New pattern.
18317 (arm_rev16si2_alt): Likewise.
18318 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18319
18320 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18321
18322 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18323 (rev16<mode>2_alt): Likewise.
18324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18325 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18326 (aarch_rev16_shleft_mask_imm_p): Likewise.
18327 (aarch_rev16_p_1): Likewise.
18328 (aarch_rev16_p): Likewise.
18329 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18330 (aarch_rev16_shright_mask_imm_p): Likewise.
18331 (aarch_rev16_shleft_mask_imm_p): Likewise.
18332
18333 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18334
18335 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18336 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18337 rev cost.
18338 (cortex_a53_extra_costs): Likewise.
18339 (cortex_a57_extra_costs): Likewise.
18340 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18341 (cortexa7_extra_costs): Likewise.
18342 (cortexa8_extra_costs): Likewise.
18343 (cortexa12_extra_costs): Likewise.
18344 (cortexa15_extra_costs): Likewise.
18345 (v7m_extra_costs): Likewise.
18346 (arm_new_rtx_costs): Handle BSWAP.
18347
18348 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18349
18350 * config/arm/arm.c (cortexa8_extra_costs): New table.
18351 (arm_cortex_a8_tune): New tuning struct.
18352 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18353
18354 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18355
18356 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18357
18358 2014-04-23 Richard Biener <rguenther@suse.de>
18359
18360 * Makefile.in (OBJS): Remove loop-unswitch.o.
18361 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18362 * passes.def (pass_rtl_unswitch): Likewise.
18363 * loop-init.c (gate_rtl_unswitch): Likewise.
18364 (rtl_unswitch): Likewise.
18365 (pass_data_rtl_unswitch): Likewise.
18366 (pass_rtl_unswitch): Likewise.
18367 (make_pass_rtl_unswitch): Likewise.
18368 * rtl.h (reversed_condition): Likewise.
18369 (compare_and_jump_seq): Likewise.
18370 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18371 and make static.
18372 * loop-unroll.c (compare_and_jump_seq): Likewise.
18373
18374 2014-04-23 Richard Biener <rguenther@suse.de>
18375
18376 PR tree-optimization/60903
18377 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18378 commented code block.
18379 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18380 loop flags to newly created BBs and edges.
18381
18382 2014-04-23 Nick Clifton <nickc@redhat.com>
18383
18384 * config/msp430/msp430.c (msp430_handle_option): Move function
18385 to msp430-common.c
18386 (msp430_option_override): Simplify mcu and mcpu option handling.
18387 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18388 support for -mhwmult command line option.
18389 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18390 -mhwmult command line option.
18391 (msp430_hwmult_enabled): Delete.
18392 (msp43o_output_labelref): Add support for -mhwmult command line option.
18393 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18394 (umulsidi3): Likewise.
18395 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18396 (mcpu, mlarge, msmall): Likewise.
18397 (mhwmult): New option.
18398 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18399 prototype.
18400 (msp430_is_f5_mcu): Remove prototype.
18401 (msp430_use_f5_series_hwmult): Add prototype.
18402 * config/msp430/msp430-opts.h: New file.
18403 * common/config/msp430: New directory.
18404 * common/config/msp430/msp430-common.c: New file.
18405 * config.gcc (msp430): Remove target_has_targetm_common.
18406 * doc/invoke.texi: Document -mhwmult command line option.
18407
18408 2014-04-23 Nick Clifton <nickc@redhat.com>
18409
18410 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18411 default-manifest.o if it can be found in the search path.
18412 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18413
18414 2014-04-23 Terry Guo <terry.guo@arm.com>
18415
18416 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18417
18418 2014-04-23 Richard Biener <rguenther@suse.de>
18419
18420 PR middle-end/60895
18421 * tree-inline.c (declare_return_variable): Use mark_addressable.
18422
18423 2014-04-23 Richard Biener <rguenther@suse.de>
18424
18425 PR middle-end/60891
18426 * loop-init.c (loop_optimizer_init): Make sure to apply
18427 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18428
18429 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18430
18431 PR sanitizer/60275
18432 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18433 New options.
18434 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18435 if flag_sanitize_undefined_trap_on_error.
18436 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18437 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18438 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18439 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18440 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18441 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18442 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18443 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18444 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18445 * ubsan.c (ubsan_instrument_unreachable): Return
18446 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18447 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18448 if flag_sanitize_undefined_trap_on_error and
18449 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18450 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18451 instrument_bool_enum_load): Emit __builtin_trap () if
18452 flag_sanitize_undefined_trap_on_error and
18453 __builtin_handle_*_abort () if !flag_sanitize_recover.
18454 * doc/invoke.texi (-fsanitize-recover,
18455 -fsanitize-undefined-trap-on-error): Document.
18456
18457 2014-04-22 Christian Bruel <christian.bruel@st.com>
18458
18459 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18460 Force immediates to SImode.
18461
18462 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18463
18464 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18465 (lroundsfsi2): New.
18466 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18467 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18468 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18469 (nios2_fpu_insn): Add entry for round.
18470 (N2FPU_NO_ERRNO_P): Define.
18471 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18472 flag_errno_math.
18473 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18474
18475 2014-04-22 Richard Henderson <rth@redhat.com>
18476
18477 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18478 (add<GPI>3_compare0): Remove leading * from name.
18479 (add<GPI>3_carryin): Likewise.
18480 (sub<GPI>3_compare0): Likewise.
18481 (sub<GPI>3_carryin): Likewise.
18482 (<su_optab>mulditi3): New expander.
18483 (multi3): New expander.
18484 (madd<GPI>): Remove leading * from name.
18485
18486 2014-04-22 Martin Jambor <mjambor@suse.cz>
18487
18488 * cgraphclones.c (cgraph_function_versioning): Copy
18489 ipa_transforms_to_apply instead of asserting it is empty.
18490
18491 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18492
18493 PR target/60868
18494 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18495 on count_exp to get mode.
18496
18497 2014-04-22 Andrew Pinski <apinski@cavium.com>
18498
18499 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18500 Handle TLS for ILP32.
18501 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18502 (tlsie_small_<mode>): this and handle PTR.
18503 (tlsie_small_sidi): New pattern.
18504 (tlsle_small): Change to an expand to handle ILP32.
18505 (tlsle_small_<mode>): New pattern.
18506 (tlsdesc_small): Rename to ...
18507 (tlsdesc_small_<mode>): this and handle PTR.
18508
18509 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18510
18511 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18512
18513 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18514
18515 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18516 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18517 (aarch64_types_signed_poly_qualifiers): Likewise.
18518 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18519 (aarch64_types_poly_signed_qualifiers): Likewise.
18520 (TYPES_REINTERP_SS): Type macro added.
18521 (TYPES_REINTERP_SU): Likewise.
18522 (TYPES_REINTERP_SP): Likewise.
18523 (TYPES_REINTERP_US): Likewise.
18524 (TYPES_REINTERP_PS): Likewise.
18525 (aarch64_fold_builtin): New expression folding added.
18526 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18527 Declarations removed.
18528 (REINTERP_SS): Declarations added.
18529 (REINTERP_US): Likewise.
18530 (REINTERP_PS): Likewise.
18531 (REINTERP_SU): Likewise.
18532 (REINTERP_SP): Likewise.
18533 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18534 (vreinterpretq_p8_f64): Likewise.
18535 (vreinterpret_p16_f64): Likewise.
18536 (vreinterpretq_p16_f64): Likewise.
18537 (vreinterpret_f32_f64): Likewise.
18538 (vreinterpretq_f32_f64): Likewise.
18539 (vreinterpret_f64_f32): Likewise.
18540 (vreinterpret_f64_p8): Likewise.
18541 (vreinterpret_f64_p16): Likewise.
18542 (vreinterpret_f64_s8): Likewise.
18543 (vreinterpret_f64_s16): Likewise.
18544 (vreinterpret_f64_s32): Likewise.
18545 (vreinterpret_f64_s64): Likewise.
18546 (vreinterpret_f64_u8): Likewise.
18547 (vreinterpret_f64_u16): Likewise.
18548 (vreinterpret_f64_u32): Likewise.
18549 (vreinterpret_f64_u64): Likewise.
18550 (vreinterpretq_f64_f32): Likewise.
18551 (vreinterpretq_f64_p8): Likewise.
18552 (vreinterpretq_f64_p16): Likewise.
18553 (vreinterpretq_f64_s8): Likewise.
18554 (vreinterpretq_f64_s16): Likewise.
18555 (vreinterpretq_f64_s32): Likewise.
18556 (vreinterpretq_f64_s64): Likewise.
18557 (vreinterpretq_f64_u8): Likewise.
18558 (vreinterpretq_f64_u16): Likewise.
18559 (vreinterpretq_f64_u32): Likewise.
18560 (vreinterpretq_f64_u64): Likewise.
18561 (vreinterpret_s64_f64): Likewise.
18562 (vreinterpretq_s64_f64): Likewise.
18563 (vreinterpret_u64_f64): Likewise.
18564 (vreinterpretq_u64_f64): Likewise.
18565 (vreinterpret_s8_f64): Likewise.
18566 (vreinterpretq_s8_f64): Likewise.
18567 (vreinterpret_s16_f64): Likewise.
18568 (vreinterpretq_s16_f64): Likewise.
18569 (vreinterpret_s32_f64): Likewise.
18570 (vreinterpretq_s32_f64): Likewise.
18571 (vreinterpret_u8_f64): Likewise.
18572 (vreinterpretq_u8_f64): Likewise.
18573 (vreinterpret_u16_f64): Likewise.
18574 (vreinterpretq_u16_f64): Likewise.
18575 (vreinterpret_u32_f64): Likewise.
18576 (vreinterpretq_u32_f64): Likewise.
18577
18578 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18579
18580 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18581 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18582 (vreinterpret_p8_s8): Likewise.
18583 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18584 (vreinterpret_p8_s16): Likewise.
18585 (vreinterpret_p8_s32): Likewise.
18586 (vreinterpret_p8_s64): Likewise.
18587 (vreinterpret_p8_f32): Likewise.
18588 (vreinterpret_p8_u8): Likewise.
18589 (vreinterpret_p8_u16): Likewise.
18590 (vreinterpret_p8_u32): Likewise.
18591 (vreinterpret_p8_u64): Likewise.
18592 (vreinterpret_p8_p16): Likewise.
18593 (vreinterpretq_p8_s8): Likewise.
18594 (vreinterpretq_p8_s16): Likewise.
18595 (vreinterpretq_p8_s32): Likewise.
18596 (vreinterpretq_p8_s64): Likewise.
18597 (vreinterpretq_p8_f32): Likewise.
18598 (vreinterpretq_p8_u8): Likewise.
18599 (vreinterpretq_p8_u16): Likewise.
18600 (vreinterpretq_p8_u32): Likewise.
18601 (vreinterpretq_p8_u64): Likewise.
18602 (vreinterpretq_p8_p16): Likewise.
18603 (vreinterpret_p16_s8): Likewise.
18604 (vreinterpret_p16_s16): Likewise.
18605 (vreinterpret_p16_s32): Likewise.
18606 (vreinterpret_p16_s64): Likewise.
18607 (vreinterpret_p16_f32): Likewise.
18608 (vreinterpret_p16_u8): Likewise.
18609 (vreinterpret_p16_u16): Likewise.
18610 (vreinterpret_p16_u32): Likewise.
18611 (vreinterpret_p16_u64): Likewise.
18612 (vreinterpret_p16_p8): Likewise.
18613 (vreinterpretq_p16_s8): Likewise.
18614 (vreinterpretq_p16_s16): Likewise.
18615 (vreinterpretq_p16_s32): Likewise.
18616 (vreinterpretq_p16_s64): Likewise.
18617 (vreinterpretq_p16_f32): Likewise.
18618 (vreinterpretq_p16_u8): Likewise.
18619 (vreinterpretq_p16_u16): Likewise.
18620 (vreinterpretq_p16_u32): Likewise.
18621 (vreinterpretq_p16_u64): Likewise.
18622 (vreinterpretq_p16_p8): Likewise.
18623 (vreinterpret_f32_s8): Likewise.
18624 (vreinterpret_f32_s16): Likewise.
18625 (vreinterpret_f32_s32): Likewise.
18626 (vreinterpret_f32_s64): Likewise.
18627 (vreinterpret_f32_u8): Likewise.
18628 (vreinterpret_f32_u16): Likewise.
18629 (vreinterpret_f32_u32): Likewise.
18630 (vreinterpret_f32_u64): Likewise.
18631 (vreinterpret_f32_p8): Likewise.
18632 (vreinterpret_f32_p16): Likewise.
18633 (vreinterpretq_f32_s8): Likewise.
18634 (vreinterpretq_f32_s16): Likewise.
18635 (vreinterpretq_f32_s32): Likewise.
18636 (vreinterpretq_f32_s64): Likewise.
18637 (vreinterpretq_f32_u8): Likewise.
18638 (vreinterpretq_f32_u16): Likewise.
18639 (vreinterpretq_f32_u32): Likewise.
18640 (vreinterpretq_f32_u64): Likewise.
18641 (vreinterpretq_f32_p8): Likewise.
18642 (vreinterpretq_f32_p16): Likewise.
18643 (vreinterpret_s64_s8): Likewise.
18644 (vreinterpret_s64_s16): Likewise.
18645 (vreinterpret_s64_s32): Likewise.
18646 (vreinterpret_s64_f32): Likewise.
18647 (vreinterpret_s64_u8): Likewise.
18648 (vreinterpret_s64_u16): Likewise.
18649 (vreinterpret_s64_u32): Likewise.
18650 (vreinterpret_s64_u64): Likewise.
18651 (vreinterpret_s64_p8): Likewise.
18652 (vreinterpret_s64_p16): Likewise.
18653 (vreinterpretq_s64_s8): Likewise.
18654 (vreinterpretq_s64_s16): Likewise.
18655 (vreinterpretq_s64_s32): Likewise.
18656 (vreinterpretq_s64_f32): Likewise.
18657 (vreinterpretq_s64_u8): Likewise.
18658 (vreinterpretq_s64_u16): Likewise.
18659 (vreinterpretq_s64_u32): Likewise.
18660 (vreinterpretq_s64_u64): Likewise.
18661 (vreinterpretq_s64_p8): Likewise.
18662 (vreinterpretq_s64_p16): Likewise.
18663 (vreinterpret_u64_s8): Likewise.
18664 (vreinterpret_u64_s16): Likewise.
18665 (vreinterpret_u64_s32): Likewise.
18666 (vreinterpret_u64_s64): Likewise.
18667 (vreinterpret_u64_f32): Likewise.
18668 (vreinterpret_u64_u8): Likewise.
18669 (vreinterpret_u64_u16): Likewise.
18670 (vreinterpret_u64_u32): Likewise.
18671 (vreinterpret_u64_p8): Likewise.
18672 (vreinterpret_u64_p16): Likewise.
18673 (vreinterpretq_u64_s8): Likewise.
18674 (vreinterpretq_u64_s16): Likewise.
18675 (vreinterpretq_u64_s32): Likewise.
18676 (vreinterpretq_u64_s64): Likewise.
18677 (vreinterpretq_u64_f32): Likewise.
18678 (vreinterpretq_u64_u8): Likewise.
18679 (vreinterpretq_u64_u16): Likewise.
18680 (vreinterpretq_u64_u32): Likewise.
18681 (vreinterpretq_u64_p8): Likewise.
18682 (vreinterpretq_u64_p16): Likewise.
18683 (vreinterpret_s8_s16): Likewise.
18684 (vreinterpret_s8_s32): Likewise.
18685 (vreinterpret_s8_s64): Likewise.
18686 (vreinterpret_s8_f32): Likewise.
18687 (vreinterpret_s8_u8): Likewise.
18688 (vreinterpret_s8_u16): Likewise.
18689 (vreinterpret_s8_u32): Likewise.
18690 (vreinterpret_s8_u64): Likewise.
18691 (vreinterpret_s8_p8): Likewise.
18692 (vreinterpret_s8_p16): Likewise.
18693 (vreinterpretq_s8_s16): Likewise.
18694 (vreinterpretq_s8_s32): Likewise.
18695 (vreinterpretq_s8_s64): Likewise.
18696 (vreinterpretq_s8_f32): Likewise.
18697 (vreinterpretq_s8_u8): Likewise.
18698 (vreinterpretq_s8_u16): Likewise.
18699 (vreinterpretq_s8_u32): Likewise.
18700 (vreinterpretq_s8_u64): Likewise.
18701 (vreinterpretq_s8_p8): Likewise.
18702 (vreinterpretq_s8_p16): Likewise.
18703 (vreinterpret_s16_s8): Likewise.
18704 (vreinterpret_s16_s32): Likewise.
18705 (vreinterpret_s16_s64): Likewise.
18706 (vreinterpret_s16_f32): Likewise.
18707 (vreinterpret_s16_u8): Likewise.
18708 (vreinterpret_s16_u16): Likewise.
18709 (vreinterpret_s16_u32): Likewise.
18710 (vreinterpret_s16_u64): Likewise.
18711 (vreinterpret_s16_p8): Likewise.
18712 (vreinterpret_s16_p16): Likewise.
18713 (vreinterpretq_s16_s8): Likewise.
18714 (vreinterpretq_s16_s32): Likewise.
18715 (vreinterpretq_s16_s64): Likewise.
18716 (vreinterpretq_s16_f32): Likewise.
18717 (vreinterpretq_s16_u8): Likewise.
18718 (vreinterpretq_s16_u16): Likewise.
18719 (vreinterpretq_s16_u32): Likewise.
18720 (vreinterpretq_s16_u64): Likewise.
18721 (vreinterpretq_s16_p8): Likewise.
18722 (vreinterpretq_s16_p16): Likewise.
18723 (vreinterpret_s32_s8): Likewise.
18724 (vreinterpret_s32_s16): Likewise.
18725 (vreinterpret_s32_s64): Likewise.
18726 (vreinterpret_s32_f32): Likewise.
18727 (vreinterpret_s32_u8): Likewise.
18728 (vreinterpret_s32_u16): Likewise.
18729 (vreinterpret_s32_u32): Likewise.
18730 (vreinterpret_s32_u64): Likewise.
18731 (vreinterpret_s32_p8): Likewise.
18732 (vreinterpret_s32_p16): Likewise.
18733 (vreinterpretq_s32_s8): Likewise.
18734 (vreinterpretq_s32_s16): Likewise.
18735 (vreinterpretq_s32_s64): Likewise.
18736 (vreinterpretq_s32_f32): Likewise.
18737 (vreinterpretq_s32_u8): Likewise.
18738 (vreinterpretq_s32_u16): Likewise.
18739 (vreinterpretq_s32_u32): Likewise.
18740 (vreinterpretq_s32_u64): Likewise.
18741 (vreinterpretq_s32_p8): Likewise.
18742 (vreinterpretq_s32_p16): Likewise.
18743 (vreinterpret_u8_s8): Likewise.
18744 (vreinterpret_u8_s16): Likewise.
18745 (vreinterpret_u8_s32): Likewise.
18746 (vreinterpret_u8_s64): Likewise.
18747 (vreinterpret_u8_f32): Likewise.
18748 (vreinterpret_u8_u16): Likewise.
18749 (vreinterpret_u8_u32): Likewise.
18750 (vreinterpret_u8_u64): Likewise.
18751 (vreinterpret_u8_p8): Likewise.
18752 (vreinterpret_u8_p16): Likewise.
18753 (vreinterpretq_u8_s8): Likewise.
18754 (vreinterpretq_u8_s16): Likewise.
18755 (vreinterpretq_u8_s32): Likewise.
18756 (vreinterpretq_u8_s64): Likewise.
18757 (vreinterpretq_u8_f32): Likewise.
18758 (vreinterpretq_u8_u16): Likewise.
18759 (vreinterpretq_u8_u32): Likewise.
18760 (vreinterpretq_u8_u64): Likewise.
18761 (vreinterpretq_u8_p8): Likewise.
18762 (vreinterpretq_u8_p16): Likewise.
18763 (vreinterpret_u16_s8): Likewise.
18764 (vreinterpret_u16_s16): Likewise.
18765 (vreinterpret_u16_s32): Likewise.
18766 (vreinterpret_u16_s64): Likewise.
18767 (vreinterpret_u16_f32): Likewise.
18768 (vreinterpret_u16_u8): Likewise.
18769 (vreinterpret_u16_u32): Likewise.
18770 (vreinterpret_u16_u64): Likewise.
18771 (vreinterpret_u16_p8): Likewise.
18772 (vreinterpret_u16_p16): Likewise.
18773 (vreinterpretq_u16_s8): Likewise.
18774 (vreinterpretq_u16_s16): Likewise.
18775 (vreinterpretq_u16_s32): Likewise.
18776 (vreinterpretq_u16_s64): Likewise.
18777 (vreinterpretq_u16_f32): Likewise.
18778 (vreinterpretq_u16_u8): Likewise.
18779 (vreinterpretq_u16_u32): Likewise.
18780 (vreinterpretq_u16_u64): Likewise.
18781 (vreinterpretq_u16_p8): Likewise.
18782 (vreinterpretq_u16_p16): Likewise.
18783 (vreinterpret_u32_s8): Likewise.
18784 (vreinterpret_u32_s16): Likewise.
18785 (vreinterpret_u32_s32): Likewise.
18786 (vreinterpret_u32_s64): Likewise.
18787 (vreinterpret_u32_f32): Likewise.
18788 (vreinterpret_u32_u8): Likewise.
18789 (vreinterpret_u32_u16): Likewise.
18790 (vreinterpret_u32_u64): Likewise.
18791 (vreinterpret_u32_p8): Likewise.
18792 (vreinterpret_u32_p16): Likewise.
18793 (vreinterpretq_u32_s8): Likewise.
18794 (vreinterpretq_u32_s16): Likewise.
18795 (vreinterpretq_u32_s32): Likewise.
18796 (vreinterpretq_u32_s64): Likewise.
18797 (vreinterpretq_u32_f32): Likewise.
18798 (vreinterpretq_u32_u8): Likewise.
18799 (vreinterpretq_u32_u16): Likewise.
18800 (vreinterpretq_u32_u64): Likewise.
18801 (vreinterpretq_u32_p8): Likewise.
18802 (vreinterpretq_u32_p16): Likewise.
18803
18804 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18805
18806 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
18807 Pattern extended.
18808 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
18809 (sqabs): Likewise.
18810 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
18811 (vqnegd_s64): Likewise.
18812 (vqabs_s64): Likewise.
18813 (vqabsd_s64): Likewise.
18814
18815 2014-04-22 Richard Henderson <rth@redhat.com>
18816
18817 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
18818 computation to the top of the loop.
18819
18820 2014-04-22 Renlin <renlin.li@arm.com>
18821 Jiong Wang <jiong.wang@arm.com>
18822
18823 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
18824 * config/aarch64/aarch64.c (aarch64_layout_frame)
18825 (aarch64_initial_elimination_offset): Likewise.
18826
18827 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
18828
18829 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
18830 Fix indentation.
18831
18832 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
18833
18834 * machmode.h (bitwise_mode_for_mode): Declare.
18835 * stor-layout.h (bitwise_type_for_mode): Likewise.
18836 * stor-layout.c (bitwise_mode_for_mode): New function.
18837 (bitwise_type_for_mode): Likewise.
18838 * builtins.c (fold_builtin_memory_op): Use it instead of
18839 int_mode_for_mode and build_nonstandard_integer_type.
18840
18841 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18842
18843 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
18844 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
18845 (*-*-solaris2*): Simplify.
18846 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
18847 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
18848 *-*-solaris2.9* handling.
18849
18850 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
18851 as bug.
18852 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
18853 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
18854 handling, simplify.
18855 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
18856 * configure: Regenerate.
18857
18858 * config/i386/sol2-9.h: Remove.
18859
18860 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
18861 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
18862 Remove Solaris 9 references.
18863
18864 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
18865
18866 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
18867 (floatuns<GPI:mode><GPF:mode>2): Remove.
18868 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
18869 and floatuns conversions.
18870 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
18871 and floatuns conversions.
18872 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
18873 (w1,w2): New mode attributes for inequal width conversions.
18874
18875 2014-04-22 Renlin Li <Renlin.Li@arm.com>
18876
18877 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
18878 the output asm format.
18879
18880 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
18881
18882 * config/aarch64/aarch64-simd.md
18883 (aarch64_cm<optab>di): Always split.
18884 (*aarch64_cm<optab>di): New.
18885 (aarch64_cmtstdi): Always split.
18886 (*aarch64_cmtstdi): New.
18887
18888 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18889
18890 PR tree-optimization/60823
18891 * omp-low.c (ipa_simd_modify_function_body): Go through
18892 all SSA_NAMEs and for those refering to vector arguments
18893 which are going to be replaced adjust SSA_NAME_VAR and,
18894 if it is a default definition, change it into a non-default
18895 definition assigned at the beginning of function from new_decl.
18896 (ipa_simd_modify_stmt_ops): Rewritten.
18897 * tree-dfa.c (set_ssa_default_def): When removing default def,
18898 check for NULL loc instead of NULL *loc.
18899
18900 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18901
18902 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
18903 restrictions on core registers for DImode values in Thumb2.
18904
18905 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18906
18907 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
18908 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
18909
18910 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18911
18912 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
18913 (*iordi_notzesidi_di): Likewise.
18914 (*iordi_notsesidi_di): Likewise.
18915
18916 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18917
18918 * config/arm/arm-protos.h (tune_params): New struct members.
18919 * config/arm/arm.c: Initialise tune_params per processor.
18920 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
18921 for speed, based on new tune_params.
18922
18923 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18924
18925 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
18926 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
18927 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
18928 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
18929 * config/aarch64/arm_neon.h (vrnd_f64): Added.
18930 (vrnda_f64): Likewise.
18931 (vrndi_f64): Likewise.
18932 (vrndm_f64): Likewise.
18933 (vrndn_f64): Likewise.
18934 (vrndp_f64): Likewise.
18935 (vrndx_f64): Likewise.
18936
18937 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18938
18939 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
18940 GET_MODE_SIZE argument is enum machine_mode.
18941
18942 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18943
18944 PR target/60910
18945 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
18946 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
18947
18948 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
18949
18950 PR middle-end/60281
18951 * asan.c (asan_emit_stack_protection): Force the base to align to
18952 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
18953 appropriate bits if STRICT_ALIGNMENT.
18954 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
18955 when asan is on.
18956 (expand_used_vars): Leave a space in the stack frame for alignment
18957 if STRICT_ALIGNMENT.
18958
18959 2014-04-21 David Malcolm <dmalcolm@redhat.com>
18960
18961 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
18962 than a gimple.
18963 (gimple_store_p): Likewise.
18964 (gimple_assign_load_p): Likewise.
18965 (gimple_assign_cast_p): Likewise.
18966 (gimple_clobber_p): Likewise.
18967
18968 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
18969 rather than a gimple.
18970 (gimple_assign_cast_p): Likewise.
18971
18972 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18973
18974 PR target/60735
18975 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
18976 If mode is DDmode and TARGET_E500_DOUBLE allow move.
18977
18978 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
18979 more debug information for E500 if -mdebug=reg.
18980
18981 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
18982
18983 PR target/60909
18984 * config/i386/i386.c (ix86_expand_builtin)
18985 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
18986 register for target RTX.
18987 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
18988
18989 2014-04-18 Cong Hou <congh@google.com>
18990
18991 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
18992 the widen-mult pattern by handling two operands with different sizes,
18993 and operands whose size is smaller than half of the result type.
18994
18995 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
18996
18997 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
18998 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
18999 (do_estimate_edge_time): Compute it.
19000 * ipa-inline.c (want_inline_small_function_p): Bypass
19001 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19002
19003 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19004
19005 * ipa-inline.c (spec_rem): New static variable.
19006 (dump_overall_stats): New function.
19007 (dump_inline_stats): New function.
19008
19009 2014-04-18 Richard Henderson <rth@redhat.com>
19010
19011 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19012 to GET_MODE_SIZE, not a reg_class_t.
19013
19014 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19015
19016 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19017 (vsx_xxmrglw_<mode>): Likewise.
19018
19019 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19020
19021 PR target/60876
19022 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19023 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19024 (rs6000_init_hard_regno_mode_ok): Likewise.
19025
19026 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19027
19028 * ipa-inline.c (inline_small_functions): Account only non-cold
19029 functions.
19030 * doc/invoke.texi (inline-unit-growth): Update documentation.
19031
19032 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19033
19034 * config/rs6000/rs6000.md (addti3, subti3): New.
19035
19036 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19037
19038 PR target/60863
19039 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19040 comment. Check optimize_insn_for_size_p instead of
19041 optimize_insn_for_speed_p.
19042
19043 2014-04-17 Martin Jambor <mjambor@suse.cz>
19044
19045 * gimple-iterator.c (gsi_start_edge): New function.
19046 * gimple-iterator.h (gsi_start_edge): Declare.
19047 * tree-sra.c (single_non_eh_succ): New function.
19048 (disqualify_ops_if_throwing_stmt): Renamed to
19049 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19050 having one non-EH successor BB.
19051 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19052 generate loads into replacements.
19053 (sra_modify_assign): Likewise and and also use the simple path for
19054 such statements.
19055 (sra_modify_function_body): Commit statements on edges.
19056
19057 2014-04-17 Richard Biener <rguenther@suse.de>
19058
19059 PR middle-end/60849
19060 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19061 comparison results and add clarifying comment.
19062
19063 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19064
19065 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19066 (blank_mode): Initialize it.
19067 (emit_mode_size_inline, emit_mode_nunits_inline,
19068 emit_mode_inner_inline): New functions.
19069 (emit_insn_modes_h): Call them and surround their output with
19070 #if GCC_VERSION >= 4001 ... #endif.
19071 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19072 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19073 mode_* arrays if the argument is __builtin_constant_p.
19074 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19075 is enum machine_mode.
19076
19077 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19078
19079 * passes.c (opt_pass::execute): Adjust.
19080 (pass_manager::execute_pass_mode_switching): Likewise.
19081 (early_local_passes::execute): Likewise.
19082 (execute_one_pass): Pass cfun to the pass's execute method.
19083 * tree-pass.h (opt_pass::execute): Add function * argument.
19084 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19085 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19086 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19087 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19088 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19089 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19090 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19091 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19092 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19093 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19094 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19095 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19096 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19097 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19098 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19099 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19100 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19101 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19102 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19103 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19104 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19105 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19106 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19107 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19108 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19109 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19110 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19111 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19112 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19113 Adjust.
19114
19115 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19116
19117 * passes.c (opt_pass::gate): Take function * argument.
19118 (gate_all_early_local_passes): Merge into
19119 (early_local_passes::gate): this.
19120 (gate_all_early_optimizations): Merge into
19121 (all_early_optimizations::gate): this.
19122 (gate_all_optimizations): Mege into
19123 (all_optimizations::gate): this.
19124 (gate_all_optimizations_g): Merge into
19125 (all_optimizations_g::gate): this.
19126 (gate_rest_of_compilation): Mege into
19127 (rest_of_compilation::gate): this.
19128 (gate_postreload): Merge into
19129 (postreload::gate): this.
19130 (dump_one_pass): Pass cfun to the pass's gate method.
19131 (execute_ipa_summary_passes): Likewise.
19132 (execute_one_pass): Likewise.
19133 (ipa_write_summaries_2): Likewise.
19134 (ipa_write_optimization_summaries_1): Likewise.
19135 (ipa_read_summaries_1): Likewise.
19136 (ipa_read_optimization_summaries_1): Likewise.
19137 (execute_ipa_stmt_fixups): Likewise.
19138 * tree-pass.h (opt_pass::gate): Add function * argument.
19139 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19140 combine-stack-adj.c, combine.c, compare-elim.c,
19141 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19142 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19143 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19144 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19145 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19146 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19147 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19148 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19149 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19150 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19151 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19152 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19153 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19154 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19155 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19156 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19157 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19158 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19159 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19160 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19161 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19162 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19163 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19164 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19165 var-tracking.c, vtable-verify.c, web.c: Adjust.
19166
19167 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19168
19169 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19170 * configure: Regenerate.
19171
19172 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19173
19174 * passes.c (dump_one_pass): don't check pass->has_gate.
19175 (execute_ipa_summary_passes): Likewise.
19176 (execute_one_pass): Likewise.
19177 (ipa_write_summaries_2): Likewise.
19178 (ipa_write_optimization_summaries_1): Likewise.
19179 (ipa_read_optimization_summaries_1): Likewise.
19180 (execute_ipa_stmt_fixups): Likewise.
19181 * tree-pass.h (pass_data::has_gate): Remove.
19182 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19183 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19184 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19185 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19186 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19187 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19188 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19189 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19190 gimple-low.c, gimple-ssa-isolate-paths.c,
19191 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19192 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19193 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19194 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19195 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19196 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19197 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19198 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19199 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19200 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19201 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19202 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19203 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19204 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19205 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19206 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19207 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19208 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19209 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19210 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19211 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19212 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19213 Adjust.
19214
19215 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19216
19217 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19218 declaration.
19219 * passes.c (pass_manager::register_dump_files_1): Merge into
19220 (pass_manager::register_dump_files): this, and remove its handling of
19221 properties since the pass always has the properties anyway.
19222 (pass_manager::pass_manager): Adjust.
19223
19224 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19225
19226 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19227 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19228 dealing with properties.
19229 (pass_manager::register_dump_files): Adjust.
19230
19231 2014-03-20 Mark Wielaard <mjw@redhat.com>
19232
19233 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19234 then represent the bound as normal constant value.
19235
19236 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19237
19238 PR target/60847
19239 Forward port from 4.8 branch
19240 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19241
19242 * config/i386/bmiintrin.h (_blsi_u32): New.
19243 (_blsi_u64): Ditto.
19244 (_blsr_u32): Ditto.
19245 (_blsr_u64): Ditto.
19246 (_blsmsk_u32): Ditto.
19247 (_blsmsk_u64): Ditto.
19248 (_tzcnt_u32): Ditto.
19249 (_tzcnt_u64): Ditto.
19250
19251 2014-04-17 Kito Cheng <kito@0xlab.org>
19252
19253 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19254
19255 2014-04-17 Richard Biener <rguenther@suse.de>
19256
19257 PR middle-end/60849
19258 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19259 boolean results for comparisons.
19260
19261 2014-04-17 Richard Biener <rguenther@suse.de>
19262
19263 PR tree-optimization/60836
19264 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19265 initial PHI args to be gimple values.
19266
19267 2014-04-17 Richard Biener <rguenther@suse.de>
19268
19269 PR tree-optimization/60841
19270 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19271 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19272 of stmts to SLP build.
19273 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19274 (vect_analyze_slp): Likewise.
19275 (vect_analyze_slp_instance): Likewise.
19276 (vect_build_slp_tree): Limit overall SLP tree growth.
19277 * tree-vectorizer.h (vect_analyze_data_refs,
19278 vect_analyze_slp): Adjust prototypes.
19279
19280 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19281
19282 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19283 Silvermont.
19284
19285 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19286
19287 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19288 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19289 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19290 for TARGET_SLOW_PSHUFB
19291
19292 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19293
19294 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19295 * config/i386/i386.c (intel_cost): Ditto.
19296
19297 2014-04-17 Joey Ye <joey.ye@arm.com>
19298
19299 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19300
19301 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19302
19303 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19304 with -fuse-profile.
19305
19306 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19307
19308 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19309 (type_all_derivations_known_p): New predicate.
19310 (type_all_ctors_visible_p): New predicate.
19311 (type_possibly_instantiated_p): New predicate.
19312 (get_odr_type): Compute all_derivations_known.
19313 (dump_odr_type): Dump the flag.
19314 (maybe_record_type): Cleanup.
19315 (record_target_from_binfo): Add bases_to_consider array;
19316 record bases for types w/o instances and skip CXX destructor.
19317 (possible_polymorphic_call_targets_1): Add bases_to_consider
19318 and consider_construction parameters; check if type may have instance.
19319 (get_polymorphic_call_info): Set maybe_in_construction to true
19320 when we know nothing.
19321 (record_targets_from_bases): Skip CXX destructors; they are
19322 never called for types in construction.
19323 (possible_polymorphic_call_targets): Do not record target when
19324 type may not have instance.
19325
19326 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19327
19328 PR ipa/60854
19329 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19330 external aliases alive, too.
19331
19332 2014-04-16 Andrew Pinski <apinski@cavium.com>
19333
19334 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19335 definition.
19336
19337 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19338
19339 * final.c (compute_alignments): Do not apply loop alignment to a block
19340 falling through to the exit.
19341
19342 2014-04-16 Catherine Moore <clm@codesourcery.com>
19343
19344 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19345 Adjust constraints for microMIPS store patterns.
19346
19347 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19348
19349 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19350
19351 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19352
19353 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19354 (append_use): Run at -O0.
19355 (append_vdef): Likewise.
19356 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19357 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19358
19359 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19360
19361 PR tree-optimization/60844
19362 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19363 (propagate_op_to_single_use, remove_visited_stmt_chain,
19364 linearize_expr, repropagate_negates, reassociate_bb): Use it
19365 instead of gsi_remove.
19366
19367 2014-04-16 Martin Jambor <mjambor@suse.cz>
19368
19369 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19370 ipa_transforms_to_apply.
19371 (cgraph_function_versioning): Assert that old_node has empty
19372 ipa_transforms_to_apply.
19373 * trans-mem.c (ipa_tm_create_version): Likewise.
19374 * tree-inline.c (tree_function_versioning): Do not duplicate
19375 ipa_transforms_to_apply.
19376
19377 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19378
19379 PR target/60817
19380 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19381 x86_64-*-* cases.
19382 Pass necessary as flags on 64-bit Solaris/x86.
19383 Use lowercase relocs for x86_64-*-*.
19384 * configure: Regenerate.
19385
19386 2014-04-15 Jan Hubicka <jh@suse.cz>
19387
19388 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19389 (maybe_record_node, likely_target_p): Use it.
19390
19391 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19392
19393 PR target/60839
19394 Revert following patch
19395
19396 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19397
19398 PR target/60735
19399 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19400 software floating point or no floating point registers, do not
19401 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19402 in GPRs that occurs after we tested for GPRs that would never be
19403 true.
19404
19405 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19406 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19407 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19408 specifically allow DDmode, since that does not use the SPE SIMD
19409 instructions.
19410
19411 2014-03-21 Mark Wielaard <mjw@redhat.com>
19412
19413 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19414 as unsigned or int depending on type and value used.
19415
19416 2014-04-15 Richard Biener <rguenther@suse.de>
19417
19418 PR rtl-optimization/56965
19419 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19420 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19421 ... here.
19422 * alias.c (true_dependence_1): Do not call
19423 nonoverlapping_component_refs_p.
19424 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19425 nonoverlapping_component_refs_p.
19426 (indirect_refs_may_alias_p): Likewise.
19427
19428 2014-04-15 Teresa Johnson <tejohnson@google.com>
19429
19430 * cfg.c (dump_bb_info): Fix flags check.
19431 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19432
19433 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19434
19435 PR rtl-optimization/60663
19436 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19437 avoid 0 cost.
19438
19439 2014-04-15 Richard Biener <rguenther@suse.de>
19440
19441 * lto-streamer.h (LTO_major_version): Bump to 4.
19442
19443 2014-04-15 Richard Biener <rguenther@suse.de>
19444
19445 * common.opt (lto_partition_model): New enum.
19446 (flto-partition=): Merge separate options with a single with argument,
19447 add -flto-partition=one support.
19448 * flag-types.h (enum lto_partition_model): Declare.
19449 * opts.c (finish_options): Remove duplicate -flto-partition=
19450 option check.
19451 * lto-wrapper.c (run_gcc): Adjust.
19452
19453 2014-04-15 Richard Biener <rguenther@suse.de>
19454
19455 * alias.c (ncr_compar): New function.
19456 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19457
19458 2014-04-15 Richard Biener <rguenther@suse.de>
19459
19460 * alias.c (record_component_aliases): Do not walk BINFOs.
19461
19462 2014-04-15 Richard Biener <rguenther@suse.de>
19463
19464 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19465 Add struct function argument and adjust.
19466 (find_func_aliases_for_call): Likewise.
19467 (find_func_aliases): Likewise.
19468 (find_func_clobbers): Likewise.
19469 (intra_create_variable_infos): Likewise.
19470 (compute_points_to_sets): Likewise.
19471 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19472
19473 2014-04-15 Richard Biener <rguenther@suse.de>
19474
19475 * tree.c (iterative_hash_expr): Use enum tree_code_class
19476 to store TREE_CODE_CLASS.
19477 (tree_block): Likewise.
19478 (tree_set_block): Likewise.
19479 * tree.h (fold_build_pointer_plus_loc): Use
19480 convert_to_ptrofftype_loc.
19481
19482 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19483
19484 PR plugins/59335
19485 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19486 added in 4.9.
19487
19488 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19489
19490 * cfgloop.h (struct loop): Move force_vectorize down.
19491 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19492 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19493 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19494 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19495 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19496 * tree-core.h (enum annot_expr_kind): Add new kind values.
19497 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19498 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19499 kinds.
19500 * tree.def (ANNOTATE_EXPR): Tweak comment.
19501
19502 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19503
19504 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19505 cxa_pure_virtual).
19506
19507 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19508
19509 * tree.h (TYPE_IDENTIFIER): Declare.
19510 * tree.c (subrange_type_for_debug_p): Use it.
19511 * godump.c (go_format_type): Likewise.
19512 * dwarf2out.c (is_cxx_auto, modified_type_die,
19513 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19514 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19515
19516 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19517
19518 PR lto/60820
19519 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19520
19521 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19522
19523 * config/i386/i386.c (examine_argument): Return bool. Return true if
19524 parameter should be passed in memory.
19525 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19526 (construct_container): Update calls to examine_argument.
19527 (function_arg_advance_64): Ditto.
19528 (return_in_memory_32): Merge with ix86_return_in_memory.
19529 (return_in_memory_64): Ditto.
19530 (return_in_memory_ms_64): Ditto.
19531
19532 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19533
19534 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19535 * coverage.c (coverage_compute_profile_id): Handle externally visible
19536 symbols.
19537
19538 2014-04-14 Martin Jambor <mjambor@suse.cz>
19539
19540 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19541 DECL_DISREGARD_INLINE_LIMITS functions.
19542
19543 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19544
19545 PR target/60827
19546 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19547
19548 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19549
19550 PR target/60827
19551 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19552 optimize_insn_for_speed_p instead of
19553 optimize_function_for_speed_p.
19554
19555 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19556
19557 * doc/invoke.texi (free): Document AArch64.
19558
19559 2014-04-14 Richard Biener <rguenther@suse.de>
19560
19561 PR tree-optimization/60042
19562 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19563 (insert_into_preds_of_block): Do not prevent PHI insertion
19564 for REFERENCE exprs here ...
19565 (eliminate_dom_walker::before_dom_children): ... but prevent
19566 their use here under similar conditions when applied to the
19567 IL after PRE optimizations.
19568
19569 2014-04-14 Richard Biener <rguenther@suse.de>
19570
19571 * passes.def: Move early points-to after early SRA.
19572
19573 2014-04-14 Richard Biener <rguenther@suse.de>
19574
19575 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19576 check for which sign-changes we allow when forwarding
19577 a converted value into a switch.
19578
19579 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19580
19581 * stor-layout.c (place_field): Finalize non-constant offset for the
19582 field, if any.
19583
19584 2014-04-14 Richard Biener <rguenther@suse.de>
19585
19586 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19587 as argument.
19588 (expand_switch_using_bit_tests_p): Likewise.
19589 (process_switch): Compute and pass on speed_p based on the
19590 switch stmt.
19591 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19592 optimize_bb_for_speed_p.
19593
19594 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19595
19596 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19597 * function.h (struct function): Rename has_force_vect_loops into
19598 has_force_vectorize_loops.
19599 * lto-streamer-in.c (input_cfg): Adjust for renaming.
19600 (input_struct_function_base): Likewise.
19601 * lto-streamer-out.c (output_cfg): Likewise.
19602 (output_struct_function_base): Likewise.
19603 * omp-low.c (expand_omp_simd): Likewise.
19604 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19605 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
19606 (version_loop_for_if_conversion): Likewise.
19607 (tree_if_conversion): Likewise.
19608 (main_tree_if_conversion): Likewise.
19609 (gate_tree_if_conversion): Likewise.
19610 * tree-inline.c (copy_loops): Likewise.
19611 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
19612 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
19613 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19614 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
19615 * tree-vectorizer.c (vectorize_loops): Likewise.
19616 * tree-vectorizer.h (unlimited_cost_model): Likewise.
19617
19618 2014-04-14 Richard Biener <rguenther@suse.de>
19619
19620 PR lto/60720
19621 * lto-streamer-out.c (wrap_refs): New function.
19622 (lto_output): Wrap symbol references in global initializes in
19623 type-preserving MEM_REFs.
19624
19625 2014-04-14 Christian Bruel <christian.bruel@st.com>
19626
19627 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
19628
19629 2014-04-14 Christian Bruel <christian.bruel@st.com>
19630
19631 * config/sh/sh.md (setmemqi): New expand pattern.
19632 * config/sh/sh.h (CLEAR_RATIO): Define.
19633 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
19634 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
19635
19636 2014-04-14 Richard Biener <rguenther@suse.de>
19637
19638 PR middle-end/55022
19639 * fold-const.c (negate_expr_p): Don't negate directional rounding
19640 division.
19641 (fold_negate_expr): Likewise.
19642
19643 2014-04-14 Richard Biener <rguenther@suse.de>
19644
19645 PR tree-optimization/59817
19646 PR tree-optimization/60453
19647 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
19648 recursion to catch all CHRECs in the scalar evolution and restrict
19649 the predicate for the remains appropriately.
19650
19651 2014-04-12 Catherine Moore <clm@codesourcery.com>
19652
19653 * config/mips/constraints.md: Add new register constraint "kb".
19654 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
19655 (*movhi_internal): Likewise.
19656 (*movqi_internal): Likewise.
19657 * config/mips/mips.h (M16_STORE_REGS): New register class.
19658 (REG_CLASS_NAMES): Add M16_STORE_REGS.
19659 (REG_CLASS_CONTENTS): Likewise.
19660 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
19661
19662 2014-04-11 Tobias Burnus <burnus@net-b.de>
19663
19664 PR c/60194
19665 * doc/invoke.texi (-Wformat-signedness): Document it.
19666 (Wformat=2): Mention that this enables -Wformat-signedness.
19667
19668 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19669
19670 * common/config/epiphany/epiphany-common.c
19671 (epiphany_option_optimization_table): Enable section anchors by
19672 default at -O1 or higher.
19673 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
19674 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
19675 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
19676 carries no extra cost.
19677 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
19678 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
19679 * config/epiphany/predicates.md (memclob_operand): New predicate.
19680 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
19681 Use memclob_operand predicate and X constraint for operand 3.
19682
19683 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19684
19685 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
19686 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
19687 its operands.
19688
19689 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19690
19691 PR rtl-optimization/60651
19692 * mode-switching.c (optimize_mode_switching): Make sure to emit
19693 sets of a lower numbered entity before sets of a higher numbered
19694 entity to a mode of the same or lower priority.
19695 When creating a seginfo for a basic block that starts with a code
19696 label, move the insertion point past the code label.
19697 (new_seginfo): Document and enforce requirement that
19698 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
19699 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
19700 * doc/tm.texi: Regenerate.
19701
19702 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
19703
19704 PR target/60811
19705 * config/arc/arc.c (arc_save_restore): Fix assert typo.
19706
19707 2013-04-11 Jakub Jelinek <jakub@redhat.com>
19708
19709 * BASE-VER: Set to 4.10.0.
19710
19711 2014-04-11 Tobias Burnus <burnus@net-b.de>
19712
19713 PR other/59055
19714 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
19715 * doc/gcc.texi (Service): Update description in the @menu
19716 * doc/invoke.texi (Option Summary): Remove misplaced and
19717 duplicated @menu.
19718
19719 2014-04-11 Steve Ellcey <sellcey@mips.com>
19720 Jakub Jelinek <jakub@redhat.com>
19721
19722 PR middle-end/60556
19723 * expr.c (convert_move): Use emit_store_flag_force instead of
19724 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
19725 argument to it.
19726
19727 2014-04-11 Richard Biener <rguenther@suse.de>
19728
19729 PR middle-end/60797
19730 * varasm.c (assemble_alias): Avoid endless error reporting
19731 recursion by setting TREE_ASM_WRITTEN.
19732
19733 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19734
19735 * config/s390/s390.md: Add a splitter for NOT rtx.
19736
19737 2014-04-11 Jakub Jelinek <jakub@redhat.com>
19738
19739 PR rtl-optimization/60663
19740 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
19741
19742 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
19743 Jakub Jelinek <jakub@redhat.com>
19744
19745 PR lto/60567
19746 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
19747 flag from decl_node to node.
19748
19749 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19750
19751 PR debug/60655
19752 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
19753 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
19754 ameliorating the cases where it can be.
19755
19756 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
19757
19758 Revert
19759 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19760
19761 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19762 (loadsync_<mode>): Change mode.
19763 (load_quadpti, store_quadpti): New.
19764 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19765 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19766 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
19767
19768 2014-04-09 Cong Hou <congh@google.com>
19769
19770 PR testsuite/60773
19771 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
19772 documentation.
19773
19774 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19775
19776 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
19777 instead of vnor to exploit possible fusion opportunity in the
19778 future.
19779 (altivec_expand_vec_perm_const_le): Likewise.
19780
19781 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19782
19783 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19784 (loadsync_<mode>): Change mode.
19785 (load_quadpti, store_quadpti): New.
19786 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19787 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19788
19789 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
19790
19791 PR target/60763
19792 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
19793 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
19794 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
19795
19796 2014-04-08 Richard Biener <rguenther@suse.de>
19797
19798 PR middle-end/60706
19799 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
19800 a 64bit widest int print double-int similar to on HWI64 hosts.
19801
19802 2014-04-08 Richard Biener <rguenther@suse.de>
19803
19804 PR tree-optimization/60785
19805 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
19806 default defs properly.
19807
19808 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
19809
19810 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
19811 (Weffc++): Likewise.
19812
19813 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
19814
19815 * ipa-devirt.c (maybe_record_node): When node is not recorded,
19816 set completep to false rather than true.
19817
19818 2014-04-07 Douglas B Rupp <rupp@adacore.com>
19819
19820 PR target/60504
19821 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
19822 ARM_TARGET2_DWARF_FORMAT.
19823
19824 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
19825
19826 PR target/60609
19827 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
19828 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
19829 ADDR_DIFF_VEC.
19830
19831 2014-04-07 Richard Biener <rguenther@suse.de>
19832
19833 PR tree-optimization/60766
19834 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
19835 (may_eliminate_iv): Convert cand_value_at result to desired type.
19836
19837 2014-04-07 Jason Merrill <jason@redhat.com>
19838
19839 PR c++/60731
19840 * common.opt (-fno-gnu-unique): Add.
19841 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
19842
19843 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19844
19845 * haifa-sched.c: Fix outdated function reference and minor
19846 grammar errors in introductory comment.
19847
19848 2014-04-07 Richard Biener <rguenther@suse.de>
19849
19850 PR middle-end/60750
19851 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
19852 for noreturn calls.
19853 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
19854
19855 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
19856
19857 PR debug/55794
19858 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
19859 size accounting for thunks.
19860 (pa_asm_output_mi_thunk): Use final_start_function() and
19861 final_end_function() to output function start and end directives.
19862
19863 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19864
19865 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
19866 device specific ISA/ feature information. Remove short_sp and
19867 errata_skip ds. Add avr_device_specific_features enum to have device
19868 specific info.
19869 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
19870 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
19871 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
19872 updated device specific info.
19873 * config/avr/avr-mcus.def: Merge device specific details to
19874 dev_attribute field.
19875 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
19876 errata_skip.
19877 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
19878 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
19879 assembler if RMW isa supported by current device.
19880 * config/avr/genmultilib.awk: Update as device info structure changed.
19881 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
19882
19883 2014-04-04 Cong Hou <congh@google.com>
19884
19885 PR tree-optimization/60656
19886 * tree-vect-stmts.c (supportable_widening_operation):
19887 Fix a bug that elements in a vector with vect_used_by_reduction
19888 property are incorrectly reordered when the operation on it is not
19889 consistant with the one in reduction operation.
19890
19891 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
19892
19893 PR rtl-optimization/60155
19894 * gcse.c (record_set_data): New function.
19895 (single_set_gcse): New function.
19896 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
19897 (hoist_code): Likewise.
19898 (get_pressure_class_and_nregs): Likewise.
19899
19900 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
19901
19902 * explow.c (probe_stack_range): Emit a final optimization blockage.
19903
19904 2014-04-04 Anthony Green <green@moxielogic.com>
19905
19906 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
19907 typos.
19908
19909 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
19910
19911 PR ipa/59626
19912 * lto-cgraph.c (input_overwrite_node): Check that partitioning
19913 flags are set only during streaming.
19914 * ipa.c (process_references, walk_polymorphic_call_targets,
19915 symtab_remove_unreachable_nodes): Drop bodies of always inline
19916 after early inlining.
19917 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
19918
19919 2014-04-04 Jakub Jelinek <jakub@redhat.com>
19920 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19921
19922 PR debug/60655
19923 * dwarf2out.c (const_ok_for_output_1): Reject expressions
19924 containing a NOT.
19925
19926 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19927
19928 PR bootstrap/60743
19929 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
19930 duration.
19931 (cortex_a53_fdivd): Likewise.
19932
19933 2014-04-04 Martin Jambor <mjambor@suse.cz>
19934
19935 PR ipa/60640
19936 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
19937 Adjust all callers.
19938 * cgraph.c (clone_of_p): Also return true if thunks match.
19939 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
19940 cgraph_function_or_thunk_node and an obsolete comment.
19941 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
19942 file.
19943 (build_function_decl_skip_args): Likewise.
19944 (set_new_clone_decl_and_node_flags): New function.
19945 (duplicate_thunk_for_node): Likewise.
19946 (redirect_edge_duplicating_thunks): Likewise.
19947 (cgraph_clone_node): New parameter args_to_skip, pass it to
19948 redirect_edge_duplicating_thunks which is called instead of
19949 cgraph_redirect_edge_callee.
19950 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
19951 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
19952
19953 2014-04-04 Jeff Law <law@redhat.com>
19954
19955 PR target/60657
19956 * config/arm/predicates.md (const_int_I_operand): New predicate.
19957 (const_int_M_operand): Similarly.
19958 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
19959 const_int_operand.
19960 (insv_t2, extv_reg, extzv_t2): Likewise.
19961 (load_multiple_with_writeback): Similarly for const_int_I_operand.
19962 (pop_multiple_with_writeback_and_return): Likewise.
19963 (vfp_pop_multiple_with_writeback): Likewise
19964
19965 2014-04-04 Richard Biener <rguenther@suse.de>
19966
19967 PR ipa/60746
19968 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
19969 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
19970 non-GIMPLE_LABELs.
19971 * gimplify.h (gimple_add_tmp_var_fn): Declare.
19972 * gimplify.c (gimple_add_tmp_var_fn): New function.
19973 * gimple-expr.h (create_tmp_reg_fn): Declare.
19974 * gimple-expr.c (create_tmp_reg_fn): New function.
19975 * gimple-low.c (record_vars_into): Don't change cfun.
19976 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
19977 code generation without cfun.
19978
19979 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
19980
19981 PR bootstrap/60719
19982 * Makefile.in (install-driver): Fix shell scripting.
19983
19984 2014-04-03 Cong Hou <congh@google.com>
19985
19986 PR tree-optimization/60505
19987 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
19988 threshold of number of iterations below which no vectorization
19989 will be done.
19990 * tree-vect-loop.c (new_loop_vec_info):
19991 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
19992 * tree-vect-loop.c (vect_analyze_loop_operations):
19993 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
19994 * tree-vect-loop.c (vect_transform_loop):
19995 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
19996 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
19997 of iterations of the loop and see if we should build the epilogue.
19998
19999 2014-04-03 Richard Biener <rguenther@suse.de>
20000
20001 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20002 (streamer_tree_cache_create): Adjust.
20003 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20004 to allow optional nodes array.
20005 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20006 (streamer_tree_cache_append): Likewise.
20007 (streamer_tree_cache_create): Create nodes array optionally
20008 as specified by parameter.
20009 * lto-streamer-out.c (create_output_block): Avoid maintaining
20010 the node array in the writer cache.
20011 (DFS_write_tree): Remove assertion.
20012 (produce_asm_for_decls): Free the out decl state hash table early.
20013 * lto-streamer-in.c (lto_data_in_create): Adjust for
20014 streamer_tree_cache_create prototype change.
20015
20016 2014-04-03 Richard Biener <rguenther@suse.de>
20017
20018 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20019 set TREE_CHAIN to NULL_TREE.
20020
20021 2014-04-03 Richard Biener <rguenther@suse.de>
20022
20023 PR tree-optimization/60740
20024 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20025 over all GIMPLE_COND operands.
20026
20027 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20028
20029 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20030 (Weffc++): Remove Scott's numbering, merge lists and reference
20031 Wnon-virtual-dtor.
20032
20033 2014-04-03 Nick Clifton <nickc@redhat.com>
20034
20035 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20036 properly.
20037
20038 2014-04-03 Martin Jambor <mjambor@suse.cz>
20039
20040 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20041 mention gcc_unreachable before failing.
20042 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20043 removed symbols.
20044
20045 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20046
20047 PR ipa/60659
20048 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20049 inconsistent code and instead mark the context inconsistent.
20050 (possible_polymorphic_call_targets): For inconsistent contexts
20051 return empty complete list.
20052
20053 2014-04-02 Anthony Green <green@moxielogic.com>
20054
20055 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20056 (extendqisi2, extendhisi2): Define.
20057 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20058 (WCHAR_TYPE): Change to unsigned int.
20059
20060 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20061
20062 PR tree-optimization/60733
20063 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20064 insertion point for PHI candidates to be the end of the feeding
20065 block for the PHI argument.
20066
20067 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20068
20069 PR rtl-optimization/60650
20070 * lra-constraints.c (process_alt_operands): Decrease reject for
20071 earlyclobber matching.
20072
20073 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20074
20075 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20076
20077 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20078
20079 * config/spu/spu.c (pad_bb): Do not crash when the last
20080 insn is CODE_FOR_blockage.
20081
20082 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20083
20084 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20085 lies outside the target mode.
20086
20087 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20088
20089 PR target/60735
20090 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20091 software floating point or no floating point registers, do not
20092 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20093 in GPRs that occurs after we tested for GPRs that would never be
20094 true.
20095
20096 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20097 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20098 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20099 specifically allow DDmode, since that does not use the SPE SIMD
20100 instructions.
20101
20102 2014-04-02 Richard Biener <rguenther@suse.de>
20103
20104 PR middle-end/60729
20105 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20106 MODE_INTs. Properly use negv_optab.
20107 (expand_abs): Likewise.
20108
20109 2014-04-02 Richard Biener <rguenther@suse.de>
20110
20111 PR bootstrap/60719
20112 * Makefile.in (install-driver): Guard extra installs with special
20113 names properly.
20114
20115 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20116
20117 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20118 Document vec_vgbbd.
20119
20120 2014-04-01 Richard Henderson <rth@redhat.com>
20121
20122 PR target/60704
20123 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20124 alternative enabled before register allocation.
20125
20126 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20127
20128 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20129 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20130 typo.
20131 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20132 (nios2_got_address): Update nios2_large_got_address call site.
20133 (nios2_delegitimize_address): New function.
20134 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20135 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20136 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20137
20138 2014-04-01 Martin Husemann <martin@duskware.de>
20139
20140 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20141 for -mabi=32.
20142
20143 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20144
20145 PR rtl-optimization/60604
20146 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20147 check from register_operand.
20148 (register_operand): Redefine in terms of general_operand.
20149 (nonmemory_operand): Use register_operand for the non-constant cases.
20150
20151 2014-04-01 Richard Biener <rguenther@suse.de>
20152
20153 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20154
20155 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20156
20157 * doc/invoke.texi (mapp-regs): Clarify.
20158
20159 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20160
20161 * config/i386/avx512fintrin.h (__v32hi): Define type.
20162 (__v64qi): Likewise.
20163 (_mm512_set1_epi8): Define.
20164 (_mm512_set1_epi16): Define.
20165 (_mm512_set4_epi32): Define.
20166 (_mm512_set4_epi64): Define.
20167 (_mm512_set4_pd): Define.
20168 (_mm512_set4_ps): Define.
20169 (_mm512_setr4_epi64): Define.
20170 (_mm512_setr4_epi32): Define.
20171 (_mm512_setr4_pd): Define.
20172 (_mm512_setr4_ps): Define.
20173 (_mm512_setzero_epi32): Define.
20174
20175 2014-03-31 Martin Jambor <mjambor@suse.cz>
20176
20177 PR middle-end/60647
20178 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20179 callsite_arguments_match_p. Updated all callers. Also check types of
20180 corresponding formal parameters and actual arguments.
20181 (not_all_callers_have_enough_arguments_p) Renamed to
20182 some_callers_have_mismatched_arguments_p.
20183
20184 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20185
20186 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20187
20188 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20189
20190 PR target/60034
20191 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20192 section anchor.
20193
20194 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20195
20196 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20197 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20198 Split out
20199 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20200 Use FMAMODE_NOVF512 mode iterator.
20201 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20202 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20203 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20204 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20205 Split out
20206 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20207 Use VF_128_256 mode iterator.
20208 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20209 Ditto.
20210
20211 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20212
20213 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20214 static chain if needed.
20215
20216 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20217
20218 PR target/60697
20219 * lra-constraints.c (index_part_to_reg): New.
20220 (process_address): Use it.
20221
20222 2014-03-27 Jeff Law <law@redhat.com>
20223 Jakub Jelinek <jakub@redhat.com>
20224
20225 PR target/60648
20226 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20227 gen_rtx_{PLUS,MULT} to build up the address expression.
20228
20229 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20230 creating non-canonical RTL.
20231
20232 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20233
20234 PR ipa/60243
20235 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20236 functions; reorganize to make cheap checks first.
20237 (inline_small_functions): Do not estimate growth when dumping;
20238 it is expensive.
20239 * ipa-inline.h (inline_summary): Add min_size.
20240 (growth_likely_positive): New function.
20241 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20242 (set_cond_stmt_execution_predicate): Cleanup.
20243 (estimate_edge_size_and_time): Compute min_size.
20244 (estimate_calls_size_and_time): Likewise.
20245 (estimate_node_size_and_time): Likewise.
20246 (inline_update_overall_summary): Update min_size.
20247 (do_estimate_edge_time): Likewise.
20248 (do_estimate_edge_size): Update.
20249 (do_estimate_edge_hints): Update.
20250 (growth_likely_positive): New function.
20251
20252 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20253
20254 PR target/60693
20255 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20256 also if addr has VOIDmode.
20257
20258 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20259
20260 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20261 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20262 Declare extern.
20263 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20264 instructions as well as AdvancedSIMD loads.
20265
20266 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20267
20268 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20269 Use crypto_aese type.
20270 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20271 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20272 crypto_aese, crypto_aesmc. Move to types.md.
20273 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20274 crypto_aesmc.
20275 * config/arm/iterators.md (crypto_type): Likewise.
20276
20277 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20278
20279 * cgraph.c: Include expr.h and tree-dfa.h.
20280 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20281 remove LHS.
20282
20283 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20284
20285 PR target/60675
20286 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20287 regs from checking multi-reg pseudos.
20288
20289 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20290
20291 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20292
20293 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20294
20295 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20296 if it would clobber the stack pointer, even temporarily.
20297
20298 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20299
20300 * mode-switching.c: Make small adjustments to the top comment.
20301
20302 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20303
20304 * config/rs6000/constraints.md (wD constraint): New constraint to
20305 match the constant integer to get the top DImode/DFmode out of a
20306 vector in a VSX register.
20307
20308 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20309 match the constant integer to get the top DImode/DFmode out of a
20310 vector in a VSX register.
20311
20312 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20313 for ISA 2.07.
20314
20315 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20316 vbpermq builtins.
20317
20318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20319 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20320
20321 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20322 Optimize vec_extract of 64-bit values, where the value being
20323 extracted is in the top word, where we can use scalar
20324 instructions. Add direct move and store support. Combine the big
20325 endian/little endian vector select load support into a single insn.
20326 (vsx_extract_<mode>_internal1): Likewise.
20327 (vsx_extract_<mode>_internal2): Likewise.
20328 (vsx_extract_<mode>_load): Likewise.
20329 (vsx_extract_<mode>_store): Likewise.
20330 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20331 combined into vsx_extract_<mode>_load.
20332 (vsx_extract_<mode>_one_le): Likewise.
20333
20334 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20335 define the top 64-bit vector element.
20336
20337 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20338 constraint.
20339
20340 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20341 Document vec_vbpermq builtin.
20342
20343 PR target/60672
20344 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20345 enable use of xxsldwi and xxpermdi builtin functions.
20346 (vec_xxpermdi): Likewise.
20347
20348 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20349 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20350
20351 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20352
20353 PR rtl-optimization/60650
20354 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20355 first_p. Use it.
20356 (find_spills_for): New.
20357 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20358 Spill all pseudos on the second iteration.
20359
20360 2014-03-27 Marek Polacek <polacek@redhat.com>
20361
20362 PR c/50347
20363 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20364 types.
20365
20366 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20367
20368 * config/s390/s390.c (s390_can_use_return_insn): Check for
20369 call-saved FPRs on 31 bit.
20370
20371 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20372
20373 PR middle-end/60682
20374 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20375 if they need regimplification, just drop them instead of
20376 calling gimple_regimplify_operands on them.
20377
20378 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20379
20380 PR target/60580
20381 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20382 (aarch64_frame_pointer_required): Adjust logic.
20383 (aarch64_can_eliminate): Adjust logic.
20384 (aarch64_override_options_after_change): Adjust logic.
20385
20386 2014-03-27 Dehao Chen <dehao@google.com>
20387
20388 * ipa-inline.c (early_inliner): Update node's inline info.
20389
20390 2014-03-26 Dehao Chen <dehao@google.com>
20391
20392 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20393 compiler inserted conditional jumps for NAN float check.
20394
20395 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20396
20397 * ubsan.h (ubsan_create_data): Change second argument's type
20398 to const location_t *.
20399 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20400 _("<unknown>").
20401 (ubsan_create_data): Change second argument to const location_t *PLOC.
20402 Create Loc field whenever PLOC is non-NULL.
20403 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20404 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20405 callers.
20406
20407 PR other/59545
20408 * real.c (real_to_integer2): Change type of low to UHWI.
20409
20410 2014-03-26 Tobias Burnus <burnus@net-b.de>
20411
20412 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20413 (CILK_SELF_SPECS): New define.
20414 (driver_self_specs): Use it.
20415
20416 2014-03-26 Richard Biener <rguenther@suse.de>
20417
20418 * tree-pretty-print.c (percent_K_format): Implement special
20419 case for LTO and its stripped down BLOCK tree.
20420
20421 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20422
20423 PR sanitizer/60636
20424 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20425
20426 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20427 one range is range_int_cst_p, but not both, at least optimize
20428 addition/subtraction of 0 and multiplication by 0 or 1.
20429 * gimple-fold.c (gimple_fold_call): Fold
20430 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20431 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20432 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20433
20434 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20435
20436 PR rtl-optimization/60452
20437 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20438 <case REG>: Return 1 for invalid offsets from the frame pointer.
20439
20440 2014-03-26 Marek Polacek <polacek@redhat.com>
20441
20442 PR c/37428
20443 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20444 a structure/union.
20445
20446 2014-03-26 Marek Polacek <polacek@redhat.com>
20447
20448 PR c/39525
20449 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20450 field members.
20451
20452 2014-03-26 Marek Polacek <polacek@redhat.com>
20453
20454 PR other/59545
20455 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20456 multiplication in unsigned type.
20457
20458 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20459
20460 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20461
20462 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20463
20464 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20465
20466 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20467
20468 PR ipa/60315
20469 * cif-code.def (UNREACHABLE) New code.
20470 * ipa-inline.c (inline_small_functions): Skip edges to
20471 __builtlin_unreachable.
20472 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20473 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20474 predicate to __bulitin_unreachable.
20475 (set_cond_stmt_execution_predicate): Fix issue when
20476 invert_tree_comparison returns ERROR_MARK.
20477 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20478 propagate to inline clones.
20479 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20480 to unreachable.
20481 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20482 * cgraphclones.c (cgraph_clone_node): If call destination is already
20483 ureachable, do not redirect it back.
20484 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20485 unreachable.
20486
20487 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20488
20489 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20490 Do not modify inline clones.
20491
20492 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20493
20494 * config/i386/i386.md (general_sext_operand): New mode attr.
20495 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20496 don't generate (sign_extend (const_int)).
20497 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20498 operands[2]. Use We constraint instead of <i> and
20499 <general_sext_operand> predicate instead of <general_operand>.
20500 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20501 * config/i386/constraints.md (We): New constraint.
20502 * config/i386/predicates.md (x86_64_sext_operand,
20503 sext_operand): New predicates.
20504
20505 2014-03-25 Martin Jambor <mjambor@suse.cz>
20506
20507 PR ipa/60600
20508 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20509 inconsistent devirtualizations to __builtin_unreachable.
20510
20511 2014-03-25 Marek Polacek <polacek@redhat.com>
20512
20513 PR c/35449
20514 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20515
20516 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20517
20518 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20519 order of elements for big-endian.
20520
20521 2014-03-25 Richard Biener <rguenther@suse.de>
20522
20523 PR middle-end/60635
20524 * gimplify-me.c (gimple_regimplify_operands): Update the
20525 re-gimplifed stmt.
20526
20527 2014-03-25 Martin Jambor <mjambor@suse.cz>
20528
20529 PR ipa/59176
20530 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20531 (lto_output_varpool_node): Likewise.
20532 (input_overwrite_node): Likewise.
20533 (input_varpool_node): Likewise.
20534
20535 2014-03-25 Richard Biener <rguenther@suse.de>
20536
20537 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20538 (run_gcc): Likewise.
20539
20540 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20541
20542 * combine.c (simplify_compare_const): Add MODE argument.
20543 Handle mode_width 0 as very large mode_width.
20544 (try_combine, simplify_comparison): Adjust callers.
20545
20546 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20547 type to avoid signed integer overflow.
20548 * explow.c (plus_constant): Likewise.
20549
20550 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20551
20552 * doc/generic.texi: Correct typos.
20553
20554 2014-03-24 Tobias Burnus <burnus@net-b.de>
20555
20556 * doc/invoke.texi (-flto): Expand section about
20557 using static libraries with LTO.
20558
20559 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20560
20561 PR rtl-optimization/60501
20562 * optabs.def (addptr3_optab): New optab.
20563 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20564 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20565 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20566
20567 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20568
20569 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20570
20571 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20572
20573 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20574 _mm512_set1_pd.
20575
20576 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20577 (_mm256_undefined_ps): Define.
20578 (_mm256_undefined_pd): Define.
20579 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20580 (_mm_undefined_pd): Define.
20581 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20582 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20583 (_mm512_undefined_ps): Define.
20584 (_mm512_undefined_pd): Define.
20585 Use _mm*_undefined_*.
20586 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20587
20588 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20589
20590 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20591 (lshr_simd): DI mode added.
20592 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20593 (aarch64_ushr_simddi): Likewise.
20594 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20595 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20596 (vshrd_n_u64): Likewise.
20597
20598 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20599
20600 * Makefile.in (s-macro_list): Depend on cc1.
20601
20602 2014-03-23 Teresa Johnson <tejohnson@google.com>
20603
20604 * ipa-utils.c (ipa_print_order): Use specified dump file.
20605
20606 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
20607
20608 PR rtl-optimization/60601
20609 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
20610
20611 * gcc.c (eval_spec_function): Initialize save_growing_value.
20612
20613 2014-03-22 Jakub Jelinek <jakub@redhat.com>
20614
20615 PR sanitizer/60613
20616 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
20617 code == MINUS_EXPR, never swap op0 with op1.
20618
20619 * toplev.c (init_local_tick): Avoid signed integer multiplication
20620 overflow.
20621 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
20622 shift by first operand's bitsize.
20623
20624 2014-03-21 Jakub Jelinek <jakub@redhat.com>
20625
20626 PR target/60610
20627 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
20628 redefine to 1 or 0.
20629 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
20630 TARGET_ISA_64BIT_P(x).
20631
20632 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20633
20634 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
20635 pattern for vector nor instead of subtract from splat(-1).
20636 (altivec_expand_vec_perm_const_le): Likewise.
20637
20638 2014-03-21 Richard Henderson <rth@twiddle.net>
20639
20640 PR target/60598
20641 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
20642 related insns after epilogue_completed.
20643
20644 2014-03-21 Martin Jambor <mjambor@suse.cz>
20645
20646 PR ipa/59176
20647 * cgraph.h (symtab_node): New flag body_removed.
20648 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
20649 when removing bodies.
20650 * symtab.c (dump_symtab_base): Dump body_removed flag.
20651 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
20652 had their bodies removed.
20653
20654 2014-03-21 Martin Jambor <mjambor@suse.cz>
20655
20656 PR ipa/60419
20657 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
20658 in the border.
20659
20660 2014-03-21 Richard Biener <rguenther@suse.de>
20661
20662 PR tree-optimization/60577
20663 * tree-core.h (struct tree_base): Document nothrow_flag use
20664 in DECL_NONALIASED.
20665 * tree.h (DECL_NONALIASED): New.
20666 (may_be_aliased): Adjust.
20667 * coverage.c (build_var): Set DECL_NONALIASED.
20668
20669 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20670
20671 * expr.c (expand_expr_real_1): Remove outdated comment.
20672
20673 2014-03-20 Jakub Jelinek <jakub@redhat.com>
20674
20675 PR middle-end/60597
20676 * ira.c (adjust_cleared_regs): Call copy_rtx on
20677 *reg_equiv[REGNO (loc)].src_p before passing it to
20678 simplify_replace_fn_rtx.
20679
20680 PR target/60568
20681 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
20682 into CONST, put pic register as first operand of PLUS. Use
20683 gen_const_mem for both 32-bit and 64-bit PIC got loads.
20684
20685 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20686
20687 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
20688
20689 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20690
20691 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
20692 around for store forwarding issue in the FPU on the UT699.
20693 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
20694 loads and operations if -mfix-ut699 is specified.
20695 (divtf3_hq): Tweak attribute.
20696 (sqrttf2_hq): Likewise.
20697
20698 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20699
20700 * calls.c (store_one_arg): Remove incorrect const qualification on the
20701 type of the temporary.
20702 * cfgexpand.c (expand_return): Likewise.
20703 * expr.c (expand_constructor): Likewise.
20704 (expand_expr_real_1): Likewise.
20705
20706 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20707
20708 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
20709 of parts.
20710
20711 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20712
20713 PR target/60039
20714 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
20715
20716 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
20717
20718 * config/arm/aarch-common-protos.h
20719 (alu_cost_table): Fix spelling of "extend".
20720 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
20721
20722 2014-03-19 Richard Biener <rguenther@suse.de>
20723
20724 PR middle-end/60553
20725 * tree-core.h (tree_type_common): Re-order pointer members
20726 to reduce recursion depth during GC walks.
20727
20728 2014-03-19 Marek Polacek <polacek@redhat.com>
20729
20730 PR sanitizer/60569
20731 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
20732 before accessing it.
20733
20734 2014-03-19 Richard Biener <rguenther@suse.de>
20735
20736 PR lto/59543
20737 * lto-streamer-in.c (input_function): In WPA stage do not drop
20738 debug stmts.
20739
20740 2014-03-19 Jakub Jelinek <jakub@redhat.com>
20741
20742 PR tree-optimization/60559
20743 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
20744 with build_zero_cst assignment.
20745
20746 2014-03-18 Kai Tietz <ktietz@redhat.com>
20747
20748 PR rtl-optimization/56356
20749 * sdbout.c (sdbout_parms): Verify that parms'
20750 incoming argument is valid.
20751 (sdbout_reg_parms): Likewise.
20752
20753 2014-03-18 Richard Henderson <rth@redhat.com>
20754
20755 PR target/60562
20756 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
20757 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
20758 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
20759
20760 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
20761
20762 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
20763 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
20764 Italicize plugin event names in description. Explain that
20765 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
20766 Remind that no GCC functions should be called after PLUGIN_FINISH.
20767 Explain what pragmas with expansion are.
20768
20769 2014-03-18 Martin Liska <mliska@suse.cz>
20770
20771 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
20772 gimple call statement is update.
20773 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
20774 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
20775
20776 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20777
20778 PR sanitizer/60557
20779 * ubsan.c (ubsan_instrument_unreachable): Call
20780 initialize_sanitizer_builtins.
20781 (ubsan_pass): Likewise.
20782
20783 PR sanitizer/60535
20784 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
20785 varpool_finalize_decl instead of rest_of_decl_compilation.
20786
20787 2014-03-18 Richard Biener <rguenther@suse.de>
20788
20789 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
20790 by using bitmap_and_compl instead of bitmap_and_compl_into.
20791 (df_rd_transfer_function): Likewise.
20792
20793 2014-03-18 Richard Biener <rguenther@suse.de>
20794
20795 * doc/lto.texi (fresolution): Fix typo.
20796
20797 2014-03-18 Richard Biener <rguenther@suse.de>
20798
20799 * doc/invoke.texi (flto): Update for changes in 4.9.
20800
20801 2014-03-18 Richard Biener <rguenther@suse.de>
20802
20803 * doc/loop.texi: Remove section on the removed lambda framework.
20804 Update loop docs with recent changes in preserving loop structure.
20805
20806 2014-03-18 Richard Biener <rguenther@suse.de>
20807
20808 * doc/lto.texi (-fresolution): Document.
20809
20810 2014-03-18 Richard Biener <rguenther@suse.de>
20811
20812 * doc/contrib.texi: Adjust my name.
20813
20814 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20815
20816 PR ipa/58721
20817 * internal-fn.c: Include diagnostic-core.h.
20818 (expand_BUILTIN_EXPECT): New function.
20819 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
20820 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
20821 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
20822 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
20823 IFN_BUILTIN_EXPECT.
20824 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
20825 Revert 3 argument __builtin_expect code.
20826 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
20827 * gimple-fold.c (gimple_fold_call): Likewise.
20828 * tree.h (fold_builtin_expect): New prototype.
20829 * builtins.c (build_builtin_expect_predicate): Add predictor
20830 argument, if non-NULL, create 3 argument __builtin_expect.
20831 (fold_builtin_expect): No longer static. Add ARG2 argument,
20832 pass it through to build_builtin_expect_predicate.
20833 (fold_builtin_2): Adjust caller.
20834 (fold_builtin_3): Handle BUILT_IN_EXPECT.
20835 * internal-fn.def (BUILTIN_EXPECT): New.
20836
20837 2014-03-18 Tobias Burnus <burnus@net-b.de>
20838
20839 PR ipa/58721
20840 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
20841 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
20842 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
20843
20844 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
20845
20846 PR ipa/58721
20847 * predict.c (combine_predictions_for_bb): Fix up formatting.
20848 (expr_expected_value_1, expr_expected_value): Add predictor argument,
20849 fill what it points to if non-NULL.
20850 (tree_predict_by_opcode): Adjust caller, use the predictor.
20851 * predict.def (PRED_COMPARE_AND_SWAP): Add.
20852
20853 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
20854
20855 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
20856 proper constant for the store mode.
20857
20858 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
20859
20860 * symtab.c (change_decl_assembler_name): Fix transparent alias
20861 chain construction.
20862
20863 2014-03-16 Renlin Li <Renlin.Li@arm.com>
20864
20865 * config/aarch64/aarch64.c: Correct the comments about the
20866 aarch64 stack layout.
20867
20868 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
20869
20870 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
20871 check for GF_OMP_FOR_KIND_FOR.
20872
20873 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20874
20875 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
20876 ymm and zmm register names.
20877
20878 2014-03-17 Jakub Jelinek <jakub@redhat.com>
20879
20880 PR target/60516
20881 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
20882 note creation for the 2010-08-31 changes.
20883
20884 2014-03-17 Marek Polacek <polacek@redhat.com>
20885
20886 PR middle-end/60534
20887 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
20888 as -fno-tree-loop-vectorize.
20889 (expand_omp_simd): Likewise.
20890
20891 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
20892
20893 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
20894 (eligible_for_call_delay): New prototype.
20895 * config/sparc/sparc.c (tls_call_delay): Rename into...
20896 (eligible_for_call_delay): ...this. Return false if the instruction
20897 cannot be put in the delay slot of a branch.
20898 (eligible_for_restore_insn): Simplify.
20899 (eligible_for_return_delay): Return false if the instruction cannot be
20900 put in the delay slot of a branch and simplify.
20901 (eligible_for_sibcall_delay): Return false if the instruction cannot be
20902 put in the delay slot of a branch.
20903 * config/sparc/sparc.md (fix_ut699): New attribute.
20904 (tls_call_delay): Delete.
20905 (in_call_delay): Reimplement.
20906 (eligible_for_sibcall_delay): Rename into...
20907 (in_sibcall_delay): ...this.
20908 (eligible_for_return_delay): Rename into...
20909 (in_return_delay): ...this.
20910 (in_branch_delay): Reimplement.
20911 (in_uncond_branch_delay): Delete.
20912 (in_annul_branch_delay): Delete.
20913
20914 2014-03-14 Richard Henderson <rth@redhat.com>
20915
20916 PR target/60525
20917 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
20918 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
20919 (*floathi<X87MODEF>2_i387_with_temp): Remove.
20920 (floathi splitters): Remove.
20921 (float<SWI48x>xf2): New pattern.
20922 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
20923 code that tried to handle DImode for 32-bit, but which was excluded
20924 by the pattern's condition. Drop allocation of stack temporary.
20925 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
20926 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
20927 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
20928 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
20929 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
20930 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
20931 (*float<SWI48><MODEF>2_sse_interunit): Remove.
20932 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
20933 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
20934 (*float<SWI48x><X87MODEF>2_i387): Remove.
20935 (all float _with_temp splitters): Remove.
20936 (*float<SWI48x><MODEF>2_i387): New pattern.
20937 (*float<SWI48><MODEF>2_sse): New pattern.
20938 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
20939 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
20940
20941 2014-03-14 Jakub Jelinek <jakub@redhat.com>
20942 Marek Polacek <polacek@redhat.com>
20943
20944 PR middle-end/60484
20945 * common.opt (dump_base_name_prefixed): New Variable.
20946 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
20947 if x_dump_base_name_prefixed is already set, set it at the end.
20948
20949 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
20950
20951 PR rtl-optimization/60508
20952 * lra-constraints.c (get_reload_reg): Add new parameter
20953 in_subreg_p.
20954 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
20955 Pass the new parameter values.
20956
20957 2014-03-14 Richard Biener <rguenther@suse.de>
20958
20959 * common.opt: Revert unintented changes from r205065.
20960 * opts.c: Likewise.
20961
20962 2014-03-14 Richard Biener <rguenther@suse.de>
20963
20964 PR middle-end/60518
20965 * cfghooks.c (split_block): Properly adjust all loops the
20966 block was a latch of.
20967
20968 2014-03-14 Martin Jambor <mjambor@suse.cz>
20969
20970 PR lto/60461
20971 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
20972 and simplify it.
20973
20974 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
20975
20976 PR target/59396
20977 * config/avr/avr.c (avr_set_current_function): Pass function name
20978 through default_strip_name_encoding before sanity checking instead
20979 of skipping the first char of the assembler name.
20980
20981 2014-03-13 Richard Henderson <rth@redhat.com>
20982
20983 PR debug/60438
20984 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
20985 (ix86_force_to_memory, ix86_free_from_memory): Remove.
20986 * config/i386/i386-protos.h: Likewise.
20987 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
20988 in the expander instead of a splitter.
20989 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
20990 any possibility of requiring a memory.
20991 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
20992 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
20993 (fp branch splitters): Update for ix86_split_fp_branch.
20994 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
20995 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
20996 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
20997 (*fop_<MODEF>_2_i387): Remove f/r alternative.
20998 (*fop_<MODEF>_3_i387): Likewise.
20999 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21000 (splitters for the fop_* register patterns): Remove.
21001 (fscalexf4_i387): Rename from *fscalexf4_i387.
21002 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21003
21004 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21005
21006 PR tree-optimization/59779
21007 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21008 type for bitsize and maxsize instead of HOST_WIDE_INT.
21009
21010 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21011
21012 PR rtl-optimization/57320
21013 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21014 the CFG after thread_prologue_and_epilogue_insns.
21015
21016 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21017
21018 PR rtl-optimization/57189
21019 * lra-constraints.c (process_alt_operands): Disfavor spilling
21020 vector pseudos.
21021
21022 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21023
21024 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21025
21026 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21027
21028 PR tree-optimization/59025
21029 PR middle-end/60418
21030 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21031 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21032
21033 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21034
21035 PR target/60486
21036 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21037 calls of avr_out_plus_1.
21038
21039 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21040
21041 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21042 BB's single pred and update the father loop's latch info later.
21043
21044 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21045
21046 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21047 (VEC_M): Likewise.
21048 (VEC_N): Likewise.
21049 (VEC_R): Likewise.
21050 (VEC_base): Likewise.
21051 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21052 registers, we need to swap double words in little endian mode.
21053
21054 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21055 to be a container mode for 128-bit integer operations added in ISA
21056 2.07. Unlike TImode and PTImode, the preferred register set is
21057 the Altivec/VMX registers for the 128-bit operations.
21058
21059 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21060 declarations.
21061 (rs6000_split_128bit_ok_p): Likewise.
21062
21063 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21064 macros for creating ISA 2.07 normal and overloaded builtin
21065 functions with 3 arguments.
21066 (BU_P8V_OVERLOAD_3): Likewise.
21067 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21068 for use as overloaded functions.
21069 (VPERM_1TI_UNS): Likewise.
21070 (VSEL_1TI): Likewise.
21071 (VSEL_1TI_UNS): Likewise.
21072 (ST_INTERNAL_1ti): Likewise.
21073 (LD_INTERNAL_1ti): Likewise.
21074 (XXSEL_1TI): Likewise.
21075 (XXSEL_1TI_UNS): Likewise.
21076 (VPERM_1TI): Likewise.
21077 (VPERM_1TI_UNS): Likewise.
21078 (XXPERMDI_1TI): Likewise.
21079 (SET_1TI): Likewise.
21080 (LXVD2X_V1TI): Likewise.
21081 (STXVD2X_V1TI): Likewise.
21082 (VEC_INIT_V1TI): Likewise.
21083 (VEC_SET_V1TI): Likewise.
21084 (VEC_EXT_V1TI): Likewise.
21085 (EQV_V1TI): Likewise.
21086 (NAND_V1TI): Likewise.
21087 (ORC_V1TI): Likewise.
21088 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21089 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21090 overloaded builtin.
21091 (VADDUQM): Likewise.
21092 (VSUBCUQ): Likewise.
21093 (VADDEUQM): Likewise.
21094 (VADDECUQ): Likewise.
21095 (VSUBEUQM): Likewise.
21096 (VSUBECUQ): Likewise.
21097
21098 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21099 __int128_t and __uint128_t types.
21100 (__uint128_type): Likewise.
21101 (altivec_categorize_keyword): Add support for vector __int128_t,
21102 vector __uint128_t, vector __int128, and vector unsigned __int128
21103 as a container type for TImode operations that need to be done in
21104 VSX/Altivec registers.
21105 (rs6000_macro_to_expand): Likewise.
21106 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21107 to support 128-bit integer instructions vaddcuq, vadduqm,
21108 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21109 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21110
21111 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21112 for V1TImode, and set up preferences to use VSX/Altivec registers.
21113 Setup VSX reload handlers.
21114 (rs6000_debug_reg_global): Likewise.
21115 (rs6000_init_hard_regno_mode_ok): Likewise.
21116 (rs6000_preferred_simd_mode): Likewise.
21117 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21118 (easy_altivec_constant): Likewise.
21119 (output_vec_const_move): Likewise.
21120 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21121 simple move.
21122 (rs6000_expand_vector_extract): Likewise.
21123 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21124 addressing.
21125 (rs6000_const_vec): Add support for V1TImode.
21126 (rs6000_emit_le_vsx_load): Swap double words when loading or
21127 storing TImode/V1TImode.
21128 (rs6000_emit_le_vsx_store): Likewise.
21129 (rs6000_emit_le_vsx_move): Likewise.
21130 (rs6000_emit_move): Add support for V1TImode.
21131 (altivec_expand_ld_builtin): Likewise.
21132 (altivec_expand_st_builtin): Likewise.
21133 (altivec_expand_vec_init_builtin): Likewise.
21134 (altivec_expand_builtin): Likewise.
21135 (rs6000_init_builtins): Add support for V1TImode type. Add
21136 support for ISA 2.07 128-bit integer builtins. Define type names
21137 for the VSX/Altivec vector types.
21138 (altivec_init_builtins): Add support for overloaded vector
21139 functions with V1TImode type.
21140 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21141 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21142 external function.
21143 (rs6000_split_128bit_ok_p): Likewise.
21144 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21145 __int128_t and vector __uint128_t.
21146
21147 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21148 and mode attributes.
21149 (VSX_M): Likewise.
21150 (VSX_M2): Likewise.
21151 (VSm): Likewise.
21152 (VSs): Likewise.
21153 (VSr): Likewise.
21154 (VSv): Likewise.
21155 (VS_scalar): Likewise.
21156 (VS_double): Likewise.
21157 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21158
21159 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21160 we support the ISA 2.07 128-bit integer arithmetic instructions.
21161 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21162 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21163 and TImode types for use with the builtin functions.
21164 (V1TI_type_node): Likewise.
21165 (unsigned_V1TI_type_node): Likewise.
21166 (intTI_type_internal_node): Likewise.
21167 (uintTI_type_internal_node): Likewise.
21168
21169 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21170 128-bit builtin functions.
21171 (UNSPEC_VADDEUQM): Likewise.
21172 (UNSPEC_VADDECUQ): Likewise.
21173 (UNSPEC_VSUBCUQ): Likewise.
21174 (UNSPEC_VSUBEUQM): Likewise.
21175 (UNSPEC_VSUBECUQ): Likewise.
21176 (VM): Add V1TImode to vector mode iterators.
21177 (VM2): Likewise.
21178 (VI_unit): Likewise.
21179 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21180 (altivec_vaddcuq): Likewise.
21181 (altivec_vsubuqm): Likewise.
21182 (altivec_vsubcuq): Likewise.
21183 (altivec_vaddeuqm): Likewise.
21184 (altivec_vaddecuq): Likewise.
21185 (altivec_vsubeuqm): Likewise.
21186 (altivec_vsubecuq): Likewise.
21187
21188 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21189 mode iterators.
21190 (BOOL_128): Likewise.
21191 (BOOL_REGS_OUTPUT): Likewise.
21192 (BOOL_REGS_OP1): Likewise.
21193 (BOOL_REGS_OP2): Likewise.
21194 (BOOL_REGS_UNARY): Likewise.
21195 (BOOL_REGS_AND_CR0): Likewise.
21196
21197 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21198 128-bit integer builtin support.
21199 (vec_vadduqm): Likewise.
21200 (vec_vaddecuq): Likewise.
21201 (vec_vaddeuqm): Likewise.
21202 (vec_vsubecuq): Likewise.
21203 (vec_vsubeuqm): Likewise.
21204 (vec_vsubcuq): Likewise.
21205 (vec_vsubuqm): Likewise.
21206
21207 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21208 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21209 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21210 128-bit integer add/subtract to ISA 2.07.
21211
21212 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21213
21214 * config/arc/arc.c (arc_predicate_delay_insns):
21215 Fix third argument passed to conditionalize_nonjump.
21216
21217 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21218
21219 * config/aarch64/aarch64-builtins.c
21220 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21221 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21222 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21223 instead of __builtin_lfloor.
21224 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21225
21226 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21227
21228 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21229 (tree_ssa_ifcombine_bb_1): New function.
21230 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21231 is an empty forwarder block to then_bb or vice versa and then_bb
21232 and else_bb are effectively swapped.
21233
21234 2014-03-12 Christian Bruel <christian.bruel@st.com>
21235
21236 PR target/60264
21237 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21238 REG_CFA_DEF_CFA note.
21239 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21240 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21241
21242 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21243
21244 PR tree-optimization/60454
21245 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21246
21247 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21248
21249 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21250 Do not define target_cpu_default2 to generic.
21251 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21252 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21253 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21254
21255 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21256 Marc Glisse <marc.glisse@inria.fr>
21257
21258 PR tree-optimization/60502
21259 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21260 instead of build_low_bits_mask.
21261
21262 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21263
21264 PR middle-end/60482
21265 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21266 if there are multiple uses, but op doesn't live on E edge.
21267 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21268 clobber stmts before __builtin_unreachable.
21269
21270 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21271
21272 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21273 hard_frame_pointer_rtx.
21274 * cse.c (cse_insn): Remove volatile check.
21275 * cselib.c (cselib_process_insn): Likewise.
21276 * dse.c (scan_insn): Likewise.
21277
21278 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21279
21280 * config/arc/arc.c (conditionalize_nonjump): New function,
21281 broken out of ...
21282 (arc_ifcvt): ... this.
21283 (arc_predicate_delay_insns): Use it.
21284
21285 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21286
21287 * config/arc/predicates.md (extend_operand): During/after reload,
21288 allow const_int_operand.
21289 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21290 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21291 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21292 to "i".
21293 (umulsi3_highpart_i): Likewise.
21294
21295 2014-03-11 Richard Biener <rguenther@suse.de>
21296
21297 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21298 Add asserts to guard possible wrong-code bugs.
21299
21300 2014-03-11 Richard Biener <rguenther@suse.de>
21301
21302 PR tree-optimization/60429
21303 PR tree-optimization/60485
21304 * tree-ssa-structalias.c (set_union_with_increment): Properly
21305 take into account all fields that overlap the shifted vars.
21306 (do_sd_constraint): Likewise.
21307 (do_ds_constraint): Likewise.
21308 (get_constraint_for_ptr_offset): Likewise.
21309
21310 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21311
21312 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21313 (nios2_compute_frame_layout):
21314 Add calculation of cfun->machine->fp_save_offset.
21315 (nios2_expand_prologue): Correct setting of frame pointer register
21316 in prologue.
21317 (nios2_expand_epilogue): Update recovery of stack pointer from
21318 frame pointer accordingly.
21319 (nios2_initial_elimination_offset): Update calculation of offset
21320 for eliminating to HARD_FRAME_POINTER_REGNUM.
21321
21322 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21323
21324 PR ipa/60457
21325 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21326 cgraph_get_create_node on VAR_DECLs.
21327
21328 2014-03-10 Richard Biener <rguenther@suse.de>
21329
21330 PR middle-end/60474
21331 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21332
21333 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21334
21335 * config/vms/vms.opt (vms_float_format): New variable.
21336
21337 2014-03-08 Tobias Burnus <burnus@net-b.de>
21338
21339 * doc/invoke.texi (-fcilkplus): Update implementation status.
21340
21341 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21342 Richard Biener <rguenther@suse.de>
21343
21344 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21345 consistently accross all TUs.
21346 (run_gcc): Enable -fshort-double automatically at link at link-time
21347 and disallow override.
21348
21349 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21350
21351 PR target/58271
21352 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21353 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21354 if they can't be used.
21355
21356 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21357
21358 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21359 for Solaris 11/x86 ld.
21360 * configure: Regenerate.
21361
21362 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21363
21364 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21365 (LIB_TLS_SPEC): Save as ld_tls_libs.
21366 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21367 (HAVE_AS_IX86_TLSLDM): New test.
21368 * configure, config.in: Regenerate.
21369 * config/i386/i386.c (legitimize_tls_address): Fall back to
21370 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21371 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21372 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21373 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21374
21375 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21376
21377 * common.opt (fira-loop-pressure): Mark as optimization.
21378
21379 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21380
21381 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21382 an OpenMP mappable type.
21383
21384 2014-03-06 Matthias Klose <doko@ubuntu.com>
21385
21386 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21387 MULTILIB_OSDIRNAMES is not defined.
21388
21389 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21390 Meador Inge <meadori@codesourcery.com>
21391
21392 PR target/58595
21393 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21394 (arm_legitimize_address): Call legitimize_tls_address for any
21395 arm_tls_referenced_p expression, handle constant addend. Call it
21396 before testing for !TARGET_ARM.
21397 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21398
21399 2014-03-06 Richard Biener <rguenther@suse.de>
21400
21401 PR middle-end/60445
21402 PR lto/60424
21403 PR lto/60427
21404 Revert
21405 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21406
21407 * tree-streamer.c (record_common_node): Assert we don't record
21408 nodes with type double.
21409 (preload_common_node): Skip type double, complex double and double
21410 pointer since it is now frontend dependent due to fshort-double option.
21411
21412 2014-03-06 Richard Biener <rguenther@suse.de>
21413
21414 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21415 or -fno-lto is specified and the linker has full plugin support.
21416 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21417 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21418 * lto-wrapper.c (merge_and_complain): Merge compile-time
21419 optimization levels.
21420 (run_gcc): And pass it through to the link options.
21421
21422 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21423
21424 PR debug/60381
21425 Revert:
21426 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21427 PR debug/59992
21428 * cselib.c (remove_useless_values): Skip to avoid quadratic
21429 behavior if the condition moved from...
21430 (cselib_process_insn): ... here holds.
21431
21432 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21433
21434 PR plugins/59335
21435 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21436 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21437
21438 PR plugins/59335
21439 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21440 (TM_H): Add x86-tune.def.
21441
21442 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21443
21444 * config/aarch64/aarch64.c (generic_tunings):
21445 Use cortexa57_extra_costs.
21446
21447 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21448
21449 PR lto/60404
21450 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21451 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21452 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21453 cost for in_lto_p.
21454
21455 2014-03-04 Heiher <r@hev.cc>
21456
21457 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21458 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21459
21460 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21461
21462 * config/i386/predicates.md (const2356_operand): Change to ...
21463 (const2367_operand): ... this.
21464 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21465 const2367_operand.
21466 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21467 (*avx512pf_scatterpf<mode>sf): Ditto.
21468 (avx512pf_scatterpf<mode>df): Ditto.
21469 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21470 (*avx512pf_scatterpf<mode>df): Ditto.
21471 * config/i386/i386.c (ix86_expand_builtin): Update
21472 incorrect hint operand error message.
21473
21474 2014-03-04 Richard Biener <rguenther@suse.de>
21475
21476 * lto-section-in.c (lto_get_section_data): Fix const cast.
21477
21478 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21479
21480 * tree-streamer.c (record_common_node): Assert we don't record
21481 nodes with type double.
21482 (preload_common_node): Skip type double, complex double and double
21483 pointer since it is now frontend dependent due to fshort-double option.
21484
21485 2014-03-04 Richard Biener <rguenther@suse.de>
21486
21487 PR lto/60405
21488 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21489 (lto_input_toplevel_asms): Likewise.
21490 * lto-section-in.c (lto_get_section_data): Instead do it here
21491 for every section.
21492
21493 2014-03-04 Richard Biener <rguenther@suse.de>
21494
21495 PR tree-optimization/60382
21496 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21497 dead PHIs a reduction.
21498
21499 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21500
21501 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21502 hint value.
21503 (_mm_prefetch): Move out of GCC target("sse") pragma.
21504 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21505 GCC target("prfchw") pragma.
21506 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21507 for locality <= 2.
21508 * config/i386/i386.c (ix86_option_override_internal): Enable
21509 -mprfchw with -mprefetchwt1.
21510
21511 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21512
21513 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21514 Mark as varying.
21515
21516 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21517
21518 * opts.h (CL_PCH_IGNORE): Define.
21519 * targhooks.c (option_affects_pch_p):
21520 Return false for options that have CL_PCH_IGNORE set.
21521 * opt-functions.awk: Process PchIgnore.
21522 * doc/options.texi: Document PchIgnore.
21523
21524 * config/arc/arc.opt (misize): Add PchIgnore property.
21525
21526 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21527
21528 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21529 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21530 constraint on constants to permit them being loaded into
21531 GENERAL_REGS or BASE_REGS.
21532
21533 2014-03-03 Nick Clifton <nickc@redhat.com>
21534
21535 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21536 anti-cacnonical alternatives.
21537 (negandhi3_real): New pattern.
21538 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21539
21540 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21541
21542 * config/avr/avr-mcus.def: Remove atxmega16x1.
21543 * config/avr/avr-tables.opt: Regenerate.
21544 * config/avr/t-multilib: Regenerate.
21545 * doc/avr-mmcu.texi: Regenerate.
21546
21547 2014-03-03 Tobias Grosser <tobias@grosser.es>
21548 Mircea Namolaru <mircea.namolaru@inria.fr>
21549
21550 PR tree-optimization/58028
21551 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21552 scalar dimensions.
21553
21554 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21555
21556 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21557 not handled by recognizers.
21558
21559 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21560
21561 PR middle-end/60175
21562 * function.c (expand_function_end): Don't emit
21563 clobber_return_register sequence if clobber_after is a BARRIER.
21564 * cfgexpand.c (construct_exit_block): Append instructions before
21565 return_label to prev_bb.
21566
21567 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21568
21569 * config/rs6000/constraints.md: Document reserved use of "wc".
21570
21571 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21572
21573 PR ipa/60150
21574 * ipa.c (function_and_variable_visibility): When dissolving comdat
21575 group, also set all symbols to local.
21576
21577 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21578
21579 PR ipa/60306
21580
21581 Revert:
21582 2013-12-14 Jan Hubicka <jh@suse.cz>
21583 PR middle-end/58477
21584 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21585
21586 2014-03-02 Jon Beniston <jon@beniston.com>
21587
21588 PR bootstrap/48230
21589 PR bootstrap/50927
21590 PR bootstrap/52466
21591 PR target/46898
21592 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21593 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21594 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21595 (simple_return, *simple_return): New patterns
21596 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21597 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21598
21599 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
21600
21601 * dwarf2out.c (gen_subprogram_die): Tidy.
21602
21603 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
21604
21605 PR target/60071
21606 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
21607 (*mov_t_msb_neg_negc): ... this new insn.
21608
21609 2014-02-28 Jason Merrill <jason@redhat.com>
21610
21611 PR c++/58678
21612 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
21613 function.
21614
21615 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21616
21617 PR c++/60314
21618 * dwarf2out.c (decltype_auto_die): New static.
21619 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
21620 (gen_type_die_with_usage): Handle 'decltype(auto)'.
21621 (is_cxx_auto): Likewise.
21622
21623 2014-02-28 Ian Bolton <ian.bolton@arm.com>
21624
21625 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
21626 we are not using general regs only.
21627
21628 2014-02-28 Richard Biener <rguenther@suse.de>
21629
21630 PR target/60280
21631 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
21632 previous fix and only allow to remove trivial pre-headers
21633 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
21634 (remove_forwarder_block): Properly update the latch of a loop.
21635
21636 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21637
21638 PR debug/59992
21639 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
21640 (cselib_preserved_hash_table): New.
21641 (preserve_constants_and_equivs): Move preserved vals to it.
21642 (cselib_find_slot): Look it up first.
21643 (cselib_init): Initialize it.
21644 (cselib_finish): Release it.
21645 (dump_cselib_table): Dump it.
21646
21647 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21648
21649 PR debug/59992
21650 * cselib.c (remove_useless_values): Skip to avoid quadratic
21651 behavior if the condition moved from...
21652 (cselib_process_insn): ... here holds.
21653
21654 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21655
21656 PR debug/57232
21657 * var-tracking.c (vt_initialize): Apply the same condition to
21658 preserve the CFA base value.
21659
21660 2014-02-28 Joey Ye <joey.ye@arm.com>
21661
21662 PR target/PR60169
21663 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
21664 if reload in progress or completed.
21665
21666 2014-02-28 Tobias Burnus <burnus@net-b.de>
21667
21668 PR middle-end/60147
21669 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
21670 NAMELIST_DECL.
21671
21672 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
21673
21674 * doc/tm.texi.in (Condition Code Status): Update documention for
21675 relative locations of cc0-setter and cc0-user.
21676
21677 2014-02-27 Jeff Law <law@redhat.com>
21678
21679 PR rtl-optimization/52714
21680 * combine.c (try_combine): When splitting an unrecognized PARALLEL
21681 into two independent simple sets, if I3 is a jump, ensure the
21682 pattern we place into I3 is a (set (pc) ...).
21683
21684 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
21685 Jeff Law <law@redhat.com>
21686
21687 PR rtl-optimization/49847
21688 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
21689 are in different blocks.
21690 * doc/tm.texi (Condition Code Status): Update documention for
21691 relative locations of cc0-setter and cc0-user.
21692
21693 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
21694
21695 PR target/59222
21696 * lra.c (lra_emit_add): Check SUBREG too.
21697
21698 2014-02-27 Andreas Schwab <schwab@suse.de>
21699
21700 * config/m68k/m68k.c (m68k_option_override): Disable
21701 -flive-range-shrinkage for classic m68k.
21702 (m68k_override_options_after_change): Likewise.
21703
21704 2014-02-27 Marek Polacek <polacek@redhat.com>
21705
21706 PR middle-end/59223
21707 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
21708 -Wmaybe-uninitialized.
21709
21710 2014-02-27 Alan Modra <amodra@gmail.com>
21711
21712 PR target/57936
21713 * reload1.c (emit_input_reload_insns): When reload_override_in,
21714 set old to rl->in_reg when rl->in_reg is a subreg.
21715
21716 2014-02-26 Richard Biener <rguenther@suse.de>
21717
21718 PR bootstrap/60343
21719 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
21720
21721 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21722
21723 * common/config/i386/predicates.md (const1256_operand): Remove.
21724 (const2356_operand): New.
21725 (const_1_to_2_operand): Remove.
21726 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
21727 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21728 (*avx512pf_gatherpf<mode>sf): Ditto.
21729 (avx512pf_gatherpf<mode>df): Ditto.
21730 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21731 (*avx512pf_gatherpf<mode>df): Ditto.
21732 (avx512pf_scatterpf<mode>sf): Ditto.
21733 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21734 (*avx512pf_scatterpf<mode>sf): Ditto.
21735 (avx512pf_scatterpf<mode>df): Ditto.
21736 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21737 (*avx512pf_scatterpf<mode>df): Ditto.
21738 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
21739
21740 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
21741
21742 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
21743 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
21744 (_mm512_mask_testn_epi64_mask): Move to ...
21745 * config/i386/avx512cdintrin.h: Here.
21746 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
21747 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
21748 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
21749 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
21750 TARGET_AVX512F from TARGET_AVX512CD.
21751
21752 2014-02-26 Richard Biener <rguenther@suse.de>
21753
21754 PR ipa/60327
21755 * ipa.c (walk_polymorphic_call_targets): Properly guard
21756 call to inline_update_overall_summary.
21757
21758 2014-02-26 Bin Cheng <bin.cheng@arm.com>
21759
21760 PR target/60280
21761 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
21762 and latches only if requested. Fix latch if it is removed.
21763 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
21764 LOOPS_HAVE_PREHEADERS.
21765
21766 2014-02-25 Andrew Pinski <apinski@cavium.com>
21767
21768 * builtins.c (expand_builtin_thread_pointer): Create a new target
21769 when the target is NULL.
21770
21771 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
21772
21773 PR rtl-optimization/60317
21774 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21775 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21776 * lra-assigns.c: Include params.h.
21777 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
21778 other reload pseudos considerations.
21779
21780 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21781
21782 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
21783 to use canonical form for nor<mode>3.
21784
21785 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21786
21787 PR target/55426
21788 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
21789 conversions.
21790
21791 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21792
21793 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
21794 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
21795 (ix86_handle_option): Handle OPT_mprefetchwt1.
21796 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
21797 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21798 PREFETCHWT1 CPUID.
21799 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21800 OPTION_MASK_ISA_PREFETCHWT1.
21801 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
21802 (PTA_PREFETCHWT1): New.
21803 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
21804 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
21805 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
21806 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
21807 (*prefetch_avx512pf_<mode>_: Change into ...
21808 (*prefetch_prefetchwt1_<mode>: This.
21809 * config/i386/i386.opt (mprefetchwt1): New.
21810 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
21811 (_mm_prefetch): Handle intent to write.
21812 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
21813
21814 2014-02-25 Richard Biener <rguenther@suse.de>
21815
21816 PR middle-end/60291
21817 * emit-rtl.c (mem_attrs_htab): Remove.
21818 (mem_attrs_htab_hash): Likewise.
21819 (mem_attrs_htab_eq): Likewise.
21820 (set_mem_attrs): Always allocate new mem-attrs when something changed.
21821 (init_emit_once): Do not allocate mem_attrs_htab.
21822
21823 2014-02-25 Richard Biener <rguenther@suse.de>
21824
21825 PR lto/60319
21826 * lto-opts.c (lto_write_options): Output non-explicit conservative
21827 -fwrapv, -fno-trapv and -fno-strict-overflow.
21828 * lto-wrapper.c (merge_and_complain): Handle merging those options.
21829 (run_gcc): And pass them through.
21830
21831 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21832
21833 * sel-sched.c (calculate_new_fences): New parameter ptime.
21834 Calculate it as a maximum over all fence cycles.
21835 (sel_sched_region_2): Adjust the call to calculate_new_fences.
21836 Print the final schedule timing when sched_verbose.
21837
21838 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21839
21840 PR rtl-optimization/60292
21841 * sel-sched.c (fill_vec_av_set): Do not reset target availability
21842 bit fot the fence instruction.
21843
21844 2014-02-24 Alangi Derick <alangiderick@gmail.com>
21845
21846 * calls.h: Fix typo in comment.
21847
21848 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
21849
21850 * config/pa/pa.c (pa_output_move_double): Don't valididate when
21851 adjusting offsetable addresses.
21852
21853 2014-02-24 Guozhi Wei <carrot@google.com>
21854
21855 * sparseset.h (sparseset_pop): Fix the wrong index.
21856
21857 2014-02-24 Walter Lee <walt@tilera.com>
21858
21859 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
21860 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
21861 triplet.
21862 * common/config/tilegx/tilegx-common.c
21863 (TARGET_DEFAULT_TARGET_FLAGS): Define.
21864 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
21865 (LINK_SPEC): Ditto.
21866 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
21867 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
21868 (tilegx_gimplify_va_arg_expr): Handle big endian.
21869 (tilegx_expand_unaligned_load): Ditto.
21870 (tilegx_expand_unaligned_store): Ditto.
21871 (TARGET_RETURN_IN_MSB): New.
21872 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
21873 (TARGET_ENDIAN_DEFAULT): New.
21874 (TARGET_BIG_ENDIAN): Handle big endian.
21875 (BYTES_BIG_ENDIAN): Ditto.
21876 (WORDS_BIG_ENDIAN): Ditto.
21877 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
21878 (ENDIAN_SPEC): New.
21879 (EXTRA_SPECS): New.
21880 * config/tilegx/tilegx.md (extv): Handle big endian.
21881 (extzv): Ditto.
21882 (insn_st<n>): Ditto.
21883 (insn_st<n>_add<bitsuffix>): Ditto.
21884 (insn_stnt<n>): Ditto.
21885 (insn_stnt<n>_add<bitsuffix>):Ditto.
21886 (vec_interleave_highv8qi): Handle big endian.
21887 (vec_interleave_highv8qi_be): New.
21888 (vec_interleave_highv8qi_le): New.
21889 (insn_v1int_h): Handle big endian.
21890 (vec_interleave_lowv8qi): Handle big endian.
21891 (vec_interleave_lowv8qi_be): New.
21892 (vec_interleave_lowv8qi_le): New.
21893 (insn_v1int_l): Handle big endian.
21894 (vec_interleave_highv4hi): Handle big endian.
21895 (vec_interleave_highv4hi_be): New.
21896 (vec_interleave_highv4hi_le): New.
21897 (insn_v2int_h): Handle big endian.
21898 (vec_interleave_lowv4hi): Handle big endian.
21899 (vec_interleave_lowv4hi_be): New.
21900 (vec_interleave_lowv4hi_le): New.
21901 (insn_v2int_l): Handle big endian.
21902 (vec_interleave_highv2si): Handle big endian.
21903 (vec_interleave_highv2si_be): New.
21904 (vec_interleave_highv2si_le): New.
21905 (insn_v4int_h): Handle big endian.
21906 (vec_interleave_lowv2si): Handle big endian.
21907 (vec_interleave_lowv2si_be): New.
21908 (vec_interleave_lowv2si_le): New.
21909 (insn_v4int_l): Handle big endian.
21910 * config/tilegx/tilegx.opt (mbig-endian): New option.
21911 (mlittle-endian): New option.
21912 * doc/install.texi: Document tilegxbe-linux.
21913 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
21914
21915 2014-02-24 Martin Jambor <mjambor@suse.cz>
21916
21917 PR ipa/60266
21918 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
21919 there are no parameter descriptors.
21920
21921 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
21922
21923 PR rtl-optimization/60268
21924 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
21925 initialization to ...
21926 (sched_rgn_init): ... here.
21927 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
21928
21929 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21930
21931 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
21932 names.
21933
21934 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
21935
21936 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
21937 definition.
21938
21939 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21940
21941 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
21942 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
21943
21944 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21945
21946 * config/microblaze/predicates.md: Add cmp_op predicate.
21947 * config/microblaze/microblaze.md: Add branch_compare instruction
21948 which uses cmp_op predicate and emits cmp insn before branch.
21949 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
21950 to microblaze_expand_conditional_branch and consolidate logic.
21951 (microblaze_expand_conditional_branch): emit branch_compare
21952 insn instead of handling cmp op separate from branch insn.
21953
21954 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21955
21956 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
21957 to permit subregs.
21958
21959 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21960
21961 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
21962 define_insn with define_expand and new define_insn
21963 *altivec_lve<VI_char>x_internal.
21964 (altivec_stve<VI_char>x): Replace define_insn with define_expand
21965 and new define_insn *altivec_stve<VI_char>x_internal.
21966 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
21967 prototype.
21968 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
21969 lve*x built-ins.
21970 (altivec_expand_stvex_be): New function.
21971
21972 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
21973
21974 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
21975 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
21976 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
21977 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
21978
21979 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
21980
21981 PR target/60298
21982 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
21983 instead of emit_move_insn.
21984
21985 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21986
21987 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
21988 vspltw with vsldoi.
21989 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
21990 gen_altivec_vsumsws.
21991
21992 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21993
21994 * config/rs6000/altivec.md (altivec_lvxl): Rename as
21995 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
21996 (altivec_lvxl_<mode>): New define_expand incorporating
21997 -maltivec=be semantics where needed.
21998 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
21999 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22000 semantics where needed.
22001 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22002 (altivec_stvx_<mode>): New define_expand incorporating
22003 -maltivec=be semantics where needed.
22004 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22005 VM2 iterator instead of V4SI.
22006 (altivec_stvxl_<mode>): New define_expand incorporating
22007 -maltivec=be semantics where needed.
22008 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22009 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22010 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22011 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22012 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22013 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22014 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22015 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22016 ALTIVEC_BUILTIN_STVXL.
22017 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22018 (altivec_expand_stvx_be): Likewise.
22019 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22020 (altivec_expand_lvx_be): Likewise.
22021 (altivec_expand_stvx_be): Likewise.
22022 (altivec_expand_builtin): Add cases for
22023 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22024 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22025 (altivec_init_builtins): Add definitions for
22026 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22027 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22028
22029 2014-02-21 Catherine Moore <clm@codesourcery.com>
22030
22031 * doc/invoke.texi (mvirt, mno-virt): Document.
22032 * config/mips/mips.opt (mvirt): New option.
22033 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22034
22035 2014-02-21 Richard Biener <rguenther@suse.de>
22036
22037 PR tree-optimization/60276
22038 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22039 (STMT_VINFO_MIN_NEG_DIST): New macro.
22040 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22041 STMT_VINFO_MIN_NEG_DIST.
22042 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22043 made for negative dependence distances still hold.
22044
22045 2014-02-21 Richard Biener <rguenther@suse.de>
22046
22047 PR middle-end/60291
22048 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22049 DECL_INITIAL for globals not in the current function context.
22050
22051 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22052
22053 PR tree-optimization/56490
22054 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22055 * tree-ssa-uninit.c: Include params.h.
22056 (compute_control_dep_chain): Add num_calls argument, return false
22057 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22058 num_calls to recursive call.
22059 (find_predicates): Change dep_chain into normal array,
22060 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22061 variable and adjust compute_control_dep_chain caller.
22062 (find_def_preds): Likewise.
22063
22064 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22065
22066 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22067 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22068
22069 2014-02-21 Nick Clifton <nickc@redhat.com>
22070
22071 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22072 (pushhi1): Likewise.
22073 (popqi1): Add mode to pre_dec.
22074 (pophi1): Likewise.
22075
22076 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22077
22078 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22079 mode for mask of V8SFmode permutation.
22080
22081 2014-02-20 Richard Henderson <rth@redhat.com>
22082
22083 PR c++/60272
22084 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22085 a new pseudo for OLDVAL.
22086
22087 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22088
22089 PR target/57896
22090 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22091 gen_reg_rtx if d->testing_p.
22092 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22093 if d->testing_p and we will certainly return true.
22094 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22095 if d->testing_p.
22096
22097 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22098
22099 * emit-rtl.c (gen_reg_rtx): Assert that
22100 crtl->emit.regno_pointer_align_length is non-zero.
22101
22102 2014-02-20 Richard Henderson <rth@redhat.com>
22103
22104 PR c++/60272
22105 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22106 on failure the store back into EXPECT.
22107
22108 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22109 Sandra Loosemore <sandra@codesourcery.com>
22110
22111 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22112 * config/nios2/nios2.c (nios2_function_profiler): Add
22113 -fPIC (flag_pic == 2) support.
22114 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22115 (nios2_large_offset_p): New function.
22116 (nios2_unspec_reloc_p): Move up position, update to use
22117 nios2_large_offset_p.
22118 (nios2_unspec_address): Remove function.
22119 (nios2_unspec_offset): New function.
22120 (nios2_large_got_address): New function.
22121 (nios2_got_address): Add large offset support.
22122 (nios2_legitimize_tls_address): Update usage of removed and new
22123 functions.
22124 (nios2_symbol_binds_local_p): New function.
22125 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22126 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22127 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22128 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22129 processing for (const (unspec ...)).
22130 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22131
22132 2014-02-20 Richard Biener <rguenther@suse.de>
22133
22134 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22135 doing the substitution.
22136 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22137
22138 2014-02-20 Martin Jambor <mjambor@suse.cz>
22139
22140 PR ipa/55260
22141 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22142 info when checking whether lattices are bottom.
22143
22144 2014-02-20 Richard Biener <rguenther@suse.de>
22145
22146 PR middle-end/60221
22147 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22148 regions at -O0.
22149
22150 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22151
22152 PR ipa/58555
22153 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22154 parameter specifying the scaling.
22155 (inline_call): Update.
22156 (want_inline_recursively): Guard division by zero.
22157 (recursive_inlining): Update.
22158 * ipa-inline.h (clone_inlined_nodes): Update.
22159
22160 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22161
22162 PR target/60204
22163 * config/i386/i386.c (classify_argument): Pass structures of size
22164 64 bytes or less in register.
22165
22166 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22167 Kirill Yukhin <kirill.yukhin@intel.com>
22168
22169 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22170 (_mm_rcp28_round_ss): Ditto.
22171 (_mm_rsqrt28_round_sd): Ditto.
22172 (_mm_rsqrt28_round_ss): Ditto.
22173 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22174 (_mm_rcp14_round_ss): Ditto.
22175 (_mm_rsqrt14_round_sd): Ditto.
22176 (_mm_rsqrt14_round_ss): Ditto.
22177 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22178 the first input operand, get rid of match_dup.
22179 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22180 attribute to sse.
22181 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22182 Ditto.
22183 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22184 operand as the first input operand, set type attribute.
22185 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22186 Set type attribute.
22187 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22188 operand as the first input operand, set type attribute.
22189
22190 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22191
22192 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22193 bit of zero.
22194
22195 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22196
22197 PR target/60207
22198 * config/i386/i386.c (construct_container): Remove TFmode check
22199 for X86_64_INTEGER_CLASS.
22200
22201 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22202
22203 PR target/59794
22204 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22205 only when -Wpsabi is enabled.
22206
22207 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22208
22209 PR target/59799
22210 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22211 passing arrays in registers are the same as for structs, so remove the
22212 special case for them.
22213
22214 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22215
22216 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22217 destination type, extract only the valid bits if the source type is not
22218 integral and has a different mode.
22219
22220 2014-02-19 Richard Biener <rguenther@suse.de>
22221
22222 PR ipa/60243
22223 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22224 for all calls.
22225
22226 2014-02-19 Richard Biener <rguenther@suse.de>
22227
22228 PR ipa/60243
22229 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22230 (ipa_modify_call_arguments): Emit an argument load explicitely and
22231 preserve virtual SSA form there and for the replacement call.
22232 Do not update SSA form nor free dominance info.
22233
22234 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22235
22236 * ipa.c (function_and_variable_visibility): Also clear WEAK
22237 flag when disolving COMDAT_GROUP.
22238
22239 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22240
22241 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22242 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22243 not devirtualizing.
22244 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22245 do more sanity checks.
22246 (detect_type_change): Return true when giving up early.
22247 (compute_complex_assign_jump_func): Fix type parameter of
22248 ipa_set_ancestor_jf.
22249 (compute_complex_ancestor_jump_func): Likewise.
22250 (update_jump_functions_after_inlining): Fix updating of
22251 ancestor function.
22252 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22253
22254 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22255
22256 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22257 inline clones when edge disappears.
22258
22259 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22260
22261 PR target/60203
22262 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22263 Split 64-bit moves into 2 patterns. Do not allow the use of
22264 direct move for TDmode in little endian, since the decimal value
22265 has little endian bytes within a word, but the 64-bit pieces are
22266 ordered in a big endian fashion, and normal subreg's of TDmode are
22267 not allowed.
22268 (mov<mode>_64bit_dm): Likewise.
22269 (movtd_64bit_nodm): Likewise.
22270
22271 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22272
22273 PR tree-optimization/60174
22274 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22275 statement of an SSA_NAME that occurs in an abnormal PHI node.
22276
22277 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22278
22279 PR sanitizer/60142
22280 * final.c (SEEN_BB): Remove.
22281 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22282 (final_scan_insn): Don't force_source_line on second
22283 NOTE_INSN_BASIC_BLOCK.
22284
22285 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22286
22287 PR target/60205
22288 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22289 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22290 (type_natural_mode): Warn ABI change when %zmm register is not
22291 available for AVX512F vector value passing.
22292
22293 2014-02-18 Kai Tietz <ktietz@redhat.com>
22294
22295 PR target/60193
22296 * config/i386/i386.c (ix86_expand_prologue): Use value in
22297 rax register as displacement when restoring %r10 or %rax.
22298 Fix wrong offset when restoring both registers.
22299
22300 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22301
22302 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22303 assertion with conditional return.
22304
22305 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22306 Uros Bizjak <ubizjak@gmail.com>
22307
22308 PR driver/60233
22309 * config/i386/driver-i386.c (host_detect_local_cpu): If
22310 YMM state is not saved by the OS, also clear has_f16c. Move
22311 CPUID 0x80000001 handling before YMM state saving checking.
22312
22313 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22314
22315 PR rtl-optimization/58960
22316 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22317 factored out from ...
22318 (sched_init): ... here.
22319 (free_global_sched_pressure_data): New, factored out from ...
22320 (sched_finish): ... here.
22321 * sched-int.h (free_global_sched_pressure_data): Declare.
22322 * sched-rgn.c (nr_regions_initial): New static global.
22323 (haifa_find_rgns): Initialize it.
22324 (schedule_region): Disable sched-pressure for the newly
22325 generated regions.
22326
22327 2014-02-17 Richard Biener <rguenther@suse.de>
22328
22329 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22330 release SSA defs of pattern stmts.
22331
22332 2014-02-17 Richard Biener <rguenther@suse.de>
22333
22334 * tree-inline.c (expand_call_inline): Release the virtual
22335 operand defined by the call we are about to inline.
22336
22337 2014-02-17 Richard Biener <rguenther@suse.de>
22338
22339 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22340
22341 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22342 Ilya Tocar <ilya.tocar@intel.com>
22343
22344 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22345 arguments order in builtin.
22346 (_mm512_permutexvar_epi64): Ditto.
22347 (_mm512_mask_permutexvar_epi64): Ditto
22348 (_mm512_maskz_permutexvar_epi32): Ditto
22349 (_mm512_permutexvar_epi32): Ditto
22350 (_mm512_mask_permutexvar_epi32): Ditto
22351
22352 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22353
22354 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22355 (p8_vmrgow): Likewise.
22356
22357 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22358
22359 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22360 endian targets.
22361
22362 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22363
22364 PR target/60203
22365 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22366 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22367 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22368 using direct move instructions on ISA 2.07. Also adjust
22369 instruction length for 64-bit.
22370 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22371 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22372
22373 2014-02-15 Alan Modra <amodra@gmail.com>
22374
22375 PR target/58675
22376 PR target/57935
22377 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22378 find_replacement on parts of insn rtl that might be reloaded.
22379
22380 2014-02-15 Richard Biener <rguenther@suse.de>
22381
22382 PR tree-optimization/60183
22383 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22384 (tree_ssa_phiprop): Calculate and free post-dominators.
22385
22386 2014-02-14 Jeff Law <law@redhat.com>
22387
22388 PR rtl-optimization/60131
22389 * ree.c (get_extended_src_reg): New function.
22390 (combine_reaching_defs): Use it rather than assuming location of REG.
22391 (find_and_remove_re): Verify first operand of extension is
22392 a REG before adding the insns to the copy list.
22393
22394 2014-02-14 Roland McGrath <mcgrathr@google.com>
22395
22396 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22397 * configure: Regenerated.
22398 * config.in: Regenerated.
22399 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22400 instead of ASM_SHORT.
22401
22402 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22403 Richard Earnshaw <rearnsha@arm.com>
22404
22405 PR rtl-optimization/59535
22406 * lra-constraints.c (process_alt_operands): Encourage alternative
22407 when unassigned pseudo class is superset of the alternative class.
22408 (inherit_reload_reg): Don't inherit when optimizing for code size.
22409 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22410 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22411 modes not less than 4 for Thumb1.
22412
22413 2014-02-14 Kyle McMartin <kyle@redhat.com>
22414
22415 PR pch/60010
22416 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22417
22418 2014-02-14 Richard Biener <rguenther@suse.de>
22419
22420 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22421 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22422 Do not strip INDIRECT_REFs.
22423
22424 2014-02-14 Richard Biener <rguenther@suse.de>
22425
22426 PR lto/60179
22427 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22428 DECL_FUNCTION_SPECIFIC_TARGET.
22429 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22430 * tree-streamer-out.c (pack_ts_target_option): Remove.
22431 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22432 (write_ts_function_decl_tree_pointers): Do not stream
22433 DECL_FUNCTION_SPECIFIC_TARGET.
22434 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22435 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22436 (lto_input_ts_function_decl_tree_pointers): Do not stream
22437 DECL_FUNCTION_SPECIFIC_TARGET.
22438
22439 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22440
22441 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22442 (get_initial_def_for_induction, vectorizable_induction): Ignore
22443 debug stmts when looking for exit_phi.
22444 (vectorizable_live_operation): Fix up condition.
22445
22446 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22447
22448 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22449 nreverse() because it changes the content of original tree list.
22450
22451 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22452
22453 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22454 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22455
22456 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22457
22458 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22459 GNU coding standards.
22460
22461 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22462
22463 PR debug/60152
22464 * dwarf2out.c (gen_subprogram_die): Don't call
22465 add_calling_convention_attribute if subr_die is old_die.
22466
22467 2014-02-13 Sharad Singhai <singhai@google.com>
22468
22469 * doc/optinfo.texi: Fix order of nodes.
22470
22471 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22472
22473 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22474 operands[2], not operands[3].
22475
22476 2014-02-13 Richard Biener <rguenther@suse.de>
22477
22478 PR bootstrap/59878
22479 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22480 mention the possibility of an in-tree build.
22481 (CLooG): Update recommended version to 0.18.1, mention the
22482 possibility of an in-tree build and clarify that the ISL
22483 bundled with CLooG does not work.
22484
22485 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22486
22487 PR target/43546
22488 * expr.c (compress_float_constant): If x is a hard register,
22489 extend into a pseudo and then move to x.
22490
22491 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22492
22493 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22494 caused by bad second argument to warning_at() with -mhotpatch and
22495 nested functions (e.g. with gfortran).
22496
22497 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22498
22499 * opts.c (option_name): Remove "enabled by default" rider.
22500
22501 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22502
22503 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22504
22505 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22506 Uros Bizjak <ubizjak@gmail.com>
22507
22508 PR target/60151
22509 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22510 * configure: Regenerated.
22511
22512 2014-02-12 Richard Biener <rguenther@suse.de>
22513
22514 * vec.c (vec_prefix::calculate_allocation): Move as
22515 inline variant to vec.h.
22516 (vec_prefix::calculate_allocation_1): New out-of-line version.
22517 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22518 (vec_prefix::m_has_auto_buf): Rename to ...
22519 (vec_prefix::m_using_auto_storage): ... this.
22520 (vec_prefix::calculate_allocation): Inline the easy cases
22521 and dispatch to calculate_allocation_1 which doesn't need the
22522 prefix address.
22523 (va_heap::reserve): Use gcc_checking_assert.
22524 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22525 m_using_auto_storage.
22526 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22527 member and adjust.
22528 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22529 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22530 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22531
22532 2014-02-12 Richard Biener <rguenther@suse.de>
22533
22534 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22535 when we found a dependence.
22536
22537 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22538
22539 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22540 common code...
22541 (maybe_fold_stmt): ... into this new function.
22542 * omp-low.c (lower_omp): Update comment.
22543
22544 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22545 last use.
22546
22547 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22548 dereference.
22549
22550 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22551
22552 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22553 identifiers in comments.
22554 (cortexa53_extra_costs): Likewise.
22555 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22556 (cortexa7_extra_costs): Likewise.
22557 (cortexa12_extra_costs): Likewise.
22558 (cortexa15_extra_costs): Likewise.
22559 (v7m_extra_costs): Likewise.
22560
22561 2014-02-12 Richard Biener <rguenther@suse.de>
22562
22563 PR middle-end/60092
22564 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22565 of posix_memalign being successful.
22566 (lower_stmt): Restrict lowering of posix_memalign to when
22567 -ftree-bit-ccp is enabled.
22568
22569 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22570
22571 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22572 arg_loc.
22573 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22574
22575 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22576
22577 PR rtl-optimization/60116
22578 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22579 other_insn once the combination has been validated.
22580
22581 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22582
22583 PR lto/59468
22584 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22585 and wrapper.
22586 * ipa-devirt.c: Include demangle.h
22587 (odr_violation_reported): New static variable.
22588 (add_type_duplicate): Update odr_violations.
22589 (maybe_record_node): Add completep parameter; update it.
22590 (record_target_from_binfo): Add COMPLETEP parameter;
22591 update it as needed.
22592 (possible_polymorphic_call_targets_1): Likewise.
22593 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22594 rename FINAL to COMPLETE.
22595 (record_targets_from_bases): Sanity check we found the binfo;
22596 fix COMPLETEP updating.
22597 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22598 parameter, fix computing of COMPLETEP.
22599 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
22600 at LTO time do demangling.
22601 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
22602 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
22603 parameter.
22604 (gimple_get_virt_method_for_binfo): Likewise.
22605 * gimple-fold.h (gimple_get_virt_method_for_binfo,
22606 gimple_get_virt_method_for_vtable): Update prototypes.
22607
22608 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
22609
22610 PR target/49008
22611 * genautomata.c (add_presence_absence): Fix typo with
22612 {final_}presence_list.
22613
22614 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22615
22616 PR target/60137
22617 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
22618 for VSX/Altivec vectors that land in GPR registers.
22619
22620 2014-02-11 Richard Henderson <rth@redhat.com>
22621 Jakub Jelinek <jakub@redhat.com>
22622
22623 PR debug/59776
22624 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
22625 around drhs if type conversion to lacc->type is not useless.
22626
22627 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22628
22629 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
22630 tuning struct.
22631 (cortex-a57.cortex-a53): Likewise.
22632 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
22633
22634 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22635
22636 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
22637 arm_restrict_it.
22638
22639 2014-02-11 Renlin Li <Renlin.Li@arm.com>
22640
22641 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
22642 add_options_for_arm_vfp3.
22643
22644 2014-02-11 Jeff Law <law@redhat.com>
22645
22646 PR middle-end/54041
22647 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
22648 object with an undesirable mode.
22649
22650 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22651
22652 PR libgomp/60107
22653 * config/i386/sol2-9.h: New file.
22654 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
22655 *-*-solaris2.9*): Use it.
22656
22657 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22658
22659 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
22660 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
22661
22662 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22663
22664 * config/microblaze/microblaze.c: Extend mcpu version format
22665
22666 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
22667
22668 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
22669
22670 2014-02-10 Richard Henderson <rth@redhat.com>
22671
22672 PR target/59927
22673 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
22674 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
22675 ms-abi vs -mno-accumulate-outgoing-args.
22676 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
22677 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
22678 respect to ms-abi.
22679
22680 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
22681
22682 PR middle-end/60080
22683 * cfgexpand.c (expand_asm_operands): Attach source location to
22684 ASM_INPUT rtx objects.
22685 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
22686
22687 2014-02-10 Nick Clifton <nickc@redhat.com>
22688
22689 * config/mn10300/mn10300.c (popcount): New function.
22690 (mn10300_expand_prologue): Include saved registers in stack usage
22691 count.
22692
22693 2014-02-10 Jeff Law <law@redhat.com>
22694
22695 PR middle-end/52306
22696 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
22697 when changing the SET_DEST of a prior insn to avoid an input reload.
22698
22699 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22700
22701 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
22702 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
22703 -mcall-openbsd, or -mcall-linux.
22704 (CC1_ENDIAN_BIG_SPEC): Remove.
22705 (CC1_ENDIAN_LITTLE_SPEC): Remove.
22706 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22707 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
22708 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
22709 and %cc1_endian_default.
22710 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22711
22712 2014-02-10 Richard Biener <rguenther@suse.de>
22713
22714 PR tree-optimization/60115
22715 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
22716 MEM_REF handling. Properly verify that the accesses are not
22717 out of the objects bound.
22718
22719 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22720
22721 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
22722 coretex to cortex.
22723
22724 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
22725
22726 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
22727 proper constants and fix formatting.
22728 (possible_polymorphic_call_targets): Fix formatting.
22729
22730 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
22731 Ilya Tocar <ilya.tocar@intel.com>
22732
22733 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
22734 (_mm512_loadu_epi32): Renamed into...
22735 (_mm512_loadu_si512): This.
22736 (_mm512_storeu_epi32): Renamed into...
22737 (_mm512_storeu_si512): This.
22738 (_mm512_maskz_ceil_ps): Removed.
22739 (_mm512_maskz_ceil_pd): Ditto.
22740 (_mm512_maskz_floor_ps): Ditto.
22741 (_mm512_maskz_floor_pd): Ditto.
22742 (_mm512_floor_round_ps): Ditto.
22743 (_mm512_floor_round_pd): Ditto.
22744 (_mm512_ceil_round_ps): Ditto.
22745 (_mm512_ceil_round_pd): Ditto.
22746 (_mm512_mask_floor_round_ps): Ditto.
22747 (_mm512_mask_floor_round_pd): Ditto.
22748 (_mm512_mask_ceil_round_ps): Ditto.
22749 (_mm512_mask_ceil_round_pd): Ditto.
22750 (_mm512_maskz_floor_round_ps): Ditto.
22751 (_mm512_maskz_floor_round_pd): Ditto.
22752 (_mm512_maskz_ceil_round_ps): Ditto.
22753 (_mm512_maskz_ceil_round_pd): Ditto.
22754 (_mm512_expand_pd): Ditto.
22755 (_mm512_expand_ps): Ditto.
22756 * config/i386/i386.c (ix86_builtins): Remove
22757 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
22758 (bdesc_args): Ditto.
22759 * config/i386/predicates.md (const1256_operand): New.
22760 (const_1_to_2_operand): Ditto.
22761 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22762 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22763 (*avx512pf_gatherpf<mode>sf): Ditto.
22764 (avx512pf_gatherpf<mode>df): Ditto.
22765 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22766 (*avx512pf_gatherpf<mode>df): Ditto.
22767 (avx512pf_scatterpf<mode>sf): Ditto.
22768 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22769 (*avx512pf_scatterpf<mode>sf): Ditto.
22770 (avx512pf_scatterpf<mode>df): Ditto.
22771 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22772 (*avx512pf_scatterpf<mode>df): Ditto.
22773 (avx512f_expand<mode>): Removed.
22774 (<shift_insn><mode>3<mask_name>): Change predicate type.
22775
22776 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22777
22778 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
22779 not at the end of datarefs vector use ordered_remove to avoid
22780 reordering datarefs vector.
22781
22782 PR c/59984
22783 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
22784 mark local addressable non-static vars as GOVD_PRIVATE
22785 instead of GOVD_LOCAL.
22786 * omp-low.c (lower_omp_for): Move gimple_bind_vars
22787 and BLOCK_VARS of gimple_bind_block to new_stmt rather
22788 than copying them.
22789
22790 PR middle-end/60092
22791 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
22792 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
22793 assume_aligned or alloc_align attributes.
22794 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
22795 arguments. Handle also assume_aligned and alloc_align attributes.
22796 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
22797 calls to functions with assume_aligned or alloc_align attributes.
22798 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
22799
22800 2014-02-08 Terry Guo <terry.guo@arm.com>
22801
22802 * doc/invoke.texi: Document ARM -march=armv7e-m.
22803
22804 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22805
22806 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
22807 flag on __cilkrts_rethrow builtin.
22808
22809 PR ipa/60026
22810 * ipa-cp.c (determine_versionability): Fail at -O0
22811 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
22812 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
22813
22814 Revert:
22815 2014-02-04 Jakub Jelinek <jakub@redhat.com>
22816
22817 PR ipa/60026
22818 * tree-inline.c (copy_forbidden): Fail for
22819 __attribute__((optimize (0))) functions.
22820
22821 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22822
22823 * varpool.c: Include pointer-set.h.
22824 (varpool_remove_unreferenced_decls): Variables in other partitions
22825 will not be output; be however careful to not lose information
22826 about partitioning.
22827
22828 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22829
22830 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
22831 lookup in the vtable constructor.
22832
22833 2014-02-07 Jeff Law <law@redhat.com>
22834
22835 PR target/40977
22836 * config/m68k/m68k.md (ashldi_extsi): Turn into a
22837 define_insn_and_split.
22838
22839 * ipa-inline.c (inline_small_functions): Fix typos.
22840
22841 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22842
22843 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
22844 (s390_can_use_return_insn): Declare.
22845 * config/s390/s390.h (EPILOGUE_USES): Define.
22846 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
22847 instructions.
22848 (s390_chunkify_start): Handle return JUMP_LABELs.
22849 (s390_early_mach): Emit a main_pool instruction on the entry edge.
22850 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
22851 (s390_can_use_return_insn): New functions.
22852 (s390_fix_long_loop_prediction): Handle conditional returns.
22853 (TARGET_SET_UP_BY_PROLOGUE): Define.
22854 * config/s390/s390.md (ANY_RETURN): New code iterator.
22855 (*creturn, *csimple_return, return, simple_return): New patterns.
22856
22857 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22858
22859 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
22860 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
22861 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
22862 REG_CFA_RESTORE list when deciding not to restore a register.
22863
22864 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22865
22866 * config/s390/s390.c: Include tree-pass.h and context.h.
22867 (s390_early_mach): New function, split out from...
22868 (s390_emit_prologue): ...here.
22869 (pass_data_s390_early_mach): New pass structure.
22870 (pass_s390_early_mach): New class.
22871 (s390_option_override): Create and register early_mach pass.
22872 Move to end of file.
22873
22874 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22875
22876 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
22877 to match for the exit block.
22878
22879 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22880
22881 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
22882 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
22883 Reject misaligned operands.
22884
22885 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22886
22887 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
22888
22889 2014-02-07 Richard Biener <rguenther@suse.de>
22890
22891 PR middle-end/60092
22892 * gimple-low.c (lower_builtin_posix_memalign): New function.
22893 (lower_stmt): Call it to lower posix_memalign in a way
22894 to make alignment info accessible.
22895
22896 2014-02-07 Jakub Jelinek <jakub@redhat.com>
22897
22898 PR c++/60082
22899 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
22900 __builtin_setjmp_receiver.
22901
22902 2014-02-07 Richard Biener <rguenther@suse.de>
22903
22904 PR middle-end/60092
22905 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
22906 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
22907 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22908 Handle BUILT_IN_POSIX_MEMALIGN.
22909 (find_func_clobbers): Likewise.
22910 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22911 (call_may_clobber_ref_p_1): Likewise.
22912
22913 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22914
22915 PR ipa/59918
22916 * ipa-devirt.c (record_target_from_binfo): Remove overactive
22917 sanity check.
22918
22919 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22920
22921 PR ipa/59469
22922 * lto-cgraph.c (lto_output_node): Use
22923 symtab_get_symbol_partitioning_class.
22924 (lto_output_varpool_node): likewise.
22925 (symtab_get_symbol_partitioning_class): Move here from
22926 lto/lto-partition.c
22927 * cgraph.h (symbol_partitioning_class): Likewise.
22928 (symtab_get_symbol_partitioning_class): Declare.
22929
22930 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22931
22932 * ggc.h (ggc_internal_cleared_alloc): New macro.
22933 * vec.h (vec_safe_copy): Handle memory stats.
22934 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
22935 * target-globals.c (save_target_globals): Likewise.
22936
22937 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22938
22939 PR target/60077
22940 * expr.c (emit_move_resolve_push): Export; be bit more selective
22941 on when to clear alias set.
22942 * expr.h (emit_move_resolve_push): Declare.
22943 * function.h (struct function): Add tail_call_marked.
22944 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
22945 * config/i386/i386-protos.h (ix86_expand_push): Remove.
22946 * config/i386/i386.md (TImode move expander): De not call
22947 ix86_expand_push.
22948 (FP push expanders): Preserve memory attributes.
22949 * config/i386/sse.md (push<mode>1): Remove.
22950 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
22951 (ix86_expand_push): Remove.
22952 * config/i386/mmx.md (push<mode>1): Remove.
22953
22954 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22955
22956 PR rtl-optimization/60030
22957 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
22958 lopart with paradoxical subreg before shifting it up by hprec.
22959
22960 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22961
22962 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
22963 Remove extra newline at end of file.
22964 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
22965 (arm_issue_rate): Handle cortexa57.
22966 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
22967 (cortex-a57.cortex-a53): Likewise.
22968
22969 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22970
22971 PR target/59575
22972 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
22973 don't record in REG_FRAME_RELATED_EXPR registers not set in that
22974 bitmask.
22975 (arm_expand_prologue): Adjust all callers.
22976 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
22977 info, registers also at the lowest numbered registers side. Use
22978 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
22979 XEXP.
22980
22981 PR debug/59992
22982 * var-tracking.c (adjust_mems): Before adding a SET to
22983 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
22984
22985 2014-02-06 Alan Modra <amodra@gmail.com>
22986
22987 PR target/60032
22988 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
22989 change SDmode to DDmode when lra_in_progress.
22990
22991 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22992
22993 PR middle-end/59150
22994 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
22995 free_data_ref on the dr first, and before goto again also set dr
22996 to the next dr. For simd_lane_access, free old datarefs[i] before
22997 overwriting it. For get_vectype_for_scalar_type failure, don't
22998 free_data_ref if simd_lane_access.
22999
23000 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23001
23002 PR target/60062
23003 * tree.h (opts_for_fn): New inline function.
23004 (opt_for_fn): Define.
23005 * config/i386/i386.c (ix86_function_regparm): Use
23006 opt_for_fn (decl, optimize) instead of optimize.
23007
23008 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23009
23010 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23011 for SYMBOL_REF in large memory model.
23012
23013 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23014
23015 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23016 and crypto support.
23017 (cortex-a57): Likewise.
23018 (cortex-a57.cortex-a53): Likewise.
23019
23020 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23021 Kugan Vivekanandarajah <kuganv@linaro.org>
23022
23023 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23024 unaligned_access.
23025 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23026
23027 2014-02-06 Richard Biener <rguenther@suse.de>
23028
23029 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23030 set_loop_copy and initialize_original_copy_tables.
23031
23032 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23033
23034 * config/aarch64/aarch64-simd.md
23035 (aarch64_ashr_simddi): Change QI to SI.
23036
23037 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23038 Jakub Jelinek <jakub@redhat.com>
23039
23040 PR middle-end/60013
23041 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23042 of the dataflow.
23043
23044 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23045
23046 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23047 CODE_FOR_altivec_vpku[hw]um to
23048 CODE_FOR_altivec_vpku[hw]um_direct.
23049 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23050 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23051 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23052 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23053
23054 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23055
23056 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23057 generation for -maltivec=be.
23058 (altivec_vsumsws): Simplify redundant test.
23059
23060 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23061
23062 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23063 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23064 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23065 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23066 gen_altivec_vpkuwum.
23067 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23068 BYTES_BIG_ENDIAN.
23069 (altivec_vpks<VI_char>ss): Likewise.
23070 (altivec_vpks<VI_char>us): Likewise.
23071 (altivec_vpku<VI_char>us): Likewise.
23072 (altivec_vpku<VI_char>um): Likewise.
23073 (altivec_vpku<VI_char>um_direct): New (copy of
23074 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23075 internal use).
23076 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23077 target is little endian and -maltivec=be is not specified.
23078 (*altivec_vupkhs<VU_char>_direct): New (copy of
23079 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23080 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23081 target is little endian and -maltivec=be is not specified.
23082 (*altivec_vupkls<VU_char>_direct): New (copy of
23083 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23084 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23085 little endian and -maltivec=be is not specified.
23086 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23087 little endian and -maltivec=be is not specified.
23088
23089 2014-02-05 Richard Henderson <rth@redhat.com>
23090
23091 PR debug/52727
23092 * combine-stack-adj.c: Revert r206943.
23093 * sched-int.h (struct deps_desc): Add last_args_size.
23094 * sched-deps.c (init_deps): Initialize it.
23095 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23096 contain REG_ARGS_SIZE notes.
23097
23098 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23099
23100 * lto-cgraph.c (asm_nodes_output): Make global.
23101 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23102 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23103 (driver_handle_option): Handle OPT_fwpa.
23104
23105 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23106
23107 PR ipa/59947
23108 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23109 a comment typo and formatting issue. If odr_hash hasn't been
23110 created, return vNULL and set *completep to false.
23111
23112 PR middle-end/57499
23113 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23114 bb with no successors.
23115
23116 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23117
23118 PR target/59718
23119 * doc/invoke.texi (-march): Clarify documentation for ARM.
23120 (-mtune): Likewise.
23121 (-mcpu): Likewise.
23122
23123 2014-02-05 Richard Biener <rguenther@suse.de>
23124
23125 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23126 when not vectorizing because of too many alias checks.
23127 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23128 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23129
23130 2014-02-05 Nick Clifton <nickc@redhat.com>
23131
23132 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23133 accept extended registers in any mode when compiling for the MN10300.
23134
23135 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23136
23137 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23138 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23139 sanitization attributes.
23140 (can_inline_edge_p): Likewise.
23141 (sanitize_attrs_match_for_inline_p): New function.
23142
23143 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23144
23145 * ipa-prop.c (detect_type_change): Shor circuit testing of
23146 type changes on THIS pointer.
23147
23148 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23149
23150 PR target/59777
23151 * config/pa/pa.c (legitimize_tls_address): Return original address
23152 if not passed a SYMBOL_REF rtx.
23153 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23154 addresses.
23155 (pa_emit_move_sequence): Simplify TLS source operands.
23156 (pa_legitimate_constant_p): Reject all TLS constants.
23157 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23158 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23159
23160 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23161
23162 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23163 groups when we know they are controlled by LTO.
23164 * varasm.c (default_binds_local_p_1): If object is in other partition,
23165 it will be resolved locally.
23166
23167 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23168
23169 * config/host-linux.c (linux_gt_pch_use_address): Don't
23170 use SSIZE_MAX because it is not always defined.
23171
23172 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23173
23174 PR bootstrap/59913
23175 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23176 threshold for pseudo splitting.
23177 (update_ebb_live_info): Process call argument hard registers and
23178 hard registers from insn definition too.
23179 (max_small_class_regs_num): New constant.
23180 (inherit_in_ebb): Update live hard regs through EBBs. Update
23181 reloads_num only for small register classes. Don't split for
23182 outputs of jumps.
23183
23184 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23185
23186 PR ipa/60058
23187 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23188 is non-null.
23189
23190 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23191
23192 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23193 visibility is safe.
23194
23195 2014-02-04 Marek Polacek <polacek@redhat.com>
23196
23197 * gdbinit.in (pel): Define.
23198
23199 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23200
23201 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23202 behavior.
23203
23204 2014-02-04 Richard Biener <rguenther@suse.de>
23205
23206 PR lto/59723
23207 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23208 in function context local.
23209 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23210 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23211 similar to LTO_imported_decl_ref.
23212
23213 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23214
23215 PR tree-optimization/60002
23216 * cgraphclones.c (build_function_decl_skip_args): Clear
23217 DECL_LANG_SPECIFIC.
23218
23219 PR tree-optimization/60023
23220 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23221 false to gsi_replace.
23222 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23223 has been in some EH region and vec_stmt could throw, add
23224 vec_stmt into the same EH region.
23225 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23226 has no lhs, ignore it.
23227 * internal-fn.c (expand_MASK_LOAD): Likewise.
23228
23229 PR ipa/60026
23230 * tree-inline.c (copy_forbidden): Fail for
23231 __attribute__((optimize (0))) functions.
23232
23233 PR other/58712
23234 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23235 is set, copy one less argument.
23236 (expand_simd_clones): Don't subtract clone_info->inbranch
23237 from simd_clone_struct_alloc argument.
23238
23239 PR rtl-optimization/57915
23240 * recog.c (simplify_while_replacing): If all unary/binary/relational
23241 operation arguments are constant, attempt to simplify those.
23242
23243 PR middle-end/59261
23244 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23245 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23246
23247 2014-02-04 Richard Biener <rguenther@suse.de>
23248
23249 PR tree-optimization/60012
23250 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23251 TBAA disambiguation to all DDRs.
23252
23253 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23254
23255 PR target/59788
23256 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23257 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23258
23259 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23260
23261 PR ipa/59882
23262 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23263
23264 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23265
23266 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23267 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23268
23269 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23270
23271 PR ipa/59831
23272 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23273 to figure out targets of polymorphic calls with known decl.
23274 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23275 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23276 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23277 (get_polymorphic_call_info): ... here.
23278 (get_polymorphic_call_info_from_invariant): New function.
23279
23280 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23281
23282 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23283 lookup via vtable pointer; check for type consistency
23284 and turn inconsitent facts into UNREACHABLE.
23285 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23286 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23287 type inconsistent querries; return UNREACHABLE instead.
23288
23289 2014-02-03 Richard Henderson <rth@twiddle.net>
23290
23291 PR tree-opt/59924
23292 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23293 already processed this node.
23294 (normalize_one_pred_1): Pass along mark_set.
23295 (normalize_one_pred): Create and destroy a pointer_set_t.
23296 (normalize_one_pred_chain): Likewise.
23297
23298 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23299
23300 PR gcov-profile/58602
23301 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23302
23303 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23304
23305 PR ipa/59831
23306 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23307 -fno-devirtualize; try to devirtualize by the knowledge of
23308 virtual table pointer given by aggregate propagation.
23309 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23310 (ipa_print_node_jump_functions): Dump also offset that
23311 is relevant for polymorphic calls.
23312 (determine_known_aggregate_parts): Add arg_type parameter; use it
23313 instead of determining the type from pointer type.
23314 (ipa_compute_jump_functions_for_edge): Update call of
23315 determine_known_aggregate_parts.
23316 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23317 (gimple_get_virt_method_for_binfo): ... here; simplify using
23318 vtable_pointer_value_to_vtable.
23319 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23320 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23321 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23322 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23323 POINTER_PLUS_EXPR.
23324 (vtable_pointer_value_to_binfo): ... here.
23325 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23326
23327 2014-02-03 Teresa Johnson <tejohnson@google.com>
23328
23329 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23330 redef of outer loop index variable.
23331
23332 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23333
23334 PR c++/53017
23335 PR c++/59211
23336 * doc/extend.texi (Function Attributes): Typo.
23337
23338 2014-02-03 Cong Hou <congh@google.com>
23339
23340 PR tree-optimization/60000
23341 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23342 if the vectorized statement is a store. A store statement can only
23343 appear at the end of pattern statements.
23344
23345 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23346
23347 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23348 (ix86_option_override_internal): Default long double to 64-bit for
23349 32-bit Bionic and to 128-bit for 64-bit Bionic.
23350
23351 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23352 TARGET_LONG_DOUBLE_128 is true.
23353 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23354
23355 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23356 (mlong-double-64): Negate -mlong-double-128.
23357 (mlong-double-128): New option.
23358
23359 * config/i386/i386-c.c (ix86_target_macros): Define
23360 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23361
23362 * doc/invoke.texi: Document -mlong-double-128.
23363
23364 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23365
23366 PR rtl-optimization/60024
23367 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23368
23369 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23370
23371 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23372
23373 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23374
23375 PR rtl-optimization/57662
23376 * sel-sched.c (code_motion_path_driver): Do not mark already not
23377 existing blocks in the visiting bitmap.
23378
23379 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23380
23381 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23382 on the insn being emitted.
23383
23384 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23385 Will Deacon <will.deacon@arm.com>
23386
23387 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23388
23389 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23390
23391 * config/arm/arm-tables.opt: Regenerate.
23392
23393 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23394
23395 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23396 for vector types other than V16QImode.
23397 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23398 define_expand, and call altivec_expand_vec_perm_le when producing
23399 code with little endian element order.
23400 (*altivec_vperm_<mode>_internal): New insn having previous
23401 behavior of altivec_vperm_<mode>.
23402 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23403 altivec_expand_vec_perm_le when producing code with little endian
23404 element order.
23405 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23406 behavior of altivec_vperm_<mode>_uns.
23407
23408 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23409
23410 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23411 (altivec_vsumsws): Add handling for -maltivec=be with a little
23412 endian target.
23413 (altivec_vsumsws_direct): New.
23414 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23415 gen_altivec_vsumsws.
23416
23417 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23418
23419 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23420 vtable_pointer_value_to_binfo): New functions.
23421 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23422 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23423
23424 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23425
23426 * config/nios2/nios2.md (load_got_register): Initialize GOT
23427 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23428 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23429
23430 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23431
23432 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23433 preserverd by passthrough, do not propagate the type.
23434
23435 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23436
23437 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23438 (mips_atomic_assign_expand_fenv): New function.
23439 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23440
23441 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23442
23443 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23444 (__builtin_mips_set_fcsr): Likewise.
23445 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23446 MIPS_USI_FTYPE_VOID.
23447 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23448 (mips16_expand_set_fcsr): Likewise.
23449 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23450 (mips16_set_fcsr_stub): Likewise.
23451 (mips16_get_fcsr_one_only_stub): New class.
23452 (mips16_set_fcsr_one_only_stub): Likewise.
23453 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23454 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23455 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23456 (hard_float): New availability predicate.
23457 (mips_builtins): Add get_fcsr and set_fcsr.
23458 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23459 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23460 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23461 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23462 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23463 patterns.
23464
23465 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23466
23467 * config/mips/mips.c (mips_one_only_stub): New class.
23468 (mips_need_mips16_rdhwr_p): Replace with...
23469 (mips16_rdhwr_stub): ...this new variable.
23470 (mips16_stub_call_address): New function.
23471 (mips16_rdhwr_one_only_stub): New class.
23472 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23473 (mips_output_mips16_rdhwr): Delete.
23474 (mips_finish_stub): New function.
23475 (mips_code_end): Use it to handle rdhwr stubs.
23476
23477 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23478
23479 PR target/60017
23480 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23481 when calculating size of integer atomic types.
23482
23483 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23484
23485 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23486
23487 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23488
23489 PR tree-optimization/60003
23490 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23491 * profile.c (branch_prob): Use gimple_call_builtin_p
23492 to check for BUILT_IN_SETJMP_RECEIVER.
23493 * tree-inline.c (copy_bb): Call notice_special_calls.
23494
23495 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23496
23497 PR bootstrap/59985
23498 * lra-constraints.c (process_alt_operands): Update reload_sum only
23499 on the first pass.
23500
23501 2014-01-31 Richard Henderson <rth@redhat.com>
23502
23503 PR middle-end/60004
23504 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23505 until after else_eh is processed.
23506
23507 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23508
23509 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23510 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23511 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23512 in smmintrin.h, remove them.
23513 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23514 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23515 * config/i386/i386.md (ROUND_SAE): Fix value.
23516 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23517 (const48_operand): New.
23518 * config/i386/subst.md (round), (round_expand): Use
23519 const_4_or_8_to_11_operand.
23520 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23521
23522 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23523
23524 * config/i386/constraints.md (Yk): Swap meaning with k.
23525 * config/i386/i386.md (movhi_internal): Change Yk to k.
23526 (movqi_internal): Ditto.
23527 (*k<logic><mode>): Ditto.
23528 (*andhi_1): Ditto.
23529 (*andqi_1): Ditto.
23530 (kandn<mode>): Ditto.
23531 (*<code>hi_1): Ditto.
23532 (*<code>qi_1): Ditto.
23533 (kxnor<mode>): Ditto.
23534 (kortestzhi): Ditto.
23535 (kortestchi): Ditto.
23536 (kunpckhi): Ditto.
23537 (*one_cmplhi2_1): Ditto.
23538 (*one_cmplqi2_1): Ditto.
23539 * config/i386/sse.md (): Change k to Yk.
23540 (avx512f_load<mode>_mask): Ditto.
23541 (avx512f_blendm<mode>): Ditto.
23542 (avx512f_store<mode>_mask): Ditto.
23543 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23544 (avx512f_storedqu<mode>_mask): Ditto.
23545 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23546 Ditto.
23547 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23548 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23549 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23550 (avx512f_maskcmp<mode>3): Ditto.
23551 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23552 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23553 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23554 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23555 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23556 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23557 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23558 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23559 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23560 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23561 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23562 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23563 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23564 (vec_extract_lo_<mode>_maskm): Ditto.
23565 (vec_extract_hi_<mode>_maskm): Ditto.
23566 (avx512f_vternlog<mode>_mask): Ditto.
23567 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23568 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23569 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23570 (avx512f_<code>v8div16qi2_mask): Ditto.
23571 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23572 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23573 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23574 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23575 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23576 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23577 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23578 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23579 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23580 (avx512cd_maskb_vec_dupv8di): Ditto.
23581 (avx512cd_maskw_vec_dupv16si): Ditto.
23582 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23583 (avx512f_vpermi2var<mode>3_mask): Ditto.
23584 (avx512f_vpermi2var<mode>3_mask): Ditto.
23585 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23586 (*avx512f_gathersi<mode>): Ditto.
23587 (*avx512f_gathersi<mode>_2): Ditto.
23588 (*avx512f_gatherdi<mode>): Ditto.
23589 (*avx512f_gatherdi<mode>_2): Ditto.
23590 (*avx512f_scattersi<mode>): Ditto.
23591 (*avx512f_scatterdi<mode>): Ditto.
23592 (avx512f_compress<mode>_mask): Ditto.
23593 (avx512f_compressstore<mode>_mask): Ditto.
23594 (avx512f_expand<mode>_mask): Ditto.
23595 * config/i386/subst.md (mask): Change k to Yk.
23596 (mask_scalar_merge): Ditto.
23597 (sd): Ditto.
23598
23599 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
23600
23601 * doc/extend.texi (Vector Extensions): Document ?: in C++.
23602
23603 2014-01-31 Richard Biener <rguenther@suse.de>
23604
23605 PR middle-end/59990
23606 * builtins.c (fold_builtin_memory_op): Make sure to not
23607 use a floating-point mode or a boolean or enumeral type for
23608 the copy operation.
23609
23610 2014-01-30 DJ Delorie <dj@redhat.com>
23611
23612 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
23613 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
23614 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
23615 whenever main() has an epilogue.
23616
23617 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23618
23619 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
23620 unused variable "field".
23621 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
23622 (vsx_mergeh_<mode>): Likewise.
23623 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
23624 (altivec_vmrghh): Likewise.
23625 (altivec_vmrghw): Likewise.
23626 (altivec_vmrglb): Likewise.
23627 (altivec_vmrglh): Likewise.
23628 (altivec_vmrglw): Likewise.
23629 (altivec_vspltb): Add missing uses.
23630 (altivec_vsplth): Likewise.
23631 (altivec_vspltw): Likewise.
23632 (altivec_vspltsf): Likewise.
23633
23634 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23635
23636 PR target/59923
23637 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
23638 frame related instructions.
23639
23640 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
23641
23642 PR rtl-optimization/59959
23643 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
23644 any reload of register whose subreg is invalid.
23645
23646 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23647
23648 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
23649 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
23650 Add missing return type - void.
23651
23652 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23653
23654 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
23655 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
23656 remove element index adjustment for endian (now handled in vsx.md
23657 and altivec.md).
23658 (altivec_expand_vec_perm_const): Use
23659 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
23660 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
23661 (vsx_xxspltw_<mode>): Adjust element index for little endian.
23662 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
23663 define_expand and a new define_insn *altivec_vspltb_internal;
23664 adjust for -maltivec=be on a little endian target.
23665 (altivec_vspltb_direct): New.
23666 (altivec_vsplth): Divide into a define_expand and a new
23667 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
23668 little endian target.
23669 (altivec_vsplth_direct): New.
23670 (altivec_vspltw): Divide into a define_expand and a new
23671 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
23672 little endian target.
23673 (altivec_vspltw_direct): New.
23674 (altivec_vspltsf): Divide into a define_expand and a new
23675 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
23676 a little endian target.
23677
23678 2014-01-30 Richard Biener <rguenther@suse.de>
23679
23680 PR tree-optimization/59993
23681 * tree-ssa-forwprop.c (associate_pointerplus): Check we
23682 can propagate form the earlier stmt and avoid the transform
23683 when the intermediate result is needed.
23684
23685 2014-01-30 Alangi Derick <alangiderick@gmail.com>
23686
23687 * README.Portability: Fix typo.
23688
23689 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
23690
23691 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
23692 comparison_operator with ordered_comparison_operator.
23693
23694 2014-01-30 Nick Clifton <nickc@redhat.com>
23695
23696 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
23697 Rename to mn10300_store_multiple_regs.
23698 * config/mn10300/mn10300.c: Likewise.
23699 * config/mn10300/mn10300.md (store_movm): Fix typo: call
23700 store_multiple_regs.
23701 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
23702 Call mn10300_store_multiple_regs.
23703
23704 2014-01-30 Nick Clifton <nickc@redhat.com>
23705 DJ Delorie <dj@redhat.com>
23706
23707 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
23708 %fp 2 to keep registers after it properly word-aligned.
23709 (rl78_alloc_physical_registers_umul): Handle the case where both
23710 input operands are the same.
23711
23712 2014-01-30 Richard Biener <rguenther@suse.de>
23713
23714 PR tree-optimization/59903
23715 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
23716 check properly.
23717
23718 2014-01-30 Jason Merrill <jason@redhat.com>
23719
23720 PR c++/59633
23721 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
23722
23723 PR c++/59645
23724 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
23725
23726 2014-01-30 Richard Biener <rguenther@suse.de>
23727
23728 PR tree-optimization/59951
23729 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
23730
23731 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
23732
23733 PR target/59784
23734 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
23735 SFmode to DFmode case.
23736
23737 2014-01-29 DJ Delorie <dj@redhat.com>
23738
23739 * config/msp430/msp430.opt (-minrt): New.
23740 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
23741 if -minrt given.
23742 (ENDFILE_SPEC): Likewise.
23743
23744 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
23745
23746 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
23747 (estimate_function_body_sizes): Use it.
23748
23749 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
23750
23751 PR c++/58561
23752 * dwarf2out.c (is_cxx_auto): New.
23753 (is_base_type): Use it.
23754 (gen_type_die_with_usage): Likewise.
23755
23756 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23757
23758 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
23759 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
23760 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
23761 -maltivec=be with LE targets.
23762 (vsx_mergeh_<mode>): Likewise.
23763 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
23764 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
23765 (altivec_vmrghb): Replace with define_expand and new
23766 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
23767 (altivec_vmrghb_direct): New define_insn.
23768 (altivec_vmrghh): Replace with define_expand and new
23769 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
23770 (altivec_vmrghh_direct): New define_insn.
23771 (altivec_vmrghw): Replace with define_expand and new
23772 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
23773 (altivec_vmrghw_direct): New define_insn.
23774 (*altivec_vmrghsf): Adjust for endianness.
23775 (altivec_vmrglb): Replace with define_expand and new
23776 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
23777 (altivec_vmrglb_direct): New define_insn.
23778 (altivec_vmrglh): Replace with define_expand and new
23779 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
23780 (altivec_vmrglh_direct): New define_insn.
23781 (altivec_vmrglw): Replace with define_expand and new
23782 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
23783 (altivec_vmrglw_direct): New define_insn.
23784 (*altivec_vmrglsf): Adjust for endianness.
23785 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23786 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23787 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23788 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23789 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23790 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23791 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23792 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23793
23794 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
23795
23796 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
23797 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
23798 whitespace.
23799
23800 2014-01-29 Richard Biener <rguenther@suse.de>
23801
23802 PR tree-optimization/58742
23803 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
23804 associate_pointerplus_align.
23805 (associate_pointerplus_diff): New function.
23806 (associate_pointerplus): Likewise. Call associate_pointerplus_align
23807 and associate_pointerplus_diff.
23808
23809 2014-01-29 Richard Biener <rguenther@suse.de>
23810
23811 * lto-streamer.h (LTO_major_version): Bump to 3.
23812 (LTO_minor_version): Reset to 0.
23813
23814 2014-01-29 Renlin Li <Renlin.Li@arm.com>
23815
23816 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
23817 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
23818 (arm_file_start): Generate correct asm header for armv7ve.
23819 * config/arm/bpabi.h: Add multilib support for armv7ve.
23820 * config/arm/driver-arm.c: Change the architectures of cortex-a7
23821 and cortex-a15 to armv7ve.
23822 * config/arm/t-aprofile: Add multilib support for armv7ve.
23823 * doc/invoke.texi: Document -march=armv7ve.
23824
23825 2014-01-29 Richard Biener <rguenther@suse.de>
23826
23827 PR tree-optimization/58742
23828 * tree-ssa-forwprop.c (associate_plusminus): Return true
23829 if we changed sth, defer EH cleanup to ...
23830 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
23831 (simplify_mult): New function.
23832
23833 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23834
23835 PR middle-end/59917
23836 PR tree-optimization/59920
23837 * tree.c (build_common_builtin_nodes): Remove
23838 __builtin_setjmp_dispatcher initialization.
23839 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
23840 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
23841 instead of gsi_after_labels + manually skipping debug stmts.
23842 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
23843 ignore bbs with IFN_ABNORMAL_DISPATCHER.
23844 * tree-inline.c (copy_edges_for_bb): Remove
23845 can_make_abnormal_goto argument, instead add abnormal_goto_dest
23846 argument. Ignore computed_goto_p stmts. Don't call
23847 make_abnormal_goto_edges. If a call might need abnormal edges
23848 for non-local gotos, see if it already has an edge to
23849 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
23850 with true argument, don't do anything then, otherwise add
23851 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
23852 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
23853 caller.
23854 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
23855 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
23856 (lower_stmt): Don't set data->calls_builtin_setjmp.
23857 (lower_builtin_setjmp): Adjust comment.
23858 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
23859 * tree-cfg.c (found_computed_goto): Remove.
23860 (factor_computed_gotos): Remove.
23861 (make_goto_expr_edges): Return bool, true for computed gotos.
23862 Don't call make_abnormal_goto_edges.
23863 (build_gimple_cfg): Don't set found_computed_goto, don't call
23864 factor_computed_gotos.
23865 (computed_goto_p): No longer static.
23866 (make_blocks): Don't set found_computed_goto.
23867 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
23868 (make_edges): If make_goto_expr_edges returns true, push bb
23869 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
23870 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
23871 vector. Record mapping between bbs and OpenMP regions if there
23872 are any, adjust make_gimple_omp_edges caller. Call
23873 handle_abnormal_edges.
23874 (make_abnormal_goto_edges): Remove.
23875 * tree-cfg.h (make_abnormal_goto_edges): Remove.
23876 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
23877 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
23878 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
23879 * internal-fn.def (ABNORMAL_DISPATCHER): New.
23880 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
23881 filling *region also set *region_idx to (*region)->entry->index.
23882
23883 PR other/58712
23884 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
23885 For REGs set ORIGINAL_REGNO.
23886
23887 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
23888
23889 * doc/md.texi: Mention that a target shouldn't implement
23890 vec_widen_(s|u)mul_even/odd pair if it is less efficient
23891 than hi/lo pair.
23892
23893 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23894
23895 PR tree-optimization/59594
23896 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
23897 a copy of the datarefs vector rather than the vector itself.
23898
23899 2014-01-28 Jason Merrill <jason@redhat.com>
23900
23901 PR c++/53756
23902 * dwarf2out.c (auto_die): New static.
23903 (gen_type_die_with_usage): Handle C++1y 'auto'.
23904 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
23905 on definition.
23906
23907 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
23908
23909 PR target/59672
23910 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
23911 (SPEC_X32): Likewise.
23912 (SPEC_64): Likewise.
23913 * config/i386/i386.c (ix86_option_override_internal): Turn off
23914 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
23915 for TARGET_16BIT.
23916 (x86_file_start): Output .code16gcc for TARGET_16BIT.
23917 * config/i386/i386.h (TARGET_16BIT): New macro.
23918 (TARGET_16BIT_P): Likewise.
23919 * config/i386/i386.opt: Add m16.
23920 * doc/invoke.texi: Document -m16.
23921
23922 2014-01-28 Jakub Jelinek <jakub@redhat.com>
23923
23924 PR preprocessor/59935
23925 * input.c (location_get_source_line): Bail out on when line number
23926 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
23927
23928 2014-01-28 Richard Biener <rguenther@suse.de>
23929
23930 PR tree-optimization/58742
23931 * tree-ssa-forwprop.c (associate_plusminus): Handle
23932 pointer subtraction of the form (T)(P + A) - (T)P.
23933
23934 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23935
23936 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
23937 at const_int_cost.
23938
23939 2014-01-28 Richard Biener <rguenther@suse.de>
23940
23941 Revert
23942 2014-01-28 Richard Biener <rguenther@suse.de>
23943
23944 PR rtl-optimization/45364
23945 PR rtl-optimization/59890
23946 * var-tracking.c (local_get_addr_clear_given_value): Handle
23947 already cleared slot.
23948 (val_reset): Handle not allocated local_get_addr_cache.
23949 (vt_find_locations): Use post-order on the inverted CFG.
23950
23951 2014-01-28 Richard Biener <rguenther@suse.de>
23952
23953 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
23954
23955 2014-01-28 Richard Biener <rguenther@suse.de>
23956
23957 PR rtl-optimization/45364
23958 PR rtl-optimization/59890
23959 * var-tracking.c (local_get_addr_clear_given_value): Handle
23960 already cleared slot.
23961 (val_reset): Handle not allocated local_get_addr_cache.
23962 (vt_find_locations): Use post-order on the inverted CFG.
23963
23964 2014-01-28 Alan Modra <amodra@gmail.com>
23965
23966 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
23967 * configure.ac <recursive call for build != host>: Define
23968 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
23969 and LD_FOR_BUILD too.
23970 * configure: Regenerate.
23971
23972 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
23973
23974 * config/i386/i386.c (get_builtin_code_for_version): Separate
23975 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
23976 Broadwell from Haswell.
23977
23978 2014-01-27 Steve Ellcey <sellcey@mips.com>
23979
23980 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23981 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
23982 * config/mips/mips.c (mips_option_override): Change setting
23983 of TARGET_DSP.
23984 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
23985 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
23986 Change from Mask to Var.
23987
23988 2014-01-27 Jeff Law <law@redhat.com>
23989
23990 * ipa-inline.c (inline_small_functions): Fix typo.
23991
23992 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
23993
23994 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
23995 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
23996 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
23997 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
23998 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
23999 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24000 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24001 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24002 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24003 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24004 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24005 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24006 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24007 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24008 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24009 (_mm512_storeu_epi64): Ditto.
24010 (_mm512_cmpge_epi32_mask): Ditto.
24011 (_mm512_cmpge_epu32_mask): Ditto.
24012 (_mm512_cmpge_epi64_mask): Ditto.
24013 (_mm512_cmpge_epu64_mask): Ditto.
24014 (_mm512_cmple_epi32_mask): Ditto.
24015 (_mm512_cmple_epu32_mask): Ditto.
24016 (_mm512_cmple_epi64_mask): Ditto.
24017 (_mm512_cmple_epu64_mask): Ditto.
24018 (_mm512_cmplt_epi32_mask): Ditto.
24019 (_mm512_cmplt_epu32_mask): Ditto.
24020 (_mm512_cmplt_epi64_mask): Ditto.
24021 (_mm512_cmplt_epu64_mask): Ditto.
24022 (_mm512_cmpneq_epi32_mask): Ditto.
24023 (_mm512_cmpneq_epu32_mask): Ditto.
24024 (_mm512_cmpneq_epi64_mask): Ditto.
24025 (_mm512_cmpneq_epu64_mask): Ditto.
24026 (_mm512_expand_pd): Ditto.
24027 (_mm512_expand_ps): Ditto.
24028 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24029 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24030 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24031 * config/i386/i386.c (ix86_builtins): Add
24032 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24033 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24034 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24035 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24036 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24037 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24038 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24039 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24040 IX86_BUILTIN_PMOVUSQW512_MEM.
24041 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24042 __builtin_ia32_pmovsqd512mem_mask,
24043 __builtin_ia32_pmovqd512mem_mask,
24044 __builtin_ia32_pmovusqw512mem_mask,
24045 __builtin_ia32_pmovsqw512mem_mask,
24046 __builtin_ia32_pmovqw512mem_mask,
24047 __builtin_ia32_pmovusdw512mem_mask,
24048 __builtin_ia32_pmovsdw512mem_mask,
24049 __builtin_ia32_pmovdw512mem_mask,
24050 __builtin_ia32_pmovqb512mem_mask,
24051 __builtin_ia32_pmovusqb512mem_mask,
24052 __builtin_ia32_pmovsqb512mem_mask,
24053 __builtin_ia32_pmovusdb512mem_mask,
24054 __builtin_ia32_pmovsdb512mem_mask,
24055 __builtin_ia32_pmovdb512mem_mask.
24056 (bdesc_args): Add __builtin_ia32_expanddf512,
24057 __builtin_ia32_expandsf512.
24058 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24059 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24060 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24061 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24062 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24063 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24064 (avx512f_<code>v8div16qi2_mask_store): This.
24065 (avx512f_expand<mode>): New.
24066
24067 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24068
24069 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24070 New.
24071 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24072 (_mm512_prefetch_i32scatter_pd): Ditto.
24073 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24074 (_mm512_prefetch_i64scatter_pd): Ditto.
24075 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24076 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24077 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24078 (_mm512_prefetch_i32scatter_ps): Ditto.
24079 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24080 (_mm512_prefetch_i64scatter_ps): Ditto.
24081 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24082 * config/i386/i386-builtin-types.def: Define
24083 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24084 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24085 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24086 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24087 IX86_BUILTIN_SCATTERPFQPD.
24088 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24089 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24090 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24091 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24092 __builtin_ia32_scatterpfqps.
24093 (ix86_expand_builtin): Expand new built-ins.
24094 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24095 fix memory access data type.
24096 (*avx512pf_gatherpf<mode>_mask): Ditto.
24097 (*avx512pf_gatherpf<mode>): Ditto.
24098 (avx512pf_scatterpf<mode>): Ditto.
24099 (*avx512pf_scatterpf<mode>_mask): Ditto.
24100 (*avx512pf_scatterpf<mode>): Ditto.
24101 (GATHER_SCATTER_SF_MEM_MODE): New.
24102 (avx512pf_gatherpf<mode>df): Ditto.
24103 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24104 (*avx512pf_scatterpf<mode>df): Ditto.
24105
24106 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24107
24108 PR bootstrap/59934
24109 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24110 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24111 reached.
24112
24113 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24114
24115 * common/config/arm/arm-common.c
24116 (arm_rewrite_mcpu): Handle multiple names.
24117 * config/arm/arm.h
24118 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24119
24120 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24121
24122 * gimple-builder.h (create_gimple_tmp): Delete.
24123
24124 2014-01-27 Christian Bruel <christian.bruel@st.com>
24125
24126 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24127 words comparisons.
24128
24129 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24130
24131 * config/pa/pa.md (call): Generate indirect long calls to non-local
24132 functions when outputing 32-bit code.
24133 (call_value): Likewise except for special call to buggy powf function.
24134
24135 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24136 portable runtime and PIC indirect calls.
24137 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24138 and PIC call sequences. Use ldo instead of blr to set return register
24139 in PIC call sequence.
24140
24141 2014-01-25 Walter Lee <walt@tilera.com>
24142
24143 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24144 avoid clobbering a live register.
24145
24146 2014-01-25 Walter Lee <walt@tilera.com>
24147
24148 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24149 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24150 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24151 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24152
24153 2014-01-25 Walter Lee <walt@tilera.com>
24154
24155 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24156 arguments on even registers.
24157 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24158 STACK_BOUNDARY.
24159 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24160 (BIGGEST_ALIGNMENT): Ditto.
24161 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24162
24163 2014-01-25 Walter Lee <walt@tilera.com>
24164
24165 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24166 insns before bundling.
24167 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24168
24169 2014-01-25 Walter Lee <walt@tilera.com>
24170
24171 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24172 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24173 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24174
24175 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24176
24177 * config/mips/constraints.md (kl): Delete.
24178 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24179 define expands, using...
24180 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24181 instructions for MIPS16.
24182 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24183 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24184
24185 2014-01-25 Walter Lee <walt@tilera.com>
24186
24187 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24188 (clzdi2): Ditto.
24189 (ffsdi2): Ditto.
24190
24191 2014-01-25 Walter Lee <walt@tilera.com>
24192
24193 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24194 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24195
24196 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24197
24198 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24199 Handle XOR.
24200
24201 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24202
24203 * print-rtl.c (in_call_function_usage): New var.
24204 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24205 EXPR_LIST mode as mode and not as reg note name.
24206
24207 PR middle-end/59561
24208 * cfgloopmanip.c (copy_loop_info): If
24209 loop->warned_aggressive_loop_optimizations, make sure
24210 the flag is set in target loop too.
24211
24212 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24213
24214 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24215 flag_cilkplus.
24216 * builtins.def: Likewise.
24217 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24218 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24219 * ira.c (ira_setup_eliminable_regset): Likewise.
24220 * omp-low.c (gate_expand_omp): Likewise.
24221 (execute_lower_omp): Likewise.
24222 (diagnose_sb_0): Likewise.
24223 (gate_diagnose_omp_blocks): Likewise.
24224 (simd_clone_clauses_extract): Likewise.
24225 (gate): Likewise.
24226
24227 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24228
24229 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24230 correction for little endian...
24231 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24232 here.
24233
24234 2014-01-24 Jeff Law <law@redhat.com>
24235
24236 PR tree-optimization/59919
24237 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24238 for non-returning calls.
24239
24240 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24241
24242 * common/config/aarch64/aarch64-common.c
24243 (aarch64_rewrite_mcpu): Handle multiple names.
24244 * config/aarch64/aarch64.h
24245 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24246
24247 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24248
24249 * input.c (add_file_to_cache_tab): Handle the case where fopen
24250 returns NULL.
24251
24252 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24253
24254 PR target/59929
24255 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24256 from push operand if code of push isn't PRE_DEC.
24257
24258 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24259
24260 PR target/59909
24261 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24262 -mquad-memory-atomic. Update -mquad-memory documentation to say
24263 it is only used for non-atomic loads/stores.
24264
24265 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24266 -mquad-memory or -mquad-memory-atomic switches.
24267
24268 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24269 -mquad-memory-atomic to ISA 2.07 support.
24270
24271 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24272 to separate support of normal quad word memory operations (ldq, stq)
24273 from the atomic quad word memory operations.
24274
24275 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24276 support to separate non-atomic quad word operations from atomic
24277 quad word operations. Disable non-atomic quad word operations in
24278 little endian mode so that we don't have to swap words after the
24279 load and before the store.
24280 (quad_load_store_p): Add comment about atomic quad word support.
24281 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24282 options printed with -mdebug=reg.
24283
24284 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24285 -mquad-memory-atomic as the test for whether we have quad word
24286 atomic instructions.
24287 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24288 or -mp8-vector are used, allow byte/half-word atomic operations.
24289
24290 * config/rs6000/sync.md (load_lockedti): Insure that the address
24291 is a proper indexed or indirect address for the lqarx instruction.
24292 On little endian systems, swap the hi/lo registers after the lqarx
24293 instruction.
24294 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24295 insure the address is valid for the lqarx instruction.
24296 (store_conditionalti): Insure that the address is a proper indexed
24297 or indirect address for the stqcrx. instruction. On little endian
24298 systems, swap the hi/lo registers before doing the stqcrx.
24299 instruction.
24300 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24301 insure the address is valid for the stqcrx. instruction.
24302
24303 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24304 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24305 type of quad memory support is available.
24306
24307 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24308
24309 PR regression/59915
24310 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24311 there is a danger of looping.
24312
24313 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24314
24315 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24316 force flag_ira_loop_pressure if set via command line.
24317
24318 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24319
24320 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24321 (ashr_simd): New builtin handling DI mode.
24322 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24323 (aarch64_sshr_simddi): New match pattern.
24324 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24325 (vshrd_n_s64): Likewise.
24326 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24327
24328 2014-01-23 Nick Clifton <nickc@redhat.com>
24329
24330 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24331 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24332 favour of mcu specific scripts.
24333 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24334 430x multilibs.
24335
24336 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24337 Alex Velenko <Alex.Velenko@arm.com>
24338
24339 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24340 (vaddv_s16): Likewise.
24341 (vaddv_s32): Likewise.
24342 (vaddv_u8): Likewise.
24343 (vaddv_u16): Likewise.
24344 (vaddv_u32): Likewise.
24345 (vaddvq_s8): Likewise.
24346 (vaddvq_s16): Likewise.
24347 (vaddvq_s32): Likewise.
24348 (vaddvq_s64): Likewise.
24349 (vaddvq_u8): Likewise.
24350 (vaddvq_u16): Likewise.
24351 (vaddvq_u32): Likewise.
24352 (vaddvq_u64): Likewise.
24353 (vaddv_f32): Likewise.
24354 (vaddvq_f32): Likewise.
24355 (vaddvq_f64): Likewise.
24356 (vmaxv_f32): Likewise.
24357 (vmaxv_s8): Likewise.
24358 (vmaxv_s16): Likewise.
24359 (vmaxv_s32): Likewise.
24360 (vmaxv_u8): Likewise.
24361 (vmaxv_u16): Likewise.
24362 (vmaxv_u32): Likewise.
24363 (vmaxvq_f32): Likewise.
24364 (vmaxvq_f64): Likewise.
24365 (vmaxvq_s8): Likewise.
24366 (vmaxvq_s16): Likewise.
24367 (vmaxvq_s32): Likewise.
24368 (vmaxvq_u8): Likewise.
24369 (vmaxvq_u16): Likewise.
24370 (vmaxvq_u32): Likewise.
24371 (vmaxnmv_f32): Likewise.
24372 (vmaxnmvq_f32): Likewise.
24373 (vmaxnmvq_f64): Likewise.
24374 (vminv_f32): Likewise.
24375 (vminv_s8): Likewise.
24376 (vminv_s16): Likewise.
24377 (vminv_s32): Likewise.
24378 (vminv_u8): Likewise.
24379 (vminv_u16): Likewise.
24380 (vminv_u32): Likewise.
24381 (vminvq_f32): Likewise.
24382 (vminvq_f64): Likewise.
24383 (vminvq_s8): Likewise.
24384 (vminvq_s16): Likewise.
24385 (vminvq_s32): Likewise.
24386 (vminvq_u8): Likewise.
24387 (vminvq_u16): Likewise.
24388 (vminvq_u32): Likewise.
24389 (vminnmv_f32): Likewise.
24390 (vminnmvq_f32): Likewise.
24391 (vminnmvq_f64): Likewise.
24392
24393 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24394
24395 * config/aarch64/aarch64-simd.md
24396 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24397 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24398 (*aarch64_mul3_elt<mode>): Likewise.
24399 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24400 (*aarch64_mul3_elt_to_64v2df): Likewise.
24401 (*aarch64_mla_elt<mode>): Likewise.
24402 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24403 (*aarch64_mls_elt<mode>): Likewise.
24404 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24405 (*aarch64_fma4_elt<mode>): Likewise.
24406 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24407 (*aarch64_fma4_elt_to_64v2df): Likewise.
24408 (*aarch64_fnma4_elt<mode>): Likewise.
24409 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24410 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24411 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24412 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24413 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24414 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24415 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24416 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24417 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24418
24419 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24420
24421 * config/aarch64/aarch64-simd.md
24422 (aarch64_be_checked_get_lane<mode>): New define_expand.
24423 * config/aarch64/aarch64-simd-builtins.def
24424 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24425 New builtin definition.
24426 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24427 Use new safe be builtin.
24428
24429 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24430
24431 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24432 New define_insn.
24433 (aarch64_be_st1<mode>): Likewise.
24434 (aarch_ld1<VALL:mode>): Define_expand modified.
24435 (aarch_st1<VALL:mode>): Likewise.
24436 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24437 (UNSPEC_ST1): Likewise.
24438
24439 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24440
24441 * config/microblaze/microblaze.md: Add trap insn and attribute
24442
24443 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24444
24445 PR preprocessor/58580
24446 * input.h (location_get_source_line): Take an additional line_size
24447 parameter.
24448 (void diagnostics_file_cache_fini): Declare new function.
24449 * input.c (struct fcache): New type.
24450 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24451 New static constants.
24452 (diagnostic_file_cache_init, total_lines_num)
24453 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24454 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24455 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24456 (get_next_line, read_next_line, goto_next_line, read_line_num):
24457 New static function definitions.
24458 (diagnostic_file_cache_fini): New function.
24459 (location_get_source_line): Take an additional output line_len
24460 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24461 read_line_num.
24462 * diagnostic.c (diagnostic_finish): Call
24463 diagnostic_file_cache_fini.
24464 (adjust_line): Take an additional input parameter for the length
24465 of the line, rather than calculating it with strlen.
24466 (diagnostic_show_locus): Adjust the use of
24467 location_get_source_line and adjust_line with respect to their new
24468 signature. While displaying a line now, do not stop at the first
24469 null byte. Rather, display the zero byte as a space and keep
24470 going until we reach the size of the line.
24471 * Makefile.in: Add vec.o to OBJS-libcommon
24472
24473 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24474 Ilya Tocar <ilya.tocar@intel.com>
24475
24476 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24477 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24478 (__builtin_ia32_kmov16): Ditto.
24479 * config/i386/i386.md (UNSPEC_KMOV): New.
24480 (kmovw): Ditto.
24481
24482 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24483
24484 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24485 (_mm512_storeu_si512): Ditto.
24486
24487 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24488
24489 PR target/52125
24490 * rtl.h (get_referenced_operands): Declare.
24491 * recog.c (get_referenced_operands): New function.
24492 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24493 operands have been referenced when recording LO_SUM references.
24494
24495 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24496
24497 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24498
24499 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24500
24501 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24502 Enable for generic and recent AMD targets.
24503
24504 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24505
24506 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24507 ARG_SIZE note when adjustment was eliminated.
24508
24509 2014-01-22 Jeff Law <law@redhat.com>
24510
24511 PR tree-optimization/59597
24512 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24513 in file. Accept new argument REGISTERING and use it to modify
24514 dump output appropriately.
24515 (register_jump_thread): Corresponding changes.
24516 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24517 thread paths involving joiner blocks. Add code to dump cancelled
24518 jump threading paths.
24519
24520 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24521
24522 PR rtl-optimization/59477
24523 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24524 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24525
24526 2014-01-22 Tom Tromey <tromey@redhat.com>
24527
24528 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24529 PARAMS.
24530 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24531
24532 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24533
24534 PR rtl-optimization/59896
24535 * lra-constraints.c (process_alt_operands): Check unused note for
24536 matched operands of insn with no output reloads.
24537
24538 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24539
24540 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24541 (mips_move_from_gpr_cost): Likewise.
24542
24543 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24544
24545 PR rtl-optimization/59858
24546 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24547 ira_class_hard_regs_num.
24548 (process_alt_operands): Increase reject for dying matched operand.
24549
24550 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24551
24552 PR target/59003
24553 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24554 smaller than size, perform several stores or loads and stores
24555 at dst + count - size to store or copy all of size bytes, rather
24556 than just last modesize bytes.
24557
24558 2014-01-20 DJ Delorie <dj@redhat.com>
24559
24560 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24561 that CLOBBERs are REGs before propogating their values.
24562
24563 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24564
24565 PR middle-end/59789
24566 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24567 (cgraph_inline_failed_type): New function.
24568 * cgraph.h (DEFCIFCODE): Add type.
24569 (cgraph_inline_failed_type_t): New enum.
24570 (cgraph_inline_failed_type): New prototype.
24571 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24572 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24573 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24574 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24575 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24576 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24577 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24578 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24579 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24580 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24581 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24582 OPTIMIZATION_MISMATCH.
24583 * tree-inline.c (expand_call_inline): Emit errors during
24584 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24585
24586 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24587
24588 PR target/59685
24589 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24590 mode attribute in insn output.
24591
24592 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24593
24594 * output.h (output_constant): Delete.
24595 * varasm.c (output_constant): Make private.
24596
24597 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24598
24599 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
24600
24601 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24602
24603 PR middle-end/59860
24604 * tree.h (fold_builtin_strcat): New prototype.
24605 * builtins.c (fold_builtin_strcat): No longer static. Add len
24606 argument, if non-NULL, don't call c_strlen. Optimize
24607 directly into __builtin_memcpy instead of __builtin_strcpy.
24608 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24609 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
24610
24611 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24612
24613 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24614 for SImode_address_operand operands, having only a REG argument.
24615
24616 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
24617
24618 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
24619 loader name using mbig-endian.
24620 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
24621
24622 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24623
24624 * doc/invoke.texi (-march): Clarify documentation for AArch64.
24625 (-mtune): Likewise.
24626 (-mcpu): Likewise.
24627
24628 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
24629
24630 * config/aarch64/aarch64-protos.h
24631 (aarch64_cannot_change_mode_class_ptr): Declare.
24632 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
24633 aarch64_cannot_change_mode_class_ptr): New.
24634 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
24635 backend hook aarch64_cannot_change_mode_class.
24636
24637 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24638
24639 * common/config/aarch64/aarch64-common.c
24640 (aarch64_handle_option): Don't handle any option order logic here.
24641 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
24642 selected_cpu, warn on architecture version mismatch.
24643 (aarch64_override_options): Fix parsing order for option strings.
24644
24645 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24646 Iain Sandoe <iain@codesourcery.com>
24647
24648 PR bootstrap/59496
24649 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
24650 warning. Amend comment to reflect current functionality.
24651
24652 2014-01-20 Richard Biener <rguenther@suse.de>
24653
24654 PR middle-end/59860
24655 * builtins.c (fold_builtin_strcat): Remove case better handled
24656 by tree-ssa-strlen.c.
24657
24658 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
24659
24660 * config/aarch64/aarch64.opt
24661 (mcpu, march, mtune): Make case-insensitive.
24662
24663 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24664
24665 PR target/59880
24666 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24667 if operands[1] is a REG or ZERO_EXTEND of a REG.
24668
24669 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
24670
24671 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
24672
24673 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
24674
24675 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
24676 long non-pic millicode calls.
24677
24678 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24679
24680 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
24681
24682 2014-01-19 Kito Cheng <kito@0xlab.org>
24683
24684 * builtins.c (expand_movstr): Check movstr expand done or fail.
24685
24686 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24687 H.J. Lu <hongjiu.lu@intel.com>
24688
24689 PR target/59379
24690 * config/i386/i386.md (*lea<mode>): Zero-extend return register
24691 to DImode for zero-extended addresses.
24692
24693 2014-01-19 Jakub Jelinek <jakub@redhat.com>
24694
24695 PR rtl-optimization/57763
24696 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
24697 on the new indirect jump_insn and increment LABEL_NUSES (label).
24698
24699 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
24700
24701 PR bootstrap/59580
24702 PR bootstrap/59583
24703 * config.gcc (x86_archs): New variable.
24704 (x86_64_archs): Likewise.
24705 (x86_cpus): Likewise.
24706 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
24707 --with-arch/--with-cpu= options.
24708 Support --with-arch=/--with-cpu={nehalem,westmere,
24709 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
24710
24711 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24712
24713 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
24714 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
24715
24716 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24717
24718 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
24719
24720 2014-01-18 Jakub Jelinek <jakub@redhat.com>
24721
24722 PR target/58944
24723 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
24724 clear cpp_get_options (parse_in)->warn_unused_macros for
24725 ix86_target_macros_internal with cpp_define.
24726
24727 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
24728
24729 * jump.c (delete_related_insns): Keep (use (insn))s.
24730 * reorg.c (redundant_insn): Check for barriers too.
24731
24732 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24733
24734 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
24735
24736 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
24737
24738 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
24739 call to $$dyncall when TARGET_LONG_CALLS is true.
24740
24741 2014-01-17 Jeff Law <law@redhat.com>
24742
24743 * ree.c (combine_set_extension): Temporarily disable test for
24744 changing number of hard registers.
24745
24746 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24747
24748 PR middle-end/58125
24749 * ipa-inline-analysis.c (inline_free_summary):
24750 Do not free summary of aliases.
24751
24752 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24753
24754 PR middle-end/59706
24755 * gimplify.c (gimplify_expr): Use create_tmp_var
24756 instead of create_tmp_var_raw. If cond doesn't have
24757 integral type, don't add the IFN_ANNOTATE builtin at all.
24758
24759 2014-01-17 Martin Jambor <mjambor@suse.cz>
24760
24761 PR ipa/59736
24762 * ipa-cp.c (prev_edge_clone): New variable.
24763 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
24764 Also resize prev_edge_clone vector.
24765 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
24766 (ipcp_edge_removal_hook): New function.
24767 (ipcp_driver): Register ipcp_edge_removal_hook.
24768
24769 2014-01-17 Andrew Pinski <apinski@cavium.com>
24770 Steve Ellcey <sellcey@mips.com>
24771
24772 PR target/59462
24773 * config/mips/mips.c (mips_print_operand): Check operand mode instead
24774 of operator mode.
24775
24776 2014-01-17 Jeff Law <law@redhat.com>
24777
24778 PR middle-end/57904
24779 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
24780 so that pass_ccp runs first.
24781
24782 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24783
24784 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
24785 (ix86_adjust_cost): Use !TARGET_XXX.
24786 (do_reorder_for_imul): Likewise.
24787 (swap_top_of_ready_list): Likewise.
24788 (ix86_sched_reorder): Likewise.
24789
24790 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24791
24792 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24793 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
24794 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
24795 (intel_memset): New. Duplicate slm_memset.
24796 (intel_cost): New. Duplicate slm_cost.
24797 (m_INTEL): New macro.
24798 (processor_target_table): Add "intel".
24799 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
24800 with PROCESSOR_INTEL for "intel".
24801 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
24802 PROCESSOR_SILVERMONT.
24803 (ix86_issue_rate): Likewise.
24804 (ix86_adjust_cost): Likewise.
24805 (ia32_multipass_dfa_lookahead): Likewise.
24806 (swap_top_of_ready_list): Likewise.
24807 (ix86_sched_reorder): Likewise.
24808 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
24809 instead of TARGET_OPT_AGU.
24810 * config/i386/i386.h (TARGET_INTEL): New.
24811 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
24812 (processor_type): Add PROCESSOR_INTEL.
24813 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
24814 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
24815
24816 2014-01-17 Marek Polacek <polacek@redhat.com>
24817
24818 PR c/58346
24819 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
24820 size is zero.
24821
24822 2014-01-17 Richard Biener <rguenther@suse.de>
24823
24824 PR tree-optimization/46590
24825 * opts.c (default_options_table): Add entries for
24826 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
24827 all enabled at -O1 but not for -Og.
24828 * common.opt (fbranch-count-reg): Remove Init(1).
24829 (fmove-loop-invariants): Likewise.
24830 (ftree-pta): Likewise.
24831
24832 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24833
24834 * config/i386/i386.c (ix86_data_alignment): For compatibility with
24835 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
24836 decls to at least the GCC 4.8 used alignments.
24837
24838 PR fortran/59440
24839 * tree-nested.c (convert_nonlocal_reference_stmt,
24840 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
24841 of GIMPLE_BIND stmts, adjust associated decls.
24842
24843 2014-01-17 Richard Biener <rguenther@suse.de>
24844
24845 PR tree-optimization/46590
24846 * vec.h (vec<>::bseach): New member function implementing
24847 binary search according to C89 bsearch.
24848 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
24849 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
24850 bitmap pointer again. Make accesses_in_loop a flat array.
24851 (mem_ref_obstack): New global.
24852 (outermost_indep_loop): Adjust for mem_ref->stored changes.
24853 (mark_ref_stored): Likewise.
24854 (ref_indep_loop_p_2): Likewise.
24855 (set_ref_stored_in_loop): New helper function.
24856 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
24857 (memref_free): Adjust.
24858 (record_mem_ref_loc): Simplify.
24859 (gather_mem_refs_stmt): Adjust.
24860 (sort_locs_in_loop_postorder_cmp): New function.
24861 (analyze_memory_references): Sort accesses_in_loop after
24862 loop postorder number.
24863 (find_ref_loc_in_loop_cmp): New function.
24864 (for_all_locs_in_loop): Find relevant cluster of locs in
24865 accesses_in_loop and iterate without recursion.
24866 (execute_sm): Avoid uninit warning.
24867 (struct ref_always_accessed): Simplify.
24868 (ref_always_accessed::operator ()): Likewise.
24869 (ref_always_accessed_p): Likewise.
24870 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
24871 loop postorder numbers here.
24872 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
24873 numbers.
24874
24875 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24876
24877 PR c++/57945
24878 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
24879 on decls for which assemble_alias has been called.
24880
24881 2014-01-17 Nick Clifton <nickc@redhat.com>
24882
24883 * config/msp430/msp430.opt: (mcpu): New option.
24884 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
24885 (msp430_option_override): Parse target_cpu. If the MCU name
24886 matches a generic string, clear target_mcu.
24887 (msp430_attr): Allow numeric interrupt values up to 63.
24888 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
24889 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
24890 option.
24891 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
24892 Add mcpu matches.
24893 * config/msp430/msp430.md (popm): Use %J rather than %I.
24894 (addsi3): Use msp430_nonimmediate_operand for operand 2.
24895 (addhi_cy_i): Use immediate_operand for operand 2.
24896 * doc/invoke.texi: Document -mcpu option.
24897
24898 2014-01-17 Richard Biener <rguenther@suse.de>
24899
24900 PR rtl-optimization/38518
24901 * df.h (df_analyze_loop): Declare.
24902 * df-core.c: Include cfgloop.h.
24903 (df_analyze_1): Split out main part of df_analyze.
24904 (df_analyze): Adjust.
24905 (loop_inverted_post_order_compute): New function.
24906 (loop_post_order_compute): Likewise.
24907 (df_analyze_loop): New function avoiding whole-function
24908 postorder computes.
24909 * loop-invariant.c (find_defs): Use df_analyze_loop.
24910 (find_invariants): Adjust.
24911 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
24912
24913 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
24914
24915 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
24916 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
24917
24918 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
24919
24920 * ipa-ref.c (ipa_remove_stmt_references): Fix references
24921 traversal when removing references.
24922
24923 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
24924
24925 PR ipa/59775
24926 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
24927
24928 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
24929
24930 PR middle-end/56791
24931 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
24932 pushing a reload for an autoinc when we had previously reloaded an
24933 inner part of the address.
24934
24935 2014-01-16 Jakub Jelinek <jakub@redhat.com>
24936
24937 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
24938 field.
24939 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
24940 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
24941 when not giving up or versioning for alias only because of
24942 loop->safelen.
24943 (vect_analyze_data_ref_dependences): Set to true.
24944 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
24945 is a GIMPLE_PHI.
24946 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
24947 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
24948 to the condition.
24949
24950 PR middle-end/58344
24951 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
24952
24953 PR target/59839
24954 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
24955 operand 0 predicate for gathers, use a new pseudo as subtarget.
24956
24957 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24958
24959 PR middle-end/59609
24960 * lra-constraints.c (process_alt_operands): Add printing debug info.
24961 Check absence of input/output reloads for matched operands too.
24962
24963 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24964
24965 PR rtl-optimization/59835
24966 * ira.c (ira_init_register_move_cost): Increase cost for
24967 impossible modes.
24968
24969 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
24970
24971 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
24972
24973 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
24974
24975 PR target/59780
24976 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
24977 non-register objects. Use gen_(high/low)part more consistently.
24978 Fix assertions.
24979
24980 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
24981
24982 PR target/59844
24983 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
24984 endian support, remove tests for WORDS_BIG_ENDIAN.
24985 (p8_mfvsrd_3_<mode>): Likewise.
24986 (reload_gpr_from_vsx<mode>): Likewise.
24987 (reload_gpr_from_vsxsf): Likewise.
24988 (p8_mfvsrd_4_disf): Likewise.
24989
24990 2014-01-16 Richard Biener <rguenther@suse.de>
24991
24992 PR rtl-optimization/46590
24993 * lcm.c (compute_antinout_edge): Use postorder iteration.
24994 (compute_laterin): Use inverted postorder iteration.
24995
24996 2014-01-16 Nick Clifton <nickc@redhat.com>
24997
24998 PR middle-end/28865
24999 * varasm.c (output_constant): Return the number of bytes actually
25000 emitted.
25001 (output_constructor_array_range): Update the field size with the
25002 number of bytes emitted by output_constant.
25003 (output_constructor_regular_field): Likewise. Also do not
25004 complain if the total number of bytes emitted is now greater
25005 than the expected fieldpos.
25006 * output.h (output_constant): Update prototype and descriptive comment.
25007
25008 2014-01-16 Marek Polacek <polacek@redhat.com>
25009
25010 PR middle-end/59827
25011 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25012 it is error_mark_node.
25013
25014 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25015
25016 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25017 VALID_AVX256_REG_OR_OI_MODE.
25018
25019 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25020
25021 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25022 current procedure should be profiled.
25023
25024 2014-01-15 Andrew Pinski <apinski@cavium.com>
25025
25026 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25027 of moving from/to the STACK_REG register class.
25028
25029 2014-01-15 Richard Henderson <rth@redhat.com>
25030
25031 PR debug/54694
25032 * reginfo.c (global_regs_decl): Globalize.
25033 * rtl.h (global_regs_decl): Declare.
25034 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25035 reserved via global_regs.
25036
25037 2014-01-15 Teresa Johnson <tejohnson@google.com>
25038
25039 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25040
25041 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25042
25043 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25044 and vmulosh rather than call gen_vec_widen_smult_*.
25045 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25046 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25047 (vec_widen_smult_even_v16qi): Likewise.
25048 (vec_widen_umult_even_v8hi): Likewise.
25049 (vec_widen_smult_even_v8hi): Likewise.
25050 (vec_widen_umult_odd_v16qi): Likewise.
25051 (vec_widen_smult_odd_v16qi): Likewise.
25052 (vec_widen_umult_odd_v8hi): Likewise.
25053 (vec_widen_smult_odd_v8hi): Likewise.
25054 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25055 vmuloub rather than call gen_vec_widen_umult_*.
25056 (vec_widen_umult_lo_v16qi): Likewise.
25057 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25058 vmulosb rather than call gen_vec_widen_smult_*.
25059 (vec_widen_smult_lo_v16qi): Likewise.
25060 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25061 rather than call gen_vec_widen_umult_*.
25062 (vec_widen_umult_lo_v8hi): Likewise.
25063 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25064 rather than call gen_vec_widen_smult_*.
25065 (vec_widen_smult_lo_v8hi): Likewise.
25066
25067 2014-01-15 Jeff Law <law@redhat.com>
25068
25069 PR tree-optimization/59747
25070 * ree.c (find_and_remove_re): Properly handle case where a second
25071 eliminated extension requires widening a copy created for elimination
25072 of a prior extension.
25073 (combine_set_extension): Ensure that the number of hard regs needed
25074 for a destination register does not change when we widen it.
25075
25076 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25077
25078 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25079 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25080 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25081 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25082 (avr-*-rtems*): Likewise.
25083 (bfin*-rtems*): Likewise.
25084 (moxie-*-rtems*): Likewise.
25085 (h8300-*-rtems*): Likewise.
25086 (i[34567]86-*-rtems*): Likewise.
25087 (lm32-*-rtems*): Likewise.
25088 (m32r-*-rtems*): Likewise.
25089 (m68k-*-rtems*): Likewise.
25090 (microblaze*-*-rtems*): Likewise.
25091 (mips*-*-rtems*): Likewise.
25092 (powerpc-*-rtems*): Likewise.
25093 (sh-*-rtems*): Likewise.
25094 (sparc-*-rtems*): Likewise.
25095 (sparc64-*-rtems*): Likewise.
25096 (v850-*-rtems*): Likewise.
25097 (m32c-*-rtems*): Likewise.
25098
25099 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25100
25101 PR rtl-optimization/59511
25102 * ira.c (ira_init_register_move_cost): Use memory costs for some
25103 cases of register move cost calculations.
25104 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25105 instead of BB frequency.
25106 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25107 * lra-assigns.c (find_hard_regno_for): Ditto.
25108
25109 2014-01-15 Richard Biener <rguenther@suse.de>
25110
25111 PR tree-optimization/59822
25112 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25113 (vectorizable_load): Use it to hoist defs of uses of invariant
25114 loads out of the loop.
25115
25116 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25117 Kugan Vivekanandarajah <kuganv@linaro.org>
25118
25119 PR target/59695
25120 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25121 truncation.
25122
25123 2014-01-15 Richard Biener <rguenther@suse.de>
25124
25125 PR rtl-optimization/59802
25126 * lcm.c (compute_available): Use inverted postorder to seed
25127 the initial worklist.
25128
25129 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25130
25131 PR target/59803
25132 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25133 ADDR_REGS for invalid symrefs in non-PIC code.
25134
25135 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25136
25137 PR other/58712
25138 * builtins.c (determine_block_size): Initialize *probable_max_size
25139 even if len_rtx is CONST_INT.
25140
25141 2014-01-14 Andrew Pinski <apinski@cavium.com>
25142
25143 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25144 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25145 (cortexa53_tunings): Likewise.
25146 (aarch64_sched_issue_rate): New function.
25147 (TARGET_SCHED_ISSUE_RATE): Define.
25148
25149 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25150
25151 * ira-costs.c (find_costs_and_classes): Add missed
25152 ira_init_register_move_cost_if_necessary.
25153
25154 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25155
25156 PR target/59787
25157 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25158
25159 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25160
25161 PR target/59794
25162 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25163 to indicate if type is used for function return value. Warn ABI
25164 change if the vector mode isn't available for function return value.
25165 (ix86_function_arg_advance): Pass false to type_natural_mode.
25166 (ix86_function_arg): Likewise.
25167 (ix86_gimplify_va_arg): Likewise.
25168 (function_arg_32): Don't warn ABI change.
25169 (ix86_function_value): Pass true to type_natural_mode.
25170 (ix86_return_in_memory): Likewise.
25171 (ix86_struct_value_rtx): Removed.
25172 (TARGET_STRUCT_VALUE_RTX): Likewise.
25173
25174 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25175
25176 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25177 converting a conditional jump into a conditional return.
25178
25179 2014-01-14 Richard Biener <rguenther@suse.de>
25180
25181 PR tree-optimization/58921
25182 PR tree-optimization/59006
25183 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25184 hoisting invariant stmts.
25185 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25186 invariant loads on the preheader edge if possible.
25187
25188 2014-01-14 Joey Ye <joey.ye@arm.com>
25189
25190 * doc/plugin.texi (Building GCC plugins): Update to C++.
25191
25192 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25193
25194 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25195 (_mm_rcp28_round_ss): Ditto.
25196 (_mm_rsqrt28_round_sd): Ditto.
25197 (_mm_rsqrt28_round_ss): Ditto.
25198 (_mm_rcp28_sd): Ditto.
25199 (_mm_rcp28_ss): Ditto.
25200 (_mm_rsqrt28_sd): Ditto.
25201 (_mm_rsqrt28_ss): Ditto.
25202 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25203 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25204 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25205 (IX86_BUILTIN_RCP28SD): Ditto.
25206 (IX86_BUILTIN_RCP28SS): Ditto.
25207 (IX86_BUILTIN_RSQRT28SD): Ditto.
25208 (IX86_BUILTIN_RSQRT28SS): Ditto.
25209 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25210 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25211 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25212 (ix86_expand_special_args_builtin): Expand new FTYPE.
25213 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25214 (srcp14<mode>): Make insn unary.
25215 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25216 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25217 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25218 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25219 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25220 Fix rounding: make it SAE only.
25221 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25222 Ditto.
25223 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25224 Ditto.
25225 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25226 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25227 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25228 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25229 (round_saeonly_mask_scalar_operand4): Ditto.
25230 (round_saeonly_mask_scalar_op3): Ditto.
25231 (round_saeonly_mask_scalar_op4): Ditto.
25232
25233 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25234
25235 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25236 Implement -maltivec=be for vec_insert and vec_extract.
25237
25238 2014-01-10 DJ Delorie <dj@redhat.com>
25239
25240 * config/msp430/msp430.md (call_internal): Don't allow memory
25241 references with SP as the base register.
25242 (call_value_internal): Likewise.
25243 * config/msp430/constraints.md (Yc): New. For memory references
25244 that don't use SP as a base register.
25245
25246 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25247 "an integer without a # prefix"
25248 * config/msp430/msp430.md (epilogue_helper): Use it.
25249
25250 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25251
25252 PR target/59617
25253 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25254 AVX512F gather builtins.
25255 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25256 on gather decls with INTEGER_TYPE masktype.
25257 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25258 directly into the builtin rather than hoisting it before loop.
25259
25260 PR tree-optimization/59387
25261 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25262 (scev_const_prop): If folded_casts and type has undefined overflow,
25263 use force_gimple_operand instead of force_gimple_operand_gsi and
25264 for each added stmt if it is assign with
25265 arith_code_with_undefined_signed_overflow, call
25266 rewrite_to_defined_overflow.
25267 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25268 gimple-fold.h instead.
25269 (arith_code_with_undefined_signed_overflow,
25270 rewrite_to_defined_overflow): Moved to ...
25271 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25272 rewrite_to_defined_overflow): ... here. No longer static.
25273 Include gimplify-me.h.
25274 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25275 rewrite_to_defined_overflow): New prototypes.
25276
25277 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25278
25279 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25280
25281 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25282
25283 * builtins.c (get_object_alignment_2): Minor tweak.
25284 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25285
25286 2014-01-13 Christian Bruel <christian.bruel@st.com>
25287
25288 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25289 optimized non constant lengths.
25290
25291 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25292
25293 PR libgomp/59194
25294 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25295 load as __atomic_load_N if possible.
25296
25297 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25298
25299 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25300 target parameter.
25301 (rs6000_expand_builtin): Adjust call.
25302
25303 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25304
25305 PR target/58115
25306 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25307 * config/rs6000/rs6000.c: Include target-globals.h.
25308 (rs6000_set_current_function): Instead of doing target_reinit
25309 unconditionally, use save_target_globals_default_opts and
25310 restore_target_globals.
25311
25312 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25313 FPSCR.
25314 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25315 (rs6000_expand_builtin): Handle mffs and mtfsf.
25316 (rs6000_init_builtins): Define mffs and mtfsf.
25317 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25318 (rs6000_mffs): New pattern.
25319 (rs6000_mtfsf): New pattern.
25320
25321 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25322
25323 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25324 Start narrowing with START. Apply candidate-use pair
25325 and check overall cost in narrowing.
25326 (iv_ca_prune): Pass new argument.
25327
25328 2014-01-10 Jeff Law <law@redhat.com>
25329
25330 PR middle-end/59743
25331 * ree.c (combine_reaching_defs): Ensure the defining statement
25332 occurs before the extension when optimizing extensions with
25333 different source and destination hard registers.
25334
25335 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25336
25337 PR ipa/58585
25338 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25339 vtables into the type inheritance graph.
25340
25341 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25342
25343 PR rtl-optimization/59754
25344 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25345 modes in the REGNO != REGNO case.
25346
25347 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25348
25349 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25350
25351 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25352
25353 PR tree-optimization/59745
25354 * tree-predcom.c (tree_predictive_commoning_loop): Call
25355 free_affine_expand_cache if giving up because components is NULL.
25356
25357 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25358 GC in payload of target_globals struct instead of allocating them on
25359 the heap and the larger structs separately using GC.
25360 * target-globals.h (struct target_globals): Make regs, hard_regs,
25361 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25362 of GTY((skip)) and change type to void *.
25363 (reset_target_globals): Cast loads from those fields to corresponding
25364 types.
25365
25366 2014-01-10 Steve Ellcey <sellcey@mips.com>
25367
25368 PR plugins/59335
25369 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25370 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25371 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25372
25373 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25374
25375 PR target/59744
25376 * aarch64-modes.def (CC_Zmode): New flags mode.
25377 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25378 represents an equality.
25379 (aarch64_get_condition_code): Handle CC_Zmode.
25380 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25381
25382 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25383
25384 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25385 extraction in good case.
25386
25387 2014-01-10 Richard Biener <rguenther@suse.de>
25388
25389 PR tree-optimization/59374
25390 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25391 checking after SLP discovery. Mark stmts not participating
25392 in any SLP instance properly.
25393
25394 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25395
25396 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25397 when handling a SET rtx.
25398
25399 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25400
25401 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25402 (cortex-a57): Likewise.
25403 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25404
25405 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25406
25407 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25408 non-iwmmxt builtins.
25409
25410 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25411
25412 PR ipa/58252
25413 PR ipa/59226
25414 * ipa-devirt.c record_target_from_binfo): Take as argument
25415 stack of binfos and lookup matching one for virtual inheritance.
25416 (possible_polymorphic_call_targets_1): Update.
25417
25418 2014-01-10 Huacai Chen <chenhc@lemote.com>
25419
25420 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25421 kernel strings for Loongson-2E/2F/3A.
25422
25423 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25424
25425 PR middle-end/59670
25426 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25427 is_gimple_call before calling gimple_call_internal_p.
25428
25429 2014-01-09 Steve Ellcey <sellcey@mips.com>
25430
25431 * Makefile.in (TREE_FLOW_H): Remove.
25432 (TREE_SSA_H): Add file names from tree-flow.h.
25433 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25434 * tree.h: Remove tree-flow.h reference.
25435 * hash-table.h: Remove tree-flow.h reference.
25436 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25437 reference with tree-ssa-loop.h.
25438
25439 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25440
25441 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25442 default element-order behavior for -maltivec.
25443 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25445 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25446 when targeting big endian, at least for now.
25447 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25448
25449 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25450
25451 PR middle-end/47735
25452 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25453 var satisfies use_register_for_decl, just take into account type
25454 alignment, rather than decl alignment.
25455
25456 PR tree-optimization/59622
25457 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25458 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25459 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25460 Don't devirtualize for inplace at all. For targets.length () == 1,
25461 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25462
25463 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25464
25465 * config/i386/i386.md (cpu): Remove the unused btver1.
25466
25467 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25468
25469 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25470
25471 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25472
25473 PR target/58115
25474 * tree-core.h (struct target_globals): New forward declaration.
25475 (struct tree_target_option): Add globals field.
25476 * tree.h (TREE_TARGET_GLOBALS): Define.
25477 (prepare_target_option_nodes_for_pch): New prototype.
25478 * target-globals.h (struct target_globals): Define even if
25479 !SWITCHABLE_TARGET.
25480 * tree.c (prepare_target_option_node_for_pch,
25481 prepare_target_option_nodes_for_pch): New functions.
25482 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25483 * config/i386/i386.c: Include target-globals.h.
25484 (ix86_set_current_function): Instead of doing target_reinit
25485 unconditionally, use save_target_globals_default_opts and
25486 restore_target_globals.
25487
25488 2014-01-09 Richard Biener <rguenther@suse.de>
25489
25490 PR tree-optimization/59715
25491 * tree-cfg.h (split_critical_edges): Declare.
25492 * tree-cfg.c (split_critical_edges): Export.
25493 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25494
25495 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25496
25497 * cfgexpand.c (expand_stack_vars): Optionally disable
25498 asan stack protection.
25499 (expand_used_vars): Likewise.
25500 (partition_stack_vars): Likewise.
25501 * asan.c (asan_emit_stack_protection): Optionally disable
25502 after return stack usage.
25503 (instrument_derefs): Optionally disable memory access instrumentation.
25504 (instrument_builtin_call): Likewise.
25505 (instrument_strlen_call): Likewise.
25506 (asan_protect_global): Optionally disable global variables protection.
25507 * doc/invoke.texi: Added doc for new options.
25508 * params.def: Added new options.
25509 * params.h: Likewise.
25510
25511 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25512
25513 PR rtl-optimization/59724
25514 * ifcvt.c (cond_exec_process_if_block): Don't call
25515 flow_find_head_matching_sequence with 0 longest_match.
25516 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25517 non-active insns if !stop_after.
25518 (try_head_merge_bb): Revert 2014-01-07 changes.
25519
25520 2014-01-08 Jeff Law <law@redhat.com>
25521
25522 * ree.c (get_sub_rtx): New function, extracted from...
25523 (merge_def_and_ext): Here.
25524 (combine_reaching_defs): Use get_sub_rtx.
25525
25526 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25527
25528 * cgraph.h (varpool_variable_node): Do not choke on null node.
25529
25530 2014-01-08 Catherine Moore <clm@codesourcery.com>
25531
25532 * config/mips/mips.md (simple_return): Attempt to use JRC
25533 for microMIPS.
25534 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25535
25536 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25537
25538 PR rtl-optimization/59137
25539 * reorg.c (steal_delay_list_from_target): Call update_block for
25540 elided insns.
25541 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25542
25543 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25544
25545 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25546 two duplicate entries.
25547
25548 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25549
25550 Revert:
25551 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25552
25553 * config/mips/mips.c (mips_truncated_op_cost): New function.
25554 (mips_rtx_costs): Adjust test for BADDU.
25555 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25556
25557 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25558
25559 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25560 (*baddu_si): ...this new pattern.
25561
25562 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25563
25564 PR ipa/59722
25565 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25566
25567 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25568
25569 PR middle-end/57748
25570 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25571 inner_reference_p.
25572 (expand_expr, expand_normal): Adjust.
25573 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25574 inner_reference_p. Use inner_reference_p to expand inner references.
25575 (store_expr): Adjust.
25576 * cfgexpand.c (expand_call_stmt): Adjust.
25577
25578 2014-01-08 Rong Xu <xur@google.com>
25579
25580 * gcov-io.c (gcov_var): Move from gcov-io.h.
25581 (gcov_position): Ditto.
25582 (gcov_is_error): Ditto.
25583 (gcov_rewrite): Ditto.
25584 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25585 only part to libgcc/libgcov.h.
25586
25587 2014-01-08 Marek Polacek <polacek@redhat.com>
25588
25589 PR middle-end/59669
25590 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25591
25592 2014-01-08 Marek Polacek <polacek@redhat.com>
25593
25594 PR sanitizer/59667
25595 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25596
25597 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25598
25599 PR rtl-optimization/59649
25600 * stor-layout.c (get_mode_bounds): For BImode return
25601 0 and STORE_FLAG_VALUE.
25602
25603 2014-01-08 Richard Biener <rguenther@suse.de>
25604
25605 PR middle-end/59630
25606 * gimple.h (is_gimple_builtin_call): Remove.
25607 (gimple_builtin_call_types_compatible_p): New.
25608 (gimple_call_builtin_p): New overload.
25609 * gimple.c (is_gimple_builtin_call): Remove.
25610 (validate_call): Rename to ...
25611 (gimple_builtin_call_types_compatible_p): ... this and export. Also
25612 check return types.
25613 (validate_type): New static function.
25614 (gimple_call_builtin_p): New overload and adjust.
25615 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
25616 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
25617 (gimple_fold_stmt_to_constant_1): Likewise.
25618 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
25619
25620 2014-01-08 Richard Biener <rguenther@suse.de>
25621
25622 PR middle-end/59471
25623 * gimplify.c (gimplify_expr): Gimplify register-register type
25624 VIEW_CONVERT_EXPRs to separate stmts.
25625
25626 2014-01-07 Jeff Law <law@redhat.com>
25627
25628 PR middle-end/53623
25629 * ree.c (combine_set_extension): Handle case where source
25630 and destination registers in an extension insn are different.
25631 (combine_reaching_defs): Allow source and destination registers
25632 in extension to be different under limited circumstances.
25633 (add_removable_extension): Remove restriction that the
25634 source and destination registers in the extension are the same.
25635 (find_and_remove_re): Emit a copy from the extension's
25636 destination to its source after the defining insn if
25637 the source and destination registers are different.
25638
25639 PR middle-end/59285
25640 * ifcvt.c (merge_if_block): If we are merging a block with more than
25641 one successor with a block with no successors, remove any BARRIER
25642 after the second block.
25643
25644 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
25645
25646 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
25647
25648 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
25649
25650 PR target/59652
25651 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
25652 for 14-bit register offsets when INT14_OK_STRICT is false.
25653
25654 2014-01-07 Roland Stigge <stigge@antcom.de>
25655 Michael Meissner <meissner@linux.vnet.ibm.com>
25656
25657 PR 57386/target
25658 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
25659 Only check TFmode for SPE constants. Don't check TImode or TDmode.
25660
25661 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
25662
25663 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
25664 -mcpu.
25665
25666 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
25667
25668 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
25669 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
25670 rtx is const0_rtx or not.
25671
25672 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
25673
25674 PR target/58115
25675 * target-globals.c (save_target_globals): Remove this_fn_optab
25676 handling.
25677 * toplev.c: Include optabs.h.
25678 (target_reinit): Temporarily restore the global options if another
25679 set of options are in force.
25680
25681 2014-01-07 Jakub Jelinek <jakub@redhat.com>
25682
25683 PR rtl-optimization/58668
25684 * cfgcleanup.c (flow_find_cross_jump): Don't count
25685 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
25686 to determine what is counted.
25687 (flow_find_head_matching_sequence): Use active_insn_p to determine
25688 what is counted.
25689 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
25690 counting change.
25691 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
25692 determine what is counted.
25693
25694 PR tree-optimization/59643
25695 * tree-predcom.c (split_data_refs_to_components): If one dr is
25696 read and one write, determine_offset fails and the write isn't
25697 in the bad component, just put the read into the bad component.
25698
25699 2014-01-07 Mike Stump <mikestump@comcast.net>
25700 Jakub Jelinek <jakub@redhat.com>
25701
25702 PR pch/59436
25703 * tree-core.h (struct tree_optimization_option): Change optabs
25704 type from unsigned char * to void *.
25705 * optabs.c (init_tree_optimization_optabs): Adjust
25706 TREE_OPTIMIZATION_OPTABS initialization.
25707
25708 2014-01-06 Jakub Jelinek <jakub@redhat.com>
25709
25710 PR target/59644
25711 * config/i386/i386.h (struct machine_function): Add
25712 no_drap_save_restore field.
25713 * config/i386/i386.c (ix86_save_reg): Use
25714 !cfun->machine->no_drap_save_restore instead of
25715 crtl->stack_realign_needed.
25716 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
25717 this function clears frame_pointer_needed. Set
25718 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
25719 and DRAP reg is needed.
25720
25721 2014-01-06 Marek Polacek <polacek@redhat.com>
25722
25723 PR c/57773
25724 * doc/implement-c.texi: Mention that other integer types are
25725 permitted as bit-field types in strictly conforming mode.
25726
25727 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
25728
25729 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
25730 is newly allocated.
25731
25732 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
25733
25734 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
25735
25736 2014-01-06 Martin Jambor <mjambor@suse.cz>
25737
25738 PR ipa/59008
25739 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
25740 to int.
25741 * ipa-prop.c (ipa_print_node_params): Fix indentation.
25742
25743 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
25744
25745 PR debug/59350
25746 PR debug/59510
25747 * var-tracking.c (add_stores): Preserve the value of the source even if
25748 we don't record the store.
25749
25750 2014-01-06 Terry Guo <terry.guo@arm.com>
25751
25752 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
25753
25754 2014-01-05 Iain Sandoe <iain@codesourcery.com>
25755
25756 PR bootstrap/59541
25757 * config/darwin.c (darwin_function_section): Adjust return values to
25758 correspond to optimisation changes made in r206070.
25759
25760 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
25761
25762 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
25763 from prefetch_block tune setting.
25764 (nocona_cost): Correct size of prefetch block to 64.
25765
25766 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
25767
25768 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
25769 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
25770 used to save the static chain register in the computation of the offset
25771 from which the FP registers need to be restored.
25772
25773 2014-01-04 Jakub Jelinek <jakub@redhat.com>
25774
25775 PR tree-optimization/59519
25776 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
25777 ICE if get_current_def (current_new_name) is already non-NULL, as long
25778 as it is a phi result of some other phi in *new_exit_bb that has
25779 the same argument.
25780
25781 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
25782 or vmovdqu* for misaligned_operand.
25783 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
25784 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
25785 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
25786 aligned_mem for AVX512F masked aligned load and store builtins and for
25787 non-temporal moves.
25788
25789 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
25790
25791 PR tree-optimization/59651
25792 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25793 Address range for negative step should be added by TYPE_SIZE_UNIT.
25794
25795 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
25796
25797 * config/m68k/m68k.c (handle_move_double): Handle pushes with
25798 overlapping registers also for registers other than the stack pointer.
25799
25800 2014-01-03 Marek Polacek <polacek@redhat.com>
25801
25802 PR other/59661
25803 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
25804 __builtin_FILE.
25805
25806 2014-01-03 Jakub Jelinek <jakub@redhat.com>
25807
25808 PR target/59625
25809 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
25810 asm goto as jump.
25811
25812 * config/i386/i386.md (MODE_SIZE): New mode attribute.
25813 (push splitter): Use <P:MODE_SIZE> instead of
25814 GET_MODE_SIZE (<P:MODE>mode).
25815 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
25816 (mov -1, reg peephole2): Likewise.
25817 * config/i386/sse.md (*mov<mode>_internal,
25818 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
25819 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
25820 *<code><mode>3, *andnot<mode>3<mask_name>,
25821 <mask_codefor><code><mode>3<mask_name>): Likewise.
25822 * config/i386/subst.md (mask_mode512bit_condition,
25823 sd_mask_mode512bit_condition): Likewise.
25824
25825 2014-01-02 Xinliang David Li <davidxl@google.com>
25826
25827 PR tree-optimization/59303
25828 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
25829 (dump_predicates): Better output format.
25830 (pred_equal_p): New function.
25831 (is_neq_relop_p): Ditto.
25832 (is_neq_zero_form_p): Ditto.
25833 (pred_expr_equal_p): Ditto.
25834 (pred_neg_p): Ditto.
25835 (simplify_pred): Ditto.
25836 (simplify_preds_2): Ditto.
25837 (simplify_preds_3): Ditto.
25838 (simplify_preds_4): Ditto.
25839 (simplify_preds): Ditto.
25840 (push_pred): Ditto.
25841 (push_to_worklist): Ditto.
25842 (get_pred_info_from_cmp): Ditto.
25843 (is_degenerated_phi): Ditto.
25844 (normalize_one_pred_1): Ditto.
25845 (normalize_one_pred): Ditto.
25846 (normalize_one_pred_chain): Ditto.
25847 (normalize_preds): Ditto.
25848 (normalize_cond_1): Remove function.
25849 (normalize_cond): Ditto.
25850 (is_gcond_subset_of): Ditto.
25851 (is_subset_of_any): Ditto.
25852 (is_or_set_subset_of): Ditto.
25853 (is_and_set_subset_of): Ditto.
25854 (is_norm_cond_subset_of): Ditto.
25855 (pred_chain_length_cmp): Ditto.
25856 (convert_control_dep_chain_into_preds): Type change.
25857 (find_predicates): Ditto.
25858 (find_def_preds): Ditto.
25859 (destroy_predicates_vecs): Ditto.
25860 (find_matching_predicates_in_rest_chains): Ditto.
25861 (use_pred_not_overlap_with_undef_path_pred): Ditto.
25862 (is_pred_expr_subset): Ditto.
25863 (is_pred_chain_subset_of): Ditto.
25864 (is_included_in): Ditto.
25865 (is_superset_of): Ditto.
25866
25867 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25868
25869 Update copyright years.
25870
25871 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25872
25873 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
25874 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
25875 config/arc/arc.md, config/arc/arc.opt,
25876 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
25877 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
25878 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
25879 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
25880 config/linux-protos.h, config/linux.c, config/winnt-c.c,
25881 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
25882 vtable-verify.c, vtable-verify.h: Use the standard form for the
25883 copyright notice.
25884
25885 2014-01-02 Tobias Burnus <burnus@net-b.de>
25886
25887 * gcc.c (process_command): Update copyright notice dates.
25888 * gcov-dump.c: Ditto.
25889 * gcov.c: Ditto.
25890 * doc/cpp.texi: Bump @copying's copyright year.
25891 * doc/cppinternals.texi: Ditto.
25892 * doc/gcc.texi: Ditto.
25893 * doc/gccint.texi: Ditto.
25894 * doc/gcov.texi: Ditto.
25895 * doc/install.texi: Ditto.
25896 * doc/invoke.texi: Ditto.
25897
25898 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25899
25900 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
25901
25902 2014-01-01 Jakub Jelinek <jakub@redhat.com>
25903
25904 * config/i386/sse.md (*mov<mode>_internal): Guard
25905 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
25906
25907 PR rtl-optimization/59647
25908 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
25909 new_rtx into UNSIGNED_FLOAT rtxes.
25910 \f
25911 Copyright (C) 2014 Free Software Foundation, Inc.
25912
25913 Copying and distribution of this file, with or without modification,
25914 are permitted in any medium without royalty provided the copyright
25915 notice and this notice are preserved.