altivec.h (vec_cpsgn): New #define.
[gcc.git] / gcc / ChangeLog
1 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2
3 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4 (vec_mergee): Likewise.
5 (vec_mergeo): Likewise.
6 (vec_cntlz): Likewise.
7 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
10 VMRGEW, and VMRGOW.
11 * doc/extend.texi: Document various forms of vec_cpsgn,
12 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
15 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
16 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
17
18 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19
20 * config/rs6000/rs6000.c (context.h): New include.
21 (tree-pass.h): Likewise.
22 (make_pass_analyze_swaps): New decl.
23 (rs6000_option_override): Register pass_analyze_swaps.
24 (swap_web_entry): New subsclass of web_entry_base (df.h).
25 (special_handling_values): New enum.
26 (union_defs): New function.
27 (union_uses): Likewise.
28 (insn_is_load_p): Likewise.
29 (insn_is_store_p): Likewise.
30 (insn_is_swap_p): Likewise.
31 (rtx_is_swappable_p): Likewise.
32 (insn_is_swappable_p): Likewise.
33 (chain_purpose): New enum.
34 (chain_contains_only_swaps): New function.
35 (mark_swaps_for_removal): Likewise.
36 (swap_const_vector_halves): Likewise.
37 (adjust_subreg_index): Likewise.
38 (permute_load): Likewise.
39 (permute_store): Likewise.
40 (handle_special_swappables): Likewise.
41 (replace_swap_with_copy): Likewise.
42 (dump_swap_insn_table): Likewise.
43 (rs6000_analyze_swaps): Likewise.
44 (pass_data_analyze_swaps): New pass_data.
45 (pass_analyze_swaps): New rtl_opt_pass.
46 (make_pass_analyze_swaps): New function.
47 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
48
49 2014-08-21 David Malcolm <dmalcolm@redhat.com>
50
51 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
52 type from rtx to rtx_insn *.
53 (create_copy_of_insn_rtx): Likewise.
54 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
55 (create_copy_of_insn_rtx): Likewise, also for local "res".
56
57 2014-08-21 David Malcolm <dmalcolm@redhat.com>
58
59 * rtl.h (find_first_parameter_load): Strengthen return type from
60 rtx to rtx_insn *.
61 * rtlanal.c (find_first_parameter_load): Strengthen return type
62 from rtx to rtx_insn *. Add checked cast for now, to postpone
63 strengthening the params.
64
65 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
66
67 PR fortran/44054
68 * diagnostic.c: Set default caret.
69 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
70 line is needed.
71 * diagnostic.h (struct diagnostic_context):
72
73 2014-08-21 David Malcolm <dmalcolm@redhat.com>
74
75 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
76 (sel_bb_head): Strengthen return type insn_t (currently just an
77 rtx) to rtx_insn *.
78 (sel_bb_end): Likewise.
79
80 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
81 (sel_bb_head): Strengthen return type and local "head" from
82 insn_t (currently just an rtx) to rtx_insn *.
83 (sel_bb_end): Likewise for return type.
84 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
85 working with insn.
86
87 2014-08-21 David Malcolm <dmalcolm@redhat.com>
88
89 * basic-block.h (get_last_bb_insn): Strengthen return type from
90 rtx to rtx_insn *.
91 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
92 end".
93
94 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
95
96 PR fortran/44054
97 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
98 to here ...
99 (diagnostic_report_diagnostic): ... from here.
100 * toplev.c (general_init): Move code to c-family.
101
102 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
103
104 * df.h (web_entry_base): Replace existing struct web_entry with a
105 new class web_entry_base with only the predecessor member.
106 (unionfind_root): Remove declaration and move to class member.
107 (unionfind_union): Remove declaration and move to friend
108 function.
109 (union_defs): Remove declaration.
110 * web.c (web_entry_base::unionfind_root): Modify to be member
111 function and adjust accessors.
112 (unionfind_union): Modify to be friend function and adjust
113 accessors.
114 (web_entry): New subclass of web_entry_base containing the reg
115 member.
116 (union_match_dups): Modify for struct -> class changes.
117 (union_defs): Likewise.
118 (entry_register): Likewise.
119 (pass_web::execute): Likewise.
120
121 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
122
123 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
124 builtin define __VEC_ELEMENT_REG_ORDER__.
125
126 2014-08-20 Martin Jambor <mjambor@suse.cz>
127 Wei Mi <wmi@google.com>
128
129 PR ipa/60449
130 PR middle-end/61776
131 * tree-ssa-operands.c (update_stmt_operands): Remove
132 MODIFIED_NORETURN_CALLS.
133 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
134 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
135 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
136 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
137 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
138 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
139 (gimple_call_set_ctrl_altering): New func.
140 (gimple_call_ctrl_altering_p): Ditto.
141 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
142 (make_blocks): Use gimple_call_initialize_ctrl_altering.
143 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
144 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
145 remove MODIFIED_NORETURN_CALLS.
146
147 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
148
149 * coverage.c (coverage_compute_profile_id): Return non-0;
150 also handle symbols with unique name.
151 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
152
153 2014-08-20 Steve Ellcey <sellcey@mips.com>
154
155 PR middle-end/49191
156 * doc/sourcebuild.texi (non_strict_align): New.
157
158 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
159
160 * cgraphunit.c (ipa_passes, compile): Reshedule
161 symtab_remove_unreachable_nodes passes; update comments.
162 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
163 TODO_remove_functions before the pass; the functions ought to be
164 already removed.
165 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
166 TODO_remove_functions.
167 * passes.c (pass_data_early_local_passes): Do not schedule function
168 removal.
169 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
170
171 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
172
173 PR c/59304
174 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
175 before setting the option.
176 * diagnostic.c (diagnostic_classify_diagnostic): Record
177 command-line status.
178
179 2014-08-20 Richard Biener <rguenther@suse.de>
180
181 PR lto/62190
182 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
183 to build uint{16,32,64}_type_node.
184
185 2014-08-20 Terry Guo <terry.guo@arm.com>
186
187 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
188 with immediate_operand.
189
190 2014-08-20 David Malcolm <dmalcolm@redhat.com>
191
192 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
193 "insn" from an as_a to a safe_as_a, for the case when "insn" is
194 NULL.
195
196 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
197
198 PR preprocessor/51303
199 * incpath.c (remove_duplicates): Use cpp_warning.
200
201 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
202
203 PR c/60975
204 PR c/53063
205 * doc/options.texi (CPP): Document it.
206 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
207 * optc-gen.awk: Handle CPP.
208 * opth-gen.awk: Likewise.
209
210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
211
212 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
213 rtx_insn *.
214 (duplicate_insn_chain): Likewise.
215 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
216 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
217 checked cast for now (until we can strengthen the params in the
218 same way).
219 (duplicate_insn_chain): Likewise.
220
221 2014-08-19 David Malcolm <dmalcolm@redhat.com>
222
223 * rtl.h (next_cc0_user): Strengthen return type from rtx to
224 rtx_insn *.
225 (prev_cc0_setter): Likewise.
226
227 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
228 rtx_insn *, adding checked casts for now as necessary.
229 (prev_cc0_setter): Likewise.
230
231 2014-08-19 David Malcolm <dmalcolm@redhat.com>
232
233 * expr.h (emit_move_insn): Strengthen return type from rtx to
234 rtx_insn *.
235 (emit_move_insn_1): Likewise.
236 (emit_move_complex_push): Likewise.
237 (emit_move_complex_parts): Likewise.
238
239 * expr.c (emit_move_via_integer): Strengthen return type from rtx
240 to rtx_insn *. Replace use of NULL_RTX with NULL when working
241 with insns.
242 (emit_move_complex_push): Strengthen return type from rtx to
243 rtx_insn *.
244 (emit_move_complex): Likewise, also for local "ret".
245 (emit_move_ccmode): Likewise.
246 (emit_move_multi_word): Likewise for return type and locals
247 "last_insn", "seq".
248 (emit_move_insn_1): Likewise for return type and locals "result",
249 "ret".
250 (emit_move_insn): Likewise for return type and local "last_insn".
251 (compress_float_constant): Likewise.
252
253 2014-08-19 David Malcolm <dmalcolm@redhat.com>
254
255 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
256 from rtx to rtx_insn *.
257
258 * rtl.h (emit_insn_before): Likewise.
259 (emit_insn_before_noloc): Likewise.
260 (emit_insn_before_setloc): Likewise.
261 (emit_jump_insn_before): Likewise.
262 (emit_jump_insn_before_noloc): Likewise.
263 (emit_jump_insn_before_setloc): Likewise.
264 (emit_call_insn_before): Likewise.
265 (emit_call_insn_before_noloc): Likewise.
266 (emit_call_insn_before_setloc): Likewise.
267 (emit_debug_insn_before): Likewise.
268 (emit_debug_insn_before_noloc): Likewise.
269 (emit_debug_insn_before_setloc): Likewise.
270 (emit_label_before): Likewise.
271 (emit_insn_after): Likewise.
272 (emit_insn_after_noloc): Likewise.
273 (emit_insn_after_setloc): Likewise.
274 (emit_jump_insn_after): Likewise.
275 (emit_jump_insn_after_noloc): Likewise.
276 (emit_jump_insn_after_setloc): Likewise.
277 (emit_call_insn_after): Likewise.
278 (emit_call_insn_after_noloc): Likewise.
279 (emit_call_insn_after_setloc): Likewise.
280 (emit_debug_insn_after): Likewise.
281 (emit_debug_insn_after_noloc): Likewise.
282 (emit_debug_insn_after_setloc): Likewise.
283 (emit_label_after): Likewise.
284 (emit_insn): Likewise.
285 (emit_debug_insn): Likewise.
286 (emit_jump_insn): Likewise.
287 (emit_call_insn): Likewise.
288 (emit_label): Likewise.
289 (gen_clobber): Likewise.
290 (emit_clobber): Likewise.
291 (gen_use): Likewise.
292 (emit_use): Likewise.
293 (emit): Likewise.
294
295 (emit_barrier_before): Strengthen return type from rtx to
296 rtx_barrier *.
297 (emit_barrier_after): Likewise.
298 (emit_barrier): Likewise.
299
300 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
301 from rtx to rtx_insn *. Add checked casts for now when converting
302 "last" from rtx to rtx_insn *.
303 (emit_insn_before_noloc): Likewise for return type.
304 (emit_jump_insn_before_noloc): Likewise.
305 (emit_call_insn_before_noloc): Likewise.
306 (emit_debug_insn_before_noloc): Likewise.
307 (emit_barrier_before): Strengthen return type and local "insn"
308 from rtx to rtx_barrier *.
309 (emit_label_before): Strengthen return type from rtx to
310 rtx_insn *. Add checked cast for now when returning param
311 (emit_pattern_after_noloc): Strengthen return type from rtx to
312 rtx_insn *. Add checked casts for now when converting "last" from
313 rtx to rtx_insn *.
314 (emit_insn_after_noloc): Strengthen return type from rtx to
315 rtx_insn *.
316 (emit_jump_insn_after_noloc): Likewise.
317 (emit_call_insn_after_noloc): Likewise.
318 (emit_debug_insn_after_noloc): Likewise.
319 (emit_barrier_after): Strengthen return type from rtx to
320 rtx_barrier *.
321 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
322 Add checked cast for now when converting "label" from rtx to
323 rtx_insn *.
324 (emit_pattern_after_setloc): Strengthen return type from rtx to
325 rtx_insn *. Add checked casts for now when converting "last" from
326 rtx to rtx_insn *.
327 (emit_pattern_after): Strengthen return type from rtx to
328 rtx_insn *.
329 (emit_insn_after_setloc): Likewise.
330 (emit_insn_after): Likewise.
331 (emit_jump_insn_after_setloc): Likewise.
332 (emit_jump_insn_after): Likewise.
333 (emit_call_insn_after_setloc): Likewise.
334 (emit_call_insn_after): Likewise.
335 (emit_debug_insn_after_setloc): Likewise.
336 (emit_debug_insn_after): Likewise.
337 (emit_pattern_before_setloc): Likewise. Add checked casts for now
338 when converting "last" from rtx to rtx_insn *.
339 (emit_pattern_before): Strengthen return type from rtx to
340 rtx_insn *.
341 (emit_insn_before_setloc): Likewise.
342 (emit_insn_before): Likewise.
343 (emit_jump_insn_before_setloc): Likewise.
344 (emit_jump_insn_before): Likewise.
345 (emit_call_insn_before_setloc): Likewise.
346 (emit_call_insn_before): Likewise.
347 (emit_debug_insn_before_setloc): Likewise.
348 (emit_debug_insn_before): Likewise.
349 (emit_insn): Strengthen return type and locals "last", "insn",
350 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
351 within cases where we know we have an insn.
352 (emit_debug_insn): Likewise.
353 (emit_jump_insn): Likewise.
354 (emit_call_insn): Strengthen return type and local "insn" from rtx
355 to rtx_insn *.
356 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
357 a checked cast to rtx_insn * for now on "label".
358 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
359 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
360 (emit_use): Likewise.
361 (gen_use): Likewise, also for local "seq".
362 (emit): Likewise for return type and local "insn".
363 (rtx_insn): Likewise for return type and local "new_rtx".
364
365 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
366 from rtx to rtx_barrier *.
367
368 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
369 changed return type from rtx to rtx_insn *, we must update
370 "emit_fn" type, and this in turn means updating...
371 (frame_insn): ...this. Strengthen return type from rtx to
372 rtx_insn *. Introduce a new local "insn" of the appropriate type.
373
374 2014-08-19 David Malcolm <dmalcolm@redhat.com>
375
376 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
377 rtx to rtx_jump_table_data *. Also for local.
378 * rtl.h (emit_jump_table_data): Likewise.
379
380 2014-08-19 David Malcolm <dmalcolm@redhat.com>
381
382 * basic-block.h (create_basic_block_structure): Strengthen third
383 param "bb_note" from rtx to rtx_note *.
384 * rtl.h (emit_note_before): Strengthen return type from rtx to
385 rtx_note *.
386 (emit_note_after): Likewise.
387 (emit_note): Likewise.
388 (emit_note_copy): Likewise. Also, strengthen param similarly.
389 * function.h (struct rtl_data): Strengthen field
390 "x_stack_check_probe_note" from rtx to rtx_note *.
391
392 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
393 from rtx to rtx_note *.
394 * cfgrtl.c (create_basic_block_structure): Strengthen third param
395 "bb_note" from rtx to rtx_note *.
396 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
397 when calling emit_note_copy.
398 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
399 rtx_note *.
400 (emit_note_after): Likewise.
401 (emit_note_before): Likewise.
402 (emit_note_copy): Likewise. Also, strengthen param similarly.
403 (emit_note): Likewise.
404 * except.c (emit_note_eh_region_end): Likewise for return type.
405 Strengthen local "next" from rtx to rtx_insn *.
406 (convert_to_eh_region_ranges): Strengthen local "note"
407 from rtx to rtx_note *.
408 * final.c (change_scope): Likewise.
409 (reemit_insn_block_notes): Likewise, for both locals named "note".
410 Also, strengthen local "insn" from rtx to rtx_insn *.
411 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
412 rtx to rtx_note *.
413 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
414 strengthen local "seq" from rtx to rtx_insn *.
415 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
416 to rtx_note *.
417 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
418 vec<rtx_note *>.
419 (get_bb_note_from_pool): Strengthen return type from rtx to
420 rtx_note *.
421 (sel_create_basic_block): Strengthen local "new_bb_note" from
422 insn_t to rtx_note *.
423 * var-tracking.c (emit_note_insn_var_location): Strengthen local
424 "note" from rtx to rtx_note *.
425 (emit_notes_in_bb): Likewise.
426
427 2014-08-19 David Malcolm <dmalcolm@redhat.com>
428
429 * function.h (struct rtl_data): Strengthen field
430 "x_parm_birth_insn" from rtx to rtx_insn *.
431 * function.c (struct assign_parm_data_all): Strengthen fields
432 "first_conversion_insn" and "last_conversion_insn" from rtx to
433 rtx_insn *.
434
435 2014-08-19 David Malcolm <dmalcolm@redhat.com>
436
437 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
438 to rtx_insn *; also for local "var_end_seq".
439 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
440 (maybe_cleanup_end_of_block): Likewise for param "last" and local
441 "insn".
442 (expand_gimple_cond): Likewise for locals "last2" and "last".
443 (mark_transaction_restart_calls): Likewise for local "insn".
444 (expand_gimple_stmt): Likewise for return type and locals "last"
445 and "insn".
446 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
447 (avoid_complex_debug_insns): Likewise for param "insn".
448 (expand_debug_locations): Likewise for locals "insn", "last",
449 "prev_insn" and "insn2".
450 (expand_gimple_basic_block): Likewise for local "last".
451 (construct_exit_block): Likewise for locals "head", "end",
452 "orig_end".
453 (pass_expand::execute): Likewise for locals "var_seq",
454 "var_ret_seq", "next".
455
456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
457
458 * asan.h (asan_emit_stack_protection): Strengthen return type from
459 rtx to rtx_insn *.
460 * asan.c (asan_emit_stack_protection): Likewise. Add local
461 "insns" to hold the return value.
462
463 2014-08-19 David Malcolm <dmalcolm@redhat.com>
464
465 * basic-block.h (bb_note): Strengthen return type from rtx to
466 rtx_note *.
467 * sched-int.h (bb_note): Likewise.
468 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
469
470 2014-08-19 David Malcolm <dmalcolm@redhat.com>
471
472 * rtl.h (make_insn_raw): Strengthen return type from rtx to
473 rtx_insn *.
474
475 * emit-rtl.c (make_insn_raw): Strengthen return type and local
476 "insn" from rtx to rtx_insn *.
477 (make_debug_insn_raw): Strengthen return type from rtx to
478 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
479 (make_jump_insn_raw): Strengthen return type from rtx to
480 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
481 (make_call_insn_raw): Strengthen return type from rtx to
482 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
483 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
484 callback from rtx to rtx_insn *; likewise for local "insn" and
485 "next", adding a checked cast to rtx_insn in the relevant cases of
486 the switch statement.
487 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
488 callback from rtx to rtx_insn *.
489 (emit_pattern_after_setloc): Likewise.
490 (emit_pattern_after): Likewise.
491 (emit_pattern_before_setloc): Likewise.
492 (emit_pattern_before): Likewise.
493
494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
495
496 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
497 rtx_call_insn *.
498 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
499 accepting an rtx_insn *.
500 (last_call_insn): Strengthen return type from rtx to
501 rtx_call_insn *.
502
503 2014-08-19 David Malcolm <dmalcolm@redhat.com>
504
505 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
506 "insns" from rtx to rtx_insn *.
507 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
508 locals "insn" and "prev".
509
510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
511
512 * rtl.h (tablejump_p): Strengthen third param from rtx * to
513 rtx_jump_table_data **.
514
515 * cfgbuild.c (make_edges): Introduce local "table", using it in
516 place of "tmp" for jump table data.
517 (find_bb_boundaries): Strengthen local "table" from rtx to
518 rtx_jump_table_data *.
519 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
520 (outgoing_edges_match): Likewise for locals "table1" and "table2".
521 (try_crossjump_to_edge): Likewise.
522 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
523 "table".
524 (patch_jump_insn): Introduce local "table", using it in place of
525 "tmp" for jump table data.
526 (force_nonfallthru_and_redirect): Introduce local "table", so that
527 call to tablejump_p can receive an rtx_jump_table_data **. Update
528 logic around the call to overwrite "note" appropriately if
529 tablejump_p returns non-zero.
530 (get_last_bb_insn): Introduce local "table", using it in place of
531 "tmp" for jump table data.
532 * dwarf2cfi.c (create_trace_edges): Likewise.
533
534 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
535 from rtx to rtx_jump_table_data *.
536 (create_fix_barrier): Strengthen local "tmp" from rtx to
537 rtx_jump_table_data *.
538 (arm_reorg): Likewise for local "table".
539
540 * config/s390/s390.c (s390_chunkify_start): Likewise.
541
542 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
543
544 * jump.c (delete_related_insns): Strengthen local "lab_next" from
545 rtx to rtx_jump_table_data *.
546
547 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
548 rtx_jump_table_data **. Add a checked cast when writing through
549 the pointer: we know there that local "table" is non-NULL and that
550 JUMP_TABLE_DATA_P (table) holds.
551 (label_is_jump_target_p): Introduce local "table", using it in
552 place of "tmp" for jump table data.
553
554 2014-08-19 Marek Polacek <polacek@redhat.com>
555
556 PR c++/62153
557 * doc/invoke.texi: Document -Wbool-compare.
558
559 2014-08-19 David Malcolm <dmalcolm@redhat.com>
560
561 * rtl.h (entry_of_function): Strengthen return type from rtx to
562 rtx_insn *.
563 * cfgrtl.c (entry_of_function): Likewise.
564
565 2014-08-19 David Malcolm <dmalcolm@redhat.com>
566
567 * emit-rtl.h (get_insns): Strengthen return type from rtx to
568 rtx_insn *, adding a checked cast for now.
569 (get_last_insn): Likewise.
570
571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
572
573 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
574 rtx_code_label *.
575
576 * emit-rtl.c (gen_label_rtx): Likewise.
577
578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
579
580 * rtl.h (previous_insn): Strengthen return type from rtx to
581 rtx_insn *.
582 (next_insn): Likewise.
583 (prev_nonnote_insn): Likewise.
584 (prev_nonnote_insn_bb): Likewise.
585 (next_nonnote_insn): Likewise.
586 (next_nonnote_insn_bb): Likewise.
587 (prev_nondebug_insn): Likewise.
588 (next_nondebug_insn): Likewise.
589 (prev_nonnote_nondebug_insn): Likewise.
590 (next_nonnote_nondebug_insn): Likewise.
591 (prev_real_insn): Likewise.
592 (next_real_insn): Likewise.
593 (prev_active_insn): Likewise.
594 (next_active_insn): Likewise.
595
596 * emit-rtl.c (next_insn): Strengthen return type from rtx to
597 rtx_insn *, adding a checked cast.
598 (previous_insn): Likewise.
599 (next_nonnote_insn): Likewise.
600 (next_nonnote_insn_bb): Likewise.
601 (prev_nonnote_insn): Likewise.
602 (prev_nonnote_insn_bb): Likewise.
603 (next_nondebug_insn): Likewise.
604 (prev_nondebug_insn): Likewise.
605 (next_nonnote_nondebug_insn): Likewise.
606 (prev_nonnote_nondebug_insn): Likewise.
607 (next_real_insn): Likewise.
608 (prev_real_insn): Likewise.
609 (next_active_insn): Likewise.
610 (prev_active_insn): Likewise.
611
612 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
613 param "stepfunc" so that it returns an rtx_insn * rather than an
614 rtx, to track the change to prev_nonnote_insn_bb, which is the
615 only function this is called with.
616 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
617
618 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
619
620 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
621 assert.
622
623 2014-08-19 David Malcolm <dmalcolm@redhat.com>
624
625 * coretypes.h (class rtx_debug_insn): Add forward declaration.
626 (class rtx_nonjump_insn): Likewise.
627 (class rtx_jump_insn): Likewise.
628 (class rtx_call_insn): Likewise.
629 (class rtx_jump_table_data): Likewise.
630 (class rtx_barrier): Likewise.
631 (class rtx_code_label): Likewise.
632 (class rtx_note): Likewise.
633
634 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
635 adding the invariant DEBUG_INSN_P (X).
636 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
637 the invariant NONJUMP_INSN_P (X).
638 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
639 the invariant JUMP_P (X).
640 (class rtx_call_insn): New, a subclass of rtx_insn, adding
641 the invariant CALL_P (X).
642 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
643 invariant JUMP_TABLE_DATA_P (X).
644 (class rtx_barrier): New, a subclass of rtx_insn, adding the
645 invariant BARRIER_P (X).
646 (class rtx_code_label): New, a subclass of rtx_insn, adding
647 the invariant LABEL_P (X).
648 (class rtx_note): New, a subclass of rtx_insn, adding
649 the invariant NOTE_P(X).
650 (is_a_helper <rtx_debug_insn *>::test): New.
651 (is_a_helper <rtx_nonjump_insn *>::test): New.
652 (is_a_helper <rtx_jump_insn *>::test): New.
653 (is_a_helper <rtx_call_insn *>::test): New.
654 (is_a_helper <rtx_jump_table_data *>::test): New functions,
655 overloaded for both rtx and rtx_insn *.
656 (is_a_helper <rtx_barrier *>::test): New.
657 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
658 for both rtx and rtx_insn *.
659 (is_a_helper <rtx_note *>::test): New.
660
661 2014-08-19 Marek Polacek <polacek@redhat.com>
662
663 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
664 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
665 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
666 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
667
668 2014-08-19 David Malcolm <dmalcolm@redhat.com>
669
670 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
671 rtx_insn *. To help with transition, for now, convert from an
672 access macro into a pair of functions: BND_TO, returning an
673 rtx_insn *, and...
674 (SET_BND_TO): New function, for use where BND_TO is used as an
675 lvalue.
676
677 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
678 SET_BND_TO.
679 (BND_TO): New function, adding a checked cast.
680 (SET_BND_TO): New function.
681
682 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
683 SET_BND_TO.
684 (compute_av_set_on_boundaries): Likewise.
685
686 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
687
688 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
689 destination if it is used in source.
690 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
691 (*popcount<mode>2_falsedep_1): Likewise.
692
693 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
694
695 PR other/62168
696 * configure.ac: Set install_gold_as_default to no first.
697 * configure: Regenerated.
698
699 2014-08-19 David Malcolm <dmalcolm@redhat.com>
700
701 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
702 "note_list" field will eventually be an rtx_insn *. To help with
703 transition, for now, convert from an access macro into a pair of
704 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
705 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
706 used as an lvalue.
707
708 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
709 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
710
711 * sel-sched-ir.c (init_bb): Likewise.
712 (sel_restore_notes): Likewise.
713 (move_bb_info): Likewise.
714 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
715 (SET_BB_NOTE_LIST): New function.
716
717 2014-08-19 David Malcolm <dmalcolm@redhat.com>
718
719 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
720 field will eventually be an rtx_insn *. To help with transition,
721 for now, convert from an access macro into a pair of functions:
722 VINSN_INSN_RTX, returning an rtx_insn *, and...
723 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
724 is used as an lvalue.
725
726 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
727 SET_VINSN_INSN_RTX where it's used as an lvalue.
728 (VINSN_INSN_RTX): New function.
729 (SET_VINSN_INSN_RTX): New function.
730
731 2014-08-19 David Malcolm <dmalcolm@redhat.com>
732
733 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
734 eventually be rtx_insn *, but to help with transition, for now,
735 convert from an access macro into a pair of functions: DEP_PRO
736 returning an rtx_insn * and...
737 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
738 lvalue, returning an rtx&.
739 (DEP_CON): Analogous changes to DEP_PRO above.
740 (SET_DEP_CON): Likewise.
741
742 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
743 an lvalue to SET_DEP_CON.
744 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
745 (sd_copy_back_deps): Likewise for DEP_CON.
746 (DEP_PRO): New function, adding a checked cast for now.
747 (DEP_CON): Likewise.
748 (SET_DEP_PRO): New function.
749 (SET_DEP_CON): Likewise.
750
751 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
752
753 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
754 (extra_options): Add i386/cygwin.opt.
755 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
756 (CPP_SPEC): Accept -pthread.
757 (LINK_SPEC): Ditto.
758 (GOMP_SELF_SPECS): Update comment.
759 * config/i386/cygwin.opt: New file for -pthread flag.
760
761 2014-08-19 David Malcolm <dmalcolm@redhat.com>
762
763 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
764 * df.h (DF_REF_INSN): Convert from a macro to a function, so
765 that we can return an rtx_insn *.
766
767 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
768
769 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
770 when building executables, not DLLs. Add --large-address-aware
771 under the same conditions.
772 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
773 when building executables, not DLLs. Add --large-address-aware
774 under the same conditions when using -m32.
775
776 * config/i386/cygwin-stdint.h: Throughout, make type
777 definitions dependent on target architecture, not host.
778
779 2014-08-19 David Malcolm <dmalcolm@redhat.com>
780
781 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
782 the return type from rtx to rtx_insn *, which will enable various
783 conversions in followup patches. For now this is is done by a
784 checked cast.
785 (NEXT_INSN): Likewise.
786 (SET_PREV_INSN): Convert to an inline function. This is intended
787 for use as an lvalue, and so returns an rtx& to allow in-place
788 modification.
789 (SET_NEXT_INSN): Likewise.
790
791 2014-07-08 Mark Wielaard <mjw@redhat.com>
792
793 PR debug/59051
794 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
795
796 2014-08-19 Marek Polacek <polacek@redhat.com>
797
798 PR c/61271
799 * cgraphunit.c (handle_alias_pairs): Fix condition.
800
801 2014-08-19 Richard Biener <rguenther@suse.de>
802
803 * gimple-fold.c (fold_gimple_assign): Properly build a
804 null-pointer constant when devirtualizing addresses.
805
806 2014-07-07 Mark Wielaard <mjw@redhat.com>
807
808 * dwarf2out.c (decl_quals): New function.
809 (modified_type_die): Take one cv_quals argument instead of two,
810 one for const and one for volatile.
811 (add_type_attribute): Likewise.
812 (generic_parameter_die): Call add_type_attribute with one modifier
813 argument.
814 (base_type_for_mode): Likewise.
815 (add_bounds_info): Likewise.
816 (add_subscript_info): Likewise.
817 (gen_array_type_die): Likewise.
818 (gen_descr_array_type_die): Likewise.
819 (gen_entry_point_die): Likewise.
820 (gen_enumeration_type_die): Likewise.
821 (gen_formal_parameter_die): Likewise.
822 (gen_subprogram_die): Likewise.
823 (gen_variable_die): Likewise.
824 (gen_const_die): Likewise.
825 (gen_field_die): Likewise.
826 (gen_pointer_type_die): Likewise.
827 (gen_reference_type_die): Likewise.
828 (gen_ptr_to_mbr_type_die): Likewise.
829 (gen_inheritance_die): Likewise.
830 (gen_subroutine_type_die): Likewise.
831 (gen_typedef_die): Likewise.
832 (force_type_die): Likewise.
833
834 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
835
836 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
837 if unset.
838 * configure: Regenerate.
839
840 2014-08-19 Richard Biener <rguenther@suse.de>
841
842 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
843 DECL_EXTERNALs in BLOCKs as non-references.
844 * tree-streamer-out.c (streamer_write_chain): Likewise.
845
846 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
848 Anna Tikhonova <anna.tikhonova@intel.com>
849 Ilya Tocar <ilya.tocar@intel.com>
850 Andrey Turetskiy <andrey.turetskiy@intel.com>
851 Ilya Verbin <ilya.verbin@intel.com>
852 Kirill Yukhin <kirill.yukhin@intel.com>
853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
854
855 * config/i386/sse.md
856 (define_mode_iterator VI48_AVX512F): Delete.
857 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
858 (define_mode_iterator VI2_AVX512VL): Ditto.
859 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
860 Delete.
861 (define_insn
862 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
863 New.
864 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
865 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
866 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
867 with VI48_AVX512F_AVX512VL): New.
868 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
869 with VI2_AVX512VL): Ditto.
870
871 2014-08-19 Marek Polacek <polacek@redhat.com>
872
873 * doc/invoke.texi: Document -Wc99-c11-compat.
874
875 2014-08-19 David Malcolm <dmalcolm@redhat.com>
876
877 * rtl.h (PREV_INSN): Split macro in two: the existing one,
878 for rvalues, and...
879 (SET_PREV_INSN): New macro, for use as an lvalue.
880 (NEXT_INSN, SET_NEXT_INSN): Likewise.
881
882 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
883 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
884 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
885 (fixup_abnormal_edges): Likewise.
886 (unlink_insn_chain): Likewise.
887 (fixup_reorder_chain): Likewise.
888 (cfg_layout_delete_block): Likewise.
889 (cfg_layout_merge_blocks): Likewise.
890 * combine.c (update_cfg_for_uncondjump): Likewise.
891 * emit-rtl.c (link_insn_into_chain): Likewise.
892 (remove_insn): Likewise.
893 (delete_insns_since): Likewise.
894 (reorder_insns_nobb): Likewise.
895 (emit_insn_after_1): Likewise.
896 * final.c (rest_of_clean_state): Likewise.
897 (final_scan_insn): Likewise.
898 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
899 * haifa-sched.c (concat_note_lists): Likewise.
900 (remove_notes): Likewise.
901 (restore_other_notes): Likewise.
902 (move_insn): Likewise.
903 (unlink_bb_notes): Likewise.
904 (restore_bb_notes): Likewise.
905 * jump.c (delete_for_peephole): Likewise.
906 * optabs.c (emit_libcall_block_1): Likewise.
907 * reorg.c (emit_delay_sequence): Likewise.
908 (fill_simple_delay_slots): Likewise.
909 * sel-sched-ir.c (sel_move_insn): Likewise.
910 (sel_remove_insn): Likewise.
911 (get_bb_note_from_pool): Likewise.
912 * sel-sched.c (move_nop_to_previous_block): Likewise.
913
914 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
915 * config/c6x/c6x.c (gen_one_bundle): Likewise.
916 (c6x_gen_bundles): Likewise.
917 (hwloop_optimize): Likewise.
918 * config/frv/frv.c (frv_function_prologue): Likewise.
919 (frv_register_nop): Likewise.
920 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
921 (ia64_reorg): Likewise.
922 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
923 (mep_make_bundle): Likewise.
924 (mep_bundle_insns): Likewise.
925 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
926 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
927 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
928
929 2014-08-19 David Malcolm <dmalcolm@redhat.com>
930
931 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
932 return type from rtx to rtx_insn *.
933 (BB_END): Likewise.
934 (BB_HEADER): Likewise.
935 (BB_FOOTER): Likewise.
936 (SET_BB_HEAD): Convert to a function.
937 (SET_BB_END): Likewise.
938 (SET_BB_HEADER): Likewise.
939 (SET_BB_FOOTER): Likewise.
940
941 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
942 Strengthen the return type from rtx to rtx_insn *. For now, this
943 is done by adding a checked cast, but this will eventually
944 become a field lookup.
945 (BB_END): Likewise.
946 (BB_HEADER): Likewise.
947 (BB_FOOTER): Likewise.
948 (SET_BB_HEAD): New function, from macro of same name. This is
949 intended for use as an lvalue, and so returns an rtx& to allow
950 in-place modification.
951 (SET_BB_END): Likewise.
952 (SET_BB_HEADER): Likewise.
953 (SET_BB_FOOTER): Likewise.
954
955 2014-08-18 David Malcolm <dmalcolm@redhat.com>
956
957 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
958 for rvalues, and...
959 (SET_BB_HEAD): New macro, for use as a lvalue.
960 (BB_END, SET_BB_END): Likewise.
961 (BB_HEADER, SET_BB_HEADER): Likewise.
962 (BB_FOOTER, SET_BB_FOOTER): Likewise.
963
964 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
965 of BB_* macros into SET_BB_* macros.
966 (fix_crossing_unconditional_branches): Likewise.
967 * caller-save.c (save_call_clobbered_regs): Likewise.
968 (insert_one_insn): Likewise.
969 * cfgbuild.c (find_bb_boundaries): Likewise.
970 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
971 (outgoing_edges_match): Likewise.
972 (try_optimize_cfg): Likewise.
973 * cfgexpand.c (expand_gimple_cond): Likewise.
974 (expand_gimple_tailcall): Likewise.
975 (expand_gimple_basic_block): Likewise.
976 (construct_exit_block): Likewise.
977 * cfgrtl.c (delete_insn): Likewise.
978 (create_basic_block_structure): Likewise.
979 (rtl_delete_block): Likewise.
980 (rtl_split_block): Likewise.
981 (emit_nop_for_unique_locus_between): Likewise.
982 (rtl_merge_blocks): Likewise.
983 (block_label): Likewise.
984 (try_redirect_by_replacing_jump): Likewise.
985 (emit_barrier_after_bb): Likewise.
986 (fixup_abnormal_edges): Likewise.
987 (record_effective_endpoints): Likewise.
988 (relink_block_chain): Likewise.
989 (fixup_reorder_chain): Likewise.
990 (fixup_fallthru_exit_predecessor): Likewise.
991 (cfg_layout_duplicate_bb): Likewise.
992 (cfg_layout_split_block): Likewise.
993 (cfg_layout_delete_block): Likewise.
994 (cfg_layout_merge_blocks): Likewise.
995 * combine.c (update_cfg_for_uncondjump): Likewise.
996 * emit-rtl.c (add_insn_after): Likewise.
997 (remove_insn): Likewise.
998 (reorder_insns): Likewise.
999 (emit_insn_after_1): Likewise.
1000 * haifa-sched.c (get_ebb_head_tail): Likewise.
1001 (restore_other_notes): Likewise.
1002 (move_insn): Likewise.
1003 (sched_extend_bb): Likewise.
1004 (fix_jump_move): Likewise.
1005 * ifcvt.c (noce_process_if_block): Likewise.
1006 (dead_or_predicable): Likewise.
1007 * ira.c (update_equiv_regs): Likewise.
1008 * reg-stack.c (change_stack): Likewise.
1009 * sel-sched-ir.c (sel_move_insn): Likewise.
1010 * sel-sched.c (move_nop_to_previous_block): Likewise.
1011
1012 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1013 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1014
1015 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1016
1017 * rtl.h (for_each_rtx_in_insn): New function.
1018 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1019
1020 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1021
1022 * coretypes.h (class rtx_insn): Add forward declaration.
1023
1024 * rtl.h: Include is-a.h.
1025 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1026 workaround to ensure gengtype knows inheritance is occurring,
1027 whilst continuing to use the pre-existing special-casing for
1028 rtx_def.
1029 (class rtx_insn): New subclass of rtx_def, adding the
1030 invariant that we're dealing with something we can sanely use
1031 INSN_UID, NEXT_INSN, PREV_INSN on.
1032 (is_a_helper <rtx_insn *>::test): New.
1033 (is_a_helper <const rtx_insn *>::test): New.
1034
1035 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1036
1037 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1038
1039 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1040
1041 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1042 comdats as extern.
1043
1044 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1045
1046 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1047 to BUILT_IN_UNREACHABLE.
1048
1049 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1050
1051 PR target/62011
1052 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1053 New tune flag.
1054 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1055 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1056 (ffs<mode>2): Do not expand with tzcnt for
1057 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1058 (ffssi2_no_cmove): Ditto.
1059 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1060 (ctz<mode>2): New expander.
1061 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1062 (*ctz<mode>2_falsedep): New insn.
1063 (*ctz<mode>2): Rename from ctz<mode>2.
1064 (clz<mode>2_lzcnt): New expander.
1065 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1066 (*clz<mode>2_lzcnt_falsedep): New insn.
1067 (*clz<mode>2): Rename from ctz<mode>2.
1068 (popcount<mode>2): New expander.
1069 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1070 (*popcount<mode>2_falsedep): New insn.
1071 (*popcount<mode>2): Rename from ctz<mode>2.
1072 (*popcount<mode>2_cmp): Remove.
1073 (*popcountsi2_cmp_zext): Ditto.
1074
1075 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1076
1077 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1078 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1079 * config/microblaze/microblaze.h
1080 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1081
1082 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 PR other/62168
1085 * configure.ac: Set install_gold_as_default to no for
1086 --enable-gold=no.
1087 * configure: Regenerated.
1088
1089 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1090
1091 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1092 * config.in: Add undef of HAVE_isl.
1093 * configure: Regenerate.
1094 * configure.ac: Add definition of HAVE_isl.
1095 * graphite-blocking.c: Add checking of HAVE_isl.
1096 * graphite-dependences.c: Likewise.
1097 * graphite-interchange.c: Likewise.
1098 * graphite-isl-ast-to-gimple.c: Likewise.
1099 * graphite-optimize-isl.c: Likewise.
1100 * graphite-poly.c: Likewise.
1101 * graphite-scop-detection.c: Likewise.
1102 * graphite-sese-to-poly.c: Likewise.
1103 * graphite.c: Likewise.
1104 * toplev.c: Replace the checking of HAVE_cloog with the checking
1105 of HAVE_isl.
1106
1107 2014-08-18 Richard Biener <rguenther@suse.de>
1108
1109 PR tree-optimization/62090
1110 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1111 (fold_builtin_3): Do not fold snprintf.
1112 (fold_builtin_4): Likewise.
1113 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1114 moved from builtins.c.
1115 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1116 (gimple_fold_builtin): Do not fold sprintf here.
1117
1118 2014-08-18 Richard Biener <rguenther@suse.de>
1119
1120 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1121 code to ...
1122 (maybe_canonicalize_mem_ref_addr): ... this function.
1123 (fold_stmt_1): Apply it here before all simplification.
1124
1125 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1126
1127 PR ipa/61800
1128 * cgraph.h (cgraph_node::create_indirect_edge): Add
1129 compute_indirect_info param.
1130 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1131 indirect_info only when it is required.
1132 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1133 indirect_info fore cloned indirect edge.
1134
1135 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1137 Anna Tikhonova <anna.tikhonova@intel.com>
1138 Ilya Tocar <ilya.tocar@intel.com>
1139 Andrey Turetskiy <andrey.turetskiy@intel.com>
1140 Ilya Verbin <ilya.verbin@intel.com>
1141 Kirill Yukhin <kirill.yukhin@intel.com>
1142 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1143
1144 * config/i386/sse.md
1145 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1146 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1147
1148 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1149 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1150 Anna Tikhonova <anna.tikhonova@intel.com>
1151 Ilya Tocar <ilya.tocar@intel.com>
1152 Andrey Turetskiy <andrey.turetskiy@intel.com>
1153 Ilya Verbin <ilya.verbin@intel.com>
1154 Kirill Yukhin <kirill.yukhin@intel.com>
1155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1156
1157 * config/i386/sse.md
1158 (define_mode_iterator VF1_AVX512VL): New.
1159 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1160 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1161 New.
1162
1163 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1164 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1165 Anna Tikhonova <anna.tikhonova@intel.com>
1166 Ilya Tocar <ilya.tocar@intel.com>
1167 Andrey Turetskiy <andrey.turetskiy@intel.com>
1168 Ilya Verbin <ilya.verbin@intel.com>
1169 Kirill Yukhin <kirill.yukhin@intel.com>
1170 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1171
1172 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1173 * config/i386/i386.md
1174 (define_code_iterator any_float): New.
1175 (define_code_attr floatsuffix): New.
1176 * config/i386/sse.md
1177 (define_mode_iterator VF1_128_256VL): New.
1178 (define_mode_iterator VF2_512_256VL): New.
1179 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1180 TARGET check.
1181 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1182 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1183 New.
1184 (define_mode_attr qq2pssuff): New.
1185 (define_mode_attr sselongvecmode): New.
1186 (define_mode_attr sselongvecmodelower): New.
1187 (define_mode_attr sseintvecmode3): New.
1188 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1189 New.
1190 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1191 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1192 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1193 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1194
1195 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1197 Anna Tikhonova <anna.tikhonova@intel.com>
1198 Ilya Tocar <ilya.tocar@intel.com>
1199 Andrey Turetskiy <andrey.turetskiy@intel.com>
1200 Ilya Verbin <ilya.verbin@intel.com>
1201 Kirill Yukhin <kirill.yukhin@intel.com>
1202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1203
1204 * config/i386/sse.md
1205 (define_mode_iterator VF2_AVX512VL): New.
1206 (define_mode_attr sseintvecmode2): New.
1207 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1208 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1209 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1210 (define_insn
1211 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1212 Ditto.
1213 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1214 Ditto.
1215 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1216 Ditto.
1217
1218 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1220 Anna Tikhonova <anna.tikhonova@intel.com>
1221 Ilya Tocar <ilya.tocar@intel.com>
1222 Andrey Turetskiy <andrey.turetskiy@intel.com>
1223 Ilya Verbin <ilya.verbin@intel.com>
1224 Kirill Yukhin <kirill.yukhin@intel.com>
1225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1226
1227 * config/i386/i386.md
1228 (define_insn "*movoi_internal_avx"): Add evex version.
1229 (define_insn "*movti_internal"): Ditto.
1230
1231 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1233 Anna Tikhonova <anna.tikhonova@intel.com>
1234 Ilya Tocar <ilya.tocar@intel.com>
1235 Andrey Turetskiy <andrey.turetskiy@intel.com>
1236 Ilya Verbin <ilya.verbin@intel.com>
1237 Kirill Yukhin <kirill.yukhin@intel.com>
1238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1239
1240 * config/i386/i386.md
1241 (define_attr "isa"): Add avx512dq, noavx512dq.
1242 (define_attr "enabled"): Ditto.
1243 * config/i386/sse.md
1244 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1245
1246 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1248 Anna Tikhonova <anna.tikhonova@intel.com>
1249 Ilya Tocar <ilya.tocar@intel.com>
1250 Andrey Turetskiy <andrey.turetskiy@intel.com>
1251 Ilya Verbin <ilya.verbin@intel.com>
1252 Kirill Yukhin <kirill.yukhin@intel.com>
1253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1254
1255 * config/i386/i386.c
1256 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1257 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1258 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1259 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1260 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1261 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1262 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1263 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1264 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1265 * config/i386/sse.md
1266 (define_mode_iterator VMOVE): Allow V4TI mode.
1267 (define_mode_iterator V_AVX512VL): New.
1268 (define_mode_iterator V): New handling for AVX512VL.
1269 (define_insn "avx512f_load<mode>_mask"): Delete.
1270 (define_insn "<avx512>_load<mode>_mask"): New.
1271 (define_insn "avx512f_store<mode>_mask"): Delete.
1272 (define_insn "<avx512>_store<mode>_mask"): New.
1273
1274
1275 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1276
1277 PR sanitizer/62089
1278 * asan.c (instrument_derefs): Fix bitfield check.
1279
1280 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1281
1282 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1283 * config/rs6000/htm.md (ttest): Remove clobber.
1284 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1285 (and_operand): Reformat.
1286 (and_2rld_operand): New predicate.
1287 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1288 parameter.
1289 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1290 parameter. Handle AND directly.
1291 (rs6000_split_logical_di): Remove last parameter.
1292 (rs6000_split_logical): Remove last parameter. Remove obsolete
1293 comment.
1294 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1295 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1296 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1297 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1298 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1299 and 5 anonymous splitters): Delete.
1300 (and<mode>3): New expander.
1301 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1302 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1303 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1304 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1305 (floatdisf2_internal1): Remove clobbers.
1306 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1307 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1308 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1309 (and<mode>3 for BOOL_128): Remove clobber.
1310 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1311 rs6000_split_logical.
1312 (*bool<mode>3_internal for BOOL_128): Adjust call of
1313 rs6000_split_logical.
1314 (*boolc<mode>3_internal1 for BOOL_128,
1315 *boolc<mode>3_internal2 for BOOL_128,
1316 *boolcc<mode>3_internal1 for BOOL_128,
1317 *boolcc<mode>3_internal2 for BOOL_128,
1318 *eqv<mode>3_internal1 for BOOL_128,
1319 *eqv<mode>3_internal2 for BOOL_128,
1320 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1321 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1322 clobber.
1323 (*vec_reload_and_reg_<mptrsize>): Delete.
1324
1325 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1326
1327 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1328 and split, *boolccsi3_internal3 and split): Delete.
1329 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1330 *boolccdi3_internal3 and split): Delete.
1331 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1332 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1333
1334 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1335
1336 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1337 and split, *boolcsi3_internal3 and split): Delete.
1338 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1339 *boolcdi3_internal3 and split): Delete.
1340 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1341
1342 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1343
1344 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1345 <'u'>: Also support printing the low-order 16 bits.
1346 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1347 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1348 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1349 *booldi3_internal3 and split): Delete.
1350 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1351 *bool<mode>3_dot2): New.
1352 (two anonymous define_splits for non_logical_cint_operand): Merge.
1353
1354 2014-08-17 Marek Polacek <polacek@redhat.com>
1355 Manuel López-Ibáñez <manu@gcc.gnu.org>
1356
1357 PR c/62059
1358 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1359 (diagnostic_show_locus): Don't print caret diagnostic
1360 if a column is larger than the line_width.
1361
1362 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1363
1364 * common.opt: Make the ISL AST generator to be the main code generator
1365 of Graphite.
1366
1367 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1368
1369 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1370
1371 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1372
1373 PR target/61641
1374 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1375 Declare.
1376 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1377 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1378 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1379 Define.
1380 * config/pa/pa.md (begin_brtab): Delete insn.
1381 (end_brtab): Likewise.
1382
1383 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1384
1385 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1386
1387 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1388
1389 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1390 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1391 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1392 (get_dynamic_type): Remove.
1393 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1394 (clear_speculation): Bring to ipa-deivrt.h
1395 (get_class_context): Rename to ...
1396 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1397 (contains_type_p): Update.
1398 (get_dynamic_type): Rename to ...
1399 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1400 (possible_polymorphic_call_targets): UPdate.
1401 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1402 * ipa-prop.c (ipa_analyze_call_uses): Update.
1403
1404 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1405
1406 * doc/invoke.texi (SH options): Document missing processor variant
1407 options. Remove references to Hitachi. Undocument deprecated mspace
1408 option.
1409
1410 2014-08-15 Jason Merrill <jason@redhat.com>
1411
1412 * tree.c (type_hash_canon): Uncomment assert.
1413
1414 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1415
1416 * input.h (in_system_header_at): Add comment.
1417
1418 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1419
1420 PR fortran/44054
1421 * diagnostic.c (build_message_string): Make it extern.
1422 * diagnostic.h (build_message_string): Make it extern.
1423
1424 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1425
1426 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1427 load/store from/to non-floating class pseudo.
1428
1429 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1430
1431 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1432
1433 2014-08-15 Richard Biener <rguenther@suse.de>
1434
1435 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1436 (get_constraint_for_ssa_var): Remove dead code.
1437 (get_constraint_for_1): Adjust.
1438 (find_what_var_points_to): Likewise.
1439 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1440
1441 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1442
1443 PR target/61878
1444 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1445 (_mm512_mask_cmpge_epu32_mask): Ditto.
1446 (_mm512_cmpge_epu32_mask): Ditto.
1447 (_mm512_mask_cmpge_epi64_mask): Ditto.
1448 (_mm512_cmpge_epi64_mask): Ditto.
1449 (_mm512_mask_cmpge_epu64_mask): Ditto.
1450 (_mm512_cmpge_epu64_mask): Ditto.
1451 (_mm512_mask_cmple_epi32_mask): Ditto.
1452 (_mm512_cmple_epi32_mask): Ditto.
1453 (_mm512_mask_cmple_epu32_mask): Ditto.
1454 (_mm512_cmple_epu32_mask): Ditto.
1455 (_mm512_mask_cmple_epi64_mask): Ditto.
1456 (_mm512_cmple_epi64_mask): Ditto.
1457 (_mm512_mask_cmple_epu64_mask): Ditto.
1458 (_mm512_cmple_epu64_mask): Ditto.
1459 (_mm512_mask_cmplt_epi32_mask): Ditto.
1460 (_mm512_cmplt_epi32_mask): Ditto.
1461 (_mm512_mask_cmplt_epu32_mask): Ditto.
1462 (_mm512_cmplt_epu32_mask): Ditto.
1463 (_mm512_mask_cmplt_epi64_mask): Ditto.
1464 (_mm512_cmplt_epi64_mask): Ditto.
1465 (_mm512_mask_cmplt_epu64_mask): Ditto.
1466 (_mm512_cmplt_epu64_mask): Ditto.
1467 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1468 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1469 (_mm512_cmpneq_epu32_mask): Ditto.
1470 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1471 (_mm512_cmpneq_epi64_mask): Ditto.
1472 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1473 (_mm512_cmpneq_epu64_mask): Ditto.
1474 (_mm512_castpd_ps): Ditto.
1475 (_mm512_castpd_si512): Ditto.
1476 (_mm512_castps_pd): Ditto.
1477 (_mm512_castps_si512): Ditto.
1478 (_mm512_castsi512_ps): Ditto.
1479 (_mm512_castsi512_pd): Ditto.
1480 (_mm512_castpd512_pd128): Ditto.
1481 (_mm512_castps512_ps128): Ditto.
1482 (_mm512_castsi512_si128): Ditto.
1483 (_mm512_castpd512_pd256): Ditto.
1484 (_mm512_castps512_ps256): Ditto.
1485 (_mm512_castsi512_si256): Ditto.
1486 (_mm512_castpd128_pd512): Ditto.
1487 (_mm512_castps128_ps512): Ditto.
1488 (_mm512_castsi128_si512): Ditto.
1489 (_mm512_castpd256_pd512): Ditto.
1490 (_mm512_castps256_ps512): Ditto.
1491 (_mm512_castsi256_si512): Ditto.
1492 (_mm512_cmpeq_epu32_mask): Ditto.
1493 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1494 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1495 (_mm512_cmpeq_epu64_mask): Ditto.
1496 (_mm512_cmpgt_epu32_mask): Ditto.
1497 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1498 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1499 (_mm512_cmpgt_epu64_mask): Ditto.
1500 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1501 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1502 * config/i386/i386.c (enum ix86_builtins): Add
1503 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1504 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1505 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1506 (bdesc_args): Add __builtin_ia32_si512_256si,
1507 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1508 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1509 __builtin_ia32_pd512_pd.
1510 (ix86_expand_args_builtin): Handle new FTYPEs.
1511 * config/i386/sse.md (castmode): Add 512-bit modes.
1512 (AVX512MODE2P): New.
1513 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1514 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1515
1516 2014-08-15 Richard Biener <rguenther@suse.de>
1517
1518 * fold-const.c (tree_swap_operands_p): Put all constants
1519 last, also strip sign-changing NOPs when considering further
1520 canonicalization. Canonicalize also when optimizing for size.
1521
1522 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1523
1524 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1525 one_match > zero_match case to just before simple_sequence.
1526
1527 2014-08-15 Richard Biener <rguenther@suse.de>
1528
1529 * data-streamer.h (streamer_string_index, string_for_index):
1530 Remove.
1531 * data-streamer-out.c (streamer_string_index): Make static.
1532 * data-streamer-in.c (string_for_index): Likewise.
1533 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1534 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1535
1536 2014-08-15 Richard Biener <rguenther@suse.de>
1537
1538 PR tree-optimization/62031
1539 * tree-data-ref.c (dr_analyze_indices): Do not set
1540 DR_UNCONSTRAINED_BASE.
1541 (dr_may_alias_p): All indirect accesses have to go the
1542 formerly DR_UNCONSTRAINED_BASE path.
1543 * tree-data-ref.h (struct indices): Remove
1544 unconstrained_base member.
1545 (DR_UNCONSTRAINED_BASE): Remove.
1546
1547 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1548
1549 PR middle-end/62092
1550 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1551 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1552 in OMP_CLAUSE_MAP in some outer target region.
1553
1554 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1555
1556 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1557 name_expansion_cache.
1558 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1559 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1560 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1561 (difference_cannot_overflow_p): New parameter. Use affine
1562 expansion for equality check.
1563 (iv_elimination_compare_lt): Pass new argument.
1564
1565 2014-08-14 DJ Delorie <dj@redhat.com>
1566
1567 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1568 variables to the accumulator.
1569
1570 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1571 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1572 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1573 with far-far moves.
1574
1575 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1576 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1577 (umulqihi3_virt): Likewise.
1578 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1579 (umulqihi3_real): Likewise.
1580
1581 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1582
1583 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1584
1585 PR tree-optimization/62091
1586 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1587 function_entry_reached.
1588 (walk_aliased_vdefs): Clear it here.
1589 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1590
1591 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1592
1593 * ipa-utils.h (compare_virtual_tables): Declare.
1594 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1595
1596 2014-08-14 Marek Polacek <polacek@redhat.com>
1597
1598 DR 458
1599 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1600 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1601
1602 2014-08-14 Tom de Vries <tom@codesourcery.com>
1603
1604 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1605
1606 2014-08-14 Tom de Vries <tom@codesourcery.com>
1607
1608 PR rtl-optimization/62004
1609 PR rtl-optimization/62030
1610 * ifcvt.c (rtx_interchangeable_p): New function.
1611 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1612 * emit-rtl.h (mem_attrs_eq_p): Declare.
1613
1614 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1615
1616 * graphite-scop-detection.c:
1617 Add inclusion of cp-tree.h.
1618 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1619 in case they are pointers to object types
1620
1621 2014-08-14 Richard Biener <rguenther@suse.de>
1622
1623 * BASE-VER: Change to 5.0.0
1624
1625 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1626 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1627 Anna Tikhonova <anna.tikhonova@intel.com>
1628 Ilya Tocar <ilya.tocar@intel.com>
1629 Andrey Turetskiy <andrey.turetskiy@intel.com>
1630 Ilya Verbin <ilya.verbin@intel.com>
1631 Kirill Yukhin <kirill.yukhin@intel.com>
1632 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1633
1634 * config/i386/sse.md (define_mode_attr avx512): New.
1635 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1636 V4DI modes.
1637 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1638 (define_mode_attr ssse3_avx2): Ditto.
1639 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1640 (define_mode_attr avx2_avx512bw): New.
1641 (define_mode_attr ssedoublemodelower): New.
1642 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1643 V32HI, V64QI modes.
1644 (define_mode_attr ssebytemode): Allow V8DI modes.
1645 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1646 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1647 (define_mode_attr ssePSmode2): New.
1648 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1649 V16HI, V32HI modes.
1650 (define_mode_attr dbpsadbwmode): New.
1651 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1652 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1653 (vi8_sse4_1_avx2_avx512): New.
1654 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1655 mode attribute.
1656 (define_mode_attr blendbits): Move before its immediate use.
1657
1658 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1660 Anna Tikhonova <anna.tikhonova@intel.com>
1661 Ilya Tocar <ilya.tocar@intel.com>
1662 Andrey Turetskiy <andrey.turetskiy@intel.com>
1663 Ilya Verbin <ilya.verbin@intel.com>
1664 Kirill Yukhin <kirill.yukhin@intel.com>
1665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1666
1667 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1668 * config/i386/subst.md
1669 (define_mode_iterator SUBST_V): Update.
1670 (define_mode_iterator SUBST_A): Ditto.
1671 (define_subst_attr "mask_operand7"): New.
1672 (define_subst_attr "mask_operand10"): New.
1673 (define_subst_attr "mask_operand_arg34") : New.
1674 (define_subst_attr "mask_expand_op3"): New.
1675 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1676 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1677 (define_subst_attr "mask_avx512vl_condition"): New.
1678 (define_subst_attr "round_mask_operand4"): Ditto.
1679 (define_subst_attr "round_mask_scalar_op3"): Delete.
1680 (define_subst_attr "round_mask_op4"): New.
1681 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1682 V16SImode.
1683 (define_subst_attr "round_modev8sf_condition"): New.
1684 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1685 <MODE>mode.
1686 (define_subst_attr "round_saeonly_mask_operand4"): New.
1687 (define_subst_attr "round_saeonly_mask_op4"): New.
1688 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1689 V8DImode, V16SImode.
1690 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1691 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1692 (define_subst_attr "mask_expand4_args"): New.
1693 (define_subst "mask_expand4"): New.
1694
1695 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1697 Anna Tikhonova <anna.tikhonova@intel.com>
1698 Ilya Tocar <ilya.tocar@intel.com>
1699 Andrey Turetskiy <andrey.turetskiy@intel.com>
1700 Ilya Verbin <ilya.verbin@intel.com>
1701 Kirill Yukhin <kirill.yukhin@intel.com>
1702 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1703
1704 * config/i386/i386.md
1705 (define_attr "isa"): Add avx512bw,noavx512bw.
1706 (define_attr "enabled"): Ditto.
1707 (define_split): Add 32/64-bit mask logic.
1708 (define_insn "*k<logic>qi"): New.
1709 (define_insn "*k<logic>hi"): New.
1710 (define_insn "*anddi_1"): Add mask version.
1711 (define_insn "*andsi_1"): Ditto.
1712 (define_insn "*<code><mode>_1"): Ditto.
1713 (define_insn "*<code>hi_1"): Ditto.
1714 (define_insn "kxnor<mode>"): New.
1715 (define_insn "kunpcksi"): New.
1716 (define_insn "kunpckdi"): New.
1717 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1718 (define_insn "*one_cmplhi2_1"): Ditto.
1719
1720 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1721 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1722 Anna Tikhonova <anna.tikhonova@intel.com>
1723 Ilya Tocar <ilya.tocar@intel.com>
1724 Andrey Turetskiy <andrey.turetskiy@intel.com>
1725 Ilya Verbin <ilya.verbin@intel.com>
1726 Kirill Yukhin <kirill.yukhin@intel.com>
1727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1728
1729 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1730 V32HImode.
1731
1732 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1733 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1734 Anna Tikhonova <anna.tikhonova@intel.com>
1735 Ilya Tocar <ilya.tocar@intel.com>
1736 Andrey Turetskiy <andrey.turetskiy@intel.com>
1737 Ilya Verbin <ilya.verbin@intel.com>
1738 Kirill Yukhin <kirill.yukhin@intel.com>
1739 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1740
1741 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1742 registers.
1743 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1744 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1745 xmm/ymm16+ when availble.
1746 * config/i386/i386.h
1747 (HARD_REGNO_NREGS): Add mask regs.
1748 (VALID_AVX512F_REG_MODE): Ditto.
1749 (VALID_AVX512F_REG_MODE) : Define.
1750 (VALID_MASK_AVX512BW_MODE): Ditto.
1751 (reg_class) (MASK_REG_P(X)): Define.
1752 * config/i386/i386.md: Do not split long moves with mask register,
1753 use kmovb if avx512bw is availible.
1754 (movdi_internal): Handle mask registers.
1755
1756 2014-08-14 Richard Biener <rguenther@suse.de>
1757
1758 PR tree-optimization/62081
1759 * tree-ssa-loop.c (pass_fix_loops): New pass.
1760 (pass_tree_loop::gate): Do not fixup loops here.
1761 * tree-pass.h (make_pass_fix_loops): Declare.
1762 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1763
1764 2014-08-14 Richard Biener <rguenther@suse.de>
1765
1766 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1767 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1768
1769 2014-08-14 Richard Biener <rguenther@suse.de>
1770
1771 PR tree-optimization/62090
1772 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1773 (fold_builtin_2): Do not fold sprintf.
1774 (fold_builtin_3): Likewise.
1775 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1776 moved from builtins.c.
1777 (gimple_fold_builtin): Fold sprintf.
1778
1779 2014-08-14 Richard Biener <rguenther@suse.de>
1780
1781 PR rtl-optimization/62079
1782 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1783 run cleanup_cfg.
1784
1785 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1786
1787 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1788 current_function_decl.
1789
1790 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1791
1792 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1793 cgraph_function_node to cgraph_node::function_symbol
1794 refactoring.
1795
1796 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1797
1798 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1799 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1800
1801 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1802
1803 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1804 warning.
1805
1806 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1807
1808 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1809 generator.
1810
1811 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1812
1813 PR target/62025
1814 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1815 any registers that are used in mem_insn.
1816
1817 2014-08-12 Steve Ellcey <sellcey@mips.com>
1818
1819 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1820
1821 2014-08-12 Steve Ellcey <sellcey@mips.com>
1822
1823 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1824 (MULTILIB_DIRNAMES): Ditto.
1825 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1826 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1827 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1828 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1829 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1830 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1831
1832 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1833
1834 PR target/61413
1835 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1836 of __ARM_SIZEOF_WCHAR_T.
1837
1838 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1839
1840 PR target/62098
1841 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1842 Remove unnecessary attributes.
1843
1844 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1845
1846 * internal-fn.c (init_internal_fns): Fix off-by-one.
1847
1848 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1849 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1850 Anna Tikhonova <anna.tikhonova@intel.com>
1851 Ilya Tocar <ilya.tocar@intel.com>
1852 Andrey Turetskiy <andrey.turetskiy@intel.com>
1853 Ilya Verbin <ilya.verbin@intel.com>
1854 Kirill Yukhin <kirill.yukhin@intel.com>
1855 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1856
1857 * config/i386/i386.c (standard_sse_constant_opcode): Use
1858 vpxord/vpternlog if avx512 is availible.
1859
1860 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1861
1862 PR middle-end/62103
1863 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1864 bitfields, that is when size doesn't match the size of type or the
1865 size of the constructor.
1866
1867 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1868
1869 * config/rs6000/constraints.md (wh constraint): New constraint,
1870 for FP registers if direct move is available.
1871 (wi constraint): New constraint, for VSX/FP registers that can
1872 handle 64-bit integers.
1873 (wj constraint): New constraint for VSX/FP registers that can
1874 handle 64-bit integers for direct moves.
1875 (wk constraint): New constraint for VSX/FP registers that can
1876 handle 64-bit doubles for direct moves.
1877 (wy constraint): Make documentation match implementation.
1878
1879 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
1880 scalar_in_vmx_p field to simplify tests of whether SFmode or
1881 DFmode can go in the Altivec registers.
1882 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
1883 (rs6000_setup_reg_addr_masks): Likewise.
1884 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
1885 field, and wh/wi/wj/wk constraints.
1886 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
1887 the wh/wi/wj/wk constraints.
1888 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
1889 upper registers, prefer VSX registers unless the operation is a
1890 memory operation with REG+OFFSET addressing.
1891
1892 * config/rs6000/vsx.md (VSr mode attribute): Add support for
1893 DImode. Change SFmode to use ww constraint instead of d to allow
1894 SF registers in the upper registers.
1895 (VSr2): Likewise.
1896 (VSr3): Likewise.
1897 (VSr5): Fix thinko in comment.
1898 (VSa): New mode attribute that is an alternative to wa, that
1899 returns the VSX register class that a mode can go in, but may not
1900 be the preferred register class.
1901 (VS_64dm): New mode attribute for appropriate register classes for
1902 referencing 64-bit elements of vectors for direct moves and normal
1903 moves.
1904 (VS_64reg): Likewise.
1905 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
1906 register allocator to only registers the data type can handle.
1907 (vsx_le_perm_load_<mode>): Likewise.
1908 (vsx_le_perm_store_<mode>): Likewise.
1909 (vsx_xxpermdi2_le_<mode>): Likewise.
1910 (vsx_xxpermdi4_le_<mode>): Likewise.
1911 (vsx_lxvd2x2_le_<mode>): Likewise.
1912 (vsx_lxvd2x4_le_<mode>): Likewise.
1913 (vsx_stxvd2x2_le_<mode>): Likewise.
1914 (vsx_add<mode>3): Likewise.
1915 (vsx_sub<mode>3): Likewise.
1916 (vsx_mul<mode>3): Likewise.
1917 (vsx_div<mode>3): Likewise.
1918 (vsx_tdiv<mode>3_internal): Likewise.
1919 (vsx_fre<mode>2): Likewise.
1920 (vsx_neg<mode>2): Likewise.
1921 (vsx_abs<mode>2): Likewise.
1922 (vsx_nabs<mode>2): Likewise.
1923 (vsx_smax<mode>3): Likewise.
1924 (vsx_smin<mode>3): Likewise.
1925 (vsx_sqrt<mode>2): Likewise.
1926 (vsx_rsqrte<mode>2): Likewise.
1927 (vsx_tsqrt<mode>2_internal): Likewise.
1928 (vsx_fms<mode>4): Likewise.
1929 (vsx_nfma<mode>4): Likewise.
1930 (vsx_eq<mode>): Likewise.
1931 (vsx_gt<mode>): Likewise.
1932 (vsx_ge<mode>): Likewise.
1933 (vsx_eq<mode>_p): Likewise.
1934 (vsx_gt<mode>_p): Likewise.
1935 (vsx_ge<mode>_p): Likewise.
1936 (vsx_xxsel<mode>): Likewise.
1937 (vsx_xxsel<mode>_uns): Likewise.
1938 (vsx_copysign<mode>3): Likewise.
1939 (vsx_float<VSi><mode>2): Likewise.
1940 (vsx_floatuns<VSi><mode>2): Likewise.
1941 (vsx_fix_trunc<mode><VSi>2): Likewise.
1942 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
1943 (vsx_x<VSv>r<VSs>i): Likewise.
1944 (vsx_x<VSv>r<VSs>ic): Likewise.
1945 (vsx_btrunc<mode>2): Likewise.
1946 (vsx_b2trunc<mode>2): Likewise.
1947 (vsx_floor<mode>2): Likewise.
1948 (vsx_ceil<mode>2): Likewise.
1949 (vsx_<VS_spdp_insn>): Likewise.
1950 (vsx_xscvspdp): Likewise.
1951 (vsx_xvcvspuxds): Likewise.
1952 (vsx_float_fix_<mode>2): Likewise.
1953 (vsx_set_<mode>): Likewise.
1954 (vsx_extract_<mode>_internal1): Likewise.
1955 (vsx_extract_<mode>_internal2): Likewise.
1956 (vsx_extract_<mode>_load): Likewise.
1957 (vsx_extract_<mode>_store): Likewise.
1958 (vsx_splat_<mode>): Likewise.
1959 (vsx_xxspltw_<mode>): Likewise.
1960 (vsx_xxspltw_<mode>_direct): Likewise.
1961 (vsx_xxmrghw_<mode>): Likewise.
1962 (vsx_xxmrglw_<mode>): Likewise.
1963 (vsx_xxsldwi_<mode>): Likewise.
1964 (vsx_xscvdpspn): Tighten constraints to only use register classes
1965 the types use.
1966 (vsx_xscvspdpn): Likewise.
1967 (vsx_xscvdpspn_scalar): Likewise.
1968
1969 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
1970 wj, and wk constraints.
1971 (GPR_REG_CLASS_P): New helper macro for register classes targeting
1972 general purpose registers.
1973
1974 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
1975 direct moves.
1976 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
1977 DImode instead of wm. Use wk constraint for direct move of DFmode
1978 instead of wm.
1979 (extendsidi2_lfiwax): Likewise.
1980 (lfiwax): Likewise.
1981 (lfiwzx): Likewise.
1982 (movdi_internal64): Likewise.
1983
1984 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
1985 wk constraints. Make the wy constraint documentation match them
1986 implementation.
1987
1988 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
1989
1990 Replacement of isl_int by isl_val
1991 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
1992 (compute_bounds_for_param): use isl_val instead of isl_int
1993 (compute_bounds_for_loop): likewise
1994 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
1995 (build_linearized_memory_access): use isl_val instead of isl_int
1996 (pdr_stride_in_loop): likewise
1997 * graphite-optimize-isl.c:
1998 (getPrevectorMap): use isl_val instead of isl_int
1999 * graphite-poly.c:
2000 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2001 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2002 (extern the_isl_ctx): declare
2003 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2004 (extract_affine_gmp): likewise
2005 (wrap): likewise
2006 (build_loop_iteration_domains): likewise
2007 (add_param_constraints): likewise
2008
2009 2014-08-11 Richard Biener <rguenther@suse.de>
2010
2011 PR tree-optimization/62075
2012 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2013 handle uses in patterns.
2014
2015 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2016 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2017 Anna Tikhonova <anna.tikhonova@intel.com>
2018 Ilya Tocar <ilya.tocar@intel.com>
2019 Andrey Turetskiy <andrey.turetskiy@intel.com>
2020 Ilya Verbin <ilya.verbin@intel.com>
2021 Kirill Yukhin <kirill.yukhin@intel.com>
2022 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2023
2024 * common/config/i386/i386-common.c
2025 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2026 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2027 (ix86_handle_option): Handle OPT_mavx512vl.
2028 * config/i386/cpuid.h (bit_AVX512VL): Define.
2029 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2030 set -mavx512vl accordingly.
2031 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2032 OPTION_MASK_ISA_AVX512VL.
2033 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2034 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2035 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2036 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2037 * config/i386/i386.h (TARGET_AVX512VL): Define.
2038 (TARGET_AVX512VL_P(x)): Ditto.
2039 * config/i386/i386.opt: Add mavx512vl.
2040
2041 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2042
2043 PR tree-optimization/62073
2044 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2045 a basic block.
2046
2047 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2049 Anna Tikhonova <anna.tikhonova@intel.com>
2050 Ilya Tocar <ilya.tocar@intel.com>
2051 Andrey Turetskiy <andrey.turetskiy@intel.com>
2052 Ilya Verbin <ilya.verbin@intel.com>
2053 Kirill Yukhin <kirill.yukhin@intel.com>
2054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2055
2056 * common/config/i386/i386-common.c
2057 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2058 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2059 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2060 (ix86_handle_option): Handle OPT_mavx512bw.
2061 * config/i386/cpuid.h (bit_AVX512BW): Define.
2062 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2063 set -mavx512bw accordingly.
2064 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2065 OPTION_MASK_ISA_AVX512BW.
2066 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2067 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2068 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2069 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2070 * config/i386/i386.h (TARGET_AVX512BW): Define.
2071 (TARGET_AVX512BW_P(x)): Ditto.
2072 * config/i386/i386.opt: Add mavx512bw.
2073
2074 2014-08-11 Richard Biener <rguenther@suse.de>
2075
2076 PR tree-optimization/62070
2077 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2078 Remove SSA checking.
2079
2080 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2081
2082 * asan.c (asan_check_flags): New enum.
2083 (build_check_stmt_with_calls): Removed function.
2084 (build_check_stmt): Split inlining logic to
2085 asan_expand_check_ifn.
2086 (instrument_derefs): Rename parameter.
2087 (instrument_mem_region_access): Rename parameter.
2088 (instrument_strlen_call): Likewise.
2089 (asan_expand_check_ifn): New function.
2090 (asan_instrument): Remove old code.
2091 (pass_sanopt::execute): Change handling of
2092 asan-instrumentation-with-call-threshold.
2093 (asan_clear_shadow): Fix formatting.
2094 (asan_function_start): Likewise.
2095 (asan_emit_stack_protection): Likewise.
2096 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2097 Update description.
2098 * internal-fn.c (expand_ASAN_CHECK): New function.
2099 * internal-fn.def (ASAN_CHECK): New internal function.
2100 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2101 Update description.
2102 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2103 * tree.c: Small comment fix.
2104
2105 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2106
2107 * gimple.c (gimple_call_fnspec): Support internal functions.
2108 (gimple_call_return_flags): Use const.
2109 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2110 * internal-fn.def: Add fnspec information.
2111 * internal-fn.h (internal_fn_fnspec): New function.
2112 (init_internal_fns): Declare new function.
2113 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2114 (init_internal_fns): New function.
2115 * tree-core.h: Update macro call.
2116 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2117
2118 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2119
2120 * lto-streamer.h (struct output_block::symbol): Change from
2121 struct symtab_node to plain symtab_node.
2122 (referenced_from_this_partition_p): Change first parameter
2123 from struct symtab_node to plain symtab_node.
2124
2125 2014-08-10 Marek Polacek <polacek@redhat.com>
2126
2127 PR c/51849
2128 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2129
2130 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2131
2132 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2133 DECL correctly; do not give up on types in static storage.
2134
2135 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2136
2137 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2138
2139 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2140
2141 * graphite-isl-ast-to-gimple.c:
2142 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2143
2144 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2145
2146 2014-08-08 Guozhi Wei <carrot@google.com>
2147
2148 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2149
2150 2014-08-08 Cary Coutant <ccoutant@google.com>
2151
2152 * dwarf2out.c (get_skeleton_type_unit): Remove.
2153 (output_skeleton_debug_sections): Remove skeleton type units.
2154 (output_comdat_type_unit): Likewise.
2155 (dwarf2out_finish): Likewise.
2156
2157 2014-08-07 Yi Yang <ahyangyi@google.com>
2158
2159 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2160
2161 2014-08-08 Richard Biener <rguenther@suse.de>
2162
2163 * lto-streamer.h (struct lto_input_block): Make it a class
2164 with a constructor.
2165 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2166 (struct lto_function_header, struct lto_simple_header,
2167 struct lto_simple_header_with_strings,
2168 struct lto_decl_header, struct lto_function_header): Make
2169 a simple inheritance hieararchy. Remove unused fields.
2170 (struct lto_asm_header): Remove.
2171 * lto-streamer-out.c (produce_asm): Adjust.
2172 (lto_output_toplevel_asms): Likewise.
2173 (produce_asm_for_decls): Likewise.
2174 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2175 * data-streamer-in.c (string_for_index): Likewise.
2176 * ipa-inline-analysis.c (inline_read_section): Likewise.
2177 * ipa-prop.c (ipa_prop_read_section): Likewise.
2178 (read_replacements_section): Likewise.
2179 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2180 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2181 (lto_destroy_simple_input_block): Likewise.
2182 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2183 (lto_input_toplevel_asms): Likewise.
2184
2185 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2187 Anna Tikhonova <anna.tikhonova@intel.com>
2188 Ilya Tocar <ilya.tocar@intel.com>
2189 Andrey Turetskiy <andrey.turetskiy@intel.com>
2190 Ilya Verbin <ilya.verbin@intel.com>
2191 Kirill Yukhin <kirill.yukhin@intel.com>
2192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2193
2194 * common/config/i386/i386-common.c
2195 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2196 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2197 (ix86_handle_option): Handle OPT_mavx512dq.
2198 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2199 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2200 set -mavx512dq accordingly.
2201 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2202 OPTION_MASK_ISA_AVX512DQ.
2203 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2204 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2205 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2206 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2207 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2208 (TARGET_AVX512DQ_P(x)): Ditto.
2209 * config/i386/i386.opt: Add mavx512dq.
2210
2211 2014-08-08 Richard Biener <rguenther@suse.de>
2212
2213 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2214 target_percent, target_percent_s): Export.
2215 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2216 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2217 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2218 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2219 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2220 Move to gimple-fold.c.
2221 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2222 strcat and strcpy.
2223 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2224 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2225 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2226 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2227 (rewrite_call_expr_array): Remove.
2228 (fold_builtin_sprintf_chk): Likewise.
2229 (fold_builtin_snprintf_chk): Likewise.
2230 (fold_builtin_varargs): Remove handling of sprintf_chk,
2231 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2232 (gimple_fold_builtin_sprintf_chk): Remove.
2233 (gimple_fold_builtin_snprintf_chk): Likewise.
2234 (gimple_fold_builtin_varargs): Likewise.
2235 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2236 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2237 * gimple.c (gimple_seq_add_seq_without_update): New function.
2238 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2239 * gimple-fold.c: Include output.h.
2240 (gsi_replace_with_seq_vops): New function, split out from ...
2241 (gimplify_and_update_call_from_tree): ... here.
2242 (replace_call_with_value): New function.
2243 (replace_call_with_call_and_fold): Likewise.
2244 (var_decl_component_p): Moved from builtins.c.
2245 (gimple_fold_builtin_memory_op): Moved from builtins.c
2246 fold_builtin_memory_op and rewritten to GIMPLE.
2247 (gimple_fold_builtin_memset): Likewise.
2248 (gimple_fold_builtin_strcpy): Likewise.
2249 (gimple_fold_builtin_strncpy): Likewise.
2250 (gimple_fold_builtin_strcat): Likewise.
2251 (gimple_fold_builtin_fputs): Likewise.
2252 (gimple_fold_builtin_memory_chk): Likewise.
2253 (gimple_fold_builtin_stxcpy_chk): Likewise.
2254 (gimple_fold_builtin_stxncpy_chk): Likewise.
2255 (gimple_fold_builtin_snprintf_chk): Likewise.
2256 (gimple_fold_builtin_sprintf_chk): Likewise.
2257 (gimple_fold_builtin_strlen): New function.
2258 (gimple_fold_builtin_with_strlen): New function split out from
2259 gimple_fold_builtin.
2260 (gimple_fold_builtin): Change signature and handle
2261 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2262 here. Call gimple_fold_builtin_with_strlen.
2263 (gimple_fold_call): Adjust.
2264
2265 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2266
2267 * calls.c (precompute_arguments): Check
2268 promoted_for_signed_and_unsigned_p and set the promoted mode.
2269 (promoted_for_signed_and_unsigned_p): New function.
2270 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2271 and set the promoted mode.
2272 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2273 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2274 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2275
2276
2277 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2278
2279 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2280 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2281 (expand_call): Likewise.
2282 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2283 to get promoted mode.
2284 * combine.c (record_promoted_value): Skip > 0 comparison with
2285 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2286 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2287 of SUBREG_PROMOTED_UNSIGNED_P.
2288 (convert_modes): Likewise.
2289 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2290 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2291 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2292 SUBREG_PROMOTED_UNSIGNED_SET.
2293 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2294 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2295 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2296 SUBREG_PROMOTED_SET.
2297 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2298 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2299 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2300 of SUBREG_PROMOTED_UNSIGNED_P.
2301 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2302 (SUBREG_PROMOTED_SET): New define.
2303 (SUBREG_PROMOTED_GET): Likewise.
2304 (SUBREG_PROMOTED_SIGN): Likewise.
2305 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2306 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2307 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2308 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2309 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2310 (nonzero_bits1): Skip > 0 comparison with the results as
2311 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2312 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2313 of !SUBREG_PROMOTED_UNSIGNED_P.
2314 * simplify-rtx.c (simplify_unary_operation_1): Use new
2315 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2316 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2317 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2318 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2319
2320 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2321
2322 * ipa-devirt.c: Include gimple-pretty-print.h
2323 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2324 further tests.
2325 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2326 (get_polymorphic_call_info): Fix return value
2327 (type_change_info): New sturcture based on ipa-prop
2328 variant.
2329 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2330 based on ipa-prop variant.
2331 (extr_type_from_vtbl_ptr_store): New function
2332 based on ipa-prop variant.
2333 (record_known_type): New function.
2334 (check_stmt_for_type_change): New function.
2335 (get_dynamic_type): New function.
2336 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2337 * tree-ssa-pre.c: ipa-utils.h
2338 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2339 machinery; sanity check with ipa-prop devirtualization.
2340 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2341 polymorphic flag.
2342
2343 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2344
2345 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2346 * alias.c, cfgexpand.c, cgraphbuild.c,
2347 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2348 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2349 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2350 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2351 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2352 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2353 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2354 dse.c, except.c, gengtype.c, gimple-expr.c,
2355 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2356 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2357 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2358 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2359 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2360 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2361 pointer-set.h.
2362 * pointer-set.c: Remove file.
2363 * pointer-set.h: Remove file.
2364
2365 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2366
2367 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2368 * config/arm/types.md (f_sels, f_seld): Delete.
2369
2370 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2371
2372 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2373 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2374 (aarch64_movdi_<mode>high): Likewise.
2375 (aarch64_mov<mode>high_di): Likewise.
2376 (aarch64_movdi_<mode>low): Likewise.
2377 (aarch64_mov<mode>low_di): Likewise.
2378 (aarch64_movtilow_tilow): Likewise.
2379 Add comment explaining usage of fp,simd attributes and of
2380 TARGET_FLOAT and TARGET_SIMD.
2381
2382 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2383 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2384
2385 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2386 Use MOVN when one of the half-words is 0xffff.
2387
2388 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2389
2390 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2391
2392 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2393
2394 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2395 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2396 (rfs_str): String corresponding to RFS_* constants.
2397 (rank_for_schedule_stats_t): New typedef.
2398 (rank_for_schedule_stats): New static variable.
2399 (rfs_result): New static function.
2400 (rank_for_schedule): Track statistics for deciding heuristics.
2401 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2402 static functions.
2403 (ready_sort): Use them for debug printouts.
2404 (schedule_block): Init statistics state. Print statistics on
2405 rank_for_schedule decisions.
2406
2407 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2408
2409 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2410
2411 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2412
2413 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2414 constraint.
2415
2416 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2417
2418 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2419 function to not conflict.
2420 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2421 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2422 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2423 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2424 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2425 of pointer_map.
2426
2427 2014-08-07 Marek Polacek <polacek@redhat.com>
2428
2429 * fold-const.c (fold_binary_loc): Add folding of
2430 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2431
2432 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2433
2434 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2435 instead of type size.
2436 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2437
2438 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2439
2440 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2441 (*thumb1_movqi_insn): Likewise.
2442 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2443
2444 2014-08-07 Tom de Vries <tom@codesourcery.com>
2445
2446 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2447 (glibc_2_11_or_earlier): Remove effective-target keywords.
2448
2449 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2450
2451 * config/arm/arm.c (bdesc_2arg): Fix typo.
2452 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2453
2454 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2455
2456 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2457
2458 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2459
2460 PR debug/61923
2461 * haifa-sched.c (advance_one_cycle): Fix dump.
2462 (schedule_block): Don't advance cycle if we are already at the
2463 beginning of the cycle.
2464
2465 2014-08-06 Martin Jambor <mjambor@suse.cz>
2466
2467 PR ipa/61393
2468 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2469
2470 2014-08-06 Richard Biener <rguenther@suse.de>
2471
2472 PR lto/62034
2473 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2474 SCCs here.
2475 (lto_input_tree): Pop SCCs here.
2476
2477 2014-08-06 Richard Biener <rguenther@suse.de>
2478
2479 PR tree-optimization/61320
2480 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2481 handle misaligned loads.
2482
2483 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2484
2485 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2486 (aarch64_expand_vec_perm_const): Check for dup before zip.
2487
2488 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2489
2490 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2491 CONST_INT_P instead of GET_CODE and compare.
2492 (aarch64_select_cc_mode): Likewise.
2493 (aarch64_print_operand): Likewise.
2494 (aarch64_rtx_costs): Likewise.
2495 (aarch64_simd_valid_immediate): Likewise.
2496 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2497 (aarch64_simd_emit_pair_result_insn): Likewise.
2498
2499 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2500
2501 * gdbhooks.py (find_gcc_source_dir): New helper function.
2502 (class PassNames): New class, locating and parsing passes.def.
2503 (class BreakOnPass): New command "break-on-pass".
2504
2505 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2506
2507 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2508 getting olde.
2509
2510 2014-08-05 Richard Biener <rguenther@suse.de>
2511
2512 PR rtl-optimization/61672
2513 * emit-rtl.h (mem_attrs_eq_p): Declare.
2514 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2515 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2516 * cfgcleanup.c (merge_memattrs): Likewise.
2517 Include emit-rtl.h.
2518
2519 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2520
2521 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2522 rather than singleton vectors.
2523 (vqdmlsls_lane_s32): Likewise.
2524
2525 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2526
2527 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2528 Use VSDQ_HSI mode iterator.
2529 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2530 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2531 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2532 Use BUILTIN_VDQHS macro.
2533 (sqrdmulh_laneq): Likewise.
2534 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2535 (vqdmlals_laneq_s32): Likewise.
2536 (vqdmlslh_laneq_s16): Likewise.
2537 (vqdmlsls_laneq_s32): Likewise.
2538 (vqdmulhh_laneq_s16): Likewise.
2539 (vqdmulhs_laneq_s32): Likewise.
2540 (vqrdmulhh_laneq_s16): Likewise.
2541 (vqrdmulhs_laneq_s32): Likewise.
2542
2543 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2544
2545 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2546 (vmuld_laneq_f64): Likewise.
2547 (vmuls_laneq_f32): Likewise.
2548 (vmul_n_f64): Likewise.
2549 (vmuld_lane_f64): Reimplement in C.
2550 (vmuls_lane_f32): Likewise.
2551
2552 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2553
2554 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2555 to reservation.
2556 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2557
2558 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2559
2560 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2561 (rbitsi2): Likewise.
2562 (*arm_rev): Set predicable and predicable_short_it attributes.
2563
2564 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2565
2566 * convert.c (convert_to_integer): Guard transformation to lrint by
2567 -fno-math-errno.
2568
2569 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2570
2571 * config/aarch64/aarch64-builtins.c
2572 (aarch64_simd_builtin_type_mode): Delete.
2573 (v8qi_UP): Remap to V8QImode.
2574 (v4hi_UP): Remap to V4HImode.
2575 (v2si_UP): Remap to V2SImode.
2576 (v2sf_UP): Remap to V2SFmode.
2577 (v1df_UP): Remap to V1DFmode.
2578 (di_UP): Remap to DImode.
2579 (df_UP): Remap to DFmode.
2580 (v16qi_UP):V16QImode.
2581 (v8hi_UP): Remap to V8HImode.
2582 (v4si_UP): Remap to V4SImode.
2583 (v4sf_UP): Remap to V4SFmode.
2584 (v2di_UP): Remap to V2DImode.
2585 (v2df_UP): Remap to V2DFmode.
2586 (ti_UP): Remap to TImode.
2587 (ei_UP): Remap to EImode.
2588 (oi_UP): Remap to OImode.
2589 (ci_UP): Map to CImode.
2590 (xi_UP): Remap to XImode.
2591 (si_UP): Remap to SImode.
2592 (sf_UP): Remap to SFmode.
2593 (hi_UP): Remap to HImode.
2594 (qi_UP): Remap to QImode.
2595 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2596 (VAR1): Build builtin name.
2597 (aarch64_init_simd_builtins): Remove dead code.
2598
2599 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2600
2601 * graphite-isl-ast-to-gimple.c:
2602 (set_options): New function.
2603 (scop_to_isl_ast): Add calling of set_options.
2604
2605 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2606
2607 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2608 (analyze_iv_to_split_insn): Don't initialize them.
2609 (get_ivts_expr): Removed.
2610 (allocate_basic_variable, insert_base_initialization): Use
2611 SET_SRC instead of *get_ivts_expr.
2612 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2613
2614 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2615
2616 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2617 (translate_isl_ast_for_loop): Add checking of the
2618 flag_loop_parallelize_all.
2619 (ast_build_before_for): New function.
2620 (scop_to_isl_ast): Add checking of the
2621 flag_loop_parallelize_all.
2622 * graphite-dependences.c: Move the defenition of the
2623 scop_get_dependences from graphite-optimize-isl.c to this file.
2624 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2625 (carries_deps): Add checking of the x's value.
2626 * graphite-optimize-isl.c: Move the defenition of the
2627 scop_get_dependences to graphite-dependences.c.
2628 * graphite-poly.h: Add declarations of scop_get_dependences
2629 and carries_deps.
2630
2631 2014-08-04 Rohit <rohitarulraj@freescale.com>
2632
2633 PR target/60102
2634 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2635 names.
2636 (alt_reg_names): Likewise.
2637 (rs6000_dwarf_register_span): For SPE high registers, replace
2638 dwarf register numbers with GCC hard register numbers.
2639 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2640 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2641 register number for the corresponding GCC hard register number.
2642 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2643 newly added GCC hard register numbers for SPE high registers.
2644 (DWARF_FRAME_REGISTERS): Likewise.
2645 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2646 (DWARF_FRAME_REGNUM): Likewise.
2647 (FIXED_REGISTERS): Likewise.
2648 (CALL_USED_REGISTERS): Likewise.
2649 (CALL_REALLY_USED_REGISTERS): Likewise.
2650 (REG_ALLOC_ORDER): Likewise.
2651 (enum reg_class): Likewise.
2652 (REG_CLASS_NAMES): Likewise.
2653 (REG_CLASS_CONTENTS): Likewise.
2654 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2655
2656 2014-08-04 Richard Biener <rguenther@suse.de>
2657
2658 * gimple-fold.h (gimple_fold_builtin): Remove.
2659 * gimple-fold.c (gimple_fold_builtin): Make static.
2660 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2661 fold_stmt, not gimple_fold_builtin.
2662
2663 2014-08-04 Martin Liska <mliska@suse.cz>
2664
2665 * cgraph.h (csi_end_p): Removed.
2666 (csi_next): Likewise.
2667 (csi_node): Likewise.
2668 (csi_start): Likewise.
2669 (cgraph_node_in_set_p): Likewise.
2670 (cgraph_node_set_size): Likewise.
2671 (vsi_end_p): Likewise.
2672 (vsi_next): Likewise.
2673 (vsi_node): Likewise.
2674 (vsi_start): Likewise.
2675 (varpool_node_set_size): Likewise.
2676 (cgraph_node_set_nonempty_p): Likewise.
2677 (varpool_node_set_nonempty_p): Likewise.
2678 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2679 cgraph_node_set.
2680 * ipa-inline-transform.c: Likewise.
2681 * ipa-utils.c (cgraph_node_set_new): Removed.
2682 (cgraph_node_set_add): Likewise.
2683 (cgraph_node_set_remove): Likewise.
2684 (cgraph_node_set_find): Likewise.
2685 (dump_cgraph_node_set): Likewise.
2686 (debug_cgraph_node_set): Likewise.
2687 (free_cgraph_node_set): Likewise.
2688 (varpool_node_set_new): Likewise.
2689 (varpool_node_set_add): Likewise.
2690 (varpool_node_set_remove): Likewise.
2691 (varpool_node_set_find): Likewise.
2692 (dump_varpool_node_set): Likewise.
2693 (free_varpool_node_set): Likewise.
2694 (debug_varpool_node_set): Likewise.
2695 * tree-emutls.c (struct tls_var_data):
2696 (emutls_index): Removed.
2697 (emutls_decl): Likewise.
2698 (gen_emutls_addr): Function implementation uses newly added
2699 hash_map<varpool_node *, tls_var_data>.
2700 (clear_access_vars): Likewise.
2701 (create_emultls_var): Likewise.
2702 (ipa_lower_emutls): Likewise.
2703 (reset_access): New function.
2704
2705 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2706
2707 * config/i386/i386.c (ix86_option_override_internal): Add
2708 PTA_RDRND and PTA_MOVBE for bdver4.
2709
2710 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2711 James Greenhalgh <james.greenhalgh@arm.com>
2712
2713 * doc/md.texi (clrsb): Document.
2714 (clz): Change reference to x into operand 1.
2715 (ctz): Likewise.
2716 (popcount): Likewise.
2717
2718 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2719
2720 PR target/61713
2721 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2722 move to subtarget in serial version if result is ignored.
2723
2724 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2725 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2726
2727 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2728 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2729 (sched_analyze_insn): Update use of try_group_insn to
2730 sched_macro_fuse_insns.
2731 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2732 arguments that are not conditional jumps.
2733
2734 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2735
2736 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2737 family information. Handle BTVER2 cpu with cpuid family value.
2738
2739 2014-08-04 Tom de Vries <tom@codesourcery.com>
2740
2741 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2742 (glibc_2_11_or_earlier): Document effective-target keywords.
2743
2744 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2745
2746 * ipa-devirt.c (odr_type_warn_count): Add type.
2747 (possible_polymorphic_call_targets): Set it.
2748 (ipa_devirt): Use it.
2749
2750 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2751
2752 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2753 Document.
2754 * ipa-devirt.c: Include hash-map.h
2755 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2756 (clear_speculation): Break out of ...
2757 (get_class_context): ... here; speed up handling obviously useless
2758 speculations.
2759 (odr_type_warn_count, decl_warn_count): New structures.
2760 (final_warning_record): New structure.
2761 (final_warning_records): New static variable.
2762 (possible_polymorphic_call_targets): Cleanup handling of
2763 speculative info; do not build speculation when user do not care;
2764 record info about warnings when asked for.
2765 (add_decl_warning): New function.
2766 (type_warning_cmp): New function.
2767 (decl_warning_cmp): New function.
2768 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2769 (gate): Enable pass when warnings are requested.
2770 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2771 options.
2772
2773 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2774
2775 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2776 Fix cast.
2777 (hash_map::remove): New method.
2778 (hash_map::traverse): New method.
2779 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2780 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2781 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2782 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2783 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2784 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2785 pointer_map.
2786
2787 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2788
2789 * hash-set.h: new File.
2790 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2791 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2792 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2793 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2794 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2795 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2796 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2797 varpool.c: Use hash_set instead of pointer_set.
2798
2799 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2800
2801 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2802
2803 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2804
2805 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2806 for frame access when strict_p is false.
2807
2808 2014-08-01 Renlin Li <renlin.li@arm.com>
2809 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2810
2811 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2812 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2813 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2814 Declaration.
2815 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2816 predicate.
2817 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2818 aarch64_mem_pair_offset.
2819
2820 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2821
2822 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2823 offset.
2824 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2825 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2826
2827 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2828
2829 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2830
2831 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2832
2833 PR regression/61510
2834 * cgraphunit.c (analyze_functions): Use get_create rather than get
2835 for decls which are clones of abstract functions.
2836
2837 2014-08-01 Martin Liska <mliska@suse.cz>
2838
2839 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2840 * ipa-prop.h (count_formal_params): Global function created from static.
2841 * ipa-prop.c (count_formal_params): Likewise.
2842 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2843 profiles for semantically equivalent functions.
2844 * passes.c (do_per_function): If we load body of a function
2845 during WPA, this condition should behave same.
2846 * varpool.c (ctor_for_folding): More tolerant assert for variable
2847 aliases created during WPA.
2848
2849 2014-08-01 Martin Liska <mliska@suse.cz>
2850
2851 * doc/invoke.texi (Options That Control Optimization): Documentation
2852 for -foptimize-strlen introduced. Optimization levels default options
2853 fixed.
2854
2855 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2856
2857 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2858 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2859 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2860 type to bool.
2861 * stor-layout.h (min_align_of_type): New prototype.
2862 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2863 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2864 check.
2865 * ubsan.c: Include builtins.h.
2866 (ubsan_expand_bounds_ifn): Change return type to bool,
2867 always return true.
2868 (ubsan_expand_null_ifn): Change return type to bool, change
2869 argument to gimple_stmt_iterator *. Handle both null and alignment
2870 sanitization, take type from ckind argument's type rather than
2871 first argument.
2872 (instrument_member_call): Removed.
2873 (instrument_mem_ref): Remove t argument, add mem and base arguments.
2874 Handle both null and alignment sanitization, don't say whole
2875 struct access is member access. Build 3 argument IFN_UBSAN_NULL
2876 call instead of 2 argument.
2877 (instrument_null): Adjust instrument_mem_ref caller. Don't
2878 instrument calls here.
2879 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
2880 like SANITIZE_NULL.
2881 * stor-layout.c (min_align_of_type): New function.
2882 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
2883 Or it into SANITIZE_UNDEFINED.
2884 * doc/invoke.texi (-fsanitize=alignment): Document.
2885
2886 2014-07-31 Andi Kleen <ak@linux.intel.com>
2887
2888 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
2889
2890 2014-07-31 Andi Kleen <ak@linux.intel.com>
2891
2892 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
2893 inchash.
2894 (vn_reference_compute_hash): Dito.
2895 (vn_nary_op_compute_hash): Dito.
2896 (vn_phi_compute_hash): Dito.
2897 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
2898
2899 2014-07-31 Andi Kleen <ak@linux.intel.com>
2900
2901 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
2902 Rename to inchash:add_expr_commutative. Convert to inchash.
2903 (iterative_hash_hashable_expr): Rename to
2904 inchash:add_hashable_expr. Convert to inchash.
2905 (avail_expr_hash): Dito.
2906
2907 2014-07-31 Andi Kleen <ak@linux.intel.com>
2908
2909 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
2910 Convert to inchash.
2911
2912 2014-07-31 Andi Kleen <ak@linux.intel.com>
2913
2914 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
2915
2916 2014-07-31 Andi Kleen <ak@linux.intel.com>
2917
2918 * Makefile.in (OBJS): Add rtlhash.o
2919 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
2920 (loc_checksum): Dito.
2921 (loc_checksum_ordered): Dito.
2922 (hash_loc_operands): Dito.
2923 (hash_locs): Dito.
2924 (hash_loc_list): Dito.
2925 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
2926 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
2927 * rtlhash.c: New file.
2928 * rtlhash.h: New file.
2929
2930 2014-07-31 Andi Kleen <ak@linux.intel.com>
2931
2932 * inchash.h (inchash): Change inchash class to namespace.
2933 (class hash): ... Rename from inchash.
2934 (add_object): Move from macro to class template.
2935 * lto-streamer-out.c (hash_tree): Change inchash
2936 to inchash::hash.
2937 * tree.c (build_type_attribute_qual_variant): Dito.
2938 (type_hash_list): Dito.
2939 (attribute_hash_list): Dito.
2940 (iterative_hstate_expr): Rename to inchash::add_expr
2941 (build_range_type_1): Change inchash to inchash::hash
2942 and use hash::add_expr.
2943 (build_array_type_1): Dito.
2944 (build_function_type): Dito
2945 (build_method_type_directly): Dito.
2946 (build_offset_type): Dito.
2947 (build_complex_type): Dito.
2948 (make_vector_type): Dito.
2949 * tree.h (iterative_hash_expr): Dito.
2950
2951 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
2952
2953 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
2954
2955 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
2956
2957 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
2958 correct alphabetical position.
2959 (vpaddd_f64): Rewrite using builtins.
2960 (vpaddd_s64): Move to correct alphabetical position.
2961 (vpaddd_u64): New.
2962
2963 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
2964
2965 PR target/61844
2966 * config/sh/sh.c (sh_legitimate_address_p,
2967 sh_legitimize_reload_address): Handle reg+reg address modes when
2968 ALLOW_INDEXED_ADDRESS is false.
2969 * config/sh/predicates.md (general_movsrc_operand,
2970 general_movdst_operand): Likewise.
2971
2972 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
2973
2974 * config/aarch64/aarch64-builtins.c
2975 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
2976 BYTES_BIG_ENDIAN.
2977
2978 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
2979
2980 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
2981 the generated mask based on BYTES_BIG_ENDIAN.
2982 (aarch64_simd_check_vect_par_cnst_half): New.
2983 * config/aarch64/aarch64-protos.h
2984 (aarch64_simd_check_vect_par_cnst_half): New.
2985 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
2986 the check out to aarch64_simd_check_vect_par_cnst_half.
2987 (vect_par_cnst_lo_half): Likewise.
2988 * config/aarch64/aarch64-simd.md
2989 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
2990 (move_hi_quad_<mode>): Always generate a low mask.
2991
2992 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2993
2994 * doc/invoke.texi (AVR Options): Add documentation about
2995 __AVR_DEVICE_NAME__ built-in macro.
2996
2997 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
2998
2999 PR target/61948
3000 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3001 constraints are satisfied.
3002 (<shift>di3_neon): Likewise.
3003
3004 2014-07-31 Richard Biener <rguenther@suse.de>
3005
3006 PR tree-optimization/61964
3007 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3008 by structural equality.
3009
3010 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3011
3012 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3013 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3014 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3015 New enums.
3016 * gcc.c (sanitize_spec_function): Support new option.
3017 (SANITIZER_SPEC): Remove now redundant check.
3018 * opts.c (common_handle_option): Support new option.
3019 (finish_options): Check for incompatibilities.
3020 * toplev.c (process_options): Split userspace-specific checks.
3021
3022 2014-07-31 Richard Biener <rguenther@suse.de>
3023
3024 * lto-streamer.h (struct output_block): Remove global.
3025 (struct data_in): Remove labels, num_named_labels and
3026 num_unnamed_labels.
3027 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3028 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3029
3030 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3031
3032 PR c++/60517
3033 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3034 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3035 (isolate_path): New argument to avoid inserting a trap.
3036 (find_implicit_erroneous_behaviour): Handle returning the address
3037 of a local variable.
3038 (find_explicit_erroneous_behaviour): Likewise.
3039
3040 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3041
3042 PR lto/61868
3043 * toplev.c (init_random_seed): Move piece of code never called to
3044 set_random_seed.
3045 (set_random_seed): see above.
3046
3047 2014-07-31 Tom de Vries <tom@codesourcery.com>
3048
3049 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3050
3051 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3052
3053 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3054 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3055
3056 2014-07-31 Richard Biener <rguenther@suse.de>
3057
3058 * data-streamer.h (streamer_write_data_stream): Declare here,
3059 renamed from ...
3060 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3061 * lto-cgraph.c (lto_output_node): Adjust.
3062 (lto_output_varpool_node): Likewise.
3063 * data-streamer-out.c (streamer_string_index): Likewise.
3064 (streamer_write_data_stream, lto_append_block): Move from ...
3065 * lto-section-out.c (lto_output_data_stream,
3066 lto_append_block): ... here.
3067
3068 2014-07-30 Mike Stump <mikestump@comcast.net>
3069
3070 * configure.ac: Also check for popen.
3071 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3072 * configure: Regenerate.
3073 * config.in: Regenerate.
3074
3075 2014-07-30 Martin Jambor <mjambor@suse.cz>
3076
3077 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3078 parameter to gimple.
3079
3080 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3081
3082 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3083 address as second parameter to __tpf_eh_return routine.
3084
3085 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3086
3087 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3088 Thumb2.
3089
3090 2014-07-30 Tom Tromey <tromey@redhat.com>
3091
3092 PR c/59855
3093 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3094 * doc/extend.texi (Type Attributes): Document designated_init
3095 attribute.
3096
3097 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3098
3099 * graphite-isl-ast-to-gimple.c:
3100 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3101 (gcc_expression_from_isl_expression): Pass type to
3102 gcc_expression_from_isl_ast_expr_id.
3103
3104 2014-07-30 Richard Biener <rguenther@suse.de>
3105
3106 * lto-streamer.h (lto_write_data): New function.
3107 * langhooks.c (lhd_append_data): Do not free block.
3108 * lto-section-out.c (lto_write_data): New function writing
3109 raw data to the current section.
3110 (lto_write_stream): Adjust for langhook semantic change.
3111 (lto_destroy_simple_output_block): Write header directly.
3112 * lto-opts.c (lto_write_options): Write options directly.
3113 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3114 (lto_output_toplevel_asms): Likewise.
3115 (copy_function_or_variable): Copy data directly.
3116 (write_global_references): Output index table directly.
3117 (lto_output_decl_state_refs): Likewise.
3118 (write_symbol): Write data directly.
3119 (produce_symtab): Adjust.
3120 (produce_asm_for_decls): Output header and refs directly.
3121
3122 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3123
3124 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3125 to speculative_targets
3126 (get_class_context): Fix handling of contextes without outer type;
3127 avoid matching non-polymorphic types in LTO.
3128 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3129 parameter to speculative_targetsp; handle speculation.
3130 (dump_possible_polymorphic_call_targets): Update dumping.
3131
3132 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3133
3134 * common.opt (Wodr): Enable by default.
3135
3136 2014-07-29 Olivier Hainque <hainque@adacore.com>
3137
3138 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3139
3140 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3141
3142 PR bootstrap/61914
3143 * gengtype.c (strtoken): New function.
3144 (create_user_defined_type): Replace strtok with strtoken.
3145
3146 2014-07-29 Nathan Sidwell <nathan@acm.org>
3147
3148 * gcov-io.c (gcov_var): Make hidden.
3149 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3150 (gcov_do_dump): Declare.
3151 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3152
3153 2014-07-29 Martin Jambor <mjambor@suse.cz>
3154
3155 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3156 parameter to gimple.
3157 (sra_modify_assign): Likewise.
3158
3159 2014-07-29 Richard Biener <rguenther@suse.de>
3160
3161 PR middle-end/52478
3162 * expr.c (expand_expr_real_2): Revert last change.
3163
3164 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3165
3166 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3167 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3168 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3169 call.
3170 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3171 (contains_type_p): Forward declare.
3172 (polymorphic_call_target_hasher::hash): Hash speculative info.
3173 (polymorphic_call_target_hasher::equal): Compare speculative info.
3174 (get_class_context): Handle speuclation.
3175 (contains_type_p): Update.
3176 (get_polymorphic_call_info_for_decl): Update.
3177 (walk_ssa_copies): Break out from ...
3178 (get_polymorphic_call_info): ... here; set speculative context
3179 before giving up.
3180 * ipa-prop.c (ipa_write_indirect_edge_info,
3181 ipa_read_indirect_edge_info): Stream speculative context.
3182 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3183 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3184 SPECULATIVE_MAYBE_DERIVED_TYPE).
3185 (possible_polymorphic_call_targets overriders): Update.
3186 (dump_possible_polymorphic_call_targets overriders): Update.
3187 (dump_possible_polymorphic_call_target_p overriders): Update.
3188
3189 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3190
3191 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3192 ipa-devirt path; fix thinko there.
3193
3194 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3195
3196 * config/i386/i386.c (ix86_return_in_memory): Replace one
3197 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3198
3199 2014-07-28 Marek Polacek <polacek@redhat.com>
3200
3201 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3202
3203 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3204
3205 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3206 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3207 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3208 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3209 (USE_LD_AS_NEEDED): Likewise.
3210 (ASM_APP_ON): Likewise.
3211 (ASM_APP_OFF): Likewise.
3212 (TARGET_POSIX_IO): Likewise.
3213 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3214 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3215 (USE_LD_AS_NEEDED): Likewise.
3216 (ASM_APP_ON): Likewise.
3217 (ASM_APP_OFF): Likewise.
3218 (TARGET_POSIX_IO): Likewise.
3219
3220 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3221
3222 PR middle-end/61734
3223 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3224 operators other than the equality operators.
3225
3226 2014-07-28 Richard Biener <rguenther@suse.de>
3227
3228 PR middle-end/52478
3229 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3230 sure to register SImode ones, not only >= word_mode ones.
3231 * expr.c (expand_expr_real_2): When expanding -ftrapv
3232 binops do not use OPTAB_LIB_WIDEN.
3233
3234 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3235
3236 PR middle-end/61919
3237 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3238 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3239 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3240 inserting them in the insn stream.
3241
3242 2014-07-28 Marek Polacek <polacek@redhat.com>
3243
3244 PR middle-end/61913
3245 * common.opt (Wodr): Add Var.
3246
3247 2014-07-28 Richard Biener <rguenther@suse.de>
3248
3249 PR tree-optimization/61921
3250 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3251 if there is a varpool node before dereferencing it.
3252
3253 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3254
3255 * graphite-sese-to-poly.c:
3256 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3257 id of the pbb), which contains pointer to the pbb1.
3258
3259 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3260
3261 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3262
3263 * graphite-isl-ast-to-gimple.c:
3264 (graphite_create_new_guard): New function.
3265 (translate_isl_ast_node_if): New function.
3266 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3267
3268 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3269
3270 2014-07-27 Anthony Green <green@moxielogic.com>
3271
3272 * config.gcc: Add moxie-*-moxiebox* configuration.
3273 * config/moxie/moxiebox.h: New file.
3274
3275 2014-07-26 Andrew Pinski <apinski@cavium.com>
3276
3277 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3278 from the read only register.
3279
3280 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3281
3282 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3283 as the allocation class if it isn't likely to be spilled.
3284
3285 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3286
3287 * rtl.h (tls_referenced_p): Declare.
3288 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3289 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3290 (mips_cannot_force_const_mem): Use tls_referenced_p.
3291 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3292 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3293 instead of pa_tls_referenced_p.
3294 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3295 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3296 (pa_legitimate_constant_p): Likewise.
3297 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3298 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3299 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3300 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3301 rs6000_tls_referenced_p.
3302 (rs6000_tls_symbol_ref_1): Delete.
3303
3304 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3305
3306 PR target/44551
3307 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3308 Optimize inverse of a VEC_CONCAT.
3309
3310 2014-07-25 Xinliang David Li <davidxl@google.com>
3311
3312 * params.def: New parameter.
3313 * coverage.c (get_coverage_counts): Check new flag.
3314 (coverage_compute_profile_id): Check new flag.
3315 (coverage_begin_function): Check new flag.
3316 (coverage_end_function): Check new flag.
3317 * value-prof.c (coverage_node_map_initialized_p): New function.
3318 (init_node_map): Populate map with all functions.
3319 * doc/invoke.texi: Document new parameter.
3320
3321 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3322 Richard Biener <rguenther@suse.de>
3323
3324 * lto-streamer-out.c (struct sccs): Turn to ...
3325 (class DFS): ... this one; refactor the DFS walk so it can
3326 be re-done on per-SCC basis.
3327 (DFS::DFS): New constructor.
3328 (DFS::~DFS): New destructor.
3329 (hash_tree): Add new MAP argument holding in-SCC hash values;
3330 remove POINTER_TYPE hashing hack.
3331 (scc_entry_compare): Rename to ...
3332 (DFS::scc_entry_compare): ... this one.
3333 (hash_scc): Rename to ...
3334 (DFS::hash_scc): ... this one; pass output_block instead
3335 of streamer_cache; work harder to get unique and stable SCC
3336 hashes.
3337 (DFS_write_tree): Rename to ...
3338 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3339 (lto_output_tree): Update.
3340
3341 2014-07-25 Andi Kleen <ak@linux.intel.com>
3342
3343 * lto-streamer-out.c (hash_tree): Convert to inchash.
3344
3345 2014-07-25 Andi Kleen <ak@linux.intel.com>
3346
3347 * tree.c (build_type_attribute_qual_variant): Use inchash.
3348 (type_hash_list): Dito.
3349 (attribute_hash_list): Dito
3350 (iterative_hstate_expr): Dito.
3351 (iterative_hash_expr): Dito.
3352 (build_range_type_1): Dito.
3353 (build_array_type_1): Dito.
3354 (build_function_type): Dito.
3355 (build_method_type_directly): Dito.
3356 (build_offset_type): Dito.
3357 (build_complex_type): Dito.
3358 (make_vector_type): Dito.
3359 * tree.h (iterative_hash_expr): Add compat wrapper.
3360 (iterative_hstate_expr): Add.
3361
3362 2014-07-25 Andi Kleen <ak@linux.intel.com>
3363
3364 * Makefile.in (OBJS): Add inchash.o.
3365 (PLUGIN_HEADERS): Add inchash.h.
3366 * ipa-devirt.c: Include inchash.h.
3367 * lto-streamer-out.c: Dito.
3368 * tree-ssa-dom.c: Dito.
3369 * tree-ssa-pre.c: Dito.
3370 * tree-ssa-sccvn.c: Dito.
3371 * tree-ssa-tail-merge.c: Dito.
3372 * asan.c: Dito.
3373 * tree.c (iterative_hash_hashval_t): Move to ...
3374 (iterative_hash_host_wide_int): Move to ...
3375 * inchash.c: Here. New file.
3376 * tree.h (iterative_hash_hashval_t): Move to ...
3377 (iterative_hash_host_wide_int): Move to ...
3378 * inchash.h: Here. New file.
3379
3380 2014-07-25 Richard Biener <rguenther@suse.de>
3381
3382 PR middle-end/61762
3383 PR middle-end/61894
3384 * fold-const.c (native_encode_int): Add and handle offset
3385 parameter to do partial encodings of expr.
3386 (native_encode_fixed): Likewise.
3387 (native_encode_real): Likewise.
3388 (native_encode_complex): Likewise.
3389 (native_encode_vector): Likewise.
3390 (native_encode_string): Likewise.
3391 (native_encode_expr): Likewise.
3392 * fold-const.c (native_encode_expr): Add offset parameter
3393 defaulting to -1.
3394 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3395 (fold_ctor_reference): Handle all reads from tcc_constant
3396 ctors.
3397
3398 2014-07-25 Richard Biener <rguenther@suse.de>
3399
3400 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3401 as possibly unused.
3402
3403 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3404
3405 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3406
3407 2014-07-24 Kyle McMartin <kyle@redhat.com>
3408
3409 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3410
3411 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3412
3413 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3414 Add prototype.
3415 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3416 function.
3417 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3418 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3419 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3420
3421 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3422
3423 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3424 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3425 aggregate types. Instead, *all* aggregate types, except for single-
3426 element or homogeneous float/vector aggregates, are quadword-aligned
3427 if required by their type alignment. Issue -Wpsabi note when a type
3428 is now treated differently than before.
3429
3430 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3431
3432 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3433 does not fit fully into floating-point registers, and there is still
3434 space in the register parameter area, use GPRs to pass those parts
3435 of the argument. Issue -Wpsabi note if any parameter is now treated
3436 differently than before.
3437 (rs6000_arg_partial_bytes): Update.
3438
3439 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3440
3441 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3442
3443 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3444
3445 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3446 * toplev.c (initialize_rtl): Don't use it. Move previously
3447 "language-dependent" calls to...
3448 (backend_init): ...here.
3449 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3450 Assert that RTL initialization hasn't happend yet.
3451
3452 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3453
3454 PR rtl-optimization/61629
3455 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3456 they have already been initialized.
3457
3458 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3459
3460 PR middle-end/61268
3461 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3462 DECL_INCOMING_RTL and entry_parm.
3463 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3464 * calls.c (load_register_parameters): Likewise argument values.
3465 (emit_library_call_value_1, store_one_arg): Likewise argument
3466 save areas.
3467 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3468 stack slot.
3469 * explow.c (validize_mem): Modify the argument in-place.
3470
3471 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3472
3473 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3474 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3475
3476 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3477
3478 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3479 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3480
3481 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3482
3483 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3484 (aarch64_save_callee_saves): New parameter "skip_wb".
3485 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3486
3487 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3488
3489 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3490 "wb_candidate2".
3491 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3492
3493 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3494
3495 * graphite-isl-ast-to-gimple.c:
3496 (graphite_create_new_loop): Add calling of isl_id_free to properly
3497 decrement reference counts.
3498
3499 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3500
3501 2014-07-24 Martin Liska <mliska@suse.cz>
3502 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3503 function used.
3504 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3505 (rs6000_code_end): Likewise.
3506
3507 2014-07-24 Martin Liska <mliska@suse.cz>
3508
3509 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3510 symtab_node funtion used.
3511 (rs6000_xcoff_declare_object_name): Likewise.
3512
3513 2014-07-24 Martin Liska <mliska@suse.cz>
3514
3515 * cgraphunit.c (compile): Correct function used.
3516
3517 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3518
3519 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3520 as non-indexable.
3521
3522 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3523
3524 PR lto/61802
3525 * varasm.c (bss_initializer_p): Handle offlined ctors.
3526 (align_variable, get_variable_align): Likewise.
3527 (make_decl_one_only): Likewise.
3528 (default_binds_local_p_1): Likewise.
3529 (decl_binds_to_current_def_p): Likewise.
3530 (get_variable_section): Get constructor if it is offlined.
3531 (assemble_variable_contents): Sanity check that the caller
3532 streamed in the ctor in LTO.
3533
3534 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3535
3536 * graphite-isl-ast-to-gimple.c:
3537 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3538 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3539 isl_ast_op_pdiv_r to the different case.
3540
3541 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3542
3543 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3544
3545 PR middle-end/61876
3546 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3547 when flag_errno_math is on.
3548
3549 2014-07-24 Martin Liska <mliska@suse.cz>
3550
3551 * cgraph.h (varpool_node):
3552 (availability get_availability (void)):
3553 created from cgraph_variable_initializer_availability
3554 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3555 created from: cgraph_variable_initializer_availability
3556 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3557 (void finalize_named_section_flags (void)):
3558 created from varpool_finalize_named_section_flags
3559 (bool assemble_decl (void)): created from varpool_assemble_decl
3560 (void analyze (void)): created from varpool_analyze_node
3561 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3562 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3563 (void remove_initializer (void)): created from varpool_remove_initializer
3564 (tree get_constructor (void)): created from varpool_get_constructor
3565 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3566 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3567 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3568 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3569 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3570 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3571 (static bool output_variables (void)): created from varpool_output_variables
3572 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3573 created from varpool_extra_name_alias
3574 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3575 (static void dump_varpool (FILE *f)): created from dump_varpool
3576 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3577 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3578 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3579 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3580 (void assemble_aliases (void)): created from assemble_aliases
3581
3582 2014-07-24 Martin Liska <mliska@suse.cz>
3583
3584 * cgraph.h (symtab_node):
3585 (void register_symbol (void)): created from symtab_register_node
3586 (void remove (void)): created from symtab_remove_node
3587 (void dump (FILE *f)): created from dump_symtab_node
3588 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3589 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3590 (struct ipa_ref *add_reference (symtab_node *referred_node,
3591 enum ipa_ref_use use_type)): created from add_reference
3592 (struct ipa_ref *add_reference (symtab_node *referred_node,
3593 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3594 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3595 gimple stmt)): created from maybe_add_reference
3596 (bool semantically_equivalent_p (symtab_node *target)): created from
3597 symtab_semantically_equivalent_p
3598 (void remove_from_same_comdat_group (void)): created from
3599 remove_from_same_comdat_group
3600 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3601 symtab_add_to_same_comdat_group
3602 (void dissolve_same_comdat_group_list (void)): created from
3603 symtab_dissolve_same_comdat_group_list
3604 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3605 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3606 created from symtab_alias_ultimate_target
3607 (inline symtab_node *next_defined_symbol (void)): created from
3608 symtab_next_defined_symbol
3609 (bool resolve_alias (symtab_node *target)): created from
3610 symtab_resolve_alias
3611 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3612 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3613 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3614 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3615 (void set_section (const char *section)): created from set_section_1
3616 (enum availability get_availability (void)): created from symtab_node_availability
3617 (void make_decl_local (void)): created from symtab_make_decl_local
3618 (bool real_symbol_p (void)): created from symtab_read_node
3619 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3620 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3621 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3622 symtab_in_same_comdat_p;
3623 (bool address_taken_from_non_vtable_p (void)): created from
3624 address_taken_from_non_vtable_p
3625 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3626 (static void dump_table (FILE *)): created from dump_symtab
3627 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3628 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3629 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3630 symtab_used_from_object_file_p
3631 (void dump_base (FILE *)): created from dump_symtab_base
3632 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3633 (void unregister (void)): created from symtab_unregister_node
3634 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3635 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3636 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3637 symtab_nonoverwritable_alias_1
3638 * cgraph.h (cgraph_node):
3639 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3640 created from cgraph_remove_node_and_inline_clones
3641 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3642 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3643 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3644 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3645 created from cgraph_function_node
3646 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3647 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3648 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3649 created from cgraph_create_clone
3650 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3651 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3652 created from cgraph_create_virtual_clone
3653 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3654 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3655 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3656 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3657 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3658 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3659 created from cgraph_function_version_info
3660 (struct cgraph_function_version_info *insert_new_function_version (void)):
3661 created from insert_new_cgraph_node_version
3662 (struct cgraph_function_version_info *function_version (void)): created from
3663 get_cgraph_node_version
3664 (void analyze (void)): created from analyze_function
3665 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3666 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3667 tree real_alias) cgraph_add_thunk
3668 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3669 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3670 created from cgraph_function_or_thunk_node
3671 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3672 created from expand_thunk
3673 (void reset (void)): created from cgraph_reset_node
3674 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3675 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3676 (void remove (void)): created from cgraph_remove_node
3677 (void dump (FILE *f)): created from dump_cgraph_node
3678 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3679 (bool get_body (void)): created from cgraph_get_body
3680 (void release_body (void)): created from cgraph_release_function_body
3681 (void unnest (void)): created from cgraph_unnest_node
3682 (void make_local (void)): created from cgraph_make_node_local
3683 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3684 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3685 gcov_type count, int freq)): created from cgraph_create_edge
3686 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3687 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3688 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3689 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3690 created from cgraph_create_edge_including_clones
3691 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3692 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3693 (void remove_callers (void)): created from cgraph_node_remove_callers
3694 (void remove_callees (void)): created from cgraph_node_remove_callees
3695 (enum availability get_availability (void)): created from cgraph_function_body_availability
3696 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3697 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3698 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3699 (void call_duplication_hooks (cgraph_node *node2)): created from
3700 cgraph_call_node_duplication_hooks
3701 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3702 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3703 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3704 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3705 (void call_function_insertion_hooks (void)):
3706 created from cgraph_call_function_insertion_hooks
3707 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3708 (bool local_p (void)): created from cgraph_local_node
3709 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3710 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3711 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3712 (inline bool only_called_directly_or_aliased_p (void)):
3713 created from cgraph_only_called_directly_or_aliased_p
3714 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3715 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3716 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3717 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3718 (bool can_remove_if_no_direct_calls_p (void)):
3719 created from cgraph_can_remove_if_no_direct_calls_p
3720 (inline bool has_gimple_body_p (void)):
3721 created from cgraph_function_with_gimple_body_p
3722 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3723 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3724 (static inline void debug_cgraph (void)): created from debug_cgraph
3725 (static void record_function_versions (tree decl1, tree decl2)):
3726 created from record_function_versions
3727 (static void delete_function_version (tree decl)):
3728 created from delete_function_version
3729 (static void add_new_function (tree fndecl, bool lowered)):
3730 created from cgraph_add_new_function
3731 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3732 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3733 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3734 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3735 (static cgraph_node *get_for_asmname (tree asmname)):
3736 created from cgraph_node_for_asm
3737 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3738 created from cgraph_same_body_alias
3739 (static bool used_from_object_file_p_worker (cgraph_node *node,
3740 void *): new function
3741 (static bool non_local_p (cgraph_node *node, void *)):
3742 created from cgraph_non_local_node_p_1
3743 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3744 created from verify_cgraph
3745 (static bool make_local (cgraph_node *node, void *)):
3746 created from cgraph_make_node_local
3747 (static cgraph_node *create_alias (tree alias, tree target)):
3748 created from cgraph_create_function_alias
3749 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3750 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3751 created from cgraph_create_edge_1
3752 * cgraph.h (varpool_node):
3753 (void remove (void)): created from varpool_remove_node
3754 (void dump (FILE *f)): created from dump_varpool_node
3755
3756 2014-07-24 Richard Biener <rguenther@suse.de>
3757
3758 PR ipa/61823
3759 * tree-ssa-structalias.c (create_variable_info_for_1):
3760 Use varpool_get_constructor.
3761 (create_variable_info_for): Likewise.
3762
3763 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3764
3765 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3766 subtract outgoing area size when restoring stack_pointer_rtx.
3767
3768 2014-07-24 Nick Clifton <nickc@redhat.com>
3769
3770 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3771 that operations are taking place in parallel.
3772 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3773
3774 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3775
3776 * omp-low.c (extract_omp_for_data): Add missing break statement.
3777
3778 2014-07-24 Richard Biener <rguenther@suse.de>
3779
3780 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3781 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3782 and adjust MOVE_RATIO query accordingly.
3783 (estimate_num_insns): Adjust callers.
3784 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3785 * ipa-cp.c (gather_context_independent_values,
3786 estimate_local_effects): Likewise.
3787 * ipa-split.c (consider_split): Likewise.
3788
3789 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3790
3791 * config/i386/driver-i386.c: Remove names of unused arguments and
3792 unnecessary unused attributes.
3793 * config/i386/host-mingw32.c: Likewise.
3794 * config/i386/i386.c: Likewise.
3795 * config/i386/winnt-stubs.c: Likewise.
3796 * config/i386/winnt.c: Likewise.
3797
3798 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3799
3800 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3801 (aarch64_gen_loadwb_pair): New helper function.
3802 (aarch64_expand_epilogue): Simplify code using new helper functions.
3803 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3804
3805 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3806
3807 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3808 (aarch64_gen_storewb_pair): New helper function.
3809 (aarch64_expand_prologue): Simplify code using new helper functions.
3810 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3811
3812 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3813
3814 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3815 Rename to aarch64_save_callee_saves, remove restore code.
3816 (aarch64_restore_callee_saves): New function.
3817
3818 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3819
3820 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3821 (aarch64_save_callee_saves): New function to handle reg save
3822 for both core and vectore regs.
3823
3824 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3825
3826 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3827 (aarch64_gen_store_pair): New helper function.
3828 (aarch64_save_or_restore_callee_save_registers)
3829 (aarch64_save_or_restore_fprs): Use new helper functions.
3830
3831 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3832
3833 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3834 (aarch64_save_or_restore_callee_save_registers)
3835 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3836
3837 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3838
3839 * config/aarch64/aarch64.c
3840 (aarch64_save_or_restore_callee_save_registers)
3841 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3842
3843 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3844
3845 * config/aarch64/aarch64.c
3846 (aarch64_save_or_restore_callee_save_registers)
3847 (aarch64_save_or_restore_fprs): Remove 'increment'.
3848
3849 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3850
3851 * config/aarch64/aarch64.c
3852 (aarch64_save_or_restore_callee_save_registers)
3853 (aarch64_save_or_restore_fprs): Use register offset in
3854 cfun->machine->frame.reg_offset.
3855
3856 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3857
3858 * config/aarch64/aarch64.c
3859 (aarch64_save_or_restore_callee_save_registers)
3860 (aarch64_save_or_restore_fprs): Remove base_rtx.
3861
3862 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3863
3864 * config/aarch64/aarch64.c
3865 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
3866 to 'start_offset'. Remove local variable 'start_offset'.
3867
3868 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3869
3870 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
3871 type to HOST_WIDE_INT.
3872
3873 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3874
3875 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3876 (aarch64_save_or_restore_fprs)
3877 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
3878
3879 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3880
3881 * config/arm/t-rtems-eabi: Add
3882 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
3883 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
3884 mbig-endian/mthumb/march=armv7-r, and
3885 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
3886 multilibs.
3887
3888 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3889 Chris Johns <chrisj@rtems.org>
3890 Joel Sherrill <joel.sherrill@oarcorp.com>
3891
3892 * config.gcc: Add nios2-*-rtems*.
3893 * config/nios2/rtems.h: New file.
3894 * gcc/config/nios2/t-rtems: New file.
3895
3896 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
3897
3898 PR target/61396
3899 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
3900 constant numbers, not general constants.
3901 (rs6000_expand_vector_init): Ditto.
3902
3903 2014-07-23 Nathan Sidwell <nathan@acm.org>
3904
3905 * gcov-tool.c (gcov_list): Declare here.
3906 (set_gcov_list): Remove.
3907 (gcov_output_files): Set gcov_list directly.
3908
3909 2014-07-23 Host Schirmeier <horst@schirmeier.com>
3910
3911 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
3912
3913 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3914
3915 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
3916 callee-saved registers are available for padding purpose
3917 and r3 is not mandatory, then prefer use those callee-saved
3918 instead of r3.
3919
3920 2014-07-23 Richard Biener <rguenther@suse.de>
3921
3922 * params.def (PARAM_MAX_COMBINE_INSNS): New.
3923 * combine.c: Include statistics.h and params.h.
3924 (combine_instructions): Guard three and four insn combines
3925 with max-combine-insns value. Record statistics for combines
3926 performed.
3927 * doc/invoke.texi (max-combine-insns): Document new param.
3928
3929 2014-07-23 Roman Gareev <gareevroman@gmail.com>
3930
3931 * graphite-isl-ast-to-gimple.c:
3932 (translate_isl_ast_node_block): New function.
3933 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
3934
3935 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
3936 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
3937
3938 2014-07-23 Roman Gareev <gareevroman@gmail.com>
3939
3940 * graphite-isl-ast-to-gimple.c:
3941 (get_max_schedule_dimensions): New function.
3942 (extend_schedule): Likewise.
3943 (generate_isl_schedule): Add calling of extend_schedule and
3944 get_max_schedule_dimensions.
3945
3946 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3947
3948 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
3949 (case UNSPEC): Handle UNSPEC_RBIT.
3950
3951 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3952
3953 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
3954 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
3955
3956 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3957
3958 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
3959
3960 2014-07-22 Roman Gareev <gareevroman@gmail.com>
3961
3962 * graphite-isl-ast-to-gimple.c:
3963 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
3964 (ivs_params_clear):
3965 (build_iv_mapping): New function.
3966 (translate_isl_ast_node_user): Likewise.
3967 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
3968
3969 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
3970 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
3971 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
3972
3973 2014-07-21 Bin Cheng <bin.cheng@arm.com>
3974
3975 PR target/55701
3976 * config/arm/arm.md (setmem): New pattern.
3977 * config/arm/arm-protos.h (struct tune_params): New fields.
3978 (arm_gen_setmem): New prototype.
3979 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3980 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3981 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3982 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3983 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3984 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3985 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3986 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3987 (arm_const_inline_cost): New function.
3988 (arm_block_set_max_insns): New function.
3989 (arm_block_set_non_vect_profit_p): New function.
3990 (arm_block_set_vect_profit_p): New function.
3991 (arm_block_set_unaligned_vect): New function.
3992 (arm_block_set_aligned_vect): New function.
3993 (arm_block_set_unaligned_non_vect): New function.
3994 (arm_block_set_aligned_non_vect): New function.
3995 (arm_block_set_vect, arm_gen_setmem): New functions.
3996
3997 2014-07-21 Bin Cheng <bin.cheng@arm.com>
3998
3999 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4000
4001 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4002
4003 PR target/61855
4004 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4005 out of #ifdef __OPTIMIZE__.
4006
4007 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4008
4009 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4010 different trapping status if -fnon-call-exceptions is enabled.
4011
4012 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4013
4014 * expr.c (store_field): Handle VOIDmode for calls that return values
4015 in multiple locations.
4016
4017 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4018
4019 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4020 (altivec_vsldoi_<mode>): Likewise.
4021
4022 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4023
4024 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4025 to the number of characters in the line.
4026
4027 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4028
4029 * graphite-isl-ast-to-gimple.c: Add using of
4030 build_nonstandard_integer_type instead of int128_integer_type_node.
4031
4032 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4033
4034 * toplev.c (output_stack_usage): Adjust the location of the warning.
4035
4036 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4037
4038 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4039 (*membar_storeload): Disable for LEON3.
4040
4041 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4042
4043 PR rtl-optimization/61461
4044 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4045
4046 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4047
4048 PR target/61794
4049 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4050 Fix instruction constraint.
4051 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4052
4053 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4054
4055 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4056
4057 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4058
4059 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4060 GNU coding standards.
4061 (nds32_register_move_cost): Likewise.
4062 (nds32_memory_move_cost): Likewise.
4063 (nds32_address_cost): Likewise.
4064
4065 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4066
4067 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4068
4069 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4070
4071 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4072 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4073 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4074 (HAVE_sync_compare_and_swapqi): Define.
4075 (HAVE_sync_compare_and_swaphi): Likewise.
4076 (HAVE_sync_compare_and_swapsi): Likewise.
4077
4078 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4079
4080 * config/mips/p5600.md: Add missing cpu tests.
4081
4082 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4083
4084 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4085 (vmla_f64): Likewise.
4086 (vfms_f64): Likewise.
4087 (vmls_f64): Likewise.
4088
4089 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4090
4091 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4092 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4093
4094 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4095
4096 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4097 (vmlal_high_lane_s32): Likewise.
4098 (vmlal_high_lane_u16): Likewise.
4099 (vmlal_high_lane_u32): Likewise.
4100 (vmlsl_high_lane_s16): Likewise.
4101 (vmlsl_high_lane_s32): Likewise.
4102 (vmlsl_high_lane_u16): Likewise.
4103 (vmlsl_high_lane_u32): Likewise.
4104
4105 2014-07-17 Terry Guo <terry.guo@arm.com>
4106
4107 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4108 (alus_reg): Renamed to alus_sreg.
4109 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4110 from alu_reg to alu_sreg. Change type of dsp instructions from
4111 alu_reg to alu_dsp_reg.
4112 * config/arm/thumb1.md: Likewise.
4113 * config/arm/thumb2.md: Likewise.
4114 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4115 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4116 with alu_sreg and alus_sreg.
4117 * config/arm/arm1026ejs.md (alu_op): Likewise.
4118 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4119 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4120 * config/arm/fa526.md (526_alu_op): Likewise.
4121 * config/arm/fa606te.md (606te_alu_op): Likewise.
4122 * config/arm/fa626te.md (626te_alu_op): Likewise.
4123 * config/arm/fa726te.md (726te_alu_op): Likewise.
4124 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4125 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4126 alu_sreg, alu_dsp_reg and alus_sreg.
4127 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4128 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4129 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4130 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4131 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4132 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4133 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4134 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4135 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4136 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4137 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4138 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4139 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4140 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4141 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4142 alus_reg to alus_sreg.
4143
4144 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4145
4146 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4147 infinity format.
4148
4149 2014-07-17 Richard Biener <rguenther@suse.de>
4150
4151 PR rtl-optimization/61801
4152 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4153 don't set reg_pending_barrier if it appears in a debug-insn.
4154
4155 2014-07-16 DJ Delorie <dj@redhat.com>
4156
4157 * config/rx/rx.c (rx_option_override): Fix alignment values.
4158 (rx_align_for_label): Likewise.
4159
4160 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4161
4162 PR target/61737.
4163 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4164 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4165 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4166 functions.
4167 (cris_print_index, cris_print_operand, cris_constant_index_p)
4168 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4169 (cris_address_cost): Ditto last CONSTANT_P.
4170 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4171 callers changed. Yield cris_offsettable_symbol for non-PIC
4172 constant symbolic expressions including labels. Yield cris_unspec
4173 for all unspecs.
4174 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4175 target to pic_offset_table_rtx for calls that will likely go
4176 through PLT, const0_rtx when they can't. All callers changed.
4177 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4178 symbolic expressions to be PICified. Remove second, redundant,
4179 assert on can_create_pseudo_p returning non-zero. Use
4180 replace_equiv_address_nv, not replace_equiv_address, for final
4181 operand update.
4182 * config/cris/cris.md ("movsi"): Move variable t to pattern
4183 toplevel. Adjust assert for new cris_symbol_type member. Use
4184 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4185 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4186 for lapc stricter.
4187 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4188 ("call", "call_value"): Use second incoming operand as a marker
4189 for pic-offset-table-register being used.
4190 ("*expanded_call_non_v32", "*expanded_call_v32")
4191 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4192 second incoming operand to CALL, match cris_call_type_marker.
4193 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4194 ("*expanded_call_side"): Ditto. Fix typo in comment.
4195 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4196 CONSTANT_P.
4197 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4198 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4199 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4200 users changed. Add members cris_offsettable_symbol and cris_unspec.
4201 (cris_symbol_type): Rename from cris_pic_symbol_type.
4202 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4203 just CONSTANT_P.
4204 * config/cris/cris-protos.h (cris_symbol_type_of,
4205 cris_expand_pic_call_address): Adjust prototypes.
4206 (cris_legitimate_constant_p): New prototype.
4207
4208 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4209 an existing tmake_file. Don't add t-slibgcc and t-linux.
4210
4211 2014-07-17 Jason Merrill <jason@redhat.com>
4212
4213 PR c++/61623
4214 * symtab.c (symtab_remove_from_same_comdat_group): Also
4215 set_comdat_group to NULL_TREE.
4216 (verify_symtab): Fix diagnostic.
4217
4218 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4219
4220 PR target/61662
4221 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4222
4223 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4224
4225 Support location tracking for built-in macro tokens
4226 * input.h (is_location_from_builtin_token): New function declaration.
4227 * input.c (is_location_from_builtin_token): New function definition.
4228 * toplev.c (general_init): Tell libcpp what the pre-defined
4229 spelling location for built-in tokens is.
4230
4231 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4232
4233 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4234 on the FUNCTION_DECL.
4235
4236 2014-07-16 Richard Biener <rguenther@suse.de>
4237
4238 PR other/61782
4239 * doc/extend.texi (always_inline): Clarify.
4240
4241 2014-07-15 Eric Christopher <echristo@gmail.com>
4242
4243 * doc/invoke.texi (Link Options): Document -z option.
4244
4245 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4246
4247 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4248 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4249
4250 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4251
4252 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4253
4254 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4255
4256 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4257 varpool_assemble_decl.
4258 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4259 true.
4260
4261 2014-07-15 Michael Matz <matz@suse.de>
4262
4263 PR rtl-optimization/61772
4264 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4265
4266 2014-07-15 Richard Biener <rguenther@suse.de>
4267
4268 * opts.c (default_options_table): Disable bit-ccp at -Og.
4269
4270 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4271
4272 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4273
4274 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4275
4276 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4277 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4278 call langhook for unknown declaration.
4279 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4280 * tree.h (DECL_ARGUMENTS): Update.
4281 * print-tree.c (print_node): Update.
4282 * tree-core.h (tree_decl_non_common): Remove arguments.
4283 (tree_function_decl): Add arguments.
4284
4285 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4286
4287 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4288
4289 2014-07-14 Richard Biener <rguenther@suse.de>
4290
4291 PR tree-optimization/61779
4292 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4293 simplifying a condition.
4294
4295 2014-07-14 Richard Biener <rguenther@suse.de>
4296
4297 * builtins.c (c_strlen): Make only_value == 2 really only
4298 affect warning generation.
4299
4300 2014-07-14 Richard Biener <rguenther@suse.de>
4301
4302 PR tree-optimization/61757
4303 PR tree-optimization/61783
4304 PR tree-optimization/61787
4305 * tree-ssa-dom.c (record_equality): Revert canonicalization
4306 change and add comment.
4307 (propagate_rhs_into_lhs): Revert previous fix, removing
4308 loop depth restriction again.
4309
4310 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4311
4312 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4313 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4314 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4315 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4316 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4317 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4318 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4319
4320 2014-07-14 Richard Biener <rguenther@suse.de>
4321
4322 * cgraph.h (decl_in_symtab_p): Make inline.
4323
4324 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4325
4326 PR middle-end/61294
4327 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4328
4329 PR target/61656
4330 * config/i386/i386.c (classify_argument): Don't merge classes above
4331 number of words.
4332
4333 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4334
4335 * cgraph.h (symtab_node): Add nonzero_address.
4336 (decl_in_symtab_p): Break out from ...
4337 (symtab_get_node): ... here.
4338 * fold-const.c: Include cgraph.h
4339 (tree_single_nonzero_warnv_p): Use symtab to determine
4340 if symbol is non-zero.
4341 * symtab.c (symtab_node::nonzero_address): New method.
4342
4343 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4344
4345 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4346 forgotten in previous commit.
4347
4348 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4349
4350 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4351 on builtin types.
4352 * ipa-devirt.c: Include stor-layout.h and intl.h
4353 (odr_subtypes_equivalent_p): New function.
4354 (warn_odr): New function.
4355 (warn_type_mismatch): New function.
4356 (odr_types_equivalent_p): New function.
4357 (add_type_duplicate): Use it.
4358 * common.opt (Wodr): New flag.
4359 * doc/invoke.texi (Wodr): Document new warning.
4360
4361 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4362
4363 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4364 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4365 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4366 (varpool_get_constructor): Push CTORS_IN timevar.
4367 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4368
4369 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4370
4371 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4372 Remove VOID_FTYPE_PUSHORT.
4373 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4374 Change code to USHORT_FTYPE_VOID.
4375 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4376 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4377 (ix86_atomic_assign_expand_fenv): Update for
4378 __builtin_ia32_fnstsw changes.
4379 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4380 (fnstsw): Change operand 0 to nonimmediate operand.
4381
4382 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4383
4384 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4385 (varpool_get_constructor): New function.
4386 (varpool_ctor_useable_for_folding_p): Break out from ...
4387 (ctor_for_folding): ... here; use varpool_get_constructor.
4388 (varpool_assemble_decl): Likewise.
4389 * lto-streamer.h (struct output_block): Turn cgraph_node
4390 to symbol filed.
4391 (lto_input_variable_constructor): Declare.
4392 * ipa-visibility.c (function_and_variable_visibility): Use
4393 varpool_get_constructor.
4394 * cgraph.h (varpool_get_constructor): Declare.
4395 (varpool_ctor_useable_for_folding_p): New function.
4396 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4397 parameter; return error_mark_node for non-trivial constructors.
4398 (lto_write_tree_1, DFS_write_tree): Update use of
4399 get_symbol_initial_value.
4400 (output_function): Update initialization of symbol.
4401 (output_constructor): New function.
4402 (copy_function): Rename to ..
4403 (copy_function_or_variable): ... this one; handle vars too.
4404 (lto_output): Output variable sections.
4405 * lto-streamer-in.c (input_constructor): New function.
4406 (lto_read_body): Rename from ...
4407 (lto_read_body_or_constructor): ... this one; handle vars too.
4408 (lto_input_variable_constructor): New function.
4409 * ipa-prop.c (ipa_prop_write_jump_functions,
4410 ipa_prop_write_all_agg_replacement): Update.
4411 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4412 (output_cgraph_opt_summary): Set symbol to NULL.
4413
4414 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4415
4416 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4417 non-polymorphic types.
4418 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4419 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4420 of types is not polymorphic.
4421
4422 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4423
4424 * lra-constraints.c (remove_inheritance_pseudos): Process
4425 destination pseudo too.
4426
4427 2014-07-11 Rong Xu <xur@google.com>
4428
4429 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4430 commit r212448.
4431
4432 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4433
4434 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4435 * config/avr/avr-devices.c (AVR_MCU): Same.
4436 (avr_mcu_types): add text start value to end of device list.
4437 * config/avr/avr-mcus.def: Add text section start for all devices.
4438 (ata5782): Add new avr5 device.
4439 (ata5831): Same.
4440 * config/avr/avr-tables.opt: Regenerate.
4441 * config/avr/avr.h: Add declaration for text section start handler.
4442 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4443 SPEC functions.
4444 (LINK_SPEC): Include text section start handler to linker spec.
4445 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4446 pass -Ttext option to linker if the text section start for the device
4447 is not zero.
4448 * config/avr/t-multilib: Regenerate.
4449 * doc/avr-mmcu.texi: Regenerate.
4450
4451 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4452
4453 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4454 * config/rs6000/aix52.h (LINK_SPEC): Same.
4455 * config/rs6000/aix53.h (LINK_SPEC): Same.
4456 * config/rs6000/aix61.h (LINK_SPEC): Same.
4457 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4458
4459 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4460
4461 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4462 (graphite_verify): New function.
4463 (ivs_params_clear): New function.
4464 (gcc_expression_from_isl_ast_expr_id): New function.
4465 (gcc_expression_from_isl_expr_int): New function.
4466 (binary_op_to_tree): New function.
4467 (ternary_op_to_tree): New function.
4468 (unary_op_to_tree): New function.
4469 (nary_op_to_tree): New function.
4470 (gcc_expression_from_isl_expr_op): New function.
4471 (gcc_expression_from_isl_expression): New function.
4472 (graphite_create_new_loop): New function.
4473 (translate_isl_ast_for_loop): New function.
4474 (get_upper_bound): New function.
4475 (graphite_create_new_loop_guard): New function.
4476 (translate_isl_ast_node_for): New function.
4477 (translate_isl_ast): New function.
4478 (add_parameters_to_ivs_params): New function.
4479 (scop_to_isl_ast): New parameter ip.
4480 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4481
4482 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4483
4484 * config/xtensa/predicates.md (call expander): Update for
4485 DECL_SECTION_NAME being string.
4486
4487 2014-07-11 Richard Biener <rguenther@suse.de>
4488
4489 PR middle-end/61473
4490 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4491 can be implemented with a single load followed by a single store.
4492 (c_strlen): Only warn when only_value is not 2.
4493
4494 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4495
4496 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4497
4498 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4499
4500 PR target/61561
4501 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4502 (*movhi_bytes): Likewise.
4503 (*arm_movqi_insn): Likewise.
4504
4505 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4506
4507 PR target/56858
4508 * config/alpha/alpha.c: Include tree-pass.h, context.h
4509 and pass_manager.h.
4510 (pass_data_handle_trap_shadows): New pass.
4511 (pass_handle_trap_shadows::gate): New pass gate function.
4512 (make_pass_handle_trap_shadows): New function.
4513 (rest_of_handle_trap_shadows): Ditto.
4514
4515 (alpha_align_insns_1): Rename from alpha_align_insns.
4516 (pass_data_align_insns): New pass.
4517 (pass_align_insns::gate): New pass gate function.
4518 (make_pass_aling_insns): New function.
4519 (rest_of_align_insns): Ditto.
4520 (alpha_align_insns): Ditto.
4521
4522 (alpha_option_override): Declare handle_trap_shadows info
4523 and align_insns_info. Register handle_trap_shadows and align_insns
4524 passes here.
4525 (alpha_reorg): Do not call alpha_trap_shadows and
4526 alpha_align_insn from here.
4527
4528 (alpha_pad_function_end): Do not skip BARRIERs.
4529
4530 2014-07-10 Rong Xu <xur@google.com>
4531
4532 Add gcov-tool: an offline gcda profile processing tool support.
4533 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4534 (gcov_is_error): Ditto.
4535 (gcov_read_string): Ditto.
4536 (gcov_read_sync): Ditto.
4537 * gcov-io.h: Move counter defines to gcov-counter.def.
4538 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4539 * coverage.c: Ditto.
4540 * gcov-tool.c: Offline gcda profile processing tool.
4541 (unlink_gcda_file): Remove one gcda file.
4542 (unlink_profile_dir): Remove gcda files from the profile path.
4543 (gcov_output_files): Output gcda files to an output dir.
4544 (profile_merge): Merge two profiles in directory.
4545 (print_merge_usage_message): Print merge usage.
4546 (merge_usage): Print merge usage and exit.
4547 (do_merge): Driver for profile merge sub-command.
4548 (profile_rewrite): Rewrite profile.
4549 (print_rewrite_usage_message): Print rewrite usage.
4550 (rewrite_usage): Print rewrite usage and exit.
4551 (do_rewrite): Driver for profile rewrite sub-command.
4552 (print_usage): Print gcov-info usage and exit.
4553 (print_version): Print gcov-info version.
4554 (process_args): Process arguments.
4555 (main): Main routine for gcov-tool.
4556 * Makefile.in: Build and install gcov-tool.
4557 * gcov-counter.def: New file split from gcov-io.h.
4558 * doc/gcc.texi: Include gcov-tool.texi.
4559 * doc/gcov-tool.texi: Document for gcov-tool.
4560
4561 2014-07-10 Richard Biener <rguenther@suse.de>
4562
4563 PR tree-optimization/61757
4564 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4565 (propagate_rhs_into_lhs): Revert part of last change.
4566
4567 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4568
4569 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4570 FUNCTION_DECLs.
4571
4572 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4573
4574 PR middle-end/53590
4575 * function.c (allocate_struct_function): Revert r188667 change.
4576
4577 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4578
4579 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4580
4581 * doc/install.texi: Remove links to defunct package providers for
4582 Solaris.
4583
4584 2014-07-09 Tom de Vries <tom@codesourcery.com>
4585
4586 * final.c (get_call_fndecl): Declare.
4587 (self_recursive_call_p): New function.
4588 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4589
4590 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4591
4592 * ipa-devirt.c (record_node): Walk through aliases.
4593
4594 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4595
4596 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4597
4598 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4599
4600 Revert:
4601 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4602
4603 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4604
4605 * ipa-visibility.c (function_and_variable_visibility): Remove
4606 temporary hack disabling local aliases on AIX.
4607
4608 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4609
4610 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4611 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4612
4613 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4614
4615 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4616 * rs6000/rs6000.c: Inline output of .set instruction.
4617 (declare_alias_data): New struct.
4618 (rs6000_declare_alias): New function.
4619 (rs6000_xcoff_declare_function_name): Use it.
4620 (rs6000_xcoff_declare_object_name): New function.
4621 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4622 (ASM_OUTPUT_DEF): Turn to empty definition.
4623
4624 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4625
4626 PR bootstrap/61679
4627 * hash-table.h: use hash_table::value_type instead of
4628 Descriptor::value_type in the return types of several methods.
4629
4630 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4631
4632 * tree-pass.h (pass_data): Remove has_execute member.
4633 * passes.c (execute_one_pass): Don't check pass->has_execute.
4634 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4635 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4636 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4637 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4638 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4639 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4640 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4641 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4642 gimple-low.c, gimple-ssa-isolate-paths.c,
4643 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4644 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4645 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4646 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4647 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4648 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4649 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4650 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4651 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4652 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4653 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4654 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4655 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4656 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4657 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4658 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4659 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4660 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4661 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4662 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4663 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4664 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4665 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4666 web.c: Remove initializer for pass_data::has_execute.
4667
4668 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4669
4670 * graphite-htab.h: Use hash_map instead of hash_table.
4671 * graphite-clast-to-gimple.c: Adjust.
4672 * passes.c: Use hash_map instead of hash_table.
4673 * sese.c: Likewise.
4674 * sese.h: Remove now unused code.
4675
4676 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4677
4678 PR target/61599
4679 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4680 than zero.
4681
4682 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4683
4684 PR rtl-optimization/61673
4685 * combine.c (simplify_comparison): Test just mode's sign bit
4686 in tmode rather than the sign bit and any bits above it.
4687
4688 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4689
4690 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4691 Add __isl_give to the declaration.
4692 (generate_isl_schedule): Likewise.
4693 (scop_to_isl_ast): Likewise.
4694
4695 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4696
4697 * config/arm/arm.c (cortexa5_extra_costs): New table.
4698 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4699
4700 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4701
4702 PR tree-optimization/61725
4703 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4704 range, use range_includes_zerop_p instead of integer_zerop on
4705 vr0->min, only use log2 of max if min is not negative.
4706
4707 2014-07-08 Richard Biener <rguenther@suse.de>
4708
4709 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4710 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4711 restriction on loop depth difference.
4712 (record_equality): Likewise.
4713 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4714 (loop_depth_of_name): Remove.
4715 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4716 restriction on loop depth difference.
4717 (init_copy_prop): Likewise.
4718
4719 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4720
4721 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4722 parameter.
4723 (walk_aliased_vdefs): Likewise.
4724 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4725 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4726 (detect_type_change_from_memory_writes): Check if entry was reached.
4727
4728 2014-07-08 Richard Biener <rguenther@suse.de>
4729
4730 PR tree-optimization/61681
4731 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4732 NONLOCAL inside ESCAPED.
4733
4734 2014-07-08 Richard Biener <rguenther@suse.de>
4735
4736 PR tree-optimization/61680
4737 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4738 Handle properly all read-write dependences with group accesses.
4739
4740 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4741
4742 PR tree-optimization/61576
4743 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4744 block containing reduction statement is predecessor of phi basi block.
4745
4746 2014-07-08 Marek Polacek <polacek@redhat.com>
4747
4748 PR c/60226
4749 * fold-const.c (round_up_loc): Change the parameter type.
4750 Remove assert.
4751 * fold-const.h (round_up_loc): Adjust declaration.
4752 * stor-layout.c (finalize_record_size): Check for too large types.
4753
4754 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4755
4756 * symtab.c: Include calls.h.
4757 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4758
4759 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4760
4761 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4762 little-endian code generation.
4763 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4764 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4765 (spe_evmergehilo): Rename to...
4766 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4767 (spe_evmergelo): Rename to...
4768 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4769 (spe_evmergelohi): Rename to...
4770 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4771 (spe_evmergehi, spe_evmergehilo): New expanders.
4772 (spe_evmergelo, spe_evmergelohi): Likewise.
4773 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4774 (*frob_tf_ti): Likewise.
4775 (*frob_<mode>_di_2): Likewise.
4776 (*frob_tf_di_8_2): Likewise.
4777 (*frob_di_<mode>): Likewise.
4778 (*frob_ti_tf): Likewise.
4779 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4780 (*frob_ti_<mode>_8_2): Likewise.
4781 (*frob_ti_tf_2): Likewise.
4782 (mov_si<mode>_e500_subreg0): Rename to...
4783 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4784 endianness only.
4785 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4786 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4787 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4788 the big endianness only.
4789 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4790 (*mov_si<mode>_e500_subreg0_2): Rename to...
4791 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4792 big big endianness only.
4793 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4794 (*mov_si<mode>_e500_subreg4): Rename to...
4795 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4796 endianness only.
4797 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4798 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4799 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4800 the big endianness only.
4801 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4802 pattern.
4803 (*mov_si<mode>_e500_subreg4_2): Rename to...
4804 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4805 endianness only.
4806 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4807 (*mov_sitf_e500_subreg8): Rename to...
4808 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4809 endianness only.
4810 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4811 (*mov_sitf_e500_subreg8_2): Rename to...
4812 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4813 endianness only.
4814 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4815 (*mov_sitf_e500_subreg12): Rename to...
4816 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4817 endianness only.
4818 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4819 (*mov_sitf_e500_subreg12_2): Rename to...
4820 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4821 endianness only.
4822 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4823
4824 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4825
4826 * asan.c (instrument_strlen_call): Do not instrument first byte
4827 in strlen if already instrumented.
4828
4829 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4830
4831 * config/arm/arm.opt (mwords-little-endian): Delete.
4832 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4833 of TARGET_LITTLE_WORDS.
4834 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4835 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4836 warning.
4837 * doc/invoke.texi: Remove references to -mwords-little-endian.
4838
4839 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4840
4841 * expmed.c (struct init_expmed_rtl): Change all fields but
4842 pow2 and cint from struct rtx_def to rtx.
4843 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4844 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4845 at the end again.
4846
4847 2014-07-06 Marek Polacek <polacek@redhat.com>
4848
4849 PR c/6940
4850 * doc/invoke.texi: Document -Wsizeof-array-argument.
4851
4852 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4853
4854 * wide-int.h (wide_int_storage): Change declaration from struct
4855 to class.
4856
4857 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4858
4859 * cgraph.c (cgraph_create_indirect_edge): Update call of
4860 get_polymorphic_call_info.
4861 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4862 (possible_polymorphic_call_targets): Add parameter call.
4863 (decl_maybe_in_construction_p): New predicate.
4864 (get_polymorphic_call_info): Add parameter call;
4865 use decl_maybe_in_construction_p.
4866 * gimple-fold.c (fold_gimple_assign): Update use of
4867 possible_polymorphic_call_targets.
4868 (gimple_fold_call): Likewise.
4869 * ipa-prop.c: Inlcude calls.h
4870 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
4871 (param_type_may_change_p): New predicate.
4872 (detect_type_change_from_memory_writes): Break out from ...
4873 (detect_type_change): ... this one; use param_type_may_change_p.
4874 (detect_type_change_ssa): Use param_type_may_change_p.
4875 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
4876
4877 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
4878
4879 PR target/49423
4880 * config/arm/arm-protos.h (arm_legitimate_address_p,
4881 arm_is_constant_pool_ref): Add prototypes.
4882 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
4883 (arm_is_constant_pool_ref) New function.
4884 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
4885 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
4886 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
4887 operand. Remove pool_range and neg_pool_range attributes.
4888 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
4889 pool_range and neg_pool_range attributes.
4890 * config/arm/constraints.md (Uh): New constraint.
4891 (Uq): Don't allow constant pool references.
4892
4893 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
4894
4895 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
4896 (move_lo_quad_internal_be_<mode>): Likewise.
4897 (move_lo_quad_<mode>): Convert to define_expand.
4898 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
4899 (aarch64_simd_move_hi_quad_be_<mode>): New.
4900 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
4901 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
4902 (aarch64_combinez_be<mode>): New.
4903 (aarch64_combine<mode>): Convert to define_expand.
4904 (aarch64_combine_internal<mode>): New.
4905 (aarch64_simd_combine<mode>): Remove bogus RTL description.
4906
4907 2014-07-04 Tom de Vries <tom@codesourcery.com>
4908
4909 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
4910 combination of earlyclobber and read/write modifiers.
4911
4912 2014-07-04 Tom de Vries <tom@codesourcery.com>
4913
4914 * config/aarch64/aarch64-simd.md
4915 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
4916
4917 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
4918
4919 PR target/61714
4920 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
4921
4922 2014-07-04 Jakub Jelinek <jakub@redhat.com>
4923
4924 PR middle-end/61654
4925 * cgraphunit.c (expand_thunk): Call free_dominance_info.
4926
4927 PR tree-optimization/61684
4928 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
4929 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
4930
4931 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4932 Kito Cheng <kito@0xlab.org>
4933 Monk Chiang <sh.chiang04@gmail.com>
4934
4935 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
4936 (nds32_symbol_load_store_p): Move to ...
4937 (nds32_fp_as_gp_check_available): Move to ...
4938 * config/nds32/nds32-fp-as-gp.c: ... here.
4939 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
4940 extern declaration.
4941
4942 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4943 Kito Cheng <kito@0xlab.org>
4944 Monk Chiang <sh.chiang04@gmail.com>
4945
4946 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
4947 (nds32_expand_store_multiple): Move to ...
4948 (nds32_expand_movmemqi): Move to ...
4949 * config/nds32/nds32-memory-manipulation.c: ... here.
4950
4951 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4952 Kito Cheng <kito@0xlab.org>
4953 Monk Chiang <sh.chiang04@gmail.com>
4954
4955 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
4956 (nds32_output_casesi_pc_relative): Move to ...
4957 (nds32_output_casesi): Move to ...
4958 (nds32_mem_format): Move to ...
4959 (nds32_output_16bit_store): Move to ...
4960 (nds32_output_16bit_load): Move to ...
4961 (nds32_output_32bit_store): Move to ...
4962 (nds32_output_32bit_load): Move to ...
4963 (nds32_output_32bit_load_s): Move to ...
4964 (nds32_output_stack_push): Move to ...
4965 (nds32_output_stack_pop): Move to ...
4966 * config/nds32/nds32-md-auxiliary.c: ... here.
4967
4968 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4969 Ling-Hua Tseng <uranus@tinlans.org>
4970
4971 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
4972 the purpose of this file.
4973
4974 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4975 Kito Cheng <kito@0xlab.org>
4976 Monk Chiang <sh.chiang04@gmail.com>
4977
4978 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
4979 (nds32_address_cost): Move implementation to ...
4980 * config/nds32/nds32-cost.c: ... here.
4981 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
4982 (nds32_address_cost_impl): Declare.
4983
4984 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4985 Kito Cheng <kito@0xlab.org>
4986 Monk Chiang <sh.chiang04@gmail.com>
4987
4988 * config/nds32/nds32.c
4989 (nds32_consecutive_registers_load_store_p): Move to ...
4990 (nds32_valid_multiple_load_store): Move to ...
4991 (nds32_valid_stack_push_pop): Move to ...
4992 (nds32_can_use_bclr_p): Move to ...
4993 (nds32_can_use_bset_p): Move to ...
4994 (nds32_can_use_btgl_p): Move to ...
4995 (nds32_can_use_bitci_p): Move to ...
4996 * config/nds32/nds32-predicates.c: ... here.
4997
4998 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4999 Kito Cheng <kito@0xlab.org>
5000 Monk Chiang <sh.chiang04@gmail.com>
5001
5002 * config/nds32/nds32.c
5003 (nds32_expand_builtin_null_ftype_reg): Move to ...
5004 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5005 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5006 (nds32_init_builtins): Move implementation to ...
5007 (nds32_expand_builtin): Move implementation to ...
5008 * config/nds32/nds32-intrinsic.c: ... here.
5009 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5010 (nds32_expand_builtin_impl): Declare.
5011
5012 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5013 Kito Cheng <kito@0xlab.org>
5014 Monk Chiang <sh.chiang04@gmail.com>
5015
5016 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5017 (nds32_emit_section_tail_template): Move to ...
5018 (nds32_emit_isr_jmptbl_section): Move to ...
5019 (nds32_emit_isr_vector_section): Move to ...
5020 (nds32_emit_isr_reset_conten): Move to ...
5021 (nds32_check_isr_attrs_conflict): Move to ...
5022 (nds32_construct_isr_vectors_information): Move to ...
5023 (nds32_asm_file_start): Move implementation to ...
5024 (nds32_asm_file_end): Move implementation to ...
5025 * config/nds32/nds32-isr.c: ... here.
5026 * config/nds32/nds32-protos.h
5027 (nds32_check_isr_attrs_conflict): Declare.
5028 (nds32_construct_isr_vectors_information): Declare.
5029 (nds32_asm_file_start_for_isr): Declare.
5030 (nds32_asm_file_end_for_isr): Declare.
5031
5032 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5033 Kito Cheng <kito@0xlab.org>
5034 Monk Chiang <sh.chiang04@gmail.com>
5035
5036 * config.gcc (nds32*): Add new modules to extra_objs.
5037 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5038 (nds32be-*-*): Likewise.
5039 * config/nds32/nds32-cost.c: New file.
5040 * config/nds32/nds32-fp-as-gp.c: New file.
5041 * config/nds32/nds32-intrinsic.c: New file.
5042 * config/nds32/nds32-isr.c: New file.
5043 * config/nds32/nds32-md-auxiliary.c: New file.
5044 * config/nds32/nds32-memory-manipulation.c: New file.
5045 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5046 * config/nds32/nds32-predicates.c: New file.
5047 * config/nds32/t-nds32: New file.
5048
5049 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5050
5051 PR tree-optimization/61682
5052 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5053 using cases and when one of the operands is equal to 1.
5054
5055 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5056
5057 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5058 ashr<mode>3): Correct mode of operands[2].
5059 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5060 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5061 Correct mode of operands[2]. Fix split condition.
5062
5063 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5064
5065 * arm.md (arch): Add armv6_or_vfpv3.
5066 (arch_enabled): Add test for the above.
5067 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5068 on VFP9.
5069 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5070
5071 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5072
5073 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5074 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5075 HWI 1 and negate the unsigned value.
5076 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5077 use AND instead of shift.
5078 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5079
5080 2014-07-03 Marek Polacek <polacek@redhat.com>
5081
5082 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5083 (-fsanitize=float-divide-by-zero): Move to the table with
5084 -fsanitize=undefined suboptions.
5085 (-fsanitize=float-cast-overflow): Likewise.
5086
5087 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5088
5089 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5090 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5091 endianness.
5092
5093 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5094
5095 * loop-invariant.c (struct invariant): Add a new member: eqno;
5096 (find_identical_invariants): Update eqno;
5097 (create_new_invariant): Init eqno;
5098 (get_inv_cost): Compute comp_cost with eqno;
5099
5100 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5101
5102 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5103 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5104 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5105 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5106 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5107
5108 2014-07-02 Christian Bruel <christian.bruel@st.com>
5109
5110 PR target/29349
5111 PR target/53513
5112 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5113 (make_preds_opaque): Delete.
5114 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5115 (commit_mode_sets): New function.
5116 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5117 Process all modes at once.
5118 * basic-block.h (pre_edge_lcm_avs): Declare.
5119 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5120 Call clear_aux_for_edges. Fix comments.
5121 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5122 (pre_edge_rev_lcm): Idem.
5123 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5124 parameter.
5125 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5126 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5127 Idem.
5128 * config/i386/i386.c (x96_emit_mode_set): Idem.
5129 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5130 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5131 (fpscr_toggle) Disallow from delay slot.
5132 * target.def (emit_mode_set): Add prev_mode parameter.
5133 * doc/tm.texi: Regenerate.
5134
5135 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5136
5137 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5138 variable i.
5139
5140 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5141
5142 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5143 vtable_pointer_value_to_vtable): Constify.
5144 (contains_polymorphic_type_p): Declare.
5145 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5146 vtable_pointer_value_to_vtable): Constify.
5147 (contains_polymorphic_type_p): New predicate.
5148 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5149 polymorphic types.
5150 (ipa_set_ancestor_jf): Likewise.
5151 (detect_type_change): Return false in easy cases.
5152 (compute_complex_assign_jump_func): Require type to contain
5153 polymorphic type.
5154 (compute_known_type_jump_func): Likewise.
5155
5156 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5157
5158 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5159 Remove.
5160 (type_in_anonymous_namespace_p): Constify argument.
5161 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5162 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5163 (main_odr_variant): New function.
5164 (hash_type_name): Make static; update assert; do not ICE on
5165 non-records.
5166 (types_same_for_odr): Bring here from tree.c; simplify and remove
5167 old structural comparing code that doesn't work for templates.
5168 (odr_hasher::equal): Update assert.
5169 (add_type_duplicate): Return true when bases should be computed;
5170 replace incomplete loader by complete; do not output duplicated
5171 warnings; do not ICE on non-records; set odr_violated flag.
5172 (get_odr_type): Be ready to replace incomplete type by complete
5173 one; work on ODR variants instead of main variants; reorder item
5174 in array so bases have still smaller indexes.
5175 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5176 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5177
5178 2014-07-01 Cary Coutant <ccoutant@google.com>
5179
5180 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5181 lookup.
5182 (resolve_addr_in_expr): When replacing the rtx in a location list
5183 entry, get a new address table entry.
5184 (dwarf2out_finish): Call index_location_lists even if there are no
5185 addr_index_table entries yet.
5186
5187 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5188
5189 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5190 change for not being obvious.
5191
5192 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5193
5194 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5195 unused argument.
5196
5197 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5198
5199 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5200 (vcagt_f64): Likewise.
5201 (vcale_f64): Likewise.
5202 (vcaled_f64): Likewise.
5203 (vcales_f32): Likewise.
5204 (vcalt_f64): Likewise.
5205 (vcaltd_f64): Likewise.
5206 (vcalts_f32): Likewise.
5207
5208 2014-07-01 Marek Polacek <polacek@redhat.com>
5209
5210 * doc/invoke.texi: Document -Wint-conversion.
5211
5212 2014-07-01 Marek Polacek <polacek@redhat.com>
5213
5214 PR c/58286
5215 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5216
5217 2014-07-01 Martin Liska <mliska@suse.cz>
5218
5219 IPA REF alias refactoring
5220 * cgraph.h (iterate_direct_aliases): New function.
5221 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5222 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5223 FOR_EACH_ALIAS added.
5224 (cgraph_for_node_and_aliases): Likewise.
5225 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5226 * ipa-inline.c (reset_edge_caches): Likewise.
5227 (update_caller_keys): Likewise.
5228 * trans-mem.c (ipa_tm_execute): Likewise.
5229 *varpool.c (varpool_analyze_node): Likewise.
5230 (varpool_for_node_and_aliases): Likewise.
5231 * ipa-ref.h (first_alias): New function.
5232 (last_alias): Likewise.
5233 (has_aliases_p): Likewise.
5234 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5235 is sensitive to IPA_REF_ALIASes.
5236 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5237 are put at the beginning of the list.
5238 (symtab_node::iterate_direct_aliases): New function.
5239
5240 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5241
5242 Revert:
5243 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5244 type is complete.
5245 (write_ts_type_common_tree_pointers): Do not stream fields not set
5246 for incomplete types; do not stream duplicated fields for variants;
5247 sanity check that variant and type match.
5248 (write_ts_type_non_common_tree_pointers): Likewise.
5249 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5250 TYPE_SIZE whether type is complete.
5251 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5252 write_ts_type_common_tree_pointers
5253 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5254
5255 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5256
5257 * var-tracking.c (add_stores): Return instead of asserting if old
5258 and new values for conditional store are the same.
5259
5260 2014-06-30 Richard Henderson <rth@redhat.com>
5261
5262 PR rtl-opt/61608
5263 PR target/39284
5264 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5265 the cfg if there were any changes.
5266 * passes.def: Revert move of peephole2 after reorder_blocks;
5267 move duplicate_computed_gotos before peephole2.
5268
5269 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5270
5271 * except.c (emit_note_eh_region_end): New helper function.
5272 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5273 emit EH_REGION_END note.
5274 * jump.c (cleanup_barriers): Do not split a call and its
5275 corresponding CALL_ARG_LOCATION note.
5276
5277 2014-06-30 Jeff Law <law@redhat.com>
5278
5279 PR tree-optimization/61607
5280 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5281 deeper into the SSA_NAME_VALUE chain.
5282
5283 2014-06-30 Marek Polacek <polacek@redhat.com>
5284
5285 * convert.c (convert_to_integer): Don't instrument conversions if the
5286 function has no_sanitize_undefined attribute.
5287 * ubsan.c: Don't run the ubsan pass if the function has
5288 no_sanitize_undefined attribute.
5289
5290 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5291
5292 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5293 -fsanitize=undefined suboptions.
5294
5295 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5296
5297 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5298 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5299 against bigendian and adjust indices.
5300
5301 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5302
5303 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5304
5305 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5306
5307 PR target/61633
5308 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5309 Add alternative; make early clobber. Adjust both split patterns
5310 to use operand 0 as the working register.
5311
5312 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5313
5314 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5315 as ira_object_id_map might be NULL, or 1.
5316
5317 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5318
5319 * loop-invariant.c (get_inv_cost): Handle register class.
5320 (gain_for_invariant): Check the register pressure of the inv
5321 and its overlapped register class, other than all.
5322
5323 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5324
5325 * doc/invoke.texi (Optimize Options): Fix descriptions of
5326 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5327
5328 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5329
5330 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5331 documentation.
5332
5333 2014-06-29 Tobias Grosser <tobias@grosser.es>
5334
5335 PR bootstrap/61650
5336 * graphite-isl-ast-to-gimple.c: Add missing guards.
5337
5338 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5339
5340 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5341 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5342 * flag-types.h: Add new enum fgraphite_generator.
5343 * graphite-isl-ast-to-gimple.c: New.
5344 * graphite-isl-ast-to-gimple.h: New.
5345 * graphite.c (graphite_transform_loops): Add choice of Graphite
5346 code generator, which depends on flag_graphite_code_gen.
5347
5348 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5349
5350 * graphite-dependences.c (subtract_commutative_associative_deps):
5351 Add NULL checking of the following variables: must_raw_no_source,
5352 may_raw_no_source, must_war_no_source, may_war_no_source,
5353 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5354 must_war, may_war, must_waw, may_waw.
5355
5356 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5357
5358 * graphite-clast-to-gimple.c: gloog is renamed to
5359 graphite_regenerate_ast_cloog. gloog_error is renamed to
5360 graphite_regenerate_error.
5361 * graphite-clast-to-gimple.h: The definition of the struct
5362 bb_pbb_def is moved to graphite-htab.h.
5363 Add inclusion of the hash-table.h.
5364 * graphite-htab.h: The declaration of the function gloog is moved
5365 to graphite-clast-to-gimple.h and renamed to
5366 graphite_regenerate_ast_cloog.
5367 * graphite.c (graphite_transform_loops): gloog is renamed
5368 to graphite_regenerate_ast_cloog.
5369
5370 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5371
5372 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5373 type is complete.
5374 (write_ts_type_common_tree_pointers): Do not stream fields not set
5375 for incomplete types; do not stream duplicated fields for variants;
5376 sanity check that variant and type match.
5377 (write_ts_type_non_common_tree_pointers): Likewise.
5378 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5379 TYPE_SIZE whether type is complete.
5380 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5381 write_ts_type_common_tree_pointers
5382 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5383
5384 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5385
5386 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5387
5388 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5389
5390 * tree-inline.c (remap_type_1): Do not duplicate fields
5391 that are shared in between type and its main variant.
5392
5393 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5394
5395 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5396 of the type.
5397 (ipa_set_ancestor_jf) Likewise.
5398 (check_stmt_for_type_change): Check that we work on main variant.
5399 (detect_type_change): Look into main variant.
5400 (compute_known_type_jump_func): Check that main variant has BINFO.
5401
5402 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5403
5404 * ipa-devirt.c (set_type_binfo): New function.
5405 (add_type_duplicate): Use it.
5406 (get_odr_type): Sanity check that binfos points to main variants.
5407 (get_class_context): Be sure the context's outer_type is main variant.
5408 (contains_type_p): Walk main variant.
5409 (get_polymorphic_call_info_for_decl): Set outer_type to be
5410 main variant.
5411 (get_polymorphic_call_info): Likewise.
5412 (possible_polymorphic_call_targets): Sanity check that we operate
5413 on main variant.
5414
5415 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5416
5417 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5418
5419 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5420
5421 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5422 accidental change due to wide-int branch merge.
5423
5424 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5425
5426 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5427 compressed debug support.
5428 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5429 * configure: Regenerate.
5430 * config.in: Regenerate.
5431 * common.opt (compressed_debug_sections): New enum.
5432 (gz, gz=): New options.
5433 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5434 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5435 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5436 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5437 LINK_COMPRESS_DEBUG_SPEC.
5438 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5439 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5440 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5441 (Debugging Options): Document -gz[=type].
5442
5443 2014-06-27 Martin Jambor <mjambor@suse.cz>
5444
5445 PR ipa/61160
5446 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5447 args_to_skip, use those from node instead. Copy args_to_skip and
5448 combined_args_to_skip from node to the new thunk.
5449 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5450 (cgraph_create_virtual_clone): Moved computation of
5451 combined_args_to_skip...
5452 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5453
5454 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5455
5456 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5457 redundant diagnostic machinary.
5458
5459 2014-06-27 Richard Biener <rguenther@suse.de>
5460
5461 * tree-ssa-math-opts.c (bswap_replace): Fix
5462 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5463
5464 2014-06-27 Martin Liska <mliska@suse.cz>
5465
5466 * gimple.h (gimple_location_safe): New function introduced.
5467 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5468 of gimple_location_safe replaces gimple_location.
5469 (gimple_fold_call): Likewise.
5470 * ipa-devirt.c (ipa_devirt): Likewise.
5471 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5472 * ipa.c (walk_polymorphic_call_targets): Likewise.
5473 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5474
5475 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5476
5477 PR tree-optimization/57233
5478 PR tree-optimization/61299
5479 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5480 functions.
5481 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5482 would be lowered to scalar shifts, check if corresponding
5483 shifts and vector BIT_IOR_EXPR are supported and don't lower
5484 or lower just to narrower vector type in that case.
5485 * expmed.c (expand_shift_1): Fix up handling of vector
5486 shifts and rotates.
5487
5488 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5489
5490 PR target/61586
5491 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5492
5493 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5494
5495 * doc/invoke.texi (-fsemantic-interposition): Document.
5496 * common.opt (fsemantic-interposition): New flag.
5497 * varasm.c (decl_replaceable_p): Use it.
5498
5499 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5500
5501 PR target/61542
5502 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5503 extraction other than index 3.
5504
5505 2014-06-26 Teresa Johnson <tejohnson@google.com>
5506
5507 * doc/invoke.texi: Fix typo.
5508 * dumpfile.c: Add support for documented -fdump-* options
5509 optimized/missed/note/optall.
5510
5511 2014-06-26 Martin Jambor <mjambor@suse.cz>
5512
5513 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5514 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5515 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5516 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5517 * opts.c (default_options_optimization): Set
5518 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5519 * doc/invoke.texi (allow-load-data-races)
5520 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5521 (allow-store-data-races): Document the new default.
5522
5523 2014-06-26 Martin Jambor <mjambor@suse.cz>
5524
5525 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5526 renamed to ipa_impossible_devirt_target. Fix typo.
5527 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5528 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5529 ipa_impossible_devirt_target.
5530
5531 2014-06-26 Richard Biener <rguenther@suse.de>
5532
5533 PR tree-optimization/61607
5534 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5535 explaining why we restrict copies on loop depth.
5536 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5537 on loop depth.
5538 (record_equivalences_from_phis): Instead add it here.
5539
5540 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5541
5542 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5543 (LTO_WRAPPER_OBJS): New variable.
5544 (lto-wrapper$(exeext)): Use it.
5545 * collect2.c: Include "collect-utils.h".
5546 (verbose, debug): Remove variables.
5547 (at_file_supplied): No longer static.
5548 (tool_name): New variable.
5549 (do_wait, fork_execute, maybe_unlink): Don't declare.
5550 (tool_cleanup): No longer static.
5551 (notice): Remove function.
5552 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5553 fork_execute calls.
5554 (collect_wait, do_wait, collect_execute): Remove functions.
5555 (maybe_unlink): No longer static.
5556 * collect2.h (verbose, debug): Don't declare.
5557 (at_file_supplied): Declare.
5558 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5559 changed.
5560 (collect_execute): Replace with implementation from collect2, plus a
5561 new arg use_atfile. All callers changed.
5562 (collect_wait): Replace with implementation from collect2.
5563 (maybe_unlink_file): Remove function.
5564 (fork_execute): Replace with implementation from collect2, plus a
5565 new arg use_atfile. All callers changed.
5566 (do_wait): Add call to utils_cleanup to the error path.
5567 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5568 (tool_cleanup): Adjust declarations.
5569 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5570 * tlink.c: Include "collect-utils.h".
5571 (tlink_execute): New arg use_atfile. All callers changed.
5572 (tlink_init, tlink_execute): Remove declarations.
5573
5574 * collect-utils.c (save_temps): New variable.
5575 (do_wait): Use it instead of debug. Use fatal_error.
5576 * collect-utils.h (save_temps): Declare.
5577 * collect2.c (verbose): Rename from vflag. All uses changed.
5578 (tool_cleanup): New function, copied from collect_atexit.
5579 (collect_atexit, handler): Just call it.
5580 * collect2.h (verbose): Declaration renamed from vflag.
5581 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5582 debug.
5583
5584 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5585 (lto-wrapper$(exeext)): Link with collect-utils.o.
5586 * collect-utils.c: New file.
5587 * collect-utils.h: New file.
5588 * lto-wrapper.c: Include "collect-utils.h".
5589 (args_name): Delete variable.
5590 (tool_name): New variable.
5591 (tool_cleanup): New function.
5592 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5593 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5594 (fork_execute): Remove functions.
5595
5596 2014-06-26 Nick Clifton <nickc@redhat.com>
5597
5598 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5599
5600 * doc/extend.texi (Function Attributes): Fix typo in description
5601 of RX vector attribute.
5602
5603 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5604
5605 * config.gcc (supported_defaults): Error when passing either
5606 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5607
5608 2014-06-26 Richard Biener <rguenther@suse.de>
5609
5610 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5611 propagating volatile pointers.
5612
5613 2014-06-26 Richard Biener <rguenther@suse.de>
5614
5615 PR tree-optimization/61607
5616 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5617 loop if we redirected its latch edge.
5618 (thread_block_1): Do not cancel loops prematurely.
5619
5620 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5621
5622 * toplev.c (backend_init_target): Move init_emit_regs and
5623 init_regs to...
5624 (backend_init) ... here; skip ira_init_once and backend_init_target.
5625 (target_reinit) ... and here; clear
5626 this_target_rtl->lang_dependent_initialized.
5627 (lang_dependent_init_target): Clear
5628 this_target_rtl->lang_dependent_initialized;
5629 break out rtl initialization to ...
5630 (initialize_rtl): ... here; call also backend_init_target
5631 and ira_init_once.
5632 * toplev.h (initialize_rtl): New function.
5633 * function.c: Include toplev.h
5634 (init_function_start): Call initialize_rtl.
5635 * rtl.h (target_rtl): Add target_specific_initialized,
5636 lang_dependent_initialized.
5637
5638 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5639 Jakub Jelinek <jakub@redhat.com>
5640
5641 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5642
5643 2014-06-25 Tom de Vries <tom@codesourcery.com>
5644
5645 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5646
5647 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5648
5649 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5650 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5651 Issue a strict overflow warning if appropriate.
5652
5653 2014-06-25 Martin Liska <mliska@suse.cz>
5654
5655 IPA REF refactoring
5656 * Makefile.in: Removed header file (ipa-ref-inline.h).
5657 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5658 called.
5659 (cgraph_speculative_call_info): Likewise.
5660 (cgraph_for_node_thunks_and_aliases): Likewise.
5661 (cgraph_for_node_and_aliases): Likewise.
5662 (verify_cgraph_node): Likewise.
5663 * cgraph.h: Batch of IPA REF functions become member functions of
5664 symtab_node: add_reference, maybe_add_reference, clone_references,
5665 clone_referring, clone_reference, find_reference,
5666 remove_stmt_references, remove_all_references,
5667 remove_all_referring, dump_references, dump_referring,
5668 has_alias_p, iterate_reference, iterate_referring.
5669 * cgraphbuild.c (record_reference): New IPA REF function used.
5670 (record_type_list): Likewise.
5671 (record_eh_tables): Likewise.
5672 (mark_address): Likewise.
5673 (mark_load): Likewise.
5674 (mark_store): Likewise.
5675 (pass_build_cgraph_edges): Likewise.
5676 (rebuild_cgraph_edge): Likewise.
5677 (cgraph_rebuild_references): Likewise.
5678 (pass_remove_cgraph_callee_edges): Likewise.
5679 * cgraphclones.c (cgraph_clone_node): Likewise.
5680 (cgraph_create_virtual_clone): Likewise.
5681 (cgraph_materialize_clone): Likewise.
5682 (cgraph_materialize_all_clones): Likewise.
5683 * cgraphunit.c (cgraph_reset_node): Likewise.
5684 (cgraph_reset_node): Likewise.
5685 (analyze_function): Likewise.
5686 (assemble_thunks_and_aliases): Likewise.
5687 (expand_function): Likewise.
5688 * ipa-comdats.c (propagate_comdat_group): Likewise.
5689 (enqueue_references): Likewise.
5690 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5691 (create_specialized_node): Likewise.
5692 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5693 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5694 * ipa-inline.c (reset_edge_caches): Likewise.
5695 (update_caller_keys): Likewise.
5696 (execute): Likewise.
5697 * ipa-prop.c (remove_described_reference): Likewise.
5698 (propagate_controlled_uses): Likewise.
5699 (ipa_edge_duplication_hook): Likewise.
5700 (ipa_modify_call_arguments): Likewise.
5701 * ipa-pure-const.c (propagate_pure_const): Likewise.
5702 * ipa-ref-inline.h: Header file removed, functions moved
5703 to symtab_node class.
5704 * ipa-ref.c (remove_reference): New class member function.
5705 (cannot_lead_to_return): New class member function.
5706 (referring_ref_list): Likewise.
5707 (referred_ref_list): Likewise.
5708 Rest of functions moved to symtab_node class.
5709 * ipa-ref.h: New member functions remove_reference,
5710 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5711 to ipa_ref class.
5712 ipa_ref_list class has new member functions: first_reference,
5713 first_referring, clear, nreferences.
5714 * ipa-reference.c (analyze_function): New IPA REF function used.
5715 (write_node_summary_p): Likewise.
5716 (ipa_reference_write_optimization_summary): Likewise.
5717 * ipa-split.c (split_function): Likewise.
5718 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5719 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5720 (function_and_variable_visibility): Likewise.
5721 * ipa.c (has_addr_references_p): Likewise.
5722 (process_references): Argument type changed.
5723 (symtab_remove_unreachable_nodes): New IPA REF function used.
5724 (process_references): Likewise.
5725 (set_writeonly_bit): Likewise.
5726 * lto-cgraph.c: Implementation of new symtab_node member functions
5727 that uses new IPA REF functions.
5728 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5729 function used.
5730 * lto-streamer-out.c (output_symbol_p): Likewise.
5731 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5732 changed.
5733 * symtab.c: Implementation of new IPA REF API.
5734 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5735 (ipa_tm_create_version): Likewise.
5736 (ipa_tm_execute): Likewise.
5737 * tree-emutls.c (gen_emutls_addr): Likewise.
5738 * tree-inline.c (copy_bb): Likewise.
5739 (delete_unreachable_blocks_update_callgraph): Likewise.
5740 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5741 (varpool_for_node_and_aliases): Likewise.
5742
5743 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5744
5745 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5746
5747 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5748
5749 PR bootstrap/61598
5750 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5751 tree_node * instead of tree_node *.
5752 (fold): Adjust.
5753 (print_fold_checksum): Likewise.
5754 (fold_check_failed): Likewise.
5755 (debug_fold_checksum): Likewise.
5756 (fold_build1_stat_loc): Likewise.
5757 (fold_build2_stat_loc): Likewise.
5758 (fold_build3_stat_loc): Likewise.
5759 (fold_build_call_array_loc): Likewise.
5760
5761 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5762
5763 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5764 implementation with call to...
5765 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5766 function.
5767 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5768 Declare.
5769
5770 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5771
5772 PR tree-optimization/57742
5773 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5774 after replacing the statement.
5775
5776 2014-06-25 Nick Clifton <nickc@redhat.com>
5777
5778 * config/v850/v850.c (GHS_default_section_names): Change to const
5779 char * type.
5780 (GHS_current_section_names): Likewise.
5781 (v850_insert_attributes): Do not build strings, just assign the
5782 names directly. Change the type of 'chosen_section' to const
5783 char*.
5784 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5785 directly to the array entry.
5786 * config/v850/v850.h (GHS_default_section_names): Change to const
5787 char * type.
5788 (GHS_current_section_names): Likewise.
5789
5790 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5791
5792 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5793 (LANG_HOOKS_DECLS): Add it.
5794 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5795 has correct type.
5796 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5797 * langhooks.h (struct lang_hooks_for_decls): Add
5798 omp_clause_linear_ctor hook.
5799 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5800 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5801 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5802 combined simd loop use omp_clause_linear_ctor hook.
5803
5804 2014-06-24 Cong Hou <congh@google.com>
5805
5806 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5807 pattern recognition.
5808 (type_conversion_p): PROMOTION is true if it's a type promotion
5809 conversion, and false otherwise. Return true if the given expression
5810 is a type conversion one.
5811 * tree-vectorizer.h: Adjust the number of patterns.
5812 * tree.def: Add SAD_EXPR.
5813 * optabs.def: Add sad_optab.
5814 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5815 * expr.c (expand_expr_real_2): Likewise.
5816 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5817 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5818 * optabs.c (optab_for_tree_code): Likewise.
5819 * tree-cfg.c (estimate_operator_cost): Likewise.
5820 * tree-ssa-operands.c (get_expr_operands): Likewise.
5821 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5822 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5823 * doc/generic.texi: Add document for SAD_EXPR.
5824 * doc/md.texi: Add document for ssad and usad.
5825
5826 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5827
5828 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5829 qualification in cast.
5830
5831 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5832
5833 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5834 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5835 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5836 (tree_function_decl): ... here.
5837 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5838 streaming of vindex to ...
5839 (write_ts_function_decl_tree_pointers): ... here.
5840 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5841 Do not stream DECL_VINDEX.
5842 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5843
5844 2014-06-24 Catherine Moore <clm@codesourcery.com>
5845 Sandra Loosemore <sandra@codesourcery.com>
5846
5847 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5848 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5849 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5850
5851 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5852
5853 * doc/invoke.texi (Warning Options): Remove duplicated
5854 -Wmaybe-uninitialized.
5855
5856 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5857
5858 PR tree-optimization/57742
5859 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5860 (handle_builtin_malloc, handle_builtin_memset): New functions.
5861 (strlen_optimize_stmt): Call them.
5862 * passes.def: Move strlen after loop+dom but before vrp.
5863
5864 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5865
5866 PR target/61570
5867 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
5868 model family 6 CPU with has_longmode never use a CPU without
5869 64-bit support.
5870
5871 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
5872
5873 PR target/61570
5874 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
5875 the last change.
5876
5877 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5878
5879 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
5880 * dominance.c (iterate_fix_dominators): Use hash_map instead of
5881 pointer_map.
5882 * hash-map.h: New file.
5883 * ipa-comdats.c: Use hash_map instead of pointer_map.
5884 * ipa.c: Likewise.
5885 * lto-section-out.c: Adjust.
5886 * lto-streamer.h: Replace pointer_map with hash_map.
5887 * symtab.c (verify_symtab): Likewise.
5888 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
5889 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
5890 * tree-streamer.h: Likewise.
5891 * tree-streamer.c: Adjust.
5892 * pointer-set.h: Remove pointer_map.
5893
5894 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5895
5896 * hash-table.h: Add a template arg to choose between storing values
5897 and storing pointers to values, and then provide partial
5898 specializations for both.
5899 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
5900 should store, not the type values should point to.
5901 * tree-into-ssa.c (var_info_hasher): Likewise.
5902 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
5903 * tree-complex.c: Adjust.
5904 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
5905 table instead of int_tree_map *.
5906 * tree-parloops.c: Adjust.
5907 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
5908 type is being stored.
5909 * tree-vectorizer.c: Adjust.
5910
5911 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5912
5913 * hash-table.h: Remove a layer of indirection from hash_table so that
5914 it contains the hash table's data instead of a pointer to the data.
5915 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
5916 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
5917 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
5918 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
5919 fold-const.c, gcse.c, ggc-common.c,
5920 gimple-ssa-strength-reduction.c, gimplify.c,
5921 graphite-clast-to-gimple.c, graphite-dependences.c,
5922 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
5923 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
5924 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
5925 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
5926 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
5927 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
5928 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
5929 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
5930 tree-ssa-live.c, tree-ssa-loop-im.c,
5931 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
5932 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5933 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
5934 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
5935 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
5936 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
5937 vtable-verify.c, vtable-verify.h: Adjust.
5938
5939 2014-06-24 Richard Biener <rguenther@suse.de>
5940
5941 PR tree-optimization/61572
5942 * tree-ssa-sink.c (statement_sink_location): Do not sink
5943 loads from hard registers.
5944
5945 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5946
5947 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
5948 not mentioned in clauses use private clause if the iterator is
5949 declared in #pragma omp for simd, and when adding lastprivate
5950 instead, add it to the outer #pragma omp for too. Diagnose
5951 if the variable is private in outer context. For simd collapse > 1
5952 loops, replace all iterators with temporaries.
5953 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
5954 same even in collapse > 1 loops.
5955
5956 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
5957 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
5958 non-NULL.
5959 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
5960 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
5961 non-NULL.
5962 (gimplify_adjust_omp_clauses): Likewise.
5963 * omp-low.c (lower_rec_simd_input_clauses,
5964 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
5965 safelen the same as safelen(1).
5966 * tree-nested.c (convert_nonlocal_omp_clauses,
5967 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
5968 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
5969 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
5970 Fixup handling of GIMPLE_OMP_TARGET.
5971 (convert_tramp_reference_stmt, convert_gimple_call): Handle
5972 GIMPLE_OMP_TARGET.
5973
5974 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
5975
5976 PR tree-optimization/61554
5977 * tree-ssa-propagate.c: Include "bitmap.h".
5978 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
5979 properly update constructor/destructor.
5980 (substitute_and_fold_dom_walker::before_dom_children):
5981 Remove call to gimple_purge_dead_eh_edges, add bb->index to
5982 need_eh_cleaup instead.
5983 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
5984 need_eh_cleanup.
5985
5986 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
5987
5988 * varpool.c (dump_varpool_node): Dump used_by_single_function.
5989 * tree-pass.h (make_pass_ipa_single_use): New pass.
5990 * cgraph.h (used_by_single_function): New flag.
5991 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
5992 Stream it.
5993 * passes.def (pass_ipa_single_use): Scedule.
5994 * ipa.c (BOTTOM): New macro.
5995 (meet): New function
5996 (propagate_single_user): New function.
5997 (ipa_single_use): New function.
5998 (pass_data_ipa_single_use): New pass.
5999 (pass_ipa_single_use): New pass.
6000 (pass_ipa_single_use::gate): New gate.
6001 (make_pass_ipa_single_use): New function.
6002
6003 2014-06-23 Kai Tietz <ktietz@redhat.com>
6004
6005 PR target/39284
6006 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6007 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6008
6009 2014-06-23 Richard Biener <rguenther@suse.de>
6010
6011 * tree-ssa-loop.c (gate_loop): New function.
6012 (pass_tree_loop::gate): Call it.
6013 (pass_data_tree_no_loop, pass_tree_no_loop,
6014 make_pass_tree_no_loop): New.
6015 * tree-vectorizer.c: Include tree-scalar-evolution.c
6016 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6017 required.
6018 (pass_slp_vectorize::clone): New method.
6019 * timevar.def (TV_TREE_NOLOOP): New.
6020 * tree-pass.h (make_pass_tree_no_loop): Declare.
6021 * passes.def (pass_tree_no_loop): New pass group with
6022 SLP vectorizer.
6023
6024 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6025
6026 PR target/61570
6027 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6028 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6029
6030 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6031
6032 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6033 "yes" where needed.
6034
6035 2014-06-23 Alan Modra <amodra@gmail.com>
6036
6037 PR bootstrap/61583
6038 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6039 to zero on debug statements.
6040
6041 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6042
6043 PR target/60825
6044 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6045 Ignore third operand if present by marking qualifier_internal.
6046
6047 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6048
6049 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6050 vector extension.
6051 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6052 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6053 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6054 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6055 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6056 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6057 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6058 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6059 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6060 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6061 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6062 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6063 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6064 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6065 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6066 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6067 logic in GCC vector extensions
6068
6069 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6070 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6071 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6072 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6073 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6074 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6075 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6076 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6077 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6078 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6079
6080 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6081
6082 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6083 extensions.
6084
6085 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6086 (vget_low_s64): Use __GET_LOW macro.
6087 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6088 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6089 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6090 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6091 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6092
6093 (vcombine_s64): Use GCC vector extensions; remove cast.
6094 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6095 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6096 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6097 Fix type signature; remove cast.
6098
6099 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6100
6101 PR target/60825
6102 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6103 V1DFmode.
6104 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6105 add V1DFmode
6106 (BUILTIN_VD1): New.
6107 (BUILTIN_VD_RE): Remove.
6108 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6109 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6110 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6111 variant but not df.
6112 (vreinterpretv1df*, vreinterpret*v1df): New.
6113 (vreinterpretdf*, vreinterpret*df): Remove.
6114 * config/aarch64/aarch64-simd.md (aarch64_create,
6115 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6116 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6117 (VD1): New.
6118 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6119 (vcreate_f64): Remove cast, use v1df builtin.
6120 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6121 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6122 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6123 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6124 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6125 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6126 add range check using __builtin_aarch64_im_lane_boundsi.
6127 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6128 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6129 type signature, use gcc vector extensions.
6130 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6131 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6132 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6133 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6134 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6135 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6136 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6137 vreinterpret_u64_f64): Use v1df builtin not df.
6138
6139 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6140
6141 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6142 vector registers.
6143
6144 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6145
6146 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6147 priority directly.
6148
6149 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6150
6151 * loop-invariant.c (pre_check_invariant_p): New function.
6152 (find_invariant_insn): Call pre_check_invariant_p.
6153
6154 2014-06-22 Richard Henderson <rth@redhat.com>
6155
6156 PR target/61565
6157 * compare-elim.c (struct comparison): Add eh_note.
6158 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6159 a redundant comparison in a different EH region. Purge EH edges if
6160 necessary.
6161
6162 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6163
6164 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6165 (var_shift): Use it.
6166 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6167 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6168 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6169 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6170 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6171 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6172 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6173 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6174 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6175 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6176 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6177 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6178 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6179 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6180 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6181 *rotldi3_internal15be): Use the new attribute. Merge register and
6182 integer alternatives.
6183
6184 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6185
6186 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6187 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6188 split, *ashrdi3_internal3 and split): Delete, merge into...
6189 (ashr<mode>3): New expander.
6190 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6191 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6192
6193 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6194
6195 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6196 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6197 *rotldi3_internal3 and split): Delete, merge into...
6198 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6199 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6200 Use "rotlw" extended mnemonic.
6201
6202 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6203
6204 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6205 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6206 and split, *ashldi3_internal3 and split): Delete, merge into...
6207 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6208 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6209
6210 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6211
6212 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6213 (lshrsi3, two anonymous define_insns and define_splits,
6214 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6215 *lshrdi3_internal3 and split): Delete, merge into...
6216 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6217 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6218
6219 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6220
6221 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6222 Remove "O" alternative.
6223
6224 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6225
6226 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6227 (mips_move_from_gpr_cost): Likewise.
6228 (mips_register_move_cost): Update accordingly.
6229 (mips_secondary_reload_class): Remove name of in_p.
6230
6231 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6232
6233 PR target/61503
6234 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6235 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6236
6237 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6238
6239 * config/nios2/nios2.c: Include "builtins.h".
6240
6241 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6242
6243 * cgraph.h (tls_model_names): New variable.
6244 * print-tree.c (print_node): Simplify.
6245 * varpool.c (tls_model_names): New variable.
6246 (dump_varpool_node): Output tls model.
6247
6248 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6249
6250 * ipa-visibility.c (function_and_variable_visibility): Disable
6251 temporarily local aliases for some targets.
6252
6253 2014-06-20 Marek Polacek <polacek@redhat.com>
6254
6255 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6256 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6257 into SANITIZE_UNDEFINED.
6258 * doc/invoke.texi: Describe -fsanitize=bounds.
6259 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6260 functions created in the FEs.
6261 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6262 (expand_UBSAN_BOUNDS): New function.
6263 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6264 * internal-fn.h: Don't define internal functions here.
6265 * opts.c (common_handle_option): Add -fsanitize=bounds.
6266 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6267 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6268 * tree-core.h: Define internal functions here.
6269 (struct tree_base): Add ifn field.
6270 * tree-pretty-print.c: Include "internal-fn.h".
6271 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6272 * tree.c (get_callee_fndecl): Likewise.
6273 (build_call_expr_internal_loc): New function.
6274 * tree.def (CALL_EXPR): Update description.
6275 * tree.h (CALL_EXPR_IFN): Define.
6276 (build_call_expr_internal_loc): Declare.
6277 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6278 types.
6279 (ubsan_type_descriptor): Change bool parameter to enum
6280 ubsan_print_style. Adjust the code. Add handling of
6281 UBSAN_PRINT_ARRAY.
6282 (ubsan_expand_bounds_ifn): New function.
6283 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6284 (ubsan_build_overflow_builtin): Likewise.
6285 (instrument_bool_enum_load): Likewise.
6286 (ubsan_instrument_float_cast): Likewise.
6287 * ubsan.h (enum ubsan_print_style): New enum.
6288 (ubsan_expand_bounds_ifn): Declare.
6289 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6290
6291 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6292
6293 * config/rs6000/rs6000.md: Append `DONE' to preparation
6294 statements of `bswap' pattern splitters.
6295
6296 2014-06-20 Tom de Vries <tom@codesourcery.com>
6297
6298 * target.def (call_fusage_contains_non_callee_clobbers): Update
6299 definition.
6300 * doc/tm.texi: Regenerate.
6301
6302 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6303 Max Ostapenko <m.ostapenko@partner.samsung.com>
6304
6305 PR sanitizer/61547
6306 * asan.c (instrument_strlen_call): Fixed instrumentation of
6307 trailing byte.
6308
6309 2014-06-20 Martin Jambor <mjambor@suse.cz>
6310
6311 PR ipa/61540
6312 * ipa-prop.c (impossible_devirt_target): New function.
6313 (try_make_edge_direct_virtual_call): Use it, also instead of
6314 asserting.
6315
6316 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6317 Max Ostapenko <m.ostapenko@partner.samsung.com>
6318
6319 PR sanitizer/61530
6320 * asan.c (build_check_stmt): Add condition.
6321
6322 2014-06-20 Martin Jambor <mjambor@suse.cz>
6323
6324 PR ipa/61211
6325 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6326 expanded clones.
6327
6328 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6329
6330 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6331 Update comments.
6332 (VCONQ): Make comment more helpful.
6333 (VCON): Delete.
6334 * config/aarch64/aarch64-simd.md
6335 (aarch64_sqdmulh_lane<mode>):
6336 Use VCOND for operands 2. Update lane checking and flipping logic.
6337 (aarch64_sqrdmulh_lane<mode>): Likewise.
6338 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6339 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6340 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6341 attribute of operand 3 to VCOND.
6342 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6343 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6344 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6345 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6346 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6347 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6348 define_insn.
6349 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6350 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6351 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6352 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6353 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6354 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6355 operand to VCOND. Update lane flipping and bounds checking logic.
6356 (aarch64_sqdmlal2_lane<mode>): Likewise.
6357 (aarch64_sqdmlsl_lane<mode>): Likewise.
6358 (aarch64_sqdmull_lane<mode>): Likewise.
6359 (aarch64_sqdmull2_lane<mode>): Likewise.
6360 (aarch64_sqdmlal_laneq<mode>):
6361 Replace VCON usage with VCONQ.
6362 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6363 (aarch64_sqdmlal2_laneq<mode>): Emit
6364 aarch64_sqdmlal2_laneq<mode>_internal insn.
6365 Replace VCON with VCONQ.
6366 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6367 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6368 (aarch64_sqdmull_laneq<mode>): Emit
6369 aarch64_sqdmull_laneq<mode>_internal insn.
6370 Replace VCON with VCONQ.
6371 (aarch64_sqdmull2_laneq<mode>): Emit
6372 aarch64_sqdmull2_laneq<mode>_internal insn.
6373 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6374 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6375 of 3rd argument to int16x4_t.
6376 (vqdmlalh_lane_s16): Likewise.
6377 (vqdmlslh_lane_s16): Likewise.
6378 (vqdmull_high_lane_s16): Likewise.
6379 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6380 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6381 (vqdmlsl_lane_s16): Likewise.
6382 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6383 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6384 (vqdmlals_lane_s32): Likewise.
6385 (vqdmlsls_lane_s32): Likewise.
6386 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6387 (vqdmulls_lane_s32): Likewise.
6388 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6389 (vqdmlsl_lane_s32): Likewise.
6390 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6391 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6392 (vqrdmulhh_lane_s16): Likewise.
6393 (vqdmlsl_high_lane_s16): Likewise.
6394 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6395 (vqdmlsl_high_lane_s32): Likewise.
6396 (vqrdmulhs_lane_s32): Likewise.
6397
6398 2014-06-20 Tom de Vries <tom@codesourcery.com>
6399
6400 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6401 get_call_reg_set_usage.
6402
6403 2014-06-20 Tom de Vries <tom@codesourcery.com>
6404
6405 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6406 it contains all call_used_regs.
6407
6408 2014-06-20 Tom de Vries <tom@codesourcery.com>
6409
6410 * final.c (collect_fn_hard_reg_usage): Add and use variable
6411 function_used_regs.
6412
6413 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6414
6415 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6416 (set_init_priority, get_init_priority, set_fini_priority,
6417 get_fini_priority): New methods.
6418 * tree.c (init_priority_for_decl): Remove.
6419 (init_ttree): Do not initialize init priority.
6420 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6421 (decl_priority_info): Remove.
6422 (decl_init_priority_insert): Rewrite.
6423 (decl_fini_priority_insert): Rewrite.
6424 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6425 tree_priority_map_marked_p): Remove.
6426 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6427 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6428 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6429 not output priorities.
6430 (pack_ts_function_decl_value_fields): Likewise.
6431 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6432 not input priorities.
6433 (unpack_ts_function_decl_value_fields): Likewise.
6434 * symtab.c (symbol_priority_map): Declare.
6435 (init_priority_hash): Declare.
6436 (symtab_unregister_node): Unregister from priority hash, too.
6437 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6438 New methods.
6439 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6440 (symbol_priority_info): New function.
6441 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6442 New methods.
6443 * tree-core.h (tree_priority_map): Remove.
6444
6445 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6446
6447 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6448 0xff to uint64_t before shifting it up.
6449
6450 2014-06-20 Julian Brown <julian@codesourcery.com>
6451 Chung-Lin Tang <cltang@codesourcery.com>
6452
6453 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6454 TARGET_THUMB1_ONLY. Add comments.
6455
6456 2014-06-19 Tom de Vries <tom@codesourcery.com>
6457
6458 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6459 return type to void.
6460 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6461
6462 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6463
6464 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6465 as "move", from depends_on.
6466
6467 2014-06-19 Terry Guo <terry.guo@arm.com>
6468
6469 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6470 stage.
6471
6472 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6473
6474 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6475 Remove cr5.
6476 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6477
6478 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6479
6480 PR target/61550
6481 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6482 addresses here if reload in progress or completed.
6483
6484 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6485
6486 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6487 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6488 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6489 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6490 (mips_register_priority): New function that implements the target
6491 hook TARGET_REGISTER_PRIORITY.
6492 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6493 (mips_lra_p): Likewise for TARGET_LRA_P.
6494 (TARGET_REGISTER_PRIORITY): Define macro.
6495 (TARGET_SPILL_CLASS): Likewise.
6496 (TARGET_LRA_P): Likewise.
6497 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6498 classes.
6499 (REG_CLASS_NAMES): Likewise.
6500 (REG_CLASS_CONTENTS): Likewise.
6501 (BASE_REG_CLASS): Use M16_SP_REGS.
6502 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6503 New set attribute to enable alternatives depending on the register
6504 allocator used.
6505 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6506 (*lea64): Disable pattern for MIPS16.
6507 * config/mips/mips.opt (mlra): New option.
6508
6509 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6510
6511 * lra-constraints.c (base_to_reg): New function.
6512 (process_address): Use new function.
6513
6514 2014-06-18 Tom de Vries <tom@codesourcery.com>
6515
6516 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6517 * config/aarch64/aarch64.c
6518 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6519 (aarch64_emit_call_insn): New function.
6520 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6521 of emit_call_insn.
6522 * config/aarch64/aarch64.md (define_expand "call_internal")
6523 (define_expand "call_value_internal", define_expand "sibcall_internal")
6524 (define_expand "sibcall_value_internal"): New.
6525 (define_expand "call", define_expand "call_value")
6526 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6527 expand variant and aarch64_emit_call_insn.
6528
6529 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6530 Tom de Vries <tom@codesourcery.com>
6531
6532 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6533 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6534 Redefine to true.
6535 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6536 clobbers to CALL_INSN_FUNCTION_USAGE.
6537 (define_expand "sibcall_internal")
6538 (define_expand "sibcall_value_internal"): New.
6539 (define_expand "call", define_expand "call_value"): Add argument to
6540 arm_emit_call_insn.
6541 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6542 (define_expand "sibcall_value"): Use sibcall_value_internal and
6543 arm_emit_call_insn.
6544
6545 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6546
6547 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6548
6549 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6550
6551 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6552 __udivmoddi4.
6553
6554 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6555
6556 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6557 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6558 annotations. Fix DWARF information.
6559
6560 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6561
6562 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6563 __udivmoddi4, and fixups for negative operands.
6564
6565 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6566
6567 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6568
6569 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6570
6571 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6572 to __udivmoddi4.
6573
6574 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6575
6576 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6577 manipulation.
6578
6579 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6580
6581 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6582 describing register usage on function entry and exit.
6583
6584 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6585
6586 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6587 (__aeabi_ldivmod): Fix whitespace.
6588
6589 2014-06-18 Andreas Schwab <schwab@suse.de>
6590
6591 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6592 Remove blank line after @item.
6593
6594 2014-06-18 Richard Henderson <rth@redhat.com>
6595
6596 PR target/61545
6597 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6598
6599 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6600
6601 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6602 POST_MODIFY for neon loads and stores.
6603 (arm_print_operand): Output post-index register for neon loads and
6604 stores.
6605
6606 2014-06-18 Richard Biener <rguenther@suse.de>
6607
6608 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6609
6610 2014-06-18 Richard Biener <rguenther@suse.de>
6611
6612 * tree-pass.h (make_pass_dce_loop): Remove.
6613 * passes.def: Replace pass_dce_loop with pass_dce.
6614 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6615 changed free niter estimates and reset the scev cache.
6616 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6617 make_pass_dce_loop): Remove.
6618 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6619 (fini_copy_prop): Return whether something changed. Always
6620 let substitute_and_fold perform DCE and free niter estimates
6621 and reset the scev cache if so.
6622 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6623 (pass_data_copy_prop): Do not unconditionally schedule
6624 cleanup-cfg or update-ssa.
6625
6626 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6627
6628 PR tree-optimization/61518
6629 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6630 reduction var is used in reduction stmt or phi-function only.
6631
6632 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6633
6634 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6635
6636 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6637
6638 PR tree-optimization/61517
6639 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6640 whose rhs's first tree is the source expression instead of the
6641 expression itself.
6642 (find_bswap_or_nop): Likewise.
6643 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6644 gimple stmt whose rhs's first tree is the source. In the memory source
6645 case, move the stmt to be replaced close to one of the original load to
6646 avoid the problem of a store between the load and the stmt's original
6647 location.
6648 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6649 signature.
6650
6651 2014-06-18 Andreas Schwab <schwab@suse.de>
6652
6653 PR rtl-optimization/54555
6654 * postreload.c (move2add_use_add2_insn): Substitute
6655 STRICT_LOW_PART only if it is cheaper.
6656
6657 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6658
6659 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6660 Do not use unspec as call operand. Use memory_operand instead of
6661 memory_nox32_operand and add "m" operand constraint. Disable
6662 pattern for TARGET_X32.
6663 (*sibcall_pop_memory): Ditto.
6664 (*sibcall_value_memory): Ditto.
6665 (*sibcall_value_pop_memory): Ditto.
6666 (sibcall peepholes): Merge SImode and DImode patterns using
6667 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6668 Disable pattern for TARGET_X32. Check if eliminated register is
6669 really dead after call insn. Generate call RTX without unspec operand.
6670 (sibcall_value peepholes): Ditto.
6671 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6672 instead of memory_nox32_operand. Check if eliminated register is
6673 really dead after call insn. Generate call RTX without unspec operand.
6674 (sibcall_value_pop peepholes): Ditto.
6675 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6676
6677 2014-06-18 Terry Guo <terry.guo@arm.com>
6678
6679 PR target/61544
6680 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6681 reach the head.
6682
6683 2014-06-18 Olivier Hainque <hainque@adacore.com>
6684
6685 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6686 memorization of the end of block source location.
6687 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6688 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6689 end source location info we have on the block entry/exit code we
6690 generate.
6691
6692 2014-06-18 Richard Biener <rguenther@suse.de>
6693
6694 * common.opt (fssa-phiopt): New option.
6695 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6696 but not with -Og.
6697 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6698 * doc/invoke.texi (-fssa-phiopt): Document.
6699
6700 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6701
6702 * genattrtab.c (n_bypassed): New variable.
6703 (process_bypasses): Initialise n_bypassed.
6704 Count number of bypassed reservations.
6705 (make_automaton_attrs): Allocate space for bypassed reservations
6706 rather than number of bypasses.
6707
6708 2014-06-18 Richard Biener <rguenther@suse.de>
6709
6710 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6711 we propagated anything.
6712 (substitute_and_fold_dom_walker::before_dom_children): Something
6713 changed if we propagated into PHI arguments.
6714 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6715 we removed a stmt.
6716
6717 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6718
6719 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6720 vector case.
6721 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6722 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6723 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6724 Introduces alternative way of loads group permutaions.
6725 (vect_transform_grouped_load): Try alternative way of permutations.
6726
6727 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6728
6729 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6730 changed in ORT_TARGET region, don't jump to do_outer.
6731 (struct gimplify_adjust_omp_clauses_data): New type.
6732 (gimplify_adjust_omp_clauses_1): Adjust for data being
6733 a struct gimplify_adjust_omp_clauses_data pointer instead
6734 of tree *. Pass pre_p as a new argument to
6735 lang_hooks.decls.omp_finish_clause hook.
6736 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6737 splay_tree_foreach to pass both list_p and pre_p.
6738 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6739 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6740 gimplify_adjust_omp_clauses callers.
6741 * langhooks.c (lhd_omp_finish_clause): New function.
6742 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6743 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6744 * langhooks.h (struct lang_hooks_for_decls): Add a new
6745 gimple_seq * argument to omp_finish_clause hook.
6746 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6747 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6748 (scan_omp_parallel, lower_omp_for): When adding
6749 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6750 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6751 * tree-nested.c (convert_nonlocal_omp_clauses,
6752 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6753 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6754
6755 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6756
6757 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6758 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6759
6760 2014-06-17 Xinliang David Li <davidxl@google.com>
6761
6762 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6763 * passes.c (pass_init_dump_file): Do not set initialize
6764 flag to false unconditionally.
6765
6766 2014-06-17 Richard Biener <rguenther@suse.de>
6767
6768 * genopinit.c (main): Use vec<>::qsort method.
6769 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6770 Likewise.
6771 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6772
6773 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6774
6775 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6776 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6777 (mips_move_to_gpr_cost): Remove ST_REGS case.
6778 (mips_move_from_gpr_cost): Likewise.
6779 (mips_register_move_cost): Likewise.
6780 (mips_secondary_reload_class): Likewise.
6781
6782 2014-06-17 Richard Biener <rguenther@suse.de>
6783
6784 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6785 (pass_all_optimizations): Move 3rd copy-prop pass from after
6786 fre to before ifcombine/phiopt.
6787
6788 2014-06-17 Richard Biener <rguenther@suse.de>
6789
6790 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6791 and allow all blocks to be forwarders.
6792
6793 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6794
6795 PR target/61483
6796 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6797 variable 'size'; calculate 'size' right in the front; use
6798 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6799 pcum->aapcs_stack_words.
6800
6801 2014-06-17 Nick Clifton <nickc@redhat.com>
6802
6803 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6804 (umulhi3, mulsidi3, umulsidi3): Likewise.
6805
6806 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6807
6808 PR middle-end/61508
6809 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6810 check for section name.
6811
6812 2014-06-17 Richard Biener <rguenther@suse.de>
6813
6814 * tree-ssa-propagate.c: Include domwalk.h.
6815 (substitute_and_fold): Outline main worker into a domwalker ...
6816 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6817 Schedule stmts we can fully propagate for removal. Remove
6818 poor-mans DCE.
6819 (substitute_and_fold): Apply a dominator walk to perform
6820 substitution. Process stmts scheduled for removal here.
6821
6822 2014-06-17 Richard Biener <rguenther@suse.de>
6823
6824 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6825 of PHI node moving.
6826
6827 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6828
6829 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6830 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6831 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6832 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6833 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6834 TARGET_HARD_FLOAT.
6835 (get_fpscr) : Likewise.
6836
6837 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6838
6839 PR rtl-optimization/61325
6840 * lra-constraints.c (valid_address_p): Add forward declaration.
6841 (simplify_operand_subreg): Check address validity before and after
6842 alter_reg of memory subreg.
6843
6844 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6845
6846 * config/i386/i386.c (decide_alg): Correctly handle
6847 maximum size of stringop algorithm.
6848
6849 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6850
6851 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6852
6853 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6854
6855 PR rtl-optimization/61522
6856 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6857
6858 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6859
6860 Revert:
6861 * symtab.c (symtab_node::reset_section): New method.
6862 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6863 for localization.
6864 * cgraph.h (reset_section): Declare.
6865 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6866 do not consider comdat locals.
6867 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6868 for new symbol.
6869 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6870 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6871 reset sections of symbols dragged out of the comdats.
6872 (function_and_variable_visibility): Reset sections of
6873 localized symbols.
6874
6875 2014-06-16 Richard Biener <rguenther@suse.de>
6876
6877 PR tree-optimization/61482
6878 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
6879 [-INF(OVF), +INF(OVF)] range.
6880
6881 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6882
6883 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
6884 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
6885 handling 32-bit multiplication.
6886
6887 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
6888
6889 PR middle-end/61430
6890 * lra-lives.c (process_bb_lives): Skip creating copy during
6891 insn scan when src/dest has constrained to same regno.
6892
6893 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
6894
6895 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
6896 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
6897
6898 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6899
6900 * asan.c (check_func): New function.
6901 (maybe_create_ssa_name): Likewise.
6902 (build_check_stmt_with_calls): Likewise.
6903 (use_calls_p): Likewise.
6904 (report_error_func): Change interface.
6905 (build_check_stmt): Allow non-integer lengths; add support
6906 for new parameter.
6907 (asan_instrument): Likewise.
6908 (instrument_mem_region_access): Moved code to build_check_stmt.
6909 (instrument_derefs): Likewise.
6910 (instrument_strlen_call): Likewise.
6911 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
6912 * doc/invoke.texi: Describe new parameter.
6913 * params.def: Define new parameter.
6914 * params.h: Likewise.
6915 * sanitizer.def: Describe new builtins.
6916
6917 2014-06-16 Richard Biener <rguenther@suse.de>
6918
6919 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6920 Make all defs available at the end.
6921 (eliminate): If we remove a PHI node schedule cfg-cleanup.
6922
6923 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6924
6925 PR plugins/45078
6926 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
6927
6928 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
6929
6930 PR bootstrap/61516
6931 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
6932 initialization. Replace remaining use of uid.
6933
6934 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
6935
6936 * c-family/c-common.c (handle_tls_model_attribute): Use
6937 set_decl_tls_model.
6938 * c-family/c-common.c (handle_tls_model_attribute): Use
6939 set_decl_tls_model.
6940 * cgraph.h (struct varpool_node): Add tls_model.
6941 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
6942 * tree.h (DECL_TLS_MODEL): Update.
6943 (DECL_THREAD_LOCAL_P): Check that variable is static.
6944 (decl_tls_model): Declare.
6945 (set_decl_tls_model): Declare.
6946 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
6947 set symbol prorperties.
6948 (get_emutls_init_templ_addr): Cleanup.
6949 (new_emutls_decl): Update.
6950 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
6951 (lto_input_varpool_node): Likewise.
6952 * lto-streamer-out.c (hash_tree): Likewise.
6953 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6954 not stream DECL_TLS_MODEL.
6955 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
6956 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
6957
6958 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6959
6960 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
6961
6962 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6963
6964 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
6965 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
6966 lists.
6967 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
6968 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
6969 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
6970 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
6971 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
6972 (df_get_artificial_defs, df_get_artificial_uses)
6973 (df_single_def, df_single_use): Update accordingly.
6974 (df_refs_chain_dump): Take the first element in a linked list as
6975 parameter, rather than a pointer to an array of pointers.
6976 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
6977 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
6978 (df_chain_create_bb_process_use): Likewise.
6979 (df_md_bb_local_compute_process_def): Likewise.
6980 * fwprop.c (process_defs, process_uses): Likewise.
6981 (register_active_defs, update_uses): Likewise.
6982 (forward_propagate_asm): Update for new df_ref linking.
6983 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
6984 (df_null_ref_rec, df_null_mw_rec): Likewise.
6985 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
6986 explicitly.
6987 (df_scan_free_bb_info): Remove check for null artificial_defs.
6988 (df_install_ref_incremental): Adjust for new df_ref linking.
6989 Use a single-element insertion rather than a full sort.
6990 (df_ref_chain_delete_du_chain): Take the first element
6991 in a linked list as parameter, rather than a pointer to an array of
6992 pointers.
6993 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
6994 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
6995 (df_insn_info_delete): Remove check for null defs and call to
6996 df_scan_free_mws_vec.
6997 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
6998 null rather than df_null_*_rec.
6999 (df_insn_rescan_debug_internal): Likewise, and update null
7000 checks in the same way. Remove check for null defs.
7001 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7002 Move a single element rather doing a full sort.
7003 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7004 linking.
7005 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7006 Initialize df_ref and df_mw_hardreg lists to null rather than
7007 df_null_*_rec.
7008 (df_ref_compare): Take df_refs as parameter, transferring the
7009 old interface to...
7010 (df_ref_ptr_compare): ...this new function.
7011 (df_sort_and_compress_refs): Update accordingly.
7012 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7013 old interface to...
7014 (df_mw_ptr_compare): ...this new function.
7015 (df_sort_and_compress_mws): Update accordingly.
7016 (df_install_refs, df_install_mws): Return a linked list rather than
7017 an array of pointers.
7018 (df_refs_add_to_chains): Assert that old lists are empty rather
7019 than freeing them.
7020 (df_insn_refs_verify): Don't handle null defs speciailly.
7021 * web.c (union_match_dups): Update for new df_ref linking.
7022
7023 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7024
7025 * df.h (df_ref_create, df_ref_remove): Delete.
7026 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7027 (df_ref_remove): Likewise.
7028
7029 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7030
7031 * df.h (df_single_def, df_single_use): New functions.
7032 * ira.c (find_moveable_pseudos): Use them.
7033
7034 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7035
7036 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7037 * df-problems.c (df_note_bb_compute): Use it.
7038 * regstat.c (regstat_bb_compute_ri): Likewise.
7039
7040 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7041
7042 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7043 * cse.c (cse_extended_basic_block): Use them.
7044 * dce.c (mark_artificial_use): Likewise.
7045 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7046 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7047 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7048 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7049 (df_simulate_initialize_backwards): Likewise.
7050 (df_simulate_finalize_backwards): Likewise.
7051 (df_simulate_initialize_forwards): Likewise.
7052 (df_md_simulate_artificial_defs_at_top): Likewise.
7053 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7054 * regrename.c (init_rename_info): Likewise.
7055 * regstat.c (regstat_bb_compute_ri): Likewise.
7056 (regstat_bb_compute_calls_crossed): Likewise.
7057
7058 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7059
7060 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7061 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7062 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7063 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7064 * combine.c (create_log_links): Likewise.
7065 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7066 (try_eliminate_compare): Likewise.
7067 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7068 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7069 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7070 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7071 (word_dce_process_block, dce_process_block): Likewise.
7072 * ddg.c (def_has_ccmode_p): Likewise.
7073 * df-core.c (df_bb_regno_first_def_find): Likewise.
7074 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7075 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7076 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7077 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7078 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7079 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7080 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7081 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7082 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7083 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7084 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7085 * fwprop.c (local_ref_killed_between_p): Likewise.
7086 (all_uses_available_at, free_load_extend): Likewise.
7087 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7088 * hw-doloop.c (scan_loop): Likewise.
7089 * ifcvt.c (dead_or_predicable): Likewise.
7090 * init-regs.c (initialize_uninitialized_regs): Likewise.
7091 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7092 (process_bb_node_lives): Likewise.
7093 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7094 (find_moveable_pseudos): Likewise.
7095 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7096 * recog.c (peep2_find_free_register): Likewise.
7097 * ree.c (get_defs): Likewise.
7098 * regstat.c (regstat_bb_compute_ri): Likewise.
7099 (regstat_bb_compute_calls_crossed): Likewise.
7100 * sched-deps.c (find_inc, find_mem): Likewise.
7101 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7102 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7103 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7104 (prepare_shrink_wrap): Likewise.
7105 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7106 * web.c (union_defs, pass_web::execute): Likewise.
7107 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7108 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7109
7110 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7111
7112 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7113 to inheritance pseudos.
7114 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7115
7116 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7117
7118 PR target/61415
7119 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7120 (BU_MISC_2): Rename to ...
7121 (BU_LDBL128_2): ... this.
7122 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7123 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7124 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7125 RS6000_BTM_LDBL128.
7126 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7127 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7128 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7129 (unpacktf_1): Likewise.
7130 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7131 (__builtin_longdouble_dw1): Likewise.
7132 * doc/sourcebuild.texi (longdouble128): Document.
7133
7134 2014-06-13 Jeff Law <law@redhat.com>
7135
7136 PR rtl-optimization/61094
7137 PR rtl-optimization/61446
7138 * ree.c (combine_reaching_defs): Get the mode for the copy from
7139 the extension insn rather than the defining insn.
7140
7141 2014-06-13 Dehao Chen <dehao@google.com>
7142
7143 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7144
7145 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7146
7147 * doc/install.texi (--enable-linker-plugin-configure-flags)
7148 (--enable-linker-plugin-flags): Document new flags.
7149
7150 2014-06-13 Martin Jambor <mjambor@suse.cz>
7151
7152 PR ipa/61186
7153 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7154 cache_token if returning early.
7155
7156 2014-06-13 Nick Clifton <nickc@redhat.com>
7157
7158 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7159 requested alignment is active.
7160 (LABEL_ALIGN): Likewise.
7161 (LOOP_ALIGN): Likewise.
7162
7163 2014-06-13 Richard Biener <rguenther@suse.de>
7164
7165 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7166 Rewrite to propagate the VN result into all uses where
7167 possible and to remove stmts becoming dead because of that.
7168 (eliminate): Generalize stmt removal handling, remove in
7169 reverse dominator order to support proper debug stmt
7170 generation. Update stmts before removing stmts.
7171 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7172
7173 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7174
7175 PR tree-optimization/61375
7176 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7177 symbolic number cannot be represented in an uint64_t.
7178 (find_bswap_or_nop_1): Likewise.
7179
7180 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7181
7182 * symtab.c (symtab_node::reset_section): New method.
7183 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7184 for localization.
7185 * cgraph.h (reset_section): Declare.
7186 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7187 do not consider comdat locals.
7188 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7189 for new symbol.
7190 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7191 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7192 reset sections of symbols dragged out of the comdats.
7193 (function_and_variable_visibility): Reset sections of
7194 localized symbols.
7195
7196 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7197
7198 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7199 to use symtab and decl_binds_to_current_def_p
7200 * tree-vectorizer.c (increase_alignment): Increase alignment
7201 of alias target, too.
7202
7203 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7204
7205 PR middle-end/61486
7206 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7207 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7208 if outer combined construct is distribute.
7209 (gimplify_omp_for): For OMP_DISTRIBUTE set
7210 gimplify_omp_ctxp->distribute.
7211 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7212 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7213 mapping into decl map.
7214
7215 2014-06-12 Jason Merrill <jason@redhat.com>
7216
7217 * common.opt (fabi-version): Change default to 0.
7218
7219 2014-06-12 Jason Merrill <jason@redhat.com>
7220
7221 * toplev.c (process_options): Reject -fabi-version=1.
7222
7223 2014-06-12 Jeff Law <law@redhat.com>
7224
7225 PR tree-optimization/61009
7226 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7227 value when we stop processing a block due to problematic PHIs.
7228
7229 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7230
7231 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7232 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7233 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7234 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7235 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7236 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7237 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7238 are not in the spec.
7239
7240 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7241
7242 PR target/59843
7243 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7244 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7245 Support V1DFmode.
7246
7247 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7248
7249 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7250
7251 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7252
7253 PR target/61443
7254 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7255 loading from address spaces.
7256
7257 2014-06-12 Martin Liska <mliska@suse.cz>
7258
7259 PR ipa/61462
7260 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7261 statement is reachable.
7262
7263 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7264
7265 * symtab.c (section_hash): New hash.
7266 (symtab_unregister_node): Clear section before freeing.
7267 (hash_section_hash_entry): New haser.
7268 (eq_sections): New function.
7269 (symtab_node::set_section_for_node): New method.
7270 (set_section_1): Update.
7271 (symtab_node::set_section): Take string instead of tree as parameter.
7272 (symtab_resolve_alias): Update.
7273 * cgraph.h (section_hash_entry_d): New structure.
7274 (section_hash_entry): New typedef.
7275 (cgraph_node): Change comdat_group_ to x_comdat_group,
7276 change section_ to x_section and turn into section_hash_entry;
7277 update accestors; put set_section_for_node offline.
7278 * tree.c (decl_section_name): Turn into string.
7279 (set_decl_section_name): Change parameter to be string.
7280 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7281 * sdbout.c (sdbout_one_type): Update.
7282 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7283 * varasm.c (IN_NAMED_SECTION, get_named_section,
7284 resolve_unique_section, hot_function_section, get_named_text_section,
7285 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7286 make_decl_rtl, default_unique_section): Update.
7287 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7288 (c6x_elf_unique_section): Update.
7289 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7290 * config/pa/pa.c (pa_function_section): Update.
7291 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7292 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7293 * config/arc/arc.c (arc_in_small_data_p): Update.
7294 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7295 * config/mcore/mcore.c (mcore_unique_section): Update.
7296 * config/mips/mips.c (mips16_build_function_stub): Update.
7297 (mips16_build_call_stub): Update.
7298 (mips_function_rodata_section): Update.
7299 (mips_in_small_data_p): Update.
7300 * config/score/score.c (score_in_small_data_p): Update.
7301 * config/rx/rx.c (rx_in_small_data): Update.
7302 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7303 (rs6000_xcoff_asm_named_section): Update.
7304 (rs6000_xcoff_unique_section): Update.
7305 * config/frv/frv.c (frv_string_begins_with): Update.
7306 (frv_in_small_data_p): Update.
7307 * config/v850/v850.c (v850_encode_data_area): Update.
7308 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7309 (bfin_handle_l1_data_attribute): Update.
7310 (bfin_handle_l2_attribute): Update.
7311 * config/mep/mep.c (mep_unique_section): Update.
7312 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7313 Update.
7314 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7315 (h8300_handle_tiny_data_attribute): Update.
7316 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7317 (m32r_in_small_data_p): Update.
7318 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7319 * config/i386/i386.c (ix86_in_large_data_p): Update.
7320 * config/i386/winnt.c (i386_pe_unique_section): Update.
7321 * config/darwin.c (darwin_function_section): Update.
7322 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7323 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7324 (new_emutls_decl): Update.
7325 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7326 input_varpool_node): Update.
7327 (ead_string_cst): Turn to ...
7328 (read_string): ... this one.
7329 * dwarf2out.c (secname_for_decl): Update.
7330 * asan.c (asan_protect_global): Update.
7331
7332 2014-06-11 DJ Delorie <dj@redhat.com>
7333
7334 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7335 cache lines.
7336 * config/rx/rx.c (rx_option_override): Likewise.
7337 (rx_align_for_label): Likewise.
7338
7339 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7340
7341 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7342
7343 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7344 prototype.
7345
7346 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7347
7348 * common.md: New file.
7349 * doc/md.texi: Update description of generic, machine-independent
7350 constraints.
7351 * config/s390/constraints.md (e): Delete.
7352 * Makefile.in (md_file): Include common.md.
7353 * config/m32c/t-m32c (md_file): Likewise.
7354 * genpreds.c (general_mem): New array.
7355 (generic_constraint_letters): Remove constraints now defined by
7356 common.md.
7357 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7358 Allow the first character to be '<' or '>' as well.
7359 * genoutput.c (general_mem): New array.
7360 (indep_constraints): Remove constraints now defined by common.md.
7361 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7362 Remove special handling of 'm'.
7363 * ira-costs.c (record_reg_classes): Remove special handling of
7364 constraints now defined by common.md.
7365 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7366 * ira-lives.c (single_reg_class): Likewise.
7367 (ira_implicitly_set_insn_hard_regs): Likewise.
7368 * lra-constraints.c (reg_class_from_constraints): Likewise.
7369 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7370 * postreload.c (reload_cse_simplify_operands): Likewise.
7371 * reload.c (push_secondary_reload, scratch_reload_class)
7372 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7373 * reload1.c (maybe_fix_stack_asms): Likewise.
7374 * targhooks.c (default_secondary_reload): Likewise.
7375 * stmt.c (parse_output_constraint): Likewise.
7376 * recog.c (preprocess_constraints): Likewise.
7377 (constrain_operands, peep2_find_free_register): Likewise.
7378 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7379 must be handled specially.
7380
7381 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7382
7383 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7384 * genpreds.c (have_const_dbl_constraints): Delete.
7385 (add_constraint): Don't set it.
7386 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7387 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7388 constraints using the lookup_constraint logic.
7389 * ira-lives.c (single_reg_class): Likewise.
7390 * ira.c (ira_setup_alts): Likewise.
7391 * lra-constraints.c (process_alt_operands): Likewise.
7392 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7393 * reload.c (find_reloads): Likewise.
7394
7395 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7396
7397 * genpreds.c (const_int_start, const_int_end): New variables.
7398 (choose_enum_order): Output CONST_INT constraints before memory
7399 constraints.
7400 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7401 Add CT_CONST_INT.
7402 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7403 * ira.c (ira_setup_alts): Likewise.
7404 * lra-constraints.c (process_alt_operands): Likewise.
7405 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7406 * reload.c (find_reloads): Likewise.
7407
7408 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7409
7410 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7411 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7412 * recog.c (preprocess_constraints): Update accordingly.
7413
7414 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7415
7416 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7417 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7418 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7419 * genpreds.c (print_type_tree): New function.
7420 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7421 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7422 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7423 Write out enum constraint_type and get_constraint_type.
7424 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7425 constraint_num rather than a constraint string.
7426 (satisfies_address_constraint_p): Likewise.
7427 (reg_class_from_constraints): Avoid old constraint macros.
7428 (process_alt_operands, process_address_1): Likewise.
7429 (curr_insn_transform): Likewise.
7430 * ira-costs.c (record_reg_classes): Likewise.
7431 (record_operand_costs): Likewise.
7432 * ira-lives.c (single_reg_class): Likewise.
7433 (ira_implicitly_set_insn_hard_regs): Likewise.
7434 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7435 * postreload.c (reload_cse_simplify_operands): Likewise.
7436 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7437 (constrain_operands, peep2_find_free_register): Likewise.
7438 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7439 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7440 * reload1.c (maybe_fix_stack_asms): Likewise.
7441 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7442 * targhooks.c (default_secondary_reload): Likewise.
7443 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7444 to EXTRA_CONSTRAINT_STR.
7445 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7446
7447 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7448
7449 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7450 (write_constraint_satisfied_p_array): ...this new function.
7451 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7452 an array.
7453 (write_insn_preds_c): Update accordingly.
7454
7455 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7456
7457 * genpreds.c (write_lookup_constraint): Rename to...
7458 (write_lookup_constraint_1): ...this.
7459 (write_lookup_constraint_array): New function.
7460 (write_tm_preds_h): Define lookup_constraint as an inline function
7461 that uses write_lookup_constraint_array where possible.
7462 (write_insn_preds_c): Update for the changes above.
7463
7464 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7465
7466 * doc/md.texi (regclass_for_constraint): Rename to...
7467 (reg_class_for_constraint): ...this.
7468 * genpreds.c (num_constraints, enum_order, register_start)
7469 (register_end, satisfied_start, memory_start, memory_end)
7470 (address_start, address_end): New variables.
7471 (add_constraint): Count the number of constraints.
7472 (choose_enum_order): New function.
7473 (write_enum_constraint_num): Iterate over enum_order.
7474 (write_regclass_for_constraint): Rename to...
7475 (write_reg_class_for_constraint_1): ...this and update output
7476 accordingly.
7477 (write_constraint_satisfied_p): Rename to...
7478 (write_constraint_satisfied_p_1): ...this and update output
7479 accordingly. Do nothing if all extra constraints are register
7480 constraints.
7481 (write_insn_extra_memory_constraint): Delete.
7482 (write_insn_extra_address_constraint): Delete.
7483 (write_range_function): New function.
7484 (write_tm_preds_h): Define constraint_satisfied_p and
7485 reg_class_for_constraint as inline functions that do a range check
7486 before calling the out-of-line function. Use write_range_function
7487 to implement insn_extra_{register,memory,address}_constraint,
7488 the first of which is new.
7489 (write_insn_preds_c): Update after above changes to write_* functions.
7490 (main): Call choose_enum_order.
7491
7492 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7493
7494 PR tree-optimization/61306
7495 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7496 expression instead of its size.
7497 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7498 false to prevent optimization when the result is unpredictable due to
7499 arithmetic right shift of signed type with highest byte is set.
7500 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7501 (init_symbolic_number): Likewise.
7502 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7503 when the result is unpredictable due to sign extension.
7504
7505 2014-06-11 Terry Guo <terry.guo@arm.com>
7506
7507 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7508 (*thumb1_addsi3): Ditto.
7509 (*thumb_subdi3): Ditto.
7510 (thumb1_subsi3_insn): Ditto.
7511 (*thumb_mulsi3): Ditto.
7512 (*thumb_mulsi3_v6): Ditto.
7513 (*thumb1_andsi3_insn): Ditto.
7514 (thumb1_bicsi3): Ditto.
7515 (*thumb1_iorsi3_insn): Ditto.
7516 (*thumb1_xorsi3_insn): Ditto.
7517 (*thumb1_ashlsi3): Ditto.
7518 (*thumb1_ashrsi3): Ditto.
7519 (*thumb1_lshrsi3): Ditto.
7520 (*thumb1_rotrsi3): Ditto.
7521 (*thumb1_negdi2): Ditto.
7522 (*thumb1_negsi2): Ditto.
7523 (*thumb1_abssi2): Ditto.
7524 (*thumb1_neg_abssi2): Ditto.
7525 (*thumb1_one_cmplsi2): Ditto.
7526 (*thumb1_zero_extendhisi2): Ditto.
7527 (*thumb1_zero_extendqisi2): Ditto.
7528 (*thumb1_zero_extendqisi2_v6): Ditto.
7529 (thumb1_extendhisi2): Ditto.
7530 (thumb1_extendqisi2): Ditto.
7531 (*thumb1_movdi_insn): Ditto.
7532 (*thumb1_movsi_insn): Ditto.
7533 (*thumb1_movhi_insn): Ditto.
7534 (thumb_movhi_clobber): Ditto.
7535 (*thumb1_movqi_insn): Ditto.
7536 (*thumb1_movhf): Ditto.
7537 (*thumb1_movsf_insn): Ditto.
7538 (*thumb_movdf_insn): Ditto.
7539 (movmem12b): Ditto.
7540 (movmem8b): Ditto.
7541 (cbranchqi4): Ditto.
7542 (cbranchsi4_insn): Ditto.
7543 (cbranchsi4_scratch): Ditto.
7544 (*negated_cbranchsi4): Ditto.
7545 (*tbit_cbranch): Ditto.
7546 (*tlobits_cbranch): Ditto.
7547 (*tstsi3_cbranch): Ditto.
7548 (*cbranchne_decr1): Ditto.
7549 (*addsi3_cbranch): Ditto.
7550 (*addsi3_cbranch_scratch): Ditto.
7551 (*thumb_cmpdi_zero): Ditto.
7552 (cstoresi_eq0_thumb1): Ditto.
7553 (cstoresi_ne0_thumb1): Ditto.
7554 (*cstoresi_eq0_thumb1_insn): Ditto.
7555 (*cstoresi_ne0_thumb1_insn): Ditto.
7556 (cstoresi_nltu_thumb1): Ditto.
7557 (cstoresi_ltu_thumb1): Ditto.
7558 (thumb1_addsi3_addgeu): Ditto.
7559 (*thumb_jump): Ditto.
7560 (*call_reg_thumb1_v5): Ditto.
7561 (*call_reg_thumb1): Ditto.
7562 (*call_value_reg_thumb1_v5): Ditto.
7563 (*call_value_reg_thumb1): Ditto.
7564 (*call_insn): Ditto.
7565 (*call_value_insn): Ditto.
7566 (thumb1_casesi_internal_pic): Ditto.
7567 (thumb1_casesi_dispatch): Ditto.
7568 (*thumb1_indirect_jump): Ditto.
7569 (prologue_thumb1_interwork): Ditto.
7570 (*epilogue_insns): Ditto.
7571 (consttable_1): Ditto.
7572 (consttable_2): Ditto.
7573 (tablejump): Ditto.
7574 (*thumb1_tablejump): Ditto.
7575 (thumb_eh_return): Ditto.
7576 (define_peephole2): Two of them are thumb1 only and got moved into
7577 new file thumb1.md.
7578 (define_split): Six of them are thumb1 only and got moved into new
7579 file thumb1.md.
7580 * config/arm/thumb1.md: New file comprised of above thumb1 only
7581 patterns.
7582
7583 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7584
7585 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7586 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7587 dependencies.
7588 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7589 (aarch64_crc_builtin_datum): New struct.
7590 (aarch64_crc_builtin_data): New.
7591 (aarch64_init_crc32_builtins): New function.
7592 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7593 (aarch64_crc32_expand_builtin): New.
7594 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7595 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7596 __ARM_FEATURE_CRC32 when appropriate.
7597 (TARGET_CRC32): Define.
7598 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7599 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7600 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7601 (aarch64_<crc_variant>): New pattern.
7602 * config/aarch64/arm_acle.h: New file.
7603 * config/aarch64/iterators.md (CRC): New int iterator.
7604 (crc_variant, crc_mode): New int attributes.
7605 * doc/aarch64-acle-intrinsics.texi: New file.
7606 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7607 Include aarch64-acle-intrinsics.texi.
7608
7609 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7610
7611 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7612 check for stores group of length 3.
7613 (vect_permute_store_chain): New permutations for stores group of
7614 length 3.
7615 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7616 of vec_perm_shuffle for the new permutations.
7617
7618 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7619
7620 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7621 table rewriting temporarily on targets not supporting ONE_ONLY.
7622
7623 2014-06-11 Richard Biener <rguenther@suse.de>
7624
7625 PR middle-end/61437
7626 Revert
7627 2014-06-04 Richard Biener <rguenther@suse.de>
7628
7629 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7630 TREE_PUBLIC and DECL_EXTERNAL decls.
7631
7632 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7633
7634 * varasm.c (set_implicit_section): New function.
7635 (resolve_unique_section): Use it to set implicit section
7636 for aliases, too.
7637 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7638 (default_function_section): Likewise.
7639 (decl_binds_to_current_def_p): Constify argument.
7640 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7641 * asan.c (asan_protect_global): Use
7642 symtab_get_node (decl)->implicit_section.
7643 * symtab.c (dump_symtab_base): Dump implicit sections.
7644 (verify_symtab_base): Verify sanity of sectoins and comdats.
7645 (symtab_resolve_alias): Alias share the section of its target.
7646 (set_section_1): New function.
7647 (symtab_node::set_section): Move here, recurse to aliases.
7648 (verify_symtab): Check for duplicated symtab lists.
7649 * tree-core.h (implicit_section_name_p): Remove.
7650 * tree-vect-data-refs.c: Include varasm.h.
7651 (vect_can_force_dr_alignment_p): Fix conditional on when
7652 decl bints to current definition; use
7653 symtab_get_node (decl)->implicit_section.
7654 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7655 * cgraph.h (struct symtab_node): Add implicit_section.
7656 (set_section): Rename to ...
7657 (set_section_for_node): ... this one.
7658 (set_section): Declare.
7659 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7660 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7661 input_overwrite_node, input_varpool_node): Stream implicit_section.
7662 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7663 removal; it will fail in LTO.
7664
7665 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7666
7667 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7668 Change second alternative type to f_mcr.
7669 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7670 and 12th alternatives' types to f_mcr and f_mrc.
7671 (*movdi_aarch64): Same for 12th and 13th alternatives.
7672 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7673 (aarch64_movtilow_tilow): Change type to fmov.
7674
7675 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7676
7677 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7678 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7679
7680 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7681
7682 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7683 New expander.
7684 (aarch64_sqrdmulh_lane<mode>): Likewise.
7685 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7686 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7687 (aarch64_sqdmulh_laneq<mode>): New expander.
7688 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7689 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7690 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7691 (aarch64_sqdmulh_lane<mode>): New expander.
7692 (aarch64_sqrdmulh_lane<mode>): Likewise.
7693 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7694 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7695 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7696 (aarch64_sqdmlal_laneq<mode>): Likewise.
7697 (aarch64_sqdmlsl_lane<mode>): Likewise.
7698 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7699 (aarch64_sqdmlal2_lane<mode>): Likewise.
7700 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7701 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7702 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7703 (aarch64_sqdmull_lane<mode>): Likewise.
7704 (aarch64_sqdmull_laneq<mode>): Likewise.
7705 (aarch64_sqdmull2_lane<mode>): Likewise.
7706 (aarch64_sqdmull2_laneq<mode>): Likewise.
7707
7708 2014-06-10 Richard Biener <rguenther@suse.de>
7709
7710 PR tree-optimization/61438
7711 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7712 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7713 insertion of IVs if running PRE.
7714 (eliminate): Adjust.
7715 (pass_pre::execute): Likewise.
7716 (pass_fre::execute): Likewise.
7717
7718 2014-06-10 Richard Biener <rguenther@suse.de>
7719
7720 PR middle-end/61456
7721 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7722 Do not use the main variant for the type comparison.
7723 (ncr_compar): Likewise.
7724 (nonoverlapping_component_refs_p): Likewise.
7725
7726 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7727
7728 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7729 REG_CFA_RESTORE mode.
7730
7731 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7732
7733 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7734 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7735 expand_vec_perm_pblendv.
7736
7737 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7738
7739 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7740 available.
7741 Simplify description of __crc32d and __crc32cd intrinsics.
7742 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7743 availability.
7744
7745 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7746
7747 PR lto/61334
7748 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7749 * config.in: Regenerate.
7750 * configure: Likewise.
7751
7752 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7753
7754 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7755 and public vars.
7756 (intersect_static_var_sets): Remove.
7757 (propagate): Do not prune local statics.
7758
7759 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7760
7761 PR fortran/60928
7762 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7763 Set lastprivate_firstprivate even if omp_private_outer_ref
7764 langhook returns true.
7765 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7766 langhook, call unshare_expr on new_var and call
7767 build_outer_var_ref to get the last argument.
7768
7769 2014-06-10 Marek Polacek <polacek@redhat.com>
7770
7771 PR c/60988
7772 * doc/extend.texi: Add cindex for transparent_union.
7773
7774 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7775
7776 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7777 init_symbolic_number ().
7778
7779 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7780
7781 PR middle-end/61141
7782 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7783 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7784 (verify_rtl_sharing): Likewise.
7785
7786 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7787
7788 PR c++/54442
7789 * tree.c (build_qualified_type): Use a canonical type for
7790 TYPE_CANONICAL.
7791
7792 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7793
7794 * config/arm/arm-modes.def: Remove XFmode.
7795
7796 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7797
7798 PR target/61062
7799 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7800 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7801 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7802 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7803 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7804 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7805 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7806 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7807 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7808
7809 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7810
7811 * tree-core.h (tree_decl_with_vis): Remove section_name.
7812
7813 2014-06-09 Kito Cheng <kito@0xlab.org>
7814
7815 * ira.c (ira): Don't call init_caller_save if LRA enabled
7816 since LRA use its own infrastructure to handle that.
7817
7818 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7819
7820 * symtab.c (dump_symtab_base): Update dumping.
7821 (symtab_make_decl_local): Clear only DECL_COMDAT.
7822 * tree-vect-data-refs.c (Check that variable is static before
7823 tampering with sections.
7824 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7825 (cgraph_create_virtual_clone): Likewise.
7826 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7827 (decl_section_name, set_decl_section_name): New accessors.
7828 (find_decls_types_r): Do not walk section name
7829 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7830 (decl_comdat_group, decl_comdat_group_id): Constify.
7831 (decl_section_name, set_decl_section_name): Update.
7832 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7833 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7834 (cgraph_make_node_local_1): Clear section and comdat group.
7835 * cgraph.h (set_comdat_group): Sanity check.
7836 (get_section, set_section): New.
7837 * ipa-comdats.c (ipa_comdats): Use get_section.
7838 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7839 * lto-streamer-out.c: Do not follow section names.
7840 * c-family/c-common.c (handle_section_attribute): Update.
7841 * lto-cgraph.c (lto_output_node): Output section.
7842 (lto_output_varpool_node): Likewise.
7843 (read_comdat_group): Rename to ...
7844 (read_identifier): ... this one.
7845 (read_string_cst): New function.
7846 (input_node, input_varpool_node): Input section names.
7847 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7848 (new_emutls_decl): Update.
7849 (secname_for_decl): Check section names only of static vars.
7850 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7851 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7852 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7853 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7854 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7855 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7856 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7857 * config/v850/v850.c (v850_insert_attributes): Likewise.
7858 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7859 Likewise.
7860 (h8300_handle_tiny_data_attribute): Likewise.
7861 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7862 (bfin_handle_l2_attribute): Likewise.
7863
7864 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7865
7866 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
7867 remove static initializer.
7868
7869 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7870
7871 * varasm.c (use_blocks_for_decl_p): Check symbol table
7872 instead of alias attribute.
7873 (place_block_symbol): Recurse on aliases.
7874
7875 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7876
7877 * ipa-visibility.c: Include varasm.h
7878 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
7879
7880 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7881
7882 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
7883 outputting aliases.
7884
7885 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
7886
7887 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
7888 from test_insn into GGC space escape via SET_SRC.
7889
7890 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
7891
7892 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
7893 call statement, if any.
7894 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
7895 statements, if any. Tidy up.
7896
7897 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7898
7899 PR target/61431
7900 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
7901 iterators, VSX_D that handles 64-bit types, and VSX_LE that
7902 handles swapping the two 64-bit double words on little endian
7903 systems. Include V1TImode and optionally TImode in VSX_LE so that
7904 these types are properly swapped. Change all of the insns and
7905 splits that do the 64-bit swaps to use VSX_LE.
7906 (vsx_le_perm_load_<mode>): Likewise.
7907 (vsx_le_perm_store_<mode>): Likewise.
7908 (splitters for little endian memory operations): Likewise.
7909 (vsx_xxpermdi2_le_<mode>): Likewise.
7910 (vsx_lxvd2x2_le_<mode>): Likewise.
7911 (vsx_stxvd2x2_le_<mode>): Likewise.
7912
7913 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
7914
7915 PR target/61423
7916 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
7917 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
7918 and corresponding splitters. Zero extend general register
7919 or memory input operand to XMM temporary. Enable for
7920 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
7921 (floatunssi<mode>2): Update expander predicate.
7922
7923 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
7924
7925 PR rtl-optimization/61325
7926 * lra-constraints.c (process_address_1): Check scale equal to one
7927 to prevent transformation: base + scale * index => base + new_reg.
7928
7929 2014-06-06 Richard Biener <rguenther@suse.de>
7930
7931 PR tree-optimization/59299
7932 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
7933 a def operand.
7934 (nearest_common_dominator_of_uses): Likewise.
7935 (statement_sink_location): Adjust. Support sinking loads.
7936
7937 2014-06-06 Martin Jambor <mjambor@suse.cz>
7938
7939 * ipa-prop.c (get_place_in_agg_contents_list): New function.
7940 (build_agg_jump_func_from_list): Likewise.
7941 (determine_known_aggregate_parts): Renamed to
7942 determine_locally_known_aggregate_parts. Moved some functionality
7943 to the two functions above, removed bound checks.
7944
7945 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
7946
7947 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
7948 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
7949 (aarch64_progress_pointer): Likewise.
7950 (aarch64_copy_one_part_and_move_pointers): Likewise.
7951 (aarch64_expand_movmen): Likewise.
7952 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
7953 * config/aarch64/aarch64.md (movmem<mode>): New.
7954
7955 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
7956
7957 * targhooks.c (default_add_stmt_cost): Call target specific
7958 hook instead of default one.
7959
7960 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7961
7962 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
7963 endianness instead of host endianness.
7964 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
7965 comments.
7966
7967 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
7968
7969 PR debug/53927
7970 * function.c (instantiate_decls): Process the saved static chain.
7971 (expand_function_start): If not optimizing, save the static chain
7972 onto the stack.
7973 * tree-nested.c (convert_all_function_calls): Always create the static
7974 chain for nested functions if not optimizing.
7975
7976 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
7977
7978 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
7979
7980 2014-06-06 Richard Biener <rguenther@suse.de>
7981
7982 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
7983 (construct_init_block): Likewise.
7984 (construct_exit_block): Likewise.
7985 (pass_expand::execute): Likewise.
7986 * graphite.c (graphite_transforms): Replace check for current_loops
7987 with a check for > 1 loops.
7988 (pass_graphite_transforms::execute): Adjust.
7989 * ipa-split.c (split_function): Remove check for current_loops.
7990 * omp-low.c (expand_parallel_call): Likewise.
7991 (expand_omp_for_init_counts): Likewise.
7992 (extract_omp_for_update_vars): Likewise.
7993 (expand_omp_for_generic): Likewise.
7994 (expand_omp_sections): Likewise.
7995 (expand_omp_target): Likewise.
7996 * tracer.c (tail_duplicate): Likewise.
7997 (pass_tracer::execute): Likewise.
7998 * trans-mem.c (expand_transaction): Likewise.
7999 * tree-complex.c (expand_complex_div_wide): Likewise.
8000 * tree-eh.c (lower_resx): Likewise.
8001 (cleanup_empty_eh_merge_phis): Likewise.
8002 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8003 current_loops with a check for > 1 loops.
8004 (pass_predcom::execute): Adjust.
8005 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8006 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8007 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8008 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8009 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8010 * tree-switch-conversion.c (process_switch): Likewise.
8011 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8012 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8013 (execute_vrp): Likewise.
8014 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8015
8016 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8017
8018 * rtl.h (insn_location): Declare.
8019 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8020 with UNKNOWN_LOCATION.
8021 * emit-rtl.c (insn_location): New function.
8022 * final.c (notice_source_line): Check that the instruction has a
8023 location before retrieving it and use insn_location.
8024 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8025 * print-rtl.c (print_rtx): Likewise.
8026
8027 2014-06-06 Richard Biener <rguenther@suse.de>
8028
8029 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8030
8031 2014-06-06 Christian Bruel <christian.bruel@st.com>
8032
8033 PR tree-optimization/43934
8034 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8035 cost.
8036
8037 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8038
8039 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8040 return NO_REGS for extra address and memory constraints. Handle
8041 operands that match (or are equivalent to something that matches)
8042 extra constant constraints. Ignore other non-register operands.
8043
8044 2014-06-06 Alan Modra <amodra@gmail.com>
8045
8046 PR target/61300
8047 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8048 * doc/tm.texi: Regenerate.
8049 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8050 Use throughout in place of REG_PARM_STACK_SPACE.
8051 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8052 "incoming" param. Pass to rs6000_function_parms_need_stack.
8053 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8054 prototype_p when incoming. Use function decl when incoming
8055 to handle K&R style functions.
8056 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8057 (INCOMING_REG_PARM_STACK_SPACE): Define.
8058
8059 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8060
8061 PR target/52472
8062 * cfgexpand.c (expand_debug_expr): Use address space of nested
8063 TREE_TYPE for ADDR_EXPR and MEM_REF.
8064
8065 2014-06-05 Jeff Law <law@redhat.com>
8066
8067 PR tree-optimization/61289
8068 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8069 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8070 looking for those which match LHS. All callers changed.
8071 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8072 parameters and code which manipulated them. All callers changed.
8073 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8074 and DST_MAP parameters. Simplify invalidation code by just calling
8075 invalidate_equivalences. All callers changed.
8076 (thread_across_edge): Simplify now that we don't need to maintain
8077 the map of equivalences to invalidate.
8078
8079 2014-06-05 Kai Tietz <ktietz@redhat.com>
8080 Richard Henderson <rth@redhat.com>
8081
8082 PR target/46219
8083 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8084 checking for !TARGET_X32.
8085 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8086 (sibcall_intern): New define_insn, plus required peepholes.
8087 (sibcall_pop_intern): Likewise.
8088 (sibcall_value_intern): Likewise.
8089 (sibcall_value_pop_intern): Likewise.
8090
8091 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8092
8093 * tree-inline.c (tree_function_versioning): Check DF info existence
8094 before accessing it.
8095
8096 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8097
8098 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8099 frame_size.
8100 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8101 aarch64_frame hard_fp_offset and frame_size.
8102 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8103 frame_size; remove original_frame_size.
8104 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8105 (aarch64_initial_elimination_offset): Remove frame_size and
8106 offset. Use aarch64_frame frame_size.
8107
8108 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8109 Jiong Wang <jiong.wang@arm.com>
8110 Renlin <renlin.li@arm.com>
8111
8112 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8113 initialization of R30 offset. Update offset. Iterate core
8114 regisers upto X30. Remove X29, X30 specific code.
8115
8116 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8117 Jiong Wang <jiong.wang@arm.com>
8118
8119 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8120 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8121 (aarch64_register_saved_on_entry): Adjust test.
8122
8123 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8124
8125 * config/aarch64/aarch64.h (machine_function): Move
8126 saved_varargs_size from here...
8127 (aarch64_frame): ... to here.
8128
8129 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8130 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8131 (aarch64_initial_elimination_offset)
8132 (aarch64_setup_incoming_varargs): Adjust location of
8133 saved_varargs_size.
8134
8135 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8136
8137 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8138 layout comment.
8139
8140 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8141 Prachi Godbole <Prachi.Godbole@imgtec.com>
8142
8143 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8144 mips32r5 entry to use PROCESSOR_P5600.
8145 * config/mips/mips-tables.opt: Regenerate.
8146 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8147 * config/mips/mips.c (mips_fmadd_bypass): New function.
8148 (mips_rtx_cost_data): Add costs for p5600.
8149 (mips_issue_rate): Add support for p5600.
8150 (mips_multipass_dfa_lookahead): Likewise.
8151 * config/mips/mips.h (TUNE_P5600): New define.
8152 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8153 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8154 * config/mips/mips.md: Include p5600.md.
8155 (processor): Add p5600.
8156 * config/mips/p5600.md: New file.
8157
8158 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8159
8160 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8161 * config/i386/predicates.md (palignr_operand): New.
8162 Indicates if permutation is suitable for palignr instruction.
8163
8164 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8165
8166 PR tree-optimization/61319
8167 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8168 stmt belongs to loop.
8169
8170 2014-06-05 Richard Biener <rguenther@suse.de>
8171
8172 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8173 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8174 (lookup_tmp_var): Adjust.
8175 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8176
8177 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8178
8179 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8180
8181 2014-06-05 Marek Polacek <polacek@redhat.com>
8182
8183 PR c/49706
8184 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8185
8186 2014-06-04 Tom de Vries <tom@codesourcery.com>
8187
8188 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8189 CONST_INT.
8190
8191 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8192
8193 PR tree-optimization/61385
8194 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8195
8196 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8197
8198 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8199 changed to use fatal_error.
8200 (main): Ensure lto_wrapper_cleanup is run atexit.
8201
8202 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8203
8204 * lra-constraints.c (valid_address_p): Move earlier in file.
8205 (address_eliminator): New structure.
8206 (satisfies_memory_constraint_p): New function.
8207 (satisfies_address_constraint_p): Likewise.
8208 (process_alt_operands, process_address, curr_insn_transform): Use them.
8209
8210 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8211
8212 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8213 const pointer.
8214 (target_lra_int, default_target_lra_int, this_target_lra_int)
8215 (op_alt_data): Delete.
8216 * lra.h (lra_init): Delete.
8217 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8218 (init_insn_code_data_once): Remove op_alt_data handling.
8219 (finish_insn_code_data_once): Likewise.
8220 (init_op_alt_data): Delete.
8221 (get_static_insn_data): Initialize operand_alternative to null.
8222 (free_insn_recog_data): Cast operand_alternative before freeing it.
8223 (setup_operand_alternative): Take the operand_alternative as
8224 parameter and assume it isn't already cached in the static
8225 insn data.
8226 (lra_set_insn_recog_data): Update accordingly.
8227 (lra_init): Delete.
8228 * ira.c (ira_init): Don't call lra_init.
8229 * target-globals.h (this_target_lra_int): Declare.
8230 (target_globals): Remove lra_int.
8231 (restore_target_globals): Update accordingly.
8232 * target-globals.c: Don't include lra-int.h.
8233 (default_target_globals, save_target_globals): Remove lra_int.
8234
8235 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8236
8237 * recog.h (operand_alternative): Convert reg_class, reject,
8238 matched and matches into bitfields.
8239 (preprocess_constraints): New overload.
8240 (preprocess_insn_constraints): New function.
8241 (preprocess_constraints): Take the insn as parameter.
8242 (recog_op_alt): Change into a pointer.
8243 (target_recog): Add x_op_alt.
8244 * recog.c (asm_op_alt): New variable.
8245 (recog_op_alt): Change into a pointer.
8246 (preprocess_constraints): New overload, replacing the old function
8247 definition with one that doesn't use global state.
8248 (preprocess_insn_constraints): New function.
8249 (preprocess_constraints): Use them. Take the insn as parameter.
8250 Use asm_op_alt for asms.
8251 (recog_init): Free existing x_op_alt entries.
8252 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8253 pointer const.
8254 (make_early_clobber_and_input_conflicts): Likewise.
8255 (process_bb_node_lives): Pass the insn to process_constraints.
8256 * reg-stack.c (check_asm_stack_operands): Likewise.
8257 (subst_asm_stack_regs): Likewise.
8258 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8259 * regrename.c (build_def_use): Likewise.
8260 * sched-deps.c (sched_analyze_insn): Likewise.
8261 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8262 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8263 (note_invalid_constants): Likewise.
8264 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8265 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8266 const.
8267
8268 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8269
8270 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8271 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8272 alternatives.
8273 (make_early_clobber_and_input_conflicts): Likewise.
8274 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8275
8276 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8277
8278 * recog.h (alternative_class): New function.
8279 (which_op_alt): Return a const recog_op_alt.
8280 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8281 (subst_asm_stack_regs): Likewise.
8282 * config/arm/arm.c (note_invalid_constants): Likewise.
8283 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8284 the operand_alternative; use alternative class instead.
8285 * sel-sched.c (get_reg_class): Likewise.
8286 * regrename.c (build_def_use): Likewise.
8287 (hide_operands, restore_operands, record_out_operands): Update type
8288 accordingly.
8289
8290 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8291
8292 * recog.h (recog_op_alt): Convert to a flat array.
8293 (which_op_alt): New function.
8294 * recog.c (recog_op_alt): Convert to a flat array.
8295 (preprocess_constraints): Update accordingly, grouping all
8296 operands of the same alternative together, rather than the
8297 other way around.
8298 * ira-lives.c (check_and_make_def_conflict): Likewise.
8299 (make_early_clobber_and_input_conflicts): Likewise.
8300 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8301 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8302 (subst_asm_stack_regs): Likewise.
8303 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8304 * regrename.c (hide_operands, record_out_operands): Likewise.
8305 (build_def_use): Likewise.
8306 * sel-sched.c (get_reg_class): Likewise.
8307 * config/arm/arm.c (note_invalid_constants): Likewise.
8308
8309 2014-06-04 Jason Merrill <jason@redhat.com>
8310
8311 PR c++/51253
8312 PR c++/61382
8313 * gimplify.c (gimplify_arg): Non-static.
8314 * gimplify.h: Declare it.
8315
8316 2014-06-04 Richard Biener <rguenther@suse.de>
8317
8318 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8319 TREE_PUBLIC and DECL_EXTERNAL decls.
8320
8321 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8322
8323 * regcprop.c (copyprop_hardreg_forward_1): Account for
8324 HARD_REGNO_CALL_PART_CLOBBERED.
8325
8326 2014-06-04 Richard Biener <rguenther@suse.de>
8327
8328 * configure.ac: Check whether the underlying type of int64_t
8329 is long or long long.
8330 * configure: Regenerate.
8331 * config.in: Likewise.
8332 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8333 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8334
8335 2014-06-04 Richard Biener <rguenther@suse.de>
8336
8337 PR tree-optimization/60098
8338 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8339 we hit a kill.
8340 (dse_optimize_stmt): Simplify, now that we found a kill
8341 earlier.
8342
8343 2014-06-04 Richard Biener <rguenther@suse.de>
8344
8345 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8346 of accesses with non-invariant address.
8347
8348 2014-06-04 Martin Liska <mliska@suse.cz>
8349
8350 * cgraph.h (cgraph_make_wrapper): New function introduced.
8351 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8352 * ipa-inline.h (inline_analyze_function): The function is global.
8353 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8354
8355 2014-06-04 Martin Liska <mliska@suse.cz>
8356
8357 * tree.h (private_lookup_attribute_starting): New function.
8358 (lookup_attribute_starting): Likewise.
8359 * tree.c (private_lookup_attribute_starting): Likewise.
8360
8361 2014-06-04 Martin Liska <mliska@suse.cz>
8362
8363 * cgraph.h (expand_thunk): New argument added.
8364 (address_taken_from_non_vtable_p): New global function.
8365 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8366 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8367 * cgraphunit.c (analyze_function): Likewise.
8368 (assemble_thunks_and_aliases): Argument added to call.
8369 (expand_thunk): New argument forces to produce GIMPLE thunk.
8370
8371 2014-06-04 Martin Liska <mliska@suse.cz>
8372
8373 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8374 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8375 * profile.c (branch_prob): Likewise.
8376
8377 2014-06-04 Martin Jambor <mjambor@suse.cz>
8378
8379 PR ipa/61340
8380 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8381 handler for switch on an ipa_ref_use enum.
8382 * ipa-reference.c (analyze_function): Likewise.
8383
8384 2014-06-04 Kai Tietz <ktietz@redhat.com>
8385
8386 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8387 from old call-instruction.
8388
8389 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8390
8391 * config/aarch64/aarch64.c (aarch64_classify_address)
8392 (aarch64_legitimize_reload_address): Support full addressing modes
8393 for vector modes.
8394 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8395 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8396
8397 2014-06-03 Andrew Pinski <apinski@cavium.com>
8398
8399 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8400 for OP0.
8401
8402 2014-06-03 Andrew Pinski <apinski@cavium.com>
8403
8404 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8405 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8406
8407 2014-06-03 Kai Tietz <ktietz@redhat.com>
8408
8409 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8410 for 64-bit ms-abi.
8411
8412 2014-06-03 Dehao Chen <dehao@google.com>
8413
8414 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8415 the same loop.
8416
8417 2014-06-03 Marek Polacek <polacek@redhat.com>
8418
8419 PR c/60439
8420 * doc/invoke.texi: Document -Wswitch-bool.
8421 * function.c (stack_protect_epilogue): Cast controlling expression of
8422 the switch to int.
8423 * gengtype.c (walk_type): Generate switch expression with its
8424 controlling expression cast to int.
8425
8426 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8427
8428 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8429 and attiny841.
8430 * config/avr/avr-tables.opt: Regenerate.
8431 * config/avr/t-multilib: Regenerate.
8432 * doc/avr-mmcu.texi: Regenerate.
8433
8434 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8435 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8436
8437 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8438 (ata6617c, ata664251): Add new avr35 devices.
8439 (ata6612c): Add new avr4 device.
8440 (ata6613c, ata6614q): Add new avr5 devices.
8441 * config/avr/avr-tables.opt: Regenerate.
8442 * config/avr/t-multilib: Regenerate.
8443 * doc/avr-mmcu.texi: Regenerate.
8444
8445 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8446
8447 * gcc/config/aarch64/aarch64-builtins.c
8448 (aarch64_types_binop_ssu_qualifiers): New static data.
8449 (TYPES_BINOP_SSU): Define.
8450 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8451 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8452 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8453 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8454 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8455 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8456 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8457 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8458 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8459 suffix to builtin function name, remove cast.
8460 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8461 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8462 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8463
8464 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8465
8466 * gcc/config/aarch64/aarch64-builtins.c
8467 (aarch64_types_binop_uus_qualifiers,
8468 aarch64_types_shift_to_unsigned_qualifiers,
8469 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8470 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8471 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8472 sqshlu_n, uqshl_n): Update qualifiers.
8473 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8474 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8475 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8476 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8477 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8478 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8479 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8480 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8481 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8482 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8483 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8484 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8485 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8486 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8487 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8488 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8489 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8490 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8491 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8492 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8493 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8494 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8495 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8496 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8497 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8498 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8499 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8500
8501 2014-06-03 Teresa Johnson <tejohnson@google.com>
8502
8503 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8504
8505 2014-06-02 Jason Merrill <jason@redhat.com>
8506
8507 PR c++/61020
8508 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8509
8510 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8511
8512 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8513 location == 0.
8514
8515 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8516
8517 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8518 New pattern.
8519 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8520 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8521 * config/aarch64/iterators.md (REVERSE): New iterator.
8522 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8523 (rev_op): New int_attribute.
8524 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8525 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8526 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8527 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8528 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8529 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8530 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8531 Replace temporary __asm__ with __builtin_shuffle.
8532
8533 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8534
8535 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8536 mips64r5.
8537 * config/mips/mips-tables.opt: Regenerate.
8538 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8539 to use mips_isa_rev rather than ISA_MIPS32R2.
8540 * config/mips/mips.h (ISA_MIPS32R3): New define.
8541 (ISA_MIPS32R5): New define.
8542 (ISA_MIPS64R3): New define.
8543 (ISA_MIPS64R5): New define.
8544 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8545 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8546 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8547 and mips64r5.
8548 (MIPS_ISA_SYNCI_SPEC): Likewise.
8549 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8550 (LINK_SPEC): Added mips32r3 and mips32r5.
8551 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8552 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8553 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8554 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8555 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8556 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8557 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8558
8559 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8560
8561 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8562 options.
8563 * config/mips/mips.opt (mxpa): New option.
8564 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8565 assembler.
8566
8567 2014-06-03 Martin Jambor <mjambor@suse.cz>
8568
8569 PR ipa/61160
8570 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8571 thunks.
8572
8573 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8574
8575 PR tree-optimization/61328
8576 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8577 initialization from find_bswap_or_nop_1.
8578 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8579 in source_expr2 before using the size value the function sets. Also
8580 make use of init_symbolic_number () in both the old place and
8581 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8582 doing recursion in the GIMPLE_BINARY_RHS case.
8583
8584 2014-06-03 Richard Biener <rguenther@suse.de>
8585
8586 PR tree-optimization/61383
8587 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8588 stmts can't trap.
8589
8590 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8591
8592 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8593 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8594 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8595 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8596 in this file.
8597 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8598 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8599 * system.h: ...here and make it unconditional.
8600 * target.def (conditional_register_usage): Mention
8601 define_register_constraint instead of old-style constraint macros.
8602 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8603 * doc/tm.texi: Regenerate.
8604 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8605 protected by !USE_MD_CONSTRAINTS.
8606 * config/frv/frv.md: Remove quote from old version of documentation.
8607 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8608 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8609 CONST_DOUBLE_OK_FOR_LETTER.
8610 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8611
8612 2014-06-02 Andrew Pinski <apinski@cavium.com>
8613
8614 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8615 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8616 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8617 file whose name depends on -mabi= and -mbig-endian.
8618 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8619 Handle LP64 better and handle ilp32 too.
8620 (MULTILIB_OPTIONS): Delete.
8621 (MULTILIB_DIRNAMES): Delete.
8622
8623 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8624
8625 * expr.h: Remove prototypes of functions defined in builtins.c.
8626 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8627 Remove prototypes of functions defined in builtins.c.
8628 * builtins.h: Update prototype list to include all exported functions.
8629 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8630 no_c99_libc_has_function): Move to targhooks.c
8631 (build_string_literal, build_call_expr_loc_array,
8632 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8633 to tree.c.
8634 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8635 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8636 no_c99_libc_has_function): Relocate from builtins.c.
8637 * tree.c: Include builtins.h.
8638 (build_call_expr_loc_array, build_call_expr_loc_vec,
8639 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8640 from builtins.c.
8641 * fold-const.h (fold_fma): Move prototype to builtins.h.
8642 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8643 * asan.c: Include builtins.h.
8644 * cfgexpand.c: Likewise.
8645 * convert.c: Likewise.
8646 * emit-rtl.c: Likewise.
8647 * except.c: Likewise.
8648 * expr.c: Likewise.
8649 * fold-const.c: Likewise.
8650 * gimple-fold.c: Likewise.
8651 * gimple-ssa-strength-reduction.c: Likewise.
8652 * gimplify.c: Likewise.
8653 * ipa-inline.c: Likewise.
8654 * ipa-prop.c: Likewise.
8655 * lto-streamer-out.c: Likewise.
8656 * stmt.c: Likewise.
8657 * tree-inline.c: Likewise.
8658 * tree-object-size.c: Likewise.
8659 * tree-sra.c: Likewise.
8660 * tree-ssa-ccp.c: Likewise.
8661 * tree-ssa-forwprop.c: Likewise.
8662 * tree-ssa-loop-ivcanon.c: Likewise.
8663 * tree-ssa-loop-ivopts.c: Likewise.
8664 * tree-ssa-math-opts.c: Likewise.
8665 * tree-ssa-reassoc.c: Likewise.
8666 * tree-ssa-threadedge.c: Likewise.
8667 * tree-streamer-in.c: Likewise.
8668 * tree-vect-data-refs.c: Likewise.
8669 * tree-vect-patterns.c: Likewise.
8670 * tree-vect-stmts.c: Likewise.
8671 * config/aarch64/aarch64.c: Likewise.
8672 * config/alpha/alpha.c: Likewise.
8673 * config/arc/arc.c: Likewise.
8674 * config/arm/arm.c: Likewise.
8675 * config/avr/avr.c: Likewise.
8676 * config/bfin/bfin.c: Likewise.
8677 * config/c6x/c6x.c: Likewise.
8678 * config/cr16/cr16.c: Likewise.
8679 * config/cris/cris.c: Likewise.
8680 * config/epiphany/epiphany.c: Likewise.
8681 * config/fr30/fr30.c: Likewise.
8682 * config/frv/frv.c: Likewise.
8683 * config/h8300/h8300.c: Likewise.
8684 * config/i386/i386.c: Likewise.
8685 * config/i386/winnt.c: Likewise.
8686 * config/ia64/ia64.c: Likewise.
8687 * config/iq2000/iq2000.c: Likewise.
8688 * config/lm32/lm32.c: Likewise.
8689 * config/m32c/m32c.c: Likewise.
8690 * config/m32r/m32r.c: Likewise.
8691 * config/m68k/m68k.c: Likewise.
8692 * config/mcore/mcore.c: Likewise.
8693 * config/mep/mep.c: Likewise.
8694 * config/microblaze/microblaze.c: Likewise.
8695 * config/mips/mips.c: Likewise.
8696 * config/mmix/mmix.c: Likewise.
8697 * config/mn10300/mn10300.c: Likewise.
8698 * config/moxie/moxie.c: Likewise.
8699 * config/msp430/msp430.c: Likewise.
8700 * config/nds32/nds32.c: Likewise.
8701 * config/pa/pa.c: Likewise.
8702 * config/pdp11/pdp11.c: Likewise.
8703 * config/picochip/picochip.c: Likewise.
8704 * config/rl78/rl78.c: Likewise.
8705 * config/rs6000/rs6000.c: Likewise.
8706 * config/rx/rx.c: Likewise.
8707 * config/s390/s390.c: Likewise.
8708 * config/score/score.c: Likewise.
8709 * config/sh/sh.c: Likewise.
8710 * config/sparc/sparc.c: Likewise.
8711 * config/spu/spu.c: Likewise.
8712 * config/stormy16/stormy16.c: Likewise.
8713 * config/tilegx/tilegx.c: Likewise.
8714 * config/tilepro/tilepro.c: Likewise.
8715 * config/v850/v850.c: Likewise.
8716 * config/vax/vax.c: Likewise.
8717 * config/xtensa/xtensa.c: Likewise.
8718
8719 2014-06-02 Jeff Law <law@redhat.com>
8720
8721 PR rtl-optimization/61094
8722 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8723 was marked as do_no_reextend. If a copy is needed to eliminate
8724 an extension, then mark it as do_not_reextend.
8725
8726 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8727
8728 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8729
8730 2014-06-02 Richard Henderson <rth@redhat.com>
8731
8732 PR target/61336
8733 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8734 addresses inside asms. Use output_operand_lossage instead of
8735 gcc_unreachable.
8736
8737 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8738
8739 PR target/61239
8740 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8741 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8742
8743 2014-06-02 Tom de Vries <tom@codesourcery.com>
8744
8745 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8746 case that x has VOIDmode.
8747
8748 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8749
8750 * varasm.c (copy_constant): Delete function.
8751 (build_constant_desc): Don't call it.
8752
8753 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8754
8755 PR target/61154
8756 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8757 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8758 with immediate_operand.
8759
8760 2014-06-02 Andreas Schwab <schwab@suse.de>
8761
8762 * config/ia64/ia64.c
8763 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8764 pending_data_specs first.
8765
8766 2014-06-02 Richard Biener <rguenther@suse.de>
8767
8768 PR tree-optimization/61378
8769 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8770 valueized_anything.
8771
8772 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8773
8774 * config/i386/constraints.md (Bw): Rename from 'w'.
8775 (Bz): Rename from 'z'.
8776 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8777
8778 2014-06-01 Kai Tietz <ktietz@redhat.com>
8779
8780 PR target/61377
8781 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8782 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8783 instead of m constraint.
8784
8785 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8786
8787 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8788 a separate alternative where the scratch operand 2 is marked as
8789 early clobber.
8790
8791 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8792
8793 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8794 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8795 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8796 and __builtins_arm_get_fpscr.
8797 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8798 __builtins_arm_get_fpscr.
8799 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8800 __builtins_arm_ldfpscr.
8801 (arm_atomic_assign_expand_fenv): New function.
8802 * config/arm/vfp.md (set_fpscr): New pattern.
8803 (get_fpscr) : Likewise.
8804 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8805 VUNSPEC_SET_FPSCR.
8806 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8807 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8808
8809 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8810
8811 * asan.c (report_error_func): Add SLOW_P argument, use
8812 BUILT_IN_ASAN_*_N if set.
8813 (build_check_stmt): Likewise.
8814 (instrument_derefs): If T has insufficient alignment,
8815 force same handling as for odd sizes.
8816
8817 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8818 BUILT_IN_ASAN_REPORT_STORE_N): New.
8819 * asan.c (struct asan_mem_ref): Change access_size type to
8820 HOST_WIDE_INT.
8821 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8822 update_mem_ref_hash_table): Likewise.
8823 (asan_mem_ref_hasher::hash): Hash in a HWI.
8824 (report_error_func): Change size_in_bytes argument to HWI.
8825 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8826 two.
8827 (build_shadow_mem_access): New function.
8828 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8829 Handle size_in_bytes not power of two or larger than 16.
8830 (instrument_derefs): Don't give up if size_in_bytes is not
8831 power of two or is larger than 16.
8832
8833 2014-05-30 Kai Tietz <ktietz@redhat.com>
8834
8835 PR target/60104
8836 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8837 for sibling-tail-calls.
8838 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8839 to its use.
8840 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8841 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8842
8843 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8844
8845 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8846 * config/avr/avr-tables.opt: Regenerate.
8847 * config/avr/t-multilib: Regenerate.
8848 * doc/avr-mmcu.texi: Regenerate.
8849
8850 2014-05-30 Ian Lance Taylor <iant@google.com>
8851
8852 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8853 target("sse").
8854
8855 2014-05-30 Tom de Vries <tom@codesourcery.com>
8856
8857 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8858 Redefine as true.
8859
8860 2014-05-30 Tom de Vries <tom@codesourcery.com>
8861
8862 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8863 * lra.c (initialize_lra_reg_info_element): Add init of
8864 actual_call_used_reg_set field.
8865 (lra): Call lra_create_live_ranges before lra_inheritance for
8866 -fuse-caller-save.
8867 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8868 -fuse-caller-save.
8869 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
8870 instead of call_used_reg_set for -fuse-caller-save.
8871 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8872
8873 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8874
8875 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
8876 to mov_imm.
8877 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
8878
8879 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
8880
8881 * ira.c (ira_get_dup_out_num): Check for output operands at
8882 the start of the loop. Handle cases where an included alternative
8883 follows an excluded one.
8884
8885 2014-05-29 Mike Stump <mikestump@comcast.net>
8886
8887 PR debug/61352
8888 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
8889 post ld passes when lto is used.
8890
8891 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
8892
8893 PR rtl-optimization/61325
8894 * lra-constraints.c (process_address): Rename to process_address_1.
8895 (process_address): New function.
8896
8897 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
8898
8899 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
8900 TYPES_BINOPV): New static data.
8901 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
8902 New builtin.
8903 * config/aarch64/aarch64-simd.md (aarch64_ext,
8904 aarch64_im_lane_boundsi): New patterns.
8905 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
8906 patterns for EXT.
8907 (aarch64_evpc_ext): New function.
8908
8909 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
8910
8911 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
8912 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
8913 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
8914 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
8915 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
8916
8917 2014-05-29 Tom de Vries <tom@codesourcery.com>
8918
8919 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
8920
8921 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
8922 Richard Sandiford <rdsandiford@googlemail.com>
8923
8924 * arm/iterators.md (shiftable_ops): New code iterator.
8925 (t2_binop0, arith_shift_insn): New code attributes.
8926 * arm/predicates.md (shift_nomul_operator): New predicate.
8927 * arm/arm.md (insn_enabled): Delete.
8928 (enabled): Remove insn_enabled test.
8929 (*arith_shiftsi): Delete. Replace with ...
8930 (*<arith_shift_insn>_multsi): ... new pattern.
8931 (*<arith_shift_insn>_shiftsi): ... new pattern.
8932 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
8933
8934 2014-05-29 Radovan Obradovic <robradovic@mips.com>
8935 Tom de Vries <tom@codesourcery.com>
8936
8937 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
8938 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
8939 clobber.
8940 (mips_split_call): Use POST_CALL_TMP_REG.
8941 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
8942
8943 2014-05-29 Tom de Vries <tom@codesourcery.com>
8944
8945 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
8946 with #ifdef STACK_REGS.
8947
8948 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
8949
8950 * varasm.c (get_variable_section): Walk aliases.
8951 (place_block_symbol): Walk aliases.
8952
8953 2014-05-28 Tom de Vries <tom@codesourcery.com>
8954
8955 Revert:
8956 2014-05-28 Tom de Vries <tom@codesourcery.com>
8957
8958 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8959 * lra.c (initialize_lra_reg_info_element): Add init of
8960 actual_call_used_reg_set field.
8961 (lra): Call lra_create_live_ranges before lra_inheritance for
8962 -fuse-caller-save.
8963 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8964 -fuse-caller-save.
8965 * lra-constraints.c (need_for_call_save_p): Use
8966 actual_call_used_reg_set instead of call_used_reg_set for
8967 -fuse-caller-save.
8968 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8969
8970 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8971
8972 * doc/md.texi: Document that the % constraint character must
8973 be at the beginning of the string.
8974 * genoutput.c (validate_insn_alternatives): Check that '=',
8975 '+' and '%' only appear at the beginning of a constraint.
8976 * ira.c (commutative_constraint_p): Delete.
8977 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
8978 at the start of the string.
8979 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
8980 duplicate '='s.
8981 * config/arm/neon.md (bicdi3_neon): Likewise.
8982 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
8983 (slt_si, sltu_si): Likewise.
8984 * config/vax/vax.md (sbcdi3): Likewise.
8985 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
8986 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
8987 (mul64): Move '%' to beginning of constraint.
8988 * config/arm/arm.md (*xordi3_insn): Likewise.
8989 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
8990 (xorsi3): Likewise.
8991
8992 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8993
8994 * doc/md.texi: Document the restrictions on the "enabled" attribute.
8995
8996 2014-05-28 Jason Merrill <jason@redhat.com>
8997
8998 PR c++/47202
8999 * cgraph.h (symtab_node::get_comdat_group_id): New.
9000 * cgraphunit.c (analyze_functions): Call it.
9001 * symtab.c (dump_symtab_node): Likewise.
9002 * tree.c (decl_comdat_group_id): New.
9003 * tree.h: Declare it.
9004 * lto-streamer-out.c (write_symbol): Use it.
9005 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9006
9007 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9008
9009 PR bootstrap/PR61146
9010 * wide-int.cc: Do not include longlong.h when compiling with clang.
9011
9012 2014-05-28 Richard Biener <rguenther@suse.de>
9013
9014 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9015 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9016 (vrp_visit_assignment_or_call): Print less vertical space.
9017 (vrp_visit_stmt): Likewise.
9018 (vrp_visit_phi_node): Likewise. For a PHI argument with
9019 VR_VARYING range consider recording it as copy.
9020
9021 2014-05-28 Richard Biener <rguenther@suse.de>
9022
9023 Revert
9024 2014-05-28 Richard Biener <rguenther@suse.de>
9025
9026 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9027
9028 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9029
9030 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9031 sufficiently aligned and an offset is used at the same time.
9032 (expand_expr_real_1): Likewise.
9033
9034 2014-05-28 Richard Biener <rguenther@suse.de>
9035
9036 PR middle-end/61045
9037 * fold-const.c (fold_comparison): When folding
9038 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9039 the sign of the remaining constant operand stays the same.
9040
9041 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9042
9043 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9044 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9045 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9046 to the assembler.
9047 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9048 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9049 (m32bit-doubles) Likewise.
9050 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9051 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9052 option for RL78.
9053
9054 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9055
9056 * configure.ac ($gcc_cv_ld_clearcap): New test.
9057 * configure: Regenerate.
9058 * config.in: Regenerate.
9059 * config/sol2.opt (mclear-hwcap): New option.
9060 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9061 * config/sol2-clearcap.map: Moved here from
9062 testsuite/gcc.target/i386/clearcap.map.
9063 * config/sol2-clearcapv2.map: Move here from
9064 gcc.target/i386/clearcapv2.map.
9065 * config/t-sol2 (install): Depend on install-clearcap-map.
9066 (install-clearcap-map): New target.
9067 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9068 -mclear-hwcap.
9069
9070 2014-05-28 Richard Biener <rguenther@suse.de>
9071
9072 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9073 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9074 ... here and remove the rest.
9075 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9076
9077 2014-05-28 Richard Biener <rguenther@suse.de>
9078
9079 PR tree-optimization/61335
9080 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9081 new range fails, drop to varying.
9082
9083 2014-05-28 Olivier Hainque <hainque@adacore.com>
9084
9085 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9086 (CPP_SPEC): Add entry for -mcpu=8548.
9087 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9088 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9089
9090 2014-05-28 Tom de Vries <tom@codesourcery.com>
9091
9092 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9093 * lra.c (initialize_lra_reg_info_element): Add init of
9094 actual_call_used_reg_set field.
9095 (lra): Call lra_create_live_ranges before lra_inheritance for
9096 -fuse-caller-save.
9097 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9098 -fuse-caller-save.
9099 * lra-constraints.c (need_for_call_save_p): Use
9100 actual_call_used_reg_set instead of call_used_reg_set for
9101 -fuse-caller-save.
9102 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9103
9104 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9105 Tom de Vries <tom@codesourcery.com>
9106
9107 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9108 to gccoptlist.
9109 (@item -fuse-caller-save): New item.
9110
9111 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9112 Tom de Vries <tom@codesourcery.com>
9113
9114 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9115 OPT_fuse_caller_save.
9116
9117 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9118 Tom de Vries <tom@codesourcery.com>
9119
9120 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9121 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9122 get_call_reg_set_usage.
9123 * resource.c (mark_set_resources, mark_target_live_regs): Use
9124 get_call_reg_set_usage.
9125 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9126 field.
9127 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9128 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9129 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9130 * ira-build.c (ira_create_allocno): Init
9131 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9132 (create_cap_allocno, propagate_allocno_info)
9133 (propagate_some_info_from_allocno)
9134 (copy_info_to_removed_store_destinations): Handle
9135 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9136 * ira-costs.c (ira_tune_allocno_costs): Use
9137 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9138
9139 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9140 Tom de Vries <tom@codesourcery.com>
9141
9142 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9143 and function_used_regs_valid fields.
9144 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9145 find_all_hard_reg_sets.
9146 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9147 (get_call_reg_set_usage): New function.
9148 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9149 * regs.h (get_call_reg_set_usage): Declare.
9150
9151 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9152
9153 PR libgcc/61152
9154 * config/dbx.h (License): Add Runtime Library Exception.
9155 * config/newlib-stdint.h (License): Same.
9156 * config/rtems.h (License): Same
9157 * config/initfini-array.h (License): Same
9158 * config/v850/v850.h (License): Same.
9159 * config/v850/v850-opts.h (License): Same
9160 * config/v850/rtems.h (License): Same.
9161
9162 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9163
9164 PR target/61044
9165 * doc/extend.texi (Local Labels): Note that label differences are
9166 not supported for AVR.
9167
9168 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9169 Olivier Hainque <hainque@adacore.com>
9170
9171 * rtl.h (set_for_reg_notes): Declare.
9172 * emit-rtl.c (set_for_reg_notes): New function.
9173 (set_unique_reg_note): Use it.
9174 * optabs.c (add_equal_note): Likewise
9175
9176 2014-05-27 Andrew Pinski <apinski@cavium.com>
9177
9178 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9179 Use <w> for the register in assembly template.
9180 (stack_protect_test): Use the mode of operands[0] for the result.
9181 (stack_protect_test_<mode>): Use <w> for the register
9182 in assembly template.
9183
9184 2014-05-27 DJ Delorie <dj@redhat.com>
9185
9186 * config/rx/rx.c (add_vector_labels): New.
9187 (rx_output_function_prologue): Call it.
9188 (rx_handle_func_attribute): Don't require empty arguments.
9189 (rx_handle_vector_attribute): New.
9190 (rx_attribute_table): Add "vector" attribute.
9191 * doc/extend.texi (interrupt, vector): Document new/changed
9192 RX-specific attributes.
9193
9194 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9195
9196 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9197
9198 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9199 predicate to detect a negative quotient.
9200
9201 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9202
9203 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9204 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9205 Add X - Y CMP 0 to X CMP Y transformation.
9206 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9207
9208 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9209
9210 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9211 before printing.
9212
9213 2014-05-27 Steve Ellcey <sellcey@mips.com>
9214
9215 * config/mips/mips.c: Add include of cgraph.h.
9216
9217 2014-05-27 Richard Biener <rguenther@suse.de>
9218
9219 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9220
9221 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9222
9223 PR libgcc/61152
9224 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9225 * config/arm/arm-cores.def (License): Same.
9226 * config/arm/arm-opts.h (License): Same.
9227 * config/arm/aout.h (License): Same.
9228 * config/arm/bpabi.h (License): Same.
9229 * config/arm/elf.h (License): Same.
9230 * config/arm/linux-elf.h (License): Same.
9231 * config/arm/linux-gas.h (License): Same.
9232 * config/arm/netbsd-elf.h (License): Same.
9233 * config/arm/uclinux-eabi.h (License): Same.
9234 * config/arm/uclinux-elf.h (License): Same.
9235 * config/arm/vxworks.h (License): Same.
9236
9237 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9238
9239 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9240 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9241 (arm_init_neon_builtins): Handle NEON_BSWAP.
9242 Define required type nodes.
9243 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9244 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9245 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9246 * config/arm/iterators.md (VDQHSD): New mode iterator.
9247
9248 2014-05-27 Richard Biener <rguenther@suse.de>
9249
9250 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9251 Try using literal operands when comparing value-ranges failed.
9252
9253 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9254
9255 * ira.c (commutative_operand): Adjust for change to recog_data.
9256 [Missing from previous commit.]
9257
9258 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9259
9260 * system.h (TEST_BIT): New macro.
9261 * recog.h (alternative_mask): New type.
9262 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9263 (recog_data_d): Replace alternative_enabled_p array with
9264 enabled_alternatives.
9265 (target_recog): New structure.
9266 (default_target_recog, this_target_recog): Declare.
9267 (get_enabled_alternatives, recog_init): Likewise.
9268 * recog.c (default_target_recog, this_target_recog): New variables.
9269 (get_enabled_alternatives): New function.
9270 (extract_insn): Use it.
9271 (recog_init): New function.
9272 (preprocess_constraints, constrain_operands): Adjust for change to
9273 recog_data.
9274 * postreload.c (reload_cse_simplify_operands): Likewise.
9275 * reload.c (find_reloads): Likewise.
9276 * ira-costs.c (record_reg_classes): Likewise.
9277 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9278 all alternatives after a disabled one would be skipped.
9279 (ira_implicitly_set_insn_hard_regs): Likewise.
9280 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9281 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9282 with enabled_alternatives.
9283 * lra.c (free_insn_recog_data): Update accordingly.
9284 (lra_update_insn_recog_data): Likewise.
9285 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9286 * lra-constraints.c (process_alt_operands): Likewise. Handle
9287 only_alternative as part of the enabled mask.
9288 * target-globals.h (this_target_recog): Declare.
9289 (target_globals): Add a recog field.
9290 (restore_target_globals): Restore this_target_recog.
9291 * target-globals.c: Include recog.h.
9292 (default_target_globals): Initialize recog field.
9293 (save_target_globals): Likewise.
9294 * reginfo.c (reinit_regs): Call recog_init.
9295 * toplev.c (backend_init_target): Likewise.
9296
9297 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9298
9299 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9300 rather than any named insn's code.
9301
9302 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9303
9304 PR libgcc/61152
9305 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9306 * config/arm/arm-cores.def (License): Same.
9307
9308 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9309
9310 * tree.h (decl_comdat_group): Declare.
9311 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9312 * tree.c (decl_comdat_group): Here.
9313
9314 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9315
9316 PR rtl-optimization/61222
9317 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9318 the shift, truncate the PLUS operand to the result mode.
9319
9320 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9321
9322 PR target/61271
9323 * config/i386/i386.c (ix86_rtx_costs)
9324 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9325 Fix condition.
9326
9327 2014-05-26 Martin Jambor <mjambor@suse.cz>
9328
9329 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9330 subreg uses.
9331
9332 2014-05-26 Richard Biener <rguenther@suse.de>
9333
9334 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9335 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9336 Provide specializations.
9337 (wi::int_traits <HOST_WIDE_INT>,
9338 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9339
9340 2014-05-26 Alan Modra <amodra@gmail.com>
9341
9342 PR target/61098
9343 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9344 params and return a bool. Remove dead code. Update comment.
9345 Assert we have a const_int source. Remove bogus code from
9346 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9347 handling of constants > 2G and reg_equal note, from..
9348 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9349 return value. Update comment. If we can, use a new pseudo
9350 for intermediate calculations.
9351 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9352 prototype.
9353 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9354 call to rs6000_emit_set_const in splitter.
9355 (movdi_internal64+2, +3): Likewise.
9356
9357 2014-05-26 Richard Biener <rguenther@suse.de>
9358
9359 * system.h: Define __STDC_FORMAT_MACROS before
9360 including inttypes.h.
9361 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9362 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9363 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9364 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9365 HOST_WIDEST_INT_C): Remove.
9366 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9367 if C99 inttypes.h is not available.
9368 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9369 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9370 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9371 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9372 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9373 (struct output_info): Likewise.
9374 (print_statistics): Adjust.
9375 (dump_bitmap_statistics): Likewise.
9376 * bt-load.c (migrate_btr_defs): Print with PRId64.
9377 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9378 (MAX_SAFE_MULTIPLIER): Adjust.
9379 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9380 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9381 dump_cgraph_node): Likewise.
9382 * final.c (dump_basic_block_info): Likewise.
9383 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9384 * gcov.c (format_gcov): Likewise.
9385 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9386 for calculation.
9387 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9388 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9389 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9390 Use PRId64 for dumping.
9391 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9392 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9393 (add_allocno_hard_regs): Adjust.
9394 * loop-doloop.c (doloop_modify): Print using PRId64.
9395 * loop-iv.c (inverse): Compute in uint64_t.
9396 (determine_max_iter, iv_number_of_iterations): Likewise.
9397 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9398 Print using PRId64.
9399 * lto-streamer-out.c (write_symbol): Use uint64_t.
9400 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9401 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9402 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9403 * modulo-sched.c (const_iteration_count): Use int64_t.
9404 (sms_schedule): Dump using PRId64.
9405 * predict.c (dump_prediction): Likewise.
9406 * pretty-print.h (pp_widest_integer): Remove.
9407 * profile.c (get_working_sets, is_edge_inconsistent,
9408 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9409 * tree-pretty-print.c (pp_double_int): Remove case handling
9410 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9411 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9412 and adjust users.
9413 (pass_optimize_bswap::execute): Remove restriction on hosts.
9414 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9415 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9416 * tree.c (widest_int_cst_value): Remove.
9417 * tree.h (widest_int_cst_value): Likewise.
9418 * value-prof.c (dump_histogram_value): Print using PRId64.
9419 * gengtype.c (main): Also inject int64_t.
9420 * ggc-page.c (struct max_alignment): Use int64_t.
9421 * alloc-pool.c (struct allocation_object_def): Likewise.
9422 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9423 for computation.
9424 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9425 * doc/tm.texi: Regenerated.
9426 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9427 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9428 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9429 mmix_output_register_setting): Use [u]int64_t in prototypes.
9430 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9431 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9432 mmix_output_octa, mmix_output_shifted_value): Adjust.
9433 (mmix_intval): Adjust. Remove unreachable case.
9434 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9435
9436 2014-05-26 Richard Biener <rguenther@suse.de>
9437
9438 * configure.ac: Drop __int64 type check. Insist that we
9439 found uint64_t and int64_t.
9440 * hwint.h (HOST_BITS_PER___INT64): Remove.
9441 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9442 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9443 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9444 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9445 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9446 for dst_q_src_df_rms_cdt.
9447 * configure: Regenerate.
9448 * config.in: Likewise.
9449
9450 2014-05-26 Michael Tautschnig <mt@debian.org>
9451
9452 PR target/61249
9453 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9454 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9455
9456 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9457
9458 PR rtl-optimization/61278
9459 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9460
9461 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9462
9463 PR rtl-optimization/61220
9464 Part of PR rtl-optimization/61225
9465 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9466 insn; skip split_edge for a block with only one successor.
9467
9468 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9469
9470 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9471 for variables.
9472
9473 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9474
9475 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9476 (update_vtable_references): New function.
9477 (function_and_variable_visibility): Rewrite also vtable initializers.
9478 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9479
9480 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9481
9482 * ggc.h (ggc_grow): New function.
9483 * ggc-none.c (ggc_grow): New function.
9484 * ggc-page.c (ggc_grow): Likewise.
9485
9486 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9487
9488 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9489 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9490 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9491 varpool_externally_visible_p, can_replace_by_local_alias,
9492 update_visibility_by_resolution_info, function_and_variable_visibility,
9493 pass_data_ipa_function_and_variable_visibility,
9494 make_pass_ipa_function_and_variable_visibility,
9495 whole_program_function_and_variable_visibility,
9496 pass_data_ipa_whole_program_visibility,
9497 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9498 * cgraph.h (cgraph_local_node_p): Declare.
9499 * ipa-visibility.c: New file.
9500 * Makefile.in (OBJS): Add ipa-visiblity.o
9501
9502 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9503
9504 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9505 that var decl is available.
9506
9507 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9508
9509 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9510 symtab_node pointer.
9511 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9512 (find_decls_types_r): Do not walk COMDAT_GROUP.
9513 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9514 * varasm.c (make_decl_one_only): Use set_comdat_group;
9515 create node if needed.
9516 * ipa-inline-transform.c (save_inline_function_body): Update
9517 way we decl->symtab mapping.
9518 * symtab.c (symtab_hash, hash_node, eq_node
9519 symtab_insert_node_to_hashtable): Remove.
9520 (symtab_register_node): Update.
9521 (symtab_unregister_node): Update.
9522 (symtab_get_node): Reimplement as inline function.
9523 (symtab_add_to_same_comdat_group): Update.
9524 (symtab_dissolve_same_comdat_group_list): Update.
9525 (dump_symtab_base): Update.
9526 (verify_symtab_base): Update.
9527 (symtab_make_decl_local): Update.
9528 (fixup_same_cpp_alias_visibility): Update.
9529 (symtab_nonoverwritable_alias): Update.
9530 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9531 * ipa.c (update_visibility_by_resolution_info): UPdate.
9532 * bb-reorder.c: Include cgraph.h
9533 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9534 with comdat groups.
9535 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9536 * cgraph.c (cgraph_get_create_node): Update.
9537 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9538 and comdat_group_.
9539 (symtab_get_node): Make inline.
9540 (symtab_insert_node_to_hashtable): Remove.
9541 (symtab_can_be_discarded): Update.
9542 (decl_comdat_group): New function.
9543 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9544 Update.
9545 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9546 comdat group name.
9547 (read_comdat_group): New function.
9548 (input_node, input_varpool_node): Use it.
9549 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9550 comdat groups.
9551 * mips.c (mips_start_unique_function): Likewise.
9552 (ix86_code_end): Likewise.
9553 (rs6000_code_end): Likweise.
9554 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9555
9556 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9557
9558 * gengtype-state.c (fatal_reading_state): Bring offline.
9559 * optabs.c (widening_optab_handler): Bring offline.
9560 * optabs.h (widening_optab_handler): Likewise.
9561 * final.c (get_attr_length_1): Likewise.
9562
9563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9564
9565 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9566
9567 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9568
9569 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9570 (ppc440-compare): Include shift with dot.
9571 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9572 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9573 without dot.
9574 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9575 without dot.
9576 (e6500_sfx2): Include it.
9577 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9578 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9579 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9580 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9581 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9582 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9583 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9584 *lshiftrt_internal1le, *lshiftrt_internal1be,
9585 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9586 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9587 *rotldi3_internal10le, *rotldi3_internal10be,
9588 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9589 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9590 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9591 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9592 define_insns): Use type "shift" in the appropriate alternatives.
9593
9594 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9595
9596 * config/rs6000/rs6000.md (type): Add "logical". Delete
9597 "fast_compare".
9598 (dot): Adjust comment.
9599 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9600 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9601 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9602 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9603 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9604 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9605 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9606 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9607
9608 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9609 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9610 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9611 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9612 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9613 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9614 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9615 * config/rs6000/8540.md (ppc8540_su): Adjust.
9616 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9617 cell-cmp-microcoded): Adjust.
9618 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9619 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9620 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9621 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9622 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9623 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9624 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9625 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9626 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9627 Adjust.
9628 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9629 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9630 Adjust. Adjust comment.
9631 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9632 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9633
9634 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9635
9636 * config/rs6000/rs6000.md (type): Add "add".
9637 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9638 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9639 define_insns): Use it.
9640 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9641
9642 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9643 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9644 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9645 * config/rs6000/601.md (ppc601-integer): Adjust.
9646 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9647 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9648 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9649 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9650 * config/rs6000/8540.md (ppc8540_su): Adjust.
9651 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9652 cell-cmp-microcoded): Adjust.
9653 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9654 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9655 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9656 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9657 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9658 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9659 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9660 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9661 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9662 Adjust.
9663 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9664 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9665 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9666 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9667
9668 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9669
9670 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9671 "delayed_compare", "var_delayed_compare".
9672 (var_shift): New attribute.
9673 (cell_micro): Adjust.
9674 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9675 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9676 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9677 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9678 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9679 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9680 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9681 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9682 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9683 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9684 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9685 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9686 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9687 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9688 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9689 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9690 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9691 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9692 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9693 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9694 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9695 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9696 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9697 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9698 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9699
9700 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9701 * config/rs6000/440.md (ppc440-integer): Adjust.
9702 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9703 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9704 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9705 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9706 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9707 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9708 * config/rs6000/8540.md (ppc8540_su): Adjust.
9709 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9710 cell-cmp-microcoded): Adjust.
9711 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9712 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9713 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9714 e500mc64_delayed): Adjust.
9715 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9716 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9717 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9718 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9719 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9720 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9721 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9722 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9723 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9724 Adjust comment.
9725 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9726 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9727
9728 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9729
9730 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9731 (bits): New mode_attr.
9732 (idiv_ldiv): Delete mode_attr.
9733 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9734 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9735 rs6000_adjust_priority, is_nonpipeline_insn,
9736 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9737
9738 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9739 * config/rs6000/440.md (ppc440-idiv): Adjust.
9740 * config/rs6000/476.md (ppc476-idiv): Adjust.
9741 * config/rs6000/601.md (ppc601-idiv): Adjust.
9742 * config/rs6000/603.md (ppc603-idiv): Adjust.
9743 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9744 ppc620-ldiv): Adjust.
9745 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9746 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9747 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9748 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9749 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9750 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9751 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9752 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9753 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9754 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9755 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9756 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9757 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9758 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9759 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9760 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9761 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9762 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9763
9764 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9765
9766 * config/rs6000/rs6000.md (type): Delete "insert_word",
9767 "insert_dword". Add "insert".
9768 (size): Update comment.
9769 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9770 insn_must_be_first_in_group): Adjust.
9771 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9772 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9773 *insvsi_internal6, insvdi_internal): Adjust.
9774
9775 * config/rs6000/40x.md (ppc403-integer): Adjust.
9776 * config/rs6000/440.md (ppc440-integer): Adjust.
9777 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9778 * config/rs6000/601.md (ppc601-integer): Adjust.
9779 * config/rs6000/603.md (ppc603-integer): Adjust.
9780 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9781 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9782 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9783 * config/rs6000/8540.md (ppc8540_su): Adjust.
9784 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9785 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9786 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9787 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9788 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9789 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9790 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9791 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9792 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9793 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9794 * config/rs6000/power7.md (power7-integer): Adjust.
9795 * config/rs6000/power8.md (power8-1cyc): Adjust.
9796 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9797 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9798
9799 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9800
9801 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9802 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9803 (size): New attribute.
9804 (dot): New attribute.
9805 (cell_micro): Adjust.
9806 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9807 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9808 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9809 umuldi3_highpart): Adjust.
9810 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9811 rs6000_adjust_priority, is_nonpipeline_insn,
9812 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9813
9814 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9815 ppc405-imul3): Adjust.
9816 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9817 * config/rs6000/476.md (ppc476-imul): Adjust.
9818 * config/rs6000/601.md (ppc601-imul): Adjust.
9819 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9820 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9821 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9822 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9823 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9824 Adjust.
9825 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9826 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9827 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9828 cell-imul): Adjust.
9829 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9830 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9831 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9832 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9833 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9834 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9835 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9836 power4-lmul, power4-imul, power4-imul3): Adjust.
9837 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9838 power5-lmul, power5-imul, power5-imul3): Adjust.
9839 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9840 power6-lmul, power6-imul, power6-imul3): Adjust.
9841 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9842 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9843
9844 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9845 rs64a-lmul): Adjust.
9846 * config/rs6000/titan.md (titan_imul): Adjust.
9847
9848 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9849
9850 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9851 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9852 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9853 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9854 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9855 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9856 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9857 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9858 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9859 * config/rs6000/titan.md: Delete nonsensical comment.
9860 (titan_imul): Add type imul3.
9861 (titan_mulhw): Remove type imul3; add type halfmul.
9862
9863 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9864
9865 * config/rs6000/rs6000.md (type): Reorder, reformat.
9866
9867 2014-05-23 Martin Jambor <mjambor@suse.cz>
9868
9869 PR tree-optimization/53787
9870 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
9871 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
9872 analysis_done, update all uses.
9873 * ipa-prop.c: Include domwalk.h
9874 (param_analysis_info): Removed.
9875 (param_aa_status): New type.
9876 (ipa_bb_info): Likewise.
9877 (func_body_info): Likewise.
9878 (ipa_get_bb_info): New function.
9879 (aa_overwalked): Likewise.
9880 (find_dominating_aa_status): Likewise.
9881 (parm_bb_aa_status_for_bb): Likewise.
9882 (parm_preserved_before_stmt_p): Changed to use new param AA info.
9883 (load_from_unmodified_param): Accept func_body_info as a parameter
9884 instead of parms_ainfo.
9885 (parm_ref_data_preserved_p): Changed to use new param AA info.
9886 (parm_ref_data_pass_through_p): Likewise.
9887 (ipa_load_from_parm_agg_1): Likewise. Update callers.
9888 (compute_complex_assign_jump_func): Changed to use new param AA info.
9889 (compute_complex_ancestor_jump_func): Likewise.
9890 (ipa_compute_jump_functions_for_edge): Likewise.
9891 (ipa_compute_jump_functions): Removed.
9892 (ipa_compute_jump_functions_for_bb): New function.
9893 (ipa_analyze_indirect_call_uses): Likewise, moved variable
9894 declarations down.
9895 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
9896 and info, moved variable declarations down.
9897 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
9898 node and info.
9899 (ipa_analyze_stmt_uses): Likewise.
9900 (ipa_analyze_params_uses): Removed.
9901 (ipa_analyze_params_uses_in_bb): New function.
9902 (ipa_analyze_controlled_uses): Likewise.
9903 (free_ipa_bb_info): Likewise.
9904 (analysis_dom_walker): New class.
9905 (ipa_analyze_node): Handle node-specific forbidden analysis,
9906 initialize and free func_body_info, use dominator walker.
9907 (ipcp_modif_dom_walker): New class.
9908 (ipcp_transform_function): Create and free func_body_info, use
9909 ipcp_modif_dom_walker, moved a lot of functionality there.
9910
9911 2014-05-23 Marek Polacek <polacek@redhat.com>
9912 Jakub Jelinek <jakub@redhat.com>
9913
9914 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
9915 * gcc.c (sanitize_spec_function): Likewise.
9916 * convert.c (convert_to_integer): Include "ubsan.h". Add
9917 floating-point to integer instrumentation.
9918 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
9919 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
9920 SANITIZE_NONDEFAULT.
9921 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
9922 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
9923 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
9924 * ubsan.c: Include "realmpfr.h" and "dfp.h".
9925 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
9926 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
9927 float/double/long double.
9928 (ubsan_instrument_float_cast): New function.
9929 * ubsan.h (ubsan_instrument_float_cast): Declare.
9930
9931 2014-05-23 Jiong Wang <jiong.wang@arm.com>
9932
9933 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
9934 predicate.
9935 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
9936 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
9937 Adjust for tailcalling through registers.
9938 * config/aarch64/aarch64.h (enum reg_class): New caller save
9939 register class.
9940 (REG_CLASS_NAMES): Likewise.
9941 (REG_CLASS_CONTENTS): Likewise.
9942 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
9943 Allow tailcalling without decls.
9944
9945 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
9946
9947 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
9948 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
9949
9950 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
9951 gsi, and variables v_* to v*.
9952
9953 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
9954
9955 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
9956
9957 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
9958
9959 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
9960 * omp-low.c: Update accordingly.
9961
9962 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
9963 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
9964 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
9965 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
9966 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
9967 GF_OMP_TARGET_KIND_UPDATE.
9968
9969 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
9970 Explicitly enumerate the expected region types.
9971
9972 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
9973
9974 PR other/56955
9975 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
9976 documentation; the old documentation didn't clearly state the
9977 constraints on the contents of the pointed-to storage.
9978
9979 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9980
9981 Fix bootstrap error on ia64
9982 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
9983 Return default value.
9984
9985 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
9986
9987 PR tree-optimization/54733
9988 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
9989 (CMPNOP): Define.
9990 (find_bswap_or_nop_load): New.
9991 (find_bswap_1): Renamed to ...
9992 (find_bswap_or_nop_1): This. Also add support for memory source.
9993 (find_bswap): Renamed to ...
9994 (find_bswap_or_nop): This. Also add support for memory source and
9995 detection of bitwise operations equivalent to load in target
9996 endianness.
9997 (execute_optimize_bswap): Likewise. Also move its leading comment back
9998 in place and split statement transformation into ...
9999 (bswap_replace): This.
10000
10001 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10002
10003 PR rtl-optimization/61215
10004 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10005 simplify_gen_subreg until final substitution.
10006
10007 2014-05-23 Alan Modra <amodra@gmail.com>
10008
10009 PR target/61231
10010 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10011 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10012 Use "Y" constraint rather than "m".
10013
10014 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10015
10016 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10017 define.
10018 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10019 New function declaration.
10020 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10021 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10022 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10023 (aarch64_init_builtins) : Initialize builtins
10024 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10025 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10026 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10027 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10028 and __builtins_aarch64_set_fpsr.
10029 (aarch64_atomic_assign_expand_fenv): New function.
10030 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10031 (get_fpcr) : Likewise.
10032 (set_fpsr) : Likewise.
10033 (get_fpsr) : Likewise.
10034 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10035 and UNSPECV_SET_FPSR.
10036 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10037 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10038 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10039
10040 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10041
10042 PR rtl-optimization/60969
10043 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10044 constraints. Set up mem cost for NO_REGS case.
10045
10046 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10047
10048 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10049
10050 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10051
10052 * config/darwin.c: Include "lto-section-names.h".
10053 (LTO_SEGMENT_NAME): Don't define.
10054 * config/i386/winnt.c: Include "lto-section-names.h".
10055 * lto-streamer.c: Include "lto-section-names.h".
10056 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10057 * lto-wrapper.c: Include "lto-section-names.h".
10058 (LTO_SECTION_NAME_PREFIX): Don't define.
10059 * lto-section-names.h: New file.
10060 * cgraphunit.c: Include "lto-section-names.h".
10061
10062 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10063
10064 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10065
10066 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10067
10068 PR target/61208
10069 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10070
10071 2014-05-22 Nick Clifton <nickc@redhat.com>
10072
10073 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10074
10075 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10076
10077 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10078 -> (T)A transformation to integer types.
10079
10080 2014-05-22 Teresa Johnson <tejohnson@google.com>
10081
10082 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10083 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10084 (gcov_rewrite): Use gcov_nonruntime_assert.
10085 (gcov_open): Ditto.
10086 (gcov_write_words): Ditto.
10087 (gcov_write_length): Ditto.
10088 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10089 gcc_assert from IN_LIBGCOV code.
10090 (gcov_read_summary): Use gcov_error to flag profile corruption.
10091 (gcov_sync): Use gcov_nonruntime_assert.
10092 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10093 (gcov_histo_index): Use gcov_nonruntime_assert.
10094 (static void gcov_histogram_merge): Ditto.
10095 (compute_working_sets): Ditto.
10096 * gcov-io.h (gcov_nonruntime_assert): Define.
10097 (gcov_error): Define for !IN_LIBGCOV
10098
10099 2014-05-22 Richard Biener <rguenther@suse.de>
10100
10101 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10102 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10103 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10104 and deallocation site.
10105 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10106 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10107 passing through the incoming points-to set.
10108 (handle_lhs_call): Use flags argument instead of recomputing it.
10109 (find_func_aliases_for_call): Call handle_lhs_call with proper
10110 call return flags.
10111
10112 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10113
10114 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10115 all padding bits in REAL_VALUE_TYPE are cleared.
10116
10117 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10118
10119 Cleanup and improve multipass_dfa_lookahead_guard
10120 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10121 (core2i7_first_cycle_multipass_begin,)
10122 (core2i7_first_cycle_multipass_issue,)
10123 (core2i7_first_cycle_multipass_backtrack): Update signature.
10124 * config/ia64/ia64.c
10125 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10126 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10127 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10128 hook definition.
10129 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10130 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10131 values.
10132 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10133 return values.
10134 * doc/tm.texi: Regenerate.
10135 * doc/tm.texi.in
10136 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10137 * haifa-sched.c (ready_try): Make signed to allow negative values.
10138 (rebug_ready_list_1): Update.
10139 (choose_ready): Simplify.
10140 (sched_extend_ready_list): Update.
10141
10142 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10143
10144 Remove IA64 speculation tweaking flags
10145 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10146 speculation tuning flags.
10147 (msched-prefer-non-data-spec-insns,)
10148 (msched-prefer-non-control-spec-insns): Obsolete options.
10149 * haifa-sched.c (choose_ready): Remove handling of
10150 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10151 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10152 and PREFER_NON_DATA_SPEC.
10153 * sel-sched.c (process_spec_exprs): Remove handling of
10154 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10155
10156 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10157
10158 Improve scheduling debug output
10159 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10160 (advance_one_cycle): Update.
10161 (schedule_insn, queue_to_ready): Add debug printouts.
10162 (debug_ready_list_1): New static function.
10163 (debug_ready_list): Update.
10164 (max_issue): Add debug printouts.
10165 (dump_insn_stream): New static function.
10166 (schedule_block): Use it. Also better indent printouts.
10167
10168 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10169
10170 Fix sched_insn debug counter
10171 * haifa-sched.c (schedule_insn): Update.
10172 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10173 (save_backtrack_point, restore_backtrack_point): Update.
10174 (first_nonscheduled_insn): New static function.
10175 (queue_to_ready, choose_ready): Use it.
10176 (schedule_block): Init nonscheduled_insns_begin.
10177 (sched_emit_insn): Update.
10178
10179
10180 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10181
10182 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10183 to GENERAL_REGS.
10184 (aarch64_secondary_reload) : LikeWise.
10185 (aarch64_class_max_nregs) : Remove CORE_REGS.
10186 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10187 (REG_CLASS_NAMES) : Likewise.
10188 (REG_CLASS_CONTENTS) : LikeWise.
10189 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10190
10191 2014-05-21 Guozhi Wei <carrot@google.com>
10192
10193 PR target/61202
10194 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10195 constraint.
10196 (vqdmulhq_n_s16): Likewise.
10197
10198 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10199
10200 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10201
10202 2014-05-21 Marek Polacek <polacek@redhat.com>
10203
10204 PR sanitizer/61272
10205 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10206
10207 2014-05-21 Martin Jambor <mjambor@suse.cz>
10208
10209 * doc/invoke.texi (Optimize Options): Document parameters
10210 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10211 ipa-cp-array-index-hint-bonus.
10212
10213 2014-05-21 Mark Wielaard <mjw@redhat.com>
10214
10215 PR debug/16063
10216 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10217 version >= 3 or not strict DWARF.
10218 * langhooks.h (struct lang_hooks_for_types): Add
10219 enum_underlying_base_type.
10220 * langhooks.c (lhd_enum_underlying_base_type): New function.
10221 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10222 enum_underlying_base_type.
10223 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10224 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10225 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10226
10227 2014-05-21 Richard Biener <rguenther@suse.de>
10228
10229 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10230
10231 2014-05-21 John Marino <gnugcc@marino.st>
10232
10233 * config.gcc (*-*-dragonfly*): New target.
10234 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10235 * configure: Regenerate.
10236 * config/dragonfly-stdint.h: New.
10237 * config/dragonfly.h: New.
10238 * config/dragonfly.opt: New.
10239 * config/i386/dragonfly.h: New.
10240 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10241
10242 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10243
10244 * tree.def (VOID_CST): New.
10245 * tree-core.h (TI_VOID): New.
10246 * tree.h (void_node): New.
10247 * tree.c (tree_node_structure_for_code, tree_code_size)
10248 (iterative_hash_expr): Handle VOID_CST.
10249 (build_common_tree_nodes): Initialize void_node.
10250
10251 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10252
10253 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10254 functions.
10255 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10256
10257 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10258 more places.
10259
10260 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10261 flag_reorder_blocks_and_partition.
10262 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10263
10264 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10265
10266 PR target/54236
10267 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10268 constraints.
10269 (*addc_r_t): Add new insn_and_split.
10270
10271 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10272
10273 PR middle-end/61252
10274 * omp-low.c (handle_simd_reference): New function.
10275 (lower_rec_input_clauses): Use it. Defer adding reference
10276 initialization even for reduction without placeholder if in simd,
10277 handle it properly later on.
10278
10279 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10280
10281 PR tree-optimization/60899
10282 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10283 assume all static symbols will have definition wile parsing and
10284 check the do have definition later in compilation; check that
10285 variable referring symbol will be output before concluding that
10286 reference is safe; be conservative for referring local statics;
10287 be more precise about when comdat is output in other partition.
10288
10289 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10290
10291 PR bootstrap/60984
10292 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10293 parameter.
10294 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10295 (ipa_inline): Loop inline_to_all_callers until no more aliases
10296 are removed.
10297
10298 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10299
10300 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10301 set writeonly flag only for vars actually written to.
10302
10303 2014-05-20 Dehao Chen <dehao@google.com>
10304
10305 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10306 and callee count to get clone count.
10307 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10308 count in copy_body.
10309
10310 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10311
10312 PR rtl-optimization/61243
10313 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10314
10315 2014-05-20 Xinliang David Li <davidxl@google.com>
10316
10317 * cgraphunit.c (walk_polymorphic_call_targets): Add
10318 dbgcnt and fopt-info support.
10319 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10320 * ipa-devirt.c (ipa_devirt): Ditto.
10321 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10322 * ipa.c (walk_polymorphic_call_targets): Ditto.
10323 * gimple-fold.c (fold_gimple_assign): Ditto.
10324 (gimple_fold_call): Ditto.
10325 * dbgcnt.def: New counter.
10326
10327 2014-05-20 DJ Delorie <dj@redhat.com>
10328
10329 * config/msp430/msp430.md (split): Don't allow subregs when
10330 splitting SImode adds.
10331 (andneghi): Fix subtraction logic.
10332 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10333
10334 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10335
10336 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10337 symbols.
10338 * except.c (switch_to_exception_section, resolve_unique_section,
10339 get_named_text_section, default_function_rodata_section,
10340 align_variable, get_block_for_decl, default_section_type_flags):
10341 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10342 * symtab.c (symtab_add_to_same_comdat_group,
10343 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10344 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10345 Likewise.
10346 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10347 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10348 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10349 (c6x_function_in_section_p): Likewise.
10350 * config/darwin.c (machopic_select_section): Likewise.
10351 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10352 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10353 * config/mep/mep.c (mep_select_section): LIkewise.
10354 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10355
10356 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10357
10358 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10359 EH region of calls to pure functions that can throw an exception.
10360 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10361 (copy_reference_ops_from_call): Also copy the EH region of the call if
10362 it can throw an exception.
10363
10364 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10365
10366 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10367 nested VEC_SELECTs that are inverses of each other.
10368
10369 2014-05-20 Richard Biener <rguenther@suse.de>
10370
10371 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10372 (extract_and_process_scc_for_name): not here.
10373 (cond_dom_walker::before_dom_children): Only process
10374 stmts that end the BB in interesting ways.
10375 (run_scc_vn): Mark param uses as visited.
10376
10377 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10378
10379 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10380 arm_restrict_it.
10381
10382 2014-05-20 Nick Clifton <nickc@redhat.com>
10383
10384 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10385 (msp430_gimplify_va_arg_expr): New function.
10386 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10387
10388 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10389 operand 0 in order to prevent confusion about the number of
10390 registers involved.
10391
10392 2014-05-20 Richard Biener <rguenther@suse.de>
10393
10394 PR tree-optimization/61221
10395 * tree-ssa-pre.c (el_to_update): Remove.
10396 (eliminate_dom_walker::before_dom_children): Handle released
10397 VDEFs by value-numbering them to the associated VUSE. Update
10398 stmt immediately for substituted call address.
10399 (eliminate): Remove delayed stmt updating code.
10400 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10401 possibly late re-numbered vuses.
10402 (vn_reference_lookup_2): Adjust.
10403 (vn_reference_lookup_pieces): Likewise.
10404 (vn_reference_lookup): Likewise.
10405
10406 2014-05-20 Richard Biener <rguenther@suse.de>
10407
10408 * config.gcc: Remove need_64bit_hwint.
10409 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10410 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10411 it to be true.
10412 * config.in: Regenerate.
10413 * configure: Likewise.
10414
10415 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10416
10417 * doc/extend.texi: Create Label Attributes section,
10418 move all label attributes into it and reference it.
10419
10420 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10421
10422 * arm.c (thumb1_reorg): When scanning backwards skip anything
10423 that's not a proper insn.
10424
10425 2014-05-19 Richard Biener <rguenther@suse.de>
10426
10427 PR tree-optimization/61221
10428 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10429 Do nothing for unreachable blocks.
10430 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10431 Improve unreachability detection.
10432
10433 2014-05-19 Richard Biener <rguenther@suse.de>
10434
10435 PR tree-optimization/61209
10436 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10437
10438 2014-05-19 Nick Clifton <nickc@redhat.com>
10439
10440 * except.c (init_eh): Fix computation of builtin setjmp buffer
10441 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10442
10443 2014-05-19 Richard Biener <rguenther@suse.de>
10444
10445 PR tree-optimization/61184
10446 * tree-vrp.c (is_negative_overflow_infinity): Use
10447 TREE_OVERFLOW_P and do that check first.
10448 (is_positive_overflow_infinity): Likewise.
10449 (is_overflow_infinity): Likewise.
10450 (vrp_operand_equal_p): Properly treat operands with
10451 differing overflow as not equal.
10452
10453 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10454
10455 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10456 shift simplification where it was intended.
10457
10458 2014-05-19 Christian Bruel <christian.bruel@st.com>
10459
10460 PR target/61195
10461 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10462
10463 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10464
10465 PR target/61084
10466 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10467 than wide_int.
10468
10469 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10470
10471 * reg-notes.def (CROSSING_JUMP): Likewise.
10472 * rtl.h (rtx_def): Update comment for jump flag.
10473 (CROSSING_JUMP_P): Define.
10474 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10475 of a REG_CROSSING_JUMP note.
10476 * cfghooks.c (tidy_fallthru_edges): Likewise.
10477 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10478 * emit-rtl.c (try_split): Likewise.
10479 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10480 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10481 * jump.c (redirect_jump_2): Likewise.
10482 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10483 (relax_delay_slots): Likewise.
10484 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10485 (bbit_di): Likewise.
10486 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10487 * config/sh/sh.md (jump_compact): Likewise.
10488 * bb-reorder.c (rotate_loop): Likewise.
10489 (pass_duplicate_computed_gotos::execute): Likewise.
10490 (add_reg_crossing_jump_notes): Rename to...
10491 (update_crossing_jump_flags): ...this.
10492 (pass_partition_blocks::execute): Update accordingly.
10493
10494 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10495
10496 * tree.h: Remove extraneous template <>.
10497
10498 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10499
10500 * ipa.c (symtab_remove_unreachable_nodes): Remove
10501 symbol from comdat group if its body was eliminated.
10502 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10503 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10504 (symtab_unregister_node): ... this one.
10505 (verify_symtab_base): More strict checking of comdats.
10506 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10507
10508 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10509
10510 * tree-pass.h (make_pass_ipa_comdats): New pass.
10511 * timevar.def (TV_IPA_COMDATS): New timevar.
10512 * passes.def (pass_ipa_comdats): Add.
10513 * Makefile.in (OBJS): Add ipa-comdats.o
10514 * ipa-comdats.c: New file.
10515
10516 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10517
10518 * ipa.c (update_visibility_by_resolution_info): New function.
10519 (function_and_variable_visibility): Use it.
10520
10521 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10522
10523 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10524 New functions.
10525 (FOR_EACH_DEFINED_SYMBOL): New macro.
10526 (varpool_first_static_initializer, varpool_next_static_initializer,
10527 varpool_first_defined_variable, varpool_next_defined_variable):
10528 Fix comments.
10529 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10530
10531 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10532
10533 * ggc-page.c (ggc_handle_finalizers): Add comment.
10534
10535 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10536
10537 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10538 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10539 (ggc_internal_cleared_alloc): Likewise.
10540 * ggc-page.c (finalizer): New class.
10541 (vec_finalizer): Likewise.
10542 (globals::finalizers): New member.
10543 (globals::vec_finalizers): Likewise.
10544 (ggc_internal_alloc): Record the finalizer if any for the block being
10545 allocated.
10546 (ggc_handle_finalizers): New function.
10547 (ggc_collect): Call ggc_handle_finalizers.
10548 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10549 finalizer.
10550 (ggc_internal_cleared_alloc): Likewise.
10551 (finalize): New function.
10552 (need_finalization_p): Likewise.
10553 (ggc_alloc): Install the type's destructor as the finalizer if it
10554 might do something.
10555 (ggc_cleared_alloc): Likewise.
10556 (ggc_vec_alloc): Likewise.
10557 (ggc_cleared_vec_alloc): Likewise.
10558
10559 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10560
10561 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10562
10563 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10564
10565 * alias.c (record_alias_subset): Adjust.
10566 * bitmap.c (bitmap_element_allocate): Likewise.
10567 (bitmap_gc_alloc_stat): Likewise.
10568 * cfg.c (init_flow): Likewise.
10569 (alloc_block): Likewise.
10570 (unchecked_make_edge): Likewise.
10571 * cfgloop.c (alloc_loop): Likewise.
10572 (flow_loops_find): Likewise.
10573 (rescan_loop_exit): Likewise.
10574 * cfgrtl.c (init_rtl_bb_info): Likewise.
10575 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10576 (cgraph_allocate_node): Likewise.
10577 (cgraph_create_edge_1): Likewise.
10578 (cgraph_allocate_init_indirect_info): Likewise.
10579 * cgraphclones.c (cgraph_clone_edge): Likewise.
10580 * cgraphunit.c (add_asm_node): Likewise.
10581 (init_lowered_empty_function): Likewise.
10582 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10583 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10584 (alpha_use_linkage): Likewise.
10585 * config/arc/arc.c (arc_init_machine_status): Likewise.
10586 * config/arm/arm.c (arm_init_machine_status): Likewise.
10587 * config/avr/avr.c (avr_init_machine_status): Likewise.
10588 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10589 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10590 * config/cris/cris.c (cris_init_machine_status): Likewise.
10591 * config/darwin.c (machopic_indirection_name): Likewise.
10592 (darwin_build_constant_cfstring): Likewise.
10593 (darwin_enter_string_into_cfstring_table): Likewise.
10594 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10595 * config/frv/frv.c (frv_init_machine_status): Likewise.
10596 * config/i386/i386.c (get_dllimport_decl): Likewise.
10597 (ix86_init_machine_status): Likewise.
10598 (assign_386_stack_local): Likewise.
10599 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10600 (i386_pe_maybe_record_exported_symbol): Likewise.
10601 (i386_pe_record_stub): Likewise.
10602 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10603 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10604 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10605 (m32c_note_pragma_address): Likewise.
10606 * config/mep/mep.c (mep_init_machine_status): Likewise.
10607 (mep_note_pragma_flag): Likewise.
10608 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10609 (mips16_local_alias): Likewise.
10610 (mips_init_machine_status): Likewise.
10611 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10612 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10613 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10614 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10615 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10616 * config/pa/pa.c (pa_init_machine_status): Likewise.
10617 (pa_get_deferred_plabel): Likewise.
10618 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10619 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10620 (rs6000_init_machine_status): Likewise.
10621 (output_toc): Likewise.
10622 * config/s390/s390.c (s390_init_machine_status): Likewise.
10623 * config/score/score.c (score_output_external): Likewise.
10624 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10625 * config/spu/spu.c (spu_init_machine_status): Likewise.
10626 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10627 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10628 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10629 * coverage.c (coverage_end_function): Likewise.
10630 * dbxout.c (dbxout_init): Likewise.
10631 * doc/gty.texi: Don't mention variable_size attribute.
10632 * dwarf2cfi.c (new_cfi): Adjust.
10633 (new_cfi_row): Likewise.
10634 (copy_cfi_row): Likewise.
10635 (create_cie_data): Likewise.
10636 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10637 (new_loc_descr): Likewise.
10638 (find_AT_string_in_table): Likewise.
10639 (add_addr_table_entry): Likewise.
10640 (new_die): Likewise.
10641 (add_var_loc_to_decl): Likewise.
10642 (clone_die): Likewise.
10643 (clone_as_declaration): Likewise.
10644 (break_out_comdat_types): Likewise.
10645 (new_loc_list): Likewise.
10646 (add_loc_descr_to_each): Likewise.
10647 (add_location_or_const_value_attribute): Likewise.
10648 (add_linkage_name): Likewise.
10649 (lookup_filename): Likewise.
10650 (dwarf2out_var_location): Likewise.
10651 (new_line_info_table): Likewise.
10652 (dwarf2out_init): Likewise.
10653 (mem_loc_descriptor): Likewise.
10654 (loc_descriptor): Likewise.
10655 (add_const_value_attribute): Likewise.
10656 (tree_add_const_value_attribute): Likewise.
10657 (comp_dir_string): Likewise.
10658 (dwarf2out_vms_debug_main_pointer): Likewise.
10659 (string_cst_pool_decl): Likewise.
10660 * emit-rtl.c (set_mem_attrs): Likewise.
10661 (get_reg_attrs): Likewise.
10662 (start_sequence): Likewise.
10663 (init_emit): Likewise.
10664 (init_emit_regs): Likewise.
10665 * except.c (init_eh_for_function): Likewise.
10666 (gen_eh_region): Likewise.
10667 (gen_eh_region_catch): Likewise.
10668 (gen_eh_landing_pad): Likewise.
10669 (add_call_site): Likewise.
10670 * function.c (add_frame_space): Likewise.
10671 (insert_temp_slot_address): Likewise.
10672 (assign_stack_temp_for_type): Likewise.
10673 (get_hard_reg_initial_val): Likewise.
10674 (allocate_struct_function): Likewise.
10675 (prepare_function_start): Likewise.
10676 (types_used_by_var_decl_insert): Likewise.
10677 * gengtype.c (variable_size_p): Remove function.
10678 (enum alloc_quantity): Remove enum.
10679 (write_typed_alloc_def): Remove function.
10680 (write_typed_struct_alloc_def): Likewise.
10681 (write_typed_typedef_alloc_def): Likewise.
10682 (write_typed_alloc_defns): Likewise.
10683 (main): Adjust.
10684 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10685 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10686 * ggc.h (ggc_alloc): new function.
10687 (ggc_cleared_alloc): Likewise.
10688 (ggc_vec_alloc): Template on type of vector element, and remove
10689 element size argument.
10690 (ggc_cleared_vec_alloc): Likewise.
10691 * gimple.c (gimple_build_omp_for): Adjust.
10692 (gimple_copy): Likewise.
10693 * ipa-cp.c (get_replacement_map): Likewise.
10694 (find_aggregate_values_for_callers_subset): Likewise.
10695 (known_aggs_to_agg_replacement_list): Likewise.
10696 * ipa-devirt.c (get_odr_type): Likewise.
10697 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10698 (read_agg_replacement_chain): Likewise.
10699 * loop-iv.c (get_simple_loop_desc): Likewise.
10700 * lto-cgraph.c (input_node_opt_summary): Likewise.
10701 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10702 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10703 (input_eh_region): Likewise.
10704 (input_eh_lp): Likewise.
10705 (input_cfg): Likewise.
10706 * optabs.c (set_optab_libfunc): Likewise.
10707 (init_tree_optimization_optabs): Likewise.
10708 (set_conv_libfunc): Likewise.
10709 * passes.c (do_per_function_toporder): Likewise.
10710 * rtl.h: Don't use variable_size gty attribute.
10711 * sese.c (if_region_set_false_region): Adjust.
10712 * stringpool.c (gt_pch_save_stringpool): Likewise.
10713 * target-globals.c (save_target_globals): Likewise.
10714 * toplev.c (general_init): Likewise.
10715 * trans-mem.c (record_tm_replacement): Likewise.
10716 (split_bb_make_tm_edge): Likewise.
10717 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10718 * tree-data-ref.h (lambda_vector_new): Likewise.
10719 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10720 * tree-iterator.c (tsi_link_before): Likewise.
10721 (tsi_link_after): Likewise.
10722 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10723 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10724 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10725 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10726 * tree-ssa.c (init_tree_ssa): Adjust.
10727 * tree-ssanames.c (set_range_info): Likewise.
10728 (get_ptr_info): Likewise.
10729 (duplicate_ssa_name_ptr_info): Likewise.
10730 (duplicate_ssa_name_range_info): Likewise.
10731 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10732 (unpack_ts_fixed_cst_value_fields): Likewise.
10733 * tree.c (build_fixed): Likewise.
10734 (build_real): Likewise.
10735 (build_string): Likewise.
10736 (decl_priority_info): Likewise.
10737 (decl_debug_expr_insert): Likewise.
10738 (decl_value_expr_insert): Likewise.
10739 (decl_debug_args_insert): Likewise.
10740 (type_hash_add): Likewise.
10741 (build_omp_clause): Likewise.
10742 * ubsan.c (decl_for_type_insert): Likewise.
10743 * varasm.c (get_unnamed_section): Likewise.
10744 (get_noswitch_section): Likewise.
10745 (get_section): Likewise.
10746 (get_block_for_section): Likewise.
10747 (create_block_symbol): Likewise.
10748 (build_constant_desc): Likewise.
10749 (create_constant_pool): Likewise.
10750 (force_const_mem): Likewise.
10751 (record_tm_clone_pair): Likewise.
10752 * varpool.c (varpool_create_empty_node): Likewise.
10753
10754 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10755
10756 * dwarf2out.c (tree_add_const_value_attribute): Call
10757 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10758 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10759 instead of ggc_internal_<x>alloc_stat.
10760 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10761 (ggc_realloc): Likewise.
10762 * ggc-none.c (ggc_internal_alloc): Likewise.
10763 (ggc_internal_cleared_alloc): Likewise.
10764 * ggc-page.c: Likewise.
10765 * ggc.h (ggc_internal_alloc_stat): Likewise.
10766 (ggc_internal_alloc): Remove macro.
10767 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10768 (ggc_internal_cleared_alloc): Remove macro.
10769 (GGC_RESIZEVEC): Adjust.
10770 (ggc_resizevar): Remove macro.
10771 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10772 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10773 (ggc_internal_vec_cleared_alloc): Remove macro.
10774 (ggc_alloc_atomic_stat): Drop _stat suffix.
10775 (ggc_alloc_atomic): Remove macro.
10776 (ggc_alloc_cleared_atomic): Remove macro.
10777 (ggc_alloc_string_stat): Drop _stat suffix.
10778 (ggc_alloc_string): Remove macro.
10779 (ggc_alloc_rtx_def_stat): Adjust.
10780 (ggc_alloc_tree_node_stat): Likewise.
10781 (ggc_alloc_cleared_tree_node_stat): Likewise.
10782 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10783 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10784 * gimple.c (gimple_build_omp_for): Likewise.
10785 (gimple_copy): Likewise.
10786 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10787 * toplev.c (realloc_for_line_map): Adjust.
10788 * tree-data-ref.h (lambda_vector_new): Likewise.
10789 * tree-phinodes.c (allocate_phi_node): Likewise.
10790 * tree.c (grow_tree_vec_stat): Likewise.
10791 * vec.h (va_gc::reserve): Adjust.
10792
10793 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10794
10795 * config/microblaze/microblaze.c (break_handler): New Declaration.
10796 (microblaze_break_function_p,microblaze_is_break_handler): New.
10797 (compute_frame_size): Use microblaze_break_function_p.
10798 Add the test of break_handler.
10799 (microblaze_function_prologue) : Add the test of variable
10800 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10801 (microblaze_function_epilogue) : Add the test of break_handler.
10802 (microblaze_globalize_label) : Add the test of break_handler.
10803 Check the name by BREAK_HANDLER_NAME.
10804
10805 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10806
10807 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10808 microblaze_is_break_handler test.
10809 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10810 Use SYMBOL_REF_DECL.
10811
10812 * config/microblaze/microblaze-protos.h
10813 (microblaze_break_function_p,microblaze_is_break_handler):
10814 New Declaration.
10815
10816 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10817 new MicroBlaze break_handler functions.
10818
10819 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10820
10821 * doc/extend.texi (Size of an asm): Move node text according
10822 to its @menu entry position.
10823
10824 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10825
10826 PR tree-optimization/61140
10827 PR tree-optimization/61150
10828 PR tree-optimization/61197
10829 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10830
10831 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10832
10833 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10834
10835 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10836
10837 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10838 __SIZEOF_INT128__ is defined.
10839
10840 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10841
10842 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10843 (rs6000_delegitimize_address): Use it.
10844
10845 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10846
10847 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10848 inplace argument. Store the new address in the original MEM when true.
10849 * emit-rtl.c (change_address_1): Likewise.
10850 (adjust_address_1, adjust_automodify_address_1, offset_address):
10851 Update accordingly.
10852 * rtl.h (plus_constant): Add an inplace argument.
10853 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10854 when true. Avoid generating (plus X (const_int 0)).
10855 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10856 in-place. Pass true to plus_constant.
10857 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10858
10859 2014-05-16 Dehao Chen <dehao@google.com>
10860
10861 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10862
10863 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10864
10865 PR target/54089
10866 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
10867 patterns.
10868 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
10869
10870 2014-05-16 Dehao Chen <dehao@google.com>
10871
10872 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
10873 optimize_function_for_size_p.
10874 * regs.h (REG_FREQ_FROM_BB): Likewise.
10875
10876 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10877
10878 PR target/51244
10879 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
10880 negt_reg_operand cases.
10881 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
10882 predicate.
10883 * config/sh/predicates.md (cbranch_treg_value): Simplify.
10884
10885 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10886
10887 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
10888 target variants.
10889
10890 2014-05-16 David Malcolm <dmalcolm@redhat.com>
10891
10892 Revert:
10893 2014-04-29 David Malcolm <dmalcolm@redhat.com>
10894
10895 * tree-cfg.c (dump_function_to_file): Dump the return type of
10896 functions, in a line to itself before the function body, mimicking
10897 the layout of a C function.
10898
10899 2014-05-16 Dehao Chen <dehao@google.com>
10900
10901 * cfghooks.c (make_forwarder_block): Use direct computation to
10902 get fall-through edge's count and frequency.
10903
10904 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
10905
10906 * config/arc/arc.c (arc_init): Fix typo in error message.
10907 * config/i386/i386.c (ix86_expand_builtin): Likewise.
10908 (split_stack_prologue_scratch_regno): Likewise.
10909 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
10910 word from error message.
10911
10912 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10913
10914 * ira-costs.c: Fix typo in comment.
10915
10916 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
10917
10918 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
10919
10920 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
10921
10922 * varpool.c (dump_varpool_node): Dump write-only flag.
10923 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
10924 write-only flag.
10925 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
10926 write-only variables.
10927 * ipa.c (process_references): New function.
10928 (set_readonly_bit): New function.
10929 (set_writeonly_bit): New function.
10930 (clear_addressable_bit): New function.
10931 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
10932 fix handling of aliases.
10933 * cgraph.h (struct varpool_node): Add writeonly flag.
10934
10935 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
10936
10937 PR rtl-optimization/60969
10938 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
10939 Calculate costs for this case.
10940
10941 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
10942
10943 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
10944 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
10945
10946 2014-05-16 Richard Biener <rguenther@suse.de>
10947
10948 PR tree-optimization/61194
10949 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
10950 bool patterns ending in a COND_EXPR.
10951
10952 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10953
10954 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
10955
10956 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10957
10958 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
10959 where we were unable to cost an RTX.
10960
10961 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10962
10963 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
10964 HIGH, LO_SUM.
10965
10966 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10967 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10968
10969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
10970
10971 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10972 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10973
10974 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
10975 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
10976
10977 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10978 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10979
10980 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
10981 operators.
10982
10983 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10984 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10985
10986 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
10987 DIV/MOD.
10988
10989 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10990 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10991
10992 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
10993 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
10994
10995 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10996 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10997
10998 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
10999 rotates and shifts.
11000
11001 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11002 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11003
11004 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11005 ZERO_EXTEND and SIGN_EXTEND better.
11006
11007 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11008 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11009
11010 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11011 logical operations.
11012
11013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11015
11016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11017 costs when costing loads and stores to memory.
11018
11019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11020 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11021
11022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11023 for SET RTX.
11024
11025 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11026
11027 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11028
11029 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11030 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11031
11032 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11033 to...
11034 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11035 well formed.
11036 (aarch64_rtx_mult_cost): New.
11037 (aarch64_rtx_costs): Use it, refactor as appropriate.
11038
11039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11040 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11041
11042 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11043 emit instructions, return number of instructions which would
11044 be emitted.
11045 (aarch64_add_constant): Update call to aarch64_build_constant.
11046 (aarch64_output_mi_thunk): Likewise.
11047 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11048 a CONST_DOUBLE.
11049
11050 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11051
11052 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11053 (TARGET_RTX_COSTS): Call it.
11054
11055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11056
11057 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11058 (cortexa57_vector_cost): Likewise.
11059 (cortexa57_tunings): Use them.
11060
11061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11062
11063 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11064 (cpu_addrcost_table): Use it.
11065 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11066 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11067 move it.
11068
11069 2014-05-16 Richard Biener <rguenther@suse.de>
11070
11071 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11072 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11073 (visit_phi): Ignore edges marked as not executable.
11074 (class cond_dom_walker): New.
11075 (cond_dom_walker::before_dom_children): Value-number
11076 control statements and mark successor edges as not
11077 executable if possible.
11078 (run_scc_vn): First walk all control statements in
11079 dominator order, marking edges as not executable.
11080 * tree-inline.c (copy_edges_for_bb): Be not confused
11081 about random edge flags.
11082
11083 2014-05-16 Richard Biener <rguenther@suse.de>
11084
11085 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11086
11087 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11088
11089 PR target/61193
11090 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11091 (__TM_simple_begin): Use it.
11092 (__TM_begin): Likewise.
11093
11094 2014-05-15 Martin Jambor <mjambor@suse.cz>
11095
11096 PR ipa/61085
11097 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11098 type_preserved flag when the indirect edge is polymorphic.
11099
11100 2014-05-15 Martin Jambor <mjambor@suse.cz>
11101
11102 PR tree-optimization/61090
11103 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11104 build_ref_for_model.
11105
11106 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11107
11108 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11109 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11110
11111 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11112
11113 PR tree-optimization/61158
11114 * fold-const.c (fold_binary_loc): If X is zero-extended and
11115 shiftc >= prec, make sure zerobits is all ones instead of
11116 invoking undefined behavior.
11117
11118 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11119
11120 * regcprop.h: New file.
11121 * regcprop.c (skip_debug_insn_p): New decl.
11122 (replace_oldest_value_reg): Check skip_debug_insn_p.
11123 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11124 * shrink-wrap.c: Include regcprop.h.
11125 (prepare_shrink_wrap): Call
11126 copyprop_hardreg_forward_bb_without_debug_insn.
11127
11128 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11129
11130 * shrink-wrap.h: Update comment.
11131 * shrink-wrap.c: Update comment.
11132 (next_block_for_reg): Rename to live_edge_for_reg.
11133 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11134 (move_insn_for_shrink_wrap): Split live_edge.
11135 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11136
11137 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11138
11139 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11140 Delete.
11141 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11142 * config/sparc/sparc.md (fptype_ut699): New attribute.
11143 (in_branch_delay): Return false if -mfix-ut699 is specified and
11144 fptype_ut699 is set to single.
11145 (truncdfsf2): Add fptype_ut699 attribute.
11146 (fix_truncdfsi2): Likewise.
11147 (floatsisf2): Change fptype attribute.
11148 (fix_truncsfsi2): Likewise.
11149 (negtf2_notv9): Delete.
11150 (negtf2_v9): Likewise.
11151 (negtf2_hq): New instruction.
11152 (negtf2): New instruction and splitter.
11153 (negdf2_notv9): Rewrite.
11154 (abstf2_notv9): Delete.
11155 (abstf2_hq_v9): Likewise.
11156 (abstf2_v9): Likewise.
11157 (abstf2_hq): New instruction.
11158 (abstf2): New instruction and splitter.
11159 (absdf2_notv9): Rewrite.
11160
11161 2014-05-14 Cary Coutant <ccoutant@google.com>
11162
11163 PR debug/61013
11164 * opts.c (common_handle_option): Don't special-case "-g".
11165 (set_debug_level): Default to at least level 2 with "-g".
11166
11167 2014-05-14 DJ Delorie <dj@redhat.com>
11168
11169 * config/msp430/msp430.c (msp430_builtin): Add
11170 MSP430_BUILTIN_DELAY_CYCLES.
11171 (msp430_init_builtins): Register void __delay_cycles(long long).
11172 (msp430_builtin_decl): Add it.
11173 (cg_magic_constant): New.
11174 (msp430_expand_delay_cycles): New.
11175 (msp430_expand_builtin): Call it.
11176 (msp430_print_operand_raw): Change integer printing from "int" to
11177 HOST_WIDE_INT.
11178 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11179 (delay_cycles_start): New.
11180 (delay_cycles_end): New.
11181 (delay_cycles_32): New.
11182 (delay_cycles_32x): New.
11183 (delay_cycles_16): New.
11184 (delay_cycles_16x): New.
11185 (delay_cycles_2): New.
11186 (delay_cycles_1): New.
11187 * doc/extend.texi: Document __delay_cycles().
11188
11189 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11190
11191 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11192 length attribute computation.
11193
11194 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11195
11196 PR debug/61188
11197 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11198
11199 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11200
11201 PR target/61084
11202 * config/sparc/sparc.md: Fix types of low and high in DI constant
11203 splitter. Use gen_int_mode in some other splitters.
11204
11205 2014-05-14 Martin Jambor <mjambor@suse.cz>
11206
11207 PR ipa/60897
11208 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11209
11210 2014-05-14 James Norris <jnorris@codesourcery.com>
11211
11212 * omp-low.c (expand_parallel_call): Remove shadow variable.
11213 (expand_omp_taskreg): Likewise.
11214
11215 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11216
11217 * common/config/i386/i386-common.c
11218 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11219 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11220 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11221 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11222 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11223 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11224 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11225 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11226 xsavecintrin.h, xsavesintrin.h.
11227 (x86_64-*-*): Ditto.
11228 * config/i386/clflushoptintrin.h: New.
11229 * config/i386/xsavecintrin.h: Ditto.
11230 * config/i386/xsavesintrin.h: Ditto.
11231 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11232 (bit_XSAVES): Ditto.
11233 (bit_XSAVES): Ditto.
11234 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11235 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11236 -mno-clflushopt.
11237 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11238 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11239 OPTION_MASK_ISA_XSAVES.
11240 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11241 -mxsavec, -mxsaves.
11242 (PTA_CLFLUSHOPT) Define.
11243 (PTA_XSAVEC): Ditto.
11244 (PTA_XSAVES): Ditto.
11245 (ix86_option_override_internal): Handle new options.
11246 (ix86_valid_target_attribute_inner_p): Ditto.
11247 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11248 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11249 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11250 (bdesc_special_args): Add __builtin_ia32_xsaves,
11251 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11252 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11253 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11254 (ix86_expand_builtin): Handle new builtins.
11255 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11256 (TARGET_CLFLUSHOPT_P): Ditto.
11257 (TARGET_XSAVEC): Ditto.
11258 (TARGET_XSAVEC_P): Ditto.
11259 (TARGET_XSAVES): Ditto.
11260 (TARGET_XSAVES_P): Ditto.
11261 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11262 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11263 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11264 (ANY_XRSTOR): New.
11265 (ANY_XRSTOR64): Ditto.
11266 (xrstor): Ditto.
11267 (xrstor): Change into <xrstor>.
11268 (xrstor_rex64): Change into <xrstor>_rex64.
11269 (xrstor64): Change into <xrstor>64
11270 (clflushopt): New.
11271 * config/i386/i386.opt (mclflushopt): New.
11272 (mxsavec): Ditto.
11273 (mxsaves): Ditto.
11274 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11275 xsavecintrin.h.
11276 * doc/invoke.texi: Document new options.
11277
11278 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11279
11280 PR rtl-optimization/60866
11281 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11282 Default it to -1. Pass it down to init_simplejump_data.
11283 (init_simplejump_data): New parameter old_seqno. Pass it down
11284 to get_seqno_for_a_jump.
11285 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11286 initializing new jump seqno as a last resort. Add comment.
11287 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11288 jump and pass it down to sel_init_new_insn.
11289 (sel_redirect_edge_and_branch_force): Likewise.
11290
11291 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11292
11293 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11294 shifted values to avoid build warning.
11295
11296 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11297
11298 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11299 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11300 (cfg_layout_merge_blocks): Likewise.
11301 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11302
11303 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11304
11305 PR rtl-optimization/60901
11306 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11307 bb predecessor belongs to the same scheduling region. Adjust comment.
11308
11309 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11310
11311 * doc/sourcebuild.texi: (dfp_hw): Document.
11312 (p8vector_hw): Likewise.
11313 (powerpc_eabi_ok): Likewise.
11314 (powerpc_elfv2): Likewise.
11315 (powerpc_htm_ok): Likewise.
11316 (ppc_recip_hw): Likewise.
11317 (vsx_hw): Likewise.
11318
11319 2014-05-13 Cary Coutant <ccoutant@google.com>
11320
11321 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11322
11323 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11324
11325 * gengtype-parse.c (require3): Eliminate in favor of...
11326 (require4): New.
11327 (require_template_declaration): Update to support optional single *
11328 on a type.
11329
11330 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11331 (create_user_defined_type): Handle a single level of explicit
11332 pointerness within template arguments.
11333 (struct write_types_data): Add field "kind".
11334 (filter_type_name): Handle "*" character.
11335 (write_user_func_for_structure_ptr): Require a write_types_data
11336 rather than just a prefix string, so that we can look up the kind
11337 of the wtd and use it as an index into wrote_user_func_for_ptr,
11338 ensuring that such functions are written at most once. Support
11339 subclasses by invoking the marking function of the ultimate base class.
11340 (write_user_func_for_structure_body): Require a write_types_data
11341 rather than just a prefix string, so that we can pass this to
11342 write_user_func_for_structure_ptr.
11343 (write_func_for_structure): Likewise.
11344 (ggc_wtd): Add initializer of new "kind" field.
11345 (pch_wtd): Likewise.
11346
11347 * gengtype.h (enum write_types_kinds): New.
11348 (struct type): Add field wrote_user_func_for_ptr to the "s"
11349 union member.
11350
11351 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11352
11353 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11354 instead of const_binop.
11355 (fold_binary_loc): Likewise.
11356
11357 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11358
11359 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11360 calculation to match get_ref_base_and_extent.
11361
11362 2014-05-13 Catherine Moore <clm@codesourcery.com>
11363 Sandra Loosemore <sandra@codesourcery.com>
11364
11365 * configure.ac: Fix assembly for explicit JALR relocation check.
11366 * configure: Regenerate.
11367
11368 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11369
11370 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11371 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11372 Remove associated type declarations and initialisations.
11373 (arm_expand_neon_builtin): Likewise.
11374 (neon_emit_pair_result_insn): Delete.
11375 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11376 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11377 (neon_vzip<mode>): Likewise.
11378 (neon_vuzp<mode>): Likewise.
11379
11380 2014-05-13 Richard Biener <rguenther@suse.de>
11381
11382 PR ipa/60973
11383 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11384 it needs revisiting whether the call still may be tail-called.
11385
11386 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11387
11388 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11389 * rtl.h (block_symbol): Reduce number of fields to 2.
11390 (rtx_def): Add u2.symbol_ref_flags.
11391 (SYMBOL_REF_FLAGS): Use it.
11392 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11393 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11394 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11395 Lower index of SYMBOL_REF_DATA.
11396 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11397 Print SYMBOL_REF_FLAGS at the same time.
11398 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11399
11400 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11401
11402 * rtl.def (VAR_LOCATION): Remove "i" field.
11403 * rtl.h (rtx_def): Add u2.var_location_status.
11404 (PAT_VAR_LOCATION_STATUS): Use it.
11405 (gen_rtx_VAR_LOCATION): Declare.
11406 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11407 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11408 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11409
11410 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11411
11412 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11413 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11414
11415 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11416
11417 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11418 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11419 * rtl.h (rtx_def): Add insn_uid to u2 field.
11420 (RTX_FLAG_CHECK8): Delete in favor of...
11421 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11422 (INSN_DELETED_P): Update accordingly.
11423 (INSN_UID): Use u2.insn_uid.
11424 (INSN_CHAIN_CODE_P): Define.
11425 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11426 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11427 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11428 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11429 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11430 indices accordingly.
11431 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11432 Update indices for insn-chain rtxes.
11433 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11434 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11435 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11436 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11437 * combine.c (try_combine): Likewise.
11438 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11439
11440 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11441
11442 * rtl.def (REG): Remove middle field.
11443 * rtl.h (rtx_def): Add orignal_regno to u2.
11444 (ORIGINAL_REGNO): Use it instead of field 1.
11445 (REG_ATTRS): Lower field index accordingly.
11446 * gengtype.c (adjust_field_rtx_def): Remove handling of
11447 ORIGINAL_REGNO. Move REG_ATTRS index down.
11448 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11449 code that prints the REGNO.
11450
11451 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11452
11453 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11454 GENERATOR_FILE.
11455
11456 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11457
11458 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11459
11460 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11461
11462 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11463 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11464
11465 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11466
11467 * config/aarch64/aarch64-protos.h
11468 (aarch64_hard_regno_caller_save_mode): New prototype.
11469 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11470 New function.
11471 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11472
11473 2014-05-13 Christian Bruel <christian.bruel@st.com>
11474
11475 * target.def (mode_switching): New hook vector.
11476 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11477 (mode_exit, modepriority_to_mode): Likewise.
11478 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11479 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11480 * target.h: Include tm.h and hard-reg-set.h.
11481 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11482 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11483 * doc/tm.texi Regenerate.
11484 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11485 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11486 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11487 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11488 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11489 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11490 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11491 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11492 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11493 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11494 (ix86_emit_mode_set): Hookify.
11495 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11496 Delete.
11497 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11498 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11499 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11500 (epiphany_mode_priority_to_mode): Remove declaration.
11501 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11502 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11503 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11504 Likewise.
11505 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11506 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11507 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11508
11509 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR target/61060
11512 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11513 is const0_rtx, return immediately. Don't test count == 0 when
11514 it is always true.
11515
11516 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11517
11518 * Makefile.in: add shrink-wrap.o.
11519 * config/i386/i386.c: include "shrink-wrap.h"
11520 * function.c: Likewise.
11521 (requires_stack_frame_p, next_block_for_reg,
11522 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11523 dup_block_and_redirect): Move to shrink-wrap.c
11524 (thread_prologue_and_epilogue_insns): Extract three code segments
11525 as functions in shrink-wrap.c
11526 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11527 shrink-wrap.h
11528 * shrink-wrap.c: New file.
11529 * shrink-wrap.h: New file.
11530
11531 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11532
11533 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11534 reference to Solaris.
11535
11536 2014-05-12 Mike Stump <mikestump@comcast.net>
11537
11538 PR other/31778
11539 * genattrtab.c (filename): Add.
11540 (convert_set_attr_alternative): Improve error message.
11541 (check_defs): Restore read_md_filename for error messages.
11542 (gen_insn): Save filename.
11543
11544 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11545
11546 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11547 -fno-local-ivars and -fivar-visibility.
11548 * c-family/c.opt: Make -Wshadow also implicitly enable
11549 -Wshadow-ivar.
11550
11551 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11552
11553 * doc/tm.texi: Remove reference to deleted macro.
11554 * doc/tm.texi.in: Likewise.
11555
11556 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11557
11558 PR target/60991
11559 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11560 to restore Y.
11561
11562 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11563
11564 PR libgcc/61152
11565 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11566 * config/arm/aout.h (License): Same.
11567 * config/arm/bpabi.h (License): Same.
11568 * config/arm/elf.h (License): Same.
11569 * config/arm/linux-elf.h (License): Same.
11570 * config/arm/linux-gas.h (License): Same.
11571 * config/arm/netbsd-elf.h (License): Same.
11572 * config/arm/uclinux-eabi.h (License): Same.
11573 * config/arm/uclinux-elf.h (License): Same.
11574 * config/arm/vxworks.h (License): Same.
11575
11576 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11577
11578 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11579 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11580 number of operands to 3.
11581 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11582 * tree-nested.c (convert_nonlocal_omp_clauses,
11583 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11584 * gimplify.c (gimplify_scan_omp_clauses): Handle
11585 OMP_CLAUSE_LINEAR_STMT.
11586 * omp-low.c (lower_rec_input_clauses): Fix typo.
11587 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11588 cast between Fortran boolean_type_node and C _Bool if
11589 needed.
11590
11591 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11592
11593 PR tree-optimization/61136
11594 * wide-int.h (multiple_of_p): Define a version that doesn't return
11595 the quotient.
11596 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11597 integer_zerop/const_binop pair.
11598 (multiple_of_p): Likewise, converting both operands to widest_int
11599 precision.
11600
11601 2014-05-09 Teresa Johnson <tejohnson@google.com>
11602
11603 * cgraphunit.c (analyze_functions): Use correct dump file.
11604
11605 2014-05-09 Florian Weimer <fweimer@redhat.com>
11606
11607 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11608 expand_used_vars.
11609 (stack_protect_return_slot_p): New function.
11610 (expand_used_vars): Call stack_protect_decl_p and
11611 stack_protect_return_slot_p for -fstack-protector-strong.
11612
11613 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11614 Andrew Haley <aph@redhat.com>
11615 Richard Sandiford <rdsandiford@googlemail.com>
11616
11617 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11618 pages.
11619
11620 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11621
11622 PR middle-end/61111
11623 * fold-const.c (fold_binary_loc): Changed width of mask.
11624
11625 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11626
11627 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11628 unsigned int initializers for regno_in, regno_out.
11629
11630 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11631
11632 PR target/61055
11633 * config/avr/avr.md (cc): Add new attribute set_vzn.
11634 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11635 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11636 with INC, DEC or NEG.
11637 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11638 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11639 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11640
11641 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11642
11643 Revert:
11644 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11645
11646 * wide-int.cc (UTItype): Define.
11647 (UDWtype): Define for appropriate W_TYPE_SIZE.
11648
11649 2014-05-09 Richard Biener <rguenther@suse.de>
11650
11651 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11652 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11653 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11654 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11655 ssa_propagate): Adjust.
11656
11657 2014-05-08 Jeff Law <law@redhat.com>
11658
11659 PR tree-optimization/61009
11660 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11661 tri-state rather than a boolean. When a block is too big to
11662 thread through, inform caller via negative return value.
11663 (thread_across_edge): If a block was too big for normal threading,
11664 then it's too big for a joiner too, so remove temporary equivalences
11665 and return immediately.
11666
11667 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11668 Matthias Klose <doko@ubuntu.com>
11669
11670 PR driver/61106
11671 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11672
11673 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11674
11675 PR target/59952
11676 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11677
11678 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11679
11680 PR target/61092
11681 * config/alpha/alpha.c: Include gimple-iterator.h.
11682 (alpha_gimple_fold_builtin): New function. Move
11683 ALPHA_BUILTIN_UMULH folding from ...
11684 (alpha_fold_builtin): ... here.
11685 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11686
11687 2014-05-08 Wei Mi <wmi@google.com>
11688
11689 PR target/58066
11690 * config/i386/i386.c (ix86_compute_frame_layout): Update
11691 preferred_stack_boundary for call, expanded from tls descriptor.
11692 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11693 to depend on SP register.
11694 (*tls_local_dynamic_base_32_gnu): Ditto.
11695 (*tls_local_dynamic_32_once): Ditto.
11696 (tls_global_dynamic_64_<mode>): Set
11697 ix86_tls_descriptor_calls_expanded_in_cfun.
11698 (tls_local_dynamic_base_64_<mode>): Ditto.
11699 (tls_global_dynamic_32): Set
11700 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11701 to depend on SP register.
11702 (tls_local_dynamic_base_32): Ditto.
11703
11704 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11705
11706 * config/arm/arm_neon.h: Update comment.
11707 * config/arm/neon-docgen.ml: Delete.
11708 * config/arm/neon-gen.ml: Delete.
11709 * doc/arm-neon-intrinsics.texi: Update comment.
11710
11711 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11712
11713 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11714 and v4sf versions.
11715 (vand, vorr, veor, vorn, vbic): Remove.
11716 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11717 iterator.
11718 (neon_vsub_unspec): Likewise.
11719 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11720
11721 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11722
11723 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11724 (vadd_s16): Likewise.
11725 (vadd_s32): Likewise.
11726 (vadd_f32): Likewise.
11727 (vadd_u8): Likewise.
11728 (vadd_u16): Likewise.
11729 (vadd_u32): Likewise.
11730 (vadd_s64): Likewise.
11731 (vadd_u64): Likewise.
11732 (vaddq_s8): Likewise.
11733 (vaddq_s16): Likewise.
11734 (vaddq_s32): Likewise.
11735 (vaddq_s64): Likewise.
11736 (vaddq_f32): Likewise.
11737 (vaddq_u8): Likewise.
11738 (vaddq_u16): Likewise.
11739 (vaddq_u32): Likewise.
11740 (vaddq_u64): Likewise.
11741 (vmul_s8): Likewise.
11742 (vmul_s16): Likewise.
11743 (vmul_s32): Likewise.
11744 (vmul_f32): Likewise.
11745 (vmul_u8): Likewise.
11746 (vmul_u16): Likewise.
11747 (vmul_u32): Likewise.
11748 (vmul_p8): Likewise.
11749 (vmulq_s8): Likewise.
11750 (vmulq_s16): Likewise.
11751 (vmulq_s32): Likewise.
11752 (vmulq_f32): Likewise.
11753 (vmulq_u8): Likewise.
11754 (vmulq_u16): Likewise.
11755 (vmulq_u32): Likewise.
11756 (vsub_s8): Likewise.
11757 (vsub_s16): Likewise.
11758 (vsub_s32): Likewise.
11759 (vsub_f32): Likewise.
11760 (vsub_u8): Likewise.
11761 (vsub_u16): Likewise.
11762 (vsub_u32): Likewise.
11763 (vsub_s64): Likewise.
11764 (vsub_u64): Likewise.
11765 (vsubq_s8): Likewise.
11766 (vsubq_s16): Likewise.
11767 (vsubq_s32): Likewise.
11768 (vsubq_s64): Likewise.
11769 (vsubq_f32): Likewise.
11770 (vsubq_u8): Likewise.
11771 (vsubq_u16): Likewise.
11772 (vsubq_u32): Likewise.
11773 (vsubq_u64): Likewise.
11774 (vand_s8): Likewise.
11775 (vand_s16): Likewise.
11776 (vand_s32): Likewise.
11777 (vand_u8): Likewise.
11778 (vand_u16): Likewise.
11779 (vand_u32): Likewise.
11780 (vand_s64): Likewise.
11781 (vand_u64): Likewise.
11782 (vandq_s8): Likewise.
11783 (vandq_s16): Likewise.
11784 (vandq_s32): Likewise.
11785 (vandq_s64): Likewise.
11786 (vandq_u8): Likewise.
11787 (vandq_u16): Likewise.
11788 (vandq_u32): Likewise.
11789 (vandq_u64): Likewise.
11790 (vorr_s8): Likewise.
11791 (vorr_s16): Likewise.
11792 (vorr_s32): Likewise.
11793 (vorr_u8): Likewise.
11794 (vorr_u16): Likewise.
11795 (vorr_u32): Likewise.
11796 (vorr_s64): Likewise.
11797 (vorr_u64): Likewise.
11798 (vorrq_s8): Likewise.
11799 (vorrq_s16): Likewise.
11800 (vorrq_s32): Likewise.
11801 (vorrq_s64): Likewise.
11802 (vorrq_u8): Likewise.
11803 (vorrq_u16): Likewise.
11804 (vorrq_u32): Likewise.
11805 (vorrq_u64): Likewise.
11806 (veor_s8): Likewise.
11807 (veor_s16): Likewise.
11808 (veor_s32): Likewise.
11809 (veor_u8): Likewise.
11810 (veor_u16): Likewise.
11811 (veor_u32): Likewise.
11812 (veor_s64): Likewise.
11813 (veor_u64): Likewise.
11814 (veorq_s8): Likewise.
11815 (veorq_s16): Likewise.
11816 (veorq_s32): Likewise.
11817 (veorq_s64): Likewise.
11818 (veorq_u8): Likewise.
11819 (veorq_u16): Likewise.
11820 (veorq_u32): Likewise.
11821 (veorq_u64): Likewise.
11822 (vbic_s8): Likewise.
11823 (vbic_s16): Likewise.
11824 (vbic_s32): Likewise.
11825 (vbic_u8): Likewise.
11826 (vbic_u16): Likewise.
11827 (vbic_u32): Likewise.
11828 (vbic_s64): Likewise.
11829 (vbic_u64): Likewise.
11830 (vbicq_s8): Likewise.
11831 (vbicq_s16): Likewise.
11832 (vbicq_s32): Likewise.
11833 (vbicq_s64): Likewise.
11834 (vbicq_u8): Likewise.
11835 (vbicq_u16): Likewise.
11836 (vbicq_u32): Likewise.
11837 (vbicq_u64): Likewise.
11838 (vorn_s8): Likewise.
11839 (vorn_s16): Likewise.
11840 (vorn_s32): Likewise.
11841 (vorn_u8): Likewise.
11842 (vorn_u16): Likewise.
11843 (vorn_u32): Likewise.
11844 (vorn_s64): Likewise.
11845 (vorn_u64): Likewise.
11846 (vornq_s8): Likewise.
11847 (vornq_s16): Likewise.
11848 (vornq_s32): Likewise.
11849 (vornq_s64): Likewise.
11850 (vornq_u8): Likewise.
11851 (vornq_u16): Likewise.
11852 (vornq_u32): Likewise.
11853 (vornq_u64): Likewise.
11854
11855 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11856
11857 * wide-int.cc (UTItype): Define.
11858 (UDWtype): Define for appropriate W_TYPE_SIZE.
11859
11860 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11861
11862 PR tree-optimization/59100
11863 * tree-ssa-phiopt.c: Include tree-inline.h.
11864 (neutral_element_p, absorbing_element_p): New functions.
11865 (value_replacement): Handle conditional binary operations with a
11866 neutral or absorbing element.
11867
11868 2014-05-08 Richard Biener <rguenther@suse.de>
11869
11870 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
11871 folding the expression.
11872 (valueize_expr): Remove.
11873 (visit_reference_op_load): Do not valueize the result of
11874 vn_get_expr_for.
11875 (simplify_binary_expression): Likewise.
11876 (simplify_unary_expression): Likewise.
11877
11878 2014-05-08 Richard Biener <rguenther@suse.de>
11879
11880 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
11881 looking at TYPE_ARG_TYPES.
11882
11883 2014-05-08 Richard Biener <rguenther@suse.de>
11884
11885 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11886 pointer propagation special-case.
11887
11888 2014-05-08 Bin Cheng <bin.cheng@arm.com>
11889
11890 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
11891 core part of address expressions.
11892
11893 2014-05-08 Alan Modra <amodra@gmail.com>
11894
11895 PR target/60737
11896 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
11897 loads and stores when -mno-strict-align at any alignment.
11898 (expand_block_clear): Similarly. Also correct calculation of
11899 instruction count.
11900
11901 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11902
11903 PR middle-end/39246
11904 * tree-complex.c (expand_complex_move): Keep line info when expanding
11905 complex move.
11906 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
11907 of complex expression. Use new argument to display correct location
11908 for values coming from phi statement.
11909 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
11910 (warn_uninitialized_phi): Pass location of phi argument to
11911 warn_uninit.
11912 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
11913 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
11914
11915 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11916
11917 * config/rs6000/predicates.md (indexed_address_mem): New.
11918 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
11919 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
11920 fpstore_ux, fpstore_u.
11921 (sign_extend, indexed, update): New.
11922 (cell_micro): Adjust.
11923 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
11924 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
11925 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
11926 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
11927 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
11928 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
11929 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
11930 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
11931 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
11932 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
11933 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
11934 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
11935 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
11936 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
11937 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
11938
11939 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
11940 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
11941 *vsx_extract_<mode>_store): Adjust.
11942 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
11943 is_cracked_insn, insn_must_be_first_in_group,
11944 insn_must_be_last_in_group): Adjust.
11945
11946 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
11947 Adjust.
11948 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
11949 ppc440-fpstore): Adjust.
11950 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
11951 ppc476-fpstore): Adjust.
11952 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
11953 ppc601-fpstore): Adjust.
11954 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
11955 Adjust.
11956 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
11957 Adjust.
11958 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
11959 ppc7450-fpstore): Adjust.
11960 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
11961 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
11962 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
11963 Adjust.
11964 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
11965 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
11966 cell-fpstore, cell-fpstore-update): Adjust.
11967 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
11968 ppce300c3_store, ppce300c3_fpstore): Adjust.
11969 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
11970 e500mc_fpstore): Adjust.
11971 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
11972 e500mc64_store, e500mc64_fpstore): Adjust.
11973 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
11974 e5500_fpstore): Adjust.
11975 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
11976 e6500_fpstore): Adjust.
11977 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
11978 Adjust.
11979 * config/rs6000/power4.md (power4-load, power4-load-ext,
11980 power4-load-ext-update, power4-load-ext-update-indexed,
11981 power4-load-update-indexed, power4-load-update, power4-fpload,
11982 power4-fpload-update, power4-store, power4-store-update,
11983 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
11984 Adjust.
11985 * config/rs6000/power5.md (power5-load, power5-load-ext,
11986 power5-load-ext-update, power5-load-ext-update-indexed,
11987 power5-load-update-indexed, power5-load-update, power5-fpload,
11988 power5-fpload-update, power5-store, power5-store-update,
11989 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
11990 Adjust.
11991 * config/rs6000/power6.md (power6-load, power6-load-ext,
11992 power6-load-update, power6-load-update-indexed,
11993 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
11994 power6-fpload-update, power6-store, power6-store-update,
11995 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
11996 Adjust.
11997 * config/rs6000/power7.md (power7-load, power7-load-ext,
11998 power7-load-update, power7-load-update-indexed,
11999 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12000 power7-fpload-update, power7-store, power7-store-update,
12001 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12002 Adjust.
12003 * config/rs6000/power8.md (power8-load, power8-load-update,
12004 power8-load-ext, power8-load-ext-update, power8-fpload,
12005 power8-fpload-update, power8-store, power8-store-update-indexed,
12006 power8-fpstore, power8-fpstore-update): Adjust.
12007 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12008 Adjust.
12009 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12010 titan_lsu_store, titan_lsu_fpstore): Adjust.
12011 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12012
12013 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12014
12015 PR target/60884
12016 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12017 unrolled byte insns. Emit address increments after move insns.
12018
12019 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12020
12021 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12022 const_gimple, rather than a gimple.
12023 (gimple_call_builtin_p): Likewise, for the three variants.
12024
12025 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12026 (gimple_call_builtin_p): Likewise, for the three variants.
12027
12028 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12029
12030 PR tree-optimization/61095
12031 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12032
12033 2014-05-07 Richard Biener <rguenther@suse.de>
12034
12035 PR tree-optimization/61034
12036 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12037 (maybe_skip_until): Use translate to take into account
12038 lattices when trying to do disambiguations.
12039 (get_continuation_for_phi_1): Likewise.
12040 (get_continuation_for_phi): Adjust for added translate arguments.
12041 (walk_non_aliased_vuses): Likewise.
12042 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12043 (walk_non_aliased_vuses): Likewise.
12044 (call_may_clobber_ref_p_1): Declare.
12045 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12046 calls. Stop early if we are only supposed to disambiguate.
12047 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12048
12049 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12050
12051 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12052 Emit an error when the function has arguments.
12053
12054 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12055
12056 * cfgloop.h (unswitch_loops): Remove.
12057 * doc/passes.texi: Remove references to loop-unswitch.c
12058 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12059
12060 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12061
12062 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12063 check for loads group of length 3.
12064 (vect_permute_load_chain): New permutations for loads group of
12065 length 3.
12066 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12067 of vec_perm_shuffle for the new permutations.
12068
12069 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12070
12071 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12072 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12073 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12074 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12075 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12076 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12077 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12078 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12079
12080 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12081
12082 * loop-unswitch.c: Delete.
12083
12084 2014-05-07 Richard Biener <rguenther@suse.de>
12085
12086 * config.gcc: Always set need_64bit_hwint to yes.
12087
12088 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12089
12090 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12091 of using optimize_size.
12092
12093 2014-05-06 Mike Stump <mikestump@comcast.net>
12094
12095 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12096
12097 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12098
12099 * config/i386/sse.md (*mov<mode>_internal)
12100 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12101 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12102 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12103 (*<code><mode>3, *andnot<mode>3<mask_name>)
12104 (<mask_codefor><code><mode>3<mask_name>): Only consider
12105 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12106
12107 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12108
12109 Revert:
12110 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12111
12112 * lra-constraints.c (valid_address_p): Move earlier in file.
12113 Add a constraint argument to the address_info version.
12114 (satisfies_memory_constraint_p): New function.
12115 (satisfies_address_constraint_p): Likewise.
12116 (process_alt_operands, curr_insn_transform): Use them.
12117 (process_address): Pass the constraint to valid_address_p when
12118 checking address operands.
12119
12120 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12121
12122 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12123 to their respective blocks. Fix inadvertent use of "node".
12124
12125 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12126
12127 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12128 out from...
12129 (init_emit_once): ...here.
12130 * rtl.h (init_derived_machine_modes): Declare.
12131 * toplev.c (do_compile): Call it even if no_backend.
12132
12133 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12134 Mike Stump <mikestump@comcast.net>
12135 Richard Sandiford <rdsandiford@googlemail.com>
12136 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12137
12138 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12139 (rtx_equal_for_memref_p): Update comment.
12140 (adjust_offset_for_component_ref): Use wide-int interfaces.
12141 * builtins.c (get_object_alignment_2): Likewise.
12142 (c_readstr): Likewise.
12143 (target_char_cast): Add comment.
12144 (determine_block_size): Use wide-int interfaces.
12145 (expand_builtin_signbit): Likewise.
12146 (fold_builtin_int_roundingfn): Likewise.
12147 (fold_builtin_bitop): Likewise.
12148 (fold_builtin_bswap): Likewise.
12149 (fold_builtin_logarithm): Use signop.
12150 (fold_builtin_pow): Likewise.
12151 (fold_builtin_memory_op): Use wide-int interfaces.
12152 (fold_builtin_object_size): Likewise.
12153 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12154 nb_iterations_estimate.
12155 (record_niter_bound): Use wide-int interfaces.
12156 (get_estimated_loop_iterations_int): Likewise.
12157 (get_estimated_loop_iterations): Likewise.
12158 (get_max_loop_iterations): Likewise.
12159 * cfgloop.h: Include wide-int.h.
12160 (struct nb_iter_bound): Change bound to widest_int.
12161 (struct loop): Change nb_iterations_upper_bound and
12162 nb_iterations_estimate to widest_int.
12163 (record_niter_bound): Switch to use widest_int.
12164 (get_estimated_loop_iterations): Likewise.
12165 (get_max_loop_iterations): Likewise.
12166 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12167 update for wide-int.
12168 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12169 * combine.c (try_combine): Likewise.
12170 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12171 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12172 interfaces.
12173 (aarch64_float_const_representable_p): Likewise.
12174 * config/arc/arc.c: Include wide-int.h.
12175 (arc_can_use_doloop_p): Use wide-int interfaces.
12176 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12177 (vfp3_const_double_index): Likewise.
12178 * config/avr/avr.c (avr_out_round): Likewise.
12179 (avr_fold_builtin): Likewise.
12180 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12181 (bfin_can_use_doloop_p): Likewise.
12182 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12183 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12184 * config/i386/i386.c: Include wide-int.h.
12185 (ix86_data_alignment): Use wide-int interfaces.
12186 (ix86_local_alignment): Likewise.
12187 (ix86_emit_swsqrtsf): Update real_from_integer.
12188 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12189 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12190 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12191 (zero_constant): Likewise.
12192 (input_operand): Likewise.
12193 (splat_input_operand): Likewise.
12194 (non_logical_cint_operand): Change const_double to const_wide_int.
12195 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12196 (easy_altivec_constant): Remove comment.
12197 (paired_expand_vector_init): Use CONSTANT_P.
12198 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12199 (rs6000_emit_move): Update checks.
12200 (rs6000_aggregate_candidate): Use wide-int interfaces.
12201 (rs6000_expand_ternop_builtin): Likewise.
12202 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12203 (rs6000_assemble_integer): Likewise.
12204 (rs6000_hash_constant): Likewise.
12205 (output_toc): Likewise.
12206 (rs6000_rtx_costs): Likewise.
12207 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12208 * config/rs6000/rs6000-c.c: Include wide-int.h.
12209 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12210 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12211 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12212 Handle CONST_WIDE_INT.
12213 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12214 Use tree_fits_uhwi_p.
12215 * config/sparc/sparc.c: Include wide-int.h.
12216 (sparc_fold_builtin): Use wide-int interfaces.
12217 * config/vax/vax.c: Include wide-int.h.
12218 (vax_float_literal): Use real_from_integer.
12219 * coretypes.h (struct hwivec_def): New.
12220 (hwivec): New.
12221 (const_hwivec): New.
12222 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12223 (equiv_constant): Handle CONST_WIDE_INT.
12224 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12225 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12226 * dbxout.c (stabstr_U): Use wide-int interfaces.
12227 (dbxout_type): Update to use cst_fits_shwi_p.
12228 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12229 (TARGET_SUPPORTS_WIDE_INT): Add default.
12230 * dfp.c: Include wide-int.h.
12231 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12232 decimal_real_to_integer.
12233 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12234 decimal_real_to_integer.
12235 * doc/generic.texi (Constant expressions): Update for wide_int.
12236 * doc/rtl.texi (const_double): Likewise.
12237 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12238 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12239 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12240 (REAL_VALUE_FROM_INT): Remove.
12241 (TARGET_SUPPORTS_WIDE_INT): New.
12242 * doc/tm.texi: Regenerate.
12243 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12244 * double-int.h: Include wide-int.h.
12245 (struct wi::int_traits): New.
12246 * dwarf2out.c (get_full_len): New.
12247 (dw_val_equal_p): Add case dw_val_class_wide_int.
12248 (size_of_loc_descr): Likewise.
12249 (output_loc_operands): Likewise.
12250 (insert_double): Remove.
12251 (insert_wide_int): New.
12252 (add_AT_wide): New.
12253 (print_die): Add case dw_val_class_wide_int.
12254 (attr_checksum): Likewise.
12255 (attr_checksum_ordered): Likewise.
12256 (same_dw_val_p): Likewise.
12257 (size_of_die): Likewise.
12258 (value_format): Likewise.
12259 (output_die): Likewise.
12260 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12261 Use wide-int.
12262 (clz_loc_descriptor): Use wide-int interfaces.
12263 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12264 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12265 (round_up_to_align): Use wide-int interfaces.
12266 (field_byte_offset): Likewise.
12267 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12268 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12269 CONST_DOUBLE handling. Use wide-int interfaces.
12270 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12271 (gen_enumeration_type_die): Use add_AT_wide.
12272 (hash_loc_operands): Add case dw_val_class_wide_int.
12273 (compare_loc_operands): Likewise.
12274 * dwarf2out.h: Include wide-int.h.
12275 (wide_int_ptr): New.
12276 (enum dw_val_class): Add dw_val_class_wide_int.
12277 (struct dw_val_struct): Add val_wide.
12278 * emit-rtl.c (const_wide_int_htab): New.
12279 (const_wide_int_htab_hash): New.
12280 (const_wide_int_htab_eq): New.
12281 (lookup_const_wide_int): New.
12282 (const_double_htab_hash): Use wide-int interfaces.
12283 (const_double_htab_eq): Likewise.
12284 (rtx_to_double_int): Conditionally compile for wide-int.
12285 (immed_double_int_const): Rename to immed_wide_int_const and
12286 update for wide-int.
12287 (immed_double_const): Conditionally compile for wide-int.
12288 (init_emit_once): Use wide-int interfaces.
12289 * explow.c (plus_constant): Likewise.
12290 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12291 (lshift_value): Use wide-int interfaces.
12292 (expand_mult): Likewise.
12293 (choose_multiplier): Likewise.
12294 (expand_smod_pow2): Likewise.
12295 (make_tree): Likewise.
12296 * expr.c (convert_modes): Consolidate handling of constants.
12297 Use wide-int interfaces.
12298 (emit_group_load_1): Add note.
12299 (store_expr): Update comment.
12300 (get_inner_reference): Use wide-int interfaces.
12301 (expand_constructor): Update comment.
12302 (expand_expr_real_2): Use wide-int interfaces.
12303 (expand_expr_real_1): Likewise.
12304 (reduce_to_bit_field_precision): Likewise.
12305 (const_vector_from_tree): Likewise.
12306 * final.c: Include wide-int-print.h.
12307 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12308 * fixed-value.c: Include wide-int.h.
12309 (fixed_from_string): Use wide-int interfaces.
12310 (fixed_to_decimal): Likewise.
12311 (fixed_convert_from_real): Likewise.
12312 (real_convert_from_fixed): Likewise.
12313 * fold-const.h (mem_ref_offset): Return an offset_int.
12314 (div_if_zero_remainder): Remove code parameter.
12315 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12316 Use wide-int interfaces.
12317 (may_negate_without_overflow_p): Use wide-int interfaces.
12318 (negate_expr_p): Likewise.
12319 (fold_negate_expr): Likewise.
12320 (int_const_binop_1): Likewise.
12321 (const_binop): Likewise.
12322 (fold_convert_const_int_from_int): Likewise.
12323 (fold_convert_const_int_from_real): Likewise.
12324 (fold_convert_const_int_from_fixed): Likewise.
12325 (fold_convert_const_fixed_from_int): Likewise.
12326 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12327 (sign_bit_p): Use wide-int interfaces.
12328 (make_range_step): Likewise.
12329 (build_range_check): Likewise. Pass an integer of the correct type
12330 instead of using integer_one_node.
12331 (range_predecessor): Pass an integer of the correct type instead
12332 of using integer_one_node.
12333 (range_successor): Likewise.
12334 (merge_ranges): Likewise.
12335 (unextend): Use wide-int interfaces.
12336 (extract_muldiv_1): Likewise.
12337 (fold_div_compare): Likewise.
12338 (fold_single_bit_test): Likewise.
12339 (fold_sign_changed_comparison): Likewise.
12340 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12341 (fold_plusminus_mult_expr): Use wide-int interfaces.
12342 (native_encode_int): Likewise.
12343 (native_interpret_int): Likewise.
12344 (fold_unary_loc): Likewise.
12345 (pointer_may_wrap_p): Likewise.
12346 (size_low_cst): Likewise.
12347 (mask_with_tz): Likewise.
12348 (fold_binary_loc): Likewise.
12349 (fold_ternary_loc): Likewise.
12350 (multiple_of_p): Likewise.
12351 (tree_call_nonnegative_warnv_p): Update calls to
12352 tree_int_cst_min_precision and real_from_integer.
12353 (fold_negate_const): Use wide-int interfaces.
12354 (fold_abs_const): Likewise.
12355 (fold_relational_const): Use tree_int_cst_lt.
12356 (round_up_loc): Use wide-int interfaces.
12357 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12358 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12359 * gengtype.c: Remove include of double-int.h.
12360 (do_typedef): Use wide-int interfaces.
12361 (open_base_files): Add wide-int.h.
12362 (main): Add offset_int and widest_int typedefs.
12363 * gengtype-lex.l: Handle "^".
12364 (CXX_KEYWORD): Add "static".
12365 * gengtype-parse.c (require3): New.
12366 (require_template_declaration): Handle constant template arguments
12367 and nested templates.
12368 * gengtype-state.c: Don't include "double-int.h".
12369 * genpreds.c (write_one_predicate_function): Update comment.
12370 (write_tm_constrs_h): Add check for hval and lval use in
12371 CONST_WIDE_INT.
12372 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12373 (add_to_sequence): Likewise.
12374 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12375 and const_double_operand.
12376 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12377 interfaces.
12378 * gimple-fold.c (get_base_constructor): Likewise.
12379 (fold_array_ctor_reference): Likewise.
12380 (fold_nonarray_ctor_reference): Likewise.
12381 (fold_const_aggregate_ref_1): Likewise.
12382 (gimple_val_nonnegative_real_p): Likewise.
12383 (gimple_fold_indirect_ref): Likewise.
12384 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12385 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12386 (struct slsr_cand_d): Change index to be widest_int.
12387 (struct incr_info_d): Change incr to be widest_int.
12388 (alloc_cand_and_find_basis): Use wide-int interfaces.
12389 (slsr_process_phi): Likewise.
12390 (backtrace_base_for_ref): Likewise. Return a widest_int.
12391 (restructure_reference): Take a widest_int instead of a double_int.
12392 (slsr_process_ref): Use wide-int interfaces.
12393 (create_mul_ssa_cand): Likewise.
12394 (create_mul_imm_cand): Likewise.
12395 (create_add_ssa_cand): Likewise.
12396 (create_add_imm_cand): Take a widest_int instead of a double_int.
12397 (slsr_process_add): Use wide-int interfaces.
12398 (slsr_process_cast): Likewise.
12399 (slsr_process_copy): Likewise.
12400 (dump_candidate): Likewise.
12401 (dump_incr_vec): Likewise.
12402 (replace_ref): Likewise.
12403 (cand_increment): Likewise. Return a widest_int.
12404 (cand_abs_increment): Likewise.
12405 (replace_mult_candidate): Take a widest_int instead of a double_int.
12406 (replace_unconditional_candidate): Use wide-int interfaces.
12407 (incr_vec_index): Take a widest_int instead of a double_int.
12408 (create_add_on_incoming_edge): Likewise.
12409 (create_phi_basis): Use wide-int interfaces.
12410 (replace_conditional_candidate): Likewise.
12411 (record_increment): Take a widest_int instead of a double_int.
12412 (record_phi_increments): Use wide-int interfaces.
12413 (phi_incr_cost): Take a widest_int instead of a double_int.
12414 (lowest_cost_path): Likewise.
12415 (total_savings): Likewise.
12416 (analyze_increments): Use wide-int interfaces.
12417 (ncd_with_phi): Take a widest_int instead of a double_int.
12418 (ncd_of_cand_and_phis): Likewise.
12419 (nearest_common_dominator_for_cands): Likewise.
12420 (insert_initializers): Use wide-int interfaces.
12421 (all_phi_incrs_profitable): Likewise.
12422 (replace_one_candidate): Likewise.
12423 (replace_profitable_candidates): Likewise.
12424 * godump.c: Include wide-int-print.h.
12425 (go_output_typedef): Use wide-int interfaces.
12426 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12427 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12428 (build_loop_iteration_domains): Likewise.
12429 * hooks.h: Include wide-int.h rather than double-int.h.
12430 (hook_bool_dint_dint_uint_bool_true): Delete.
12431 (hook_bool_wint_wint_uint_bool_true): Declare.
12432 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12433 (hook_bool_wint_wint_uint_bool_true): New.
12434 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12435 interfaces.
12436 (ubsan_expand_si_overflow_mul_check): Likewise.
12437 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12438 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12439 (get_ancestor_addr_info): Likewise.
12440 (ipa_modify_call_arguments): Likewise.
12441 * loop-doloop.c (doloop_modify): Likewise.
12442 (doloop_optimize): Likewise.
12443 * loop-iv.c (iv_number_of_iterations): Likewise.
12444 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12445 (unroll_loop_constant_iterations): Likewise.
12446 (decide_unroll_runtime_iterations): Likewise.
12447 (unroll_loop_runtime_iterations): Likewise.
12448 (decide_peel_simple): Likewise.
12449 (decide_unroll_stupid): Likewise.
12450 * lto-streamer-in.c (streamer_read_wi): Add.
12451 (input_cfg): Use wide-int interfaces.
12452 (lto_input_tree_1): Likewise.
12453 * lto-streamer-out.c (streamer_write_wi): Add.
12454 (hash_tree): Use wide-int interfaces.
12455 (output_cfg): Likewise.
12456 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12457 (GTFILES): Add wide-int.h and signop.h.
12458 (TAGS): Look for .cc files too.
12459 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12460 * optabs.c (expand_subword_shift): Likewise.
12461 (expand_doubleword_shift): Likewise.
12462 (expand_absneg_bit): Likewise.
12463 (expand_copysign_absneg): Likewise.
12464 (expand_copysign_bit): Likewise.
12465 * postreload.c (reload_cse_simplify_set): Likewise.
12466 * predict.c (predict_iv_comparison): Likewise.
12467 * pretty-print.h: Include wide-int-print.h.
12468 (pp_wide_int) New.
12469 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12470 * print-tree.c: Include wide-int-print.h.
12471 (print_node_brief): Use wide-int interfaces.
12472 (print_node): Likewise.
12473 * read-rtl.c (validate_const_wide_int): New.
12474 (read_rtx_code): Add CONST_WIDE_INT case.
12475 * real.c: Include wide-int.h.
12476 (real_to_integer2): Delete.
12477 (real_to_integer): New function, returning a wide_int.
12478 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12479 (ten_to_ptwo): Update call to real_from_integer.
12480 (real_digit): Likewise.
12481 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12482 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12483 (REAL_VALUE_TO_INT): Delete.
12484 (real_to_integer): Declare a wide-int form.
12485 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12486 * recog.c (const_int_operand): Improve comment.
12487 (const_scalar_int_operand): New.
12488 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12489 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12490 (split_double): Likewise.
12491 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12492 (rtx_size): Likewise.
12493 (rtx_alloc_stat_v): New.
12494 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12495 (cwi_output_hex): New.
12496 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12497 (cwi_check_failed_bounds): New.
12498 * rtl.def (CONST_WIDE_INT): New.
12499 * rtl.h: Include <utility> and wide-int.h.
12500 (struct hwivec_def): New.
12501 (CWI_GET_NUM_ELEM): New.
12502 (CWI_PUT_NUM_ELEM): New.
12503 (struct rtx_def): Add num_elem and hwiv.
12504 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12505 (CASE_CONST_UNIQUE): Likewise.
12506 (CASE_CONST_ANY): Likewise.
12507 (CONST_SCALAR_INT_P): Likewise.
12508 (CONST_WIDE_INT_P): New.
12509 (CWI_ELT): New.
12510 (HWIVEC_CHECK): New.
12511 (cwi_check_failed_bounds): New.
12512 (CWI_ELT): New.
12513 (HWIVEC_CHECK): New.
12514 (CONST_WIDE_INT_VEC) New.
12515 (CONST_WIDE_INT_NUNITS) New.
12516 (CONST_WIDE_INT_ELT) New.
12517 (rtx_mode_t): New type.
12518 (wi::int_traits <rtx_mode_t>): New.
12519 (wi::shwi): New.
12520 (wi::min_value): New.
12521 (wi::max_value): New.
12522 (rtx_alloc_v) New.
12523 (const_wide_int_alloc): New.
12524 (immed_wide_int_const): New.
12525 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12526 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12527 * signop.h: New file.
12528 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12529 (simplify_const_unary_operation): Use wide-int interfaces.
12530 (simplify_binary_operation_1): Likewise.
12531 (simplify_const_binary_operation): Likewise.
12532 (simplify_const_relational_operation): Likewise.
12533 (simplify_immed_subreg): Likewise.
12534 * stmt.c (expand_case): Likewise.
12535 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12536 signop rather than a bool.
12537 * stor-layout.c (layout_type): Use wide-int interfaces.
12538 (initialize_sizetypes): Update calls to
12539 set_min_and_max_values_for_integral_type.
12540 (set_min_and_max_values_for_integral_type): Take a signop rather
12541 than a bool. Use wide-int interfaces.
12542 (fixup_signed_type): Update accordingly. Remove
12543 HOST_BITS_PER_DOUBLE_INT limit.
12544 (fixup_unsigned_type): Likewise.
12545 * system.h (STATIC_CONSTANT_P): New.
12546 (STATIC_ASSERT): New.
12547 * target.def (can_use_doloop_p): Take widest_ints rather than
12548 double_ints.
12549 * target.h: Include wide-int.h rather than double-int.h.
12550 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12551 than double_ints.
12552 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12553 rather than INT_CST_LT_UNSIGNED.
12554 (can_use_doloop_if_innermost): Take widest_ints rather than
12555 double_ints.
12556 * tree-affine.c: Include wide-int-print.h.
12557 (double_int_ext_for_comb): Delete.
12558 (wide_int_ext_for_comb): New.
12559 (aff_combination_zero): Use wide-int interfaces.
12560 (aff_combination_const): Take a widest_int instead of a double_int.
12561 (aff_combination_elt): Use wide-int interfaces.
12562 (aff_combination_scale): Take a widest_int instead of a double_int.
12563 (aff_combination_add_elt): Likewise.
12564 (aff_combination_add_cst): Likewise.
12565 (aff_combination_add): Use wide-int interfaces.
12566 (aff_combination_convert): Likewise.
12567 (tree_to_aff_combination): Likewise.
12568 (add_elt_to_tree): Take a widest_int instead of a double_int.
12569 (aff_combination_to_tree): Use wide-int interfaces.
12570 (aff_combination_remove_elt): Likewise.
12571 (aff_combination_add_product): Take a widest_int instead of
12572 a double_int.
12573 (aff_combination_mult): Use wide-int interfaces.
12574 (aff_combination_expand): Likewise.
12575 (double_int_constant_multiple_p): Delete.
12576 (wide_int_constant_multiple_p): New.
12577 (aff_combination_constant_multiple_p): Take a widest_int pointer
12578 instead of a double_int pointer.
12579 (print_aff): Use wide-int interfaces.
12580 (get_inner_reference_aff): Take a widest_int pointer
12581 instead of a double_int pointer.
12582 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12583 * tree-affine.h: Include wide-int.h.
12584 (struct aff_comb_elt): Change type of coef to widest_int.
12585 (struct affine_tree_combination): Change type of offset to widest_int.
12586 (double_int_ext_for_comb): Delete.
12587 (wide_int_ext_for_comb): New.
12588 (aff_combination_const): Use widest_int instead of double_int.
12589 (aff_combination_scale): Likewise.
12590 (aff_combination_add_elt): Likewise.
12591 (aff_combination_constant_multiple_p): Likewise.
12592 (get_inner_reference_aff): Likewise.
12593 (aff_comb_cannot_overlap_p): Likewise.
12594 (aff_combination_zero_p): Use wide-int interfaces.
12595 * tree.c: Include tree.h.
12596 (init_ttree): Use make_int_cst.
12597 (tree_code_size): Removed code for INTEGER_CST case.
12598 (tree_size): Add INTEGER_CST case.
12599 (make_node_stat): Update comment.
12600 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12601 (build_int_cst_type): Use wide-int interfaces.
12602 (double_int_to_tree): Likewise.
12603 (double_int_fits_to_tree_p): Delete.
12604 (force_fit_type_double): Delete.
12605 (force_fit_type): New.
12606 (int_cst_hash_hash): Use wide-int interfaces.
12607 (int_cst_hash_eq): Likewise.
12608 (build_int_cst_wide): Delete.
12609 (wide_int_to_tree): New.
12610 (cache_integer_cst): Use wide-int interfaces.
12611 (build_low_bits_mask): Likewise.
12612 (cst_and_fits_in_hwi): Likewise.
12613 (real_value_from_int_cst): Likewise.
12614 (make_int_cst_stat): New.
12615 (integer_zerop): Use wide_int interfaces.
12616 (integer_onep): Likewise.
12617 (integer_all_onesp): Likewise.
12618 (integer_pow2p): Likewise.
12619 (integer_nonzerop): Likewise.
12620 (tree_log2): Likewise.
12621 (tree_floor_log2): Likewise.
12622 (tree_ctz): Likewise.
12623 (int_size_in_bytes): Likewise.
12624 (mem_ref_offset): Return an offset_int rather than a double_int.
12625 (build_type_attribute_qual_variant): Use wide_int interfaces.
12626 (type_hash_eq): Likewise
12627 (tree_int_cst_equal): Likewise.
12628 (tree_int_cst_lt): Delete.
12629 (tree_int_cst_compare): Likewise.
12630 (tree_fits_shwi_p): Use wide_int interfaces.
12631 (tree_fits_uhwi_p): Likewise.
12632 (tree_int_cst_sign_bit): Likewise.
12633 (tree_int_cst_sgn): Likewise.
12634 (tree_int_cst_min_precision): Take a signop rather than a bool.
12635 (simple_cst_equal): Use wide_int interfaces.
12636 (compare_tree_int): Likewise.
12637 (iterative_hash_expr): Likewise.
12638 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12639 INT_CST_LT.
12640 (get_type_static_bounds): Use wide_int interfaces.
12641 (tree_int_cst_elt_check_failed): New.
12642 (build_common_tree_nodes): Reordered to set prec before filling in
12643 value.
12644 (int_cst_value): Check cst_and_fits_in_hwi.
12645 (widest_int_cst_value): Use wide_int interfaces.
12646 (upper_bound_in_type): Likewise.
12647 (lower_bound_in_type): Likewise.
12648 (num_ending_zeros): Likewise.
12649 (drop_tree_overflow): Likewise.
12650 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12651 (gen_conditions_for_pow_cst_base): Likewise.
12652 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12653 (group_case_labels_stmt): Use wide-int interfaces.
12654 (verify_gimple_assign_binary): Likewise.
12655 (print_loop): Likewise.
12656 * tree-chrec.c (tree_fold_binomial): Likewise.
12657 * tree-core.h (struct tree_base): Add int_length.
12658 (struct tree_int_cst): Change rep of value.
12659 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12660 (dr_may_alias_p): Likewise.
12661 (max_stmt_executions_tree): Likewise.
12662 * tree.def (INTEGER_CST): Update comment.
12663 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12664 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12665 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12666 (dequeue_and_dump): Use wide-int interfaces.
12667 * tree.h: Include wide-int.h.
12668 (NULL_TREE): Moved to earlier loc in file.
12669 (TREE_INT_CST_ELT_CHECK): New.
12670 (tree_int_cst_elt_check_failed): New.
12671 (TYPE_SIGN): New.
12672 (TREE_INT_CST): Delete.
12673 (TREE_INT_CST_LOW): Use wide-int interfaces.
12674 (TREE_INT_CST_HIGH): Delete.
12675 (TREE_INT_CST_NUNITS): New.
12676 (TREE_INT_CST_EXT_NUNITS): Likewise.
12677 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12678 (TREE_INT_CST_ELT): Likewise.
12679 (INT_CST_LT): Delete.
12680 (tree_int_cst_elt_check): New (two forms).
12681 (type_code_size): Update comment.
12682 (make_int_cst_stat, make_int_cst): New.
12683 (tree_to_double_int): Delete.
12684 (double_int_fits_to_tree_p): Delete.
12685 (force_fit_type_double): Delete.
12686 (build_int_cstu): Replace with out-of-line function.
12687 (build_int_cst_wide): Delete.
12688 (tree_int_cst_lt): Define inline.
12689 (tree_int_cst_le): New.
12690 (tree_int_cst_compare): Define inline.
12691 (tree_int_cst_min_precision): Take a signop rather than a bool.
12692 (wi::int_traits <const_tree>): New.
12693 (wi::int_traits <tree>): New.
12694 (wi::extended_tree): New.
12695 (wi::int_traits <wi::extended_tree>): New.
12696 (wi::to_widest): New.
12697 (wi::to_offset): New.
12698 (wi::fits_to_tree_p): New.
12699 (wi::min_value): New.
12700 (wi::max_value): New.
12701 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12702 (copy_tree_body_r): Likewise.
12703 * tree-object-size.c (compute_object_offset): Likewise.
12704 (addr_object_size): Likewise.
12705 * tree-predcom.c: Include wide-int-print.h.
12706 (struct dref_d): Change type of offset to widest_int.
12707 (dump_dref): Call wide-int printer.
12708 (aff_combination_dr_offset): Use wide-int interfaces.
12709 (determine_offset): Take a widest_int pointer rather than a
12710 double_int pointer.
12711 (split_data_refs_to_components): Use wide-int interfaces.
12712 (suitable_component_p): Likewise.
12713 (order_drefs): Likewise.
12714 (add_ref_to_chain): Likewise.
12715 (valid_initializer_p): Likewise.
12716 (determine_roots_comp): Likewise.
12717 * tree-pretty-print.c: Include wide-int-print.h.
12718 (dump_generic_node): Use wide-int interfaces.
12719 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12720 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12721 (move_fixed_address_to_symbol): Likewise.
12722 (move_hint_to_base): Likewise.
12723 (move_pointer_to_base): Likewise.
12724 (move_variant_to_index): Likewise.
12725 (most_expensive_mult_to_index): Likewise.
12726 (addr_to_parts): Likewise.
12727 (copy_ref_info): Likewise.
12728 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12729 (indirect_refs_may_alias_p): Likewise.
12730 (stmt_kills_ref_p_1): Likewise.
12731 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12732 * tree-ssa-ccp.c: Update comment at top of file. Include
12733 wide-int-print.h.
12734 (struct prop_value_d): Change type of mask to widest_int.
12735 (extend_mask): New function.
12736 (dump_lattice_value): Use wide-int interfaces.
12737 (get_default_value): Likewise.
12738 (set_constant_value): Likewise.
12739 (set_value_varying): Likewise.
12740 (valid_lattice_transition): Likewise.
12741 (set_lattice_value): Likewise.
12742 (value_to_double_int): Delete.
12743 (value_to_wide_int): New.
12744 (get_value_from_alignment): Use wide-int interfaces.
12745 (get_value_for_expr): Likewise.
12746 (do_dbg_cnt): Likewise.
12747 (ccp_finalize): Likewise.
12748 (ccp_lattice_meet): Likewise.
12749 (bit_value_unop_1): Use widest_ints rather than double_ints.
12750 (bit_value_binop_1): Likewise.
12751 (bit_value_unop): Use wide-int interfaces.
12752 (bit_value_binop): Likewise.
12753 (bit_value_assume_aligned): Likewise.
12754 (evaluate_stmt): Likewise.
12755 (ccp_fold_stmt): Likewise.
12756 (visit_cond_stmt): Likewise.
12757 (ccp_visit_stmt): Likewise.
12758 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12759 (constant_pointer_difference): Likewise.
12760 (associate_pointerplus): Likewise.
12761 (combine_conversions): Likewise.
12762 * tree-ssa-loop.h: Include wide-int.h.
12763 (struct tree_niter_desc): Change type of max to widest_int.
12764 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12765 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12766 (remove_redundant_iv_tests): Likewise.
12767 (canonicalize_loop_induction_variables): Likewise.
12768 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12769 (constant_multiple_of): Take a widest_int pointer instead of
12770 a double_int pointer.
12771 (get_computation_aff): Use wide-int interfaces.
12772 (ptr_difference_cost): Likewise.
12773 (difference_cost): Likewise.
12774 (get_loop_invariant_expr_id): Likewise.
12775 (get_computation_cost_at): Likewise.
12776 (iv_elimination_compare_lt): Likewise.
12777 (may_eliminate_iv): Likewise.
12778 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12779 instead of double_int.
12780 (max_loop_iterations): Likewise.
12781 (max_stmt_executions): Likewise.
12782 (estimated_stmt_executions): Likewise.
12783 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12784 (split_to_var_and_offset): Use wide-int interfaces.
12785 (determine_value_range): Likewise.
12786 (bound_difference_of_offsetted_base): Likewise.
12787 (bounds_add): Take a widest_int instead of a double_int.
12788 (number_of_iterations_ne_max): Use wide-int interfaces.
12789 (number_of_iterations_ne): Likewise.
12790 (number_of_iterations_lt_to_ne): Likewise.
12791 (assert_loop_rolls_lt): Likewise.
12792 (number_of_iterations_lt): Likewise.
12793 (number_of_iterations_le): Likewise.
12794 (number_of_iterations_cond): Likewise.
12795 (number_of_iterations_exit): Likewise.
12796 (finite_loop_p): Likewise.
12797 (derive_constant_upper_bound_assign): Likewise.
12798 (derive_constant_upper_bound): Return a widest_int.
12799 (derive_constant_upper_bound_ops): Likewise.
12800 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12801 (record_estimate): Take a widest_int rather than a double_int.
12802 (record_nonwrapping_iv): Use wide-int interfaces.
12803 (double_int_cmp): Delete.
12804 (wide_int_cmp): New.
12805 (bound_index): Take a widest_int rather than a double_int.
12806 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12807 (maybe_lower_iteration_bound): Likewise.
12808 (estimate_numbers_of_iterations_loop): Likewise.
12809 (estimated_loop_iterations): Take a widest_int pointer than than
12810 a double_int pointer.
12811 (estimated_loop_iterations_int): Use wide-int interfaces.
12812 (max_loop_iterations): Take a widest_int pointer than than
12813 a double_int pointer.
12814 (max_loop_iterations_int): Use wide-int interfaces.
12815 (max_stmt_executions): Take a widest_int pointer than than
12816 a double_int pointer.
12817 (estimated_stmt_executions): Likewise.
12818 (n_of_executions_at_most): Use wide-int interfaces.
12819 (scev_probably_wraps_p): Likewise.
12820 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12821 to real_to_integer.
12822 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12823 interfaces.
12824 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12825 double_ints. Adjust for trailing_wide_ints <3> representation.
12826 (set_nonzero_bits): Likewise.
12827 (get_range_info): Return wide_ints rather than double_ints.
12828 Adjust for trailing_wide_ints <3> representation.
12829 (get_nonzero_bits): Likewise.
12830 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12831 representation.
12832 * tree-ssanames.h (struct range_info_def): Replace min, max and
12833 nonzero_bits with a trailing_wide_ints <3>.
12834 (set_range_info): Use wide_int_refs rather than double_ints.
12835 (set_nonzero_bits): Likewise.
12836 (get_range_info): Return wide_ints rather than double_ints.
12837 (get_nonzero_bits): Likewise.
12838 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12839 * tree-ssa-pre.c (phi_translate_1): Likewise.
12840 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12841 (acceptable_pow_call): Likewise.
12842 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12843 interfaces.
12844 (vn_reference_fold_indirect): Likewise.
12845 (vn_reference_maybe_forwprop_address): Likewise.
12846 (valueize_refs_1): Likewise.
12847 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12848 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12849 tree_int_cst_lt and tree_int_cst_le.
12850 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12851 interfaces.
12852 (streamer_alloc_tree): Likewise.
12853 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12854 (streamer_write_tree_header): Likewise.
12855 (streamer_write_integer_cst): Likewise.
12856 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12857 (build_constructors): Likewise.
12858 (array_value_type): Likewise.
12859 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12860 (vect_check_gather): Likewise.
12861 * tree-vect-generic.c (build_replicated_const): Likewise.
12862 (expand_vector_divmod): Likewise.
12863 * tree-vect-loop.c (vect_transform_loop): Likewise.
12864 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12865 (vect_do_peeling_for_alignment): Likewise.
12866 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12867 * tree-vrp.c: Include wide-int.h.
12868 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
12869 (extract_range_from_assert): Use wide-int interfaces.
12870 (vrp_int_const_binop): Likewise.
12871 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
12872 double_int pointers.
12873 (ranges_from_anti_range): Use wide-int interfaces.
12874 (quad_int_cmp): Delete.
12875 (quad_int_pair_sort): Likewise.
12876 (extract_range_from_binary_expr_1): Use wide-int interfaces.
12877 (extract_range_from_unary_expr_1): Likewise.
12878 (adjust_range_with_scev): Likewise.
12879 (masked_increment): Take and return wide_ints rather than double_ints.
12880 (register_edge_assert_for_2): Use wide-int interfaces.
12881 (check_array_ref): Likewise.
12882 (search_for_addr_array): Likewise.
12883 (maybe_set_nonzero_bits): Likewise.
12884 (union_ranges): Pass an integer of the correct type instead of
12885 using integer_one_node.
12886 (intersect_ranges): Likewise.
12887 (simplify_truth_ops_using_ranges): Likewise.
12888 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
12889 (range_fits_type_p): Likewise.
12890 (simplify_cond_using_ranges): Likewise. Take a signop rather than
12891 a bool.
12892 (simplify_conversion_using_ranges): Use wide-int interfaces.
12893 (simplify_float_conversion_using_ranges): Likewise.
12894 (vrp_finalize): Likewise.
12895 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
12896 (gimple_stringops_transform): Likewise.
12897 * varasm.c (decode_addr_const): Likewise.
12898 (const_hash_1): Likewise.
12899 (const_rtx_hash_1): Likewise
12900 (output_constant): Likewise.
12901 (array_size_for_constructor): Likewise.
12902 (output_constructor_regular_field): Likewise.
12903 (output_constructor_bitfield): Likewise.
12904 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
12905 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
12906 GENERATOR_FILEs.
12907 * gencheck.c: Define BITS_PER_UNIT.
12908 * wide-int.cc: New.
12909 * wide-int.h: New.
12910 * wide-int-print.cc: New.
12911 * wide-int-print.h: New.
12912
12913 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12914
12915 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
12916
12917 2014-05-06 Richard Biener <rguenther@suse.de>
12918
12919 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
12920 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
12921 (TODO_verify_all): Adjust.
12922 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
12923 TODO_verify_stmts and TODO_verify_rtl_sharing.
12924 * bb-reorder.c: Likewise.
12925 * cfgexpand.c: Likewise.
12926 * cprop.c: Likewise.
12927 * cse.c: Likewise.
12928 * function.c: Likewise.
12929 * fwprop.c: Likewise.
12930 * gcse.c: Likewise.
12931 * gimple-ssa-isolate-paths.c: Likewise.
12932 * gimple-ssa-strength-reduction.c: Likewise.
12933 * ipa-split.c: Likewise.
12934 * loop-init.c: Likewise.
12935 * loop-unroll.c: Likewise.
12936 * lower-subreg.c: Likewise.
12937 * modulo-sched.c: Likewise.
12938 * postreload-gcse.c: Likewise.
12939 * predict.c: Likewise.
12940 * recog.c: Likewise.
12941 * sched-rgn.c: Likewise.
12942 * store-motion.c: Likewise.
12943 * tracer.c: Likewise.
12944 * trans-mem.c: Likewise.
12945 * tree-call-cdce.c: Likewise.
12946 * tree-cfg.c: Likewise.
12947 * tree-cfgcleanup.c: Likewise.
12948 * tree-complex.c: Likewise.
12949 * tree-eh.c: Likewise.
12950 * tree-emutls.c: Likewise.
12951 * tree-if-conv.c: Likewise.
12952 * tree-into-ssa.c: Likewise.
12953 * tree-loop-distribution.c: Likewise.
12954 * tree-object-size.c: Likewise.
12955 * tree-parloops.c: Likewise.
12956 * tree-pass.h: Likewise.
12957 * tree-sra.c: Likewise.
12958 * tree-ssa-ccp.c: Likewise.
12959 * tree-ssa-copy.c: Likewise.
12960 * tree-ssa-copyrename.c: Likewise.
12961 * tree-ssa-dce.c: Likewise.
12962 * tree-ssa-dom.c: Likewise.
12963 * tree-ssa-dse.c: Likewise.
12964 * tree-ssa-forwprop.c: Likewise.
12965 * tree-ssa-ifcombine.c: Likewise.
12966 * tree-ssa-loop-ch.c: Likewise.
12967 * tree-ssa-loop-ivcanon.c: Likewise.
12968 * tree-ssa-loop.c: Likewise.
12969 * tree-ssa-math-opts.c: Likewise.
12970 * tree-ssa-phiopt.c: Likewise.
12971 * tree-ssa-phiprop.c: Likewise.
12972 * tree-ssa-pre.c: Likewise.
12973 * tree-ssa-reassoc.c: Likewise.
12974 * tree-ssa-sink.c: Likewise.
12975 * tree-ssa-strlen.c: Likewise.
12976 * tree-ssa-tail-merge.c: Likewise.
12977 * tree-ssa-uncprop.c: Likewise.
12978 * tree-switch-conversion.c: Likewise.
12979 * tree-tailcall.c: Likewise.
12980 * tree-vect-generic.c: Likewise.
12981 * tree-vectorizer.c: Likewise.
12982 * tree-vrp.c: Likewise.
12983 * tsan.c: Likewise.
12984 * var-tracking.c: Likewise.
12985 * bt-load.c: Likewise.
12986 * cfgcleanup.c: Likewise.
12987 * combine-stack-adj.c: Likewise.
12988 * combine.c: Likewise.
12989 * compare-elim.c: Likewise.
12990 * config/epiphany/resolve-sw-modes.c: Likewise.
12991 * config/i386/i386.c: Likewise.
12992 * config/mips/mips.c: Likewise.
12993 * config/s390/s390.c: Likewise.
12994 * config/sh/sh_treg_combine.cc: Likewise.
12995 * config/sparc/sparc.c: Likewise.
12996 * dce.c: Likewise.
12997 * dse.c: Likewise.
12998 * final.c: Likewise.
12999 * ifcvt.c: Likewise.
13000 * mode-switching.c: Likewise.
13001 * passes.c: Likewise.
13002 * postreload.c: Likewise.
13003 * ree.c: Likewise.
13004 * reg-stack.c: Likewise.
13005 * regcprop.c: Likewise.
13006 * regrename.c: Likewise.
13007 * web.c: Likewise.
13008
13009 2014-05-06 Richard Biener <rguenther@suse.de>
13010
13011 PR middle-end/61070
13012 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13013 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13014
13015 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13016
13017 PR ipa/60965
13018 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13019
13020 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13021 Tom de Vries <tom@codesourcery.com>
13022
13023 * target.def (call_fusage_contains_non_callee_clobbers): New
13024 DEFHOOKPOD.
13025 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13026 Hooks to @menu.
13027 (@node Miscellaneous Register Hooks): New node.
13028 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13029 * doc/tm.texi: Regenerate.
13030
13031 2014-05-05 Marek Polacek <polacek@redhat.com>
13032
13033 PR driver/61065
13034 * opts.c (common_handle_option): Call error_at instead of warning_at.
13035
13036 2014-05-05 Richard Biener <rguenther@suse.de>
13037
13038 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13039 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13040 under the TODO_verify_il umbrella.
13041
13042 2014-05-05 Richard Biener <rguenther@suse.de>
13043
13044 * passes.c (execute_function_todo): Move TODO_verify_flow under
13045 the TODO_verify_ul umbrella.
13046
13047 2014-05-05 Richard Biener <rguenther@suse.de>
13048
13049 PR middle-end/61010
13050 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13051 X & CST away from a CST that is the mask of a mode.
13052
13053 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13054
13055 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13056 int argument to enum machine_mode.
13057 (picochip_class_max_nregs): Ditto.
13058 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13059 (picochip_class_max_nregs): Ditto.
13060
13061 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13062
13063 * target.def: Add new target hook.
13064 * doc/tm.texi: Regenerate.
13065 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13066 * targhooks.c (default_keep_leaf_when_profiled): New function.
13067
13068 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13069 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13070
13071 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13072
13073 PR tree-optimization/60363
13074 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13075 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13076 (update_destination_phis): New parameter.
13077 (create_edge_and_update_destination_phis): Ditto.
13078 (ssa_fix_duplicate_block_edges): Pass new arguments.
13079 (thread_single_edge): Ditto.
13080
13081 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13082
13083 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13084 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13085 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13086 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13087 Use RS6000_BTM_HARD_FLOAT.
13088 (BU_MISC_2): Likewise.
13089 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13090 RS6000_BTM_HARD_FLOAT.
13091 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13092 is explicitly used.
13093 (rs6000_invalid_builtin): Add hard floating builtin support.
13094 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13095 hard float builtins.
13096 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13097
13098 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13099
13100 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13101 Add missing function* argument.
13102
13103 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13104
13105 * lra-constraints.c (valid_address_p): Move earlier in file.
13106 Add a constraint argument to the address_info version.
13107 (satisfies_memory_constraint_p): New function.
13108 (satisfies_address_constraint_p): Likewise.
13109 (process_alt_operands, curr_insn_transform): Use them.
13110 (process_address): Pass the constraint to valid_address_p when
13111 checking address operands.
13112
13113 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13114
13115 * config/mips/mips.c (mips_isa_rev): New variable.
13116 (mips_set_architecture): Set it.
13117 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13118 from mips_isa_rev.
13119 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13120 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13121 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13122 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13123 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13124 conditions in terms of mips_isa_rev.
13125 (mips_isa_rev): Declare.
13126
13127 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13128
13129 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13130 (prob_unlikely, prob_likely): Make variables const.
13131
13132 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13133
13134 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13135
13136 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13137
13138 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13139
13140 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13141
13142 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13143 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13144 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13145 functions.
13146 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13147 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13148 sh_pass_in_reg_p.
13149 Replace usage of ROUND_REG with sh_round_reg.
13150 Use CEIL instead of ROUND_ADVANCE.
13151
13152 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13153
13154 PR target/61026
13155 * config/sh/sh.c: Include stdlib headers before everything else.
13156
13157 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13158
13159 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13160 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13161 (gimplify_adjust_omp_clauses): Simd region is never
13162 directly nested in combined parallel. Instead, for linear
13163 with copyin/copyout, if in combined for simd loop, make decl
13164 firstprivate/lastprivate on OMP_FOR.
13165 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13166 expand_omp_for_static_chunk): When setting endvar, also set
13167 fd->loop.v to the same value.
13168
13169 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13170
13171 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13172
13173 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13174
13175 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13176 expression.
13177
13178 2014-05-02 Marek Polacek <polacek@redhat.com>
13179
13180 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13181
13182 2014-05-02 Kito Cheng <kito@0xlab.org>
13183
13184 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13185 to a C expression marco.
13186 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13187 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13188 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13189 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13190 HONOR_REG_ALLOC_ORDER.
13191 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13192
13193 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13194
13195 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13196
13197 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13198
13199 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13200
13201 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13202
13203 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13204 (convert_scalar_cond_reduction): Likewise.
13205 (predicate_scalar_phi): Add recognition and transformation
13206 of simple conditioanl reduction to be vectorizable.
13207
13208 2014-05-01 Marek Polacek <polacek@redhat.com>
13209
13210 PR c/43245
13211 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13212
13213 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13214
13215 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13216 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13217 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13218 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13219 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13220 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13221 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13222 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13223
13224 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13225
13226 * config/arc/arc.opt (mlra): Move comment above option name
13227 to avoid mis-parsing as language options.
13228
13229 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13230
13231 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13232 * config/sol2.h: ... here.
13233 * config/sol2-10.h: Remove.
13234
13235 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13236 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13237 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13238 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13239 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13240 * config/sol2.h: ... here.
13241 (SECTION_NAME_FORMAT): Don't redefine.
13242 (STARTFILE_ARCH32_SPEC): Rename to ...
13243 (STARTFILE_ARCH_SPEC): ... this.
13244 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13245 * config/sparc/sol2.h: ... here.
13246 (SECTION_NAME_FORMAT): Don't undef.
13247 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13248 (SUBTARGET_EXTRA_SPECS): Remove.
13249 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13250
13251 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13252 (MD_STARTFILE_PREFIX): Remove.
13253 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13254 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13255 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13256 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13257 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13258 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13259 * config/i386/sol2.h: ... here.
13260 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13261 * config/i386/sol2-bi.h: Remove.
13262 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13263 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13264
13265 * config/i386/t-sol2-64: Rename to ...
13266 * config/i386/t-sol2: ... this.
13267 * config/sparc/t-sol2-64: Rename to ...
13268 * config/sparc/t-sol2: ... this.
13269
13270 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13271 sol2_tm_file_head, sol2_tm_file_tail.
13272 Include ${cpu_type}/sol2.h before sol2.h.
13273 Remove sol2-10.h.
13274 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13275 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13276 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13277 Reflect i386/t-sol2-64 renaming.
13278 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13279 Reflect sparc/t-sol2-64 renaming.
13280
13281 2014-04-30 Richard Biener <rguenther@suse.de>
13282
13283 * passes.c (execute_function_todo): Move TODO_verify_stmts
13284 and TODO_verify_ssa under the TODO_verify_il umbrella.
13285 * tree-ssa.h (verify_ssa): Adjust prototype.
13286 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13287 we should verify SSA operands.
13288 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13289 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13290 whether we should verify whether not throwing stmts have EH info.
13291 * graphite-scop-detection.c (create_sese_edges): Adjust.
13292 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13293 * tree-eh.c (lower_try_finally_switch): Do not add the
13294 default case label twice.
13295
13296 2014-04-30 Marek Polacek <polacek@redhat.com>
13297
13298 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13299 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13300 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13301 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13302
13303 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13304
13305 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13306 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13307 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13308 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13309 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13310 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13311 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13312 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13313
13314 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13315
13316 * tree-cfg.c (dump_function_to_file): Dump the return type of
13317 functions, in a line to itself before the function body, mimicking
13318 the layout of a C function.
13319
13320 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13321
13322 PR tree-optimization/60971
13323 * tree-tailcall.c (process_assignment): Reject conversions which
13324 reduce precision.
13325
13326 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13327
13328 * calls.c (initialize_argument_information): Always treat
13329 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13330 (expand_call): Likewise.
13331 (emit_library_call_calue_1): Likewise.
13332 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13333 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13334 code accordingly.
13335
13336 2014-04-29 Nick Clifton <nickc@redhat.com>
13337
13338 * config/msp430/msp430.md (umulsidi): Fix typo.
13339 (mulhisi3): Enable even inside interrupt handlers.
13340 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13341 bigger return address pushed in large mode.
13342
13343 2014-04-29 Nick Clifton <nickc@redhat.com>
13344
13345 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13346 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13347 available modes.
13348 * config/m32r/m32r.c (init_reg_tables): Likewise.
13349 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13350 enum to hold the modes.
13351
13352 2014-04-29 Richard Biener <rguenther@suse.de>
13353
13354 * dominance.c (free_dominance_info): Add overload with
13355 function parameter.
13356 (dom_info_state): Likewise.
13357 (dom_info_available_p): Likewise.
13358 * basic-block.h (free_dominance_info, dom_info_state,
13359 dom_info_available_p): Declare overloads.
13360 * passes.c (execute_function_todo): Verify that verifiers
13361 don't change dominator info state. Drop dominator info
13362 for IPA pass invocations.
13363 * cgraph.c (release_function_body): Restore asserts that
13364 dominator information is released.
13365
13366 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13367
13368 * doc/invoke.texi: Fix typo.
13369 * tree-vrp.c: Fix typos.
13370 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13371
13372 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13373
13374 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13375
13376 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13377
13378 * config/aarch64/aarch64-builtins.c
13379 (aarch64_types_storestruct_lane_qualifiers): New.
13380 (TYPES_STORESTRUCT_LANE): Likewise.
13381 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13382 (st3_lane): Likewise.
13383 (st4_lane): Likewise.
13384 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13385 (vec_store_lanesci_lane<mode>): Likewise.
13386 (vec_store_lanesxi_lane<mode>): Likewise.
13387 (aarch64_st2_lane<VQ:mode>): Likewise.
13388 (aarch64_st3_lane<VQ:mode>): Likewise.
13389 (aarch64_st4_lane<VQ:mode>): Likewise.
13390 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13391 * config/aarch64/arm_neon.h
13392 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13393 use new macro arguments.
13394 (__ST3_LANE_FUNC): Likewise.
13395 (__ST4_LANE_FUNC): Likewise.
13396 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13397 (V_THREE_ELEM): Likewise.
13398 (V_FOUR_ELEM): Likewise.
13399
13400 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13401
13402 * doc/gimple.texi: Replace the description of the now-defunct
13403 union gimple_statement_d with a diagram showing the
13404 gimple_statement_base class hierarchy and its relationships to
13405 the GSS_ and GIMPLE_ enums.
13406
13407 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13408
13409 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13410 * config/aarch64/aarch64.c
13411 (aarch64_cannot_change_mode_class): Weaken conditions.
13412 (aarch64_modes_tieable_p): New.
13413 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13414
13415 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13416
13417 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13418 (loadsync_<mode>): Change mode.
13419 (load_quadpti, store_quadpti): New.
13420 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13421 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13422
13423 2014-04-28 Martin Jambor <mjambor@suse.cz>
13424
13425 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13426 same alias type as the original statement.
13427 (subreplacement_assignment_data): New type.
13428 (handle_unscalarized_data_in_subtree): New type of parameter,
13429 generate new memory accesses with same alias type as the original
13430 statement.
13431 (load_assign_lhs_subreplacements): Likewise.
13432 (sra_modify_constructor_assign): Generate new memory accesses with
13433 same alias type as the original statement.
13434
13435 2014-04-28 Richard Biener <rguenther@suse.de>
13436
13437 * tree-pass.h (TODO_verify_il): Define.
13438 (TODO_verify_all): Complete properly.
13439 * passes.c (execute_function_todo): Move existing loop-closed
13440 SSA verification under TODO_verify_il.
13441 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13442 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13443 Fix tree sharing issue.
13444
13445 2014-04-28 Richard Biener <rguenther@suse.de>
13446
13447 PR middle-end/60092
13448 * builtins.def (DEF_C11_BUILTIN): Add.
13449 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13450 * coretypes.h (enum function_class): Add function_c11_misc.
13451 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13452 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13453 (call_may_clobber_ref_p_1): Likewise.
13454 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13455 (mark_all_reaching_defs_necessary_1): Likewise.
13456 (propagate_necessity): Likewise.
13457 (eliminate_unnecessary_stmts): Likewise.
13458 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13459
13460 2014-04-28 Richard Biener <rguenther@suse.de>
13461
13462 * tree-vrp.c (vrp_var_may_overflow): Remove.
13463 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13464 with overflow immediately bump to one before that value and
13465 let iteration figure out overflow status.
13466
13467 2014-04-28 Richard Biener <rguenther@suse.de>
13468
13469 * configure.ac: Do valgrind header checks unconditionally.
13470 Add --enable-valgrind-annotations.
13471 * system.h: Guard valgrind header inclusion with
13472 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13473 * alloc-pool.c (pool_alloc, pool_free): Use
13474 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13475 to guard possibly dead code.
13476 * config.in: Regenerated.
13477 * configure: Likewise.
13478
13479 2014-04-28 Jeff Law <law@redhat.com>
13480
13481 PR tree-optimization/60902
13482 * tree-ssa-threadedge.c
13483 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13484 over real defs when invalidating outputs from statements that do not
13485 produce useful outputs for threading.
13486
13487 2014-04-28 Richard Biener <rguenther@suse.de>
13488
13489 PR tree-optimization/60979
13490 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13491 SCOPs that end in a block with a successor with abnormal
13492 predecessors.
13493
13494 2014-04-28 Richard Biener <rguenther@suse.de>
13495
13496 * tree-pass.h (execute_pass_list): Adjust prototype.
13497 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13498 (do_per_function): Change callback signature, push all actual
13499 work to the callbals.
13500 (do_per_function_toporder): Likewise.
13501 (execute_function_dump): Adjust.
13502 (execute_function_todo): Likewise.
13503 (clear_last_verified): Likewise.
13504 (verify_curr_properties): Likewise.
13505 (update_properties_after_pass): Likewise.
13506 (execute_pass_list_1): Split out from ...
13507 (execute_pass_list): ... here. Adjust.
13508 (execute_ipa_pass_list): Likewise.
13509 * cgraphunit.c (cgraph_add_new_function): Adjust.
13510 (analyze_function): Likewise.
13511 (expand_function): Likewise.
13512 * cgraph.c (release_function_body): Free dominance info
13513 here instead of asserting it was magically freed elsewhere.
13514
13515 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13516
13517 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13518 * configure: Regenerate.
13519 * config/sparc/sparc.opt (muser-mode): New option.
13520 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13521 for LEON3.
13522 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13523 * doc/invoke.texi (SPARC options): Document -muser-mode.
13524
13525 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13526
13527 * cselib.c (find_slot_memmode): Delete.
13528 (cselib_hasher): Change compare_type to a struct.
13529 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13530 constants.
13531 (preserve_constants_and_equivs): Adjust for new compare_type.
13532 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13533 (wrap_constant): Delete.
13534 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13535
13536 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13537
13538 * doc/install.texi (Building with profile feedback): Remove
13539 outdated sentence.
13540
13541 2014-04-26 Tom de Vries <tom@codesourcery.com>
13542
13543 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13544 array accesses.
13545
13546 2014-04-25 Cary Coutant <ccoutant@google.com>
13547
13548 PR debug/60929
13549 * dwarf2out.c (should_move_die_to_comdat): A type definition
13550 can contain a subprogram definition, but don't move it to a
13551 comdat unit.
13552 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13553 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13554 from original DIE.
13555 (clone_tree_hash): Rename to...
13556 (clone_tree_partial): ...this; change callers. Copy
13557 DW_TAG_subprogram DIEs as declarations.
13558 (copy_decls_walk): Don't copy children of a declaration into a
13559 type unit.
13560
13561 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13562
13563 PR target/60969
13564 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13565 alternative 12.
13566
13567 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13568
13569 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13570 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13571 reg for long_call.
13572 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13573 restriction.
13574
13575 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13576
13577 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13578
13579 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13580
13581 PR tree-optimization/60930
13582 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13583 creating a multiply candidate by folding two constant
13584 multiplicands when the result overflows.
13585
13586 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13587
13588 PR tree-optimization/60960
13589 * tree-vect-generic.c (expand_vector_operation): Only call
13590 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13591
13592 2014-04-25 Tom de Vries <tom@codesourcery.com>
13593
13594 * expr.c (clobber_reg_mode): New function.
13595 * expr.h (clobber_reg): New function.
13596
13597 2014-04-25 Tom de Vries <tom@codesourcery.com>
13598
13599 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13600 clobbers.
13601
13602 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13603 Tom de Vries <tom@codesourcery.com>
13604
13605 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13606 handle.
13607 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13608 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13609 new argument to find_all_hard_reg_sets call.
13610
13611 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13612
13613 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13614 Use HOST_WIDE_INT_C for mask literal.
13615 (aarch_rev16_shleft_mask_imm_p): Likewise.
13616
13617 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13618
13619 PR target/60941
13620 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13621
13622 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13623
13624 PR preprocessor/56540
13625 * config/i386/i386-c.c (ix86_target_macros): Define
13626 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13627
13628 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13629
13630 * configure.ac (tga_func): Remove.
13631 (LIB_TLS_SPEC): Remove.
13632 * configure: Regenerate.
13633 * config.in: Regenerate.
13634 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13635
13636 2014-04-25 Richard Biener <rguenther@suse.de>
13637
13638 PR ipa/60912
13639 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13640 call stmt use/clobber sets during stmt walk instead of
13641 walking the possibly incomplete set of caller edges.
13642
13643 2014-04-25 Richard Biener <rguenther@suse.de>
13644
13645 PR ipa/60911
13646 * passes.c (apply_ipa_transforms): Inline into only caller ...
13647 (execute_one_pass): ... here. Properly bring in function
13648 bodies for nodes we want to apply IPA transforms to.
13649
13650 2014-04-24 Cong Hou <congh@google.com>
13651
13652 PR tree-optimization/60896
13653 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13654 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13655 (vect_mark_pattern_stmts): Set the def type of all statements in
13656 PATTERN_DEF_SEQ as vect_internal_def.
13657
13658 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13659
13660 * doc/extend.texi (PowerPC Built-in Functions): Document new
13661 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13662 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13663
13664 * config/rs6000/predicates.md (const_0_to_3_operand): New
13665 predicate to match 0..3 integer constants.
13666
13667 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13668 to support adding miscellaneous builtin functions.
13669 (BU_DFP_MISC_2): Likewise.
13670 (BU_P7_MISC_1): Likewise.
13671 (BU_P7_MISC_2): Likewise.
13672 (BU_P8V_MISC_3): Likewise.
13673 (BU_MISC_1): Likewise.
13674 (BU_MISC_2): Likewise.
13675 (DIVWE): Add extended divide builtin functions.
13676 (DIVWEO): Likewise.
13677 (DIVWEU): Likewise.
13678 (DIVWEUO): Likewise.
13679 (DIVDE): Likewise.
13680 (DIVDEO): Likewise.
13681 (DIVDEU): Likewise.
13682 (DIVDEUO): Likewise.
13683 (DXEX): Add decimal floating-point builtin functions.
13684 (DXEXQ): Likewise.
13685 (DDEDPD): Likewise.
13686 (DDEDPDQ): Likewise.
13687 (DENBCD): Likewise.
13688 (DENBCDQ): Likewise.
13689 (DIEX): Likewise.
13690 (DIEXQ): Likewise.
13691 (DSCLI): Likewise.
13692 (DSCLIQ): Likewise.
13693 (DSCRI): Likewise.
13694 (DSCRIQ): Likewise.
13695 (CDTBCD): Add new BCD builtin functions.
13696 (CBCDTD): Likewise.
13697 (ADDG6S): Likewise.
13698 (BCDADD): Likewise.
13699 (BCDADD_LT): Likewise.
13700 (BCDADD_EQ): Likewise.
13701 (BCDADD_GT): Likewise.
13702 (BCDADD_OV): Likewise.
13703 (BCDSUB): Likewise.
13704 (BCDSUB_LT): Likewise.
13705 (BCDSUB_EQ): Likewise.
13706 (BCDSUB_GT): Likewise.
13707 (BCDSUB_OV): Likewise.
13708 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13709 (UNPACK_TD): Likewise.
13710 (PACK_TF): Likewise.
13711 (UNPACK_TF): Likewise.
13712 (UNPACK_TF_0): Likewise.
13713 (UNPACK_TF_1): Likewise.
13714 (PACK_V1TI): Likewise.
13715 (UNPACK_V1TI): Likewise.
13716
13717 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13718 support for decimal floating point builtin functions.
13719 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13720 functions that take constant arguments.
13721 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13722 (rs6000_init_builtins): Setup long double, _Decimal64, and
13723 _Decimal128 types for new builtin functions.
13724 (builtin_function_type): Set the unsigned flags appropriately for
13725 the new builtin functions.
13726 (rs6000_opt_masks): Add support for decimal floating point builtin
13727 functions.
13728
13729 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13730 floating point builtin functions.
13731 (RS6000_BTM_COMMON): Likewise.
13732 (RS6000_BTI_long_double): Likewise.
13733 (RS6000_BTI_dfloat64): Likewise.
13734 (RS6000_BTI_dfloat128): Likewise.
13735 (long_double_type_internal_node): Likewise.
13736 (dfloat64_type_internal_node): Likewise.
13737 (dfloat128_type_internal_node): Likewise.
13738
13739 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13740 2.07 bcd arithmetic instructions.
13741 (UNSPEC_BCDSUB): Likewise.
13742 (UNSPEC_BCD_OVERFLOW): Likewise.
13743 (UNSPEC_BCD_ADD_SUB): Likewise.
13744 (bcd_add_sub): Likewise.
13745 (BCD_TEST): Likewise.
13746 (bcd<bcd_add_sub>): Likewise.
13747 (bcd<bcd_add_sub>_test): Likewise.
13748 (bcd<bcd_add_sub>_test2): Likewise.
13749 (bcd<bcd_add_sub>_<code>): Likewise.
13750 (peephole2 for combined bcd ops): Likewise.
13751
13752 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13753 decimal floating point builtin functions.
13754 (UNSPEC_DENBCD): Likewise.
13755 (UNSPEC_DXEX): Likewise.
13756 (UNSPEC_DIEX): Likewise.
13757 (UNSPEC_DSCLI): Likewise.
13758 (UNSPEC_DSCRI): Likewise.
13759 (D64_D128): Likewise.
13760 (dfp_suffix): Likewise.
13761 (dfp_ddedpd_<mode>): Likewise.
13762 (dfp_denbcd_<mode>): Likewise.
13763 (dfp_dxex_<mode>): Likewise.
13764 (dfp_diex_<mode>): Likewise.
13765 (dfp_dscli_<mode>): Likewise.
13766 (dfp_dscri_<mode>): Likewise.
13767
13768 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13769 builtin functions.
13770 (UNSPEC_CDTBCD): Likewise.
13771 (UNSPEC_CBCDTD): Likewise.
13772 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13773 (UNSPEC_DIVEO): Likewise.
13774 (UNSPEC_DIVEU): Likewise.
13775 (UNSPEC_DIVEUO): Likewise.
13776 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13777 pack/unpack 128-bit types.
13778 (UNSPEC_PACK_128BIT): Likewise.
13779 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13780 (udiv<mode>3): Use idiv_ldiv mode attribute.
13781 (div<mode>3): Likewise.
13782 (addg6s): Add new BCD builtin functions.
13783 (cdtbcd): Likewise.
13784 (cbcdtd): Likewise.
13785 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13786 (div_extend): Likewise.
13787 (div<div_extend>_<mode>"): Likewise.
13788 (FP128_64): Add support for new builtin functions to pack/unpack
13789 128-bit types.
13790 (unpack<mode>): Likewise.
13791 (unpacktf_0): Likewise.
13792 (unpacktf_1): Likewise.
13793 (unpack<mode>_dm): Likewise.
13794 (unpack<mode>_nodm): Likewise.
13795 (pack<mode>): Likewise.
13796 (unpackv1ti): Likewise.
13797 (packv1ti): Likewise.
13798
13799 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13800
13801 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13802 is disabled.
13803
13804 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13805
13806 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13807 * gimplify.c (omp_is_private): Change last argument's type to int.
13808 Only diagnose lastprivate if the simd argument is 1, only diagnose
13809 linear if the simd argument is 2.
13810 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13811 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13812 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13813 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13814 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13815 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13816 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13817 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13818 * tree-nested.c (convert_nonlocal_omp_clauses,
13819 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13820
13821 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13822
13823 PR target/60822
13824 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13825 operand 1.
13826
13827 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13828
13829 * flag-types.h (enum ivar_visibility): Add.
13830
13831 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13832
13833 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13834 function * argument.
13835
13836 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13837
13838 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13839
13840 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13841 Tom de Vries <tom@codesourcery.com>
13842
13843 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13844 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13845 reg-note.
13846 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13847 * emit-rtl.c (try_split): Same.
13848
13849 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13850 Tom de Vries <tom@codesourcery.com>
13851
13852 * common.opt (fuse-caller-save): New option.
13853
13854 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13855
13856 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13857 elements for big-endian.
13858
13859 2014-04-24 Richard Biener <rguenther@suse.de>
13860
13861 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13862 during TER and instead use the sepops interface for expanding
13863 non-GIMPLE_SINGLE_RHS.
13864
13865 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13866
13867 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
13868 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
13869
13870 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13871
13872 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
13873 assembler 64-bit option.
13874 * configure: Regenerate.
13875
13876 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13877
13878 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
13879 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
13880 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
13881 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
13882 (TARGET_CRYPTO): Take TARGET_SIMD into account.
13883
13884 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13885
13886 * config/aarch64/aarch64-builtins.c
13887 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
13888 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
13889 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
13890 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
13891 builtins.
13892 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
13893 (Vrevsuff): New mode attribute.
13894
13895 2014-04-24 Terry Guo <terry.guo@arm.com>
13896
13897 * config/arm/arm.h (machine_function): Define variable
13898 after_arm_reorg here.
13899 * config/arm/arm.c (after_arm_reorg): Remove the definition.
13900 (arm_split_constant): Update the way to access variable
13901 after_arm_reorg.
13902 (arm_reorg): Ditto.
13903 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
13904
13905 2014-04-23 Tom de Vries <tom@codesourcery.com>
13906
13907 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
13908
13909 2014-04-23 David Malcolm <dmalcolm@redhat.com>
13910
13911 * is-a.h: Update comments to reflect the following changes to the
13912 "pointerness" of the API, making the template parameter match the
13913 return type, allowing use of is-a.h with typedefs of pointers.
13914 (is_a_helper::cast): Return a T rather then a pointer to a T, so
13915 that the return type matches the parameter to the is_a_helper.
13916 (as_a): Likewise.
13917 (dyn_cast): Likewise.
13918
13919 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
13920 pointer from the is-a.h API.
13921
13922 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
13923 (is_a_helper <cgraph_node *>::test): ...this, matching change to
13924 is-a.h API.
13925 (is_a_helper <varpool_node>::test): Likewise, convert to...
13926 (is_a_helper <varpool_node *>::test): ...this.
13927
13928 (varpool_first_variable): Update for removal of implicit pointer
13929 from the is-a.h API.
13930 (varpool_next_variable): Likewise.
13931 (varpool_first_static_initializer): Likewise.
13932 (varpool_next_static_initializer): Likewise.
13933 (varpool_first_defined_variable): Likewise.
13934 (varpool_next_defined_variable): Likewise.
13935 (cgraph_first_defined_function): Likewise.
13936 (cgraph_next_defined_function): Likewise.
13937 (cgraph_first_function): Likewise.
13938 (cgraph_next_function): Likewise.
13939 (cgraph_first_function_with_gimple_body): Likewise.
13940 (cgraph_next_function_with_gimple_body): Likewise.
13941 (cgraph_alias_target): Likewise.
13942 (varpool_alias_target): Likewise.
13943 (cgraph_function_or_thunk_node): Likewise.
13944 (varpool_variable_node): Likewise.
13945 (symtab_real_symbol_p): Likewise.
13946 * cgraphunit.c (referred_to_p): Likewise.
13947 (analyze_functions): Likewise.
13948 (handle_alias_pairs): Likewise.
13949 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
13950 * gimple-ssa.h (gimple_vuse_op): Likewise.
13951 (gimple_vdef_op): Likewise.
13952 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
13953 * gimple.c (gimple_build_asm_1): Likewise.
13954 (gimple_build_try): Likewise.
13955 (gimple_build_resx): Likewise.
13956 (gimple_build_eh_dispatch): Likewise.
13957 (gimple_build_omp_for): Likewise.
13958 (gimple_omp_for_set_clauses): Likewise.
13959
13960 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
13961 (is_a_helper <gimple_statement_asm *>::test): ...this.
13962 (is_a_helper <gimple_statement_bind>::test): Convert to...
13963 (is_a_helper <gimple_statement_bind *>::test): ...this.
13964 (is_a_helper <gimple_statement_call>::test): Convert to...
13965 (is_a_helper <gimple_statement_call *>::test): ...this.
13966 (is_a_helper <gimple_statement_catch>::test): Convert to...
13967 (is_a_helper <gimple_statement_catch *>::test): ...this.
13968 (is_a_helper <gimple_statement_resx>::test): Convert to...
13969 (is_a_helper <gimple_statement_resx *>::test): ...this.
13970 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
13971 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
13972 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
13973 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
13974 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
13975 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
13976 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
13977 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
13978 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
13979 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
13980 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
13981 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
13982 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
13983 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
13984 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
13985 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
13986 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
13987 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
13988 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
13989 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
13990 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
13991 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
13992 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
13993 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
13994 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
13995 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
13996 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
13997 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
13998 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
13999 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14000 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14001 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14002 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14003 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14004 (is_a_helper <gimple_statement_phi>::test): Convert to...
14005 (is_a_helper <gimple_statement_phi *>::test): ...this.
14006 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14007 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14008 (is_a_helper <gimple_statement_try>::test): Convert to...
14009 (is_a_helper <gimple_statement_try *>::test): ...this.
14010 (is_a_helper <gimple_statement_wce>::test): Convert to...
14011 (is_a_helper <gimple_statement_wce *>::test): ...this.
14012 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14013 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14014 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14015 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14016 (is_a_helper <const gimple_statement_call>::test): Convert to...
14017 (is_a_helper <const gimple_statement_call *>::test): ...this.
14018 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14019 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14020 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14021 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14022 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14023 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14024 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14025 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14026 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14027 Convert to...
14028 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14029 ...this.
14030 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14031 Convert to...
14032 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14033 ...this.
14034 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14035 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14036 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14037 to...
14038 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14039 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14040 to...
14041 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14042 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14043 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14044 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14045 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14046 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14047 to...
14048 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14049 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14050 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14051 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14052 to...
14053 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14054 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14055 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14056 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14057 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14058 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14059 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14060 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14061 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14062 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14063 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14064 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14065 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14066 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14067 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14068 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14069 to...
14070 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14071 ...this.
14072 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14073 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14074
14075 (gimple_use_ops): Update for removal of implicit pointer from the
14076 is-a.h API.
14077 (gimple_set_use_ops): Likewise.
14078 (gimple_vuse): Likewise.
14079 (gimple_vdef): Likewise.
14080 (gimple_vuse_ptr): Likewise.
14081 (gimple_vdef_ptr): Likewise.
14082 (gimple_set_vuse): Likewise.
14083 (gimple_set_vdef): Likewise.
14084 (gimple_omp_return_set_lhs): Likewise.
14085 (gimple_omp_return_lhs): Likewise.
14086 (gimple_omp_return_lhs_ptr): Likewise.
14087 (gimple_call_fntype): Likewise.
14088 (gimple_call_set_fntype): Likewise.
14089 (gimple_call_set_internal_fn): Likewise.
14090 (gimple_call_use_set): Likewise.
14091 (gimple_call_clobber_set): Likewise.
14092 (gimple_bind_vars): Likewise.
14093 (gimple_bind_set_vars): Likewise.
14094 (gimple_bind_body_ptr): Likewise.
14095 (gimple_bind_set_body): Likewise.
14096 (gimple_bind_add_stmt): Likewise.
14097 (gimple_bind_block): Likewise.
14098 (gimple_bind_set_block): Likewise.
14099 (gimple_asm_ninputs): Likewise.
14100 (gimple_asm_noutputs): Likewise.
14101 (gimple_asm_nclobbers): Likewise.
14102 (gimple_asm_nlabels): Likewise.
14103 (gimple_asm_input_op): Likewise.
14104 (gimple_asm_input_op_ptr): Likewise.
14105 (gimple_asm_output_op): Likewise.
14106 (gimple_asm_output_op_ptr): Likewise.
14107 (gimple_asm_set_output_op): Likewise.
14108 (gimple_asm_clobber_op): Likewise.
14109 (gimple_asm_set_clobber_op): Likewise.
14110 (gimple_asm_label_op): Likewise.
14111 (gimple_asm_set_label_op): Likewise.
14112 (gimple_asm_string): Likewise.
14113 (gimple_catch_types): Likewise.
14114 (gimple_catch_types_ptr): Likewise.
14115 (gimple_catch_handler_ptr): Likewise.
14116 (gimple_catch_set_types): Likewise.
14117 (gimple_catch_set_handler): Likewise.
14118 (gimple_eh_filter_types): Likewise.
14119 (gimple_eh_filter_types_ptr): Likewise.
14120 (gimple_eh_filter_failure_ptr): Likewise.
14121 (gimple_eh_filter_set_types): Likewise.
14122 (gimple_eh_filter_set_failure): Likewise.
14123 (gimple_eh_must_not_throw_fndecl): Likewise.
14124 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14125 (gimple_eh_else_n_body_ptr): Likewise.
14126 (gimple_eh_else_e_body_ptr): Likewise.
14127 (gimple_eh_else_set_n_body): Likewise.
14128 (gimple_eh_else_set_e_body): Likewise.
14129 (gimple_try_eval_ptr): Likewise.
14130 (gimple_try_cleanup_ptr): Likewise.
14131 (gimple_try_set_eval): Likewise.
14132 (gimple_try_set_cleanup): Likewise.
14133 (gimple_wce_cleanup_ptr): Likewise.
14134 (gimple_wce_set_cleanup): Likewise.
14135 (gimple_phi_capacity): Likewise.
14136 (gimple_phi_num_args): Likewise.
14137 (gimple_phi_result): Likewise.
14138 (gimple_phi_result_ptr): Likewise.
14139 (gimple_phi_set_result): Likewise.
14140 (gimple_phi_arg): Likewise.
14141 (gimple_phi_set_arg): Likewise.
14142 (gimple_resx_region): Likewise.
14143 (gimple_resx_set_region): Likewise.
14144 (gimple_eh_dispatch_region): Likewise.
14145 (gimple_eh_dispatch_set_region): Likewise.
14146 (gimple_omp_critical_name): Likewise.
14147 (gimple_omp_critical_name_ptr): Likewise.
14148 (gimple_omp_critical_set_name): Likewise.
14149 (gimple_omp_for_clauses): Likewise.
14150 (gimple_omp_for_clauses_ptr): Likewise.
14151 (gimple_omp_for_set_clauses): Likewise.
14152 (gimple_omp_for_collapse): Likewise.
14153 (gimple_omp_for_index): Likewise.
14154 (gimple_omp_for_index_ptr): Likewise.
14155 (gimple_omp_for_set_index): Likewise.
14156 (gimple_omp_for_initial): Likewise.
14157 (gimple_omp_for_initial_ptr): Likewise.
14158 (gimple_omp_for_set_initial): Likewise.
14159 (gimple_omp_for_final): Likewise.
14160 (gimple_omp_for_final_ptr): Likewise.
14161 (gimple_omp_for_set_final): Likewise.
14162 (gimple_omp_for_incr): Likewise.
14163 (gimple_omp_for_incr_ptr): Likewise.
14164 (gimple_omp_for_set_incr): Likewise.
14165 (gimple_omp_for_pre_body_ptr): Likewise.
14166 (gimple_omp_for_set_pre_body): Likewise.
14167 (gimple_omp_parallel_clauses): Likewise.
14168 (gimple_omp_parallel_clauses_ptr): Likewise.
14169 (gimple_omp_parallel_set_clauses): Likewise.
14170 (gimple_omp_parallel_child_fn): Likewise.
14171 (gimple_omp_parallel_child_fn_ptr): Likewise.
14172 (gimple_omp_parallel_set_child_fn): Likewise.
14173 (gimple_omp_parallel_data_arg): Likewise.
14174 (gimple_omp_parallel_data_arg_ptr): Likewise.
14175 (gimple_omp_parallel_set_data_arg): Likewise.
14176 (gimple_omp_task_clauses): Likewise.
14177 (gimple_omp_task_clauses_ptr): Likewise.
14178 (gimple_omp_task_set_clauses): Likewise.
14179 (gimple_omp_task_child_fn): Likewise.
14180 (gimple_omp_task_child_fn_ptr): Likewise.
14181 (gimple_omp_task_set_child_fn): Likewise.
14182 (gimple_omp_task_data_arg): Likewise.
14183 (gimple_omp_task_data_arg_ptr): Likewise.
14184 (gimple_omp_task_set_data_arg): Likewise.
14185 (gimple_omp_taskreg_clauses): Likewise.
14186 (gimple_omp_taskreg_clauses_ptr): Likewise.
14187 (gimple_omp_taskreg_set_clauses): Likewise.
14188 (gimple_omp_taskreg_child_fn): Likewise.
14189 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14190 (gimple_omp_taskreg_set_child_fn): Likewise.
14191 (gimple_omp_taskreg_data_arg): Likewise.
14192 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14193 (gimple_omp_taskreg_set_data_arg): Likewise.
14194 (gimple_omp_task_copy_fn): Likewise.
14195 (gimple_omp_task_copy_fn_ptr): Likewise.
14196 (gimple_omp_task_set_copy_fn): Likewise.
14197 (gimple_omp_task_arg_size): Likewise.
14198 (gimple_omp_task_arg_size_ptr): Likewise.
14199 (gimple_omp_task_set_arg_size): Likewise.
14200 (gimple_omp_task_arg_align): Likewise.
14201 (gimple_omp_task_arg_align_ptr): Likewise.
14202 (gimple_omp_task_set_arg_align): Likewise.
14203 (gimple_omp_single_clauses): Likewise.
14204 (gimple_omp_single_clauses_ptr): Likewise.
14205 (gimple_omp_single_set_clauses): Likewise.
14206 (gimple_omp_target_clauses): Likewise.
14207 (gimple_omp_target_clauses_ptr): Likewise.
14208 (gimple_omp_target_set_clauses): Likewise.
14209 (gimple_omp_target_child_fn): Likewise.
14210 (gimple_omp_target_child_fn_ptr): Likewise.
14211 (gimple_omp_target_set_child_fn): Likewise.
14212 (gimple_omp_target_data_arg): Likewise.
14213 (gimple_omp_target_data_arg_ptr): Likewise.
14214 (gimple_omp_target_set_data_arg): Likewise.
14215 (gimple_omp_teams_clauses): Likewise.
14216 (gimple_omp_teams_clauses_ptr): Likewise.
14217 (gimple_omp_teams_set_clauses): Likewise.
14218 (gimple_omp_sections_clauses): Likewise.
14219 (gimple_omp_sections_clauses_ptr): Likewise.
14220 (gimple_omp_sections_set_clauses): Likewise.
14221 (gimple_omp_sections_control): Likewise.
14222 (gimple_omp_sections_control_ptr): Likewise.
14223 (gimple_omp_sections_set_control): Likewise.
14224 (gimple_omp_for_set_cond): Likewise.
14225 (gimple_omp_for_cond): Likewise.
14226 (gimple_omp_atomic_store_set_val): Likewise.
14227 (gimple_omp_atomic_store_val): Likewise.
14228 (gimple_omp_atomic_store_val_ptr): Likewise.
14229 (gimple_omp_atomic_load_set_lhs): Likewise.
14230 (gimple_omp_atomic_load_lhs): Likewise.
14231 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14232 (gimple_omp_atomic_load_set_rhs): Likewise.
14233 (gimple_omp_atomic_load_rhs): Likewise.
14234 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14235 (gimple_omp_continue_control_def): Likewise.
14236 (gimple_omp_continue_control_def_ptr): Likewise.
14237 (gimple_omp_continue_set_control_def): Likewise.
14238 (gimple_omp_continue_control_use): Likewise.
14239 (gimple_omp_continue_control_use_ptr): Likewise.
14240 (gimple_omp_continue_set_control_use): Likewise.
14241 (gimple_transaction_body_ptr): Likewise.
14242 (gimple_transaction_label): Likewise.
14243 (gimple_transaction_label_ptr): Likewise.
14244 (gimple_transaction_set_body): Likewise.
14245 (gimple_transaction_set_label): Likewise.
14246
14247 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14248 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14249 * ipa-ref.c (ipa_record_reference): Likewise.
14250 * ipa-reference.c (analyze_function): Likewise.
14251 (ipa_reference_write_optimization_summary): Likewise.
14252 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14253 (address_taken_from_non_vtable_p): Likewise.
14254 (comdat_can_be_unshared_p_1): Likewise.
14255 * lto-cgraph.c (lto_output_ref): Likewise.
14256 (add_references): Likewise.
14257 (compute_ltrans_boundary): Likewise.
14258 (output_symtab): Likewise.
14259 (input_ref): Likewise.
14260 (input_cgraph_1): Likewise.
14261 (output_cgraph_opt_summary): Likewise.
14262 * lto-streamer-out.c (lto_output): Likewise.
14263 (output_symbol_p): Likewise.
14264 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14265 (lsei_start_function_in_partition): Likewise.
14266 (lsei_next_variable_in_partition): Likewise.
14267 (lsei_start_variable_in_partition): Likewise.
14268 * symtab.c (insert_to_assembler_name_hash): Likewise.
14269 (unlink_from_assembler_name_hash): Likewise.
14270 (symtab_unregister_node): Likewise.
14271 (symtab_remove_node): Likewise.
14272 (dump_symtab_node): Likewise.
14273 (verify_symtab_base): Likewise.
14274 (verify_symtab_node): Likewise.
14275 (symtab_make_decl_local): Likewise.
14276 (symtab_alias_ultimate_target): Likewise.
14277 (symtab_resolve_alias): Likewise.
14278 (symtab_get_symbol_partitioning_class): Likewise.
14279 * tree-phinodes.c (allocate_phi_node): Likewise.
14280 (reserve_phi_args_for_new_edge): Likewise.
14281 (remove_phi_args): Likewise.
14282 * varpool.c (varpool_node_for_asm): Likewise.
14283 (varpool_remove_unreferenced_decls): Likewise.
14284
14285 2014-04-23 Jeff Law <law@redhat.com>
14286
14287 PR tree-optimization/60902
14288 * tree-ssa-threadedge.c
14289 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14290 invalidate outputs from statements that do not produce useful
14291 outputs for threading.
14292
14293 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14294
14295 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14296 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14297 machine descriptions for Stack Smashing Protector.
14298
14299 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14300
14301 * aarch64.md (<optab>_rol<mode>3): New pattern.
14302 (<optab>_rolsi3_uxtw): Likewise.
14303 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14304
14305 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14306
14307 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14308 (arm_cortex_a12_tune): Likewise.
14309
14310 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14311
14312 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14313
14314 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14315
14316 * config/arm/arm.md (arm_rev16si2): New pattern.
14317 (arm_rev16si2_alt): Likewise.
14318 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14319
14320 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14321
14322 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14323 (rev16<mode>2_alt): Likewise.
14324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14325 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14326 (aarch_rev16_shleft_mask_imm_p): Likewise.
14327 (aarch_rev16_p_1): Likewise.
14328 (aarch_rev16_p): Likewise.
14329 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14330 (aarch_rev16_shright_mask_imm_p): Likewise.
14331 (aarch_rev16_shleft_mask_imm_p): Likewise.
14332
14333 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14334
14335 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14336 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14337 rev cost.
14338 (cortex_a53_extra_costs): Likewise.
14339 (cortex_a57_extra_costs): Likewise.
14340 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14341 (cortexa7_extra_costs): Likewise.
14342 (cortexa8_extra_costs): Likewise.
14343 (cortexa12_extra_costs): Likewise.
14344 (cortexa15_extra_costs): Likewise.
14345 (v7m_extra_costs): Likewise.
14346 (arm_new_rtx_costs): Handle BSWAP.
14347
14348 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14349
14350 * config/arm/arm.c (cortexa8_extra_costs): New table.
14351 (arm_cortex_a8_tune): New tuning struct.
14352 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14353
14354 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14355
14356 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14357
14358 2014-04-23 Richard Biener <rguenther@suse.de>
14359
14360 * Makefile.in (OBJS): Remove loop-unswitch.o.
14361 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14362 * passes.def (pass_rtl_unswitch): Likewise.
14363 * loop-init.c (gate_rtl_unswitch): Likewise.
14364 (rtl_unswitch): Likewise.
14365 (pass_data_rtl_unswitch): Likewise.
14366 (pass_rtl_unswitch): Likewise.
14367 (make_pass_rtl_unswitch): Likewise.
14368 * rtl.h (reversed_condition): Likewise.
14369 (compare_and_jump_seq): Likewise.
14370 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14371 and make static.
14372 * loop-unroll.c (compare_and_jump_seq): Likewise.
14373
14374 2014-04-23 Richard Biener <rguenther@suse.de>
14375
14376 PR tree-optimization/60903
14377 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14378 commented code block.
14379 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14380 loop flags to newly created BBs and edges.
14381
14382 2014-04-23 Nick Clifton <nickc@redhat.com>
14383
14384 * config/msp430/msp430.c (msp430_handle_option): Move function
14385 to msp430-common.c
14386 (msp430_option_override): Simplify mcu and mcpu option handling.
14387 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14388 support for -mhwmult command line option.
14389 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14390 -mhwmult command line option.
14391 (msp430_hwmult_enabled): Delete.
14392 (msp43o_output_labelref): Add support for -mhwmult command line option.
14393 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14394 (umulsidi3): Likewise.
14395 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14396 (mcpu, mlarge, msmall): Likewise.
14397 (mhwmult): New option.
14398 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14399 prototype.
14400 (msp430_is_f5_mcu): Remove prototype.
14401 (msp430_use_f5_series_hwmult): Add prototype.
14402 * config/msp430/msp430-opts.h: New file.
14403 * common/config/msp430: New directory.
14404 * common/config/msp430/msp430-common.c: New file.
14405 * config.gcc (msp430): Remove target_has_targetm_common.
14406 * doc/invoke.texi: Document -mhwmult command line option.
14407
14408 2014-04-23 Nick Clifton <nickc@redhat.com>
14409
14410 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14411 default-manifest.o if it can be found in the search path.
14412 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14413
14414 2014-04-23 Terry Guo <terry.guo@arm.com>
14415
14416 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14417
14418 2014-04-23 Richard Biener <rguenther@suse.de>
14419
14420 PR middle-end/60895
14421 * tree-inline.c (declare_return_variable): Use mark_addressable.
14422
14423 2014-04-23 Richard Biener <rguenther@suse.de>
14424
14425 PR middle-end/60891
14426 * loop-init.c (loop_optimizer_init): Make sure to apply
14427 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14428
14429 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14430
14431 PR sanitizer/60275
14432 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14433 New options.
14434 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14435 if flag_sanitize_undefined_trap_on_error.
14436 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14437 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14438 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14439 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14440 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14441 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14442 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14443 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14444 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14445 * ubsan.c (ubsan_instrument_unreachable): Return
14446 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14447 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14448 if flag_sanitize_undefined_trap_on_error and
14449 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14450 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14451 instrument_bool_enum_load): Emit __builtin_trap () if
14452 flag_sanitize_undefined_trap_on_error and
14453 __builtin_handle_*_abort () if !flag_sanitize_recover.
14454 * doc/invoke.texi (-fsanitize-recover,
14455 -fsanitize-undefined-trap-on-error): Document.
14456
14457 2014-04-22 Christian Bruel <christian.bruel@st.com>
14458
14459 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14460 Force immediates to SImode.
14461
14462 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14463
14464 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14465 (lroundsfsi2): New.
14466 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14467 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14468 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14469 (nios2_fpu_insn): Add entry for round.
14470 (N2FPU_NO_ERRNO_P): Define.
14471 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14472 flag_errno_math.
14473 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14474
14475 2014-04-22 Richard Henderson <rth@redhat.com>
14476
14477 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14478 (add<GPI>3_compare0): Remove leading * from name.
14479 (add<GPI>3_carryin): Likewise.
14480 (sub<GPI>3_compare0): Likewise.
14481 (sub<GPI>3_carryin): Likewise.
14482 (<su_optab>mulditi3): New expander.
14483 (multi3): New expander.
14484 (madd<GPI>): Remove leading * from name.
14485
14486 2014-04-22 Martin Jambor <mjambor@suse.cz>
14487
14488 * cgraphclones.c (cgraph_function_versioning): Copy
14489 ipa_transforms_to_apply instead of asserting it is empty.
14490
14491 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14492
14493 PR target/60868
14494 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14495 on count_exp to get mode.
14496
14497 2014-04-22 Andrew Pinski <apinski@cavium.com>
14498
14499 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14500 Handle TLS for ILP32.
14501 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14502 (tlsie_small_<mode>): this and handle PTR.
14503 (tlsie_small_sidi): New pattern.
14504 (tlsle_small): Change to an expand to handle ILP32.
14505 (tlsle_small_<mode>): New pattern.
14506 (tlsdesc_small): Rename to ...
14507 (tlsdesc_small_<mode>): this and handle PTR.
14508
14509 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14510
14511 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14512
14513 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14514
14515 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14516 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14517 (aarch64_types_signed_poly_qualifiers): Likewise.
14518 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14519 (aarch64_types_poly_signed_qualifiers): Likewise.
14520 (TYPES_REINTERP_SS): Type macro added.
14521 (TYPES_REINTERP_SU): Likewise.
14522 (TYPES_REINTERP_SP): Likewise.
14523 (TYPES_REINTERP_US): Likewise.
14524 (TYPES_REINTERP_PS): Likewise.
14525 (aarch64_fold_builtin): New expression folding added.
14526 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14527 Declarations removed.
14528 (REINTERP_SS): Declarations added.
14529 (REINTERP_US): Likewise.
14530 (REINTERP_PS): Likewise.
14531 (REINTERP_SU): Likewise.
14532 (REINTERP_SP): Likewise.
14533 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14534 (vreinterpretq_p8_f64): Likewise.
14535 (vreinterpret_p16_f64): Likewise.
14536 (vreinterpretq_p16_f64): Likewise.
14537 (vreinterpret_f32_f64): Likewise.
14538 (vreinterpretq_f32_f64): Likewise.
14539 (vreinterpret_f64_f32): Likewise.
14540 (vreinterpret_f64_p8): Likewise.
14541 (vreinterpret_f64_p16): Likewise.
14542 (vreinterpret_f64_s8): Likewise.
14543 (vreinterpret_f64_s16): Likewise.
14544 (vreinterpret_f64_s32): Likewise.
14545 (vreinterpret_f64_s64): Likewise.
14546 (vreinterpret_f64_u8): Likewise.
14547 (vreinterpret_f64_u16): Likewise.
14548 (vreinterpret_f64_u32): Likewise.
14549 (vreinterpret_f64_u64): Likewise.
14550 (vreinterpretq_f64_f32): Likewise.
14551 (vreinterpretq_f64_p8): Likewise.
14552 (vreinterpretq_f64_p16): Likewise.
14553 (vreinterpretq_f64_s8): Likewise.
14554 (vreinterpretq_f64_s16): Likewise.
14555 (vreinterpretq_f64_s32): Likewise.
14556 (vreinterpretq_f64_s64): Likewise.
14557 (vreinterpretq_f64_u8): Likewise.
14558 (vreinterpretq_f64_u16): Likewise.
14559 (vreinterpretq_f64_u32): Likewise.
14560 (vreinterpretq_f64_u64): Likewise.
14561 (vreinterpret_s64_f64): Likewise.
14562 (vreinterpretq_s64_f64): Likewise.
14563 (vreinterpret_u64_f64): Likewise.
14564 (vreinterpretq_u64_f64): Likewise.
14565 (vreinterpret_s8_f64): Likewise.
14566 (vreinterpretq_s8_f64): Likewise.
14567 (vreinterpret_s16_f64): Likewise.
14568 (vreinterpretq_s16_f64): Likewise.
14569 (vreinterpret_s32_f64): Likewise.
14570 (vreinterpretq_s32_f64): Likewise.
14571 (vreinterpret_u8_f64): Likewise.
14572 (vreinterpretq_u8_f64): Likewise.
14573 (vreinterpret_u16_f64): Likewise.
14574 (vreinterpretq_u16_f64): Likewise.
14575 (vreinterpret_u32_f64): Likewise.
14576 (vreinterpretq_u32_f64): Likewise.
14577
14578 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14579
14580 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14581 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14582 (vreinterpret_p8_s8): Likewise.
14583 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14584 (vreinterpret_p8_s16): Likewise.
14585 (vreinterpret_p8_s32): Likewise.
14586 (vreinterpret_p8_s64): Likewise.
14587 (vreinterpret_p8_f32): Likewise.
14588 (vreinterpret_p8_u8): Likewise.
14589 (vreinterpret_p8_u16): Likewise.
14590 (vreinterpret_p8_u32): Likewise.
14591 (vreinterpret_p8_u64): Likewise.
14592 (vreinterpret_p8_p16): Likewise.
14593 (vreinterpretq_p8_s8): Likewise.
14594 (vreinterpretq_p8_s16): Likewise.
14595 (vreinterpretq_p8_s32): Likewise.
14596 (vreinterpretq_p8_s64): Likewise.
14597 (vreinterpretq_p8_f32): Likewise.
14598 (vreinterpretq_p8_u8): Likewise.
14599 (vreinterpretq_p8_u16): Likewise.
14600 (vreinterpretq_p8_u32): Likewise.
14601 (vreinterpretq_p8_u64): Likewise.
14602 (vreinterpretq_p8_p16): Likewise.
14603 (vreinterpret_p16_s8): Likewise.
14604 (vreinterpret_p16_s16): Likewise.
14605 (vreinterpret_p16_s32): Likewise.
14606 (vreinterpret_p16_s64): Likewise.
14607 (vreinterpret_p16_f32): Likewise.
14608 (vreinterpret_p16_u8): Likewise.
14609 (vreinterpret_p16_u16): Likewise.
14610 (vreinterpret_p16_u32): Likewise.
14611 (vreinterpret_p16_u64): Likewise.
14612 (vreinterpret_p16_p8): Likewise.
14613 (vreinterpretq_p16_s8): Likewise.
14614 (vreinterpretq_p16_s16): Likewise.
14615 (vreinterpretq_p16_s32): Likewise.
14616 (vreinterpretq_p16_s64): Likewise.
14617 (vreinterpretq_p16_f32): Likewise.
14618 (vreinterpretq_p16_u8): Likewise.
14619 (vreinterpretq_p16_u16): Likewise.
14620 (vreinterpretq_p16_u32): Likewise.
14621 (vreinterpretq_p16_u64): Likewise.
14622 (vreinterpretq_p16_p8): Likewise.
14623 (vreinterpret_f32_s8): Likewise.
14624 (vreinterpret_f32_s16): Likewise.
14625 (vreinterpret_f32_s32): Likewise.
14626 (vreinterpret_f32_s64): Likewise.
14627 (vreinterpret_f32_u8): Likewise.
14628 (vreinterpret_f32_u16): Likewise.
14629 (vreinterpret_f32_u32): Likewise.
14630 (vreinterpret_f32_u64): Likewise.
14631 (vreinterpret_f32_p8): Likewise.
14632 (vreinterpret_f32_p16): Likewise.
14633 (vreinterpretq_f32_s8): Likewise.
14634 (vreinterpretq_f32_s16): Likewise.
14635 (vreinterpretq_f32_s32): Likewise.
14636 (vreinterpretq_f32_s64): Likewise.
14637 (vreinterpretq_f32_u8): Likewise.
14638 (vreinterpretq_f32_u16): Likewise.
14639 (vreinterpretq_f32_u32): Likewise.
14640 (vreinterpretq_f32_u64): Likewise.
14641 (vreinterpretq_f32_p8): Likewise.
14642 (vreinterpretq_f32_p16): Likewise.
14643 (vreinterpret_s64_s8): Likewise.
14644 (vreinterpret_s64_s16): Likewise.
14645 (vreinterpret_s64_s32): Likewise.
14646 (vreinterpret_s64_f32): Likewise.
14647 (vreinterpret_s64_u8): Likewise.
14648 (vreinterpret_s64_u16): Likewise.
14649 (vreinterpret_s64_u32): Likewise.
14650 (vreinterpret_s64_u64): Likewise.
14651 (vreinterpret_s64_p8): Likewise.
14652 (vreinterpret_s64_p16): Likewise.
14653 (vreinterpretq_s64_s8): Likewise.
14654 (vreinterpretq_s64_s16): Likewise.
14655 (vreinterpretq_s64_s32): Likewise.
14656 (vreinterpretq_s64_f32): Likewise.
14657 (vreinterpretq_s64_u8): Likewise.
14658 (vreinterpretq_s64_u16): Likewise.
14659 (vreinterpretq_s64_u32): Likewise.
14660 (vreinterpretq_s64_u64): Likewise.
14661 (vreinterpretq_s64_p8): Likewise.
14662 (vreinterpretq_s64_p16): Likewise.
14663 (vreinterpret_u64_s8): Likewise.
14664 (vreinterpret_u64_s16): Likewise.
14665 (vreinterpret_u64_s32): Likewise.
14666 (vreinterpret_u64_s64): Likewise.
14667 (vreinterpret_u64_f32): Likewise.
14668 (vreinterpret_u64_u8): Likewise.
14669 (vreinterpret_u64_u16): Likewise.
14670 (vreinterpret_u64_u32): Likewise.
14671 (vreinterpret_u64_p8): Likewise.
14672 (vreinterpret_u64_p16): Likewise.
14673 (vreinterpretq_u64_s8): Likewise.
14674 (vreinterpretq_u64_s16): Likewise.
14675 (vreinterpretq_u64_s32): Likewise.
14676 (vreinterpretq_u64_s64): Likewise.
14677 (vreinterpretq_u64_f32): Likewise.
14678 (vreinterpretq_u64_u8): Likewise.
14679 (vreinterpretq_u64_u16): Likewise.
14680 (vreinterpretq_u64_u32): Likewise.
14681 (vreinterpretq_u64_p8): Likewise.
14682 (vreinterpretq_u64_p16): Likewise.
14683 (vreinterpret_s8_s16): Likewise.
14684 (vreinterpret_s8_s32): Likewise.
14685 (vreinterpret_s8_s64): Likewise.
14686 (vreinterpret_s8_f32): Likewise.
14687 (vreinterpret_s8_u8): Likewise.
14688 (vreinterpret_s8_u16): Likewise.
14689 (vreinterpret_s8_u32): Likewise.
14690 (vreinterpret_s8_u64): Likewise.
14691 (vreinterpret_s8_p8): Likewise.
14692 (vreinterpret_s8_p16): Likewise.
14693 (vreinterpretq_s8_s16): Likewise.
14694 (vreinterpretq_s8_s32): Likewise.
14695 (vreinterpretq_s8_s64): Likewise.
14696 (vreinterpretq_s8_f32): Likewise.
14697 (vreinterpretq_s8_u8): Likewise.
14698 (vreinterpretq_s8_u16): Likewise.
14699 (vreinterpretq_s8_u32): Likewise.
14700 (vreinterpretq_s8_u64): Likewise.
14701 (vreinterpretq_s8_p8): Likewise.
14702 (vreinterpretq_s8_p16): Likewise.
14703 (vreinterpret_s16_s8): Likewise.
14704 (vreinterpret_s16_s32): Likewise.
14705 (vreinterpret_s16_s64): Likewise.
14706 (vreinterpret_s16_f32): Likewise.
14707 (vreinterpret_s16_u8): Likewise.
14708 (vreinterpret_s16_u16): Likewise.
14709 (vreinterpret_s16_u32): Likewise.
14710 (vreinterpret_s16_u64): Likewise.
14711 (vreinterpret_s16_p8): Likewise.
14712 (vreinterpret_s16_p16): Likewise.
14713 (vreinterpretq_s16_s8): Likewise.
14714 (vreinterpretq_s16_s32): Likewise.
14715 (vreinterpretq_s16_s64): Likewise.
14716 (vreinterpretq_s16_f32): Likewise.
14717 (vreinterpretq_s16_u8): Likewise.
14718 (vreinterpretq_s16_u16): Likewise.
14719 (vreinterpretq_s16_u32): Likewise.
14720 (vreinterpretq_s16_u64): Likewise.
14721 (vreinterpretq_s16_p8): Likewise.
14722 (vreinterpretq_s16_p16): Likewise.
14723 (vreinterpret_s32_s8): Likewise.
14724 (vreinterpret_s32_s16): Likewise.
14725 (vreinterpret_s32_s64): Likewise.
14726 (vreinterpret_s32_f32): Likewise.
14727 (vreinterpret_s32_u8): Likewise.
14728 (vreinterpret_s32_u16): Likewise.
14729 (vreinterpret_s32_u32): Likewise.
14730 (vreinterpret_s32_u64): Likewise.
14731 (vreinterpret_s32_p8): Likewise.
14732 (vreinterpret_s32_p16): Likewise.
14733 (vreinterpretq_s32_s8): Likewise.
14734 (vreinterpretq_s32_s16): Likewise.
14735 (vreinterpretq_s32_s64): Likewise.
14736 (vreinterpretq_s32_f32): Likewise.
14737 (vreinterpretq_s32_u8): Likewise.
14738 (vreinterpretq_s32_u16): Likewise.
14739 (vreinterpretq_s32_u32): Likewise.
14740 (vreinterpretq_s32_u64): Likewise.
14741 (vreinterpretq_s32_p8): Likewise.
14742 (vreinterpretq_s32_p16): Likewise.
14743 (vreinterpret_u8_s8): Likewise.
14744 (vreinterpret_u8_s16): Likewise.
14745 (vreinterpret_u8_s32): Likewise.
14746 (vreinterpret_u8_s64): Likewise.
14747 (vreinterpret_u8_f32): Likewise.
14748 (vreinterpret_u8_u16): Likewise.
14749 (vreinterpret_u8_u32): Likewise.
14750 (vreinterpret_u8_u64): Likewise.
14751 (vreinterpret_u8_p8): Likewise.
14752 (vreinterpret_u8_p16): Likewise.
14753 (vreinterpretq_u8_s8): Likewise.
14754 (vreinterpretq_u8_s16): Likewise.
14755 (vreinterpretq_u8_s32): Likewise.
14756 (vreinterpretq_u8_s64): Likewise.
14757 (vreinterpretq_u8_f32): Likewise.
14758 (vreinterpretq_u8_u16): Likewise.
14759 (vreinterpretq_u8_u32): Likewise.
14760 (vreinterpretq_u8_u64): Likewise.
14761 (vreinterpretq_u8_p8): Likewise.
14762 (vreinterpretq_u8_p16): Likewise.
14763 (vreinterpret_u16_s8): Likewise.
14764 (vreinterpret_u16_s16): Likewise.
14765 (vreinterpret_u16_s32): Likewise.
14766 (vreinterpret_u16_s64): Likewise.
14767 (vreinterpret_u16_f32): Likewise.
14768 (vreinterpret_u16_u8): Likewise.
14769 (vreinterpret_u16_u32): Likewise.
14770 (vreinterpret_u16_u64): Likewise.
14771 (vreinterpret_u16_p8): Likewise.
14772 (vreinterpret_u16_p16): Likewise.
14773 (vreinterpretq_u16_s8): Likewise.
14774 (vreinterpretq_u16_s16): Likewise.
14775 (vreinterpretq_u16_s32): Likewise.
14776 (vreinterpretq_u16_s64): Likewise.
14777 (vreinterpretq_u16_f32): Likewise.
14778 (vreinterpretq_u16_u8): Likewise.
14779 (vreinterpretq_u16_u32): Likewise.
14780 (vreinterpretq_u16_u64): Likewise.
14781 (vreinterpretq_u16_p8): Likewise.
14782 (vreinterpretq_u16_p16): Likewise.
14783 (vreinterpret_u32_s8): Likewise.
14784 (vreinterpret_u32_s16): Likewise.
14785 (vreinterpret_u32_s32): Likewise.
14786 (vreinterpret_u32_s64): Likewise.
14787 (vreinterpret_u32_f32): Likewise.
14788 (vreinterpret_u32_u8): Likewise.
14789 (vreinterpret_u32_u16): Likewise.
14790 (vreinterpret_u32_u64): Likewise.
14791 (vreinterpret_u32_p8): Likewise.
14792 (vreinterpret_u32_p16): Likewise.
14793 (vreinterpretq_u32_s8): Likewise.
14794 (vreinterpretq_u32_s16): Likewise.
14795 (vreinterpretq_u32_s32): Likewise.
14796 (vreinterpretq_u32_s64): Likewise.
14797 (vreinterpretq_u32_f32): Likewise.
14798 (vreinterpretq_u32_u8): Likewise.
14799 (vreinterpretq_u32_u16): Likewise.
14800 (vreinterpretq_u32_u64): Likewise.
14801 (vreinterpretq_u32_p8): Likewise.
14802 (vreinterpretq_u32_p16): Likewise.
14803
14804 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14805
14806 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14807 Pattern extended.
14808 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14809 (sqabs): Likewise.
14810 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14811 (vqnegd_s64): Likewise.
14812 (vqabs_s64): Likewise.
14813 (vqabsd_s64): Likewise.
14814
14815 2014-04-22 Richard Henderson <rth@redhat.com>
14816
14817 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14818 computation to the top of the loop.
14819
14820 2014-04-22 Renlin <renlin.li@arm.com>
14821 Jiong Wang <jiong.wang@arm.com>
14822
14823 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14824 * config/aarch64/aarch64.c (aarch64_layout_frame)
14825 (aarch64_initial_elimination_offset): Likewise.
14826
14827 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14828
14829 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14830 Fix indentation.
14831
14832 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14833
14834 * machmode.h (bitwise_mode_for_mode): Declare.
14835 * stor-layout.h (bitwise_type_for_mode): Likewise.
14836 * stor-layout.c (bitwise_mode_for_mode): New function.
14837 (bitwise_type_for_mode): Likewise.
14838 * builtins.c (fold_builtin_memory_op): Use it instead of
14839 int_mode_for_mode and build_nonstandard_integer_type.
14840
14841 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14842
14843 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14844 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14845 (*-*-solaris2*): Simplify.
14846 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14847 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14848 *-*-solaris2.9* handling.
14849
14850 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14851 as bug.
14852 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14853 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14854 handling, simplify.
14855 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14856 * configure: Regenerate.
14857
14858 * config/i386/sol2-9.h: Remove.
14859
14860 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14861 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14862 Remove Solaris 9 references.
14863
14864 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14865
14866 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
14867 (floatuns<GPI:mode><GPF:mode>2): Remove.
14868 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
14869 and floatuns conversions.
14870 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
14871 and floatuns conversions.
14872 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
14873 (w1,w2): New mode attributes for inequal width conversions.
14874
14875 2014-04-22 Renlin Li <Renlin.Li@arm.com>
14876
14877 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
14878 the output asm format.
14879
14880 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
14881
14882 * config/aarch64/aarch64-simd.md
14883 (aarch64_cm<optab>di): Always split.
14884 (*aarch64_cm<optab>di): New.
14885 (aarch64_cmtstdi): Always split.
14886 (*aarch64_cmtstdi): New.
14887
14888 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14889
14890 PR tree-optimization/60823
14891 * omp-low.c (ipa_simd_modify_function_body): Go through
14892 all SSA_NAMEs and for those refering to vector arguments
14893 which are going to be replaced adjust SSA_NAME_VAR and,
14894 if it is a default definition, change it into a non-default
14895 definition assigned at the beginning of function from new_decl.
14896 (ipa_simd_modify_stmt_ops): Rewritten.
14897 * tree-dfa.c (set_ssa_default_def): When removing default def,
14898 check for NULL loc instead of NULL *loc.
14899
14900 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14901
14902 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
14903 restrictions on core registers for DImode values in Thumb2.
14904
14905 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14906
14907 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
14908 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
14909
14910 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14911
14912 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
14913 (*iordi_notzesidi_di): Likewise.
14914 (*iordi_notsesidi_di): Likewise.
14915
14916 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14917
14918 * config/arm/arm-protos.h (tune_params): New struct members.
14919 * config/arm/arm.c: Initialise tune_params per processor.
14920 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
14921 for speed, based on new tune_params.
14922
14923 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14924
14925 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
14926 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
14927 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
14928 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
14929 * config/aarch64/arm_neon.h (vrnd_f64): Added.
14930 (vrnda_f64): Likewise.
14931 (vrndi_f64): Likewise.
14932 (vrndm_f64): Likewise.
14933 (vrndn_f64): Likewise.
14934 (vrndp_f64): Likewise.
14935 (vrndx_f64): Likewise.
14936
14937 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14938
14939 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
14940 GET_MODE_SIZE argument is enum machine_mode.
14941
14942 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14943
14944 PR target/60910
14945 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
14946 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
14947
14948 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
14949
14950 PR middle-end/60281
14951 * asan.c (asan_emit_stack_protection): Force the base to align to
14952 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
14953 appropriate bits if STRICT_ALIGNMENT.
14954 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
14955 when asan is on.
14956 (expand_used_vars): Leave a space in the stack frame for alignment
14957 if STRICT_ALIGNMENT.
14958
14959 2014-04-21 David Malcolm <dmalcolm@redhat.com>
14960
14961 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
14962 than a gimple.
14963 (gimple_store_p): Likewise.
14964 (gimple_assign_load_p): Likewise.
14965 (gimple_assign_cast_p): Likewise.
14966 (gimple_clobber_p): Likewise.
14967
14968 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
14969 rather than a gimple.
14970 (gimple_assign_cast_p): Likewise.
14971
14972 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14973
14974 PR target/60735
14975 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
14976 If mode is DDmode and TARGET_E500_DOUBLE allow move.
14977
14978 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
14979 more debug information for E500 if -mdebug=reg.
14980
14981 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
14982
14983 PR target/60909
14984 * config/i386/i386.c (ix86_expand_builtin)
14985 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
14986 register for target RTX.
14987 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
14988
14989 2014-04-18 Cong Hou <congh@google.com>
14990
14991 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
14992 the widen-mult pattern by handling two operands with different sizes,
14993 and operands whose size is smaller than half of the result type.
14994
14995 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
14996
14997 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
14998 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
14999 (do_estimate_edge_time): Compute it.
15000 * ipa-inline.c (want_inline_small_function_p): Bypass
15001 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15002
15003 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15004
15005 * ipa-inline.c (spec_rem): New static variable.
15006 (dump_overall_stats): New function.
15007 (dump_inline_stats): New function.
15008
15009 2014-04-18 Richard Henderson <rth@redhat.com>
15010
15011 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15012 to GET_MODE_SIZE, not a reg_class_t.
15013
15014 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15015
15016 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15017 (vsx_xxmrglw_<mode>): Likewise.
15018
15019 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15020
15021 PR target/60876
15022 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15023 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15024 (rs6000_init_hard_regno_mode_ok): Likewise.
15025
15026 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15027
15028 * ipa-inline.c (inline_small_functions): Account only non-cold
15029 functions.
15030 * doc/invoke.texi (inline-unit-growth): Update documentation.
15031
15032 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15033
15034 * config/rs6000/rs6000.md (addti3, subti3): New.
15035
15036 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15037
15038 PR target/60863
15039 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15040 comment. Check optimize_insn_for_size_p instead of
15041 optimize_insn_for_speed_p.
15042
15043 2014-04-17 Martin Jambor <mjambor@suse.cz>
15044
15045 * gimple-iterator.c (gsi_start_edge): New function.
15046 * gimple-iterator.h (gsi_start_edge): Declare.
15047 * tree-sra.c (single_non_eh_succ): New function.
15048 (disqualify_ops_if_throwing_stmt): Renamed to
15049 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15050 having one non-EH successor BB.
15051 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15052 generate loads into replacements.
15053 (sra_modify_assign): Likewise and and also use the simple path for
15054 such statements.
15055 (sra_modify_function_body): Commit statements on edges.
15056
15057 2014-04-17 Richard Biener <rguenther@suse.de>
15058
15059 PR middle-end/60849
15060 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15061 comparison results and add clarifying comment.
15062
15063 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15064
15065 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15066 (blank_mode): Initialize it.
15067 (emit_mode_size_inline, emit_mode_nunits_inline,
15068 emit_mode_inner_inline): New functions.
15069 (emit_insn_modes_h): Call them and surround their output with
15070 #if GCC_VERSION >= 4001 ... #endif.
15071 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15072 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15073 mode_* arrays if the argument is __builtin_constant_p.
15074 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15075 is enum machine_mode.
15076
15077 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15078
15079 * passes.c (opt_pass::execute): Adjust.
15080 (pass_manager::execute_pass_mode_switching): Likewise.
15081 (early_local_passes::execute): Likewise.
15082 (execute_one_pass): Pass cfun to the pass's execute method.
15083 * tree-pass.h (opt_pass::execute): Add function * argument.
15084 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15085 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15086 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15087 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15088 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15089 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15090 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15091 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15092 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15093 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15094 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15095 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15096 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15097 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15098 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15099 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15100 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15101 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15102 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15103 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15104 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15105 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15106 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15107 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15108 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15109 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15110 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15111 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15112 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15113 Adjust.
15114
15115 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15116
15117 * passes.c (opt_pass::gate): Take function * argument.
15118 (gate_all_early_local_passes): Merge into
15119 (early_local_passes::gate): this.
15120 (gate_all_early_optimizations): Merge into
15121 (all_early_optimizations::gate): this.
15122 (gate_all_optimizations): Mege into
15123 (all_optimizations::gate): this.
15124 (gate_all_optimizations_g): Merge into
15125 (all_optimizations_g::gate): this.
15126 (gate_rest_of_compilation): Mege into
15127 (rest_of_compilation::gate): this.
15128 (gate_postreload): Merge into
15129 (postreload::gate): this.
15130 (dump_one_pass): Pass cfun to the pass's gate method.
15131 (execute_ipa_summary_passes): Likewise.
15132 (execute_one_pass): Likewise.
15133 (ipa_write_summaries_2): Likewise.
15134 (ipa_write_optimization_summaries_1): Likewise.
15135 (ipa_read_summaries_1): Likewise.
15136 (ipa_read_optimization_summaries_1): Likewise.
15137 (execute_ipa_stmt_fixups): Likewise.
15138 * tree-pass.h (opt_pass::gate): Add function * argument.
15139 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15140 combine-stack-adj.c, combine.c, compare-elim.c,
15141 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15142 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15143 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15144 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15145 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15146 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15147 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15148 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15149 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15150 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15151 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15152 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15153 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15154 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15155 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15156 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15157 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15158 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15159 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15160 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15161 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15162 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15163 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15164 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15165 var-tracking.c, vtable-verify.c, web.c: Adjust.
15166
15167 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15168
15169 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15170 * configure: Regenerate.
15171
15172 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15173
15174 * passes.c (dump_one_pass): don't check pass->has_gate.
15175 (execute_ipa_summary_passes): Likewise.
15176 (execute_one_pass): Likewise.
15177 (ipa_write_summaries_2): Likewise.
15178 (ipa_write_optimization_summaries_1): Likewise.
15179 (ipa_read_optimization_summaries_1): Likewise.
15180 (execute_ipa_stmt_fixups): Likewise.
15181 * tree-pass.h (pass_data::has_gate): Remove.
15182 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15183 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15184 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15185 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15186 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15187 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15188 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15189 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15190 gimple-low.c, gimple-ssa-isolate-paths.c,
15191 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15192 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15193 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15194 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15195 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15196 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15197 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15198 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15199 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15200 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15201 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15202 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15203 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15204 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15205 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15206 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15207 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15208 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15209 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15210 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15211 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15212 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15213 Adjust.
15214
15215 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15216
15217 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15218 declaration.
15219 * passes.c (pass_manager::register_dump_files_1): Merge into
15220 (pass_manager::register_dump_files): this, and remove its handling of
15221 properties since the pass always has the properties anyway.
15222 (pass_manager::pass_manager): Adjust.
15223
15224 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15225
15226 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15227 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15228 dealing with properties.
15229 (pass_manager::register_dump_files): Adjust.
15230
15231 2014-03-20 Mark Wielaard <mjw@redhat.com>
15232
15233 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15234 then represent the bound as normal constant value.
15235
15236 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15237
15238 PR target/60847
15239 Forward port from 4.8 branch
15240 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15241
15242 * config/i386/bmiintrin.h (_blsi_u32): New.
15243 (_blsi_u64): Ditto.
15244 (_blsr_u32): Ditto.
15245 (_blsr_u64): Ditto.
15246 (_blsmsk_u32): Ditto.
15247 (_blsmsk_u64): Ditto.
15248 (_tzcnt_u32): Ditto.
15249 (_tzcnt_u64): Ditto.
15250
15251 2014-04-17 Kito Cheng <kito@0xlab.org>
15252
15253 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15254
15255 2014-04-17 Richard Biener <rguenther@suse.de>
15256
15257 PR middle-end/60849
15258 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15259 boolean results for comparisons.
15260
15261 2014-04-17 Richard Biener <rguenther@suse.de>
15262
15263 PR tree-optimization/60836
15264 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15265 initial PHI args to be gimple values.
15266
15267 2014-04-17 Richard Biener <rguenther@suse.de>
15268
15269 PR tree-optimization/60841
15270 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15271 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15272 of stmts to SLP build.
15273 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15274 (vect_analyze_slp): Likewise.
15275 (vect_analyze_slp_instance): Likewise.
15276 (vect_build_slp_tree): Limit overall SLP tree growth.
15277 * tree-vectorizer.h (vect_analyze_data_refs,
15278 vect_analyze_slp): Adjust prototypes.
15279
15280 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15281
15282 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15283 Silvermont.
15284
15285 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15286
15287 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15288 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15289 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15290 for TARGET_SLOW_PSHUFB
15291
15292 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15293
15294 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15295 * config/i386/i386.c (intel_cost): Ditto.
15296
15297 2014-04-17 Joey Ye <joey.ye@arm.com>
15298
15299 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15300
15301 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15302
15303 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15304 with -fuse-profile.
15305
15306 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15307
15308 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15309 (type_all_derivations_known_p): New predicate.
15310 (type_all_ctors_visible_p): New predicate.
15311 (type_possibly_instantiated_p): New predicate.
15312 (get_odr_type): Compute all_derivations_known.
15313 (dump_odr_type): Dump the flag.
15314 (maybe_record_type): Cleanup.
15315 (record_target_from_binfo): Add bases_to_consider array;
15316 record bases for types w/o instances and skip CXX destructor.
15317 (possible_polymorphic_call_targets_1): Add bases_to_consider
15318 and consider_construction parameters; check if type may have instance.
15319 (get_polymorphic_call_info): Set maybe_in_construction to true
15320 when we know nothing.
15321 (record_targets_from_bases): Skip CXX destructors; they are
15322 never called for types in construction.
15323 (possible_polymorphic_call_targets): Do not record target when
15324 type may not have instance.
15325
15326 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15327
15328 PR ipa/60854
15329 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15330 external aliases alive, too.
15331
15332 2014-04-16 Andrew Pinski <apinski@cavium.com>
15333
15334 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15335 definition.
15336
15337 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15338
15339 * final.c (compute_alignments): Do not apply loop alignment to a block
15340 falling through to the exit.
15341
15342 2014-04-16 Catherine Moore <clm@codesourcery.com>
15343
15344 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15345 Adjust constraints for microMIPS store patterns.
15346
15347 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15348
15349 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15350
15351 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15352
15353 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15354 (append_use): Run at -O0.
15355 (append_vdef): Likewise.
15356 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15357 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15358
15359 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15360
15361 PR tree-optimization/60844
15362 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15363 (propagate_op_to_single_use, remove_visited_stmt_chain,
15364 linearize_expr, repropagate_negates, reassociate_bb): Use it
15365 instead of gsi_remove.
15366
15367 2014-04-16 Martin Jambor <mjambor@suse.cz>
15368
15369 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15370 ipa_transforms_to_apply.
15371 (cgraph_function_versioning): Assert that old_node has empty
15372 ipa_transforms_to_apply.
15373 * trans-mem.c (ipa_tm_create_version): Likewise.
15374 * tree-inline.c (tree_function_versioning): Do not duplicate
15375 ipa_transforms_to_apply.
15376
15377 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15378
15379 PR target/60817
15380 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15381 x86_64-*-* cases.
15382 Pass necessary as flags on 64-bit Solaris/x86.
15383 Use lowercase relocs for x86_64-*-*.
15384 * configure: Regenerate.
15385
15386 2014-04-15 Jan Hubicka <jh@suse.cz>
15387
15388 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15389 (maybe_record_node, likely_target_p): Use it.
15390
15391 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15392
15393 PR target/60839
15394 Revert following patch
15395
15396 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15397
15398 PR target/60735
15399 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15400 software floating point or no floating point registers, do not
15401 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15402 in GPRs that occurs after we tested for GPRs that would never be
15403 true.
15404
15405 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15406 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15407 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15408 specifically allow DDmode, since that does not use the SPE SIMD
15409 instructions.
15410
15411 2014-03-21 Mark Wielaard <mjw@redhat.com>
15412
15413 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15414 as unsigned or int depending on type and value used.
15415
15416 2014-04-15 Richard Biener <rguenther@suse.de>
15417
15418 PR rtl-optimization/56965
15419 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15420 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15421 ... here.
15422 * alias.c (true_dependence_1): Do not call
15423 nonoverlapping_component_refs_p.
15424 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15425 nonoverlapping_component_refs_p.
15426 (indirect_refs_may_alias_p): Likewise.
15427
15428 2014-04-15 Teresa Johnson <tejohnson@google.com>
15429
15430 * cfg.c (dump_bb_info): Fix flags check.
15431 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15432
15433 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15434
15435 PR rtl-optimization/60663
15436 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15437 avoid 0 cost.
15438
15439 2014-04-15 Richard Biener <rguenther@suse.de>
15440
15441 * lto-streamer.h (LTO_major_version): Bump to 4.
15442
15443 2014-04-15 Richard Biener <rguenther@suse.de>
15444
15445 * common.opt (lto_partition_model): New enum.
15446 (flto-partition=): Merge separate options with a single with argument,
15447 add -flto-partition=one support.
15448 * flag-types.h (enum lto_partition_model): Declare.
15449 * opts.c (finish_options): Remove duplicate -flto-partition=
15450 option check.
15451 * lto-wrapper.c (run_gcc): Adjust.
15452
15453 2014-04-15 Richard Biener <rguenther@suse.de>
15454
15455 * alias.c (ncr_compar): New function.
15456 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15457
15458 2014-04-15 Richard Biener <rguenther@suse.de>
15459
15460 * alias.c (record_component_aliases): Do not walk BINFOs.
15461
15462 2014-04-15 Richard Biener <rguenther@suse.de>
15463
15464 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15465 Add struct function argument and adjust.
15466 (find_func_aliases_for_call): Likewise.
15467 (find_func_aliases): Likewise.
15468 (find_func_clobbers): Likewise.
15469 (intra_create_variable_infos): Likewise.
15470 (compute_points_to_sets): Likewise.
15471 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15472
15473 2014-04-15 Richard Biener <rguenther@suse.de>
15474
15475 * tree.c (iterative_hash_expr): Use enum tree_code_class
15476 to store TREE_CODE_CLASS.
15477 (tree_block): Likewise.
15478 (tree_set_block): Likewise.
15479 * tree.h (fold_build_pointer_plus_loc): Use
15480 convert_to_ptrofftype_loc.
15481
15482 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15483
15484 PR plugins/59335
15485 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15486 added in 4.9.
15487
15488 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15489
15490 * cfgloop.h (struct loop): Move force_vectorize down.
15491 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15492 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15493 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15494 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15495 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15496 * tree-core.h (enum annot_expr_kind): Add new kind values.
15497 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15498 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15499 kinds.
15500 * tree.def (ANNOTATE_EXPR): Tweak comment.
15501
15502 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15503
15504 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15505 cxa_pure_virtual).
15506
15507 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15508
15509 * tree.h (TYPE_IDENTIFIER): Declare.
15510 * tree.c (subrange_type_for_debug_p): Use it.
15511 * godump.c (go_format_type): Likewise.
15512 * dwarf2out.c (is_cxx_auto, modified_type_die,
15513 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15514 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15515
15516 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15517
15518 PR lto/60820
15519 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15520
15521 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15522
15523 * config/i386/i386.c (examine_argument): Return bool. Return true if
15524 parameter should be passed in memory.
15525 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15526 (construct_container): Update calls to examine_argument.
15527 (function_arg_advance_64): Ditto.
15528 (return_in_memory_32): Merge with ix86_return_in_memory.
15529 (return_in_memory_64): Ditto.
15530 (return_in_memory_ms_64): Ditto.
15531
15532 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15533
15534 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15535 * coverage.c (coverage_compute_profile_id): Handle externally visible
15536 symbols.
15537
15538 2014-04-14 Martin Jambor <mjambor@suse.cz>
15539
15540 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15541 DECL_DISREGARD_INLINE_LIMITS functions.
15542
15543 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15544
15545 PR target/60827
15546 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15547
15548 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15549
15550 PR target/60827
15551 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15552 optimize_insn_for_speed_p instead of
15553 optimize_function_for_speed_p.
15554
15555 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15556
15557 * doc/invoke.texi (free): Document AArch64.
15558
15559 2014-04-14 Richard Biener <rguenther@suse.de>
15560
15561 PR tree-optimization/60042
15562 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15563 (insert_into_preds_of_block): Do not prevent PHI insertion
15564 for REFERENCE exprs here ...
15565 (eliminate_dom_walker::before_dom_children): ... but prevent
15566 their use here under similar conditions when applied to the
15567 IL after PRE optimizations.
15568
15569 2014-04-14 Richard Biener <rguenther@suse.de>
15570
15571 * passes.def: Move early points-to after early SRA.
15572
15573 2014-04-14 Richard Biener <rguenther@suse.de>
15574
15575 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15576 check for which sign-changes we allow when forwarding
15577 a converted value into a switch.
15578
15579 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15580
15581 * stor-layout.c (place_field): Finalize non-constant offset for the
15582 field, if any.
15583
15584 2014-04-14 Richard Biener <rguenther@suse.de>
15585
15586 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15587 as argument.
15588 (expand_switch_using_bit_tests_p): Likewise.
15589 (process_switch): Compute and pass on speed_p based on the
15590 switch stmt.
15591 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15592 optimize_bb_for_speed_p.
15593
15594 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15595
15596 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15597 * function.h (struct function): Rename has_force_vect_loops into
15598 has_force_vectorize_loops.
15599 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15600 (input_struct_function_base): Likewise.
15601 * lto-streamer-out.c (output_cfg): Likewise.
15602 (output_struct_function_base): Likewise.
15603 * omp-low.c (expand_omp_simd): Likewise.
15604 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15605 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15606 (version_loop_for_if_conversion): Likewise.
15607 (tree_if_conversion): Likewise.
15608 (main_tree_if_conversion): Likewise.
15609 (gate_tree_if_conversion): Likewise.
15610 * tree-inline.c (copy_loops): Likewise.
15611 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15612 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15613 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15614 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15615 * tree-vectorizer.c (vectorize_loops): Likewise.
15616 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15617
15618 2014-04-14 Richard Biener <rguenther@suse.de>
15619
15620 PR lto/60720
15621 * lto-streamer-out.c (wrap_refs): New function.
15622 (lto_output): Wrap symbol references in global initializes in
15623 type-preserving MEM_REFs.
15624
15625 2014-04-14 Christian Bruel <christian.bruel@st.com>
15626
15627 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15628
15629 2014-04-14 Christian Bruel <christian.bruel@st.com>
15630
15631 * config/sh/sh.md (setmemqi): New expand pattern.
15632 * config/sh/sh.h (CLEAR_RATIO): Define.
15633 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15634 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15635
15636 2014-04-14 Richard Biener <rguenther@suse.de>
15637
15638 PR middle-end/55022
15639 * fold-const.c (negate_expr_p): Don't negate directional rounding
15640 division.
15641 (fold_negate_expr): Likewise.
15642
15643 2014-04-14 Richard Biener <rguenther@suse.de>
15644
15645 PR tree-optimization/59817
15646 PR tree-optimization/60453
15647 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15648 recursion to catch all CHRECs in the scalar evolution and restrict
15649 the predicate for the remains appropriately.
15650
15651 2014-04-12 Catherine Moore <clm@codesourcery.com>
15652
15653 * config/mips/constraints.md: Add new register constraint "kb".
15654 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15655 (*movhi_internal): Likewise.
15656 (*movqi_internal): Likewise.
15657 * config/mips/mips.h (M16_STORE_REGS): New register class.
15658 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15659 (REG_CLASS_CONTENTS): Likewise.
15660 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15661
15662 2014-04-11 Tobias Burnus <burnus@net-b.de>
15663
15664 PR c/60194
15665 * doc/invoke.texi (-Wformat-signedness): Document it.
15666 (Wformat=2): Mention that this enables -Wformat-signedness.
15667
15668 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15669
15670 * common/config/epiphany/epiphany-common.c
15671 (epiphany_option_optimization_table): Enable section anchors by
15672 default at -O1 or higher.
15673 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15674 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15675 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15676 carries no extra cost.
15677 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15678 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15679 * config/epiphany/predicates.md (memclob_operand): New predicate.
15680 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15681 Use memclob_operand predicate and X constraint for operand 3.
15682
15683 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15684
15685 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15686 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15687 its operands.
15688
15689 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15690
15691 PR rtl-optimization/60651
15692 * mode-switching.c (optimize_mode_switching): Make sure to emit
15693 sets of a lower numbered entity before sets of a higher numbered
15694 entity to a mode of the same or lower priority.
15695 When creating a seginfo for a basic block that starts with a code
15696 label, move the insertion point past the code label.
15697 (new_seginfo): Document and enforce requirement that
15698 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15699 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15700 * doc/tm.texi: Regenerate.
15701
15702 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15703
15704 PR target/60811
15705 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15706
15707 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15708
15709 * BASE-VER: Set to 4.10.0.
15710
15711 2014-04-11 Tobias Burnus <burnus@net-b.de>
15712
15713 PR other/59055
15714 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15715 * doc/gcc.texi (Service): Update description in the @menu
15716 * doc/invoke.texi (Option Summary): Remove misplaced and
15717 duplicated @menu.
15718
15719 2014-04-11 Steve Ellcey <sellcey@mips.com>
15720 Jakub Jelinek <jakub@redhat.com>
15721
15722 PR middle-end/60556
15723 * expr.c (convert_move): Use emit_store_flag_force instead of
15724 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15725 argument to it.
15726
15727 2014-04-11 Richard Biener <rguenther@suse.de>
15728
15729 PR middle-end/60797
15730 * varasm.c (assemble_alias): Avoid endless error reporting
15731 recursion by setting TREE_ASM_WRITTEN.
15732
15733 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15734
15735 * config/s390/s390.md: Add a splitter for NOT rtx.
15736
15737 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15738
15739 PR rtl-optimization/60663
15740 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15741
15742 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15743 Jakub Jelinek <jakub@redhat.com>
15744
15745 PR lto/60567
15746 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15747 flag from decl_node to node.
15748
15749 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15750
15751 PR debug/60655
15752 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15753 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15754 ameliorating the cases where it can be.
15755
15756 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15757
15758 Revert
15759 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15760
15761 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15762 (loadsync_<mode>): Change mode.
15763 (load_quadpti, store_quadpti): New.
15764 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15765 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15766 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15767
15768 2014-04-09 Cong Hou <congh@google.com>
15769
15770 PR testsuite/60773
15771 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15772 documentation.
15773
15774 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15775
15776 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15777 instead of vnor to exploit possible fusion opportunity in the
15778 future.
15779 (altivec_expand_vec_perm_const_le): Likewise.
15780
15781 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15782
15783 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15784 (loadsync_<mode>): Change mode.
15785 (load_quadpti, store_quadpti): New.
15786 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15787 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15788
15789 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15790
15791 PR target/60763
15792 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15793 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15794 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15795
15796 2014-04-08 Richard Biener <rguenther@suse.de>
15797
15798 PR middle-end/60706
15799 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15800 a 64bit widest int print double-int similar to on HWI64 hosts.
15801
15802 2014-04-08 Richard Biener <rguenther@suse.de>
15803
15804 PR tree-optimization/60785
15805 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15806 default defs properly.
15807
15808 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15809
15810 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15811 (Weffc++): Likewise.
15812
15813 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15814
15815 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15816 set completep to false rather than true.
15817
15818 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15819
15820 PR target/60504
15821 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15822 ARM_TARGET2_DWARF_FORMAT.
15823
15824 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15825
15826 PR target/60609
15827 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15828 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15829 ADDR_DIFF_VEC.
15830
15831 2014-04-07 Richard Biener <rguenther@suse.de>
15832
15833 PR tree-optimization/60766
15834 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15835 (may_eliminate_iv): Convert cand_value_at result to desired type.
15836
15837 2014-04-07 Jason Merrill <jason@redhat.com>
15838
15839 PR c++/60731
15840 * common.opt (-fno-gnu-unique): Add.
15841 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15842
15843 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15844
15845 * haifa-sched.c: Fix outdated function reference and minor
15846 grammar errors in introductory comment.
15847
15848 2014-04-07 Richard Biener <rguenther@suse.de>
15849
15850 PR middle-end/60750
15851 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15852 for noreturn calls.
15853 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15854
15855 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15856
15857 PR debug/55794
15858 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15859 size accounting for thunks.
15860 (pa_asm_output_mi_thunk): Use final_start_function() and
15861 final_end_function() to output function start and end directives.
15862
15863 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15864
15865 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
15866 device specific ISA/ feature information. Remove short_sp and
15867 errata_skip ds. Add avr_device_specific_features enum to have device
15868 specific info.
15869 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
15870 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
15871 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
15872 updated device specific info.
15873 * config/avr/avr-mcus.def: Merge device specific details to
15874 dev_attribute field.
15875 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
15876 errata_skip.
15877 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
15878 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
15879 assembler if RMW isa supported by current device.
15880 * config/avr/genmultilib.awk: Update as device info structure changed.
15881 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
15882
15883 2014-04-04 Cong Hou <congh@google.com>
15884
15885 PR tree-optimization/60656
15886 * tree-vect-stmts.c (supportable_widening_operation):
15887 Fix a bug that elements in a vector with vect_used_by_reduction
15888 property are incorrectly reordered when the operation on it is not
15889 consistant with the one in reduction operation.
15890
15891 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
15892
15893 PR rtl-optimization/60155
15894 * gcse.c (record_set_data): New function.
15895 (single_set_gcse): New function.
15896 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
15897 (hoist_code): Likewise.
15898 (get_pressure_class_and_nregs): Likewise.
15899
15900 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
15901
15902 * explow.c (probe_stack_range): Emit a final optimization blockage.
15903
15904 2014-04-04 Anthony Green <green@moxielogic.com>
15905
15906 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
15907 typos.
15908
15909 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
15910
15911 PR ipa/59626
15912 * lto-cgraph.c (input_overwrite_node): Check that partitioning
15913 flags are set only during streaming.
15914 * ipa.c (process_references, walk_polymorphic_call_targets,
15915 symtab_remove_unreachable_nodes): Drop bodies of always inline
15916 after early inlining.
15917 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
15918
15919 2014-04-04 Jakub Jelinek <jakub@redhat.com>
15920 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15921
15922 PR debug/60655
15923 * dwarf2out.c (const_ok_for_output_1): Reject expressions
15924 containing a NOT.
15925
15926 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15927
15928 PR bootstrap/60743
15929 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
15930 duration.
15931 (cortex_a53_fdivd): Likewise.
15932
15933 2014-04-04 Martin Jambor <mjambor@suse.cz>
15934
15935 PR ipa/60640
15936 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
15937 Adjust all callers.
15938 * cgraph.c (clone_of_p): Also return true if thunks match.
15939 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
15940 cgraph_function_or_thunk_node and an obsolete comment.
15941 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
15942 file.
15943 (build_function_decl_skip_args): Likewise.
15944 (set_new_clone_decl_and_node_flags): New function.
15945 (duplicate_thunk_for_node): Likewise.
15946 (redirect_edge_duplicating_thunks): Likewise.
15947 (cgraph_clone_node): New parameter args_to_skip, pass it to
15948 redirect_edge_duplicating_thunks which is called instead of
15949 cgraph_redirect_edge_callee.
15950 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
15951 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
15952
15953 2014-04-04 Jeff Law <law@redhat.com>
15954
15955 PR target/60657
15956 * config/arm/predicates.md (const_int_I_operand): New predicate.
15957 (const_int_M_operand): Similarly.
15958 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
15959 const_int_operand.
15960 (insv_t2, extv_reg, extzv_t2): Likewise.
15961 (load_multiple_with_writeback): Similarly for const_int_I_operand.
15962 (pop_multiple_with_writeback_and_return): Likewise.
15963 (vfp_pop_multiple_with_writeback): Likewise
15964
15965 2014-04-04 Richard Biener <rguenther@suse.de>
15966
15967 PR ipa/60746
15968 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
15969 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
15970 non-GIMPLE_LABELs.
15971 * gimplify.h (gimple_add_tmp_var_fn): Declare.
15972 * gimplify.c (gimple_add_tmp_var_fn): New function.
15973 * gimple-expr.h (create_tmp_reg_fn): Declare.
15974 * gimple-expr.c (create_tmp_reg_fn): New function.
15975 * gimple-low.c (record_vars_into): Don't change cfun.
15976 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
15977 code generation without cfun.
15978
15979 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
15980
15981 PR bootstrap/60719
15982 * Makefile.in (install-driver): Fix shell scripting.
15983
15984 2014-04-03 Cong Hou <congh@google.com>
15985
15986 PR tree-optimization/60505
15987 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
15988 threshold of number of iterations below which no vectorization
15989 will be done.
15990 * tree-vect-loop.c (new_loop_vec_info):
15991 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
15992 * tree-vect-loop.c (vect_analyze_loop_operations):
15993 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
15994 * tree-vect-loop.c (vect_transform_loop):
15995 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
15996 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
15997 of iterations of the loop and see if we should build the epilogue.
15998
15999 2014-04-03 Richard Biener <rguenther@suse.de>
16000
16001 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16002 (streamer_tree_cache_create): Adjust.
16003 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16004 to allow optional nodes array.
16005 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16006 (streamer_tree_cache_append): Likewise.
16007 (streamer_tree_cache_create): Create nodes array optionally
16008 as specified by parameter.
16009 * lto-streamer-out.c (create_output_block): Avoid maintaining
16010 the node array in the writer cache.
16011 (DFS_write_tree): Remove assertion.
16012 (produce_asm_for_decls): Free the out decl state hash table early.
16013 * lto-streamer-in.c (lto_data_in_create): Adjust for
16014 streamer_tree_cache_create prototype change.
16015
16016 2014-04-03 Richard Biener <rguenther@suse.de>
16017
16018 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16019 set TREE_CHAIN to NULL_TREE.
16020
16021 2014-04-03 Richard Biener <rguenther@suse.de>
16022
16023 PR tree-optimization/60740
16024 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16025 over all GIMPLE_COND operands.
16026
16027 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16028
16029 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16030 (Weffc++): Remove Scott's numbering, merge lists and reference
16031 Wnon-virtual-dtor.
16032
16033 2014-04-03 Nick Clifton <nickc@redhat.com>
16034
16035 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16036 properly.
16037
16038 2014-04-03 Martin Jambor <mjambor@suse.cz>
16039
16040 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16041 mention gcc_unreachable before failing.
16042 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16043 removed symbols.
16044
16045 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16046
16047 PR ipa/60659
16048 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16049 inconsistent code and instead mark the context inconsistent.
16050 (possible_polymorphic_call_targets): For inconsistent contexts
16051 return empty complete list.
16052
16053 2014-04-02 Anthony Green <green@moxielogic.com>
16054
16055 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16056 (extendqisi2, extendhisi2): Define.
16057 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16058 (WCHAR_TYPE): Change to unsigned int.
16059
16060 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16061
16062 PR tree-optimization/60733
16063 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16064 insertion point for PHI candidates to be the end of the feeding
16065 block for the PHI argument.
16066
16067 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16068
16069 PR rtl-optimization/60650
16070 * lra-constraints.c (process_alt_operands): Decrease reject for
16071 earlyclobber matching.
16072
16073 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16074
16075 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16076
16077 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16078
16079 * config/spu/spu.c (pad_bb): Do not crash when the last
16080 insn is CODE_FOR_blockage.
16081
16082 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16083
16084 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16085 lies outside the target mode.
16086
16087 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16088
16089 PR target/60735
16090 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16091 software floating point or no floating point registers, do not
16092 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16093 in GPRs that occurs after we tested for GPRs that would never be
16094 true.
16095
16096 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16097 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16098 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16099 specifically allow DDmode, since that does not use the SPE SIMD
16100 instructions.
16101
16102 2014-04-02 Richard Biener <rguenther@suse.de>
16103
16104 PR middle-end/60729
16105 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16106 MODE_INTs. Properly use negv_optab.
16107 (expand_abs): Likewise.
16108
16109 2014-04-02 Richard Biener <rguenther@suse.de>
16110
16111 PR bootstrap/60719
16112 * Makefile.in (install-driver): Guard extra installs with special
16113 names properly.
16114
16115 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16116
16117 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16118 Document vec_vgbbd.
16119
16120 2014-04-01 Richard Henderson <rth@redhat.com>
16121
16122 PR target/60704
16123 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16124 alternative enabled before register allocation.
16125
16126 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16127
16128 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16129 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16130 typo.
16131 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16132 (nios2_got_address): Update nios2_large_got_address call site.
16133 (nios2_delegitimize_address): New function.
16134 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16135 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16136 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16137
16138 2014-04-01 Martin Husemann <martin@duskware.de>
16139
16140 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16141 for -mabi=32.
16142
16143 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16144
16145 PR rtl-optimization/60604
16146 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16147 check from register_operand.
16148 (register_operand): Redefine in terms of general_operand.
16149 (nonmemory_operand): Use register_operand for the non-constant cases.
16150
16151 2014-04-01 Richard Biener <rguenther@suse.de>
16152
16153 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16154
16155 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16156
16157 * doc/invoke.texi (mapp-regs): Clarify.
16158
16159 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16160
16161 * config/i386/avx512fintrin.h (__v32hi): Define type.
16162 (__v64qi): Likewise.
16163 (_mm512_set1_epi8): Define.
16164 (_mm512_set1_epi16): Define.
16165 (_mm512_set4_epi32): Define.
16166 (_mm512_set4_epi64): Define.
16167 (_mm512_set4_pd): Define.
16168 (_mm512_set4_ps): Define.
16169 (_mm512_setr4_epi64): Define.
16170 (_mm512_setr4_epi32): Define.
16171 (_mm512_setr4_pd): Define.
16172 (_mm512_setr4_ps): Define.
16173 (_mm512_setzero_epi32): Define.
16174
16175 2014-03-31 Martin Jambor <mjambor@suse.cz>
16176
16177 PR middle-end/60647
16178 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16179 callsite_arguments_match_p. Updated all callers. Also check types of
16180 corresponding formal parameters and actual arguments.
16181 (not_all_callers_have_enough_arguments_p) Renamed to
16182 some_callers_have_mismatched_arguments_p.
16183
16184 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16185
16186 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16187
16188 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16189
16190 PR target/60034
16191 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16192 section anchor.
16193
16194 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16195
16196 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16197 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16198 Split out
16199 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16200 Use FMAMODE_NOVF512 mode iterator.
16201 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16202 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16203 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16204 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16205 Split out
16206 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16207 Use VF_128_256 mode iterator.
16208 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16209 Ditto.
16210
16211 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16212
16213 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16214 static chain if needed.
16215
16216 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16217
16218 PR target/60697
16219 * lra-constraints.c (index_part_to_reg): New.
16220 (process_address): Use it.
16221
16222 2014-03-27 Jeff Law <law@redhat.com>
16223 Jakub Jelinek <jakub@redhat.com>
16224
16225 PR target/60648
16226 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16227 gen_rtx_{PLUS,MULT} to build up the address expression.
16228
16229 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16230 creating non-canonical RTL.
16231
16232 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16233
16234 PR ipa/60243
16235 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16236 functions; reorganize to make cheap checks first.
16237 (inline_small_functions): Do not estimate growth when dumping;
16238 it is expensive.
16239 * ipa-inline.h (inline_summary): Add min_size.
16240 (growth_likely_positive): New function.
16241 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16242 (set_cond_stmt_execution_predicate): Cleanup.
16243 (estimate_edge_size_and_time): Compute min_size.
16244 (estimate_calls_size_and_time): Likewise.
16245 (estimate_node_size_and_time): Likewise.
16246 (inline_update_overall_summary): Update min_size.
16247 (do_estimate_edge_time): Likewise.
16248 (do_estimate_edge_size): Update.
16249 (do_estimate_edge_hints): Update.
16250 (growth_likely_positive): New function.
16251
16252 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16253
16254 PR target/60693
16255 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16256 also if addr has VOIDmode.
16257
16258 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16259
16260 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16261 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16262 Declare extern.
16263 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16264 instructions as well as AdvancedSIMD loads.
16265
16266 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16267
16268 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16269 Use crypto_aese type.
16270 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16271 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16272 crypto_aese, crypto_aesmc. Move to types.md.
16273 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16274 crypto_aesmc.
16275 * config/arm/iterators.md (crypto_type): Likewise.
16276
16277 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16278
16279 * cgraph.c: Include expr.h and tree-dfa.h.
16280 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16281 remove LHS.
16282
16283 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16284
16285 PR target/60675
16286 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16287 regs from checking multi-reg pseudos.
16288
16289 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16290
16291 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16292
16293 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16294
16295 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16296 if it would clobber the stack pointer, even temporarily.
16297
16298 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16299
16300 * mode-switching.c: Make small adjustments to the top comment.
16301
16302 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16303
16304 * config/rs6000/constraints.md (wD constraint): New constraint to
16305 match the constant integer to get the top DImode/DFmode out of a
16306 vector in a VSX register.
16307
16308 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16309 match the constant integer to get the top DImode/DFmode out of a
16310 vector in a VSX register.
16311
16312 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16313 for ISA 2.07.
16314
16315 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16316 vbpermq builtins.
16317
16318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16319 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16320
16321 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16322 Optimize vec_extract of 64-bit values, where the value being
16323 extracted is in the top word, where we can use scalar
16324 instructions. Add direct move and store support. Combine the big
16325 endian/little endian vector select load support into a single insn.
16326 (vsx_extract_<mode>_internal1): Likewise.
16327 (vsx_extract_<mode>_internal2): Likewise.
16328 (vsx_extract_<mode>_load): Likewise.
16329 (vsx_extract_<mode>_store): Likewise.
16330 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16331 combined into vsx_extract_<mode>_load.
16332 (vsx_extract_<mode>_one_le): Likewise.
16333
16334 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16335 define the top 64-bit vector element.
16336
16337 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16338 constraint.
16339
16340 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16341 Document vec_vbpermq builtin.
16342
16343 PR target/60672
16344 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16345 enable use of xxsldwi and xxpermdi builtin functions.
16346 (vec_xxpermdi): Likewise.
16347
16348 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16349 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16350
16351 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16352
16353 PR rtl-optimization/60650
16354 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16355 first_p. Use it.
16356 (find_spills_for): New.
16357 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16358 Spill all pseudos on the second iteration.
16359
16360 2014-03-27 Marek Polacek <polacek@redhat.com>
16361
16362 PR c/50347
16363 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16364 types.
16365
16366 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16367
16368 * config/s390/s390.c (s390_can_use_return_insn): Check for
16369 call-saved FPRs on 31 bit.
16370
16371 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16372
16373 PR middle-end/60682
16374 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16375 if they need regimplification, just drop them instead of
16376 calling gimple_regimplify_operands on them.
16377
16378 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16379
16380 PR target/60580
16381 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16382 (aarch64_frame_pointer_required): Adjust logic.
16383 (aarch64_can_eliminate): Adjust logic.
16384 (aarch64_override_options_after_change): Adjust logic.
16385
16386 2014-03-27 Dehao Chen <dehao@google.com>
16387
16388 * ipa-inline.c (early_inliner): Update node's inline info.
16389
16390 2014-03-26 Dehao Chen <dehao@google.com>
16391
16392 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16393 compiler inserted conditional jumps for NAN float check.
16394
16395 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16396
16397 * ubsan.h (ubsan_create_data): Change second argument's type
16398 to const location_t *.
16399 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16400 _("<unknown>").
16401 (ubsan_create_data): Change second argument to const location_t *PLOC.
16402 Create Loc field whenever PLOC is non-NULL.
16403 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16404 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16405 callers.
16406
16407 PR other/59545
16408 * real.c (real_to_integer2): Change type of low to UHWI.
16409
16410 2014-03-26 Tobias Burnus <burnus@net-b.de>
16411
16412 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16413 (CILK_SELF_SPECS): New define.
16414 (driver_self_specs): Use it.
16415
16416 2014-03-26 Richard Biener <rguenther@suse.de>
16417
16418 * tree-pretty-print.c (percent_K_format): Implement special
16419 case for LTO and its stripped down BLOCK tree.
16420
16421 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16422
16423 PR sanitizer/60636
16424 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16425
16426 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16427 one range is range_int_cst_p, but not both, at least optimize
16428 addition/subtraction of 0 and multiplication by 0 or 1.
16429 * gimple-fold.c (gimple_fold_call): Fold
16430 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16431 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16432 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16433
16434 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16435
16436 PR rtl-optimization/60452
16437 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16438 <case REG>: Return 1 for invalid offsets from the frame pointer.
16439
16440 2014-03-26 Marek Polacek <polacek@redhat.com>
16441
16442 PR c/37428
16443 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16444 a structure/union.
16445
16446 2014-03-26 Marek Polacek <polacek@redhat.com>
16447
16448 PR c/39525
16449 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16450 field members.
16451
16452 2014-03-26 Marek Polacek <polacek@redhat.com>
16453
16454 PR other/59545
16455 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16456 multiplication in unsigned type.
16457
16458 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16459
16460 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16461
16462 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16463
16464 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16465
16466 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16467
16468 PR ipa/60315
16469 * cif-code.def (UNREACHABLE) New code.
16470 * ipa-inline.c (inline_small_functions): Skip edges to
16471 __builtlin_unreachable.
16472 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16473 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16474 predicate to __bulitin_unreachable.
16475 (set_cond_stmt_execution_predicate): Fix issue when
16476 invert_tree_comparison returns ERROR_MARK.
16477 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16478 propagate to inline clones.
16479 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16480 to unreachable.
16481 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16482 * cgraphclones.c (cgraph_clone_node): If call destination is already
16483 ureachable, do not redirect it back.
16484 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16485 unreachable.
16486
16487 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16488
16489 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16490 Do not modify inline clones.
16491
16492 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16493
16494 * config/i386/i386.md (general_sext_operand): New mode attr.
16495 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16496 don't generate (sign_extend (const_int)).
16497 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16498 operands[2]. Use We constraint instead of <i> and
16499 <general_sext_operand> predicate instead of <general_operand>.
16500 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16501 * config/i386/constraints.md (We): New constraint.
16502 * config/i386/predicates.md (x86_64_sext_operand,
16503 sext_operand): New predicates.
16504
16505 2014-03-25 Martin Jambor <mjambor@suse.cz>
16506
16507 PR ipa/60600
16508 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16509 inconsistent devirtualizations to __builtin_unreachable.
16510
16511 2014-03-25 Marek Polacek <polacek@redhat.com>
16512
16513 PR c/35449
16514 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16515
16516 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16517
16518 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16519 order of elements for big-endian.
16520
16521 2014-03-25 Richard Biener <rguenther@suse.de>
16522
16523 PR middle-end/60635
16524 * gimplify-me.c (gimple_regimplify_operands): Update the
16525 re-gimplifed stmt.
16526
16527 2014-03-25 Martin Jambor <mjambor@suse.cz>
16528
16529 PR ipa/59176
16530 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16531 (lto_output_varpool_node): Likewise.
16532 (input_overwrite_node): Likewise.
16533 (input_varpool_node): Likewise.
16534
16535 2014-03-25 Richard Biener <rguenther@suse.de>
16536
16537 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16538 (run_gcc): Likewise.
16539
16540 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16541
16542 * combine.c (simplify_compare_const): Add MODE argument.
16543 Handle mode_width 0 as very large mode_width.
16544 (try_combine, simplify_comparison): Adjust callers.
16545
16546 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16547 type to avoid signed integer overflow.
16548 * explow.c (plus_constant): Likewise.
16549
16550 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16551
16552 * doc/generic.texi: Correct typos.
16553
16554 2014-03-24 Tobias Burnus <burnus@net-b.de>
16555
16556 * doc/invoke.texi (-flto): Expand section about
16557 using static libraries with LTO.
16558
16559 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16560
16561 PR rtl-optimization/60501
16562 * optabs.def (addptr3_optab): New optab.
16563 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16564 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16565 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16566
16567 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16568
16569 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16570
16571 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16572
16573 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16574 _mm512_set1_pd.
16575
16576 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16577 (_mm256_undefined_ps): Define.
16578 (_mm256_undefined_pd): Define.
16579 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16580 (_mm_undefined_pd): Define.
16581 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16582 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16583 (_mm512_undefined_ps): Define.
16584 (_mm512_undefined_pd): Define.
16585 Use _mm*_undefined_*.
16586 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16587
16588 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16589
16590 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16591 (lshr_simd): DI mode added.
16592 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16593 (aarch64_ushr_simddi): Likewise.
16594 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16595 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16596 (vshrd_n_u64): Likewise.
16597
16598 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16599
16600 * Makefile.in (s-macro_list): Depend on cc1.
16601
16602 2014-03-23 Teresa Johnson <tejohnson@google.com>
16603
16604 * ipa-utils.c (ipa_print_order): Use specified dump file.
16605
16606 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16607
16608 PR rtl-optimization/60601
16609 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16610
16611 * gcc.c (eval_spec_function): Initialize save_growing_value.
16612
16613 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16614
16615 PR sanitizer/60613
16616 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16617 code == MINUS_EXPR, never swap op0 with op1.
16618
16619 * toplev.c (init_local_tick): Avoid signed integer multiplication
16620 overflow.
16621 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16622 shift by first operand's bitsize.
16623
16624 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16625
16626 PR target/60610
16627 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16628 redefine to 1 or 0.
16629 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16630 TARGET_ISA_64BIT_P(x).
16631
16632 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16633
16634 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16635 pattern for vector nor instead of subtract from splat(-1).
16636 (altivec_expand_vec_perm_const_le): Likewise.
16637
16638 2014-03-21 Richard Henderson <rth@twiddle.net>
16639
16640 PR target/60598
16641 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16642 related insns after epilogue_completed.
16643
16644 2014-03-21 Martin Jambor <mjambor@suse.cz>
16645
16646 PR ipa/59176
16647 * cgraph.h (symtab_node): New flag body_removed.
16648 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16649 when removing bodies.
16650 * symtab.c (dump_symtab_base): Dump body_removed flag.
16651 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16652 had their bodies removed.
16653
16654 2014-03-21 Martin Jambor <mjambor@suse.cz>
16655
16656 PR ipa/60419
16657 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16658 in the border.
16659
16660 2014-03-21 Richard Biener <rguenther@suse.de>
16661
16662 PR tree-optimization/60577
16663 * tree-core.h (struct tree_base): Document nothrow_flag use
16664 in DECL_NONALIASED.
16665 * tree.h (DECL_NONALIASED): New.
16666 (may_be_aliased): Adjust.
16667 * coverage.c (build_var): Set DECL_NONALIASED.
16668
16669 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16670
16671 * expr.c (expand_expr_real_1): Remove outdated comment.
16672
16673 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16674
16675 PR middle-end/60597
16676 * ira.c (adjust_cleared_regs): Call copy_rtx on
16677 *reg_equiv[REGNO (loc)].src_p before passing it to
16678 simplify_replace_fn_rtx.
16679
16680 PR target/60568
16681 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16682 into CONST, put pic register as first operand of PLUS. Use
16683 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16684
16685 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16686
16687 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16688
16689 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16690
16691 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16692 around for store forwarding issue in the FPU on the UT699.
16693 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16694 loads and operations if -mfix-ut699 is specified.
16695 (divtf3_hq): Tweak attribute.
16696 (sqrttf2_hq): Likewise.
16697
16698 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16699
16700 * calls.c (store_one_arg): Remove incorrect const qualification on the
16701 type of the temporary.
16702 * cfgexpand.c (expand_return): Likewise.
16703 * expr.c (expand_constructor): Likewise.
16704 (expand_expr_real_1): Likewise.
16705
16706 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16707
16708 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16709 of parts.
16710
16711 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16712
16713 PR target/60039
16714 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16715
16716 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16717
16718 * config/arm/aarch-common-protos.h
16719 (alu_cost_table): Fix spelling of "extend".
16720 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16721
16722 2014-03-19 Richard Biener <rguenther@suse.de>
16723
16724 PR middle-end/60553
16725 * tree-core.h (tree_type_common): Re-order pointer members
16726 to reduce recursion depth during GC walks.
16727
16728 2014-03-19 Marek Polacek <polacek@redhat.com>
16729
16730 PR sanitizer/60569
16731 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16732 before accessing it.
16733
16734 2014-03-19 Richard Biener <rguenther@suse.de>
16735
16736 PR lto/59543
16737 * lto-streamer-in.c (input_function): In WPA stage do not drop
16738 debug stmts.
16739
16740 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16741
16742 PR tree-optimization/60559
16743 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16744 with build_zero_cst assignment.
16745
16746 2014-03-18 Kai Tietz <ktietz@redhat.com>
16747
16748 PR rtl-optimization/56356
16749 * sdbout.c (sdbout_parms): Verify that parms'
16750 incoming argument is valid.
16751 (sdbout_reg_parms): Likewise.
16752
16753 2014-03-18 Richard Henderson <rth@redhat.com>
16754
16755 PR target/60562
16756 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16757 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16758 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16759
16760 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16761
16762 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16763 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16764 Italicize plugin event names in description. Explain that
16765 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16766 Remind that no GCC functions should be called after PLUGIN_FINISH.
16767 Explain what pragmas with expansion are.
16768
16769 2014-03-18 Martin Liska <mliska@suse.cz>
16770
16771 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16772 gimple call statement is update.
16773 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16774 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16775
16776 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16777
16778 PR sanitizer/60557
16779 * ubsan.c (ubsan_instrument_unreachable): Call
16780 initialize_sanitizer_builtins.
16781 (ubsan_pass): Likewise.
16782
16783 PR sanitizer/60535
16784 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16785 varpool_finalize_decl instead of rest_of_decl_compilation.
16786
16787 2014-03-18 Richard Biener <rguenther@suse.de>
16788
16789 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16790 by using bitmap_and_compl instead of bitmap_and_compl_into.
16791 (df_rd_transfer_function): Likewise.
16792
16793 2014-03-18 Richard Biener <rguenther@suse.de>
16794
16795 * doc/lto.texi (fresolution): Fix typo.
16796
16797 2014-03-18 Richard Biener <rguenther@suse.de>
16798
16799 * doc/invoke.texi (flto): Update for changes in 4.9.
16800
16801 2014-03-18 Richard Biener <rguenther@suse.de>
16802
16803 * doc/loop.texi: Remove section on the removed lambda framework.
16804 Update loop docs with recent changes in preserving loop structure.
16805
16806 2014-03-18 Richard Biener <rguenther@suse.de>
16807
16808 * doc/lto.texi (-fresolution): Document.
16809
16810 2014-03-18 Richard Biener <rguenther@suse.de>
16811
16812 * doc/contrib.texi: Adjust my name.
16813
16814 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16815
16816 PR ipa/58721
16817 * internal-fn.c: Include diagnostic-core.h.
16818 (expand_BUILTIN_EXPECT): New function.
16819 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16820 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16821 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16822 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16823 IFN_BUILTIN_EXPECT.
16824 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16825 Revert 3 argument __builtin_expect code.
16826 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16827 * gimple-fold.c (gimple_fold_call): Likewise.
16828 * tree.h (fold_builtin_expect): New prototype.
16829 * builtins.c (build_builtin_expect_predicate): Add predictor
16830 argument, if non-NULL, create 3 argument __builtin_expect.
16831 (fold_builtin_expect): No longer static. Add ARG2 argument,
16832 pass it through to build_builtin_expect_predicate.
16833 (fold_builtin_2): Adjust caller.
16834 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16835 * internal-fn.def (BUILTIN_EXPECT): New.
16836
16837 2014-03-18 Tobias Burnus <burnus@net-b.de>
16838
16839 PR ipa/58721
16840 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16841 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16842 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16843
16844 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16845
16846 PR ipa/58721
16847 * predict.c (combine_predictions_for_bb): Fix up formatting.
16848 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16849 fill what it points to if non-NULL.
16850 (tree_predict_by_opcode): Adjust caller, use the predictor.
16851 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16852
16853 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16854
16855 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16856 proper constant for the store mode.
16857
16858 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16859
16860 * symtab.c (change_decl_assembler_name): Fix transparent alias
16861 chain construction.
16862
16863 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16864
16865 * config/aarch64/aarch64.c: Correct the comments about the
16866 aarch64 stack layout.
16867
16868 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
16869
16870 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
16871 check for GF_OMP_FOR_KIND_FOR.
16872
16873 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
16874
16875 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
16876 ymm and zmm register names.
16877
16878 2014-03-17 Jakub Jelinek <jakub@redhat.com>
16879
16880 PR target/60516
16881 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
16882 note creation for the 2010-08-31 changes.
16883
16884 2014-03-17 Marek Polacek <polacek@redhat.com>
16885
16886 PR middle-end/60534
16887 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
16888 as -fno-tree-loop-vectorize.
16889 (expand_omp_simd): Likewise.
16890
16891 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
16892
16893 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
16894 (eligible_for_call_delay): New prototype.
16895 * config/sparc/sparc.c (tls_call_delay): Rename into...
16896 (eligible_for_call_delay): ...this. Return false if the instruction
16897 cannot be put in the delay slot of a branch.
16898 (eligible_for_restore_insn): Simplify.
16899 (eligible_for_return_delay): Return false if the instruction cannot be
16900 put in the delay slot of a branch and simplify.
16901 (eligible_for_sibcall_delay): Return false if the instruction cannot be
16902 put in the delay slot of a branch.
16903 * config/sparc/sparc.md (fix_ut699): New attribute.
16904 (tls_call_delay): Delete.
16905 (in_call_delay): Reimplement.
16906 (eligible_for_sibcall_delay): Rename into...
16907 (in_sibcall_delay): ...this.
16908 (eligible_for_return_delay): Rename into...
16909 (in_return_delay): ...this.
16910 (in_branch_delay): Reimplement.
16911 (in_uncond_branch_delay): Delete.
16912 (in_annul_branch_delay): Delete.
16913
16914 2014-03-14 Richard Henderson <rth@redhat.com>
16915
16916 PR target/60525
16917 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
16918 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
16919 (*floathi<X87MODEF>2_i387_with_temp): Remove.
16920 (floathi splitters): Remove.
16921 (float<SWI48x>xf2): New pattern.
16922 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
16923 code that tried to handle DImode for 32-bit, but which was excluded
16924 by the pattern's condition. Drop allocation of stack temporary.
16925 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
16926 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
16927 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
16928 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
16929 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
16930 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
16931 (*float<SWI48><MODEF>2_sse_interunit): Remove.
16932 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
16933 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
16934 (*float<SWI48x><X87MODEF>2_i387): Remove.
16935 (all float _with_temp splitters): Remove.
16936 (*float<SWI48x><MODEF>2_i387): New pattern.
16937 (*float<SWI48><MODEF>2_sse): New pattern.
16938 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
16939 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
16940
16941 2014-03-14 Jakub Jelinek <jakub@redhat.com>
16942 Marek Polacek <polacek@redhat.com>
16943
16944 PR middle-end/60484
16945 * common.opt (dump_base_name_prefixed): New Variable.
16946 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
16947 if x_dump_base_name_prefixed is already set, set it at the end.
16948
16949 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
16950
16951 PR rtl-optimization/60508
16952 * lra-constraints.c (get_reload_reg): Add new parameter
16953 in_subreg_p.
16954 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
16955 Pass the new parameter values.
16956
16957 2014-03-14 Richard Biener <rguenther@suse.de>
16958
16959 * common.opt: Revert unintented changes from r205065.
16960 * opts.c: Likewise.
16961
16962 2014-03-14 Richard Biener <rguenther@suse.de>
16963
16964 PR middle-end/60518
16965 * cfghooks.c (split_block): Properly adjust all loops the
16966 block was a latch of.
16967
16968 2014-03-14 Martin Jambor <mjambor@suse.cz>
16969
16970 PR lto/60461
16971 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
16972 and simplify it.
16973
16974 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
16975
16976 PR target/59396
16977 * config/avr/avr.c (avr_set_current_function): Pass function name
16978 through default_strip_name_encoding before sanity checking instead
16979 of skipping the first char of the assembler name.
16980
16981 2014-03-13 Richard Henderson <rth@redhat.com>
16982
16983 PR debug/60438
16984 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
16985 (ix86_force_to_memory, ix86_free_from_memory): Remove.
16986 * config/i386/i386-protos.h: Likewise.
16987 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
16988 in the expander instead of a splitter.
16989 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
16990 any possibility of requiring a memory.
16991 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
16992 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
16993 (fp branch splitters): Update for ix86_split_fp_branch.
16994 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
16995 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
16996 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
16997 (*fop_<MODEF>_2_i387): Remove f/r alternative.
16998 (*fop_<MODEF>_3_i387): Likewise.
16999 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17000 (splitters for the fop_* register patterns): Remove.
17001 (fscalexf4_i387): Rename from *fscalexf4_i387.
17002 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17003
17004 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17005
17006 PR tree-optimization/59779
17007 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17008 type for bitsize and maxsize instead of HOST_WIDE_INT.
17009
17010 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17011
17012 PR rtl-optimization/57320
17013 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17014 the CFG after thread_prologue_and_epilogue_insns.
17015
17016 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17017
17018 PR rtl-optimization/57189
17019 * lra-constraints.c (process_alt_operands): Disfavor spilling
17020 vector pseudos.
17021
17022 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17023
17024 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17025
17026 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17027
17028 PR tree-optimization/59025
17029 PR middle-end/60418
17030 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17031 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17032
17033 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17034
17035 PR target/60486
17036 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17037 calls of avr_out_plus_1.
17038
17039 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17040
17041 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17042 BB's single pred and update the father loop's latch info later.
17043
17044 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17045
17046 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17047 (VEC_M): Likewise.
17048 (VEC_N): Likewise.
17049 (VEC_R): Likewise.
17050 (VEC_base): Likewise.
17051 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17052 registers, we need to swap double words in little endian mode.
17053
17054 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17055 to be a container mode for 128-bit integer operations added in ISA
17056 2.07. Unlike TImode and PTImode, the preferred register set is
17057 the Altivec/VMX registers for the 128-bit operations.
17058
17059 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17060 declarations.
17061 (rs6000_split_128bit_ok_p): Likewise.
17062
17063 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17064 macros for creating ISA 2.07 normal and overloaded builtin
17065 functions with 3 arguments.
17066 (BU_P8V_OVERLOAD_3): Likewise.
17067 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17068 for use as overloaded functions.
17069 (VPERM_1TI_UNS): Likewise.
17070 (VSEL_1TI): Likewise.
17071 (VSEL_1TI_UNS): Likewise.
17072 (ST_INTERNAL_1ti): Likewise.
17073 (LD_INTERNAL_1ti): Likewise.
17074 (XXSEL_1TI): Likewise.
17075 (XXSEL_1TI_UNS): Likewise.
17076 (VPERM_1TI): Likewise.
17077 (VPERM_1TI_UNS): Likewise.
17078 (XXPERMDI_1TI): Likewise.
17079 (SET_1TI): Likewise.
17080 (LXVD2X_V1TI): Likewise.
17081 (STXVD2X_V1TI): Likewise.
17082 (VEC_INIT_V1TI): Likewise.
17083 (VEC_SET_V1TI): Likewise.
17084 (VEC_EXT_V1TI): Likewise.
17085 (EQV_V1TI): Likewise.
17086 (NAND_V1TI): Likewise.
17087 (ORC_V1TI): Likewise.
17088 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17089 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17090 overloaded builtin.
17091 (VADDUQM): Likewise.
17092 (VSUBCUQ): Likewise.
17093 (VADDEUQM): Likewise.
17094 (VADDECUQ): Likewise.
17095 (VSUBEUQM): Likewise.
17096 (VSUBECUQ): Likewise.
17097
17098 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17099 __int128_t and __uint128_t types.
17100 (__uint128_type): Likewise.
17101 (altivec_categorize_keyword): Add support for vector __int128_t,
17102 vector __uint128_t, vector __int128, and vector unsigned __int128
17103 as a container type for TImode operations that need to be done in
17104 VSX/Altivec registers.
17105 (rs6000_macro_to_expand): Likewise.
17106 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17107 to support 128-bit integer instructions vaddcuq, vadduqm,
17108 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17109 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17110
17111 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17112 for V1TImode, and set up preferences to use VSX/Altivec registers.
17113 Setup VSX reload handlers.
17114 (rs6000_debug_reg_global): Likewise.
17115 (rs6000_init_hard_regno_mode_ok): Likewise.
17116 (rs6000_preferred_simd_mode): Likewise.
17117 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17118 (easy_altivec_constant): Likewise.
17119 (output_vec_const_move): Likewise.
17120 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17121 simple move.
17122 (rs6000_expand_vector_extract): Likewise.
17123 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17124 addressing.
17125 (rs6000_const_vec): Add support for V1TImode.
17126 (rs6000_emit_le_vsx_load): Swap double words when loading or
17127 storing TImode/V1TImode.
17128 (rs6000_emit_le_vsx_store): Likewise.
17129 (rs6000_emit_le_vsx_move): Likewise.
17130 (rs6000_emit_move): Add support for V1TImode.
17131 (altivec_expand_ld_builtin): Likewise.
17132 (altivec_expand_st_builtin): Likewise.
17133 (altivec_expand_vec_init_builtin): Likewise.
17134 (altivec_expand_builtin): Likewise.
17135 (rs6000_init_builtins): Add support for V1TImode type. Add
17136 support for ISA 2.07 128-bit integer builtins. Define type names
17137 for the VSX/Altivec vector types.
17138 (altivec_init_builtins): Add support for overloaded vector
17139 functions with V1TImode type.
17140 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17141 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17142 external function.
17143 (rs6000_split_128bit_ok_p): Likewise.
17144 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17145 __int128_t and vector __uint128_t.
17146
17147 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17148 and mode attributes.
17149 (VSX_M): Likewise.
17150 (VSX_M2): Likewise.
17151 (VSm): Likewise.
17152 (VSs): Likewise.
17153 (VSr): Likewise.
17154 (VSv): Likewise.
17155 (VS_scalar): Likewise.
17156 (VS_double): Likewise.
17157 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17158
17159 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17160 we support the ISA 2.07 128-bit integer arithmetic instructions.
17161 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17162 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17163 and TImode types for use with the builtin functions.
17164 (V1TI_type_node): Likewise.
17165 (unsigned_V1TI_type_node): Likewise.
17166 (intTI_type_internal_node): Likewise.
17167 (uintTI_type_internal_node): Likewise.
17168
17169 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17170 128-bit builtin functions.
17171 (UNSPEC_VADDEUQM): Likewise.
17172 (UNSPEC_VADDECUQ): Likewise.
17173 (UNSPEC_VSUBCUQ): Likewise.
17174 (UNSPEC_VSUBEUQM): Likewise.
17175 (UNSPEC_VSUBECUQ): Likewise.
17176 (VM): Add V1TImode to vector mode iterators.
17177 (VM2): Likewise.
17178 (VI_unit): Likewise.
17179 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17180 (altivec_vaddcuq): Likewise.
17181 (altivec_vsubuqm): Likewise.
17182 (altivec_vsubcuq): Likewise.
17183 (altivec_vaddeuqm): Likewise.
17184 (altivec_vaddecuq): Likewise.
17185 (altivec_vsubeuqm): Likewise.
17186 (altivec_vsubecuq): Likewise.
17187
17188 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17189 mode iterators.
17190 (BOOL_128): Likewise.
17191 (BOOL_REGS_OUTPUT): Likewise.
17192 (BOOL_REGS_OP1): Likewise.
17193 (BOOL_REGS_OP2): Likewise.
17194 (BOOL_REGS_UNARY): Likewise.
17195 (BOOL_REGS_AND_CR0): Likewise.
17196
17197 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17198 128-bit integer builtin support.
17199 (vec_vadduqm): Likewise.
17200 (vec_vaddecuq): Likewise.
17201 (vec_vaddeuqm): Likewise.
17202 (vec_vsubecuq): Likewise.
17203 (vec_vsubeuqm): Likewise.
17204 (vec_vsubcuq): Likewise.
17205 (vec_vsubuqm): Likewise.
17206
17207 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17208 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17209 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17210 128-bit integer add/subtract to ISA 2.07.
17211
17212 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17213
17214 * config/arc/arc.c (arc_predicate_delay_insns):
17215 Fix third argument passed to conditionalize_nonjump.
17216
17217 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17218
17219 * config/aarch64/aarch64-builtins.c
17220 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17221 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17222 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17223 instead of __builtin_lfloor.
17224 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17225
17226 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17227
17228 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17229 (tree_ssa_ifcombine_bb_1): New function.
17230 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17231 is an empty forwarder block to then_bb or vice versa and then_bb
17232 and else_bb are effectively swapped.
17233
17234 2014-03-12 Christian Bruel <christian.bruel@st.com>
17235
17236 PR target/60264
17237 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17238 REG_CFA_DEF_CFA note.
17239 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17240 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17241
17242 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17243
17244 PR tree-optimization/60454
17245 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17246
17247 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17248
17249 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17250 Do not define target_cpu_default2 to generic.
17251 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17252 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17253 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17254
17255 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17256 Marc Glisse <marc.glisse@inria.fr>
17257
17258 PR tree-optimization/60502
17259 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17260 instead of build_low_bits_mask.
17261
17262 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17263
17264 PR middle-end/60482
17265 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17266 if there are multiple uses, but op doesn't live on E edge.
17267 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17268 clobber stmts before __builtin_unreachable.
17269
17270 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17271
17272 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17273 hard_frame_pointer_rtx.
17274 * cse.c (cse_insn): Remove volatile check.
17275 * cselib.c (cselib_process_insn): Likewise.
17276 * dse.c (scan_insn): Likewise.
17277
17278 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17279
17280 * config/arc/arc.c (conditionalize_nonjump): New function,
17281 broken out of ...
17282 (arc_ifcvt): ... this.
17283 (arc_predicate_delay_insns): Use it.
17284
17285 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17286
17287 * config/arc/predicates.md (extend_operand): During/after reload,
17288 allow const_int_operand.
17289 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17290 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17291 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17292 to "i".
17293 (umulsi3_highpart_i): Likewise.
17294
17295 2014-03-11 Richard Biener <rguenther@suse.de>
17296
17297 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17298 Add asserts to guard possible wrong-code bugs.
17299
17300 2014-03-11 Richard Biener <rguenther@suse.de>
17301
17302 PR tree-optimization/60429
17303 PR tree-optimization/60485
17304 * tree-ssa-structalias.c (set_union_with_increment): Properly
17305 take into account all fields that overlap the shifted vars.
17306 (do_sd_constraint): Likewise.
17307 (do_ds_constraint): Likewise.
17308 (get_constraint_for_ptr_offset): Likewise.
17309
17310 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17311
17312 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17313 (nios2_compute_frame_layout):
17314 Add calculation of cfun->machine->fp_save_offset.
17315 (nios2_expand_prologue): Correct setting of frame pointer register
17316 in prologue.
17317 (nios2_expand_epilogue): Update recovery of stack pointer from
17318 frame pointer accordingly.
17319 (nios2_initial_elimination_offset): Update calculation of offset
17320 for eliminating to HARD_FRAME_POINTER_REGNUM.
17321
17322 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17323
17324 PR ipa/60457
17325 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17326 cgraph_get_create_node on VAR_DECLs.
17327
17328 2014-03-10 Richard Biener <rguenther@suse.de>
17329
17330 PR middle-end/60474
17331 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17332
17333 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17334
17335 * config/vms/vms.opt (vms_float_format): New variable.
17336
17337 2014-03-08 Tobias Burnus <burnus@net-b.de>
17338
17339 * doc/invoke.texi (-fcilkplus): Update implementation status.
17340
17341 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17342 Richard Biener <rguenther@suse.de>
17343
17344 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17345 consistently accross all TUs.
17346 (run_gcc): Enable -fshort-double automatically at link at link-time
17347 and disallow override.
17348
17349 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17350
17351 PR target/58271
17352 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17353 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17354 if they can't be used.
17355
17356 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17357
17358 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17359 for Solaris 11/x86 ld.
17360 * configure: Regenerate.
17361
17362 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17363
17364 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17365 (LIB_TLS_SPEC): Save as ld_tls_libs.
17366 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17367 (HAVE_AS_IX86_TLSLDM): New test.
17368 * configure, config.in: Regenerate.
17369 * config/i386/i386.c (legitimize_tls_address): Fall back to
17370 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17371 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17372 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17373 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17374
17375 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17376
17377 * common.opt (fira-loop-pressure): Mark as optimization.
17378
17379 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17380
17381 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17382 an OpenMP mappable type.
17383
17384 2014-03-06 Matthias Klose <doko@ubuntu.com>
17385
17386 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17387 MULTILIB_OSDIRNAMES is not defined.
17388
17389 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17390 Meador Inge <meadori@codesourcery.com>
17391
17392 PR target/58595
17393 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17394 (arm_legitimize_address): Call legitimize_tls_address for any
17395 arm_tls_referenced_p expression, handle constant addend. Call it
17396 before testing for !TARGET_ARM.
17397 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17398
17399 2014-03-06 Richard Biener <rguenther@suse.de>
17400
17401 PR middle-end/60445
17402 PR lto/60424
17403 PR lto/60427
17404 Revert
17405 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17406
17407 * tree-streamer.c (record_common_node): Assert we don't record
17408 nodes with type double.
17409 (preload_common_node): Skip type double, complex double and double
17410 pointer since it is now frontend dependent due to fshort-double option.
17411
17412 2014-03-06 Richard Biener <rguenther@suse.de>
17413
17414 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17415 or -fno-lto is specified and the linker has full plugin support.
17416 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17417 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17418 * lto-wrapper.c (merge_and_complain): Merge compile-time
17419 optimization levels.
17420 (run_gcc): And pass it through to the link options.
17421
17422 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17423
17424 PR debug/60381
17425 Revert:
17426 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17427 PR debug/59992
17428 * cselib.c (remove_useless_values): Skip to avoid quadratic
17429 behavior if the condition moved from...
17430 (cselib_process_insn): ... here holds.
17431
17432 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17433
17434 PR plugins/59335
17435 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17436 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17437
17438 PR plugins/59335
17439 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17440 (TM_H): Add x86-tune.def.
17441
17442 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17443
17444 * config/aarch64/aarch64.c (generic_tunings):
17445 Use cortexa57_extra_costs.
17446
17447 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17448
17449 PR lto/60404
17450 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17451 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17452 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17453 cost for in_lto_p.
17454
17455 2014-03-04 Heiher <r@hev.cc>
17456
17457 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17458 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17459
17460 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17461
17462 * config/i386/predicates.md (const2356_operand): Change to ...
17463 (const2367_operand): ... this.
17464 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17465 const2367_operand.
17466 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17467 (*avx512pf_scatterpf<mode>sf): Ditto.
17468 (avx512pf_scatterpf<mode>df): Ditto.
17469 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17470 (*avx512pf_scatterpf<mode>df): Ditto.
17471 * config/i386/i386.c (ix86_expand_builtin): Update
17472 incorrect hint operand error message.
17473
17474 2014-03-04 Richard Biener <rguenther@suse.de>
17475
17476 * lto-section-in.c (lto_get_section_data): Fix const cast.
17477
17478 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17479
17480 * tree-streamer.c (record_common_node): Assert we don't record
17481 nodes with type double.
17482 (preload_common_node): Skip type double, complex double and double
17483 pointer since it is now frontend dependent due to fshort-double option.
17484
17485 2014-03-04 Richard Biener <rguenther@suse.de>
17486
17487 PR lto/60405
17488 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17489 (lto_input_toplevel_asms): Likewise.
17490 * lto-section-in.c (lto_get_section_data): Instead do it here
17491 for every section.
17492
17493 2014-03-04 Richard Biener <rguenther@suse.de>
17494
17495 PR tree-optimization/60382
17496 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17497 dead PHIs a reduction.
17498
17499 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17500
17501 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17502 hint value.
17503 (_mm_prefetch): Move out of GCC target("sse") pragma.
17504 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17505 GCC target("prfchw") pragma.
17506 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17507 for locality <= 2.
17508 * config/i386/i386.c (ix86_option_override_internal): Enable
17509 -mprfchw with -mprefetchwt1.
17510
17511 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17512
17513 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17514 Mark as varying.
17515
17516 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17517
17518 * opts.h (CL_PCH_IGNORE): Define.
17519 * targhooks.c (option_affects_pch_p):
17520 Return false for options that have CL_PCH_IGNORE set.
17521 * opt-functions.awk: Process PchIgnore.
17522 * doc/options.texi: Document PchIgnore.
17523
17524 * config/arc/arc.opt (misize): Add PchIgnore property.
17525
17526 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17527
17528 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17529 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17530 constraint on constants to permit them being loaded into
17531 GENERAL_REGS or BASE_REGS.
17532
17533 2014-03-03 Nick Clifton <nickc@redhat.com>
17534
17535 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17536 anti-cacnonical alternatives.
17537 (negandhi3_real): New pattern.
17538 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17539
17540 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17541
17542 * config/avr/avr-mcus.def: Remove atxmega16x1.
17543 * config/avr/avr-tables.opt: Regenerate.
17544 * config/avr/t-multilib: Regenerate.
17545 * doc/avr-mmcu.texi: Regenerate.
17546
17547 2014-03-03 Tobias Grosser <tobias@grosser.es>
17548 Mircea Namolaru <mircea.namolaru@inria.fr>
17549
17550 PR tree-optimization/58028
17551 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17552 scalar dimensions.
17553
17554 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17555
17556 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17557 not handled by recognizers.
17558
17559 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17560
17561 PR middle-end/60175
17562 * function.c (expand_function_end): Don't emit
17563 clobber_return_register sequence if clobber_after is a BARRIER.
17564 * cfgexpand.c (construct_exit_block): Append instructions before
17565 return_label to prev_bb.
17566
17567 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17568
17569 * config/rs6000/constraints.md: Document reserved use of "wc".
17570
17571 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17572
17573 PR ipa/60150
17574 * ipa.c (function_and_variable_visibility): When dissolving comdat
17575 group, also set all symbols to local.
17576
17577 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17578
17579 PR ipa/60306
17580
17581 Revert:
17582 2013-12-14 Jan Hubicka <jh@suse.cz>
17583 PR middle-end/58477
17584 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17585
17586 2014-03-02 Jon Beniston <jon@beniston.com>
17587
17588 PR bootstrap/48230
17589 PR bootstrap/50927
17590 PR bootstrap/52466
17591 PR target/46898
17592 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17593 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17594 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17595 (simple_return, *simple_return): New patterns
17596 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17597 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17598
17599 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17600
17601 * dwarf2out.c (gen_subprogram_die): Tidy.
17602
17603 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17604
17605 PR target/60071
17606 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17607 (*mov_t_msb_neg_negc): ... this new insn.
17608
17609 2014-02-28 Jason Merrill <jason@redhat.com>
17610
17611 PR c++/58678
17612 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17613 function.
17614
17615 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17616
17617 PR c++/60314
17618 * dwarf2out.c (decltype_auto_die): New static.
17619 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17620 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17621 (is_cxx_auto): Likewise.
17622
17623 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17624
17625 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17626 we are not using general regs only.
17627
17628 2014-02-28 Richard Biener <rguenther@suse.de>
17629
17630 PR target/60280
17631 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17632 previous fix and only allow to remove trivial pre-headers
17633 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17634 (remove_forwarder_block): Properly update the latch of a loop.
17635
17636 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17637
17638 PR debug/59992
17639 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17640 (cselib_preserved_hash_table): New.
17641 (preserve_constants_and_equivs): Move preserved vals to it.
17642 (cselib_find_slot): Look it up first.
17643 (cselib_init): Initialize it.
17644 (cselib_finish): Release it.
17645 (dump_cselib_table): Dump it.
17646
17647 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17648
17649 PR debug/59992
17650 * cselib.c (remove_useless_values): Skip to avoid quadratic
17651 behavior if the condition moved from...
17652 (cselib_process_insn): ... here holds.
17653
17654 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17655
17656 PR debug/57232
17657 * var-tracking.c (vt_initialize): Apply the same condition to
17658 preserve the CFA base value.
17659
17660 2014-02-28 Joey Ye <joey.ye@arm.com>
17661
17662 PR target/PR60169
17663 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17664 if reload in progress or completed.
17665
17666 2014-02-28 Tobias Burnus <burnus@net-b.de>
17667
17668 PR middle-end/60147
17669 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17670 NAMELIST_DECL.
17671
17672 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17673
17674 * doc/tm.texi.in (Condition Code Status): Update documention for
17675 relative locations of cc0-setter and cc0-user.
17676
17677 2014-02-27 Jeff Law <law@redhat.com>
17678
17679 PR rtl-optimization/52714
17680 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17681 into two independent simple sets, if I3 is a jump, ensure the
17682 pattern we place into I3 is a (set (pc) ...).
17683
17684 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17685 Jeff Law <law@redhat.com>
17686
17687 PR rtl-optimization/49847
17688 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17689 are in different blocks.
17690 * doc/tm.texi (Condition Code Status): Update documention for
17691 relative locations of cc0-setter and cc0-user.
17692
17693 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17694
17695 PR target/59222
17696 * lra.c (lra_emit_add): Check SUBREG too.
17697
17698 2014-02-27 Andreas Schwab <schwab@suse.de>
17699
17700 * config/m68k/m68k.c (m68k_option_override): Disable
17701 -flive-range-shrinkage for classic m68k.
17702 (m68k_override_options_after_change): Likewise.
17703
17704 2014-02-27 Marek Polacek <polacek@redhat.com>
17705
17706 PR middle-end/59223
17707 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17708 -Wmaybe-uninitialized.
17709
17710 2014-02-27 Alan Modra <amodra@gmail.com>
17711
17712 PR target/57936
17713 * reload1.c (emit_input_reload_insns): When reload_override_in,
17714 set old to rl->in_reg when rl->in_reg is a subreg.
17715
17716 2014-02-26 Richard Biener <rguenther@suse.de>
17717
17718 PR bootstrap/60343
17719 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17720
17721 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17722
17723 * common/config/i386/predicates.md (const1256_operand): Remove.
17724 (const2356_operand): New.
17725 (const_1_to_2_operand): Remove.
17726 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17727 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17728 (*avx512pf_gatherpf<mode>sf): Ditto.
17729 (avx512pf_gatherpf<mode>df): Ditto.
17730 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17731 (*avx512pf_gatherpf<mode>df): Ditto.
17732 (avx512pf_scatterpf<mode>sf): Ditto.
17733 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17734 (*avx512pf_scatterpf<mode>sf): Ditto.
17735 (avx512pf_scatterpf<mode>df): Ditto.
17736 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17737 (*avx512pf_scatterpf<mode>df): Ditto.
17738 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17739
17740 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17741
17742 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17743 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17744 (_mm512_mask_testn_epi64_mask): Move to ...
17745 * config/i386/avx512cdintrin.h: Here.
17746 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17747 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17748 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17749 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17750 TARGET_AVX512F from TARGET_AVX512CD.
17751
17752 2014-02-26 Richard Biener <rguenther@suse.de>
17753
17754 PR ipa/60327
17755 * ipa.c (walk_polymorphic_call_targets): Properly guard
17756 call to inline_update_overall_summary.
17757
17758 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17759
17760 PR target/60280
17761 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17762 and latches only if requested. Fix latch if it is removed.
17763 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17764 LOOPS_HAVE_PREHEADERS.
17765
17766 2014-02-25 Andrew Pinski <apinski@cavium.com>
17767
17768 * builtins.c (expand_builtin_thread_pointer): Create a new target
17769 when the target is NULL.
17770
17771 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17772
17773 PR rtl-optimization/60317
17774 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17775 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17776 * lra-assigns.c: Include params.h.
17777 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17778 other reload pseudos considerations.
17779
17780 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17781
17782 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17783 to use canonical form for nor<mode>3.
17784
17785 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17786
17787 PR target/55426
17788 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17789 conversions.
17790
17791 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17792
17793 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17794 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17795 (ix86_handle_option): Handle OPT_mprefetchwt1.
17796 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17797 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17798 PREFETCHWT1 CPUID.
17799 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17800 OPTION_MASK_ISA_PREFETCHWT1.
17801 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17802 (PTA_PREFETCHWT1): New.
17803 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17804 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17805 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17806 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17807 (*prefetch_avx512pf_<mode>_: Change into ...
17808 (*prefetch_prefetchwt1_<mode>: This.
17809 * config/i386/i386.opt (mprefetchwt1): New.
17810 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17811 (_mm_prefetch): Handle intent to write.
17812 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17813
17814 2014-02-25 Richard Biener <rguenther@suse.de>
17815
17816 PR middle-end/60291
17817 * emit-rtl.c (mem_attrs_htab): Remove.
17818 (mem_attrs_htab_hash): Likewise.
17819 (mem_attrs_htab_eq): Likewise.
17820 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17821 (init_emit_once): Do not allocate mem_attrs_htab.
17822
17823 2014-02-25 Richard Biener <rguenther@suse.de>
17824
17825 PR lto/60319
17826 * lto-opts.c (lto_write_options): Output non-explicit conservative
17827 -fwrapv, -fno-trapv and -fno-strict-overflow.
17828 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17829 (run_gcc): And pass them through.
17830
17831 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17832
17833 * sel-sched.c (calculate_new_fences): New parameter ptime.
17834 Calculate it as a maximum over all fence cycles.
17835 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17836 Print the final schedule timing when sched_verbose.
17837
17838 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17839
17840 PR rtl-optimization/60292
17841 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17842 bit fot the fence instruction.
17843
17844 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17845
17846 * calls.h: Fix typo in comment.
17847
17848 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17849
17850 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17851 adjusting offsetable addresses.
17852
17853 2014-02-24 Guozhi Wei <carrot@google.com>
17854
17855 * sparseset.h (sparseset_pop): Fix the wrong index.
17856
17857 2014-02-24 Walter Lee <walt@tilera.com>
17858
17859 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17860 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17861 triplet.
17862 * common/config/tilegx/tilegx-common.c
17863 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17864 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17865 (LINK_SPEC): Ditto.
17866 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
17867 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
17868 (tilegx_gimplify_va_arg_expr): Handle big endian.
17869 (tilegx_expand_unaligned_load): Ditto.
17870 (tilegx_expand_unaligned_store): Ditto.
17871 (TARGET_RETURN_IN_MSB): New.
17872 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
17873 (TARGET_ENDIAN_DEFAULT): New.
17874 (TARGET_BIG_ENDIAN): Handle big endian.
17875 (BYTES_BIG_ENDIAN): Ditto.
17876 (WORDS_BIG_ENDIAN): Ditto.
17877 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
17878 (ENDIAN_SPEC): New.
17879 (EXTRA_SPECS): New.
17880 * config/tilegx/tilegx.md (extv): Handle big endian.
17881 (extzv): Ditto.
17882 (insn_st<n>): Ditto.
17883 (insn_st<n>_add<bitsuffix>): Ditto.
17884 (insn_stnt<n>): Ditto.
17885 (insn_stnt<n>_add<bitsuffix>):Ditto.
17886 (vec_interleave_highv8qi): Handle big endian.
17887 (vec_interleave_highv8qi_be): New.
17888 (vec_interleave_highv8qi_le): New.
17889 (insn_v1int_h): Handle big endian.
17890 (vec_interleave_lowv8qi): Handle big endian.
17891 (vec_interleave_lowv8qi_be): New.
17892 (vec_interleave_lowv8qi_le): New.
17893 (insn_v1int_l): Handle big endian.
17894 (vec_interleave_highv4hi): Handle big endian.
17895 (vec_interleave_highv4hi_be): New.
17896 (vec_interleave_highv4hi_le): New.
17897 (insn_v2int_h): Handle big endian.
17898 (vec_interleave_lowv4hi): Handle big endian.
17899 (vec_interleave_lowv4hi_be): New.
17900 (vec_interleave_lowv4hi_le): New.
17901 (insn_v2int_l): Handle big endian.
17902 (vec_interleave_highv2si): Handle big endian.
17903 (vec_interleave_highv2si_be): New.
17904 (vec_interleave_highv2si_le): New.
17905 (insn_v4int_h): Handle big endian.
17906 (vec_interleave_lowv2si): Handle big endian.
17907 (vec_interleave_lowv2si_be): New.
17908 (vec_interleave_lowv2si_le): New.
17909 (insn_v4int_l): Handle big endian.
17910 * config/tilegx/tilegx.opt (mbig-endian): New option.
17911 (mlittle-endian): New option.
17912 * doc/install.texi: Document tilegxbe-linux.
17913 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
17914
17915 2014-02-24 Martin Jambor <mjambor@suse.cz>
17916
17917 PR ipa/60266
17918 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
17919 there are no parameter descriptors.
17920
17921 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
17922
17923 PR rtl-optimization/60268
17924 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
17925 initialization to ...
17926 (sched_rgn_init): ... here.
17927 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
17928
17929 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
17930
17931 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
17932 names.
17933
17934 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
17935
17936 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
17937 definition.
17938
17939 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
17940
17941 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
17942 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
17943
17944 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
17945
17946 * config/microblaze/predicates.md: Add cmp_op predicate.
17947 * config/microblaze/microblaze.md: Add branch_compare instruction
17948 which uses cmp_op predicate and emits cmp insn before branch.
17949 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
17950 to microblaze_expand_conditional_branch and consolidate logic.
17951 (microblaze_expand_conditional_branch): emit branch_compare
17952 insn instead of handling cmp op separate from branch insn.
17953
17954 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17955
17956 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
17957 to permit subregs.
17958
17959 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17960
17961 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
17962 define_insn with define_expand and new define_insn
17963 *altivec_lve<VI_char>x_internal.
17964 (altivec_stve<VI_char>x): Replace define_insn with define_expand
17965 and new define_insn *altivec_stve<VI_char>x_internal.
17966 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
17967 prototype.
17968 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
17969 lve*x built-ins.
17970 (altivec_expand_stvex_be): New function.
17971
17972 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
17973
17974 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
17975 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
17976 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
17977 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
17978
17979 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
17980
17981 PR target/60298
17982 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
17983 instead of emit_move_insn.
17984
17985 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17986
17987 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
17988 vspltw with vsldoi.
17989 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
17990 gen_altivec_vsumsws.
17991
17992 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17993
17994 * config/rs6000/altivec.md (altivec_lvxl): Rename as
17995 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
17996 (altivec_lvxl_<mode>): New define_expand incorporating
17997 -maltivec=be semantics where needed.
17998 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
17999 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18000 semantics where needed.
18001 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18002 (altivec_stvx_<mode>): New define_expand incorporating
18003 -maltivec=be semantics where needed.
18004 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18005 VM2 iterator instead of V4SI.
18006 (altivec_stvxl_<mode>): New define_expand incorporating
18007 -maltivec=be semantics where needed.
18008 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18009 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18010 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18011 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18012 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18013 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18014 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18015 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18016 ALTIVEC_BUILTIN_STVXL.
18017 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18018 (altivec_expand_stvx_be): Likewise.
18019 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18020 (altivec_expand_lvx_be): Likewise.
18021 (altivec_expand_stvx_be): Likewise.
18022 (altivec_expand_builtin): Add cases for
18023 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18024 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18025 (altivec_init_builtins): Add definitions for
18026 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18027 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18028
18029 2014-02-21 Catherine Moore <clm@codesourcery.com>
18030
18031 * doc/invoke.texi (mvirt, mno-virt): Document.
18032 * config/mips/mips.opt (mvirt): New option.
18033 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18034
18035 2014-02-21 Richard Biener <rguenther@suse.de>
18036
18037 PR tree-optimization/60276
18038 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18039 (STMT_VINFO_MIN_NEG_DIST): New macro.
18040 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18041 STMT_VINFO_MIN_NEG_DIST.
18042 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18043 made for negative dependence distances still hold.
18044
18045 2014-02-21 Richard Biener <rguenther@suse.de>
18046
18047 PR middle-end/60291
18048 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18049 DECL_INITIAL for globals not in the current function context.
18050
18051 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18052
18053 PR tree-optimization/56490
18054 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18055 * tree-ssa-uninit.c: Include params.h.
18056 (compute_control_dep_chain): Add num_calls argument, return false
18057 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18058 num_calls to recursive call.
18059 (find_predicates): Change dep_chain into normal array,
18060 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18061 variable and adjust compute_control_dep_chain caller.
18062 (find_def_preds): Likewise.
18063
18064 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18065
18066 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18067 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18068
18069 2014-02-21 Nick Clifton <nickc@redhat.com>
18070
18071 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18072 (pushhi1): Likewise.
18073 (popqi1): Add mode to pre_dec.
18074 (pophi1): Likewise.
18075
18076 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18077
18078 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18079 mode for mask of V8SFmode permutation.
18080
18081 2014-02-20 Richard Henderson <rth@redhat.com>
18082
18083 PR c++/60272
18084 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18085 a new pseudo for OLDVAL.
18086
18087 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18088
18089 PR target/57896
18090 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18091 gen_reg_rtx if d->testing_p.
18092 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18093 if d->testing_p and we will certainly return true.
18094 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18095 if d->testing_p.
18096
18097 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18098
18099 * emit-rtl.c (gen_reg_rtx): Assert that
18100 crtl->emit.regno_pointer_align_length is non-zero.
18101
18102 2014-02-20 Richard Henderson <rth@redhat.com>
18103
18104 PR c++/60272
18105 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18106 on failure the store back into EXPECT.
18107
18108 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18109 Sandra Loosemore <sandra@codesourcery.com>
18110
18111 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18112 * config/nios2/nios2.c (nios2_function_profiler): Add
18113 -fPIC (flag_pic == 2) support.
18114 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18115 (nios2_large_offset_p): New function.
18116 (nios2_unspec_reloc_p): Move up position, update to use
18117 nios2_large_offset_p.
18118 (nios2_unspec_address): Remove function.
18119 (nios2_unspec_offset): New function.
18120 (nios2_large_got_address): New function.
18121 (nios2_got_address): Add large offset support.
18122 (nios2_legitimize_tls_address): Update usage of removed and new
18123 functions.
18124 (nios2_symbol_binds_local_p): New function.
18125 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18126 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18127 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18128 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18129 processing for (const (unspec ...)).
18130 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18131
18132 2014-02-20 Richard Biener <rguenther@suse.de>
18133
18134 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18135 doing the substitution.
18136 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18137
18138 2014-02-20 Martin Jambor <mjambor@suse.cz>
18139
18140 PR ipa/55260
18141 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18142 info when checking whether lattices are bottom.
18143
18144 2014-02-20 Richard Biener <rguenther@suse.de>
18145
18146 PR middle-end/60221
18147 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18148 regions at -O0.
18149
18150 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18151
18152 PR ipa/58555
18153 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18154 parameter specifying the scaling.
18155 (inline_call): Update.
18156 (want_inline_recursively): Guard division by zero.
18157 (recursive_inlining): Update.
18158 * ipa-inline.h (clone_inlined_nodes): Update.
18159
18160 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18161
18162 PR target/60204
18163 * config/i386/i386.c (classify_argument): Pass structures of size
18164 64 bytes or less in register.
18165
18166 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18167 Kirill Yukhin <kirill.yukhin@intel.com>
18168
18169 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18170 (_mm_rcp28_round_ss): Ditto.
18171 (_mm_rsqrt28_round_sd): Ditto.
18172 (_mm_rsqrt28_round_ss): Ditto.
18173 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18174 (_mm_rcp14_round_ss): Ditto.
18175 (_mm_rsqrt14_round_sd): Ditto.
18176 (_mm_rsqrt14_round_ss): Ditto.
18177 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18178 the first input operand, get rid of match_dup.
18179 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18180 attribute to sse.
18181 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18182 Ditto.
18183 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18184 operand as the first input operand, set type attribute.
18185 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18186 Set type attribute.
18187 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18188 operand as the first input operand, set type attribute.
18189
18190 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18191
18192 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18193 bit of zero.
18194
18195 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18196
18197 PR target/60207
18198 * config/i386/i386.c (construct_container): Remove TFmode check
18199 for X86_64_INTEGER_CLASS.
18200
18201 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18202
18203 PR target/59794
18204 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18205 only when -Wpsabi is enabled.
18206
18207 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18208
18209 PR target/59799
18210 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18211 passing arrays in registers are the same as for structs, so remove the
18212 special case for them.
18213
18214 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18215
18216 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18217 destination type, extract only the valid bits if the source type is not
18218 integral and has a different mode.
18219
18220 2014-02-19 Richard Biener <rguenther@suse.de>
18221
18222 PR ipa/60243
18223 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18224 for all calls.
18225
18226 2014-02-19 Richard Biener <rguenther@suse.de>
18227
18228 PR ipa/60243
18229 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18230 (ipa_modify_call_arguments): Emit an argument load explicitely and
18231 preserve virtual SSA form there and for the replacement call.
18232 Do not update SSA form nor free dominance info.
18233
18234 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18235
18236 * ipa.c (function_and_variable_visibility): Also clear WEAK
18237 flag when disolving COMDAT_GROUP.
18238
18239 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18240
18241 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18242 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18243 not devirtualizing.
18244 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18245 do more sanity checks.
18246 (detect_type_change): Return true when giving up early.
18247 (compute_complex_assign_jump_func): Fix type parameter of
18248 ipa_set_ancestor_jf.
18249 (compute_complex_ancestor_jump_func): Likewise.
18250 (update_jump_functions_after_inlining): Fix updating of
18251 ancestor function.
18252 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18253
18254 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18255
18256 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18257 inline clones when edge disappears.
18258
18259 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18260
18261 PR target/60203
18262 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18263 Split 64-bit moves into 2 patterns. Do not allow the use of
18264 direct move for TDmode in little endian, since the decimal value
18265 has little endian bytes within a word, but the 64-bit pieces are
18266 ordered in a big endian fashion, and normal subreg's of TDmode are
18267 not allowed.
18268 (mov<mode>_64bit_dm): Likewise.
18269 (movtd_64bit_nodm): Likewise.
18270
18271 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18272
18273 PR tree-optimization/60174
18274 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18275 statement of an SSA_NAME that occurs in an abnormal PHI node.
18276
18277 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18278
18279 PR sanitizer/60142
18280 * final.c (SEEN_BB): Remove.
18281 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18282 (final_scan_insn): Don't force_source_line on second
18283 NOTE_INSN_BASIC_BLOCK.
18284
18285 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18286
18287 PR target/60205
18288 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18289 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18290 (type_natural_mode): Warn ABI change when %zmm register is not
18291 available for AVX512F vector value passing.
18292
18293 2014-02-18 Kai Tietz <ktietz@redhat.com>
18294
18295 PR target/60193
18296 * config/i386/i386.c (ix86_expand_prologue): Use value in
18297 rax register as displacement when restoring %r10 or %rax.
18298 Fix wrong offset when restoring both registers.
18299
18300 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18301
18302 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18303 assertion with conditional return.
18304
18305 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18306 Uros Bizjak <ubizjak@gmail.com>
18307
18308 PR driver/60233
18309 * config/i386/driver-i386.c (host_detect_local_cpu): If
18310 YMM state is not saved by the OS, also clear has_f16c. Move
18311 CPUID 0x80000001 handling before YMM state saving checking.
18312
18313 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18314
18315 PR rtl-optimization/58960
18316 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18317 factored out from ...
18318 (sched_init): ... here.
18319 (free_global_sched_pressure_data): New, factored out from ...
18320 (sched_finish): ... here.
18321 * sched-int.h (free_global_sched_pressure_data): Declare.
18322 * sched-rgn.c (nr_regions_initial): New static global.
18323 (haifa_find_rgns): Initialize it.
18324 (schedule_region): Disable sched-pressure for the newly
18325 generated regions.
18326
18327 2014-02-17 Richard Biener <rguenther@suse.de>
18328
18329 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18330 release SSA defs of pattern stmts.
18331
18332 2014-02-17 Richard Biener <rguenther@suse.de>
18333
18334 * tree-inline.c (expand_call_inline): Release the virtual
18335 operand defined by the call we are about to inline.
18336
18337 2014-02-17 Richard Biener <rguenther@suse.de>
18338
18339 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18340
18341 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18342 Ilya Tocar <ilya.tocar@intel.com>
18343
18344 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18345 arguments order in builtin.
18346 (_mm512_permutexvar_epi64): Ditto.
18347 (_mm512_mask_permutexvar_epi64): Ditto
18348 (_mm512_maskz_permutexvar_epi32): Ditto
18349 (_mm512_permutexvar_epi32): Ditto
18350 (_mm512_mask_permutexvar_epi32): Ditto
18351
18352 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18353
18354 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18355 (p8_vmrgow): Likewise.
18356
18357 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18358
18359 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18360 endian targets.
18361
18362 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18363
18364 PR target/60203
18365 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18366 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18367 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18368 using direct move instructions on ISA 2.07. Also adjust
18369 instruction length for 64-bit.
18370 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18371 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18372
18373 2014-02-15 Alan Modra <amodra@gmail.com>
18374
18375 PR target/58675
18376 PR target/57935
18377 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18378 find_replacement on parts of insn rtl that might be reloaded.
18379
18380 2014-02-15 Richard Biener <rguenther@suse.de>
18381
18382 PR tree-optimization/60183
18383 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18384 (tree_ssa_phiprop): Calculate and free post-dominators.
18385
18386 2014-02-14 Jeff Law <law@redhat.com>
18387
18388 PR rtl-optimization/60131
18389 * ree.c (get_extended_src_reg): New function.
18390 (combine_reaching_defs): Use it rather than assuming location of REG.
18391 (find_and_remove_re): Verify first operand of extension is
18392 a REG before adding the insns to the copy list.
18393
18394 2014-02-14 Roland McGrath <mcgrathr@google.com>
18395
18396 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18397 * configure: Regenerated.
18398 * config.in: Regenerated.
18399 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18400 instead of ASM_SHORT.
18401
18402 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18403 Richard Earnshaw <rearnsha@arm.com>
18404
18405 PR rtl-optimization/59535
18406 * lra-constraints.c (process_alt_operands): Encourage alternative
18407 when unassigned pseudo class is superset of the alternative class.
18408 (inherit_reload_reg): Don't inherit when optimizing for code size.
18409 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18410 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18411 modes not less than 4 for Thumb1.
18412
18413 2014-02-14 Kyle McMartin <kyle@redhat.com>
18414
18415 PR pch/60010
18416 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18417
18418 2014-02-14 Richard Biener <rguenther@suse.de>
18419
18420 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18421 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18422 Do not strip INDIRECT_REFs.
18423
18424 2014-02-14 Richard Biener <rguenther@suse.de>
18425
18426 PR lto/60179
18427 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18428 DECL_FUNCTION_SPECIFIC_TARGET.
18429 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18430 * tree-streamer-out.c (pack_ts_target_option): Remove.
18431 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18432 (write_ts_function_decl_tree_pointers): Do not stream
18433 DECL_FUNCTION_SPECIFIC_TARGET.
18434 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18435 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18436 (lto_input_ts_function_decl_tree_pointers): Do not stream
18437 DECL_FUNCTION_SPECIFIC_TARGET.
18438
18439 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18440
18441 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18442 (get_initial_def_for_induction, vectorizable_induction): Ignore
18443 debug stmts when looking for exit_phi.
18444 (vectorizable_live_operation): Fix up condition.
18445
18446 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18447
18448 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18449 nreverse() because it changes the content of original tree list.
18450
18451 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18452
18453 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18454 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18455
18456 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18457
18458 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18459 GNU coding standards.
18460
18461 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18462
18463 PR debug/60152
18464 * dwarf2out.c (gen_subprogram_die): Don't call
18465 add_calling_convention_attribute if subr_die is old_die.
18466
18467 2014-02-13 Sharad Singhai <singhai@google.com>
18468
18469 * doc/optinfo.texi: Fix order of nodes.
18470
18471 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18472
18473 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18474 operands[2], not operands[3].
18475
18476 2014-02-13 Richard Biener <rguenther@suse.de>
18477
18478 PR bootstrap/59878
18479 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18480 mention the possibility of an in-tree build.
18481 (CLooG): Update recommended version to 0.18.1, mention the
18482 possibility of an in-tree build and clarify that the ISL
18483 bundled with CLooG does not work.
18484
18485 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18486
18487 PR target/43546
18488 * expr.c (compress_float_constant): If x is a hard register,
18489 extend into a pseudo and then move to x.
18490
18491 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18492
18493 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18494 caused by bad second argument to warning_at() with -mhotpatch and
18495 nested functions (e.g. with gfortran).
18496
18497 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18498
18499 * opts.c (option_name): Remove "enabled by default" rider.
18500
18501 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18502
18503 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18504
18505 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18506 Uros Bizjak <ubizjak@gmail.com>
18507
18508 PR target/60151
18509 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18510 * configure: Regenerated.
18511
18512 2014-02-12 Richard Biener <rguenther@suse.de>
18513
18514 * vec.c (vec_prefix::calculate_allocation): Move as
18515 inline variant to vec.h.
18516 (vec_prefix::calculate_allocation_1): New out-of-line version.
18517 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18518 (vec_prefix::m_has_auto_buf): Rename to ...
18519 (vec_prefix::m_using_auto_storage): ... this.
18520 (vec_prefix::calculate_allocation): Inline the easy cases
18521 and dispatch to calculate_allocation_1 which doesn't need the
18522 prefix address.
18523 (va_heap::reserve): Use gcc_checking_assert.
18524 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18525 m_using_auto_storage.
18526 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18527 member and adjust.
18528 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18529 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18530 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18531
18532 2014-02-12 Richard Biener <rguenther@suse.de>
18533
18534 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18535 when we found a dependence.
18536
18537 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18538
18539 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18540 common code...
18541 (maybe_fold_stmt): ... into this new function.
18542 * omp-low.c (lower_omp): Update comment.
18543
18544 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18545 last use.
18546
18547 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18548 dereference.
18549
18550 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18551
18552 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18553 identifiers in comments.
18554 (cortexa53_extra_costs): Likewise.
18555 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18556 (cortexa7_extra_costs): Likewise.
18557 (cortexa12_extra_costs): Likewise.
18558 (cortexa15_extra_costs): Likewise.
18559 (v7m_extra_costs): Likewise.
18560
18561 2014-02-12 Richard Biener <rguenther@suse.de>
18562
18563 PR middle-end/60092
18564 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18565 of posix_memalign being successful.
18566 (lower_stmt): Restrict lowering of posix_memalign to when
18567 -ftree-bit-ccp is enabled.
18568
18569 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18570
18571 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18572 arg_loc.
18573 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18574
18575 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18576
18577 PR rtl-optimization/60116
18578 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18579 other_insn once the combination has been validated.
18580
18581 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18582
18583 PR lto/59468
18584 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18585 and wrapper.
18586 * ipa-devirt.c: Include demangle.h
18587 (odr_violation_reported): New static variable.
18588 (add_type_duplicate): Update odr_violations.
18589 (maybe_record_node): Add completep parameter; update it.
18590 (record_target_from_binfo): Add COMPLETEP parameter;
18591 update it as needed.
18592 (possible_polymorphic_call_targets_1): Likewise.
18593 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18594 rename FINAL to COMPLETE.
18595 (record_targets_from_bases): Sanity check we found the binfo;
18596 fix COMPLETEP updating.
18597 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18598 parameter, fix computing of COMPLETEP.
18599 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18600 at LTO time do demangling.
18601 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18602 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18603 parameter.
18604 (gimple_get_virt_method_for_binfo): Likewise.
18605 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18606 gimple_get_virt_method_for_vtable): Update prototypes.
18607
18608 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18609
18610 PR target/49008
18611 * genautomata.c (add_presence_absence): Fix typo with
18612 {final_}presence_list.
18613
18614 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18615
18616 PR target/60137
18617 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18618 for VSX/Altivec vectors that land in GPR registers.
18619
18620 2014-02-11 Richard Henderson <rth@redhat.com>
18621 Jakub Jelinek <jakub@redhat.com>
18622
18623 PR debug/59776
18624 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18625 around drhs if type conversion to lacc->type is not useless.
18626
18627 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18628
18629 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18630 tuning struct.
18631 (cortex-a57.cortex-a53): Likewise.
18632 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18633
18634 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18635
18636 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18637 arm_restrict_it.
18638
18639 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18640
18641 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18642 add_options_for_arm_vfp3.
18643
18644 2014-02-11 Jeff Law <law@redhat.com>
18645
18646 PR middle-end/54041
18647 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18648 object with an undesirable mode.
18649
18650 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18651
18652 PR libgomp/60107
18653 * config/i386/sol2-9.h: New file.
18654 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18655 *-*-solaris2.9*): Use it.
18656
18657 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18658
18659 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18660 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18661
18662 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18663
18664 * config/microblaze/microblaze.c: Extend mcpu version format
18665
18666 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18667
18668 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18669
18670 2014-02-10 Richard Henderson <rth@redhat.com>
18671
18672 PR target/59927
18673 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18674 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18675 ms-abi vs -mno-accumulate-outgoing-args.
18676 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18677 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18678 respect to ms-abi.
18679
18680 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18681
18682 PR middle-end/60080
18683 * cfgexpand.c (expand_asm_operands): Attach source location to
18684 ASM_INPUT rtx objects.
18685 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18686
18687 2014-02-10 Nick Clifton <nickc@redhat.com>
18688
18689 * config/mn10300/mn10300.c (popcount): New function.
18690 (mn10300_expand_prologue): Include saved registers in stack usage
18691 count.
18692
18693 2014-02-10 Jeff Law <law@redhat.com>
18694
18695 PR middle-end/52306
18696 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18697 when changing the SET_DEST of a prior insn to avoid an input reload.
18698
18699 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18700
18701 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18702 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18703 -mcall-openbsd, or -mcall-linux.
18704 (CC1_ENDIAN_BIG_SPEC): Remove.
18705 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18706 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18707 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18708 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18709 and %cc1_endian_default.
18710 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18711
18712 2014-02-10 Richard Biener <rguenther@suse.de>
18713
18714 PR tree-optimization/60115
18715 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18716 MEM_REF handling. Properly verify that the accesses are not
18717 out of the objects bound.
18718
18719 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18720
18721 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18722 coretex to cortex.
18723
18724 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18725
18726 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18727 proper constants and fix formatting.
18728 (possible_polymorphic_call_targets): Fix formatting.
18729
18730 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18731 Ilya Tocar <ilya.tocar@intel.com>
18732
18733 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18734 (_mm512_loadu_epi32): Renamed into...
18735 (_mm512_loadu_si512): This.
18736 (_mm512_storeu_epi32): Renamed into...
18737 (_mm512_storeu_si512): This.
18738 (_mm512_maskz_ceil_ps): Removed.
18739 (_mm512_maskz_ceil_pd): Ditto.
18740 (_mm512_maskz_floor_ps): Ditto.
18741 (_mm512_maskz_floor_pd): Ditto.
18742 (_mm512_floor_round_ps): Ditto.
18743 (_mm512_floor_round_pd): Ditto.
18744 (_mm512_ceil_round_ps): Ditto.
18745 (_mm512_ceil_round_pd): Ditto.
18746 (_mm512_mask_floor_round_ps): Ditto.
18747 (_mm512_mask_floor_round_pd): Ditto.
18748 (_mm512_mask_ceil_round_ps): Ditto.
18749 (_mm512_mask_ceil_round_pd): Ditto.
18750 (_mm512_maskz_floor_round_ps): Ditto.
18751 (_mm512_maskz_floor_round_pd): Ditto.
18752 (_mm512_maskz_ceil_round_ps): Ditto.
18753 (_mm512_maskz_ceil_round_pd): Ditto.
18754 (_mm512_expand_pd): Ditto.
18755 (_mm512_expand_ps): Ditto.
18756 * config/i386/i386.c (ix86_builtins): Remove
18757 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18758 (bdesc_args): Ditto.
18759 * config/i386/predicates.md (const1256_operand): New.
18760 (const_1_to_2_operand): Ditto.
18761 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18762 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18763 (*avx512pf_gatherpf<mode>sf): Ditto.
18764 (avx512pf_gatherpf<mode>df): Ditto.
18765 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18766 (*avx512pf_gatherpf<mode>df): Ditto.
18767 (avx512pf_scatterpf<mode>sf): Ditto.
18768 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18769 (*avx512pf_scatterpf<mode>sf): Ditto.
18770 (avx512pf_scatterpf<mode>df): Ditto.
18771 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18772 (*avx512pf_scatterpf<mode>df): Ditto.
18773 (avx512f_expand<mode>): Removed.
18774 (<shift_insn><mode>3<mask_name>): Change predicate type.
18775
18776 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18777
18778 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18779 not at the end of datarefs vector use ordered_remove to avoid
18780 reordering datarefs vector.
18781
18782 PR c/59984
18783 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18784 mark local addressable non-static vars as GOVD_PRIVATE
18785 instead of GOVD_LOCAL.
18786 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18787 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18788 than copying them.
18789
18790 PR middle-end/60092
18791 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18792 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18793 assume_aligned or alloc_align attributes.
18794 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18795 arguments. Handle also assume_aligned and alloc_align attributes.
18796 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18797 calls to functions with assume_aligned or alloc_align attributes.
18798 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18799
18800 2014-02-08 Terry Guo <terry.guo@arm.com>
18801
18802 * doc/invoke.texi: Document ARM -march=armv7e-m.
18803
18804 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18805
18806 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18807 flag on __cilkrts_rethrow builtin.
18808
18809 PR ipa/60026
18810 * ipa-cp.c (determine_versionability): Fail at -O0
18811 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18812 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18813
18814 Revert:
18815 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18816
18817 PR ipa/60026
18818 * tree-inline.c (copy_forbidden): Fail for
18819 __attribute__((optimize (0))) functions.
18820
18821 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18822
18823 * varpool.c: Include pointer-set.h.
18824 (varpool_remove_unreferenced_decls): Variables in other partitions
18825 will not be output; be however careful to not lose information
18826 about partitioning.
18827
18828 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18829
18830 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18831 lookup in the vtable constructor.
18832
18833 2014-02-07 Jeff Law <law@redhat.com>
18834
18835 PR target/40977
18836 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18837 define_insn_and_split.
18838
18839 * ipa-inline.c (inline_small_functions): Fix typos.
18840
18841 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18842
18843 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18844 (s390_can_use_return_insn): Declare.
18845 * config/s390/s390.h (EPILOGUE_USES): Define.
18846 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18847 instructions.
18848 (s390_chunkify_start): Handle return JUMP_LABELs.
18849 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18850 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18851 (s390_can_use_return_insn): New functions.
18852 (s390_fix_long_loop_prediction): Handle conditional returns.
18853 (TARGET_SET_UP_BY_PROLOGUE): Define.
18854 * config/s390/s390.md (ANY_RETURN): New code iterator.
18855 (*creturn, *csimple_return, return, simple_return): New patterns.
18856
18857 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18858
18859 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18860 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18861 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18862 REG_CFA_RESTORE list when deciding not to restore a register.
18863
18864 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18865
18866 * config/s390/s390.c: Include tree-pass.h and context.h.
18867 (s390_early_mach): New function, split out from...
18868 (s390_emit_prologue): ...here.
18869 (pass_data_s390_early_mach): New pass structure.
18870 (pass_s390_early_mach): New class.
18871 (s390_option_override): Create and register early_mach pass.
18872 Move to end of file.
18873
18874 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18875
18876 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
18877 to match for the exit block.
18878
18879 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18880
18881 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
18882 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
18883 Reject misaligned operands.
18884
18885 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18886
18887 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
18888
18889 2014-02-07 Richard Biener <rguenther@suse.de>
18890
18891 PR middle-end/60092
18892 * gimple-low.c (lower_builtin_posix_memalign): New function.
18893 (lower_stmt): Call it to lower posix_memalign in a way
18894 to make alignment info accessible.
18895
18896 2014-02-07 Jakub Jelinek <jakub@redhat.com>
18897
18898 PR c++/60082
18899 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
18900 __builtin_setjmp_receiver.
18901
18902 2014-02-07 Richard Biener <rguenther@suse.de>
18903
18904 PR middle-end/60092
18905 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
18906 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
18907 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18908 Handle BUILT_IN_POSIX_MEMALIGN.
18909 (find_func_clobbers): Likewise.
18910 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18911 (call_may_clobber_ref_p_1): Likewise.
18912
18913 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18914
18915 PR ipa/59918
18916 * ipa-devirt.c (record_target_from_binfo): Remove overactive
18917 sanity check.
18918
18919 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18920
18921 PR ipa/59469
18922 * lto-cgraph.c (lto_output_node): Use
18923 symtab_get_symbol_partitioning_class.
18924 (lto_output_varpool_node): likewise.
18925 (symtab_get_symbol_partitioning_class): Move here from
18926 lto/lto-partition.c
18927 * cgraph.h (symbol_partitioning_class): Likewise.
18928 (symtab_get_symbol_partitioning_class): Declare.
18929
18930 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18931
18932 * ggc.h (ggc_internal_cleared_alloc): New macro.
18933 * vec.h (vec_safe_copy): Handle memory stats.
18934 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
18935 * target-globals.c (save_target_globals): Likewise.
18936
18937 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18938
18939 PR target/60077
18940 * expr.c (emit_move_resolve_push): Export; be bit more selective
18941 on when to clear alias set.
18942 * expr.h (emit_move_resolve_push): Declare.
18943 * function.h (struct function): Add tail_call_marked.
18944 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
18945 * config/i386/i386-protos.h (ix86_expand_push): Remove.
18946 * config/i386/i386.md (TImode move expander): De not call
18947 ix86_expand_push.
18948 (FP push expanders): Preserve memory attributes.
18949 * config/i386/sse.md (push<mode>1): Remove.
18950 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
18951 (ix86_expand_push): Remove.
18952 * config/i386/mmx.md (push<mode>1): Remove.
18953
18954 2014-02-06 Jakub Jelinek <jakub@redhat.com>
18955
18956 PR rtl-optimization/60030
18957 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
18958 lopart with paradoxical subreg before shifting it up by hprec.
18959
18960 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18961
18962 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
18963 Remove extra newline at end of file.
18964 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
18965 (arm_issue_rate): Handle cortexa57.
18966 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
18967 (cortex-a57.cortex-a53): Likewise.
18968
18969 2014-02-06 Jakub Jelinek <jakub@redhat.com>
18970
18971 PR target/59575
18972 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
18973 don't record in REG_FRAME_RELATED_EXPR registers not set in that
18974 bitmask.
18975 (arm_expand_prologue): Adjust all callers.
18976 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
18977 info, registers also at the lowest numbered registers side. Use
18978 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
18979 XEXP.
18980
18981 PR debug/59992
18982 * var-tracking.c (adjust_mems): Before adding a SET to
18983 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
18984
18985 2014-02-06 Alan Modra <amodra@gmail.com>
18986
18987 PR target/60032
18988 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
18989 change SDmode to DDmode when lra_in_progress.
18990
18991 2014-02-06 Jakub Jelinek <jakub@redhat.com>
18992
18993 PR middle-end/59150
18994 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
18995 free_data_ref on the dr first, and before goto again also set dr
18996 to the next dr. For simd_lane_access, free old datarefs[i] before
18997 overwriting it. For get_vectype_for_scalar_type failure, don't
18998 free_data_ref if simd_lane_access.
18999
19000 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19001
19002 PR target/60062
19003 * tree.h (opts_for_fn): New inline function.
19004 (opt_for_fn): Define.
19005 * config/i386/i386.c (ix86_function_regparm): Use
19006 opt_for_fn (decl, optimize) instead of optimize.
19007
19008 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19009
19010 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19011 for SYMBOL_REF in large memory model.
19012
19013 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19014
19015 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19016 and crypto support.
19017 (cortex-a57): Likewise.
19018 (cortex-a57.cortex-a53): Likewise.
19019
19020 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19021 Kugan Vivekanandarajah <kuganv@linaro.org>
19022
19023 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19024 unaligned_access.
19025 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19026
19027 2014-02-06 Richard Biener <rguenther@suse.de>
19028
19029 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19030 set_loop_copy and initialize_original_copy_tables.
19031
19032 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19033
19034 * config/aarch64/aarch64-simd.md
19035 (aarch64_ashr_simddi): Change QI to SI.
19036
19037 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19038 Jakub Jelinek <jakub@redhat.com>
19039
19040 PR middle-end/60013
19041 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19042 of the dataflow.
19043
19044 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19045
19046 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19047 CODE_FOR_altivec_vpku[hw]um to
19048 CODE_FOR_altivec_vpku[hw]um_direct.
19049 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19050 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19051 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19052 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19053
19054 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19055
19056 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19057 generation for -maltivec=be.
19058 (altivec_vsumsws): Simplify redundant test.
19059
19060 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19061
19062 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19063 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19064 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19065 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19066 gen_altivec_vpkuwum.
19067 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19068 BYTES_BIG_ENDIAN.
19069 (altivec_vpks<VI_char>ss): Likewise.
19070 (altivec_vpks<VI_char>us): Likewise.
19071 (altivec_vpku<VI_char>us): Likewise.
19072 (altivec_vpku<VI_char>um): Likewise.
19073 (altivec_vpku<VI_char>um_direct): New (copy of
19074 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19075 internal use).
19076 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19077 target is little endian and -maltivec=be is not specified.
19078 (*altivec_vupkhs<VU_char>_direct): New (copy of
19079 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19080 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19081 target is little endian and -maltivec=be is not specified.
19082 (*altivec_vupkls<VU_char>_direct): New (copy of
19083 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19084 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19085 little endian and -maltivec=be is not specified.
19086 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19087 little endian and -maltivec=be is not specified.
19088
19089 2014-02-05 Richard Henderson <rth@redhat.com>
19090
19091 PR debug/52727
19092 * combine-stack-adj.c: Revert r206943.
19093 * sched-int.h (struct deps_desc): Add last_args_size.
19094 * sched-deps.c (init_deps): Initialize it.
19095 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19096 contain REG_ARGS_SIZE notes.
19097
19098 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19099
19100 * lto-cgraph.c (asm_nodes_output): Make global.
19101 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19102 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19103 (driver_handle_option): Handle OPT_fwpa.
19104
19105 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19106
19107 PR ipa/59947
19108 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19109 a comment typo and formatting issue. If odr_hash hasn't been
19110 created, return vNULL and set *completep to false.
19111
19112 PR middle-end/57499
19113 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19114 bb with no successors.
19115
19116 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19117
19118 PR target/59718
19119 * doc/invoke.texi (-march): Clarify documentation for ARM.
19120 (-mtune): Likewise.
19121 (-mcpu): Likewise.
19122
19123 2014-02-05 Richard Biener <rguenther@suse.de>
19124
19125 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19126 when not vectorizing because of too many alias checks.
19127 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19128 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19129
19130 2014-02-05 Nick Clifton <nickc@redhat.com>
19131
19132 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19133 accept extended registers in any mode when compiling for the MN10300.
19134
19135 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19136
19137 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19138 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19139 sanitization attributes.
19140 (can_inline_edge_p): Likewise.
19141 (sanitize_attrs_match_for_inline_p): New function.
19142
19143 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19144
19145 * ipa-prop.c (detect_type_change): Shor circuit testing of
19146 type changes on THIS pointer.
19147
19148 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19149
19150 PR target/59777
19151 * config/pa/pa.c (legitimize_tls_address): Return original address
19152 if not passed a SYMBOL_REF rtx.
19153 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19154 addresses.
19155 (pa_emit_move_sequence): Simplify TLS source operands.
19156 (pa_legitimate_constant_p): Reject all TLS constants.
19157 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19158 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19159
19160 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19161
19162 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19163 groups when we know they are controlled by LTO.
19164 * varasm.c (default_binds_local_p_1): If object is in other partition,
19165 it will be resolved locally.
19166
19167 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19168
19169 * config/host-linux.c (linux_gt_pch_use_address): Don't
19170 use SSIZE_MAX because it is not always defined.
19171
19172 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19173
19174 PR bootstrap/59913
19175 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19176 threshold for pseudo splitting.
19177 (update_ebb_live_info): Process call argument hard registers and
19178 hard registers from insn definition too.
19179 (max_small_class_regs_num): New constant.
19180 (inherit_in_ebb): Update live hard regs through EBBs. Update
19181 reloads_num only for small register classes. Don't split for
19182 outputs of jumps.
19183
19184 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19185
19186 PR ipa/60058
19187 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19188 is non-null.
19189
19190 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19191
19192 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19193 visibility is safe.
19194
19195 2014-02-04 Marek Polacek <polacek@redhat.com>
19196
19197 * gdbinit.in (pel): Define.
19198
19199 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19200
19201 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19202 behavior.
19203
19204 2014-02-04 Richard Biener <rguenther@suse.de>
19205
19206 PR lto/59723
19207 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19208 in function context local.
19209 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19210 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19211 similar to LTO_imported_decl_ref.
19212
19213 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19214
19215 PR tree-optimization/60002
19216 * cgraphclones.c (build_function_decl_skip_args): Clear
19217 DECL_LANG_SPECIFIC.
19218
19219 PR tree-optimization/60023
19220 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19221 false to gsi_replace.
19222 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19223 has been in some EH region and vec_stmt could throw, add
19224 vec_stmt into the same EH region.
19225 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19226 has no lhs, ignore it.
19227 * internal-fn.c (expand_MASK_LOAD): Likewise.
19228
19229 PR ipa/60026
19230 * tree-inline.c (copy_forbidden): Fail for
19231 __attribute__((optimize (0))) functions.
19232
19233 PR other/58712
19234 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19235 is set, copy one less argument.
19236 (expand_simd_clones): Don't subtract clone_info->inbranch
19237 from simd_clone_struct_alloc argument.
19238
19239 PR rtl-optimization/57915
19240 * recog.c (simplify_while_replacing): If all unary/binary/relational
19241 operation arguments are constant, attempt to simplify those.
19242
19243 PR middle-end/59261
19244 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19245 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19246
19247 2014-02-04 Richard Biener <rguenther@suse.de>
19248
19249 PR tree-optimization/60012
19250 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19251 TBAA disambiguation to all DDRs.
19252
19253 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19254
19255 PR target/59788
19256 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19257 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19258
19259 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19260
19261 PR ipa/59882
19262 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19263
19264 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19265
19266 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19267 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19268
19269 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19270
19271 PR ipa/59831
19272 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19273 to figure out targets of polymorphic calls with known decl.
19274 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19275 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19276 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19277 (get_polymorphic_call_info): ... here.
19278 (get_polymorphic_call_info_from_invariant): New function.
19279
19280 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19281
19282 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19283 lookup via vtable pointer; check for type consistency
19284 and turn inconsitent facts into UNREACHABLE.
19285 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19286 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19287 type inconsistent querries; return UNREACHABLE instead.
19288
19289 2014-02-03 Richard Henderson <rth@twiddle.net>
19290
19291 PR tree-opt/59924
19292 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19293 already processed this node.
19294 (normalize_one_pred_1): Pass along mark_set.
19295 (normalize_one_pred): Create and destroy a pointer_set_t.
19296 (normalize_one_pred_chain): Likewise.
19297
19298 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19299
19300 PR gcov-profile/58602
19301 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19302
19303 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19304
19305 PR ipa/59831
19306 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19307 -fno-devirtualize; try to devirtualize by the knowledge of
19308 virtual table pointer given by aggregate propagation.
19309 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19310 (ipa_print_node_jump_functions): Dump also offset that
19311 is relevant for polymorphic calls.
19312 (determine_known_aggregate_parts): Add arg_type parameter; use it
19313 instead of determining the type from pointer type.
19314 (ipa_compute_jump_functions_for_edge): Update call of
19315 determine_known_aggregate_parts.
19316 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19317 (gimple_get_virt_method_for_binfo): ... here; simplify using
19318 vtable_pointer_value_to_vtable.
19319 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19320 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19321 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19322 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19323 POINTER_PLUS_EXPR.
19324 (vtable_pointer_value_to_binfo): ... here.
19325 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19326
19327 2014-02-03 Teresa Johnson <tejohnson@google.com>
19328
19329 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19330 redef of outer loop index variable.
19331
19332 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19333
19334 PR c++/53017
19335 PR c++/59211
19336 * doc/extend.texi (Function Attributes): Typo.
19337
19338 2014-02-03 Cong Hou <congh@google.com>
19339
19340 PR tree-optimization/60000
19341 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19342 if the vectorized statement is a store. A store statement can only
19343 appear at the end of pattern statements.
19344
19345 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19346
19347 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19348 (ix86_option_override_internal): Default long double to 64-bit for
19349 32-bit Bionic and to 128-bit for 64-bit Bionic.
19350
19351 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19352 TARGET_LONG_DOUBLE_128 is true.
19353 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19354
19355 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19356 (mlong-double-64): Negate -mlong-double-128.
19357 (mlong-double-128): New option.
19358
19359 * config/i386/i386-c.c (ix86_target_macros): Define
19360 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19361
19362 * doc/invoke.texi: Document -mlong-double-128.
19363
19364 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19365
19366 PR rtl-optimization/60024
19367 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19368
19369 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19370
19371 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19372
19373 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19374
19375 PR rtl-optimization/57662
19376 * sel-sched.c (code_motion_path_driver): Do not mark already not
19377 existing blocks in the visiting bitmap.
19378
19379 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19380
19381 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19382 on the insn being emitted.
19383
19384 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19385 Will Deacon <will.deacon@arm.com>
19386
19387 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19388
19389 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19390
19391 * config/arm/arm-tables.opt: Regenerate.
19392
19393 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19394
19395 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19396 for vector types other than V16QImode.
19397 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19398 define_expand, and call altivec_expand_vec_perm_le when producing
19399 code with little endian element order.
19400 (*altivec_vperm_<mode>_internal): New insn having previous
19401 behavior of altivec_vperm_<mode>.
19402 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19403 altivec_expand_vec_perm_le when producing code with little endian
19404 element order.
19405 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19406 behavior of altivec_vperm_<mode>_uns.
19407
19408 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19409
19410 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19411 (altivec_vsumsws): Add handling for -maltivec=be with a little
19412 endian target.
19413 (altivec_vsumsws_direct): New.
19414 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19415 gen_altivec_vsumsws.
19416
19417 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19418
19419 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19420 vtable_pointer_value_to_binfo): New functions.
19421 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19422 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19423
19424 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19425
19426 * config/nios2/nios2.md (load_got_register): Initialize GOT
19427 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19428 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19429
19430 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19431
19432 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19433 preserverd by passthrough, do not propagate the type.
19434
19435 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19436
19437 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19438 (mips_atomic_assign_expand_fenv): New function.
19439 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19440
19441 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19442
19443 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19444 (__builtin_mips_set_fcsr): Likewise.
19445 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19446 MIPS_USI_FTYPE_VOID.
19447 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19448 (mips16_expand_set_fcsr): Likewise.
19449 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19450 (mips16_set_fcsr_stub): Likewise.
19451 (mips16_get_fcsr_one_only_stub): New class.
19452 (mips16_set_fcsr_one_only_stub): Likewise.
19453 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19454 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19455 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19456 (hard_float): New availability predicate.
19457 (mips_builtins): Add get_fcsr and set_fcsr.
19458 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19459 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19460 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19461 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19462 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19463 patterns.
19464
19465 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19466
19467 * config/mips/mips.c (mips_one_only_stub): New class.
19468 (mips_need_mips16_rdhwr_p): Replace with...
19469 (mips16_rdhwr_stub): ...this new variable.
19470 (mips16_stub_call_address): New function.
19471 (mips16_rdhwr_one_only_stub): New class.
19472 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19473 (mips_output_mips16_rdhwr): Delete.
19474 (mips_finish_stub): New function.
19475 (mips_code_end): Use it to handle rdhwr stubs.
19476
19477 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19478
19479 PR target/60017
19480 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19481 when calculating size of integer atomic types.
19482
19483 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19484
19485 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19486
19487 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19488
19489 PR tree-optimization/60003
19490 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19491 * profile.c (branch_prob): Use gimple_call_builtin_p
19492 to check for BUILT_IN_SETJMP_RECEIVER.
19493 * tree-inline.c (copy_bb): Call notice_special_calls.
19494
19495 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19496
19497 PR bootstrap/59985
19498 * lra-constraints.c (process_alt_operands): Update reload_sum only
19499 on the first pass.
19500
19501 2014-01-31 Richard Henderson <rth@redhat.com>
19502
19503 PR middle-end/60004
19504 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19505 until after else_eh is processed.
19506
19507 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19508
19509 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19510 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19511 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19512 in smmintrin.h, remove them.
19513 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19514 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19515 * config/i386/i386.md (ROUND_SAE): Fix value.
19516 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19517 (const48_operand): New.
19518 * config/i386/subst.md (round), (round_expand): Use
19519 const_4_or_8_to_11_operand.
19520 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19521
19522 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19523
19524 * config/i386/constraints.md (Yk): Swap meaning with k.
19525 * config/i386/i386.md (movhi_internal): Change Yk to k.
19526 (movqi_internal): Ditto.
19527 (*k<logic><mode>): Ditto.
19528 (*andhi_1): Ditto.
19529 (*andqi_1): Ditto.
19530 (kandn<mode>): Ditto.
19531 (*<code>hi_1): Ditto.
19532 (*<code>qi_1): Ditto.
19533 (kxnor<mode>): Ditto.
19534 (kortestzhi): Ditto.
19535 (kortestchi): Ditto.
19536 (kunpckhi): Ditto.
19537 (*one_cmplhi2_1): Ditto.
19538 (*one_cmplqi2_1): Ditto.
19539 * config/i386/sse.md (): Change k to Yk.
19540 (avx512f_load<mode>_mask): Ditto.
19541 (avx512f_blendm<mode>): Ditto.
19542 (avx512f_store<mode>_mask): Ditto.
19543 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19544 (avx512f_storedqu<mode>_mask): Ditto.
19545 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19546 Ditto.
19547 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19548 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19549 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19550 (avx512f_maskcmp<mode>3): Ditto.
19551 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19552 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19553 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19554 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19555 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19556 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19557 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19558 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19559 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19560 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19561 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19562 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19563 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19564 (vec_extract_lo_<mode>_maskm): Ditto.
19565 (vec_extract_hi_<mode>_maskm): Ditto.
19566 (avx512f_vternlog<mode>_mask): Ditto.
19567 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19568 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19569 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19570 (avx512f_<code>v8div16qi2_mask): Ditto.
19571 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19572 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19573 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19574 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19575 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19576 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19577 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19578 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19579 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19580 (avx512cd_maskb_vec_dupv8di): Ditto.
19581 (avx512cd_maskw_vec_dupv16si): Ditto.
19582 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19583 (avx512f_vpermi2var<mode>3_mask): Ditto.
19584 (avx512f_vpermi2var<mode>3_mask): Ditto.
19585 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19586 (*avx512f_gathersi<mode>): Ditto.
19587 (*avx512f_gathersi<mode>_2): Ditto.
19588 (*avx512f_gatherdi<mode>): Ditto.
19589 (*avx512f_gatherdi<mode>_2): Ditto.
19590 (*avx512f_scattersi<mode>): Ditto.
19591 (*avx512f_scatterdi<mode>): Ditto.
19592 (avx512f_compress<mode>_mask): Ditto.
19593 (avx512f_compressstore<mode>_mask): Ditto.
19594 (avx512f_expand<mode>_mask): Ditto.
19595 * config/i386/subst.md (mask): Change k to Yk.
19596 (mask_scalar_merge): Ditto.
19597 (sd): Ditto.
19598
19599 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19600
19601 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19602
19603 2014-01-31 Richard Biener <rguenther@suse.de>
19604
19605 PR middle-end/59990
19606 * builtins.c (fold_builtin_memory_op): Make sure to not
19607 use a floating-point mode or a boolean or enumeral type for
19608 the copy operation.
19609
19610 2014-01-30 DJ Delorie <dj@redhat.com>
19611
19612 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19613 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19614 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19615 whenever main() has an epilogue.
19616
19617 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19618
19619 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19620 unused variable "field".
19621 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19622 (vsx_mergeh_<mode>): Likewise.
19623 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19624 (altivec_vmrghh): Likewise.
19625 (altivec_vmrghw): Likewise.
19626 (altivec_vmrglb): Likewise.
19627 (altivec_vmrglh): Likewise.
19628 (altivec_vmrglw): Likewise.
19629 (altivec_vspltb): Add missing uses.
19630 (altivec_vsplth): Likewise.
19631 (altivec_vspltw): Likewise.
19632 (altivec_vspltsf): Likewise.
19633
19634 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19635
19636 PR target/59923
19637 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19638 frame related instructions.
19639
19640 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19641
19642 PR rtl-optimization/59959
19643 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19644 any reload of register whose subreg is invalid.
19645
19646 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19647
19648 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19649 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19650 Add missing return type - void.
19651
19652 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19653
19654 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19655 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19656 remove element index adjustment for endian (now handled in vsx.md
19657 and altivec.md).
19658 (altivec_expand_vec_perm_const): Use
19659 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19660 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19661 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19662 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19663 define_expand and a new define_insn *altivec_vspltb_internal;
19664 adjust for -maltivec=be on a little endian target.
19665 (altivec_vspltb_direct): New.
19666 (altivec_vsplth): Divide into a define_expand and a new
19667 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19668 little endian target.
19669 (altivec_vsplth_direct): New.
19670 (altivec_vspltw): Divide into a define_expand and a new
19671 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19672 little endian target.
19673 (altivec_vspltw_direct): New.
19674 (altivec_vspltsf): Divide into a define_expand and a new
19675 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19676 a little endian target.
19677
19678 2014-01-30 Richard Biener <rguenther@suse.de>
19679
19680 PR tree-optimization/59993
19681 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19682 can propagate form the earlier stmt and avoid the transform
19683 when the intermediate result is needed.
19684
19685 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19686
19687 * README.Portability: Fix typo.
19688
19689 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19690
19691 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19692 comparison_operator with ordered_comparison_operator.
19693
19694 2014-01-30 Nick Clifton <nickc@redhat.com>
19695
19696 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19697 Rename to mn10300_store_multiple_regs.
19698 * config/mn10300/mn10300.c: Likewise.
19699 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19700 store_multiple_regs.
19701 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19702 Call mn10300_store_multiple_regs.
19703
19704 2014-01-30 Nick Clifton <nickc@redhat.com>
19705 DJ Delorie <dj@redhat.com>
19706
19707 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19708 %fp 2 to keep registers after it properly word-aligned.
19709 (rl78_alloc_physical_registers_umul): Handle the case where both
19710 input operands are the same.
19711
19712 2014-01-30 Richard Biener <rguenther@suse.de>
19713
19714 PR tree-optimization/59903
19715 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19716 check properly.
19717
19718 2014-01-30 Jason Merrill <jason@redhat.com>
19719
19720 PR c++/59633
19721 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19722
19723 PR c++/59645
19724 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19725
19726 2014-01-30 Richard Biener <rguenther@suse.de>
19727
19728 PR tree-optimization/59951
19729 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19730
19731 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19732
19733 PR target/59784
19734 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19735 SFmode to DFmode case.
19736
19737 2014-01-29 DJ Delorie <dj@redhat.com>
19738
19739 * config/msp430/msp430.opt (-minrt): New.
19740 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19741 if -minrt given.
19742 (ENDFILE_SPEC): Likewise.
19743
19744 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19745
19746 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19747 (estimate_function_body_sizes): Use it.
19748
19749 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19750
19751 PR c++/58561
19752 * dwarf2out.c (is_cxx_auto): New.
19753 (is_base_type): Use it.
19754 (gen_type_die_with_usage): Likewise.
19755
19756 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19757
19758 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19759 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19760 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19761 -maltivec=be with LE targets.
19762 (vsx_mergeh_<mode>): Likewise.
19763 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19764 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19765 (altivec_vmrghb): Replace with define_expand and new
19766 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19767 (altivec_vmrghb_direct): New define_insn.
19768 (altivec_vmrghh): Replace with define_expand and new
19769 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19770 (altivec_vmrghh_direct): New define_insn.
19771 (altivec_vmrghw): Replace with define_expand and new
19772 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19773 (altivec_vmrghw_direct): New define_insn.
19774 (*altivec_vmrghsf): Adjust for endianness.
19775 (altivec_vmrglb): Replace with define_expand and new
19776 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19777 (altivec_vmrglb_direct): New define_insn.
19778 (altivec_vmrglh): Replace with define_expand and new
19779 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19780 (altivec_vmrglh_direct): New define_insn.
19781 (altivec_vmrglw): Replace with define_expand and new
19782 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19783 (altivec_vmrglw_direct): New define_insn.
19784 (*altivec_vmrglsf): Adjust for endianness.
19785 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19786 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19787 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19788 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19789 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19790 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19791 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19792 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19793
19794 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19795
19796 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19797 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19798 whitespace.
19799
19800 2014-01-29 Richard Biener <rguenther@suse.de>
19801
19802 PR tree-optimization/58742
19803 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19804 associate_pointerplus_align.
19805 (associate_pointerplus_diff): New function.
19806 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19807 and associate_pointerplus_diff.
19808
19809 2014-01-29 Richard Biener <rguenther@suse.de>
19810
19811 * lto-streamer.h (LTO_major_version): Bump to 3.
19812 (LTO_minor_version): Reset to 0.
19813
19814 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19815
19816 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19817 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19818 (arm_file_start): Generate correct asm header for armv7ve.
19819 * config/arm/bpabi.h: Add multilib support for armv7ve.
19820 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19821 and cortex-a15 to armv7ve.
19822 * config/arm/t-aprofile: Add multilib support for armv7ve.
19823 * doc/invoke.texi: Document -march=armv7ve.
19824
19825 2014-01-29 Richard Biener <rguenther@suse.de>
19826
19827 PR tree-optimization/58742
19828 * tree-ssa-forwprop.c (associate_plusminus): Return true
19829 if we changed sth, defer EH cleanup to ...
19830 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19831 (simplify_mult): New function.
19832
19833 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19834
19835 PR middle-end/59917
19836 PR tree-optimization/59920
19837 * tree.c (build_common_builtin_nodes): Remove
19838 __builtin_setjmp_dispatcher initialization.
19839 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19840 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19841 instead of gsi_after_labels + manually skipping debug stmts.
19842 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19843 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19844 * tree-inline.c (copy_edges_for_bb): Remove
19845 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19846 argument. Ignore computed_goto_p stmts. Don't call
19847 make_abnormal_goto_edges. If a call might need abnormal edges
19848 for non-local gotos, see if it already has an edge to
19849 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19850 with true argument, don't do anything then, otherwise add
19851 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19852 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19853 caller.
19854 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19855 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19856 (lower_stmt): Don't set data->calls_builtin_setjmp.
19857 (lower_builtin_setjmp): Adjust comment.
19858 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19859 * tree-cfg.c (found_computed_goto): Remove.
19860 (factor_computed_gotos): Remove.
19861 (make_goto_expr_edges): Return bool, true for computed gotos.
19862 Don't call make_abnormal_goto_edges.
19863 (build_gimple_cfg): Don't set found_computed_goto, don't call
19864 factor_computed_gotos.
19865 (computed_goto_p): No longer static.
19866 (make_blocks): Don't set found_computed_goto.
19867 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
19868 (make_edges): If make_goto_expr_edges returns true, push bb
19869 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
19870 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
19871 vector. Record mapping between bbs and OpenMP regions if there
19872 are any, adjust make_gimple_omp_edges caller. Call
19873 handle_abnormal_edges.
19874 (make_abnormal_goto_edges): Remove.
19875 * tree-cfg.h (make_abnormal_goto_edges): Remove.
19876 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
19877 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
19878 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
19879 * internal-fn.def (ABNORMAL_DISPATCHER): New.
19880 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
19881 filling *region also set *region_idx to (*region)->entry->index.
19882
19883 PR other/58712
19884 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
19885 For REGs set ORIGINAL_REGNO.
19886
19887 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
19888
19889 * doc/md.texi: Mention that a target shouldn't implement
19890 vec_widen_(s|u)mul_even/odd pair if it is less efficient
19891 than hi/lo pair.
19892
19893 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19894
19895 PR tree-optimization/59594
19896 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
19897 a copy of the datarefs vector rather than the vector itself.
19898
19899 2014-01-28 Jason Merrill <jason@redhat.com>
19900
19901 PR c++/53756
19902 * dwarf2out.c (auto_die): New static.
19903 (gen_type_die_with_usage): Handle C++1y 'auto'.
19904 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
19905 on definition.
19906
19907 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
19908
19909 PR target/59672
19910 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
19911 (SPEC_X32): Likewise.
19912 (SPEC_64): Likewise.
19913 * config/i386/i386.c (ix86_option_override_internal): Turn off
19914 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
19915 for TARGET_16BIT.
19916 (x86_file_start): Output .code16gcc for TARGET_16BIT.
19917 * config/i386/i386.h (TARGET_16BIT): New macro.
19918 (TARGET_16BIT_P): Likewise.
19919 * config/i386/i386.opt: Add m16.
19920 * doc/invoke.texi: Document -m16.
19921
19922 2014-01-28 Jakub Jelinek <jakub@redhat.com>
19923
19924 PR preprocessor/59935
19925 * input.c (location_get_source_line): Bail out on when line number
19926 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
19927
19928 2014-01-28 Richard Biener <rguenther@suse.de>
19929
19930 PR tree-optimization/58742
19931 * tree-ssa-forwprop.c (associate_plusminus): Handle
19932 pointer subtraction of the form (T)(P + A) - (T)P.
19933
19934 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19935
19936 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
19937 at const_int_cost.
19938
19939 2014-01-28 Richard Biener <rguenther@suse.de>
19940
19941 Revert
19942 2014-01-28 Richard Biener <rguenther@suse.de>
19943
19944 PR rtl-optimization/45364
19945 PR rtl-optimization/59890
19946 * var-tracking.c (local_get_addr_clear_given_value): Handle
19947 already cleared slot.
19948 (val_reset): Handle not allocated local_get_addr_cache.
19949 (vt_find_locations): Use post-order on the inverted CFG.
19950
19951 2014-01-28 Richard Biener <rguenther@suse.de>
19952
19953 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
19954
19955 2014-01-28 Richard Biener <rguenther@suse.de>
19956
19957 PR rtl-optimization/45364
19958 PR rtl-optimization/59890
19959 * var-tracking.c (local_get_addr_clear_given_value): Handle
19960 already cleared slot.
19961 (val_reset): Handle not allocated local_get_addr_cache.
19962 (vt_find_locations): Use post-order on the inverted CFG.
19963
19964 2014-01-28 Alan Modra <amodra@gmail.com>
19965
19966 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
19967 * configure.ac <recursive call for build != host>: Define
19968 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
19969 and LD_FOR_BUILD too.
19970 * configure: Regenerate.
19971
19972 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
19973
19974 * config/i386/i386.c (get_builtin_code_for_version): Separate
19975 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
19976 Broadwell from Haswell.
19977
19978 2014-01-27 Steve Ellcey <sellcey@mips.com>
19979
19980 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
19981 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
19982 * config/mips/mips.c (mips_option_override): Change setting
19983 of TARGET_DSP.
19984 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
19985 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
19986 Change from Mask to Var.
19987
19988 2014-01-27 Jeff Law <law@redhat.com>
19989
19990 * ipa-inline.c (inline_small_functions): Fix typo.
19991
19992 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
19993
19994 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
19995 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
19996 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
19997 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
19998 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
19999 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20000 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20001 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20002 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20003 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20004 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20005 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20006 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20007 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20008 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20009 (_mm512_storeu_epi64): Ditto.
20010 (_mm512_cmpge_epi32_mask): Ditto.
20011 (_mm512_cmpge_epu32_mask): Ditto.
20012 (_mm512_cmpge_epi64_mask): Ditto.
20013 (_mm512_cmpge_epu64_mask): Ditto.
20014 (_mm512_cmple_epi32_mask): Ditto.
20015 (_mm512_cmple_epu32_mask): Ditto.
20016 (_mm512_cmple_epi64_mask): Ditto.
20017 (_mm512_cmple_epu64_mask): Ditto.
20018 (_mm512_cmplt_epi32_mask): Ditto.
20019 (_mm512_cmplt_epu32_mask): Ditto.
20020 (_mm512_cmplt_epi64_mask): Ditto.
20021 (_mm512_cmplt_epu64_mask): Ditto.
20022 (_mm512_cmpneq_epi32_mask): Ditto.
20023 (_mm512_cmpneq_epu32_mask): Ditto.
20024 (_mm512_cmpneq_epi64_mask): Ditto.
20025 (_mm512_cmpneq_epu64_mask): Ditto.
20026 (_mm512_expand_pd): Ditto.
20027 (_mm512_expand_ps): Ditto.
20028 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20029 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20030 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20031 * config/i386/i386.c (ix86_builtins): Add
20032 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20033 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20034 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20035 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20036 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20037 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20038 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20039 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20040 IX86_BUILTIN_PMOVUSQW512_MEM.
20041 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20042 __builtin_ia32_pmovsqd512mem_mask,
20043 __builtin_ia32_pmovqd512mem_mask,
20044 __builtin_ia32_pmovusqw512mem_mask,
20045 __builtin_ia32_pmovsqw512mem_mask,
20046 __builtin_ia32_pmovqw512mem_mask,
20047 __builtin_ia32_pmovusdw512mem_mask,
20048 __builtin_ia32_pmovsdw512mem_mask,
20049 __builtin_ia32_pmovdw512mem_mask,
20050 __builtin_ia32_pmovqb512mem_mask,
20051 __builtin_ia32_pmovusqb512mem_mask,
20052 __builtin_ia32_pmovsqb512mem_mask,
20053 __builtin_ia32_pmovusdb512mem_mask,
20054 __builtin_ia32_pmovsdb512mem_mask,
20055 __builtin_ia32_pmovdb512mem_mask.
20056 (bdesc_args): Add __builtin_ia32_expanddf512,
20057 __builtin_ia32_expandsf512.
20058 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20059 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20060 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20061 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20062 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20063 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20064 (avx512f_<code>v8div16qi2_mask_store): This.
20065 (avx512f_expand<mode>): New.
20066
20067 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20068
20069 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20070 New.
20071 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20072 (_mm512_prefetch_i32scatter_pd): Ditto.
20073 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20074 (_mm512_prefetch_i64scatter_pd): Ditto.
20075 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20076 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20077 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20078 (_mm512_prefetch_i32scatter_ps): Ditto.
20079 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20080 (_mm512_prefetch_i64scatter_ps): Ditto.
20081 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20082 * config/i386/i386-builtin-types.def: Define
20083 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20084 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20085 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20086 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20087 IX86_BUILTIN_SCATTERPFQPD.
20088 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20089 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20090 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20091 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20092 __builtin_ia32_scatterpfqps.
20093 (ix86_expand_builtin): Expand new built-ins.
20094 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20095 fix memory access data type.
20096 (*avx512pf_gatherpf<mode>_mask): Ditto.
20097 (*avx512pf_gatherpf<mode>): Ditto.
20098 (avx512pf_scatterpf<mode>): Ditto.
20099 (*avx512pf_scatterpf<mode>_mask): Ditto.
20100 (*avx512pf_scatterpf<mode>): Ditto.
20101 (GATHER_SCATTER_SF_MEM_MODE): New.
20102 (avx512pf_gatherpf<mode>df): Ditto.
20103 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20104 (*avx512pf_scatterpf<mode>df): Ditto.
20105
20106 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20107
20108 PR bootstrap/59934
20109 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20110 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20111 reached.
20112
20113 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20114
20115 * common/config/arm/arm-common.c
20116 (arm_rewrite_mcpu): Handle multiple names.
20117 * config/arm/arm.h
20118 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20119
20120 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20121
20122 * gimple-builder.h (create_gimple_tmp): Delete.
20123
20124 2014-01-27 Christian Bruel <christian.bruel@st.com>
20125
20126 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20127 words comparisons.
20128
20129 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20130
20131 * config/pa/pa.md (call): Generate indirect long calls to non-local
20132 functions when outputing 32-bit code.
20133 (call_value): Likewise except for special call to buggy powf function.
20134
20135 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20136 portable runtime and PIC indirect calls.
20137 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20138 and PIC call sequences. Use ldo instead of blr to set return register
20139 in PIC call sequence.
20140
20141 2014-01-25 Walter Lee <walt@tilera.com>
20142
20143 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20144 avoid clobbering a live register.
20145
20146 2014-01-25 Walter Lee <walt@tilera.com>
20147
20148 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20149 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20150 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20151 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20152
20153 2014-01-25 Walter Lee <walt@tilera.com>
20154
20155 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20156 arguments on even registers.
20157 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20158 STACK_BOUNDARY.
20159 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20160 (BIGGEST_ALIGNMENT): Ditto.
20161 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20162
20163 2014-01-25 Walter Lee <walt@tilera.com>
20164
20165 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20166 insns before bundling.
20167 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20168
20169 2014-01-25 Walter Lee <walt@tilera.com>
20170
20171 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20172 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20173 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20174
20175 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20176
20177 * config/mips/constraints.md (kl): Delete.
20178 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20179 define expands, using...
20180 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20181 instructions for MIPS16.
20182 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20183 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20184
20185 2014-01-25 Walter Lee <walt@tilera.com>
20186
20187 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20188 (clzdi2): Ditto.
20189 (ffsdi2): Ditto.
20190
20191 2014-01-25 Walter Lee <walt@tilera.com>
20192
20193 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20194 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20195
20196 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20197
20198 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20199 Handle XOR.
20200
20201 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20202
20203 * print-rtl.c (in_call_function_usage): New var.
20204 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20205 EXPR_LIST mode as mode and not as reg note name.
20206
20207 PR middle-end/59561
20208 * cfgloopmanip.c (copy_loop_info): If
20209 loop->warned_aggressive_loop_optimizations, make sure
20210 the flag is set in target loop too.
20211
20212 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20213
20214 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20215 flag_cilkplus.
20216 * builtins.def: Likewise.
20217 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20218 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20219 * ira.c (ira_setup_eliminable_regset): Likewise.
20220 * omp-low.c (gate_expand_omp): Likewise.
20221 (execute_lower_omp): Likewise.
20222 (diagnose_sb_0): Likewise.
20223 (gate_diagnose_omp_blocks): Likewise.
20224 (simd_clone_clauses_extract): Likewise.
20225 (gate): Likewise.
20226
20227 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20228
20229 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20230 correction for little endian...
20231 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20232 here.
20233
20234 2014-01-24 Jeff Law <law@redhat.com>
20235
20236 PR tree-optimization/59919
20237 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20238 for non-returning calls.
20239
20240 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20241
20242 * common/config/aarch64/aarch64-common.c
20243 (aarch64_rewrite_mcpu): Handle multiple names.
20244 * config/aarch64/aarch64.h
20245 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20246
20247 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20248
20249 * input.c (add_file_to_cache_tab): Handle the case where fopen
20250 returns NULL.
20251
20252 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20253
20254 PR target/59929
20255 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20256 from push operand if code of push isn't PRE_DEC.
20257
20258 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20259
20260 PR target/59909
20261 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20262 -mquad-memory-atomic. Update -mquad-memory documentation to say
20263 it is only used for non-atomic loads/stores.
20264
20265 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20266 -mquad-memory or -mquad-memory-atomic switches.
20267
20268 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20269 -mquad-memory-atomic to ISA 2.07 support.
20270
20271 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20272 to separate support of normal quad word memory operations (ldq, stq)
20273 from the atomic quad word memory operations.
20274
20275 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20276 support to separate non-atomic quad word operations from atomic
20277 quad word operations. Disable non-atomic quad word operations in
20278 little endian mode so that we don't have to swap words after the
20279 load and before the store.
20280 (quad_load_store_p): Add comment about atomic quad word support.
20281 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20282 options printed with -mdebug=reg.
20283
20284 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20285 -mquad-memory-atomic as the test for whether we have quad word
20286 atomic instructions.
20287 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20288 or -mp8-vector are used, allow byte/half-word atomic operations.
20289
20290 * config/rs6000/sync.md (load_lockedti): Insure that the address
20291 is a proper indexed or indirect address for the lqarx instruction.
20292 On little endian systems, swap the hi/lo registers after the lqarx
20293 instruction.
20294 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20295 insure the address is valid for the lqarx instruction.
20296 (store_conditionalti): Insure that the address is a proper indexed
20297 or indirect address for the stqcrx. instruction. On little endian
20298 systems, swap the hi/lo registers before doing the stqcrx.
20299 instruction.
20300 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20301 insure the address is valid for the stqcrx. instruction.
20302
20303 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20304 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20305 type of quad memory support is available.
20306
20307 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20308
20309 PR regression/59915
20310 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20311 there is a danger of looping.
20312
20313 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20314
20315 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20316 force flag_ira_loop_pressure if set via command line.
20317
20318 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20319
20320 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20321 (ashr_simd): New builtin handling DI mode.
20322 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20323 (aarch64_sshr_simddi): New match pattern.
20324 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20325 (vshrd_n_s64): Likewise.
20326 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20327
20328 2014-01-23 Nick Clifton <nickc@redhat.com>
20329
20330 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20331 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20332 favour of mcu specific scripts.
20333 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20334 430x multilibs.
20335
20336 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20337 Alex Velenko <Alex.Velenko@arm.com>
20338
20339 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20340 (vaddv_s16): Likewise.
20341 (vaddv_s32): Likewise.
20342 (vaddv_u8): Likewise.
20343 (vaddv_u16): Likewise.
20344 (vaddv_u32): Likewise.
20345 (vaddvq_s8): Likewise.
20346 (vaddvq_s16): Likewise.
20347 (vaddvq_s32): Likewise.
20348 (vaddvq_s64): Likewise.
20349 (vaddvq_u8): Likewise.
20350 (vaddvq_u16): Likewise.
20351 (vaddvq_u32): Likewise.
20352 (vaddvq_u64): Likewise.
20353 (vaddv_f32): Likewise.
20354 (vaddvq_f32): Likewise.
20355 (vaddvq_f64): Likewise.
20356 (vmaxv_f32): Likewise.
20357 (vmaxv_s8): Likewise.
20358 (vmaxv_s16): Likewise.
20359 (vmaxv_s32): Likewise.
20360 (vmaxv_u8): Likewise.
20361 (vmaxv_u16): Likewise.
20362 (vmaxv_u32): Likewise.
20363 (vmaxvq_f32): Likewise.
20364 (vmaxvq_f64): Likewise.
20365 (vmaxvq_s8): Likewise.
20366 (vmaxvq_s16): Likewise.
20367 (vmaxvq_s32): Likewise.
20368 (vmaxvq_u8): Likewise.
20369 (vmaxvq_u16): Likewise.
20370 (vmaxvq_u32): Likewise.
20371 (vmaxnmv_f32): Likewise.
20372 (vmaxnmvq_f32): Likewise.
20373 (vmaxnmvq_f64): Likewise.
20374 (vminv_f32): Likewise.
20375 (vminv_s8): Likewise.
20376 (vminv_s16): Likewise.
20377 (vminv_s32): Likewise.
20378 (vminv_u8): Likewise.
20379 (vminv_u16): Likewise.
20380 (vminv_u32): Likewise.
20381 (vminvq_f32): Likewise.
20382 (vminvq_f64): Likewise.
20383 (vminvq_s8): Likewise.
20384 (vminvq_s16): Likewise.
20385 (vminvq_s32): Likewise.
20386 (vminvq_u8): Likewise.
20387 (vminvq_u16): Likewise.
20388 (vminvq_u32): Likewise.
20389 (vminnmv_f32): Likewise.
20390 (vminnmvq_f32): Likewise.
20391 (vminnmvq_f64): Likewise.
20392
20393 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20394
20395 * config/aarch64/aarch64-simd.md
20396 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20397 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20398 (*aarch64_mul3_elt<mode>): Likewise.
20399 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20400 (*aarch64_mul3_elt_to_64v2df): Likewise.
20401 (*aarch64_mla_elt<mode>): Likewise.
20402 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20403 (*aarch64_mls_elt<mode>): Likewise.
20404 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20405 (*aarch64_fma4_elt<mode>): Likewise.
20406 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20407 (*aarch64_fma4_elt_to_64v2df): Likewise.
20408 (*aarch64_fnma4_elt<mode>): Likewise.
20409 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20410 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20411 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20412 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20413 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20414 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20415 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20416 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20417 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20418
20419 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20420
20421 * config/aarch64/aarch64-simd.md
20422 (aarch64_be_checked_get_lane<mode>): New define_expand.
20423 * config/aarch64/aarch64-simd-builtins.def
20424 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20425 New builtin definition.
20426 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20427 Use new safe be builtin.
20428
20429 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20430
20431 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20432 New define_insn.
20433 (aarch64_be_st1<mode>): Likewise.
20434 (aarch_ld1<VALL:mode>): Define_expand modified.
20435 (aarch_st1<VALL:mode>): Likewise.
20436 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20437 (UNSPEC_ST1): Likewise.
20438
20439 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20440
20441 * config/microblaze/microblaze.md: Add trap insn and attribute
20442
20443 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20444
20445 PR preprocessor/58580
20446 * input.h (location_get_source_line): Take an additional line_size
20447 parameter.
20448 (void diagnostics_file_cache_fini): Declare new function.
20449 * input.c (struct fcache): New type.
20450 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20451 New static constants.
20452 (diagnostic_file_cache_init, total_lines_num)
20453 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20454 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20455 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20456 (get_next_line, read_next_line, goto_next_line, read_line_num):
20457 New static function definitions.
20458 (diagnostic_file_cache_fini): New function.
20459 (location_get_source_line): Take an additional output line_len
20460 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20461 read_line_num.
20462 * diagnostic.c (diagnostic_finish): Call
20463 diagnostic_file_cache_fini.
20464 (adjust_line): Take an additional input parameter for the length
20465 of the line, rather than calculating it with strlen.
20466 (diagnostic_show_locus): Adjust the use of
20467 location_get_source_line and adjust_line with respect to their new
20468 signature. While displaying a line now, do not stop at the first
20469 null byte. Rather, display the zero byte as a space and keep
20470 going until we reach the size of the line.
20471 * Makefile.in: Add vec.o to OBJS-libcommon
20472
20473 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20474 Ilya Tocar <ilya.tocar@intel.com>
20475
20476 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20477 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20478 (__builtin_ia32_kmov16): Ditto.
20479 * config/i386/i386.md (UNSPEC_KMOV): New.
20480 (kmovw): Ditto.
20481
20482 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20483
20484 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20485 (_mm512_storeu_si512): Ditto.
20486
20487 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20488
20489 PR target/52125
20490 * rtl.h (get_referenced_operands): Declare.
20491 * recog.c (get_referenced_operands): New function.
20492 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20493 operands have been referenced when recording LO_SUM references.
20494
20495 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20496
20497 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20498
20499 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20500
20501 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20502 Enable for generic and recent AMD targets.
20503
20504 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20505
20506 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20507 ARG_SIZE note when adjustment was eliminated.
20508
20509 2014-01-22 Jeff Law <law@redhat.com>
20510
20511 PR tree-optimization/59597
20512 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20513 in file. Accept new argument REGISTERING and use it to modify
20514 dump output appropriately.
20515 (register_jump_thread): Corresponding changes.
20516 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20517 thread paths involving joiner blocks. Add code to dump cancelled
20518 jump threading paths.
20519
20520 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20521
20522 PR rtl-optimization/59477
20523 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20524 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20525
20526 2014-01-22 Tom Tromey <tromey@redhat.com>
20527
20528 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20529 PARAMS.
20530 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20531
20532 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20533
20534 PR rtl-optimization/59896
20535 * lra-constraints.c (process_alt_operands): Check unused note for
20536 matched operands of insn with no output reloads.
20537
20538 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20539
20540 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20541 (mips_move_from_gpr_cost): Likewise.
20542
20543 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20544
20545 PR rtl-optimization/59858
20546 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20547 ira_class_hard_regs_num.
20548 (process_alt_operands): Increase reject for dying matched operand.
20549
20550 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20551
20552 PR target/59003
20553 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20554 smaller than size, perform several stores or loads and stores
20555 at dst + count - size to store or copy all of size bytes, rather
20556 than just last modesize bytes.
20557
20558 2014-01-20 DJ Delorie <dj@redhat.com>
20559
20560 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20561 that CLOBBERs are REGs before propogating their values.
20562
20563 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20564
20565 PR middle-end/59789
20566 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20567 (cgraph_inline_failed_type): New function.
20568 * cgraph.h (DEFCIFCODE): Add type.
20569 (cgraph_inline_failed_type_t): New enum.
20570 (cgraph_inline_failed_type): New prototype.
20571 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20572 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20573 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20574 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20575 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20576 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20577 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20578 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20579 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20580 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20581 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20582 OPTIMIZATION_MISMATCH.
20583 * tree-inline.c (expand_call_inline): Emit errors during
20584 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20585
20586 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20587
20588 PR target/59685
20589 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20590 mode attribute in insn output.
20591
20592 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20593
20594 * output.h (output_constant): Delete.
20595 * varasm.c (output_constant): Make private.
20596
20597 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20598
20599 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20600
20601 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20602
20603 PR middle-end/59860
20604 * tree.h (fold_builtin_strcat): New prototype.
20605 * builtins.c (fold_builtin_strcat): No longer static. Add len
20606 argument, if non-NULL, don't call c_strlen. Optimize
20607 directly into __builtin_memcpy instead of __builtin_strcpy.
20608 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20609 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20610
20611 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20612
20613 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20614 for SImode_address_operand operands, having only a REG argument.
20615
20616 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20617
20618 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20619 loader name using mbig-endian.
20620 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20621
20622 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20623
20624 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20625 (-mtune): Likewise.
20626 (-mcpu): Likewise.
20627
20628 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20629
20630 * config/aarch64/aarch64-protos.h
20631 (aarch64_cannot_change_mode_class_ptr): Declare.
20632 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20633 aarch64_cannot_change_mode_class_ptr): New.
20634 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20635 backend hook aarch64_cannot_change_mode_class.
20636
20637 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20638
20639 * common/config/aarch64/aarch64-common.c
20640 (aarch64_handle_option): Don't handle any option order logic here.
20641 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20642 selected_cpu, warn on architecture version mismatch.
20643 (aarch64_override_options): Fix parsing order for option strings.
20644
20645 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20646 Iain Sandoe <iain@codesourcery.com>
20647
20648 PR bootstrap/59496
20649 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20650 warning. Amend comment to reflect current functionality.
20651
20652 2014-01-20 Richard Biener <rguenther@suse.de>
20653
20654 PR middle-end/59860
20655 * builtins.c (fold_builtin_strcat): Remove case better handled
20656 by tree-ssa-strlen.c.
20657
20658 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20659
20660 * config/aarch64/aarch64.opt
20661 (mcpu, march, mtune): Make case-insensitive.
20662
20663 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20664
20665 PR target/59880
20666 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20667 if operands[1] is a REG or ZERO_EXTEND of a REG.
20668
20669 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20670
20671 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20672
20673 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20674
20675 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20676 long non-pic millicode calls.
20677
20678 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20679
20680 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20681
20682 2014-01-19 Kito Cheng <kito@0xlab.org>
20683
20684 * builtins.c (expand_movstr): Check movstr expand done or fail.
20685
20686 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20687 H.J. Lu <hongjiu.lu@intel.com>
20688
20689 PR target/59379
20690 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20691 to DImode for zero-extended addresses.
20692
20693 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20694
20695 PR rtl-optimization/57763
20696 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20697 on the new indirect jump_insn and increment LABEL_NUSES (label).
20698
20699 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20700
20701 PR bootstrap/59580
20702 PR bootstrap/59583
20703 * config.gcc (x86_archs): New variable.
20704 (x86_64_archs): Likewise.
20705 (x86_cpus): Likewise.
20706 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20707 --with-arch/--with-cpu= options.
20708 Support --with-arch=/--with-cpu={nehalem,westmere,
20709 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20710
20711 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20712
20713 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20714 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20715
20716 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20717
20718 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20719
20720 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20721
20722 PR target/58944
20723 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20724 clear cpp_get_options (parse_in)->warn_unused_macros for
20725 ix86_target_macros_internal with cpp_define.
20726
20727 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20728
20729 * jump.c (delete_related_insns): Keep (use (insn))s.
20730 * reorg.c (redundant_insn): Check for barriers too.
20731
20732 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20733
20734 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20735
20736 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20737
20738 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20739 call to $$dyncall when TARGET_LONG_CALLS is true.
20740
20741 2014-01-17 Jeff Law <law@redhat.com>
20742
20743 * ree.c (combine_set_extension): Temporarily disable test for
20744 changing number of hard registers.
20745
20746 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20747
20748 PR middle-end/58125
20749 * ipa-inline-analysis.c (inline_free_summary):
20750 Do not free summary of aliases.
20751
20752 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20753
20754 PR middle-end/59706
20755 * gimplify.c (gimplify_expr): Use create_tmp_var
20756 instead of create_tmp_var_raw. If cond doesn't have
20757 integral type, don't add the IFN_ANNOTATE builtin at all.
20758
20759 2014-01-17 Martin Jambor <mjambor@suse.cz>
20760
20761 PR ipa/59736
20762 * ipa-cp.c (prev_edge_clone): New variable.
20763 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20764 Also resize prev_edge_clone vector.
20765 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20766 (ipcp_edge_removal_hook): New function.
20767 (ipcp_driver): Register ipcp_edge_removal_hook.
20768
20769 2014-01-17 Andrew Pinski <apinski@cavium.com>
20770 Steve Ellcey <sellcey@mips.com>
20771
20772 PR target/59462
20773 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20774 of operator mode.
20775
20776 2014-01-17 Jeff Law <law@redhat.com>
20777
20778 PR middle-end/57904
20779 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20780 so that pass_ccp runs first.
20781
20782 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20783
20784 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20785 (ix86_adjust_cost): Use !TARGET_XXX.
20786 (do_reorder_for_imul): Likewise.
20787 (swap_top_of_ready_list): Likewise.
20788 (ix86_sched_reorder): Likewise.
20789
20790 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20791
20792 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20793 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20794 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20795 (intel_memset): New. Duplicate slm_memset.
20796 (intel_cost): New. Duplicate slm_cost.
20797 (m_INTEL): New macro.
20798 (processor_target_table): Add "intel".
20799 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20800 with PROCESSOR_INTEL for "intel".
20801 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20802 PROCESSOR_SILVERMONT.
20803 (ix86_issue_rate): Likewise.
20804 (ix86_adjust_cost): Likewise.
20805 (ia32_multipass_dfa_lookahead): Likewise.
20806 (swap_top_of_ready_list): Likewise.
20807 (ix86_sched_reorder): Likewise.
20808 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20809 instead of TARGET_OPT_AGU.
20810 * config/i386/i386.h (TARGET_INTEL): New.
20811 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20812 (processor_type): Add PROCESSOR_INTEL.
20813 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20814 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20815
20816 2014-01-17 Marek Polacek <polacek@redhat.com>
20817
20818 PR c/58346
20819 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20820 size is zero.
20821
20822 2014-01-17 Richard Biener <rguenther@suse.de>
20823
20824 PR tree-optimization/46590
20825 * opts.c (default_options_table): Add entries for
20826 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20827 all enabled at -O1 but not for -Og.
20828 * common.opt (fbranch-count-reg): Remove Init(1).
20829 (fmove-loop-invariants): Likewise.
20830 (ftree-pta): Likewise.
20831
20832 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20833
20834 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20835 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20836 decls to at least the GCC 4.8 used alignments.
20837
20838 PR fortran/59440
20839 * tree-nested.c (convert_nonlocal_reference_stmt,
20840 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20841 of GIMPLE_BIND stmts, adjust associated decls.
20842
20843 2014-01-17 Richard Biener <rguenther@suse.de>
20844
20845 PR tree-optimization/46590
20846 * vec.h (vec<>::bseach): New member function implementing
20847 binary search according to C89 bsearch.
20848 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20849 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20850 bitmap pointer again. Make accesses_in_loop a flat array.
20851 (mem_ref_obstack): New global.
20852 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20853 (mark_ref_stored): Likewise.
20854 (ref_indep_loop_p_2): Likewise.
20855 (set_ref_stored_in_loop): New helper function.
20856 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20857 (memref_free): Adjust.
20858 (record_mem_ref_loc): Simplify.
20859 (gather_mem_refs_stmt): Adjust.
20860 (sort_locs_in_loop_postorder_cmp): New function.
20861 (analyze_memory_references): Sort accesses_in_loop after
20862 loop postorder number.
20863 (find_ref_loc_in_loop_cmp): New function.
20864 (for_all_locs_in_loop): Find relevant cluster of locs in
20865 accesses_in_loop and iterate without recursion.
20866 (execute_sm): Avoid uninit warning.
20867 (struct ref_always_accessed): Simplify.
20868 (ref_always_accessed::operator ()): Likewise.
20869 (ref_always_accessed_p): Likewise.
20870 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
20871 loop postorder numbers here.
20872 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
20873 numbers.
20874
20875 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20876
20877 PR c++/57945
20878 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
20879 on decls for which assemble_alias has been called.
20880
20881 2014-01-17 Nick Clifton <nickc@redhat.com>
20882
20883 * config/msp430/msp430.opt: (mcpu): New option.
20884 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
20885 (msp430_option_override): Parse target_cpu. If the MCU name
20886 matches a generic string, clear target_mcu.
20887 (msp430_attr): Allow numeric interrupt values up to 63.
20888 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
20889 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
20890 option.
20891 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
20892 Add mcpu matches.
20893 * config/msp430/msp430.md (popm): Use %J rather than %I.
20894 (addsi3): Use msp430_nonimmediate_operand for operand 2.
20895 (addhi_cy_i): Use immediate_operand for operand 2.
20896 * doc/invoke.texi: Document -mcpu option.
20897
20898 2014-01-17 Richard Biener <rguenther@suse.de>
20899
20900 PR rtl-optimization/38518
20901 * df.h (df_analyze_loop): Declare.
20902 * df-core.c: Include cfgloop.h.
20903 (df_analyze_1): Split out main part of df_analyze.
20904 (df_analyze): Adjust.
20905 (loop_inverted_post_order_compute): New function.
20906 (loop_post_order_compute): Likewise.
20907 (df_analyze_loop): New function avoiding whole-function
20908 postorder computes.
20909 * loop-invariant.c (find_defs): Use df_analyze_loop.
20910 (find_invariants): Adjust.
20911 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
20912
20913 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
20914
20915 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
20916 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
20917
20918 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20919
20920 * ipa-ref.c (ipa_remove_stmt_references): Fix references
20921 traversal when removing references.
20922
20923 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
20924
20925 PR ipa/59775
20926 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
20927
20928 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
20929
20930 PR middle-end/56791
20931 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
20932 pushing a reload for an autoinc when we had previously reloaded an
20933 inner part of the address.
20934
20935 2014-01-16 Jakub Jelinek <jakub@redhat.com>
20936
20937 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
20938 field.
20939 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
20940 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
20941 when not giving up or versioning for alias only because of
20942 loop->safelen.
20943 (vect_analyze_data_ref_dependences): Set to true.
20944 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
20945 is a GIMPLE_PHI.
20946 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
20947 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
20948 to the condition.
20949
20950 PR middle-end/58344
20951 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
20952
20953 PR target/59839
20954 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
20955 operand 0 predicate for gathers, use a new pseudo as subtarget.
20956
20957 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
20958
20959 PR middle-end/59609
20960 * lra-constraints.c (process_alt_operands): Add printing debug info.
20961 Check absence of input/output reloads for matched operands too.
20962
20963 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
20964
20965 PR rtl-optimization/59835
20966 * ira.c (ira_init_register_move_cost): Increase cost for
20967 impossible modes.
20968
20969 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
20970
20971 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
20972
20973 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
20974
20975 PR target/59780
20976 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
20977 non-register objects. Use gen_(high/low)part more consistently.
20978 Fix assertions.
20979
20980 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20981
20982 PR target/59844
20983 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
20984 endian support, remove tests for WORDS_BIG_ENDIAN.
20985 (p8_mfvsrd_3_<mode>): Likewise.
20986 (reload_gpr_from_vsx<mode>): Likewise.
20987 (reload_gpr_from_vsxsf): Likewise.
20988 (p8_mfvsrd_4_disf): Likewise.
20989
20990 2014-01-16 Richard Biener <rguenther@suse.de>
20991
20992 PR rtl-optimization/46590
20993 * lcm.c (compute_antinout_edge): Use postorder iteration.
20994 (compute_laterin): Use inverted postorder iteration.
20995
20996 2014-01-16 Nick Clifton <nickc@redhat.com>
20997
20998 PR middle-end/28865
20999 * varasm.c (output_constant): Return the number of bytes actually
21000 emitted.
21001 (output_constructor_array_range): Update the field size with the
21002 number of bytes emitted by output_constant.
21003 (output_constructor_regular_field): Likewise. Also do not
21004 complain if the total number of bytes emitted is now greater
21005 than the expected fieldpos.
21006 * output.h (output_constant): Update prototype and descriptive comment.
21007
21008 2014-01-16 Marek Polacek <polacek@redhat.com>
21009
21010 PR middle-end/59827
21011 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21012 it is error_mark_node.
21013
21014 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21015
21016 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21017 VALID_AVX256_REG_OR_OI_MODE.
21018
21019 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21020
21021 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21022 current procedure should be profiled.
21023
21024 2014-01-15 Andrew Pinski <apinski@cavium.com>
21025
21026 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21027 of moving from/to the STACK_REG register class.
21028
21029 2014-01-15 Richard Henderson <rth@redhat.com>
21030
21031 PR debug/54694
21032 * reginfo.c (global_regs_decl): Globalize.
21033 * rtl.h (global_regs_decl): Declare.
21034 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21035 reserved via global_regs.
21036
21037 2014-01-15 Teresa Johnson <tejohnson@google.com>
21038
21039 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21040
21041 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21042
21043 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21044 and vmulosh rather than call gen_vec_widen_smult_*.
21045 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21046 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21047 (vec_widen_smult_even_v16qi): Likewise.
21048 (vec_widen_umult_even_v8hi): Likewise.
21049 (vec_widen_smult_even_v8hi): Likewise.
21050 (vec_widen_umult_odd_v16qi): Likewise.
21051 (vec_widen_smult_odd_v16qi): Likewise.
21052 (vec_widen_umult_odd_v8hi): Likewise.
21053 (vec_widen_smult_odd_v8hi): Likewise.
21054 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21055 vmuloub rather than call gen_vec_widen_umult_*.
21056 (vec_widen_umult_lo_v16qi): Likewise.
21057 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21058 vmulosb rather than call gen_vec_widen_smult_*.
21059 (vec_widen_smult_lo_v16qi): Likewise.
21060 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21061 rather than call gen_vec_widen_umult_*.
21062 (vec_widen_umult_lo_v8hi): Likewise.
21063 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21064 rather than call gen_vec_widen_smult_*.
21065 (vec_widen_smult_lo_v8hi): Likewise.
21066
21067 2014-01-15 Jeff Law <law@redhat.com>
21068
21069 PR tree-optimization/59747
21070 * ree.c (find_and_remove_re): Properly handle case where a second
21071 eliminated extension requires widening a copy created for elimination
21072 of a prior extension.
21073 (combine_set_extension): Ensure that the number of hard regs needed
21074 for a destination register does not change when we widen it.
21075
21076 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21077
21078 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21079 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21080 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21081 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21082 (avr-*-rtems*): Likewise.
21083 (bfin*-rtems*): Likewise.
21084 (moxie-*-rtems*): Likewise.
21085 (h8300-*-rtems*): Likewise.
21086 (i[34567]86-*-rtems*): Likewise.
21087 (lm32-*-rtems*): Likewise.
21088 (m32r-*-rtems*): Likewise.
21089 (m68k-*-rtems*): Likewise.
21090 (microblaze*-*-rtems*): Likewise.
21091 (mips*-*-rtems*): Likewise.
21092 (powerpc-*-rtems*): Likewise.
21093 (sh-*-rtems*): Likewise.
21094 (sparc-*-rtems*): Likewise.
21095 (sparc64-*-rtems*): Likewise.
21096 (v850-*-rtems*): Likewise.
21097 (m32c-*-rtems*): Likewise.
21098
21099 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21100
21101 PR rtl-optimization/59511
21102 * ira.c (ira_init_register_move_cost): Use memory costs for some
21103 cases of register move cost calculations.
21104 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21105 instead of BB frequency.
21106 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21107 * lra-assigns.c (find_hard_regno_for): Ditto.
21108
21109 2014-01-15 Richard Biener <rguenther@suse.de>
21110
21111 PR tree-optimization/59822
21112 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21113 (vectorizable_load): Use it to hoist defs of uses of invariant
21114 loads out of the loop.
21115
21116 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21117 Kugan Vivekanandarajah <kuganv@linaro.org>
21118
21119 PR target/59695
21120 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21121 truncation.
21122
21123 2014-01-15 Richard Biener <rguenther@suse.de>
21124
21125 PR rtl-optimization/59802
21126 * lcm.c (compute_available): Use inverted postorder to seed
21127 the initial worklist.
21128
21129 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21130
21131 PR target/59803
21132 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21133 ADDR_REGS for invalid symrefs in non-PIC code.
21134
21135 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21136
21137 PR other/58712
21138 * builtins.c (determine_block_size): Initialize *probable_max_size
21139 even if len_rtx is CONST_INT.
21140
21141 2014-01-14 Andrew Pinski <apinski@cavium.com>
21142
21143 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21144 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21145 (cortexa53_tunings): Likewise.
21146 (aarch64_sched_issue_rate): New function.
21147 (TARGET_SCHED_ISSUE_RATE): Define.
21148
21149 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21150
21151 * ira-costs.c (find_costs_and_classes): Add missed
21152 ira_init_register_move_cost_if_necessary.
21153
21154 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21155
21156 PR target/59787
21157 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21158
21159 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21160
21161 PR target/59794
21162 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21163 to indicate if type is used for function return value. Warn ABI
21164 change if the vector mode isn't available for function return value.
21165 (ix86_function_arg_advance): Pass false to type_natural_mode.
21166 (ix86_function_arg): Likewise.
21167 (ix86_gimplify_va_arg): Likewise.
21168 (function_arg_32): Don't warn ABI change.
21169 (ix86_function_value): Pass true to type_natural_mode.
21170 (ix86_return_in_memory): Likewise.
21171 (ix86_struct_value_rtx): Removed.
21172 (TARGET_STRUCT_VALUE_RTX): Likewise.
21173
21174 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21175
21176 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21177 converting a conditional jump into a conditional return.
21178
21179 2014-01-14 Richard Biener <rguenther@suse.de>
21180
21181 PR tree-optimization/58921
21182 PR tree-optimization/59006
21183 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21184 hoisting invariant stmts.
21185 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21186 invariant loads on the preheader edge if possible.
21187
21188 2014-01-14 Joey Ye <joey.ye@arm.com>
21189
21190 * doc/plugin.texi (Building GCC plugins): Update to C++.
21191
21192 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21193
21194 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21195 (_mm_rcp28_round_ss): Ditto.
21196 (_mm_rsqrt28_round_sd): Ditto.
21197 (_mm_rsqrt28_round_ss): Ditto.
21198 (_mm_rcp28_sd): Ditto.
21199 (_mm_rcp28_ss): Ditto.
21200 (_mm_rsqrt28_sd): Ditto.
21201 (_mm_rsqrt28_ss): Ditto.
21202 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21203 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21204 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21205 (IX86_BUILTIN_RCP28SD): Ditto.
21206 (IX86_BUILTIN_RCP28SS): Ditto.
21207 (IX86_BUILTIN_RSQRT28SD): Ditto.
21208 (IX86_BUILTIN_RSQRT28SS): Ditto.
21209 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21210 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21211 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21212 (ix86_expand_special_args_builtin): Expand new FTYPE.
21213 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21214 (srcp14<mode>): Make insn unary.
21215 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21216 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21217 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21218 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21219 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21220 Fix rounding: make it SAE only.
21221 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21222 Ditto.
21223 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21224 Ditto.
21225 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21226 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21227 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21228 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21229 (round_saeonly_mask_scalar_operand4): Ditto.
21230 (round_saeonly_mask_scalar_op3): Ditto.
21231 (round_saeonly_mask_scalar_op4): Ditto.
21232
21233 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21234
21235 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21236 Implement -maltivec=be for vec_insert and vec_extract.
21237
21238 2014-01-10 DJ Delorie <dj@redhat.com>
21239
21240 * config/msp430/msp430.md (call_internal): Don't allow memory
21241 references with SP as the base register.
21242 (call_value_internal): Likewise.
21243 * config/msp430/constraints.md (Yc): New. For memory references
21244 that don't use SP as a base register.
21245
21246 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21247 "an integer without a # prefix"
21248 * config/msp430/msp430.md (epilogue_helper): Use it.
21249
21250 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21251
21252 PR target/59617
21253 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21254 AVX512F gather builtins.
21255 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21256 on gather decls with INTEGER_TYPE masktype.
21257 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21258 directly into the builtin rather than hoisting it before loop.
21259
21260 PR tree-optimization/59387
21261 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21262 (scev_const_prop): If folded_casts and type has undefined overflow,
21263 use force_gimple_operand instead of force_gimple_operand_gsi and
21264 for each added stmt if it is assign with
21265 arith_code_with_undefined_signed_overflow, call
21266 rewrite_to_defined_overflow.
21267 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21268 gimple-fold.h instead.
21269 (arith_code_with_undefined_signed_overflow,
21270 rewrite_to_defined_overflow): Moved to ...
21271 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21272 rewrite_to_defined_overflow): ... here. No longer static.
21273 Include gimplify-me.h.
21274 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21275 rewrite_to_defined_overflow): New prototypes.
21276
21277 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21278
21279 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21280
21281 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21282
21283 * builtins.c (get_object_alignment_2): Minor tweak.
21284 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21285
21286 2014-01-13 Christian Bruel <christian.bruel@st.com>
21287
21288 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21289 optimized non constant lengths.
21290
21291 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21292
21293 PR libgomp/59194
21294 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21295 load as __atomic_load_N if possible.
21296
21297 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21298
21299 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21300 target parameter.
21301 (rs6000_expand_builtin): Adjust call.
21302
21303 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21304
21305 PR target/58115
21306 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21307 * config/rs6000/rs6000.c: Include target-globals.h.
21308 (rs6000_set_current_function): Instead of doing target_reinit
21309 unconditionally, use save_target_globals_default_opts and
21310 restore_target_globals.
21311
21312 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21313 FPSCR.
21314 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21315 (rs6000_expand_builtin): Handle mffs and mtfsf.
21316 (rs6000_init_builtins): Define mffs and mtfsf.
21317 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21318 (rs6000_mffs): New pattern.
21319 (rs6000_mtfsf): New pattern.
21320
21321 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21322
21323 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21324 Start narrowing with START. Apply candidate-use pair
21325 and check overall cost in narrowing.
21326 (iv_ca_prune): Pass new argument.
21327
21328 2014-01-10 Jeff Law <law@redhat.com>
21329
21330 PR middle-end/59743
21331 * ree.c (combine_reaching_defs): Ensure the defining statement
21332 occurs before the extension when optimizing extensions with
21333 different source and destination hard registers.
21334
21335 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21336
21337 PR ipa/58585
21338 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21339 vtables into the type inheritance graph.
21340
21341 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21342
21343 PR rtl-optimization/59754
21344 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21345 modes in the REGNO != REGNO case.
21346
21347 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21348
21349 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21350
21351 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21352
21353 PR tree-optimization/59745
21354 * tree-predcom.c (tree_predictive_commoning_loop): Call
21355 free_affine_expand_cache if giving up because components is NULL.
21356
21357 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21358 GC in payload of target_globals struct instead of allocating them on
21359 the heap and the larger structs separately using GC.
21360 * target-globals.h (struct target_globals): Make regs, hard_regs,
21361 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21362 of GTY((skip)) and change type to void *.
21363 (reset_target_globals): Cast loads from those fields to corresponding
21364 types.
21365
21366 2014-01-10 Steve Ellcey <sellcey@mips.com>
21367
21368 PR plugins/59335
21369 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21370 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21371 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21372
21373 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21374
21375 PR target/59744
21376 * aarch64-modes.def (CC_Zmode): New flags mode.
21377 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21378 represents an equality.
21379 (aarch64_get_condition_code): Handle CC_Zmode.
21380 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21381
21382 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21383
21384 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21385 extraction in good case.
21386
21387 2014-01-10 Richard Biener <rguenther@suse.de>
21388
21389 PR tree-optimization/59374
21390 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21391 checking after SLP discovery. Mark stmts not participating
21392 in any SLP instance properly.
21393
21394 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21395
21396 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21397 when handling a SET rtx.
21398
21399 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21400
21401 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21402 (cortex-a57): Likewise.
21403 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21404
21405 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21406
21407 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21408 non-iwmmxt builtins.
21409
21410 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21411
21412 PR ipa/58252
21413 PR ipa/59226
21414 * ipa-devirt.c record_target_from_binfo): Take as argument
21415 stack of binfos and lookup matching one for virtual inheritance.
21416 (possible_polymorphic_call_targets_1): Update.
21417
21418 2014-01-10 Huacai Chen <chenhc@lemote.com>
21419
21420 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21421 kernel strings for Loongson-2E/2F/3A.
21422
21423 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21424
21425 PR middle-end/59670
21426 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21427 is_gimple_call before calling gimple_call_internal_p.
21428
21429 2014-01-09 Steve Ellcey <sellcey@mips.com>
21430
21431 * Makefile.in (TREE_FLOW_H): Remove.
21432 (TREE_SSA_H): Add file names from tree-flow.h.
21433 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21434 * tree.h: Remove tree-flow.h reference.
21435 * hash-table.h: Remove tree-flow.h reference.
21436 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21437 reference with tree-ssa-loop.h.
21438
21439 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21440
21441 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21442 default element-order behavior for -maltivec.
21443 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21445 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21446 when targeting big endian, at least for now.
21447 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21448
21449 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21450
21451 PR middle-end/47735
21452 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21453 var satisfies use_register_for_decl, just take into account type
21454 alignment, rather than decl alignment.
21455
21456 PR tree-optimization/59622
21457 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21458 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21459 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21460 Don't devirtualize for inplace at all. For targets.length () == 1,
21461 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21462
21463 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21464
21465 * config/i386/i386.md (cpu): Remove the unused btver1.
21466
21467 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21468
21469 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21470
21471 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21472
21473 PR target/58115
21474 * tree-core.h (struct target_globals): New forward declaration.
21475 (struct tree_target_option): Add globals field.
21476 * tree.h (TREE_TARGET_GLOBALS): Define.
21477 (prepare_target_option_nodes_for_pch): New prototype.
21478 * target-globals.h (struct target_globals): Define even if
21479 !SWITCHABLE_TARGET.
21480 * tree.c (prepare_target_option_node_for_pch,
21481 prepare_target_option_nodes_for_pch): New functions.
21482 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21483 * config/i386/i386.c: Include target-globals.h.
21484 (ix86_set_current_function): Instead of doing target_reinit
21485 unconditionally, use save_target_globals_default_opts and
21486 restore_target_globals.
21487
21488 2014-01-09 Richard Biener <rguenther@suse.de>
21489
21490 PR tree-optimization/59715
21491 * tree-cfg.h (split_critical_edges): Declare.
21492 * tree-cfg.c (split_critical_edges): Export.
21493 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21494
21495 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21496
21497 * cfgexpand.c (expand_stack_vars): Optionally disable
21498 asan stack protection.
21499 (expand_used_vars): Likewise.
21500 (partition_stack_vars): Likewise.
21501 * asan.c (asan_emit_stack_protection): Optionally disable
21502 after return stack usage.
21503 (instrument_derefs): Optionally disable memory access instrumentation.
21504 (instrument_builtin_call): Likewise.
21505 (instrument_strlen_call): Likewise.
21506 (asan_protect_global): Optionally disable global variables protection.
21507 * doc/invoke.texi: Added doc for new options.
21508 * params.def: Added new options.
21509 * params.h: Likewise.
21510
21511 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21512
21513 PR rtl-optimization/59724
21514 * ifcvt.c (cond_exec_process_if_block): Don't call
21515 flow_find_head_matching_sequence with 0 longest_match.
21516 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21517 non-active insns if !stop_after.
21518 (try_head_merge_bb): Revert 2014-01-07 changes.
21519
21520 2014-01-08 Jeff Law <law@redhat.com>
21521
21522 * ree.c (get_sub_rtx): New function, extracted from...
21523 (merge_def_and_ext): Here.
21524 (combine_reaching_defs): Use get_sub_rtx.
21525
21526 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21527
21528 * cgraph.h (varpool_variable_node): Do not choke on null node.
21529
21530 2014-01-08 Catherine Moore <clm@codesourcery.com>
21531
21532 * config/mips/mips.md (simple_return): Attempt to use JRC
21533 for microMIPS.
21534 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21535
21536 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21537
21538 PR rtl-optimization/59137
21539 * reorg.c (steal_delay_list_from_target): Call update_block for
21540 elided insns.
21541 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21542
21543 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21544
21545 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21546 two duplicate entries.
21547
21548 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21549
21550 Revert:
21551 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21552
21553 * config/mips/mips.c (mips_truncated_op_cost): New function.
21554 (mips_rtx_costs): Adjust test for BADDU.
21555 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21556
21557 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21558
21559 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21560 (*baddu_si): ...this new pattern.
21561
21562 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21563
21564 PR ipa/59722
21565 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21566
21567 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21568
21569 PR middle-end/57748
21570 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21571 inner_reference_p.
21572 (expand_expr, expand_normal): Adjust.
21573 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21574 inner_reference_p. Use inner_reference_p to expand inner references.
21575 (store_expr): Adjust.
21576 * cfgexpand.c (expand_call_stmt): Adjust.
21577
21578 2014-01-08 Rong Xu <xur@google.com>
21579
21580 * gcov-io.c (gcov_var): Move from gcov-io.h.
21581 (gcov_position): Ditto.
21582 (gcov_is_error): Ditto.
21583 (gcov_rewrite): Ditto.
21584 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21585 only part to libgcc/libgcov.h.
21586
21587 2014-01-08 Marek Polacek <polacek@redhat.com>
21588
21589 PR middle-end/59669
21590 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21591
21592 2014-01-08 Marek Polacek <polacek@redhat.com>
21593
21594 PR sanitizer/59667
21595 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21596
21597 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21598
21599 PR rtl-optimization/59649
21600 * stor-layout.c (get_mode_bounds): For BImode return
21601 0 and STORE_FLAG_VALUE.
21602
21603 2014-01-08 Richard Biener <rguenther@suse.de>
21604
21605 PR middle-end/59630
21606 * gimple.h (is_gimple_builtin_call): Remove.
21607 (gimple_builtin_call_types_compatible_p): New.
21608 (gimple_call_builtin_p): New overload.
21609 * gimple.c (is_gimple_builtin_call): Remove.
21610 (validate_call): Rename to ...
21611 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21612 check return types.
21613 (validate_type): New static function.
21614 (gimple_call_builtin_p): New overload and adjust.
21615 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21616 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21617 (gimple_fold_stmt_to_constant_1): Likewise.
21618 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21619
21620 2014-01-08 Richard Biener <rguenther@suse.de>
21621
21622 PR middle-end/59471
21623 * gimplify.c (gimplify_expr): Gimplify register-register type
21624 VIEW_CONVERT_EXPRs to separate stmts.
21625
21626 2014-01-07 Jeff Law <law@redhat.com>
21627
21628 PR middle-end/53623
21629 * ree.c (combine_set_extension): Handle case where source
21630 and destination registers in an extension insn are different.
21631 (combine_reaching_defs): Allow source and destination registers
21632 in extension to be different under limited circumstances.
21633 (add_removable_extension): Remove restriction that the
21634 source and destination registers in the extension are the same.
21635 (find_and_remove_re): Emit a copy from the extension's
21636 destination to its source after the defining insn if
21637 the source and destination registers are different.
21638
21639 PR middle-end/59285
21640 * ifcvt.c (merge_if_block): If we are merging a block with more than
21641 one successor with a block with no successors, remove any BARRIER
21642 after the second block.
21643
21644 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21645
21646 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21647
21648 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21649
21650 PR target/59652
21651 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21652 for 14-bit register offsets when INT14_OK_STRICT is false.
21653
21654 2014-01-07 Roland Stigge <stigge@antcom.de>
21655 Michael Meissner <meissner@linux.vnet.ibm.com>
21656
21657 PR 57386/target
21658 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21659 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21660
21661 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21662
21663 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21664 -mcpu.
21665
21666 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21667
21668 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21669 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21670 rtx is const0_rtx or not.
21671
21672 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21673
21674 PR target/58115
21675 * target-globals.c (save_target_globals): Remove this_fn_optab
21676 handling.
21677 * toplev.c: Include optabs.h.
21678 (target_reinit): Temporarily restore the global options if another
21679 set of options are in force.
21680
21681 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21682
21683 PR rtl-optimization/58668
21684 * cfgcleanup.c (flow_find_cross_jump): Don't count
21685 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21686 to determine what is counted.
21687 (flow_find_head_matching_sequence): Use active_insn_p to determine
21688 what is counted.
21689 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21690 counting change.
21691 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21692 determine what is counted.
21693
21694 PR tree-optimization/59643
21695 * tree-predcom.c (split_data_refs_to_components): If one dr is
21696 read and one write, determine_offset fails and the write isn't
21697 in the bad component, just put the read into the bad component.
21698
21699 2014-01-07 Mike Stump <mikestump@comcast.net>
21700 Jakub Jelinek <jakub@redhat.com>
21701
21702 PR pch/59436
21703 * tree-core.h (struct tree_optimization_option): Change optabs
21704 type from unsigned char * to void *.
21705 * optabs.c (init_tree_optimization_optabs): Adjust
21706 TREE_OPTIMIZATION_OPTABS initialization.
21707
21708 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21709
21710 PR target/59644
21711 * config/i386/i386.h (struct machine_function): Add
21712 no_drap_save_restore field.
21713 * config/i386/i386.c (ix86_save_reg): Use
21714 !cfun->machine->no_drap_save_restore instead of
21715 crtl->stack_realign_needed.
21716 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21717 this function clears frame_pointer_needed. Set
21718 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21719 and DRAP reg is needed.
21720
21721 2014-01-06 Marek Polacek <polacek@redhat.com>
21722
21723 PR c/57773
21724 * doc/implement-c.texi: Mention that other integer types are
21725 permitted as bit-field types in strictly conforming mode.
21726
21727 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21728
21729 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21730 is newly allocated.
21731
21732 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21733
21734 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21735
21736 2014-01-06 Martin Jambor <mjambor@suse.cz>
21737
21738 PR ipa/59008
21739 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21740 to int.
21741 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21742
21743 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21744
21745 PR debug/59350
21746 PR debug/59510
21747 * var-tracking.c (add_stores): Preserve the value of the source even if
21748 we don't record the store.
21749
21750 2014-01-06 Terry Guo <terry.guo@arm.com>
21751
21752 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21753
21754 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21755
21756 PR bootstrap/59541
21757 * config/darwin.c (darwin_function_section): Adjust return values to
21758 correspond to optimisation changes made in r206070.
21759
21760 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21761
21762 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21763 from prefetch_block tune setting.
21764 (nocona_cost): Correct size of prefetch block to 64.
21765
21766 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21767
21768 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21769 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21770 used to save the static chain register in the computation of the offset
21771 from which the FP registers need to be restored.
21772
21773 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21774
21775 PR tree-optimization/59519
21776 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21777 ICE if get_current_def (current_new_name) is already non-NULL, as long
21778 as it is a phi result of some other phi in *new_exit_bb that has
21779 the same argument.
21780
21781 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21782 or vmovdqu* for misaligned_operand.
21783 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21784 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21785 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21786 aligned_mem for AVX512F masked aligned load and store builtins and for
21787 non-temporal moves.
21788
21789 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21790
21791 PR tree-optimization/59651
21792 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21793 Address range for negative step should be added by TYPE_SIZE_UNIT.
21794
21795 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21796
21797 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21798 overlapping registers also for registers other than the stack pointer.
21799
21800 2014-01-03 Marek Polacek <polacek@redhat.com>
21801
21802 PR other/59661
21803 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21804 __builtin_FILE.
21805
21806 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21807
21808 PR target/59625
21809 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21810 asm goto as jump.
21811
21812 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21813 (push splitter): Use <P:MODE_SIZE> instead of
21814 GET_MODE_SIZE (<P:MODE>mode).
21815 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21816 (mov -1, reg peephole2): Likewise.
21817 * config/i386/sse.md (*mov<mode>_internal,
21818 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21819 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21820 *<code><mode>3, *andnot<mode>3<mask_name>,
21821 <mask_codefor><code><mode>3<mask_name>): Likewise.
21822 * config/i386/subst.md (mask_mode512bit_condition,
21823 sd_mask_mode512bit_condition): Likewise.
21824
21825 2014-01-02 Xinliang David Li <davidxl@google.com>
21826
21827 PR tree-optimization/59303
21828 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21829 (dump_predicates): Better output format.
21830 (pred_equal_p): New function.
21831 (is_neq_relop_p): Ditto.
21832 (is_neq_zero_form_p): Ditto.
21833 (pred_expr_equal_p): Ditto.
21834 (pred_neg_p): Ditto.
21835 (simplify_pred): Ditto.
21836 (simplify_preds_2): Ditto.
21837 (simplify_preds_3): Ditto.
21838 (simplify_preds_4): Ditto.
21839 (simplify_preds): Ditto.
21840 (push_pred): Ditto.
21841 (push_to_worklist): Ditto.
21842 (get_pred_info_from_cmp): Ditto.
21843 (is_degenerated_phi): Ditto.
21844 (normalize_one_pred_1): Ditto.
21845 (normalize_one_pred): Ditto.
21846 (normalize_one_pred_chain): Ditto.
21847 (normalize_preds): Ditto.
21848 (normalize_cond_1): Remove function.
21849 (normalize_cond): Ditto.
21850 (is_gcond_subset_of): Ditto.
21851 (is_subset_of_any): Ditto.
21852 (is_or_set_subset_of): Ditto.
21853 (is_and_set_subset_of): Ditto.
21854 (is_norm_cond_subset_of): Ditto.
21855 (pred_chain_length_cmp): Ditto.
21856 (convert_control_dep_chain_into_preds): Type change.
21857 (find_predicates): Ditto.
21858 (find_def_preds): Ditto.
21859 (destroy_predicates_vecs): Ditto.
21860 (find_matching_predicates_in_rest_chains): Ditto.
21861 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21862 (is_pred_expr_subset): Ditto.
21863 (is_pred_chain_subset_of): Ditto.
21864 (is_included_in): Ditto.
21865 (is_superset_of): Ditto.
21866
21867 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21868
21869 Update copyright years.
21870
21871 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21872
21873 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
21874 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
21875 config/arc/arc.md, config/arc/arc.opt,
21876 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
21877 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
21878 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
21879 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
21880 config/linux-protos.h, config/linux.c, config/winnt-c.c,
21881 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
21882 vtable-verify.c, vtable-verify.h: Use the standard form for the
21883 copyright notice.
21884
21885 2014-01-02 Tobias Burnus <burnus@net-b.de>
21886
21887 * gcc.c (process_command): Update copyright notice dates.
21888 * gcov-dump.c: Ditto.
21889 * gcov.c: Ditto.
21890 * doc/cpp.texi: Bump @copying's copyright year.
21891 * doc/cppinternals.texi: Ditto.
21892 * doc/gcc.texi: Ditto.
21893 * doc/gccint.texi: Ditto.
21894 * doc/gcov.texi: Ditto.
21895 * doc/install.texi: Ditto.
21896 * doc/invoke.texi: Ditto.
21897
21898 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21899
21900 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
21901
21902 2014-01-01 Jakub Jelinek <jakub@redhat.com>
21903
21904 * config/i386/sse.md (*mov<mode>_internal): Guard
21905 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
21906
21907 PR rtl-optimization/59647
21908 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
21909 new_rtx into UNSIGNED_FLOAT rtxes.
21910 \f
21911 Copyright (C) 2014 Free Software Foundation, Inc.
21912
21913 Copying and distribution of this file, with or without modification,
21914 are permitted in any medium without royalty provided the copyright
21915 notice and this notice are preserved.