1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5 "var_location" hook from rtx to rtx_insn *.
6 (debug_nothing_rtx): Delete in favor of...
7 (debug_nothing_rtx_code_label): New prototype.
8 (debug_nothing_rtx_rtx): Delete unused prototype.
9 (debug_nothing_rtx_insn): New prototype.
11 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
12 invoking debug_hooks->var_location (in two places, one in a NOTE
13 case of a switch statement, the other guarded by a CALL_P
14 conditional. Add checked cast to rtx_code_label * when invoking
15 debug_hooks->label (within CODE_LABEL case of switch statement).
17 * dbxout.c (dbx_debug_hooks): Update "label" hook from
18 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
19 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
20 (xcoff_debug_hooks): Likewise.
21 * debug.c (do_nothing_debug_hooks): Likewise.
22 (debug_nothing_rtx): Delete in favor of...
23 (debug_nothing_rtx_insn): New function.
24 (debug_nothing_rtx_rtx): Delete unused function.
25 (debug_nothing_rtx_code_label): New function.
26 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
27 debug_nothing_rtx to debug_nothing_rtx_code_label.
28 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
30 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
31 debug_nothing_rtx to debug_nothing_rtx_insn.
32 (sdbout_label): Strengthen param "insn" from rtx to
34 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
35 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
36 "var_location" hook from debug_nothing_rtx to
37 debug_nothing_rtx_insn.
39 2014-08-21 David Malcolm <dmalcolm@redhat.com>
41 * recog.h (insn_output_fn): Update this function typedef to match
42 the changes below to the generated output functions, strengthening
43 the 2nd param from rtx to rtx_insn *.
45 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
46 insn when invoking an output function, to match the new signature
47 of insn_output_fn with a stronger second param.
49 * genconditions.c (write_header): In the generated code for
50 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
51 to match the other changes in this patch.
53 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
54 the generated "gen_" functions from rtx to rtx_insn * within their
57 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
58 the subfunctions within the generated "recog_", "split", "peephole2"
59 function trees from rtx to rtx_insn *. For now, the top-level
60 generated functions ("recog", "split", "peephole2") continue to
61 take a plain rtx for "insn", to avoid introducing dependencies on
62 other patches. Rename this 2nd param from "insn" to
63 "uncast_insn", and reintroduce "insn" as a local variable of type
64 rtx_insn *, initialized at the top of the generated function with
65 a checked cast on "uncast_insn".
66 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
67 the generated "gen_" functions from rtx to rtx_insn * within their
70 * genoutput.c (process_template): Strengthen the 2nd param within
71 the generated "output_" functions "insn" from rtx to rtx_insn *.
73 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
75 * tree-profile.c (tree_profiling): Skip external functions
76 when doing coverage instrumentation.
77 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
79 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
81 * config/rs6000/altivec.h (vec_cpsgn): New #define.
82 (vec_mergee): Likewise.
83 (vec_mergeo): Likewise.
84 (vec_cntlz): Likewise.
85 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
86 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
87 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
89 * doc/extend.texi: Document various forms of vec_cpsgn,
90 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
91 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
92 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
93 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
94 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
96 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
98 * config/rs6000/rs6000.c (context.h): New include.
99 (tree-pass.h): Likewise.
100 (make_pass_analyze_swaps): New decl.
101 (rs6000_option_override): Register pass_analyze_swaps.
102 (swap_web_entry): New subsclass of web_entry_base (df.h).
103 (special_handling_values): New enum.
104 (union_defs): New function.
105 (union_uses): Likewise.
106 (insn_is_load_p): Likewise.
107 (insn_is_store_p): Likewise.
108 (insn_is_swap_p): Likewise.
109 (rtx_is_swappable_p): Likewise.
110 (insn_is_swappable_p): Likewise.
111 (chain_purpose): New enum.
112 (chain_contains_only_swaps): New function.
113 (mark_swaps_for_removal): Likewise.
114 (swap_const_vector_halves): Likewise.
115 (adjust_subreg_index): Likewise.
116 (permute_load): Likewise.
117 (permute_store): Likewise.
118 (handle_special_swappables): Likewise.
119 (replace_swap_with_copy): Likewise.
120 (dump_swap_insn_table): Likewise.
121 (rs6000_analyze_swaps): Likewise.
122 (pass_data_analyze_swaps): New pass_data.
123 (pass_analyze_swaps): New rtl_opt_pass.
124 (make_pass_analyze_swaps): New function.
125 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
127 2014-08-21 David Malcolm <dmalcolm@redhat.com>
129 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
130 type from rtx to rtx_insn *.
131 (create_copy_of_insn_rtx): Likewise.
132 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
133 (create_copy_of_insn_rtx): Likewise, also for local "res".
135 2014-08-21 David Malcolm <dmalcolm@redhat.com>
137 * rtl.h (find_first_parameter_load): Strengthen return type from
139 * rtlanal.c (find_first_parameter_load): Strengthen return type
140 from rtx to rtx_insn *. Add checked cast for now, to postpone
141 strengthening the params.
143 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
146 * diagnostic.c: Set default caret.
147 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
149 * diagnostic.h (struct diagnostic_context):
151 2014-08-21 David Malcolm <dmalcolm@redhat.com>
153 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
154 (sel_bb_head): Strengthen return type insn_t (currently just an
156 (sel_bb_end): Likewise.
158 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
159 (sel_bb_head): Strengthen return type and local "head" from
160 insn_t (currently just an rtx) to rtx_insn *.
161 (sel_bb_end): Likewise for return type.
162 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
165 2014-08-21 David Malcolm <dmalcolm@redhat.com>
167 * basic-block.h (get_last_bb_insn): Strengthen return type from
169 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
172 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
175 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
177 (diagnostic_report_diagnostic): ... from here.
178 * toplev.c (general_init): Move code to c-family.
180 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
182 * df.h (web_entry_base): Replace existing struct web_entry with a
183 new class web_entry_base with only the predecessor member.
184 (unionfind_root): Remove declaration and move to class member.
185 (unionfind_union): Remove declaration and move to friend
187 (union_defs): Remove declaration.
188 * web.c (web_entry_base::unionfind_root): Modify to be member
189 function and adjust accessors.
190 (unionfind_union): Modify to be friend function and adjust
192 (web_entry): New subclass of web_entry_base containing the reg
194 (union_match_dups): Modify for struct -> class changes.
195 (union_defs): Likewise.
196 (entry_register): Likewise.
197 (pass_web::execute): Likewise.
199 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
201 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
202 builtin define __VEC_ELEMENT_REG_ORDER__.
204 2014-08-20 Martin Jambor <mjambor@suse.cz>
205 Wei Mi <wmi@google.com>
209 * tree-ssa-operands.c (update_stmt_operands): Remove
210 MODIFIED_NORETURN_CALLS.
211 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
212 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
213 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
214 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
215 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
216 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
217 (gimple_call_set_ctrl_altering): New func.
218 (gimple_call_ctrl_altering_p): Ditto.
219 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
220 (make_blocks): Use gimple_call_initialize_ctrl_altering.
221 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
222 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
223 remove MODIFIED_NORETURN_CALLS.
225 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
227 * coverage.c (coverage_compute_profile_id): Return non-0;
228 also handle symbols with unique name.
229 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
231 2014-08-20 Steve Ellcey <sellcey@mips.com>
234 * doc/sourcebuild.texi (non_strict_align): New.
236 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
238 * cgraphunit.c (ipa_passes, compile): Reshedule
239 symtab_remove_unreachable_nodes passes; update comments.
240 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
241 TODO_remove_functions before the pass; the functions ought to be
243 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
244 TODO_remove_functions.
245 * passes.c (pass_data_early_local_passes): Do not schedule function
247 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
249 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
252 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
253 before setting the option.
254 * diagnostic.c (diagnostic_classify_diagnostic): Record
257 2014-08-20 Richard Biener <rguenther@suse.de>
260 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
261 to build uint{16,32,64}_type_node.
263 2014-08-20 Terry Guo <terry.guo@arm.com>
265 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
266 with immediate_operand.
268 2014-08-20 David Malcolm <dmalcolm@redhat.com>
270 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
271 "insn" from an as_a to a safe_as_a, for the case when "insn" is
274 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
276 PR preprocessor/51303
277 * incpath.c (remove_duplicates): Use cpp_warning.
279 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
283 * doc/options.texi (CPP): Document it.
284 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
285 * optc-gen.awk: Handle CPP.
286 * opth-gen.awk: Likewise.
288 2014-08-19 David Malcolm <dmalcolm@redhat.com>
290 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
292 (duplicate_insn_chain): Likewise.
293 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
294 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
295 checked cast for now (until we can strengthen the params in the
297 (duplicate_insn_chain): Likewise.
299 2014-08-19 David Malcolm <dmalcolm@redhat.com>
301 * rtl.h (next_cc0_user): Strengthen return type from rtx to
303 (prev_cc0_setter): Likewise.
305 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
306 rtx_insn *, adding checked casts for now as necessary.
307 (prev_cc0_setter): Likewise.
309 2014-08-19 David Malcolm <dmalcolm@redhat.com>
311 * expr.h (emit_move_insn): Strengthen return type from rtx to
313 (emit_move_insn_1): Likewise.
314 (emit_move_complex_push): Likewise.
315 (emit_move_complex_parts): Likewise.
317 * expr.c (emit_move_via_integer): Strengthen return type from rtx
318 to rtx_insn *. Replace use of NULL_RTX with NULL when working
320 (emit_move_complex_push): Strengthen return type from rtx to
322 (emit_move_complex): Likewise, also for local "ret".
323 (emit_move_ccmode): Likewise.
324 (emit_move_multi_word): Likewise for return type and locals
326 (emit_move_insn_1): Likewise for return type and locals "result",
328 (emit_move_insn): Likewise for return type and local "last_insn".
329 (compress_float_constant): Likewise.
331 2014-08-19 David Malcolm <dmalcolm@redhat.com>
333 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
334 from rtx to rtx_insn *.
336 * rtl.h (emit_insn_before): Likewise.
337 (emit_insn_before_noloc): Likewise.
338 (emit_insn_before_setloc): Likewise.
339 (emit_jump_insn_before): Likewise.
340 (emit_jump_insn_before_noloc): Likewise.
341 (emit_jump_insn_before_setloc): Likewise.
342 (emit_call_insn_before): Likewise.
343 (emit_call_insn_before_noloc): Likewise.
344 (emit_call_insn_before_setloc): Likewise.
345 (emit_debug_insn_before): Likewise.
346 (emit_debug_insn_before_noloc): Likewise.
347 (emit_debug_insn_before_setloc): Likewise.
348 (emit_label_before): Likewise.
349 (emit_insn_after): Likewise.
350 (emit_insn_after_noloc): Likewise.
351 (emit_insn_after_setloc): Likewise.
352 (emit_jump_insn_after): Likewise.
353 (emit_jump_insn_after_noloc): Likewise.
354 (emit_jump_insn_after_setloc): Likewise.
355 (emit_call_insn_after): Likewise.
356 (emit_call_insn_after_noloc): Likewise.
357 (emit_call_insn_after_setloc): Likewise.
358 (emit_debug_insn_after): Likewise.
359 (emit_debug_insn_after_noloc): Likewise.
360 (emit_debug_insn_after_setloc): Likewise.
361 (emit_label_after): Likewise.
362 (emit_insn): Likewise.
363 (emit_debug_insn): Likewise.
364 (emit_jump_insn): Likewise.
365 (emit_call_insn): Likewise.
366 (emit_label): Likewise.
367 (gen_clobber): Likewise.
368 (emit_clobber): Likewise.
370 (emit_use): Likewise.
373 (emit_barrier_before): Strengthen return type from rtx to
375 (emit_barrier_after): Likewise.
376 (emit_barrier): Likewise.
378 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
379 from rtx to rtx_insn *. Add checked casts for now when converting
380 "last" from rtx to rtx_insn *.
381 (emit_insn_before_noloc): Likewise for return type.
382 (emit_jump_insn_before_noloc): Likewise.
383 (emit_call_insn_before_noloc): Likewise.
384 (emit_debug_insn_before_noloc): Likewise.
385 (emit_barrier_before): Strengthen return type and local "insn"
386 from rtx to rtx_barrier *.
387 (emit_label_before): Strengthen return type from rtx to
388 rtx_insn *. Add checked cast for now when returning param
389 (emit_pattern_after_noloc): Strengthen return type from rtx to
390 rtx_insn *. Add checked casts for now when converting "last" from
392 (emit_insn_after_noloc): Strengthen return type from rtx to
394 (emit_jump_insn_after_noloc): Likewise.
395 (emit_call_insn_after_noloc): Likewise.
396 (emit_debug_insn_after_noloc): Likewise.
397 (emit_barrier_after): Strengthen return type from rtx to
399 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
400 Add checked cast for now when converting "label" from rtx to
402 (emit_pattern_after_setloc): Strengthen return type from rtx to
403 rtx_insn *. Add checked casts for now when converting "last" from
405 (emit_pattern_after): Strengthen return type from rtx to
407 (emit_insn_after_setloc): Likewise.
408 (emit_insn_after): Likewise.
409 (emit_jump_insn_after_setloc): Likewise.
410 (emit_jump_insn_after): Likewise.
411 (emit_call_insn_after_setloc): Likewise.
412 (emit_call_insn_after): Likewise.
413 (emit_debug_insn_after_setloc): Likewise.
414 (emit_debug_insn_after): Likewise.
415 (emit_pattern_before_setloc): Likewise. Add checked casts for now
416 when converting "last" from rtx to rtx_insn *.
417 (emit_pattern_before): Strengthen return type from rtx to
419 (emit_insn_before_setloc): Likewise.
420 (emit_insn_before): Likewise.
421 (emit_jump_insn_before_setloc): Likewise.
422 (emit_jump_insn_before): Likewise.
423 (emit_call_insn_before_setloc): Likewise.
424 (emit_call_insn_before): Likewise.
425 (emit_debug_insn_before_setloc): Likewise.
426 (emit_debug_insn_before): Likewise.
427 (emit_insn): Strengthen return type and locals "last", "insn",
428 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
429 within cases where we know we have an insn.
430 (emit_debug_insn): Likewise.
431 (emit_jump_insn): Likewise.
432 (emit_call_insn): Strengthen return type and local "insn" from rtx
434 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
435 a checked cast to rtx_insn * for now on "label".
436 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
437 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
438 (emit_use): Likewise.
439 (gen_use): Likewise, also for local "seq".
440 (emit): Likewise for return type and local "insn".
441 (rtx_insn): Likewise for return type and local "new_rtx".
443 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
444 from rtx to rtx_barrier *.
446 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
447 changed return type from rtx to rtx_insn *, we must update
448 "emit_fn" type, and this in turn means updating...
449 (frame_insn): ...this. Strengthen return type from rtx to
450 rtx_insn *. Introduce a new local "insn" of the appropriate type.
452 2014-08-19 David Malcolm <dmalcolm@redhat.com>
454 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
455 rtx to rtx_jump_table_data *. Also for local.
456 * rtl.h (emit_jump_table_data): Likewise.
458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
460 * basic-block.h (create_basic_block_structure): Strengthen third
461 param "bb_note" from rtx to rtx_note *.
462 * rtl.h (emit_note_before): Strengthen return type from rtx to
464 (emit_note_after): Likewise.
465 (emit_note): Likewise.
466 (emit_note_copy): Likewise. Also, strengthen param similarly.
467 * function.h (struct rtl_data): Strengthen field
468 "x_stack_check_probe_note" from rtx to rtx_note *.
470 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
471 from rtx to rtx_note *.
472 * cfgrtl.c (create_basic_block_structure): Strengthen third param
473 "bb_note" from rtx to rtx_note *.
474 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
475 when calling emit_note_copy.
476 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
478 (emit_note_after): Likewise.
479 (emit_note_before): Likewise.
480 (emit_note_copy): Likewise. Also, strengthen param similarly.
481 (emit_note): Likewise.
482 * except.c (emit_note_eh_region_end): Likewise for return type.
483 Strengthen local "next" from rtx to rtx_insn *.
484 (convert_to_eh_region_ranges): Strengthen local "note"
485 from rtx to rtx_note *.
486 * final.c (change_scope): Likewise.
487 (reemit_insn_block_notes): Likewise, for both locals named "note".
488 Also, strengthen local "insn" from rtx to rtx_insn *.
489 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
491 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
492 strengthen local "seq" from rtx to rtx_insn *.
493 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
495 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
497 (get_bb_note_from_pool): Strengthen return type from rtx to
499 (sel_create_basic_block): Strengthen local "new_bb_note" from
500 insn_t to rtx_note *.
501 * var-tracking.c (emit_note_insn_var_location): Strengthen local
502 "note" from rtx to rtx_note *.
503 (emit_notes_in_bb): Likewise.
505 2014-08-19 David Malcolm <dmalcolm@redhat.com>
507 * function.h (struct rtl_data): Strengthen field
508 "x_parm_birth_insn" from rtx to rtx_insn *.
509 * function.c (struct assign_parm_data_all): Strengthen fields
510 "first_conversion_insn" and "last_conversion_insn" from rtx to
513 2014-08-19 David Malcolm <dmalcolm@redhat.com>
515 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
516 to rtx_insn *; also for local "var_end_seq".
517 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
518 (maybe_cleanup_end_of_block): Likewise for param "last" and local
520 (expand_gimple_cond): Likewise for locals "last2" and "last".
521 (mark_transaction_restart_calls): Likewise for local "insn".
522 (expand_gimple_stmt): Likewise for return type and locals "last"
524 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
525 (avoid_complex_debug_insns): Likewise for param "insn".
526 (expand_debug_locations): Likewise for locals "insn", "last",
527 "prev_insn" and "insn2".
528 (expand_gimple_basic_block): Likewise for local "last".
529 (construct_exit_block): Likewise for locals "head", "end",
531 (pass_expand::execute): Likewise for locals "var_seq",
532 "var_ret_seq", "next".
534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
536 * asan.h (asan_emit_stack_protection): Strengthen return type from
538 * asan.c (asan_emit_stack_protection): Likewise. Add local
539 "insns" to hold the return value.
541 2014-08-19 David Malcolm <dmalcolm@redhat.com>
543 * basic-block.h (bb_note): Strengthen return type from rtx to
545 * sched-int.h (bb_note): Likewise.
546 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
548 2014-08-19 David Malcolm <dmalcolm@redhat.com>
550 * rtl.h (make_insn_raw): Strengthen return type from rtx to
553 * emit-rtl.c (make_insn_raw): Strengthen return type and local
554 "insn" from rtx to rtx_insn *.
555 (make_debug_insn_raw): Strengthen return type from rtx to
556 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
557 (make_jump_insn_raw): Strengthen return type from rtx to
558 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
559 (make_call_insn_raw): Strengthen return type from rtx to
560 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
561 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
562 callback from rtx to rtx_insn *; likewise for local "insn" and
563 "next", adding a checked cast to rtx_insn in the relevant cases of
564 the switch statement.
565 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
566 callback from rtx to rtx_insn *.
567 (emit_pattern_after_setloc): Likewise.
568 (emit_pattern_after): Likewise.
569 (emit_pattern_before_setloc): Likewise.
570 (emit_pattern_before): Likewise.
572 2014-08-19 David Malcolm <dmalcolm@redhat.com>
574 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
576 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
577 accepting an rtx_insn *.
578 (last_call_insn): Strengthen return type from rtx to
581 2014-08-19 David Malcolm <dmalcolm@redhat.com>
583 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
584 "insns" from rtx to rtx_insn *.
585 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
586 locals "insn" and "prev".
588 2014-08-19 David Malcolm <dmalcolm@redhat.com>
590 * rtl.h (tablejump_p): Strengthen third param from rtx * to
591 rtx_jump_table_data **.
593 * cfgbuild.c (make_edges): Introduce local "table", using it in
594 place of "tmp" for jump table data.
595 (find_bb_boundaries): Strengthen local "table" from rtx to
596 rtx_jump_table_data *.
597 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
598 (outgoing_edges_match): Likewise for locals "table1" and "table2".
599 (try_crossjump_to_edge): Likewise.
600 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
602 (patch_jump_insn): Introduce local "table", using it in place of
603 "tmp" for jump table data.
604 (force_nonfallthru_and_redirect): Introduce local "table", so that
605 call to tablejump_p can receive an rtx_jump_table_data **. Update
606 logic around the call to overwrite "note" appropriately if
607 tablejump_p returns non-zero.
608 (get_last_bb_insn): Introduce local "table", using it in place of
609 "tmp" for jump table data.
610 * dwarf2cfi.c (create_trace_edges): Likewise.
612 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
613 from rtx to rtx_jump_table_data *.
614 (create_fix_barrier): Strengthen local "tmp" from rtx to
615 rtx_jump_table_data *.
616 (arm_reorg): Likewise for local "table".
618 * config/s390/s390.c (s390_chunkify_start): Likewise.
620 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
622 * jump.c (delete_related_insns): Strengthen local "lab_next" from
623 rtx to rtx_jump_table_data *.
625 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
626 rtx_jump_table_data **. Add a checked cast when writing through
627 the pointer: we know there that local "table" is non-NULL and that
628 JUMP_TABLE_DATA_P (table) holds.
629 (label_is_jump_target_p): Introduce local "table", using it in
630 place of "tmp" for jump table data.
632 2014-08-19 Marek Polacek <polacek@redhat.com>
635 * doc/invoke.texi: Document -Wbool-compare.
637 2014-08-19 David Malcolm <dmalcolm@redhat.com>
639 * rtl.h (entry_of_function): Strengthen return type from rtx to
641 * cfgrtl.c (entry_of_function): Likewise.
643 2014-08-19 David Malcolm <dmalcolm@redhat.com>
645 * emit-rtl.h (get_insns): Strengthen return type from rtx to
646 rtx_insn *, adding a checked cast for now.
647 (get_last_insn): Likewise.
649 2014-08-19 David Malcolm <dmalcolm@redhat.com>
651 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
654 * emit-rtl.c (gen_label_rtx): Likewise.
656 2014-08-19 David Malcolm <dmalcolm@redhat.com>
658 * rtl.h (previous_insn): Strengthen return type from rtx to
660 (next_insn): Likewise.
661 (prev_nonnote_insn): Likewise.
662 (prev_nonnote_insn_bb): Likewise.
663 (next_nonnote_insn): Likewise.
664 (next_nonnote_insn_bb): Likewise.
665 (prev_nondebug_insn): Likewise.
666 (next_nondebug_insn): Likewise.
667 (prev_nonnote_nondebug_insn): Likewise.
668 (next_nonnote_nondebug_insn): Likewise.
669 (prev_real_insn): Likewise.
670 (next_real_insn): Likewise.
671 (prev_active_insn): Likewise.
672 (next_active_insn): Likewise.
674 * emit-rtl.c (next_insn): Strengthen return type from rtx to
675 rtx_insn *, adding a checked cast.
676 (previous_insn): Likewise.
677 (next_nonnote_insn): Likewise.
678 (next_nonnote_insn_bb): Likewise.
679 (prev_nonnote_insn): Likewise.
680 (prev_nonnote_insn_bb): Likewise.
681 (next_nondebug_insn): Likewise.
682 (prev_nondebug_insn): Likewise.
683 (next_nonnote_nondebug_insn): Likewise.
684 (prev_nonnote_nondebug_insn): Likewise.
685 (next_real_insn): Likewise.
686 (prev_real_insn): Likewise.
687 (next_active_insn): Likewise.
688 (prev_active_insn): Likewise.
690 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
691 param "stepfunc" so that it returns an rtx_insn * rather than an
692 rtx, to track the change to prev_nonnote_insn_bb, which is the
693 only function this is called with.
694 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
696 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
698 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
701 2014-08-19 David Malcolm <dmalcolm@redhat.com>
703 * coretypes.h (class rtx_debug_insn): Add forward declaration.
704 (class rtx_nonjump_insn): Likewise.
705 (class rtx_jump_insn): Likewise.
706 (class rtx_call_insn): Likewise.
707 (class rtx_jump_table_data): Likewise.
708 (class rtx_barrier): Likewise.
709 (class rtx_code_label): Likewise.
710 (class rtx_note): Likewise.
712 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
713 adding the invariant DEBUG_INSN_P (X).
714 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
715 the invariant NONJUMP_INSN_P (X).
716 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
717 the invariant JUMP_P (X).
718 (class rtx_call_insn): New, a subclass of rtx_insn, adding
719 the invariant CALL_P (X).
720 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
721 invariant JUMP_TABLE_DATA_P (X).
722 (class rtx_barrier): New, a subclass of rtx_insn, adding the
723 invariant BARRIER_P (X).
724 (class rtx_code_label): New, a subclass of rtx_insn, adding
725 the invariant LABEL_P (X).
726 (class rtx_note): New, a subclass of rtx_insn, adding
727 the invariant NOTE_P(X).
728 (is_a_helper <rtx_debug_insn *>::test): New.
729 (is_a_helper <rtx_nonjump_insn *>::test): New.
730 (is_a_helper <rtx_jump_insn *>::test): New.
731 (is_a_helper <rtx_call_insn *>::test): New.
732 (is_a_helper <rtx_jump_table_data *>::test): New functions,
733 overloaded for both rtx and rtx_insn *.
734 (is_a_helper <rtx_barrier *>::test): New.
735 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
736 for both rtx and rtx_insn *.
737 (is_a_helper <rtx_note *>::test): New.
739 2014-08-19 Marek Polacek <polacek@redhat.com>
741 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
742 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
743 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
744 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
746 2014-08-19 David Malcolm <dmalcolm@redhat.com>
748 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
749 rtx_insn *. To help with transition, for now, convert from an
750 access macro into a pair of functions: BND_TO, returning an
752 (SET_BND_TO): New function, for use where BND_TO is used as an
755 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
757 (BND_TO): New function, adding a checked cast.
758 (SET_BND_TO): New function.
760 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
762 (compute_av_set_on_boundaries): Likewise.
764 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
766 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
767 destination if it is used in source.
768 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
769 (*popcount<mode>2_falsedep_1): Likewise.
771 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
774 * configure.ac: Set install_gold_as_default to no first.
775 * configure: Regenerated.
777 2014-08-19 David Malcolm <dmalcolm@redhat.com>
779 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
780 "note_list" field will eventually be an rtx_insn *. To help with
781 transition, for now, convert from an access macro into a pair of
782 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
783 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
786 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
787 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
789 * sel-sched-ir.c (init_bb): Likewise.
790 (sel_restore_notes): Likewise.
791 (move_bb_info): Likewise.
792 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
793 (SET_BB_NOTE_LIST): New function.
795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
797 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
798 field will eventually be an rtx_insn *. To help with transition,
799 for now, convert from an access macro into a pair of functions:
800 VINSN_INSN_RTX, returning an rtx_insn *, and...
801 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
802 is used as an lvalue.
804 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
805 SET_VINSN_INSN_RTX where it's used as an lvalue.
806 (VINSN_INSN_RTX): New function.
807 (SET_VINSN_INSN_RTX): New function.
809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
811 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
812 eventually be rtx_insn *, but to help with transition, for now,
813 convert from an access macro into a pair of functions: DEP_PRO
814 returning an rtx_insn * and...
815 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
816 lvalue, returning an rtx&.
817 (DEP_CON): Analogous changes to DEP_PRO above.
818 (SET_DEP_CON): Likewise.
820 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
821 an lvalue to SET_DEP_CON.
822 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
823 (sd_copy_back_deps): Likewise for DEP_CON.
824 (DEP_PRO): New function, adding a checked cast for now.
826 (SET_DEP_PRO): New function.
827 (SET_DEP_CON): Likewise.
829 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
831 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
832 (extra_options): Add i386/cygwin.opt.
833 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
834 (CPP_SPEC): Accept -pthread.
836 (GOMP_SELF_SPECS): Update comment.
837 * config/i386/cygwin.opt: New file for -pthread flag.
839 2014-08-19 David Malcolm <dmalcolm@redhat.com>
841 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
842 * df.h (DF_REF_INSN): Convert from a macro to a function, so
843 that we can return an rtx_insn *.
845 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
847 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
848 when building executables, not DLLs. Add --large-address-aware
849 under the same conditions.
850 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
851 when building executables, not DLLs. Add --large-address-aware
852 under the same conditions when using -m32.
854 * config/i386/cygwin-stdint.h: Throughout, make type
855 definitions dependent on target architecture, not host.
857 2014-08-19 David Malcolm <dmalcolm@redhat.com>
859 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
860 the return type from rtx to rtx_insn *, which will enable various
861 conversions in followup patches. For now this is is done by a
863 (NEXT_INSN): Likewise.
864 (SET_PREV_INSN): Convert to an inline function. This is intended
865 for use as an lvalue, and so returns an rtx& to allow in-place
867 (SET_NEXT_INSN): Likewise.
869 2014-07-08 Mark Wielaard <mjw@redhat.com>
872 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
874 2014-08-19 Marek Polacek <polacek@redhat.com>
877 * cgraphunit.c (handle_alias_pairs): Fix condition.
879 2014-08-19 Richard Biener <rguenther@suse.de>
881 * gimple-fold.c (fold_gimple_assign): Properly build a
882 null-pointer constant when devirtualizing addresses.
884 2014-07-07 Mark Wielaard <mjw@redhat.com>
886 * dwarf2out.c (decl_quals): New function.
887 (modified_type_die): Take one cv_quals argument instead of two,
888 one for const and one for volatile.
889 (add_type_attribute): Likewise.
890 (generic_parameter_die): Call add_type_attribute with one modifier
892 (base_type_for_mode): Likewise.
893 (add_bounds_info): Likewise.
894 (add_subscript_info): Likewise.
895 (gen_array_type_die): Likewise.
896 (gen_descr_array_type_die): Likewise.
897 (gen_entry_point_die): Likewise.
898 (gen_enumeration_type_die): Likewise.
899 (gen_formal_parameter_die): Likewise.
900 (gen_subprogram_die): Likewise.
901 (gen_variable_die): Likewise.
902 (gen_const_die): Likewise.
903 (gen_field_die): Likewise.
904 (gen_pointer_type_die): Likewise.
905 (gen_reference_type_die): Likewise.
906 (gen_ptr_to_mbr_type_die): Likewise.
907 (gen_inheritance_die): Likewise.
908 (gen_subroutine_type_die): Likewise.
909 (gen_typedef_die): Likewise.
910 (force_type_die): Likewise.
912 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
914 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
916 * configure: Regenerate.
918 2014-08-19 Richard Biener <rguenther@suse.de>
920 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
921 DECL_EXTERNALs in BLOCKs as non-references.
922 * tree-streamer-out.c (streamer_write_chain): Likewise.
924 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
926 Anna Tikhonova <anna.tikhonova@intel.com>
927 Ilya Tocar <ilya.tocar@intel.com>
928 Andrey Turetskiy <andrey.turetskiy@intel.com>
929 Ilya Verbin <ilya.verbin@intel.com>
930 Kirill Yukhin <kirill.yukhin@intel.com>
931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
934 (define_mode_iterator VI48_AVX512F): Delete.
935 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
936 (define_mode_iterator VI2_AVX512VL): Ditto.
937 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
940 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
942 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
943 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
944 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
945 with VI48_AVX512F_AVX512VL): New.
946 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
947 with VI2_AVX512VL): Ditto.
949 2014-08-19 Marek Polacek <polacek@redhat.com>
951 * doc/invoke.texi: Document -Wc99-c11-compat.
953 2014-08-19 David Malcolm <dmalcolm@redhat.com>
955 * rtl.h (PREV_INSN): Split macro in two: the existing one,
957 (SET_PREV_INSN): New macro, for use as an lvalue.
958 (NEXT_INSN, SET_NEXT_INSN): Likewise.
960 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
961 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
962 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
963 (fixup_abnormal_edges): Likewise.
964 (unlink_insn_chain): Likewise.
965 (fixup_reorder_chain): Likewise.
966 (cfg_layout_delete_block): Likewise.
967 (cfg_layout_merge_blocks): Likewise.
968 * combine.c (update_cfg_for_uncondjump): Likewise.
969 * emit-rtl.c (link_insn_into_chain): Likewise.
970 (remove_insn): Likewise.
971 (delete_insns_since): Likewise.
972 (reorder_insns_nobb): Likewise.
973 (emit_insn_after_1): Likewise.
974 * final.c (rest_of_clean_state): Likewise.
975 (final_scan_insn): Likewise.
976 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
977 * haifa-sched.c (concat_note_lists): Likewise.
978 (remove_notes): Likewise.
979 (restore_other_notes): Likewise.
980 (move_insn): Likewise.
981 (unlink_bb_notes): Likewise.
982 (restore_bb_notes): Likewise.
983 * jump.c (delete_for_peephole): Likewise.
984 * optabs.c (emit_libcall_block_1): Likewise.
985 * reorg.c (emit_delay_sequence): Likewise.
986 (fill_simple_delay_slots): Likewise.
987 * sel-sched-ir.c (sel_move_insn): Likewise.
988 (sel_remove_insn): Likewise.
989 (get_bb_note_from_pool): Likewise.
990 * sel-sched.c (move_nop_to_previous_block): Likewise.
992 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
993 * config/c6x/c6x.c (gen_one_bundle): Likewise.
994 (c6x_gen_bundles): Likewise.
995 (hwloop_optimize): Likewise.
996 * config/frv/frv.c (frv_function_prologue): Likewise.
997 (frv_register_nop): Likewise.
998 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
999 (ia64_reorg): Likewise.
1000 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1001 (mep_make_bundle): Likewise.
1002 (mep_bundle_insns): Likewise.
1003 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1004 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1005 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1007 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1009 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1010 return type from rtx to rtx_insn *.
1012 (BB_HEADER): Likewise.
1013 (BB_FOOTER): Likewise.
1014 (SET_BB_HEAD): Convert to a function.
1015 (SET_BB_END): Likewise.
1016 (SET_BB_HEADER): Likewise.
1017 (SET_BB_FOOTER): Likewise.
1019 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1020 Strengthen the return type from rtx to rtx_insn *. For now, this
1021 is done by adding a checked cast, but this will eventually
1022 become a field lookup.
1024 (BB_HEADER): Likewise.
1025 (BB_FOOTER): Likewise.
1026 (SET_BB_HEAD): New function, from macro of same name. This is
1027 intended for use as an lvalue, and so returns an rtx& to allow
1028 in-place modification.
1029 (SET_BB_END): Likewise.
1030 (SET_BB_HEADER): Likewise.
1031 (SET_BB_FOOTER): Likewise.
1033 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1035 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1037 (SET_BB_HEAD): New macro, for use as a lvalue.
1038 (BB_END, SET_BB_END): Likewise.
1039 (BB_HEADER, SET_BB_HEADER): Likewise.
1040 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1042 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1043 of BB_* macros into SET_BB_* macros.
1044 (fix_crossing_unconditional_branches): Likewise.
1045 * caller-save.c (save_call_clobbered_regs): Likewise.
1046 (insert_one_insn): Likewise.
1047 * cfgbuild.c (find_bb_boundaries): Likewise.
1048 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1049 (outgoing_edges_match): Likewise.
1050 (try_optimize_cfg): Likewise.
1051 * cfgexpand.c (expand_gimple_cond): Likewise.
1052 (expand_gimple_tailcall): Likewise.
1053 (expand_gimple_basic_block): Likewise.
1054 (construct_exit_block): Likewise.
1055 * cfgrtl.c (delete_insn): Likewise.
1056 (create_basic_block_structure): Likewise.
1057 (rtl_delete_block): Likewise.
1058 (rtl_split_block): Likewise.
1059 (emit_nop_for_unique_locus_between): Likewise.
1060 (rtl_merge_blocks): Likewise.
1061 (block_label): Likewise.
1062 (try_redirect_by_replacing_jump): Likewise.
1063 (emit_barrier_after_bb): Likewise.
1064 (fixup_abnormal_edges): Likewise.
1065 (record_effective_endpoints): Likewise.
1066 (relink_block_chain): Likewise.
1067 (fixup_reorder_chain): Likewise.
1068 (fixup_fallthru_exit_predecessor): Likewise.
1069 (cfg_layout_duplicate_bb): Likewise.
1070 (cfg_layout_split_block): Likewise.
1071 (cfg_layout_delete_block): Likewise.
1072 (cfg_layout_merge_blocks): Likewise.
1073 * combine.c (update_cfg_for_uncondjump): Likewise.
1074 * emit-rtl.c (add_insn_after): Likewise.
1075 (remove_insn): Likewise.
1076 (reorder_insns): Likewise.
1077 (emit_insn_after_1): Likewise.
1078 * haifa-sched.c (get_ebb_head_tail): Likewise.
1079 (restore_other_notes): Likewise.
1080 (move_insn): Likewise.
1081 (sched_extend_bb): Likewise.
1082 (fix_jump_move): Likewise.
1083 * ifcvt.c (noce_process_if_block): Likewise.
1084 (dead_or_predicable): Likewise.
1085 * ira.c (update_equiv_regs): Likewise.
1086 * reg-stack.c (change_stack): Likewise.
1087 * sel-sched-ir.c (sel_move_insn): Likewise.
1088 * sel-sched.c (move_nop_to_previous_block): Likewise.
1090 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1091 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1093 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1095 * rtl.h (for_each_rtx_in_insn): New function.
1096 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1098 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1100 * coretypes.h (class rtx_insn): Add forward declaration.
1102 * rtl.h: Include is-a.h.
1103 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1104 workaround to ensure gengtype knows inheritance is occurring,
1105 whilst continuing to use the pre-existing special-casing for
1107 (class rtx_insn): New subclass of rtx_def, adding the
1108 invariant that we're dealing with something we can sanely use
1109 INSN_UID, NEXT_INSN, PREV_INSN on.
1110 (is_a_helper <rtx_insn *>::test): New.
1111 (is_a_helper <const rtx_insn *>::test): New.
1113 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1115 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1117 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1119 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1122 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1124 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1125 to BUILT_IN_UNREACHABLE.
1127 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1130 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1132 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1133 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1134 (ffs<mode>2): Do not expand with tzcnt for
1135 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1136 (ffssi2_no_cmove): Ditto.
1137 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1138 (ctz<mode>2): New expander.
1139 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1140 (*ctz<mode>2_falsedep): New insn.
1141 (*ctz<mode>2): Rename from ctz<mode>2.
1142 (clz<mode>2_lzcnt): New expander.
1143 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1144 (*clz<mode>2_lzcnt_falsedep): New insn.
1145 (*clz<mode>2): Rename from ctz<mode>2.
1146 (popcount<mode>2): New expander.
1147 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1148 (*popcount<mode>2_falsedep): New insn.
1149 (*popcount<mode>2): Rename from ctz<mode>2.
1150 (*popcount<mode>2_cmp): Remove.
1151 (*popcountsi2_cmp_zext): Ditto.
1153 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1155 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1156 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1157 * config/microblaze/microblaze.h
1158 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1160 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1163 * configure.ac: Set install_gold_as_default to no for
1165 * configure: Regenerated.
1167 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1169 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1170 * config.in: Add undef of HAVE_isl.
1171 * configure: Regenerate.
1172 * configure.ac: Add definition of HAVE_isl.
1173 * graphite-blocking.c: Add checking of HAVE_isl.
1174 * graphite-dependences.c: Likewise.
1175 * graphite-interchange.c: Likewise.
1176 * graphite-isl-ast-to-gimple.c: Likewise.
1177 * graphite-optimize-isl.c: Likewise.
1178 * graphite-poly.c: Likewise.
1179 * graphite-scop-detection.c: Likewise.
1180 * graphite-sese-to-poly.c: Likewise.
1181 * graphite.c: Likewise.
1182 * toplev.c: Replace the checking of HAVE_cloog with the checking
1185 2014-08-18 Richard Biener <rguenther@suse.de>
1187 PR tree-optimization/62090
1188 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1189 (fold_builtin_3): Do not fold snprintf.
1190 (fold_builtin_4): Likewise.
1191 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1192 moved from builtins.c.
1193 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1194 (gimple_fold_builtin): Do not fold sprintf here.
1196 2014-08-18 Richard Biener <rguenther@suse.de>
1198 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1200 (maybe_canonicalize_mem_ref_addr): ... this function.
1201 (fold_stmt_1): Apply it here before all simplification.
1203 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1206 * cgraph.h (cgraph_node::create_indirect_edge): Add
1207 compute_indirect_info param.
1208 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1209 indirect_info only when it is required.
1210 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1211 indirect_info fore cloned indirect edge.
1213 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1214 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1215 Anna Tikhonova <anna.tikhonova@intel.com>
1216 Ilya Tocar <ilya.tocar@intel.com>
1217 Andrey Turetskiy <andrey.turetskiy@intel.com>
1218 Ilya Verbin <ilya.verbin@intel.com>
1219 Kirill Yukhin <kirill.yukhin@intel.com>
1220 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1222 * config/i386/sse.md
1223 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1224 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1226 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1227 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1228 Anna Tikhonova <anna.tikhonova@intel.com>
1229 Ilya Tocar <ilya.tocar@intel.com>
1230 Andrey Turetskiy <andrey.turetskiy@intel.com>
1231 Ilya Verbin <ilya.verbin@intel.com>
1232 Kirill Yukhin <kirill.yukhin@intel.com>
1233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1235 * config/i386/sse.md
1236 (define_mode_iterator VF1_AVX512VL): New.
1237 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1238 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1241 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1243 Anna Tikhonova <anna.tikhonova@intel.com>
1244 Ilya Tocar <ilya.tocar@intel.com>
1245 Andrey Turetskiy <andrey.turetskiy@intel.com>
1246 Ilya Verbin <ilya.verbin@intel.com>
1247 Kirill Yukhin <kirill.yukhin@intel.com>
1248 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1250 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1251 * config/i386/i386.md
1252 (define_code_iterator any_float): New.
1253 (define_code_attr floatsuffix): New.
1254 * config/i386/sse.md
1255 (define_mode_iterator VF1_128_256VL): New.
1256 (define_mode_iterator VF2_512_256VL): New.
1257 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1259 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1260 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1262 (define_mode_attr qq2pssuff): New.
1263 (define_mode_attr sselongvecmode): New.
1264 (define_mode_attr sselongvecmodelower): New.
1265 (define_mode_attr sseintvecmode3): New.
1266 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1268 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1269 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1270 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1271 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1273 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1275 Anna Tikhonova <anna.tikhonova@intel.com>
1276 Ilya Tocar <ilya.tocar@intel.com>
1277 Andrey Turetskiy <andrey.turetskiy@intel.com>
1278 Ilya Verbin <ilya.verbin@intel.com>
1279 Kirill Yukhin <kirill.yukhin@intel.com>
1280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1282 * config/i386/sse.md
1283 (define_mode_iterator VF2_AVX512VL): New.
1284 (define_mode_attr sseintvecmode2): New.
1285 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1286 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1287 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1289 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1291 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1293 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1296 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1297 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1298 Anna Tikhonova <anna.tikhonova@intel.com>
1299 Ilya Tocar <ilya.tocar@intel.com>
1300 Andrey Turetskiy <andrey.turetskiy@intel.com>
1301 Ilya Verbin <ilya.verbin@intel.com>
1302 Kirill Yukhin <kirill.yukhin@intel.com>
1303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1305 * config/i386/i386.md
1306 (define_insn "*movoi_internal_avx"): Add evex version.
1307 (define_insn "*movti_internal"): Ditto.
1309 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1310 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1311 Anna Tikhonova <anna.tikhonova@intel.com>
1312 Ilya Tocar <ilya.tocar@intel.com>
1313 Andrey Turetskiy <andrey.turetskiy@intel.com>
1314 Ilya Verbin <ilya.verbin@intel.com>
1315 Kirill Yukhin <kirill.yukhin@intel.com>
1316 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1318 * config/i386/i386.md
1319 (define_attr "isa"): Add avx512dq, noavx512dq.
1320 (define_attr "enabled"): Ditto.
1321 * config/i386/sse.md
1322 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1324 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1325 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1326 Anna Tikhonova <anna.tikhonova@intel.com>
1327 Ilya Tocar <ilya.tocar@intel.com>
1328 Andrey Turetskiy <andrey.turetskiy@intel.com>
1329 Ilya Verbin <ilya.verbin@intel.com>
1330 Kirill Yukhin <kirill.yukhin@intel.com>
1331 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1333 * config/i386/i386.c
1334 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1335 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1336 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1337 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1338 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1339 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1340 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1341 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1342 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1343 * config/i386/sse.md
1344 (define_mode_iterator VMOVE): Allow V4TI mode.
1345 (define_mode_iterator V_AVX512VL): New.
1346 (define_mode_iterator V): New handling for AVX512VL.
1347 (define_insn "avx512f_load<mode>_mask"): Delete.
1348 (define_insn "<avx512>_load<mode>_mask"): New.
1349 (define_insn "avx512f_store<mode>_mask"): Delete.
1350 (define_insn "<avx512>_store<mode>_mask"): New.
1353 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1356 * asan.c (instrument_derefs): Fix bitfield check.
1358 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1360 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1361 * config/rs6000/htm.md (ttest): Remove clobber.
1362 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1363 (and_operand): Reformat.
1364 (and_2rld_operand): New predicate.
1365 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1367 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1368 parameter. Handle AND directly.
1369 (rs6000_split_logical_di): Remove last parameter.
1370 (rs6000_split_logical): Remove last parameter. Remove obsolete
1372 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1373 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1374 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1375 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1376 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1377 and 5 anonymous splitters): Delete.
1378 (and<mode>3): New expander.
1379 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1380 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1381 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1382 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1383 (floatdisf2_internal1): Remove clobbers.
1384 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1385 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1386 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1387 (and<mode>3 for BOOL_128): Remove clobber.
1388 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1389 rs6000_split_logical.
1390 (*bool<mode>3_internal for BOOL_128): Adjust call of
1391 rs6000_split_logical.
1392 (*boolc<mode>3_internal1 for BOOL_128,
1393 *boolc<mode>3_internal2 for BOOL_128,
1394 *boolcc<mode>3_internal1 for BOOL_128,
1395 *boolcc<mode>3_internal2 for BOOL_128,
1396 *eqv<mode>3_internal1 for BOOL_128,
1397 *eqv<mode>3_internal2 for BOOL_128,
1398 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1399 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1401 (*vec_reload_and_reg_<mptrsize>): Delete.
1403 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1405 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1406 and split, *boolccsi3_internal3 and split): Delete.
1407 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1408 *boolccdi3_internal3 and split): Delete.
1409 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1410 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1412 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1414 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1415 and split, *boolcsi3_internal3 and split): Delete.
1416 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1417 *boolcdi3_internal3 and split): Delete.
1418 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1420 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1422 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1423 <'u'>: Also support printing the low-order 16 bits.
1424 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1425 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1426 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1427 *booldi3_internal3 and split): Delete.
1428 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1429 *bool<mode>3_dot2): New.
1430 (two anonymous define_splits for non_logical_cint_operand): Merge.
1432 2014-08-17 Marek Polacek <polacek@redhat.com>
1433 Manuel López-Ibáñez <manu@gcc.gnu.org>
1436 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1437 (diagnostic_show_locus): Don't print caret diagnostic
1438 if a column is larger than the line_width.
1440 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1442 * common.opt: Make the ISL AST generator to be the main code generator
1445 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1447 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1449 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1452 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1454 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1455 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1456 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1458 * config/pa/pa.md (begin_brtab): Delete insn.
1459 (end_brtab): Likewise.
1461 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1463 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1465 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1467 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1468 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1469 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1470 (get_dynamic_type): Remove.
1471 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1472 (clear_speculation): Bring to ipa-deivrt.h
1473 (get_class_context): Rename to ...
1474 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1475 (contains_type_p): Update.
1476 (get_dynamic_type): Rename to ...
1477 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1478 (possible_polymorphic_call_targets): UPdate.
1479 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1480 * ipa-prop.c (ipa_analyze_call_uses): Update.
1482 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1484 * doc/invoke.texi (SH options): Document missing processor variant
1485 options. Remove references to Hitachi. Undocument deprecated mspace
1488 2014-08-15 Jason Merrill <jason@redhat.com>
1490 * tree.c (type_hash_canon): Uncomment assert.
1492 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1494 * input.h (in_system_header_at): Add comment.
1496 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1499 * diagnostic.c (build_message_string): Make it extern.
1500 * diagnostic.h (build_message_string): Make it extern.
1502 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1504 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1505 load/store from/to non-floating class pseudo.
1507 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1509 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1511 2014-08-15 Richard Biener <rguenther@suse.de>
1513 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1514 (get_constraint_for_ssa_var): Remove dead code.
1515 (get_constraint_for_1): Adjust.
1516 (find_what_var_points_to): Likewise.
1517 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1519 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1522 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1523 (_mm512_mask_cmpge_epu32_mask): Ditto.
1524 (_mm512_cmpge_epu32_mask): Ditto.
1525 (_mm512_mask_cmpge_epi64_mask): Ditto.
1526 (_mm512_cmpge_epi64_mask): Ditto.
1527 (_mm512_mask_cmpge_epu64_mask): Ditto.
1528 (_mm512_cmpge_epu64_mask): Ditto.
1529 (_mm512_mask_cmple_epi32_mask): Ditto.
1530 (_mm512_cmple_epi32_mask): Ditto.
1531 (_mm512_mask_cmple_epu32_mask): Ditto.
1532 (_mm512_cmple_epu32_mask): Ditto.
1533 (_mm512_mask_cmple_epi64_mask): Ditto.
1534 (_mm512_cmple_epi64_mask): Ditto.
1535 (_mm512_mask_cmple_epu64_mask): Ditto.
1536 (_mm512_cmple_epu64_mask): Ditto.
1537 (_mm512_mask_cmplt_epi32_mask): Ditto.
1538 (_mm512_cmplt_epi32_mask): Ditto.
1539 (_mm512_mask_cmplt_epu32_mask): Ditto.
1540 (_mm512_cmplt_epu32_mask): Ditto.
1541 (_mm512_mask_cmplt_epi64_mask): Ditto.
1542 (_mm512_cmplt_epi64_mask): Ditto.
1543 (_mm512_mask_cmplt_epu64_mask): Ditto.
1544 (_mm512_cmplt_epu64_mask): Ditto.
1545 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1546 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1547 (_mm512_cmpneq_epu32_mask): Ditto.
1548 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1549 (_mm512_cmpneq_epi64_mask): Ditto.
1550 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1551 (_mm512_cmpneq_epu64_mask): Ditto.
1552 (_mm512_castpd_ps): Ditto.
1553 (_mm512_castpd_si512): Ditto.
1554 (_mm512_castps_pd): Ditto.
1555 (_mm512_castps_si512): Ditto.
1556 (_mm512_castsi512_ps): Ditto.
1557 (_mm512_castsi512_pd): Ditto.
1558 (_mm512_castpd512_pd128): Ditto.
1559 (_mm512_castps512_ps128): Ditto.
1560 (_mm512_castsi512_si128): Ditto.
1561 (_mm512_castpd512_pd256): Ditto.
1562 (_mm512_castps512_ps256): Ditto.
1563 (_mm512_castsi512_si256): Ditto.
1564 (_mm512_castpd128_pd512): Ditto.
1565 (_mm512_castps128_ps512): Ditto.
1566 (_mm512_castsi128_si512): Ditto.
1567 (_mm512_castpd256_pd512): Ditto.
1568 (_mm512_castps256_ps512): Ditto.
1569 (_mm512_castsi256_si512): Ditto.
1570 (_mm512_cmpeq_epu32_mask): Ditto.
1571 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1572 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1573 (_mm512_cmpeq_epu64_mask): Ditto.
1574 (_mm512_cmpgt_epu32_mask): Ditto.
1575 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1576 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1577 (_mm512_cmpgt_epu64_mask): Ditto.
1578 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1579 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1580 * config/i386/i386.c (enum ix86_builtins): Add
1581 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1582 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1583 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1584 (bdesc_args): Add __builtin_ia32_si512_256si,
1585 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1586 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1587 __builtin_ia32_pd512_pd.
1588 (ix86_expand_args_builtin): Handle new FTYPEs.
1589 * config/i386/sse.md (castmode): Add 512-bit modes.
1590 (AVX512MODE2P): New.
1591 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1592 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1594 2014-08-15 Richard Biener <rguenther@suse.de>
1596 * fold-const.c (tree_swap_operands_p): Put all constants
1597 last, also strip sign-changing NOPs when considering further
1598 canonicalization. Canonicalize also when optimizing for size.
1600 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1602 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1603 one_match > zero_match case to just before simple_sequence.
1605 2014-08-15 Richard Biener <rguenther@suse.de>
1607 * data-streamer.h (streamer_string_index, string_for_index):
1609 * data-streamer-out.c (streamer_string_index): Make static.
1610 * data-streamer-in.c (string_for_index): Likewise.
1611 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1612 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1614 2014-08-15 Richard Biener <rguenther@suse.de>
1616 PR tree-optimization/62031
1617 * tree-data-ref.c (dr_analyze_indices): Do not set
1618 DR_UNCONSTRAINED_BASE.
1619 (dr_may_alias_p): All indirect accesses have to go the
1620 formerly DR_UNCONSTRAINED_BASE path.
1621 * tree-data-ref.h (struct indices): Remove
1622 unconstrained_base member.
1623 (DR_UNCONSTRAINED_BASE): Remove.
1625 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1628 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1629 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1630 in OMP_CLAUSE_MAP in some outer target region.
1632 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1634 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1635 name_expansion_cache.
1636 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1637 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1638 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1639 (difference_cannot_overflow_p): New parameter. Use affine
1640 expansion for equality check.
1641 (iv_elimination_compare_lt): Pass new argument.
1643 2014-08-14 DJ Delorie <dj@redhat.com>
1645 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1646 variables to the accumulator.
1648 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1649 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1650 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1653 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1654 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1655 (umulqihi3_virt): Likewise.
1656 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1657 (umulqihi3_real): Likewise.
1659 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1661 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1663 PR tree-optimization/62091
1664 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1665 function_entry_reached.
1666 (walk_aliased_vdefs): Clear it here.
1667 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1669 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1671 * ipa-utils.h (compare_virtual_tables): Declare.
1672 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1674 2014-08-14 Marek Polacek <polacek@redhat.com>
1677 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1678 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1680 2014-08-14 Tom de Vries <tom@codesourcery.com>
1682 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1684 2014-08-14 Tom de Vries <tom@codesourcery.com>
1686 PR rtl-optimization/62004
1687 PR rtl-optimization/62030
1688 * ifcvt.c (rtx_interchangeable_p): New function.
1689 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1690 * emit-rtl.h (mem_attrs_eq_p): Declare.
1692 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1694 * graphite-scop-detection.c:
1695 Add inclusion of cp-tree.h.
1696 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1697 in case they are pointers to object types
1699 2014-08-14 Richard Biener <rguenther@suse.de>
1701 * BASE-VER: Change to 5.0.0
1703 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1705 Anna Tikhonova <anna.tikhonova@intel.com>
1706 Ilya Tocar <ilya.tocar@intel.com>
1707 Andrey Turetskiy <andrey.turetskiy@intel.com>
1708 Ilya Verbin <ilya.verbin@intel.com>
1709 Kirill Yukhin <kirill.yukhin@intel.com>
1710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1712 * config/i386/sse.md (define_mode_attr avx512): New.
1713 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1715 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1716 (define_mode_attr ssse3_avx2): Ditto.
1717 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1718 (define_mode_attr avx2_avx512bw): New.
1719 (define_mode_attr ssedoublemodelower): New.
1720 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1722 (define_mode_attr ssebytemode): Allow V8DI modes.
1723 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1724 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1725 (define_mode_attr ssePSmode2): New.
1726 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1728 (define_mode_attr dbpsadbwmode): New.
1729 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1730 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1731 (vi8_sse4_1_avx2_avx512): New.
1732 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1734 (define_mode_attr blendbits): Move before its immediate use.
1736 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1737 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1738 Anna Tikhonova <anna.tikhonova@intel.com>
1739 Ilya Tocar <ilya.tocar@intel.com>
1740 Andrey Turetskiy <andrey.turetskiy@intel.com>
1741 Ilya Verbin <ilya.verbin@intel.com>
1742 Kirill Yukhin <kirill.yukhin@intel.com>
1743 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1745 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1746 * config/i386/subst.md
1747 (define_mode_iterator SUBST_V): Update.
1748 (define_mode_iterator SUBST_A): Ditto.
1749 (define_subst_attr "mask_operand7"): New.
1750 (define_subst_attr "mask_operand10"): New.
1751 (define_subst_attr "mask_operand_arg34") : New.
1752 (define_subst_attr "mask_expand_op3"): New.
1753 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1754 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1755 (define_subst_attr "mask_avx512vl_condition"): New.
1756 (define_subst_attr "round_mask_operand4"): Ditto.
1757 (define_subst_attr "round_mask_scalar_op3"): Delete.
1758 (define_subst_attr "round_mask_op4"): New.
1759 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1761 (define_subst_attr "round_modev8sf_condition"): New.
1762 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1764 (define_subst_attr "round_saeonly_mask_operand4"): New.
1765 (define_subst_attr "round_saeonly_mask_op4"): New.
1766 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1767 V8DImode, V16SImode.
1768 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1769 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1770 (define_subst_attr "mask_expand4_args"): New.
1771 (define_subst "mask_expand4"): New.
1773 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1775 Anna Tikhonova <anna.tikhonova@intel.com>
1776 Ilya Tocar <ilya.tocar@intel.com>
1777 Andrey Turetskiy <andrey.turetskiy@intel.com>
1778 Ilya Verbin <ilya.verbin@intel.com>
1779 Kirill Yukhin <kirill.yukhin@intel.com>
1780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1782 * config/i386/i386.md
1783 (define_attr "isa"): Add avx512bw,noavx512bw.
1784 (define_attr "enabled"): Ditto.
1785 (define_split): Add 32/64-bit mask logic.
1786 (define_insn "*k<logic>qi"): New.
1787 (define_insn "*k<logic>hi"): New.
1788 (define_insn "*anddi_1"): Add mask version.
1789 (define_insn "*andsi_1"): Ditto.
1790 (define_insn "*<code><mode>_1"): Ditto.
1791 (define_insn "*<code>hi_1"): Ditto.
1792 (define_insn "kxnor<mode>"): New.
1793 (define_insn "kunpcksi"): New.
1794 (define_insn "kunpckdi"): New.
1795 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1796 (define_insn "*one_cmplhi2_1"): Ditto.
1798 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1800 Anna Tikhonova <anna.tikhonova@intel.com>
1801 Ilya Tocar <ilya.tocar@intel.com>
1802 Andrey Turetskiy <andrey.turetskiy@intel.com>
1803 Ilya Verbin <ilya.verbin@intel.com>
1804 Kirill Yukhin <kirill.yukhin@intel.com>
1805 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1807 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1810 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1812 Anna Tikhonova <anna.tikhonova@intel.com>
1813 Ilya Tocar <ilya.tocar@intel.com>
1814 Andrey Turetskiy <andrey.turetskiy@intel.com>
1815 Ilya Verbin <ilya.verbin@intel.com>
1816 Kirill Yukhin <kirill.yukhin@intel.com>
1817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1819 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1821 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1822 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1823 xmm/ymm16+ when availble.
1824 * config/i386/i386.h
1825 (HARD_REGNO_NREGS): Add mask regs.
1826 (VALID_AVX512F_REG_MODE): Ditto.
1827 (VALID_AVX512F_REG_MODE) : Define.
1828 (VALID_MASK_AVX512BW_MODE): Ditto.
1829 (reg_class) (MASK_REG_P(X)): Define.
1830 * config/i386/i386.md: Do not split long moves with mask register,
1831 use kmovb if avx512bw is availible.
1832 (movdi_internal): Handle mask registers.
1834 2014-08-14 Richard Biener <rguenther@suse.de>
1836 PR tree-optimization/62081
1837 * tree-ssa-loop.c (pass_fix_loops): New pass.
1838 (pass_tree_loop::gate): Do not fixup loops here.
1839 * tree-pass.h (make_pass_fix_loops): Declare.
1840 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1842 2014-08-14 Richard Biener <rguenther@suse.de>
1844 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1845 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1847 2014-08-14 Richard Biener <rguenther@suse.de>
1849 PR tree-optimization/62090
1850 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1851 (fold_builtin_2): Do not fold sprintf.
1852 (fold_builtin_3): Likewise.
1853 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1854 moved from builtins.c.
1855 (gimple_fold_builtin): Fold sprintf.
1857 2014-08-14 Richard Biener <rguenther@suse.de>
1859 PR rtl-optimization/62079
1860 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1863 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1865 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1866 current_function_decl.
1868 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1870 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1871 cgraph_function_node to cgraph_node::function_symbol
1874 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1876 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1877 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1879 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1881 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1884 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1886 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1889 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1892 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1893 any registers that are used in mem_insn.
1895 2014-08-12 Steve Ellcey <sellcey@mips.com>
1897 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1899 2014-08-12 Steve Ellcey <sellcey@mips.com>
1901 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1902 (MULTILIB_DIRNAMES): Ditto.
1903 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1904 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1905 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1906 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1907 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1908 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1910 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1913 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1914 of __ARM_SIZEOF_WCHAR_T.
1916 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1919 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1920 Remove unnecessary attributes.
1922 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1924 * internal-fn.c (init_internal_fns): Fix off-by-one.
1926 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1928 Anna Tikhonova <anna.tikhonova@intel.com>
1929 Ilya Tocar <ilya.tocar@intel.com>
1930 Andrey Turetskiy <andrey.turetskiy@intel.com>
1931 Ilya Verbin <ilya.verbin@intel.com>
1932 Kirill Yukhin <kirill.yukhin@intel.com>
1933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1935 * config/i386/i386.c (standard_sse_constant_opcode): Use
1936 vpxord/vpternlog if avx512 is availible.
1938 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1941 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1942 bitfields, that is when size doesn't match the size of type or the
1943 size of the constructor.
1945 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1947 * config/rs6000/constraints.md (wh constraint): New constraint,
1948 for FP registers if direct move is available.
1949 (wi constraint): New constraint, for VSX/FP registers that can
1950 handle 64-bit integers.
1951 (wj constraint): New constraint for VSX/FP registers that can
1952 handle 64-bit integers for direct moves.
1953 (wk constraint): New constraint for VSX/FP registers that can
1954 handle 64-bit doubles for direct moves.
1955 (wy constraint): Make documentation match implementation.
1957 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
1958 scalar_in_vmx_p field to simplify tests of whether SFmode or
1959 DFmode can go in the Altivec registers.
1960 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
1961 (rs6000_setup_reg_addr_masks): Likewise.
1962 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
1963 field, and wh/wi/wj/wk constraints.
1964 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
1965 the wh/wi/wj/wk constraints.
1966 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
1967 upper registers, prefer VSX registers unless the operation is a
1968 memory operation with REG+OFFSET addressing.
1970 * config/rs6000/vsx.md (VSr mode attribute): Add support for
1971 DImode. Change SFmode to use ww constraint instead of d to allow
1972 SF registers in the upper registers.
1975 (VSr5): Fix thinko in comment.
1976 (VSa): New mode attribute that is an alternative to wa, that
1977 returns the VSX register class that a mode can go in, but may not
1978 be the preferred register class.
1979 (VS_64dm): New mode attribute for appropriate register classes for
1980 referencing 64-bit elements of vectors for direct moves and normal
1982 (VS_64reg): Likewise.
1983 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
1984 register allocator to only registers the data type can handle.
1985 (vsx_le_perm_load_<mode>): Likewise.
1986 (vsx_le_perm_store_<mode>): Likewise.
1987 (vsx_xxpermdi2_le_<mode>): Likewise.
1988 (vsx_xxpermdi4_le_<mode>): Likewise.
1989 (vsx_lxvd2x2_le_<mode>): Likewise.
1990 (vsx_lxvd2x4_le_<mode>): Likewise.
1991 (vsx_stxvd2x2_le_<mode>): Likewise.
1992 (vsx_add<mode>3): Likewise.
1993 (vsx_sub<mode>3): Likewise.
1994 (vsx_mul<mode>3): Likewise.
1995 (vsx_div<mode>3): Likewise.
1996 (vsx_tdiv<mode>3_internal): Likewise.
1997 (vsx_fre<mode>2): Likewise.
1998 (vsx_neg<mode>2): Likewise.
1999 (vsx_abs<mode>2): Likewise.
2000 (vsx_nabs<mode>2): Likewise.
2001 (vsx_smax<mode>3): Likewise.
2002 (vsx_smin<mode>3): Likewise.
2003 (vsx_sqrt<mode>2): Likewise.
2004 (vsx_rsqrte<mode>2): Likewise.
2005 (vsx_tsqrt<mode>2_internal): Likewise.
2006 (vsx_fms<mode>4): Likewise.
2007 (vsx_nfma<mode>4): Likewise.
2008 (vsx_eq<mode>): Likewise.
2009 (vsx_gt<mode>): Likewise.
2010 (vsx_ge<mode>): Likewise.
2011 (vsx_eq<mode>_p): Likewise.
2012 (vsx_gt<mode>_p): Likewise.
2013 (vsx_ge<mode>_p): Likewise.
2014 (vsx_xxsel<mode>): Likewise.
2015 (vsx_xxsel<mode>_uns): Likewise.
2016 (vsx_copysign<mode>3): Likewise.
2017 (vsx_float<VSi><mode>2): Likewise.
2018 (vsx_floatuns<VSi><mode>2): Likewise.
2019 (vsx_fix_trunc<mode><VSi>2): Likewise.
2020 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2021 (vsx_x<VSv>r<VSs>i): Likewise.
2022 (vsx_x<VSv>r<VSs>ic): Likewise.
2023 (vsx_btrunc<mode>2): Likewise.
2024 (vsx_b2trunc<mode>2): Likewise.
2025 (vsx_floor<mode>2): Likewise.
2026 (vsx_ceil<mode>2): Likewise.
2027 (vsx_<VS_spdp_insn>): Likewise.
2028 (vsx_xscvspdp): Likewise.
2029 (vsx_xvcvspuxds): Likewise.
2030 (vsx_float_fix_<mode>2): Likewise.
2031 (vsx_set_<mode>): Likewise.
2032 (vsx_extract_<mode>_internal1): Likewise.
2033 (vsx_extract_<mode>_internal2): Likewise.
2034 (vsx_extract_<mode>_load): Likewise.
2035 (vsx_extract_<mode>_store): Likewise.
2036 (vsx_splat_<mode>): Likewise.
2037 (vsx_xxspltw_<mode>): Likewise.
2038 (vsx_xxspltw_<mode>_direct): Likewise.
2039 (vsx_xxmrghw_<mode>): Likewise.
2040 (vsx_xxmrglw_<mode>): Likewise.
2041 (vsx_xxsldwi_<mode>): Likewise.
2042 (vsx_xscvdpspn): Tighten constraints to only use register classes
2044 (vsx_xscvspdpn): Likewise.
2045 (vsx_xscvdpspn_scalar): Likewise.
2047 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2048 wj, and wk constraints.
2049 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2050 general purpose registers.
2052 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2054 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2055 DImode instead of wm. Use wk constraint for direct move of DFmode
2057 (extendsidi2_lfiwax): Likewise.
2060 (movdi_internal64): Likewise.
2062 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2063 wk constraints. Make the wy constraint documentation match them
2066 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2068 Replacement of isl_int by isl_val
2069 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2070 (compute_bounds_for_param): use isl_val instead of isl_int
2071 (compute_bounds_for_loop): likewise
2072 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2073 (build_linearized_memory_access): use isl_val instead of isl_int
2074 (pdr_stride_in_loop): likewise
2075 * graphite-optimize-isl.c:
2076 (getPrevectorMap): use isl_val instead of isl_int
2078 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2079 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2080 (extern the_isl_ctx): declare
2081 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2082 (extract_affine_gmp): likewise
2084 (build_loop_iteration_domains): likewise
2085 (add_param_constraints): likewise
2087 2014-08-11 Richard Biener <rguenther@suse.de>
2089 PR tree-optimization/62075
2090 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2091 handle uses in patterns.
2093 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2095 Anna Tikhonova <anna.tikhonova@intel.com>
2096 Ilya Tocar <ilya.tocar@intel.com>
2097 Andrey Turetskiy <andrey.turetskiy@intel.com>
2098 Ilya Verbin <ilya.verbin@intel.com>
2099 Kirill Yukhin <kirill.yukhin@intel.com>
2100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2102 * common/config/i386/i386-common.c
2103 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2104 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2105 (ix86_handle_option): Handle OPT_mavx512vl.
2106 * config/i386/cpuid.h (bit_AVX512VL): Define.
2107 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2108 set -mavx512vl accordingly.
2109 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2110 OPTION_MASK_ISA_AVX512VL.
2111 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2112 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2113 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2114 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2115 * config/i386/i386.h (TARGET_AVX512VL): Define.
2116 (TARGET_AVX512VL_P(x)): Ditto.
2117 * config/i386/i386.opt: Add mavx512vl.
2119 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2121 PR tree-optimization/62073
2122 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2125 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2127 Anna Tikhonova <anna.tikhonova@intel.com>
2128 Ilya Tocar <ilya.tocar@intel.com>
2129 Andrey Turetskiy <andrey.turetskiy@intel.com>
2130 Ilya Verbin <ilya.verbin@intel.com>
2131 Kirill Yukhin <kirill.yukhin@intel.com>
2132 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2134 * common/config/i386/i386-common.c
2135 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2136 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2137 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2138 (ix86_handle_option): Handle OPT_mavx512bw.
2139 * config/i386/cpuid.h (bit_AVX512BW): Define.
2140 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2141 set -mavx512bw accordingly.
2142 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2143 OPTION_MASK_ISA_AVX512BW.
2144 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2145 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2146 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2147 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2148 * config/i386/i386.h (TARGET_AVX512BW): Define.
2149 (TARGET_AVX512BW_P(x)): Ditto.
2150 * config/i386/i386.opt: Add mavx512bw.
2152 2014-08-11 Richard Biener <rguenther@suse.de>
2154 PR tree-optimization/62070
2155 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2156 Remove SSA checking.
2158 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2160 * asan.c (asan_check_flags): New enum.
2161 (build_check_stmt_with_calls): Removed function.
2162 (build_check_stmt): Split inlining logic to
2163 asan_expand_check_ifn.
2164 (instrument_derefs): Rename parameter.
2165 (instrument_mem_region_access): Rename parameter.
2166 (instrument_strlen_call): Likewise.
2167 (asan_expand_check_ifn): New function.
2168 (asan_instrument): Remove old code.
2169 (pass_sanopt::execute): Change handling of
2170 asan-instrumentation-with-call-threshold.
2171 (asan_clear_shadow): Fix formatting.
2172 (asan_function_start): Likewise.
2173 (asan_emit_stack_protection): Likewise.
2174 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2176 * internal-fn.c (expand_ASAN_CHECK): New function.
2177 * internal-fn.def (ASAN_CHECK): New internal function.
2178 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2180 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2181 * tree.c: Small comment fix.
2183 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2185 * gimple.c (gimple_call_fnspec): Support internal functions.
2186 (gimple_call_return_flags): Use const.
2187 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2188 * internal-fn.def: Add fnspec information.
2189 * internal-fn.h (internal_fn_fnspec): New function.
2190 (init_internal_fns): Declare new function.
2191 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2192 (init_internal_fns): New function.
2193 * tree-core.h: Update macro call.
2194 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2196 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2198 * lto-streamer.h (struct output_block::symbol): Change from
2199 struct symtab_node to plain symtab_node.
2200 (referenced_from_this_partition_p): Change first parameter
2201 from struct symtab_node to plain symtab_node.
2203 2014-08-10 Marek Polacek <polacek@redhat.com>
2206 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2208 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2210 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2211 DECL correctly; do not give up on types in static storage.
2213 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2215 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2217 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2219 * graphite-isl-ast-to-gimple.c:
2220 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2222 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2224 2014-08-08 Guozhi Wei <carrot@google.com>
2226 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2228 2014-08-08 Cary Coutant <ccoutant@google.com>
2230 * dwarf2out.c (get_skeleton_type_unit): Remove.
2231 (output_skeleton_debug_sections): Remove skeleton type units.
2232 (output_comdat_type_unit): Likewise.
2233 (dwarf2out_finish): Likewise.
2235 2014-08-07 Yi Yang <ahyangyi@google.com>
2237 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2239 2014-08-08 Richard Biener <rguenther@suse.de>
2241 * lto-streamer.h (struct lto_input_block): Make it a class
2243 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2244 (struct lto_function_header, struct lto_simple_header,
2245 struct lto_simple_header_with_strings,
2246 struct lto_decl_header, struct lto_function_header): Make
2247 a simple inheritance hieararchy. Remove unused fields.
2248 (struct lto_asm_header): Remove.
2249 * lto-streamer-out.c (produce_asm): Adjust.
2250 (lto_output_toplevel_asms): Likewise.
2251 (produce_asm_for_decls): Likewise.
2252 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2253 * data-streamer-in.c (string_for_index): Likewise.
2254 * ipa-inline-analysis.c (inline_read_section): Likewise.
2255 * ipa-prop.c (ipa_prop_read_section): Likewise.
2256 (read_replacements_section): Likewise.
2257 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2258 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2259 (lto_destroy_simple_input_block): Likewise.
2260 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2261 (lto_input_toplevel_asms): Likewise.
2263 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2265 Anna Tikhonova <anna.tikhonova@intel.com>
2266 Ilya Tocar <ilya.tocar@intel.com>
2267 Andrey Turetskiy <andrey.turetskiy@intel.com>
2268 Ilya Verbin <ilya.verbin@intel.com>
2269 Kirill Yukhin <kirill.yukhin@intel.com>
2270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2272 * common/config/i386/i386-common.c
2273 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2274 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2275 (ix86_handle_option): Handle OPT_mavx512dq.
2276 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2277 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2278 set -mavx512dq accordingly.
2279 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2280 OPTION_MASK_ISA_AVX512DQ.
2281 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2282 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2283 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2284 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2285 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2286 (TARGET_AVX512DQ_P(x)): Ditto.
2287 * config/i386/i386.opt: Add mavx512dq.
2289 2014-08-08 Richard Biener <rguenther@suse.de>
2291 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2292 target_percent, target_percent_s): Export.
2293 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2294 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2295 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2296 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2297 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2298 Move to gimple-fold.c.
2299 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2301 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2302 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2303 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2304 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2305 (rewrite_call_expr_array): Remove.
2306 (fold_builtin_sprintf_chk): Likewise.
2307 (fold_builtin_snprintf_chk): Likewise.
2308 (fold_builtin_varargs): Remove handling of sprintf_chk,
2309 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2310 (gimple_fold_builtin_sprintf_chk): Remove.
2311 (gimple_fold_builtin_snprintf_chk): Likewise.
2312 (gimple_fold_builtin_varargs): Likewise.
2313 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2314 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2315 * gimple.c (gimple_seq_add_seq_without_update): New function.
2316 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2317 * gimple-fold.c: Include output.h.
2318 (gsi_replace_with_seq_vops): New function, split out from ...
2319 (gimplify_and_update_call_from_tree): ... here.
2320 (replace_call_with_value): New function.
2321 (replace_call_with_call_and_fold): Likewise.
2322 (var_decl_component_p): Moved from builtins.c.
2323 (gimple_fold_builtin_memory_op): Moved from builtins.c
2324 fold_builtin_memory_op and rewritten to GIMPLE.
2325 (gimple_fold_builtin_memset): Likewise.
2326 (gimple_fold_builtin_strcpy): Likewise.
2327 (gimple_fold_builtin_strncpy): Likewise.
2328 (gimple_fold_builtin_strcat): Likewise.
2329 (gimple_fold_builtin_fputs): Likewise.
2330 (gimple_fold_builtin_memory_chk): Likewise.
2331 (gimple_fold_builtin_stxcpy_chk): Likewise.
2332 (gimple_fold_builtin_stxncpy_chk): Likewise.
2333 (gimple_fold_builtin_snprintf_chk): Likewise.
2334 (gimple_fold_builtin_sprintf_chk): Likewise.
2335 (gimple_fold_builtin_strlen): New function.
2336 (gimple_fold_builtin_with_strlen): New function split out from
2337 gimple_fold_builtin.
2338 (gimple_fold_builtin): Change signature and handle
2339 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2340 here. Call gimple_fold_builtin_with_strlen.
2341 (gimple_fold_call): Adjust.
2343 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2345 * calls.c (precompute_arguments): Check
2346 promoted_for_signed_and_unsigned_p and set the promoted mode.
2347 (promoted_for_signed_and_unsigned_p): New function.
2348 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2349 and set the promoted mode.
2350 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2351 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2352 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2355 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2357 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2358 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2359 (expand_call): Likewise.
2360 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2361 to get promoted mode.
2362 * combine.c (record_promoted_value): Skip > 0 comparison with
2363 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2364 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2365 of SUBREG_PROMOTED_UNSIGNED_P.
2366 (convert_modes): Likewise.
2367 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2368 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2369 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2370 SUBREG_PROMOTED_UNSIGNED_SET.
2371 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2372 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2373 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2374 SUBREG_PROMOTED_SET.
2375 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2376 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2377 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2378 of SUBREG_PROMOTED_UNSIGNED_P.
2379 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2380 (SUBREG_PROMOTED_SET): New define.
2381 (SUBREG_PROMOTED_GET): Likewise.
2382 (SUBREG_PROMOTED_SIGN): Likewise.
2383 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2384 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2385 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2386 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2387 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2388 (nonzero_bits1): Skip > 0 comparison with the results as
2389 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2390 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2391 of !SUBREG_PROMOTED_UNSIGNED_P.
2392 * simplify-rtx.c (simplify_unary_operation_1): Use new
2393 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2394 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2395 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2396 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2398 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2400 * ipa-devirt.c: Include gimple-pretty-print.h
2401 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2403 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2404 (get_polymorphic_call_info): Fix return value
2405 (type_change_info): New sturcture based on ipa-prop
2407 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2408 based on ipa-prop variant.
2409 (extr_type_from_vtbl_ptr_store): New function
2410 based on ipa-prop variant.
2411 (record_known_type): New function.
2412 (check_stmt_for_type_change): New function.
2413 (get_dynamic_type): New function.
2414 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2415 * tree-ssa-pre.c: ipa-utils.h
2416 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2417 machinery; sanity check with ipa-prop devirtualization.
2418 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2421 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2423 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2424 * alias.c, cfgexpand.c, cgraphbuild.c,
2425 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2426 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2427 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2428 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2429 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2430 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2431 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2432 dse.c, except.c, gengtype.c, gimple-expr.c,
2433 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2434 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2435 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2436 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2437 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2438 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2440 * pointer-set.c: Remove file.
2441 * pointer-set.h: Remove file.
2443 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2445 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2446 * config/arm/types.md (f_sels, f_seld): Delete.
2448 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2450 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2451 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2452 (aarch64_movdi_<mode>high): Likewise.
2453 (aarch64_mov<mode>high_di): Likewise.
2454 (aarch64_movdi_<mode>low): Likewise.
2455 (aarch64_mov<mode>low_di): Likewise.
2456 (aarch64_movtilow_tilow): Likewise.
2457 Add comment explaining usage of fp,simd attributes and of
2458 TARGET_FLOAT and TARGET_SIMD.
2460 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2461 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2463 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2464 Use MOVN when one of the half-words is 0xffff.
2466 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2468 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2470 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2472 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2473 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2474 (rfs_str): String corresponding to RFS_* constants.
2475 (rank_for_schedule_stats_t): New typedef.
2476 (rank_for_schedule_stats): New static variable.
2477 (rfs_result): New static function.
2478 (rank_for_schedule): Track statistics for deciding heuristics.
2479 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2481 (ready_sort): Use them for debug printouts.
2482 (schedule_block): Init statistics state. Print statistics on
2483 rank_for_schedule decisions.
2485 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2487 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2489 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2491 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2494 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2496 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2497 function to not conflict.
2498 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2499 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2500 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2501 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2502 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2505 2014-08-07 Marek Polacek <polacek@redhat.com>
2507 * fold-const.c (fold_binary_loc): Add folding of
2508 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2510 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2512 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2513 instead of type size.
2514 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2516 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2518 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2519 (*thumb1_movqi_insn): Likewise.
2520 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2522 2014-08-07 Tom de Vries <tom@codesourcery.com>
2524 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2525 (glibc_2_11_or_earlier): Remove effective-target keywords.
2527 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2529 * config/arm/arm.c (bdesc_2arg): Fix typo.
2530 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2532 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2534 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2536 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2539 * haifa-sched.c (advance_one_cycle): Fix dump.
2540 (schedule_block): Don't advance cycle if we are already at the
2541 beginning of the cycle.
2543 2014-08-06 Martin Jambor <mjambor@suse.cz>
2546 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2548 2014-08-06 Richard Biener <rguenther@suse.de>
2551 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2553 (lto_input_tree): Pop SCCs here.
2555 2014-08-06 Richard Biener <rguenther@suse.de>
2557 PR tree-optimization/61320
2558 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2559 handle misaligned loads.
2561 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2563 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2564 (aarch64_expand_vec_perm_const): Check for dup before zip.
2566 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2568 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2569 CONST_INT_P instead of GET_CODE and compare.
2570 (aarch64_select_cc_mode): Likewise.
2571 (aarch64_print_operand): Likewise.
2572 (aarch64_rtx_costs): Likewise.
2573 (aarch64_simd_valid_immediate): Likewise.
2574 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2575 (aarch64_simd_emit_pair_result_insn): Likewise.
2577 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2579 * gdbhooks.py (find_gcc_source_dir): New helper function.
2580 (class PassNames): New class, locating and parsing passes.def.
2581 (class BreakOnPass): New command "break-on-pass".
2583 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2585 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2588 2014-08-05 Richard Biener <rguenther@suse.de>
2590 PR rtl-optimization/61672
2591 * emit-rtl.h (mem_attrs_eq_p): Declare.
2592 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2593 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2594 * cfgcleanup.c (merge_memattrs): Likewise.
2597 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2599 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2600 rather than singleton vectors.
2601 (vqdmlsls_lane_s32): Likewise.
2603 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2605 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2606 Use VSDQ_HSI mode iterator.
2607 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2608 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2609 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2610 Use BUILTIN_VDQHS macro.
2611 (sqrdmulh_laneq): Likewise.
2612 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2613 (vqdmlals_laneq_s32): Likewise.
2614 (vqdmlslh_laneq_s16): Likewise.
2615 (vqdmlsls_laneq_s32): Likewise.
2616 (vqdmulhh_laneq_s16): Likewise.
2617 (vqdmulhs_laneq_s32): Likewise.
2618 (vqrdmulhh_laneq_s16): Likewise.
2619 (vqrdmulhs_laneq_s32): Likewise.
2621 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2623 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2624 (vmuld_laneq_f64): Likewise.
2625 (vmuls_laneq_f32): Likewise.
2626 (vmul_n_f64): Likewise.
2627 (vmuld_lane_f64): Reimplement in C.
2628 (vmuls_lane_f32): Likewise.
2630 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2632 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2634 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2636 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2638 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2639 (rbitsi2): Likewise.
2640 (*arm_rev): Set predicable and predicable_short_it attributes.
2642 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2644 * convert.c (convert_to_integer): Guard transformation to lrint by
2647 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2649 * config/aarch64/aarch64-builtins.c
2650 (aarch64_simd_builtin_type_mode): Delete.
2651 (v8qi_UP): Remap to V8QImode.
2652 (v4hi_UP): Remap to V4HImode.
2653 (v2si_UP): Remap to V2SImode.
2654 (v2sf_UP): Remap to V2SFmode.
2655 (v1df_UP): Remap to V1DFmode.
2656 (di_UP): Remap to DImode.
2657 (df_UP): Remap to DFmode.
2658 (v16qi_UP):V16QImode.
2659 (v8hi_UP): Remap to V8HImode.
2660 (v4si_UP): Remap to V4SImode.
2661 (v4sf_UP): Remap to V4SFmode.
2662 (v2di_UP): Remap to V2DImode.
2663 (v2df_UP): Remap to V2DFmode.
2664 (ti_UP): Remap to TImode.
2665 (ei_UP): Remap to EImode.
2666 (oi_UP): Remap to OImode.
2667 (ci_UP): Map to CImode.
2668 (xi_UP): Remap to XImode.
2669 (si_UP): Remap to SImode.
2670 (sf_UP): Remap to SFmode.
2671 (hi_UP): Remap to HImode.
2672 (qi_UP): Remap to QImode.
2673 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2674 (VAR1): Build builtin name.
2675 (aarch64_init_simd_builtins): Remove dead code.
2677 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2679 * graphite-isl-ast-to-gimple.c:
2680 (set_options): New function.
2681 (scop_to_isl_ast): Add calling of set_options.
2683 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2685 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2686 (analyze_iv_to_split_insn): Don't initialize them.
2687 (get_ivts_expr): Removed.
2688 (allocate_basic_variable, insert_base_initialization): Use
2689 SET_SRC instead of *get_ivts_expr.
2690 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2692 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2694 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2695 (translate_isl_ast_for_loop): Add checking of the
2696 flag_loop_parallelize_all.
2697 (ast_build_before_for): New function.
2698 (scop_to_isl_ast): Add checking of the
2699 flag_loop_parallelize_all.
2700 * graphite-dependences.c: Move the defenition of the
2701 scop_get_dependences from graphite-optimize-isl.c to this file.
2702 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2703 (carries_deps): Add checking of the x's value.
2704 * graphite-optimize-isl.c: Move the defenition of the
2705 scop_get_dependences to graphite-dependences.c.
2706 * graphite-poly.h: Add declarations of scop_get_dependences
2709 2014-08-04 Rohit <rohitarulraj@freescale.com>
2712 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2714 (alt_reg_names): Likewise.
2715 (rs6000_dwarf_register_span): For SPE high registers, replace
2716 dwarf register numbers with GCC hard register numbers.
2717 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2718 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2719 register number for the corresponding GCC hard register number.
2720 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2721 newly added GCC hard register numbers for SPE high registers.
2722 (DWARF_FRAME_REGISTERS): Likewise.
2723 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2724 (DWARF_FRAME_REGNUM): Likewise.
2725 (FIXED_REGISTERS): Likewise.
2726 (CALL_USED_REGISTERS): Likewise.
2727 (CALL_REALLY_USED_REGISTERS): Likewise.
2728 (REG_ALLOC_ORDER): Likewise.
2729 (enum reg_class): Likewise.
2730 (REG_CLASS_NAMES): Likewise.
2731 (REG_CLASS_CONTENTS): Likewise.
2732 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2734 2014-08-04 Richard Biener <rguenther@suse.de>
2736 * gimple-fold.h (gimple_fold_builtin): Remove.
2737 * gimple-fold.c (gimple_fold_builtin): Make static.
2738 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2739 fold_stmt, not gimple_fold_builtin.
2741 2014-08-04 Martin Liska <mliska@suse.cz>
2743 * cgraph.h (csi_end_p): Removed.
2744 (csi_next): Likewise.
2745 (csi_node): Likewise.
2746 (csi_start): Likewise.
2747 (cgraph_node_in_set_p): Likewise.
2748 (cgraph_node_set_size): Likewise.
2749 (vsi_end_p): Likewise.
2750 (vsi_next): Likewise.
2751 (vsi_node): Likewise.
2752 (vsi_start): Likewise.
2753 (varpool_node_set_size): Likewise.
2754 (cgraph_node_set_nonempty_p): Likewise.
2755 (varpool_node_set_nonempty_p): Likewise.
2756 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2758 * ipa-inline-transform.c: Likewise.
2759 * ipa-utils.c (cgraph_node_set_new): Removed.
2760 (cgraph_node_set_add): Likewise.
2761 (cgraph_node_set_remove): Likewise.
2762 (cgraph_node_set_find): Likewise.
2763 (dump_cgraph_node_set): Likewise.
2764 (debug_cgraph_node_set): Likewise.
2765 (free_cgraph_node_set): Likewise.
2766 (varpool_node_set_new): Likewise.
2767 (varpool_node_set_add): Likewise.
2768 (varpool_node_set_remove): Likewise.
2769 (varpool_node_set_find): Likewise.
2770 (dump_varpool_node_set): Likewise.
2771 (free_varpool_node_set): Likewise.
2772 (debug_varpool_node_set): Likewise.
2773 * tree-emutls.c (struct tls_var_data):
2774 (emutls_index): Removed.
2775 (emutls_decl): Likewise.
2776 (gen_emutls_addr): Function implementation uses newly added
2777 hash_map<varpool_node *, tls_var_data>.
2778 (clear_access_vars): Likewise.
2779 (create_emultls_var): Likewise.
2780 (ipa_lower_emutls): Likewise.
2781 (reset_access): New function.
2783 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2785 * config/i386/i386.c (ix86_option_override_internal): Add
2786 PTA_RDRND and PTA_MOVBE for bdver4.
2788 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2789 James Greenhalgh <james.greenhalgh@arm.com>
2791 * doc/md.texi (clrsb): Document.
2792 (clz): Change reference to x into operand 1.
2794 (popcount): Likewise.
2796 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2799 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2800 move to subtarget in serial version if result is ignored.
2802 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2803 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2805 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2806 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2807 (sched_analyze_insn): Update use of try_group_insn to
2808 sched_macro_fuse_insns.
2809 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2810 arguments that are not conditional jumps.
2812 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2814 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2815 family information. Handle BTVER2 cpu with cpuid family value.
2817 2014-08-04 Tom de Vries <tom@codesourcery.com>
2819 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2820 (glibc_2_11_or_earlier): Document effective-target keywords.
2822 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2824 * ipa-devirt.c (odr_type_warn_count): Add type.
2825 (possible_polymorphic_call_targets): Set it.
2826 (ipa_devirt): Use it.
2828 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2830 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2832 * ipa-devirt.c: Include hash-map.h
2833 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2834 (clear_speculation): Break out of ...
2835 (get_class_context): ... here; speed up handling obviously useless
2837 (odr_type_warn_count, decl_warn_count): New structures.
2838 (final_warning_record): New structure.
2839 (final_warning_records): New static variable.
2840 (possible_polymorphic_call_targets): Cleanup handling of
2841 speculative info; do not build speculation when user do not care;
2842 record info about warnings when asked for.
2843 (add_decl_warning): New function.
2844 (type_warning_cmp): New function.
2845 (decl_warning_cmp): New function.
2846 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2847 (gate): Enable pass when warnings are requested.
2848 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2851 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2853 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2855 (hash_map::remove): New method.
2856 (hash_map::traverse): New method.
2857 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2858 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2859 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2860 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2861 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2862 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2865 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2867 * hash-set.h: new File.
2868 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2869 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2870 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2871 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2872 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2873 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2874 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2875 varpool.c: Use hash_set instead of pointer_set.
2877 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2879 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2881 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2883 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2884 for frame access when strict_p is false.
2886 2014-08-01 Renlin Li <renlin.li@arm.com>
2887 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2889 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2890 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2891 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2893 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2895 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2896 aarch64_mem_pair_offset.
2898 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2900 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2902 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2903 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2905 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2907 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2909 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2912 * cgraphunit.c (analyze_functions): Use get_create rather than get
2913 for decls which are clones of abstract functions.
2915 2014-08-01 Martin Liska <mliska@suse.cz>
2917 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2918 * ipa-prop.h (count_formal_params): Global function created from static.
2919 * ipa-prop.c (count_formal_params): Likewise.
2920 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2921 profiles for semantically equivalent functions.
2922 * passes.c (do_per_function): If we load body of a function
2923 during WPA, this condition should behave same.
2924 * varpool.c (ctor_for_folding): More tolerant assert for variable
2925 aliases created during WPA.
2927 2014-08-01 Martin Liska <mliska@suse.cz>
2929 * doc/invoke.texi (Options That Control Optimization): Documentation
2930 for -foptimize-strlen introduced. Optimization levels default options
2933 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2935 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2936 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2937 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2939 * stor-layout.h (min_align_of_type): New prototype.
2940 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2941 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2943 * ubsan.c: Include builtins.h.
2944 (ubsan_expand_bounds_ifn): Change return type to bool,
2946 (ubsan_expand_null_ifn): Change return type to bool, change
2947 argument to gimple_stmt_iterator *. Handle both null and alignment
2948 sanitization, take type from ckind argument's type rather than
2950 (instrument_member_call): Removed.
2951 (instrument_mem_ref): Remove t argument, add mem and base arguments.
2952 Handle both null and alignment sanitization, don't say whole
2953 struct access is member access. Build 3 argument IFN_UBSAN_NULL
2954 call instead of 2 argument.
2955 (instrument_null): Adjust instrument_mem_ref caller. Don't
2956 instrument calls here.
2957 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
2959 * stor-layout.c (min_align_of_type): New function.
2960 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
2961 Or it into SANITIZE_UNDEFINED.
2962 * doc/invoke.texi (-fsanitize=alignment): Document.
2964 2014-07-31 Andi Kleen <ak@linux.intel.com>
2966 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
2968 2014-07-31 Andi Kleen <ak@linux.intel.com>
2970 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
2972 (vn_reference_compute_hash): Dito.
2973 (vn_nary_op_compute_hash): Dito.
2974 (vn_phi_compute_hash): Dito.
2975 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
2977 2014-07-31 Andi Kleen <ak@linux.intel.com>
2979 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
2980 Rename to inchash:add_expr_commutative. Convert to inchash.
2981 (iterative_hash_hashable_expr): Rename to
2982 inchash:add_hashable_expr. Convert to inchash.
2983 (avail_expr_hash): Dito.
2985 2014-07-31 Andi Kleen <ak@linux.intel.com>
2987 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
2990 2014-07-31 Andi Kleen <ak@linux.intel.com>
2992 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
2994 2014-07-31 Andi Kleen <ak@linux.intel.com>
2996 * Makefile.in (OBJS): Add rtlhash.o
2997 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
2998 (loc_checksum): Dito.
2999 (loc_checksum_ordered): Dito.
3000 (hash_loc_operands): Dito.
3002 (hash_loc_list): Dito.
3003 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3004 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3005 * rtlhash.c: New file.
3006 * rtlhash.h: New file.
3008 2014-07-31 Andi Kleen <ak@linux.intel.com>
3010 * inchash.h (inchash): Change inchash class to namespace.
3011 (class hash): ... Rename from inchash.
3012 (add_object): Move from macro to class template.
3013 * lto-streamer-out.c (hash_tree): Change inchash
3015 * tree.c (build_type_attribute_qual_variant): Dito.
3016 (type_hash_list): Dito.
3017 (attribute_hash_list): Dito.
3018 (iterative_hstate_expr): Rename to inchash::add_expr
3019 (build_range_type_1): Change inchash to inchash::hash
3020 and use hash::add_expr.
3021 (build_array_type_1): Dito.
3022 (build_function_type): Dito
3023 (build_method_type_directly): Dito.
3024 (build_offset_type): Dito.
3025 (build_complex_type): Dito.
3026 (make_vector_type): Dito.
3027 * tree.h (iterative_hash_expr): Dito.
3029 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3031 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3033 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3035 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3036 correct alphabetical position.
3037 (vpaddd_f64): Rewrite using builtins.
3038 (vpaddd_s64): Move to correct alphabetical position.
3041 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3044 * config/sh/sh.c (sh_legitimate_address_p,
3045 sh_legitimize_reload_address): Handle reg+reg address modes when
3046 ALLOW_INDEXED_ADDRESS is false.
3047 * config/sh/predicates.md (general_movsrc_operand,
3048 general_movdst_operand): Likewise.
3050 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3052 * config/aarch64/aarch64-builtins.c
3053 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3056 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3058 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3059 the generated mask based on BYTES_BIG_ENDIAN.
3060 (aarch64_simd_check_vect_par_cnst_half): New.
3061 * config/aarch64/aarch64-protos.h
3062 (aarch64_simd_check_vect_par_cnst_half): New.
3063 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3064 the check out to aarch64_simd_check_vect_par_cnst_half.
3065 (vect_par_cnst_lo_half): Likewise.
3066 * config/aarch64/aarch64-simd.md
3067 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3068 (move_hi_quad_<mode>): Always generate a low mask.
3070 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3072 * doc/invoke.texi (AVR Options): Add documentation about
3073 __AVR_DEVICE_NAME__ built-in macro.
3075 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3078 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3079 constraints are satisfied.
3080 (<shift>di3_neon): Likewise.
3082 2014-07-31 Richard Biener <rguenther@suse.de>
3084 PR tree-optimization/61964
3085 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3086 by structural equality.
3088 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3090 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3091 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3092 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3094 * gcc.c (sanitize_spec_function): Support new option.
3095 (SANITIZER_SPEC): Remove now redundant check.
3096 * opts.c (common_handle_option): Support new option.
3097 (finish_options): Check for incompatibilities.
3098 * toplev.c (process_options): Split userspace-specific checks.
3100 2014-07-31 Richard Biener <rguenther@suse.de>
3102 * lto-streamer.h (struct output_block): Remove global.
3103 (struct data_in): Remove labels, num_named_labels and
3105 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3106 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3108 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3111 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3112 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3113 (isolate_path): New argument to avoid inserting a trap.
3114 (find_implicit_erroneous_behaviour): Handle returning the address
3115 of a local variable.
3116 (find_explicit_erroneous_behaviour): Likewise.
3118 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3121 * toplev.c (init_random_seed): Move piece of code never called to
3123 (set_random_seed): see above.
3125 2014-07-31 Tom de Vries <tom@codesourcery.com>
3127 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3129 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3131 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3132 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3134 2014-07-31 Richard Biener <rguenther@suse.de>
3136 * data-streamer.h (streamer_write_data_stream): Declare here,
3138 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3139 * lto-cgraph.c (lto_output_node): Adjust.
3140 (lto_output_varpool_node): Likewise.
3141 * data-streamer-out.c (streamer_string_index): Likewise.
3142 (streamer_write_data_stream, lto_append_block): Move from ...
3143 * lto-section-out.c (lto_output_data_stream,
3144 lto_append_block): ... here.
3146 2014-07-30 Mike Stump <mikestump@comcast.net>
3148 * configure.ac: Also check for popen.
3149 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3150 * configure: Regenerate.
3151 * config.in: Regenerate.
3153 2014-07-30 Martin Jambor <mjambor@suse.cz>
3155 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3156 parameter to gimple.
3158 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3160 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3161 address as second parameter to __tpf_eh_return routine.
3163 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3165 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3168 2014-07-30 Tom Tromey <tromey@redhat.com>
3171 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3172 * doc/extend.texi (Type Attributes): Document designated_init
3175 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3177 * graphite-isl-ast-to-gimple.c:
3178 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3179 (gcc_expression_from_isl_expression): Pass type to
3180 gcc_expression_from_isl_ast_expr_id.
3182 2014-07-30 Richard Biener <rguenther@suse.de>
3184 * lto-streamer.h (lto_write_data): New function.
3185 * langhooks.c (lhd_append_data): Do not free block.
3186 * lto-section-out.c (lto_write_data): New function writing
3187 raw data to the current section.
3188 (lto_write_stream): Adjust for langhook semantic change.
3189 (lto_destroy_simple_output_block): Write header directly.
3190 * lto-opts.c (lto_write_options): Write options directly.
3191 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3192 (lto_output_toplevel_asms): Likewise.
3193 (copy_function_or_variable): Copy data directly.
3194 (write_global_references): Output index table directly.
3195 (lto_output_decl_state_refs): Likewise.
3196 (write_symbol): Write data directly.
3197 (produce_symtab): Adjust.
3198 (produce_asm_for_decls): Output header and refs directly.
3200 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3202 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3203 to speculative_targets
3204 (get_class_context): Fix handling of contextes without outer type;
3205 avoid matching non-polymorphic types in LTO.
3206 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3207 parameter to speculative_targetsp; handle speculation.
3208 (dump_possible_polymorphic_call_targets): Update dumping.
3210 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3212 * common.opt (Wodr): Enable by default.
3214 2014-07-29 Olivier Hainque <hainque@adacore.com>
3216 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3218 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3221 * gengtype.c (strtoken): New function.
3222 (create_user_defined_type): Replace strtok with strtoken.
3224 2014-07-29 Nathan Sidwell <nathan@acm.org>
3226 * gcov-io.c (gcov_var): Make hidden.
3227 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3228 (gcov_do_dump): Declare.
3229 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3231 2014-07-29 Martin Jambor <mjambor@suse.cz>
3233 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3234 parameter to gimple.
3235 (sra_modify_assign): Likewise.
3237 2014-07-29 Richard Biener <rguenther@suse.de>
3240 * expr.c (expand_expr_real_2): Revert last change.
3242 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3244 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3245 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3246 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3248 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3249 (contains_type_p): Forward declare.
3250 (polymorphic_call_target_hasher::hash): Hash speculative info.
3251 (polymorphic_call_target_hasher::equal): Compare speculative info.
3252 (get_class_context): Handle speuclation.
3253 (contains_type_p): Update.
3254 (get_polymorphic_call_info_for_decl): Update.
3255 (walk_ssa_copies): Break out from ...
3256 (get_polymorphic_call_info): ... here; set speculative context
3258 * ipa-prop.c (ipa_write_indirect_edge_info,
3259 ipa_read_indirect_edge_info): Stream speculative context.
3260 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3261 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3262 SPECULATIVE_MAYBE_DERIVED_TYPE).
3263 (possible_polymorphic_call_targets overriders): Update.
3264 (dump_possible_polymorphic_call_targets overriders): Update.
3265 (dump_possible_polymorphic_call_target_p overriders): Update.
3267 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3269 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3270 ipa-devirt path; fix thinko there.
3272 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3274 * config/i386/i386.c (ix86_return_in_memory): Replace one
3275 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3277 2014-07-28 Marek Polacek <polacek@redhat.com>
3279 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3281 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3283 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3284 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3285 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3286 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3287 (USE_LD_AS_NEEDED): Likewise.
3288 (ASM_APP_ON): Likewise.
3289 (ASM_APP_OFF): Likewise.
3290 (TARGET_POSIX_IO): Likewise.
3291 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3292 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3293 (USE_LD_AS_NEEDED): Likewise.
3294 (ASM_APP_ON): Likewise.
3295 (ASM_APP_OFF): Likewise.
3296 (TARGET_POSIX_IO): Likewise.
3298 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3301 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3302 operators other than the equality operators.
3304 2014-07-28 Richard Biener <rguenther@suse.de>
3307 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3308 sure to register SImode ones, not only >= word_mode ones.
3309 * expr.c (expand_expr_real_2): When expanding -ftrapv
3310 binops do not use OPTAB_LIB_WIDEN.
3312 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3315 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3316 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3317 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3318 inserting them in the insn stream.
3320 2014-07-28 Marek Polacek <polacek@redhat.com>
3323 * common.opt (Wodr): Add Var.
3325 2014-07-28 Richard Biener <rguenther@suse.de>
3327 PR tree-optimization/61921
3328 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3329 if there is a varpool node before dereferencing it.
3331 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3333 * graphite-sese-to-poly.c:
3334 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3335 id of the pbb), which contains pointer to the pbb1.
3337 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3339 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3341 * graphite-isl-ast-to-gimple.c:
3342 (graphite_create_new_guard): New function.
3343 (translate_isl_ast_node_if): New function.
3344 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3346 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3348 2014-07-27 Anthony Green <green@moxielogic.com>
3350 * config.gcc: Add moxie-*-moxiebox* configuration.
3351 * config/moxie/moxiebox.h: New file.
3353 2014-07-26 Andrew Pinski <apinski@cavium.com>
3355 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3356 from the read only register.
3358 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3360 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3361 as the allocation class if it isn't likely to be spilled.
3363 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3365 * rtl.h (tls_referenced_p): Declare.
3366 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3367 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3368 (mips_cannot_force_const_mem): Use tls_referenced_p.
3369 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3370 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3371 instead of pa_tls_referenced_p.
3372 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3373 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3374 (pa_legitimate_constant_p): Likewise.
3375 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3376 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3377 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3378 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3379 rs6000_tls_referenced_p.
3380 (rs6000_tls_symbol_ref_1): Delete.
3382 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3385 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3386 Optimize inverse of a VEC_CONCAT.
3388 2014-07-25 Xinliang David Li <davidxl@google.com>
3390 * params.def: New parameter.
3391 * coverage.c (get_coverage_counts): Check new flag.
3392 (coverage_compute_profile_id): Check new flag.
3393 (coverage_begin_function): Check new flag.
3394 (coverage_end_function): Check new flag.
3395 * value-prof.c (coverage_node_map_initialized_p): New function.
3396 (init_node_map): Populate map with all functions.
3397 * doc/invoke.texi: Document new parameter.
3399 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3400 Richard Biener <rguenther@suse.de>
3402 * lto-streamer-out.c (struct sccs): Turn to ...
3403 (class DFS): ... this one; refactor the DFS walk so it can
3404 be re-done on per-SCC basis.
3405 (DFS::DFS): New constructor.
3406 (DFS::~DFS): New destructor.
3407 (hash_tree): Add new MAP argument holding in-SCC hash values;
3408 remove POINTER_TYPE hashing hack.
3409 (scc_entry_compare): Rename to ...
3410 (DFS::scc_entry_compare): ... this one.
3411 (hash_scc): Rename to ...
3412 (DFS::hash_scc): ... this one; pass output_block instead
3413 of streamer_cache; work harder to get unique and stable SCC
3415 (DFS_write_tree): Rename to ...
3416 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3417 (lto_output_tree): Update.
3419 2014-07-25 Andi Kleen <ak@linux.intel.com>
3421 * lto-streamer-out.c (hash_tree): Convert to inchash.
3423 2014-07-25 Andi Kleen <ak@linux.intel.com>
3425 * tree.c (build_type_attribute_qual_variant): Use inchash.
3426 (type_hash_list): Dito.
3427 (attribute_hash_list): Dito
3428 (iterative_hstate_expr): Dito.
3429 (iterative_hash_expr): Dito.
3430 (build_range_type_1): Dito.
3431 (build_array_type_1): Dito.
3432 (build_function_type): Dito.
3433 (build_method_type_directly): Dito.
3434 (build_offset_type): Dito.
3435 (build_complex_type): Dito.
3436 (make_vector_type): Dito.
3437 * tree.h (iterative_hash_expr): Add compat wrapper.
3438 (iterative_hstate_expr): Add.
3440 2014-07-25 Andi Kleen <ak@linux.intel.com>
3442 * Makefile.in (OBJS): Add inchash.o.
3443 (PLUGIN_HEADERS): Add inchash.h.
3444 * ipa-devirt.c: Include inchash.h.
3445 * lto-streamer-out.c: Dito.
3446 * tree-ssa-dom.c: Dito.
3447 * tree-ssa-pre.c: Dito.
3448 * tree-ssa-sccvn.c: Dito.
3449 * tree-ssa-tail-merge.c: Dito.
3451 * tree.c (iterative_hash_hashval_t): Move to ...
3452 (iterative_hash_host_wide_int): Move to ...
3453 * inchash.c: Here. New file.
3454 * tree.h (iterative_hash_hashval_t): Move to ...
3455 (iterative_hash_host_wide_int): Move to ...
3456 * inchash.h: Here. New file.
3458 2014-07-25 Richard Biener <rguenther@suse.de>
3462 * fold-const.c (native_encode_int): Add and handle offset
3463 parameter to do partial encodings of expr.
3464 (native_encode_fixed): Likewise.
3465 (native_encode_real): Likewise.
3466 (native_encode_complex): Likewise.
3467 (native_encode_vector): Likewise.
3468 (native_encode_string): Likewise.
3469 (native_encode_expr): Likewise.
3470 * fold-const.c (native_encode_expr): Add offset parameter
3472 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3473 (fold_ctor_reference): Handle all reads from tcc_constant
3476 2014-07-25 Richard Biener <rguenther@suse.de>
3478 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3481 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3483 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3485 2014-07-24 Kyle McMartin <kyle@redhat.com>
3487 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3489 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3491 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3493 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3495 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3496 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3497 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3499 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3501 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3502 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3503 aggregate types. Instead, *all* aggregate types, except for single-
3504 element or homogeneous float/vector aggregates, are quadword-aligned
3505 if required by their type alignment. Issue -Wpsabi note when a type
3506 is now treated differently than before.
3508 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3510 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3511 does not fit fully into floating-point registers, and there is still
3512 space in the register parameter area, use GPRs to pass those parts
3513 of the argument. Issue -Wpsabi note if any parameter is now treated
3514 differently than before.
3515 (rs6000_arg_partial_bytes): Update.
3517 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3519 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3521 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3523 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3524 * toplev.c (initialize_rtl): Don't use it. Move previously
3525 "language-dependent" calls to...
3526 (backend_init): ...here.
3527 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3528 Assert that RTL initialization hasn't happend yet.
3530 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3532 PR rtl-optimization/61629
3533 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3534 they have already been initialized.
3536 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3539 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3540 DECL_INCOMING_RTL and entry_parm.
3541 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3542 * calls.c (load_register_parameters): Likewise argument values.
3543 (emit_library_call_value_1, store_one_arg): Likewise argument
3545 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3547 * explow.c (validize_mem): Modify the argument in-place.
3549 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3551 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3552 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3554 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3556 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3557 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3559 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3561 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3562 (aarch64_save_callee_saves): New parameter "skip_wb".
3563 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3565 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3567 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3569 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3571 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3573 * graphite-isl-ast-to-gimple.c:
3574 (graphite_create_new_loop): Add calling of isl_id_free to properly
3575 decrement reference counts.
3577 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3579 2014-07-24 Martin Liska <mliska@suse.cz>
3580 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3582 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3583 (rs6000_code_end): Likewise.
3585 2014-07-24 Martin Liska <mliska@suse.cz>
3587 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3588 symtab_node funtion used.
3589 (rs6000_xcoff_declare_object_name): Likewise.
3591 2014-07-24 Martin Liska <mliska@suse.cz>
3593 * cgraphunit.c (compile): Correct function used.
3595 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3597 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3600 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3603 * varasm.c (bss_initializer_p): Handle offlined ctors.
3604 (align_variable, get_variable_align): Likewise.
3605 (make_decl_one_only): Likewise.
3606 (default_binds_local_p_1): Likewise.
3607 (decl_binds_to_current_def_p): Likewise.
3608 (get_variable_section): Get constructor if it is offlined.
3609 (assemble_variable_contents): Sanity check that the caller
3610 streamed in the ctor in LTO.
3612 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3614 * graphite-isl-ast-to-gimple.c:
3615 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3616 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3617 isl_ast_op_pdiv_r to the different case.
3619 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3621 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3624 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3625 when flag_errno_math is on.
3627 2014-07-24 Martin Liska <mliska@suse.cz>
3629 * cgraph.h (varpool_node):
3630 (availability get_availability (void)):
3631 created from cgraph_variable_initializer_availability
3632 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3633 created from: cgraph_variable_initializer_availability
3634 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3635 (void finalize_named_section_flags (void)):
3636 created from varpool_finalize_named_section_flags
3637 (bool assemble_decl (void)): created from varpool_assemble_decl
3638 (void analyze (void)): created from varpool_analyze_node
3639 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3640 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3641 (void remove_initializer (void)): created from varpool_remove_initializer
3642 (tree get_constructor (void)): created from varpool_get_constructor
3643 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3644 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3645 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3646 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3647 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3648 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3649 (static bool output_variables (void)): created from varpool_output_variables
3650 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3651 created from varpool_extra_name_alias
3652 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3653 (static void dump_varpool (FILE *f)): created from dump_varpool
3654 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3655 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3656 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3657 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3658 (void assemble_aliases (void)): created from assemble_aliases
3660 2014-07-24 Martin Liska <mliska@suse.cz>
3662 * cgraph.h (symtab_node):
3663 (void register_symbol (void)): created from symtab_register_node
3664 (void remove (void)): created from symtab_remove_node
3665 (void dump (FILE *f)): created from dump_symtab_node
3666 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3667 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3668 (struct ipa_ref *add_reference (symtab_node *referred_node,
3669 enum ipa_ref_use use_type)): created from add_reference
3670 (struct ipa_ref *add_reference (symtab_node *referred_node,
3671 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3672 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3673 gimple stmt)): created from maybe_add_reference
3674 (bool semantically_equivalent_p (symtab_node *target)): created from
3675 symtab_semantically_equivalent_p
3676 (void remove_from_same_comdat_group (void)): created from
3677 remove_from_same_comdat_group
3678 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3679 symtab_add_to_same_comdat_group
3680 (void dissolve_same_comdat_group_list (void)): created from
3681 symtab_dissolve_same_comdat_group_list
3682 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3683 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3684 created from symtab_alias_ultimate_target
3685 (inline symtab_node *next_defined_symbol (void)): created from
3686 symtab_next_defined_symbol
3687 (bool resolve_alias (symtab_node *target)): created from
3688 symtab_resolve_alias
3689 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3690 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3691 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3692 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3693 (void set_section (const char *section)): created from set_section_1
3694 (enum availability get_availability (void)): created from symtab_node_availability
3695 (void make_decl_local (void)): created from symtab_make_decl_local
3696 (bool real_symbol_p (void)): created from symtab_read_node
3697 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3698 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3699 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3700 symtab_in_same_comdat_p;
3701 (bool address_taken_from_non_vtable_p (void)): created from
3702 address_taken_from_non_vtable_p
3703 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3704 (static void dump_table (FILE *)): created from dump_symtab
3705 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3706 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3707 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3708 symtab_used_from_object_file_p
3709 (void dump_base (FILE *)): created from dump_symtab_base
3710 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3711 (void unregister (void)): created from symtab_unregister_node
3712 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3713 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3714 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3715 symtab_nonoverwritable_alias_1
3716 * cgraph.h (cgraph_node):
3717 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3718 created from cgraph_remove_node_and_inline_clones
3719 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3720 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3721 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3722 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3723 created from cgraph_function_node
3724 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3725 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3726 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3727 created from cgraph_create_clone
3728 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3729 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3730 created from cgraph_create_virtual_clone
3731 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3732 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3733 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3734 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3735 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3736 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3737 created from cgraph_function_version_info
3738 (struct cgraph_function_version_info *insert_new_function_version (void)):
3739 created from insert_new_cgraph_node_version
3740 (struct cgraph_function_version_info *function_version (void)): created from
3741 get_cgraph_node_version
3742 (void analyze (void)): created from analyze_function
3743 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3744 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3745 tree real_alias) cgraph_add_thunk
3746 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3747 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3748 created from cgraph_function_or_thunk_node
3749 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3750 created from expand_thunk
3751 (void reset (void)): created from cgraph_reset_node
3752 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3753 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3754 (void remove (void)): created from cgraph_remove_node
3755 (void dump (FILE *f)): created from dump_cgraph_node
3756 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3757 (bool get_body (void)): created from cgraph_get_body
3758 (void release_body (void)): created from cgraph_release_function_body
3759 (void unnest (void)): created from cgraph_unnest_node
3760 (void make_local (void)): created from cgraph_make_node_local
3761 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3762 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3763 gcov_type count, int freq)): created from cgraph_create_edge
3764 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3765 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3766 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3767 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3768 created from cgraph_create_edge_including_clones
3769 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3770 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3771 (void remove_callers (void)): created from cgraph_node_remove_callers
3772 (void remove_callees (void)): created from cgraph_node_remove_callees
3773 (enum availability get_availability (void)): created from cgraph_function_body_availability
3774 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3775 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3776 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3777 (void call_duplication_hooks (cgraph_node *node2)): created from
3778 cgraph_call_node_duplication_hooks
3779 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3780 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3781 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3782 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3783 (void call_function_insertion_hooks (void)):
3784 created from cgraph_call_function_insertion_hooks
3785 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3786 (bool local_p (void)): created from cgraph_local_node
3787 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3788 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3789 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3790 (inline bool only_called_directly_or_aliased_p (void)):
3791 created from cgraph_only_called_directly_or_aliased_p
3792 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3793 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3794 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3795 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3796 (bool can_remove_if_no_direct_calls_p (void)):
3797 created from cgraph_can_remove_if_no_direct_calls_p
3798 (inline bool has_gimple_body_p (void)):
3799 created from cgraph_function_with_gimple_body_p
3800 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3801 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3802 (static inline void debug_cgraph (void)): created from debug_cgraph
3803 (static void record_function_versions (tree decl1, tree decl2)):
3804 created from record_function_versions
3805 (static void delete_function_version (tree decl)):
3806 created from delete_function_version
3807 (static void add_new_function (tree fndecl, bool lowered)):
3808 created from cgraph_add_new_function
3809 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3810 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3811 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3812 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3813 (static cgraph_node *get_for_asmname (tree asmname)):
3814 created from cgraph_node_for_asm
3815 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3816 created from cgraph_same_body_alias
3817 (static bool used_from_object_file_p_worker (cgraph_node *node,
3818 void *): new function
3819 (static bool non_local_p (cgraph_node *node, void *)):
3820 created from cgraph_non_local_node_p_1
3821 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3822 created from verify_cgraph
3823 (static bool make_local (cgraph_node *node, void *)):
3824 created from cgraph_make_node_local
3825 (static cgraph_node *create_alias (tree alias, tree target)):
3826 created from cgraph_create_function_alias
3827 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3828 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3829 created from cgraph_create_edge_1
3830 * cgraph.h (varpool_node):
3831 (void remove (void)): created from varpool_remove_node
3832 (void dump (FILE *f)): created from dump_varpool_node
3834 2014-07-24 Richard Biener <rguenther@suse.de>
3837 * tree-ssa-structalias.c (create_variable_info_for_1):
3838 Use varpool_get_constructor.
3839 (create_variable_info_for): Likewise.
3841 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3843 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3844 subtract outgoing area size when restoring stack_pointer_rtx.
3846 2014-07-24 Nick Clifton <nickc@redhat.com>
3848 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3849 that operations are taking place in parallel.
3850 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3852 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3854 * omp-low.c (extract_omp_for_data): Add missing break statement.
3856 2014-07-24 Richard Biener <rguenther@suse.de>
3858 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3859 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3860 and adjust MOVE_RATIO query accordingly.
3861 (estimate_num_insns): Adjust callers.
3862 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3863 * ipa-cp.c (gather_context_independent_values,
3864 estimate_local_effects): Likewise.
3865 * ipa-split.c (consider_split): Likewise.
3867 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3869 * config/i386/driver-i386.c: Remove names of unused arguments and
3870 unnecessary unused attributes.
3871 * config/i386/host-mingw32.c: Likewise.
3872 * config/i386/i386.c: Likewise.
3873 * config/i386/winnt-stubs.c: Likewise.
3874 * config/i386/winnt.c: Likewise.
3876 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3878 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3879 (aarch64_gen_loadwb_pair): New helper function.
3880 (aarch64_expand_epilogue): Simplify code using new helper functions.
3881 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3883 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3885 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3886 (aarch64_gen_storewb_pair): New helper function.
3887 (aarch64_expand_prologue): Simplify code using new helper functions.
3888 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3890 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3892 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3893 Rename to aarch64_save_callee_saves, remove restore code.
3894 (aarch64_restore_callee_saves): New function.
3896 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3898 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3899 (aarch64_save_callee_saves): New function to handle reg save
3900 for both core and vectore regs.
3902 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3904 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3905 (aarch64_gen_store_pair): New helper function.
3906 (aarch64_save_or_restore_callee_save_registers)
3907 (aarch64_save_or_restore_fprs): Use new helper functions.
3909 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3911 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3912 (aarch64_save_or_restore_callee_save_registers)
3913 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3915 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3917 * config/aarch64/aarch64.c
3918 (aarch64_save_or_restore_callee_save_registers)
3919 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3923 * config/aarch64/aarch64.c
3924 (aarch64_save_or_restore_callee_save_registers)
3925 (aarch64_save_or_restore_fprs): Remove 'increment'.
3927 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3929 * config/aarch64/aarch64.c
3930 (aarch64_save_or_restore_callee_save_registers)
3931 (aarch64_save_or_restore_fprs): Use register offset in
3932 cfun->machine->frame.reg_offset.
3934 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3936 * config/aarch64/aarch64.c
3937 (aarch64_save_or_restore_callee_save_registers)
3938 (aarch64_save_or_restore_fprs): Remove base_rtx.
3940 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3942 * config/aarch64/aarch64.c
3943 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
3944 to 'start_offset'. Remove local variable 'start_offset'.
3946 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3948 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
3949 type to HOST_WIDE_INT.
3951 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3953 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3954 (aarch64_save_or_restore_fprs)
3955 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
3957 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3959 * config/arm/t-rtems-eabi: Add
3960 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
3961 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
3962 mbig-endian/mthumb/march=armv7-r, and
3963 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
3966 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3967 Chris Johns <chrisj@rtems.org>
3968 Joel Sherrill <joel.sherrill@oarcorp.com>
3970 * config.gcc: Add nios2-*-rtems*.
3971 * config/nios2/rtems.h: New file.
3972 * gcc/config/nios2/t-rtems: New file.
3974 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
3977 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
3978 constant numbers, not general constants.
3979 (rs6000_expand_vector_init): Ditto.
3981 2014-07-23 Nathan Sidwell <nathan@acm.org>
3983 * gcov-tool.c (gcov_list): Declare here.
3984 (set_gcov_list): Remove.
3985 (gcov_output_files): Set gcov_list directly.
3987 2014-07-23 Host Schirmeier <horst@schirmeier.com>
3989 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
3991 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3993 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
3994 callee-saved registers are available for padding purpose
3995 and r3 is not mandatory, then prefer use those callee-saved
3998 2014-07-23 Richard Biener <rguenther@suse.de>
4000 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4001 * combine.c: Include statistics.h and params.h.
4002 (combine_instructions): Guard three and four insn combines
4003 with max-combine-insns value. Record statistics for combines
4005 * doc/invoke.texi (max-combine-insns): Document new param.
4007 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4009 * graphite-isl-ast-to-gimple.c:
4010 (translate_isl_ast_node_block): New function.
4011 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4013 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4014 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4016 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4018 * graphite-isl-ast-to-gimple.c:
4019 (get_max_schedule_dimensions): New function.
4020 (extend_schedule): Likewise.
4021 (generate_isl_schedule): Add calling of extend_schedule and
4022 get_max_schedule_dimensions.
4024 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4026 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4027 (case UNSPEC): Handle UNSPEC_RBIT.
4029 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4031 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4032 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4034 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4036 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4038 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4040 * graphite-isl-ast-to-gimple.c:
4041 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4043 (build_iv_mapping): New function.
4044 (translate_isl_ast_node_user): Likewise.
4045 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4047 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4048 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4049 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4051 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4054 * config/arm/arm.md (setmem): New pattern.
4055 * config/arm/arm-protos.h (struct tune_params): New fields.
4056 (arm_gen_setmem): New prototype.
4057 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4058 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4059 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4060 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4061 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4062 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4063 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4064 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4065 (arm_const_inline_cost): New function.
4066 (arm_block_set_max_insns): New function.
4067 (arm_block_set_non_vect_profit_p): New function.
4068 (arm_block_set_vect_profit_p): New function.
4069 (arm_block_set_unaligned_vect): New function.
4070 (arm_block_set_aligned_vect): New function.
4071 (arm_block_set_unaligned_non_vect): New function.
4072 (arm_block_set_aligned_non_vect): New function.
4073 (arm_block_set_vect, arm_gen_setmem): New functions.
4075 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4077 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4079 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4082 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4083 out of #ifdef __OPTIMIZE__.
4085 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4087 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4088 different trapping status if -fnon-call-exceptions is enabled.
4090 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4092 * expr.c (store_field): Handle VOIDmode for calls that return values
4093 in multiple locations.
4095 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4097 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4098 (altivec_vsldoi_<mode>): Likewise.
4100 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4102 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4103 to the number of characters in the line.
4105 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4107 * graphite-isl-ast-to-gimple.c: Add using of
4108 build_nonstandard_integer_type instead of int128_integer_type_node.
4110 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4112 * toplev.c (output_stack_usage): Adjust the location of the warning.
4114 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4116 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4117 (*membar_storeload): Disable for LEON3.
4119 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4121 PR rtl-optimization/61461
4122 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4124 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4127 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4128 Fix instruction constraint.
4129 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4131 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4133 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4135 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4137 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4138 GNU coding standards.
4139 (nds32_register_move_cost): Likewise.
4140 (nds32_memory_move_cost): Likewise.
4141 (nds32_address_cost): Likewise.
4143 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4145 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4147 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4149 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4150 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4151 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4152 (HAVE_sync_compare_and_swapqi): Define.
4153 (HAVE_sync_compare_and_swaphi): Likewise.
4154 (HAVE_sync_compare_and_swapsi): Likewise.
4156 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4158 * config/mips/p5600.md: Add missing cpu tests.
4160 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4162 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4163 (vmla_f64): Likewise.
4164 (vfms_f64): Likewise.
4165 (vmls_f64): Likewise.
4167 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4169 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4170 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4172 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4174 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4175 (vmlal_high_lane_s32): Likewise.
4176 (vmlal_high_lane_u16): Likewise.
4177 (vmlal_high_lane_u32): Likewise.
4178 (vmlsl_high_lane_s16): Likewise.
4179 (vmlsl_high_lane_s32): Likewise.
4180 (vmlsl_high_lane_u16): Likewise.
4181 (vmlsl_high_lane_u32): Likewise.
4183 2014-07-17 Terry Guo <terry.guo@arm.com>
4185 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4186 (alus_reg): Renamed to alus_sreg.
4187 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4188 from alu_reg to alu_sreg. Change type of dsp instructions from
4189 alu_reg to alu_dsp_reg.
4190 * config/arm/thumb1.md: Likewise.
4191 * config/arm/thumb2.md: Likewise.
4192 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4193 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4194 with alu_sreg and alus_sreg.
4195 * config/arm/arm1026ejs.md (alu_op): Likewise.
4196 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4197 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4198 * config/arm/fa526.md (526_alu_op): Likewise.
4199 * config/arm/fa606te.md (606te_alu_op): Likewise.
4200 * config/arm/fa626te.md (626te_alu_op): Likewise.
4201 * config/arm/fa726te.md (726te_alu_op): Likewise.
4202 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4203 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4204 alu_sreg, alu_dsp_reg and alus_sreg.
4205 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4206 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4207 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4208 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4209 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4210 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4211 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4212 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4213 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4214 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4215 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4216 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4217 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4218 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4219 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4220 alus_reg to alus_sreg.
4222 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4224 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4227 2014-07-17 Richard Biener <rguenther@suse.de>
4229 PR rtl-optimization/61801
4230 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4231 don't set reg_pending_barrier if it appears in a debug-insn.
4233 2014-07-16 DJ Delorie <dj@redhat.com>
4235 * config/rx/rx.c (rx_option_override): Fix alignment values.
4236 (rx_align_for_label): Likewise.
4238 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4241 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4242 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4243 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4245 (cris_print_index, cris_print_operand, cris_constant_index_p)
4246 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4247 (cris_address_cost): Ditto last CONSTANT_P.
4248 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4249 callers changed. Yield cris_offsettable_symbol for non-PIC
4250 constant symbolic expressions including labels. Yield cris_unspec
4252 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4253 target to pic_offset_table_rtx for calls that will likely go
4254 through PLT, const0_rtx when they can't. All callers changed.
4255 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4256 symbolic expressions to be PICified. Remove second, redundant,
4257 assert on can_create_pseudo_p returning non-zero. Use
4258 replace_equiv_address_nv, not replace_equiv_address, for final
4260 * config/cris/cris.md ("movsi"): Move variable t to pattern
4261 toplevel. Adjust assert for new cris_symbol_type member. Use
4262 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4263 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4265 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4266 ("call", "call_value"): Use second incoming operand as a marker
4267 for pic-offset-table-register being used.
4268 ("*expanded_call_non_v32", "*expanded_call_v32")
4269 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4270 second incoming operand to CALL, match cris_call_type_marker.
4271 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4272 ("*expanded_call_side"): Ditto. Fix typo in comment.
4273 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4275 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4276 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4277 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4278 users changed. Add members cris_offsettable_symbol and cris_unspec.
4279 (cris_symbol_type): Rename from cris_pic_symbol_type.
4280 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4282 * config/cris/cris-protos.h (cris_symbol_type_of,
4283 cris_expand_pic_call_address): Adjust prototypes.
4284 (cris_legitimate_constant_p): New prototype.
4286 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4287 an existing tmake_file. Don't add t-slibgcc and t-linux.
4289 2014-07-17 Jason Merrill <jason@redhat.com>
4292 * symtab.c (symtab_remove_from_same_comdat_group): Also
4293 set_comdat_group to NULL_TREE.
4294 (verify_symtab): Fix diagnostic.
4296 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4299 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4301 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4303 Support location tracking for built-in macro tokens
4304 * input.h (is_location_from_builtin_token): New function declaration.
4305 * input.c (is_location_from_builtin_token): New function definition.
4306 * toplev.c (general_init): Tell libcpp what the pre-defined
4307 spelling location for built-in tokens is.
4309 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4311 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4312 on the FUNCTION_DECL.
4314 2014-07-16 Richard Biener <rguenther@suse.de>
4317 * doc/extend.texi (always_inline): Clarify.
4319 2014-07-15 Eric Christopher <echristo@gmail.com>
4321 * doc/invoke.texi (Link Options): Document -z option.
4323 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4325 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4326 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4328 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4330 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4332 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4334 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4335 varpool_assemble_decl.
4336 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4339 2014-07-15 Michael Matz <matz@suse.de>
4341 PR rtl-optimization/61772
4342 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4344 2014-07-15 Richard Biener <rguenther@suse.de>
4346 * opts.c (default_options_table): Disable bit-ccp at -Og.
4348 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4350 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4352 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4354 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4355 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4356 call langhook for unknown declaration.
4357 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4358 * tree.h (DECL_ARGUMENTS): Update.
4359 * print-tree.c (print_node): Update.
4360 * tree-core.h (tree_decl_non_common): Remove arguments.
4361 (tree_function_decl): Add arguments.
4363 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4365 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4367 2014-07-14 Richard Biener <rguenther@suse.de>
4369 PR tree-optimization/61779
4370 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4371 simplifying a condition.
4373 2014-07-14 Richard Biener <rguenther@suse.de>
4375 * builtins.c (c_strlen): Make only_value == 2 really only
4376 affect warning generation.
4378 2014-07-14 Richard Biener <rguenther@suse.de>
4380 PR tree-optimization/61757
4381 PR tree-optimization/61783
4382 PR tree-optimization/61787
4383 * tree-ssa-dom.c (record_equality): Revert canonicalization
4384 change and add comment.
4385 (propagate_rhs_into_lhs): Revert previous fix, removing
4386 loop depth restriction again.
4388 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4390 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4391 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4392 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4393 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4394 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4395 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4396 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4398 2014-07-14 Richard Biener <rguenther@suse.de>
4400 * cgraph.h (decl_in_symtab_p): Make inline.
4402 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4405 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4408 * config/i386/i386.c (classify_argument): Don't merge classes above
4411 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4413 * cgraph.h (symtab_node): Add nonzero_address.
4414 (decl_in_symtab_p): Break out from ...
4415 (symtab_get_node): ... here.
4416 * fold-const.c: Include cgraph.h
4417 (tree_single_nonzero_warnv_p): Use symtab to determine
4418 if symbol is non-zero.
4419 * symtab.c (symtab_node::nonzero_address): New method.
4421 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4423 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4424 forgotten in previous commit.
4426 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4428 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4430 * ipa-devirt.c: Include stor-layout.h and intl.h
4431 (odr_subtypes_equivalent_p): New function.
4432 (warn_odr): New function.
4433 (warn_type_mismatch): New function.
4434 (odr_types_equivalent_p): New function.
4435 (add_type_duplicate): Use it.
4436 * common.opt (Wodr): New flag.
4437 * doc/invoke.texi (Wodr): Document new warning.
4439 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4441 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4442 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4443 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4444 (varpool_get_constructor): Push CTORS_IN timevar.
4445 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4447 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4449 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4450 Remove VOID_FTYPE_PUSHORT.
4451 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4452 Change code to USHORT_FTYPE_VOID.
4453 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4454 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4455 (ix86_atomic_assign_expand_fenv): Update for
4456 __builtin_ia32_fnstsw changes.
4457 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4458 (fnstsw): Change operand 0 to nonimmediate operand.
4460 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4462 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4463 (varpool_get_constructor): New function.
4464 (varpool_ctor_useable_for_folding_p): Break out from ...
4465 (ctor_for_folding): ... here; use varpool_get_constructor.
4466 (varpool_assemble_decl): Likewise.
4467 * lto-streamer.h (struct output_block): Turn cgraph_node
4469 (lto_input_variable_constructor): Declare.
4470 * ipa-visibility.c (function_and_variable_visibility): Use
4471 varpool_get_constructor.
4472 * cgraph.h (varpool_get_constructor): Declare.
4473 (varpool_ctor_useable_for_folding_p): New function.
4474 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4475 parameter; return error_mark_node for non-trivial constructors.
4476 (lto_write_tree_1, DFS_write_tree): Update use of
4477 get_symbol_initial_value.
4478 (output_function): Update initialization of symbol.
4479 (output_constructor): New function.
4480 (copy_function): Rename to ..
4481 (copy_function_or_variable): ... this one; handle vars too.
4482 (lto_output): Output variable sections.
4483 * lto-streamer-in.c (input_constructor): New function.
4484 (lto_read_body): Rename from ...
4485 (lto_read_body_or_constructor): ... this one; handle vars too.
4486 (lto_input_variable_constructor): New function.
4487 * ipa-prop.c (ipa_prop_write_jump_functions,
4488 ipa_prop_write_all_agg_replacement): Update.
4489 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4490 (output_cgraph_opt_summary): Set symbol to NULL.
4492 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4494 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4495 non-polymorphic types.
4496 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4497 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4498 of types is not polymorphic.
4500 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4502 * lra-constraints.c (remove_inheritance_pseudos): Process
4503 destination pseudo too.
4505 2014-07-11 Rong Xu <xur@google.com>
4507 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4510 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4512 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4513 * config/avr/avr-devices.c (AVR_MCU): Same.
4514 (avr_mcu_types): add text start value to end of device list.
4515 * config/avr/avr-mcus.def: Add text section start for all devices.
4516 (ata5782): Add new avr5 device.
4518 * config/avr/avr-tables.opt: Regenerate.
4519 * config/avr/avr.h: Add declaration for text section start handler.
4520 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4522 (LINK_SPEC): Include text section start handler to linker spec.
4523 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4524 pass -Ttext option to linker if the text section start for the device
4526 * config/avr/t-multilib: Regenerate.
4527 * doc/avr-mmcu.texi: Regenerate.
4529 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4531 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4532 * config/rs6000/aix52.h (LINK_SPEC): Same.
4533 * config/rs6000/aix53.h (LINK_SPEC): Same.
4534 * config/rs6000/aix61.h (LINK_SPEC): Same.
4535 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4537 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4539 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4540 (graphite_verify): New function.
4541 (ivs_params_clear): New function.
4542 (gcc_expression_from_isl_ast_expr_id): New function.
4543 (gcc_expression_from_isl_expr_int): New function.
4544 (binary_op_to_tree): New function.
4545 (ternary_op_to_tree): New function.
4546 (unary_op_to_tree): New function.
4547 (nary_op_to_tree): New function.
4548 (gcc_expression_from_isl_expr_op): New function.
4549 (gcc_expression_from_isl_expression): New function.
4550 (graphite_create_new_loop): New function.
4551 (translate_isl_ast_for_loop): New function.
4552 (get_upper_bound): New function.
4553 (graphite_create_new_loop_guard): New function.
4554 (translate_isl_ast_node_for): New function.
4555 (translate_isl_ast): New function.
4556 (add_parameters_to_ivs_params): New function.
4557 (scop_to_isl_ast): New parameter ip.
4558 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4560 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4562 * config/xtensa/predicates.md (call expander): Update for
4563 DECL_SECTION_NAME being string.
4565 2014-07-11 Richard Biener <rguenther@suse.de>
4568 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4569 can be implemented with a single load followed by a single store.
4570 (c_strlen): Only warn when only_value is not 2.
4572 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4574 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4576 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4579 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4580 (*movhi_bytes): Likewise.
4581 (*arm_movqi_insn): Likewise.
4583 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4586 * config/alpha/alpha.c: Include tree-pass.h, context.h
4588 (pass_data_handle_trap_shadows): New pass.
4589 (pass_handle_trap_shadows::gate): New pass gate function.
4590 (make_pass_handle_trap_shadows): New function.
4591 (rest_of_handle_trap_shadows): Ditto.
4593 (alpha_align_insns_1): Rename from alpha_align_insns.
4594 (pass_data_align_insns): New pass.
4595 (pass_align_insns::gate): New pass gate function.
4596 (make_pass_aling_insns): New function.
4597 (rest_of_align_insns): Ditto.
4598 (alpha_align_insns): Ditto.
4600 (alpha_option_override): Declare handle_trap_shadows info
4601 and align_insns_info. Register handle_trap_shadows and align_insns
4603 (alpha_reorg): Do not call alpha_trap_shadows and
4604 alpha_align_insn from here.
4606 (alpha_pad_function_end): Do not skip BARRIERs.
4608 2014-07-10 Rong Xu <xur@google.com>
4610 Add gcov-tool: an offline gcda profile processing tool support.
4611 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4612 (gcov_is_error): Ditto.
4613 (gcov_read_string): Ditto.
4614 (gcov_read_sync): Ditto.
4615 * gcov-io.h: Move counter defines to gcov-counter.def.
4616 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4617 * coverage.c: Ditto.
4618 * gcov-tool.c: Offline gcda profile processing tool.
4619 (unlink_gcda_file): Remove one gcda file.
4620 (unlink_profile_dir): Remove gcda files from the profile path.
4621 (gcov_output_files): Output gcda files to an output dir.
4622 (profile_merge): Merge two profiles in directory.
4623 (print_merge_usage_message): Print merge usage.
4624 (merge_usage): Print merge usage and exit.
4625 (do_merge): Driver for profile merge sub-command.
4626 (profile_rewrite): Rewrite profile.
4627 (print_rewrite_usage_message): Print rewrite usage.
4628 (rewrite_usage): Print rewrite usage and exit.
4629 (do_rewrite): Driver for profile rewrite sub-command.
4630 (print_usage): Print gcov-info usage and exit.
4631 (print_version): Print gcov-info version.
4632 (process_args): Process arguments.
4633 (main): Main routine for gcov-tool.
4634 * Makefile.in: Build and install gcov-tool.
4635 * gcov-counter.def: New file split from gcov-io.h.
4636 * doc/gcc.texi: Include gcov-tool.texi.
4637 * doc/gcov-tool.texi: Document for gcov-tool.
4639 2014-07-10 Richard Biener <rguenther@suse.de>
4641 PR tree-optimization/61757
4642 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4643 (propagate_rhs_into_lhs): Revert part of last change.
4645 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4647 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4650 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4653 * function.c (allocate_struct_function): Revert r188667 change.
4655 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4657 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4659 * doc/install.texi: Remove links to defunct package providers for
4662 2014-07-09 Tom de Vries <tom@codesourcery.com>
4664 * final.c (get_call_fndecl): Declare.
4665 (self_recursive_call_p): New function.
4666 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4668 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4670 * ipa-devirt.c (record_node): Walk through aliases.
4672 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4674 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4676 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4679 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4681 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4683 * ipa-visibility.c (function_and_variable_visibility): Remove
4684 temporary hack disabling local aliases on AIX.
4686 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4688 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4689 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4691 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4693 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4694 * rs6000/rs6000.c: Inline output of .set instruction.
4695 (declare_alias_data): New struct.
4696 (rs6000_declare_alias): New function.
4697 (rs6000_xcoff_declare_function_name): Use it.
4698 (rs6000_xcoff_declare_object_name): New function.
4699 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4700 (ASM_OUTPUT_DEF): Turn to empty definition.
4702 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4705 * hash-table.h: use hash_table::value_type instead of
4706 Descriptor::value_type in the return types of several methods.
4708 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4710 * tree-pass.h (pass_data): Remove has_execute member.
4711 * passes.c (execute_one_pass): Don't check pass->has_execute.
4712 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4713 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4714 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4715 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4716 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4717 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4718 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4719 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4720 gimple-low.c, gimple-ssa-isolate-paths.c,
4721 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4722 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4723 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4724 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4725 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4726 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4727 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4728 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4729 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4730 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4731 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4732 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4733 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4734 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4735 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4736 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4737 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4738 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4739 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4740 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4741 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4742 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4743 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4744 web.c: Remove initializer for pass_data::has_execute.
4746 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4748 * graphite-htab.h: Use hash_map instead of hash_table.
4749 * graphite-clast-to-gimple.c: Adjust.
4750 * passes.c: Use hash_map instead of hash_table.
4752 * sese.h: Remove now unused code.
4754 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4757 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4760 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4762 PR rtl-optimization/61673
4763 * combine.c (simplify_comparison): Test just mode's sign bit
4764 in tmode rather than the sign bit and any bits above it.
4766 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4768 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4769 Add __isl_give to the declaration.
4770 (generate_isl_schedule): Likewise.
4771 (scop_to_isl_ast): Likewise.
4773 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4775 * config/arm/arm.c (cortexa5_extra_costs): New table.
4776 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4778 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4780 PR tree-optimization/61725
4781 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4782 range, use range_includes_zerop_p instead of integer_zerop on
4783 vr0->min, only use log2 of max if min is not negative.
4785 2014-07-08 Richard Biener <rguenther@suse.de>
4787 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4788 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4789 restriction on loop depth difference.
4790 (record_equality): Likewise.
4791 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4792 (loop_depth_of_name): Remove.
4793 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4794 restriction on loop depth difference.
4795 (init_copy_prop): Likewise.
4797 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4799 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4801 (walk_aliased_vdefs): Likewise.
4802 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4803 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4804 (detect_type_change_from_memory_writes): Check if entry was reached.
4806 2014-07-08 Richard Biener <rguenther@suse.de>
4808 PR tree-optimization/61681
4809 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4810 NONLOCAL inside ESCAPED.
4812 2014-07-08 Richard Biener <rguenther@suse.de>
4814 PR tree-optimization/61680
4815 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4816 Handle properly all read-write dependences with group accesses.
4818 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4820 PR tree-optimization/61576
4821 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4822 block containing reduction statement is predecessor of phi basi block.
4824 2014-07-08 Marek Polacek <polacek@redhat.com>
4827 * fold-const.c (round_up_loc): Change the parameter type.
4829 * fold-const.h (round_up_loc): Adjust declaration.
4830 * stor-layout.c (finalize_record_size): Check for too large types.
4832 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4834 * symtab.c: Include calls.h.
4835 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4837 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4839 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4840 little-endian code generation.
4841 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4842 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4843 (spe_evmergehilo): Rename to...
4844 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4845 (spe_evmergelo): Rename to...
4846 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4847 (spe_evmergelohi): Rename to...
4848 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4849 (spe_evmergehi, spe_evmergehilo): New expanders.
4850 (spe_evmergelo, spe_evmergelohi): Likewise.
4851 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4852 (*frob_tf_ti): Likewise.
4853 (*frob_<mode>_di_2): Likewise.
4854 (*frob_tf_di_8_2): Likewise.
4855 (*frob_di_<mode>): Likewise.
4856 (*frob_ti_tf): Likewise.
4857 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4858 (*frob_ti_<mode>_8_2): Likewise.
4859 (*frob_ti_tf_2): Likewise.
4860 (mov_si<mode>_e500_subreg0): Rename to...
4861 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4863 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4864 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4865 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4866 the big endianness only.
4867 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4868 (*mov_si<mode>_e500_subreg0_2): Rename to...
4869 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4870 big big endianness only.
4871 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4872 (*mov_si<mode>_e500_subreg4): Rename to...
4873 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4875 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4876 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4877 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4878 the big endianness only.
4879 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4881 (*mov_si<mode>_e500_subreg4_2): Rename to...
4882 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4884 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4885 (*mov_sitf_e500_subreg8): Rename to...
4886 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4888 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4889 (*mov_sitf_e500_subreg8_2): Rename to...
4890 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4892 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4893 (*mov_sitf_e500_subreg12): Rename to...
4894 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4896 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4897 (*mov_sitf_e500_subreg12_2): Rename to...
4898 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4900 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4902 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4904 * asan.c (instrument_strlen_call): Do not instrument first byte
4905 in strlen if already instrumented.
4907 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4909 * config/arm/arm.opt (mwords-little-endian): Delete.
4910 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4911 of TARGET_LITTLE_WORDS.
4912 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4913 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4915 * doc/invoke.texi: Remove references to -mwords-little-endian.
4917 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4919 * expmed.c (struct init_expmed_rtl): Change all fields but
4920 pow2 and cint from struct rtx_def to rtx.
4921 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4922 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4925 2014-07-06 Marek Polacek <polacek@redhat.com>
4928 * doc/invoke.texi: Document -Wsizeof-array-argument.
4930 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4932 * wide-int.h (wide_int_storage): Change declaration from struct
4935 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4937 * cgraph.c (cgraph_create_indirect_edge): Update call of
4938 get_polymorphic_call_info.
4939 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4940 (possible_polymorphic_call_targets): Add parameter call.
4941 (decl_maybe_in_construction_p): New predicate.
4942 (get_polymorphic_call_info): Add parameter call;
4943 use decl_maybe_in_construction_p.
4944 * gimple-fold.c (fold_gimple_assign): Update use of
4945 possible_polymorphic_call_targets.
4946 (gimple_fold_call): Likewise.
4947 * ipa-prop.c: Inlcude calls.h
4948 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
4949 (param_type_may_change_p): New predicate.
4950 (detect_type_change_from_memory_writes): Break out from ...
4951 (detect_type_change): ... this one; use param_type_may_change_p.
4952 (detect_type_change_ssa): Use param_type_may_change_p.
4953 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
4955 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
4958 * config/arm/arm-protos.h (arm_legitimate_address_p,
4959 arm_is_constant_pool_ref): Add prototypes.
4960 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
4961 (arm_is_constant_pool_ref) New function.
4962 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
4963 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
4964 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
4965 operand. Remove pool_range and neg_pool_range attributes.
4966 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
4967 pool_range and neg_pool_range attributes.
4968 * config/arm/constraints.md (Uh): New constraint.
4969 (Uq): Don't allow constant pool references.
4971 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
4973 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
4974 (move_lo_quad_internal_be_<mode>): Likewise.
4975 (move_lo_quad_<mode>): Convert to define_expand.
4976 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
4977 (aarch64_simd_move_hi_quad_be_<mode>): New.
4978 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
4979 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
4980 (aarch64_combinez_be<mode>): New.
4981 (aarch64_combine<mode>): Convert to define_expand.
4982 (aarch64_combine_internal<mode>): New.
4983 (aarch64_simd_combine<mode>): Remove bogus RTL description.
4985 2014-07-04 Tom de Vries <tom@codesourcery.com>
4987 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
4988 combination of earlyclobber and read/write modifiers.
4990 2014-07-04 Tom de Vries <tom@codesourcery.com>
4992 * config/aarch64/aarch64-simd.md
4993 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
4995 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
4998 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5000 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5003 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5005 PR tree-optimization/61684
5006 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5007 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5009 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5010 Kito Cheng <kito@0xlab.org>
5011 Monk Chiang <sh.chiang04@gmail.com>
5013 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5014 (nds32_symbol_load_store_p): Move to ...
5015 (nds32_fp_as_gp_check_available): Move to ...
5016 * config/nds32/nds32-fp-as-gp.c: ... here.
5017 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5020 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5021 Kito Cheng <kito@0xlab.org>
5022 Monk Chiang <sh.chiang04@gmail.com>
5024 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5025 (nds32_expand_store_multiple): Move to ...
5026 (nds32_expand_movmemqi): Move to ...
5027 * config/nds32/nds32-memory-manipulation.c: ... here.
5029 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5030 Kito Cheng <kito@0xlab.org>
5031 Monk Chiang <sh.chiang04@gmail.com>
5033 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5034 (nds32_output_casesi_pc_relative): Move to ...
5035 (nds32_output_casesi): Move to ...
5036 (nds32_mem_format): Move to ...
5037 (nds32_output_16bit_store): Move to ...
5038 (nds32_output_16bit_load): Move to ...
5039 (nds32_output_32bit_store): Move to ...
5040 (nds32_output_32bit_load): Move to ...
5041 (nds32_output_32bit_load_s): Move to ...
5042 (nds32_output_stack_push): Move to ...
5043 (nds32_output_stack_pop): Move to ...
5044 * config/nds32/nds32-md-auxiliary.c: ... here.
5046 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5047 Ling-Hua Tseng <uranus@tinlans.org>
5049 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5050 the purpose of this file.
5052 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5053 Kito Cheng <kito@0xlab.org>
5054 Monk Chiang <sh.chiang04@gmail.com>
5056 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5057 (nds32_address_cost): Move implementation to ...
5058 * config/nds32/nds32-cost.c: ... here.
5059 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5060 (nds32_address_cost_impl): Declare.
5062 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5063 Kito Cheng <kito@0xlab.org>
5064 Monk Chiang <sh.chiang04@gmail.com>
5066 * config/nds32/nds32.c
5067 (nds32_consecutive_registers_load_store_p): Move to ...
5068 (nds32_valid_multiple_load_store): Move to ...
5069 (nds32_valid_stack_push_pop): Move to ...
5070 (nds32_can_use_bclr_p): Move to ...
5071 (nds32_can_use_bset_p): Move to ...
5072 (nds32_can_use_btgl_p): Move to ...
5073 (nds32_can_use_bitci_p): Move to ...
5074 * config/nds32/nds32-predicates.c: ... here.
5076 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5077 Kito Cheng <kito@0xlab.org>
5078 Monk Chiang <sh.chiang04@gmail.com>
5080 * config/nds32/nds32.c
5081 (nds32_expand_builtin_null_ftype_reg): Move to ...
5082 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5083 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5084 (nds32_init_builtins): Move implementation to ...
5085 (nds32_expand_builtin): Move implementation to ...
5086 * config/nds32/nds32-intrinsic.c: ... here.
5087 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5088 (nds32_expand_builtin_impl): Declare.
5090 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5091 Kito Cheng <kito@0xlab.org>
5092 Monk Chiang <sh.chiang04@gmail.com>
5094 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5095 (nds32_emit_section_tail_template): Move to ...
5096 (nds32_emit_isr_jmptbl_section): Move to ...
5097 (nds32_emit_isr_vector_section): Move to ...
5098 (nds32_emit_isr_reset_conten): Move to ...
5099 (nds32_check_isr_attrs_conflict): Move to ...
5100 (nds32_construct_isr_vectors_information): Move to ...
5101 (nds32_asm_file_start): Move implementation to ...
5102 (nds32_asm_file_end): Move implementation to ...
5103 * config/nds32/nds32-isr.c: ... here.
5104 * config/nds32/nds32-protos.h
5105 (nds32_check_isr_attrs_conflict): Declare.
5106 (nds32_construct_isr_vectors_information): Declare.
5107 (nds32_asm_file_start_for_isr): Declare.
5108 (nds32_asm_file_end_for_isr): Declare.
5110 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5111 Kito Cheng <kito@0xlab.org>
5112 Monk Chiang <sh.chiang04@gmail.com>
5114 * config.gcc (nds32*): Add new modules to extra_objs.
5115 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5116 (nds32be-*-*): Likewise.
5117 * config/nds32/nds32-cost.c: New file.
5118 * config/nds32/nds32-fp-as-gp.c: New file.
5119 * config/nds32/nds32-intrinsic.c: New file.
5120 * config/nds32/nds32-isr.c: New file.
5121 * config/nds32/nds32-md-auxiliary.c: New file.
5122 * config/nds32/nds32-memory-manipulation.c: New file.
5123 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5124 * config/nds32/nds32-predicates.c: New file.
5125 * config/nds32/t-nds32: New file.
5127 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5129 PR tree-optimization/61682
5130 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5131 using cases and when one of the operands is equal to 1.
5133 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5135 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5136 ashr<mode>3): Correct mode of operands[2].
5137 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5138 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5139 Correct mode of operands[2]. Fix split condition.
5141 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5143 * arm.md (arch): Add armv6_or_vfpv3.
5144 (arch_enabled): Add test for the above.
5145 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5147 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5149 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5151 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5152 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5153 HWI 1 and negate the unsigned value.
5154 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5155 use AND instead of shift.
5156 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5158 2014-07-03 Marek Polacek <polacek@redhat.com>
5160 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5161 (-fsanitize=float-divide-by-zero): Move to the table with
5162 -fsanitize=undefined suboptions.
5163 (-fsanitize=float-cast-overflow): Likewise.
5165 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5167 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5168 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5171 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5173 * loop-invariant.c (struct invariant): Add a new member: eqno;
5174 (find_identical_invariants): Update eqno;
5175 (create_new_invariant): Init eqno;
5176 (get_inv_cost): Compute comp_cost with eqno;
5178 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5180 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5181 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5182 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5183 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5184 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5186 2014-07-02 Christian Bruel <christian.bruel@st.com>
5190 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5191 (make_preds_opaque): Delete.
5192 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5193 (commit_mode_sets): New function.
5194 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5195 Process all modes at once.
5196 * basic-block.h (pre_edge_lcm_avs): Declare.
5197 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5198 Call clear_aux_for_edges. Fix comments.
5199 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5200 (pre_edge_rev_lcm): Idem.
5201 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5203 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5204 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5206 * config/i386/i386.c (x96_emit_mode_set): Idem.
5207 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5208 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5209 (fpscr_toggle) Disallow from delay slot.
5210 * target.def (emit_mode_set): Add prev_mode parameter.
5211 * doc/tm.texi: Regenerate.
5213 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5215 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5218 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5220 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5221 vtable_pointer_value_to_vtable): Constify.
5222 (contains_polymorphic_type_p): Declare.
5223 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5224 vtable_pointer_value_to_vtable): Constify.
5225 (contains_polymorphic_type_p): New predicate.
5226 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5228 (ipa_set_ancestor_jf): Likewise.
5229 (detect_type_change): Return false in easy cases.
5230 (compute_complex_assign_jump_func): Require type to contain
5232 (compute_known_type_jump_func): Likewise.
5234 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5236 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5238 (type_in_anonymous_namespace_p): Constify argument.
5239 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5240 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5241 (main_odr_variant): New function.
5242 (hash_type_name): Make static; update assert; do not ICE on
5244 (types_same_for_odr): Bring here from tree.c; simplify and remove
5245 old structural comparing code that doesn't work for templates.
5246 (odr_hasher::equal): Update assert.
5247 (add_type_duplicate): Return true when bases should be computed;
5248 replace incomplete loader by complete; do not output duplicated
5249 warnings; do not ICE on non-records; set odr_violated flag.
5250 (get_odr_type): Be ready to replace incomplete type by complete
5251 one; work on ODR variants instead of main variants; reorder item
5252 in array so bases have still smaller indexes.
5253 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5254 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5256 2014-07-01 Cary Coutant <ccoutant@google.com>
5258 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5260 (resolve_addr_in_expr): When replacing the rtx in a location list
5261 entry, get a new address table entry.
5262 (dwarf2out_finish): Call index_location_lists even if there are no
5263 addr_index_table entries yet.
5265 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5267 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5268 change for not being obvious.
5270 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5272 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5275 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5277 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5278 (vcagt_f64): Likewise.
5279 (vcale_f64): Likewise.
5280 (vcaled_f64): Likewise.
5281 (vcales_f32): Likewise.
5282 (vcalt_f64): Likewise.
5283 (vcaltd_f64): Likewise.
5284 (vcalts_f32): Likewise.
5286 2014-07-01 Marek Polacek <polacek@redhat.com>
5288 * doc/invoke.texi: Document -Wint-conversion.
5290 2014-07-01 Marek Polacek <polacek@redhat.com>
5293 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5295 2014-07-01 Martin Liska <mliska@suse.cz>
5297 IPA REF alias refactoring
5298 * cgraph.h (iterate_direct_aliases): New function.
5299 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5300 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5301 FOR_EACH_ALIAS added.
5302 (cgraph_for_node_and_aliases): Likewise.
5303 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5304 * ipa-inline.c (reset_edge_caches): Likewise.
5305 (update_caller_keys): Likewise.
5306 * trans-mem.c (ipa_tm_execute): Likewise.
5307 *varpool.c (varpool_analyze_node): Likewise.
5308 (varpool_for_node_and_aliases): Likewise.
5309 * ipa-ref.h (first_alias): New function.
5310 (last_alias): Likewise.
5311 (has_aliases_p): Likewise.
5312 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5313 is sensitive to IPA_REF_ALIASes.
5314 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5315 are put at the beginning of the list.
5316 (symtab_node::iterate_direct_aliases): New function.
5318 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5321 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5323 (write_ts_type_common_tree_pointers): Do not stream fields not set
5324 for incomplete types; do not stream duplicated fields for variants;
5325 sanity check that variant and type match.
5326 (write_ts_type_non_common_tree_pointers): Likewise.
5327 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5328 TYPE_SIZE whether type is complete.
5329 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5330 write_ts_type_common_tree_pointers
5331 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5333 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5335 * var-tracking.c (add_stores): Return instead of asserting if old
5336 and new values for conditional store are the same.
5338 2014-06-30 Richard Henderson <rth@redhat.com>
5342 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5343 the cfg if there were any changes.
5344 * passes.def: Revert move of peephole2 after reorder_blocks;
5345 move duplicate_computed_gotos before peephole2.
5347 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5349 * except.c (emit_note_eh_region_end): New helper function.
5350 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5351 emit EH_REGION_END note.
5352 * jump.c (cleanup_barriers): Do not split a call and its
5353 corresponding CALL_ARG_LOCATION note.
5355 2014-06-30 Jeff Law <law@redhat.com>
5357 PR tree-optimization/61607
5358 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5359 deeper into the SSA_NAME_VALUE chain.
5361 2014-06-30 Marek Polacek <polacek@redhat.com>
5363 * convert.c (convert_to_integer): Don't instrument conversions if the
5364 function has no_sanitize_undefined attribute.
5365 * ubsan.c: Don't run the ubsan pass if the function has
5366 no_sanitize_undefined attribute.
5368 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5370 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5371 -fsanitize=undefined suboptions.
5373 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5375 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5376 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5377 against bigendian and adjust indices.
5379 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5381 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5383 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5386 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5387 Add alternative; make early clobber. Adjust both split patterns
5388 to use operand 0 as the working register.
5390 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5392 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5393 as ira_object_id_map might be NULL, or 1.
5395 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5397 * loop-invariant.c (get_inv_cost): Handle register class.
5398 (gain_for_invariant): Check the register pressure of the inv
5399 and its overlapped register class, other than all.
5401 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5403 * doc/invoke.texi (Optimize Options): Fix descriptions of
5404 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5406 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5408 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5411 2014-06-29 Tobias Grosser <tobias@grosser.es>
5414 * graphite-isl-ast-to-gimple.c: Add missing guards.
5416 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5418 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5419 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5420 * flag-types.h: Add new enum fgraphite_generator.
5421 * graphite-isl-ast-to-gimple.c: New.
5422 * graphite-isl-ast-to-gimple.h: New.
5423 * graphite.c (graphite_transform_loops): Add choice of Graphite
5424 code generator, which depends on flag_graphite_code_gen.
5426 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5428 * graphite-dependences.c (subtract_commutative_associative_deps):
5429 Add NULL checking of the following variables: must_raw_no_source,
5430 may_raw_no_source, must_war_no_source, may_war_no_source,
5431 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5432 must_war, may_war, must_waw, may_waw.
5434 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5436 * graphite-clast-to-gimple.c: gloog is renamed to
5437 graphite_regenerate_ast_cloog. gloog_error is renamed to
5438 graphite_regenerate_error.
5439 * graphite-clast-to-gimple.h: The definition of the struct
5440 bb_pbb_def is moved to graphite-htab.h.
5441 Add inclusion of the hash-table.h.
5442 * graphite-htab.h: The declaration of the function gloog is moved
5443 to graphite-clast-to-gimple.h and renamed to
5444 graphite_regenerate_ast_cloog.
5445 * graphite.c (graphite_transform_loops): gloog is renamed
5446 to graphite_regenerate_ast_cloog.
5448 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5450 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5452 (write_ts_type_common_tree_pointers): Do not stream fields not set
5453 for incomplete types; do not stream duplicated fields for variants;
5454 sanity check that variant and type match.
5455 (write_ts_type_non_common_tree_pointers): Likewise.
5456 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5457 TYPE_SIZE whether type is complete.
5458 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5459 write_ts_type_common_tree_pointers
5460 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5462 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5464 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5466 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5468 * tree-inline.c (remap_type_1): Do not duplicate fields
5469 that are shared in between type and its main variant.
5471 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5473 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5475 (ipa_set_ancestor_jf) Likewise.
5476 (check_stmt_for_type_change): Check that we work on main variant.
5477 (detect_type_change): Look into main variant.
5478 (compute_known_type_jump_func): Check that main variant has BINFO.
5480 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5482 * ipa-devirt.c (set_type_binfo): New function.
5483 (add_type_duplicate): Use it.
5484 (get_odr_type): Sanity check that binfos points to main variants.
5485 (get_class_context): Be sure the context's outer_type is main variant.
5486 (contains_type_p): Walk main variant.
5487 (get_polymorphic_call_info_for_decl): Set outer_type to be
5489 (get_polymorphic_call_info): Likewise.
5490 (possible_polymorphic_call_targets): Sanity check that we operate
5493 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5495 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5497 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5499 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5500 accidental change due to wide-int branch merge.
5502 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5504 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5505 compressed debug support.
5506 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5507 * configure: Regenerate.
5508 * config.in: Regenerate.
5509 * common.opt (compressed_debug_sections): New enum.
5510 (gz, gz=): New options.
5511 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5512 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5513 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5514 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5515 LINK_COMPRESS_DEBUG_SPEC.
5516 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5517 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5518 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5519 (Debugging Options): Document -gz[=type].
5521 2014-06-27 Martin Jambor <mjambor@suse.cz>
5524 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5525 args_to_skip, use those from node instead. Copy args_to_skip and
5526 combined_args_to_skip from node to the new thunk.
5527 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5528 (cgraph_create_virtual_clone): Moved computation of
5529 combined_args_to_skip...
5530 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5532 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5534 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5535 redundant diagnostic machinary.
5537 2014-06-27 Richard Biener <rguenther@suse.de>
5539 * tree-ssa-math-opts.c (bswap_replace): Fix
5540 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5542 2014-06-27 Martin Liska <mliska@suse.cz>
5544 * gimple.h (gimple_location_safe): New function introduced.
5545 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5546 of gimple_location_safe replaces gimple_location.
5547 (gimple_fold_call): Likewise.
5548 * ipa-devirt.c (ipa_devirt): Likewise.
5549 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5550 * ipa.c (walk_polymorphic_call_targets): Likewise.
5551 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5553 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5555 PR tree-optimization/57233
5556 PR tree-optimization/61299
5557 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5559 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5560 would be lowered to scalar shifts, check if corresponding
5561 shifts and vector BIT_IOR_EXPR are supported and don't lower
5562 or lower just to narrower vector type in that case.
5563 * expmed.c (expand_shift_1): Fix up handling of vector
5566 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5569 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5571 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5573 * doc/invoke.texi (-fsemantic-interposition): Document.
5574 * common.opt (fsemantic-interposition): New flag.
5575 * varasm.c (decl_replaceable_p): Use it.
5577 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5580 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5581 extraction other than index 3.
5583 2014-06-26 Teresa Johnson <tejohnson@google.com>
5585 * doc/invoke.texi: Fix typo.
5586 * dumpfile.c: Add support for documented -fdump-* options
5587 optimized/missed/note/optall.
5589 2014-06-26 Martin Jambor <mjambor@suse.cz>
5591 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5592 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5593 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5594 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5595 * opts.c (default_options_optimization): Set
5596 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5597 * doc/invoke.texi (allow-load-data-races)
5598 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5599 (allow-store-data-races): Document the new default.
5601 2014-06-26 Martin Jambor <mjambor@suse.cz>
5603 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5604 renamed to ipa_impossible_devirt_target. Fix typo.
5605 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5606 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5607 ipa_impossible_devirt_target.
5609 2014-06-26 Richard Biener <rguenther@suse.de>
5611 PR tree-optimization/61607
5612 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5613 explaining why we restrict copies on loop depth.
5614 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5616 (record_equivalences_from_phis): Instead add it here.
5618 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5620 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5621 (LTO_WRAPPER_OBJS): New variable.
5622 (lto-wrapper$(exeext)): Use it.
5623 * collect2.c: Include "collect-utils.h".
5624 (verbose, debug): Remove variables.
5625 (at_file_supplied): No longer static.
5626 (tool_name): New variable.
5627 (do_wait, fork_execute, maybe_unlink): Don't declare.
5628 (tool_cleanup): No longer static.
5629 (notice): Remove function.
5630 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5632 (collect_wait, do_wait, collect_execute): Remove functions.
5633 (maybe_unlink): No longer static.
5634 * collect2.h (verbose, debug): Don't declare.
5635 (at_file_supplied): Declare.
5636 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5638 (collect_execute): Replace with implementation from collect2, plus a
5639 new arg use_atfile. All callers changed.
5640 (collect_wait): Replace with implementation from collect2.
5641 (maybe_unlink_file): Remove function.
5642 (fork_execute): Replace with implementation from collect2, plus a
5643 new arg use_atfile. All callers changed.
5644 (do_wait): Add call to utils_cleanup to the error path.
5645 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5646 (tool_cleanup): Adjust declarations.
5647 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5648 * tlink.c: Include "collect-utils.h".
5649 (tlink_execute): New arg use_atfile. All callers changed.
5650 (tlink_init, tlink_execute): Remove declarations.
5652 * collect-utils.c (save_temps): New variable.
5653 (do_wait): Use it instead of debug. Use fatal_error.
5654 * collect-utils.h (save_temps): Declare.
5655 * collect2.c (verbose): Rename from vflag. All uses changed.
5656 (tool_cleanup): New function, copied from collect_atexit.
5657 (collect_atexit, handler): Just call it.
5658 * collect2.h (verbose): Declaration renamed from vflag.
5659 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5662 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5663 (lto-wrapper$(exeext)): Link with collect-utils.o.
5664 * collect-utils.c: New file.
5665 * collect-utils.h: New file.
5666 * lto-wrapper.c: Include "collect-utils.h".
5667 (args_name): Delete variable.
5668 (tool_name): New variable.
5669 (tool_cleanup): New function.
5670 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5671 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5672 (fork_execute): Remove functions.
5674 2014-06-26 Nick Clifton <nickc@redhat.com>
5676 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5678 * doc/extend.texi (Function Attributes): Fix typo in description
5679 of RX vector attribute.
5681 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5683 * config.gcc (supported_defaults): Error when passing either
5684 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5686 2014-06-26 Richard Biener <rguenther@suse.de>
5688 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5689 propagating volatile pointers.
5691 2014-06-26 Richard Biener <rguenther@suse.de>
5693 PR tree-optimization/61607
5694 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5695 loop if we redirected its latch edge.
5696 (thread_block_1): Do not cancel loops prematurely.
5698 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5700 * toplev.c (backend_init_target): Move init_emit_regs and
5702 (backend_init) ... here; skip ira_init_once and backend_init_target.
5703 (target_reinit) ... and here; clear
5704 this_target_rtl->lang_dependent_initialized.
5705 (lang_dependent_init_target): Clear
5706 this_target_rtl->lang_dependent_initialized;
5707 break out rtl initialization to ...
5708 (initialize_rtl): ... here; call also backend_init_target
5710 * toplev.h (initialize_rtl): New function.
5711 * function.c: Include toplev.h
5712 (init_function_start): Call initialize_rtl.
5713 * rtl.h (target_rtl): Add target_specific_initialized,
5714 lang_dependent_initialized.
5716 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5717 Jakub Jelinek <jakub@redhat.com>
5719 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5721 2014-06-25 Tom de Vries <tom@codesourcery.com>
5723 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5725 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5727 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5728 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5729 Issue a strict overflow warning if appropriate.
5731 2014-06-25 Martin Liska <mliska@suse.cz>
5734 * Makefile.in: Removed header file (ipa-ref-inline.h).
5735 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5737 (cgraph_speculative_call_info): Likewise.
5738 (cgraph_for_node_thunks_and_aliases): Likewise.
5739 (cgraph_for_node_and_aliases): Likewise.
5740 (verify_cgraph_node): Likewise.
5741 * cgraph.h: Batch of IPA REF functions become member functions of
5742 symtab_node: add_reference, maybe_add_reference, clone_references,
5743 clone_referring, clone_reference, find_reference,
5744 remove_stmt_references, remove_all_references,
5745 remove_all_referring, dump_references, dump_referring,
5746 has_alias_p, iterate_reference, iterate_referring.
5747 * cgraphbuild.c (record_reference): New IPA REF function used.
5748 (record_type_list): Likewise.
5749 (record_eh_tables): Likewise.
5750 (mark_address): Likewise.
5751 (mark_load): Likewise.
5752 (mark_store): Likewise.
5753 (pass_build_cgraph_edges): Likewise.
5754 (rebuild_cgraph_edge): Likewise.
5755 (cgraph_rebuild_references): Likewise.
5756 (pass_remove_cgraph_callee_edges): Likewise.
5757 * cgraphclones.c (cgraph_clone_node): Likewise.
5758 (cgraph_create_virtual_clone): Likewise.
5759 (cgraph_materialize_clone): Likewise.
5760 (cgraph_materialize_all_clones): Likewise.
5761 * cgraphunit.c (cgraph_reset_node): Likewise.
5762 (cgraph_reset_node): Likewise.
5763 (analyze_function): Likewise.
5764 (assemble_thunks_and_aliases): Likewise.
5765 (expand_function): Likewise.
5766 * ipa-comdats.c (propagate_comdat_group): Likewise.
5767 (enqueue_references): Likewise.
5768 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5769 (create_specialized_node): Likewise.
5770 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5771 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5772 * ipa-inline.c (reset_edge_caches): Likewise.
5773 (update_caller_keys): Likewise.
5774 (execute): Likewise.
5775 * ipa-prop.c (remove_described_reference): Likewise.
5776 (propagate_controlled_uses): Likewise.
5777 (ipa_edge_duplication_hook): Likewise.
5778 (ipa_modify_call_arguments): Likewise.
5779 * ipa-pure-const.c (propagate_pure_const): Likewise.
5780 * ipa-ref-inline.h: Header file removed, functions moved
5781 to symtab_node class.
5782 * ipa-ref.c (remove_reference): New class member function.
5783 (cannot_lead_to_return): New class member function.
5784 (referring_ref_list): Likewise.
5785 (referred_ref_list): Likewise.
5786 Rest of functions moved to symtab_node class.
5787 * ipa-ref.h: New member functions remove_reference,
5788 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5790 ipa_ref_list class has new member functions: first_reference,
5791 first_referring, clear, nreferences.
5792 * ipa-reference.c (analyze_function): New IPA REF function used.
5793 (write_node_summary_p): Likewise.
5794 (ipa_reference_write_optimization_summary): Likewise.
5795 * ipa-split.c (split_function): Likewise.
5796 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5797 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5798 (function_and_variable_visibility): Likewise.
5799 * ipa.c (has_addr_references_p): Likewise.
5800 (process_references): Argument type changed.
5801 (symtab_remove_unreachable_nodes): New IPA REF function used.
5802 (process_references): Likewise.
5803 (set_writeonly_bit): Likewise.
5804 * lto-cgraph.c: Implementation of new symtab_node member functions
5805 that uses new IPA REF functions.
5806 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5808 * lto-streamer-out.c (output_symbol_p): Likewise.
5809 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5811 * symtab.c: Implementation of new IPA REF API.
5812 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5813 (ipa_tm_create_version): Likewise.
5814 (ipa_tm_execute): Likewise.
5815 * tree-emutls.c (gen_emutls_addr): Likewise.
5816 * tree-inline.c (copy_bb): Likewise.
5817 (delete_unreachable_blocks_update_callgraph): Likewise.
5818 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5819 (varpool_for_node_and_aliases): Likewise.
5821 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5823 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5825 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5828 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5829 tree_node * instead of tree_node *.
5831 (print_fold_checksum): Likewise.
5832 (fold_check_failed): Likewise.
5833 (debug_fold_checksum): Likewise.
5834 (fold_build1_stat_loc): Likewise.
5835 (fold_build2_stat_loc): Likewise.
5836 (fold_build3_stat_loc): Likewise.
5837 (fold_build_call_array_loc): Likewise.
5839 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5841 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5842 implementation with call to...
5843 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5845 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5848 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5850 PR tree-optimization/57742
5851 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5852 after replacing the statement.
5854 2014-06-25 Nick Clifton <nickc@redhat.com>
5856 * config/v850/v850.c (GHS_default_section_names): Change to const
5858 (GHS_current_section_names): Likewise.
5859 (v850_insert_attributes): Do not build strings, just assign the
5860 names directly. Change the type of 'chosen_section' to const
5862 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5863 directly to the array entry.
5864 * config/v850/v850.h (GHS_default_section_names): Change to const
5866 (GHS_current_section_names): Likewise.
5868 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5870 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5871 (LANG_HOOKS_DECLS): Add it.
5872 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5874 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5875 * langhooks.h (struct lang_hooks_for_decls): Add
5876 omp_clause_linear_ctor hook.
5877 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5878 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5879 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5880 combined simd loop use omp_clause_linear_ctor hook.
5882 2014-06-24 Cong Hou <congh@google.com>
5884 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5885 pattern recognition.
5886 (type_conversion_p): PROMOTION is true if it's a type promotion
5887 conversion, and false otherwise. Return true if the given expression
5888 is a type conversion one.
5889 * tree-vectorizer.h: Adjust the number of patterns.
5890 * tree.def: Add SAD_EXPR.
5891 * optabs.def: Add sad_optab.
5892 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5893 * expr.c (expand_expr_real_2): Likewise.
5894 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5895 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5896 * optabs.c (optab_for_tree_code): Likewise.
5897 * tree-cfg.c (estimate_operator_cost): Likewise.
5898 * tree-ssa-operands.c (get_expr_operands): Likewise.
5899 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5900 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5901 * doc/generic.texi: Add document for SAD_EXPR.
5902 * doc/md.texi: Add document for ssad and usad.
5904 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5906 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5907 qualification in cast.
5909 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5911 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5912 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5913 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5914 (tree_function_decl): ... here.
5915 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5916 streaming of vindex to ...
5917 (write_ts_function_decl_tree_pointers): ... here.
5918 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5919 Do not stream DECL_VINDEX.
5920 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5922 2014-06-24 Catherine Moore <clm@codesourcery.com>
5923 Sandra Loosemore <sandra@codesourcery.com>
5925 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5926 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5927 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5929 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5931 * doc/invoke.texi (Warning Options): Remove duplicated
5932 -Wmaybe-uninitialized.
5934 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5936 PR tree-optimization/57742
5937 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5938 (handle_builtin_malloc, handle_builtin_memset): New functions.
5939 (strlen_optimize_stmt): Call them.
5940 * passes.def: Move strlen after loop+dom but before vrp.
5942 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5945 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
5946 model family 6 CPU with has_longmode never use a CPU without
5949 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
5952 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
5955 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5957 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
5958 * dominance.c (iterate_fix_dominators): Use hash_map instead of
5960 * hash-map.h: New file.
5961 * ipa-comdats.c: Use hash_map instead of pointer_map.
5963 * lto-section-out.c: Adjust.
5964 * lto-streamer.h: Replace pointer_map with hash_map.
5965 * symtab.c (verify_symtab): Likewise.
5966 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
5967 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
5968 * tree-streamer.h: Likewise.
5969 * tree-streamer.c: Adjust.
5970 * pointer-set.h: Remove pointer_map.
5972 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5974 * hash-table.h: Add a template arg to choose between storing values
5975 and storing pointers to values, and then provide partial
5976 specializations for both.
5977 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
5978 should store, not the type values should point to.
5979 * tree-into-ssa.c (var_info_hasher): Likewise.
5980 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
5981 * tree-complex.c: Adjust.
5982 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
5983 table instead of int_tree_map *.
5984 * tree-parloops.c: Adjust.
5985 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
5986 type is being stored.
5987 * tree-vectorizer.c: Adjust.
5989 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5991 * hash-table.h: Remove a layer of indirection from hash_table so that
5992 it contains the hash table's data instead of a pointer to the data.
5993 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
5994 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
5995 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
5996 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
5997 fold-const.c, gcse.c, ggc-common.c,
5998 gimple-ssa-strength-reduction.c, gimplify.c,
5999 graphite-clast-to-gimple.c, graphite-dependences.c,
6000 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6001 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6002 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6003 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6004 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6005 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6006 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6007 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6008 tree-ssa-live.c, tree-ssa-loop-im.c,
6009 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6010 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6011 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6012 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6013 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6014 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6015 vtable-verify.c, vtable-verify.h: Adjust.
6017 2014-06-24 Richard Biener <rguenther@suse.de>
6019 PR tree-optimization/61572
6020 * tree-ssa-sink.c (statement_sink_location): Do not sink
6021 loads from hard registers.
6023 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6025 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6026 not mentioned in clauses use private clause if the iterator is
6027 declared in #pragma omp for simd, and when adding lastprivate
6028 instead, add it to the outer #pragma omp for too. Diagnose
6029 if the variable is private in outer context. For simd collapse > 1
6030 loops, replace all iterators with temporaries.
6031 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6032 same even in collapse > 1 loops.
6034 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6035 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6037 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6038 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6040 (gimplify_adjust_omp_clauses): Likewise.
6041 * omp-low.c (lower_rec_simd_input_clauses,
6042 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6043 safelen the same as safelen(1).
6044 * tree-nested.c (convert_nonlocal_omp_clauses,
6045 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6046 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6047 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6048 Fixup handling of GIMPLE_OMP_TARGET.
6049 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6052 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6054 PR tree-optimization/61554
6055 * tree-ssa-propagate.c: Include "bitmap.h".
6056 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6057 properly update constructor/destructor.
6058 (substitute_and_fold_dom_walker::before_dom_children):
6059 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6060 need_eh_cleaup instead.
6061 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6064 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6066 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6067 * tree-pass.h (make_pass_ipa_single_use): New pass.
6068 * cgraph.h (used_by_single_function): New flag.
6069 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6071 * passes.def (pass_ipa_single_use): Scedule.
6072 * ipa.c (BOTTOM): New macro.
6073 (meet): New function
6074 (propagate_single_user): New function.
6075 (ipa_single_use): New function.
6076 (pass_data_ipa_single_use): New pass.
6077 (pass_ipa_single_use): New pass.
6078 (pass_ipa_single_use::gate): New gate.
6079 (make_pass_ipa_single_use): New function.
6081 2014-06-23 Kai Tietz <ktietz@redhat.com>
6084 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6085 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6087 2014-06-23 Richard Biener <rguenther@suse.de>
6089 * tree-ssa-loop.c (gate_loop): New function.
6090 (pass_tree_loop::gate): Call it.
6091 (pass_data_tree_no_loop, pass_tree_no_loop,
6092 make_pass_tree_no_loop): New.
6093 * tree-vectorizer.c: Include tree-scalar-evolution.c
6094 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6096 (pass_slp_vectorize::clone): New method.
6097 * timevar.def (TV_TREE_NOLOOP): New.
6098 * tree-pass.h (make_pass_tree_no_loop): Declare.
6099 * passes.def (pass_tree_no_loop): New pass group with
6102 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6105 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6106 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6108 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6110 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6113 2014-06-23 Alan Modra <amodra@gmail.com>
6116 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6117 to zero on debug statements.
6119 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6122 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6123 Ignore third operand if present by marking qualifier_internal.
6125 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6127 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6129 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6130 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6131 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6132 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6133 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6134 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6135 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6136 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6137 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6138 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6139 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6140 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6141 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6142 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6143 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6144 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6145 logic in GCC vector extensions
6147 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6148 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6149 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6150 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6151 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6152 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6153 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6154 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6155 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6156 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6158 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6160 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6163 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6164 (vget_low_s64): Use __GET_LOW macro.
6165 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6166 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6167 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6168 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6169 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6171 (vcombine_s64): Use GCC vector extensions; remove cast.
6172 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6173 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6174 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6175 Fix type signature; remove cast.
6177 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6180 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6182 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6185 (BUILTIN_VD_RE): Remove.
6186 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6187 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6188 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6190 (vreinterpretv1df*, vreinterpret*v1df): New.
6191 (vreinterpretdf*, vreinterpret*df): Remove.
6192 * config/aarch64/aarch64-simd.md (aarch64_create,
6193 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6194 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6196 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6197 (vcreate_f64): Remove cast, use v1df builtin.
6198 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6199 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6200 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6201 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6202 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6203 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6204 add range check using __builtin_aarch64_im_lane_boundsi.
6205 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6206 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6207 type signature, use gcc vector extensions.
6208 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6209 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6210 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6211 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6212 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6213 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6214 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6215 vreinterpret_u64_f64): Use v1df builtin not df.
6217 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6219 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6222 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6224 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6227 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6229 * loop-invariant.c (pre_check_invariant_p): New function.
6230 (find_invariant_insn): Call pre_check_invariant_p.
6232 2014-06-22 Richard Henderson <rth@redhat.com>
6235 * compare-elim.c (struct comparison): Add eh_note.
6236 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6237 a redundant comparison in a different EH region. Purge EH edges if
6240 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6242 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6243 (var_shift): Use it.
6244 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6245 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6246 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6247 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6248 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6249 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6250 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6251 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6252 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6253 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6254 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6255 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6256 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6257 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6258 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6259 *rotldi3_internal15be): Use the new attribute. Merge register and
6260 integer alternatives.
6262 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6264 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6265 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6266 split, *ashrdi3_internal3 and split): Delete, merge into...
6267 (ashr<mode>3): New expander.
6268 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6269 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6271 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6273 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6274 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6275 *rotldi3_internal3 and split): Delete, merge into...
6276 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6277 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6278 Use "rotlw" extended mnemonic.
6280 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6282 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6283 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6284 and split, *ashldi3_internal3 and split): Delete, merge into...
6285 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6286 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6288 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6290 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6291 (lshrsi3, two anonymous define_insns and define_splits,
6292 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6293 *lshrdi3_internal3 and split): Delete, merge into...
6294 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6295 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6297 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6299 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6300 Remove "O" alternative.
6302 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6304 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6305 (mips_move_from_gpr_cost): Likewise.
6306 (mips_register_move_cost): Update accordingly.
6307 (mips_secondary_reload_class): Remove name of in_p.
6309 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6312 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6313 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6315 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6317 * config/nios2/nios2.c: Include "builtins.h".
6319 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6321 * cgraph.h (tls_model_names): New variable.
6322 * print-tree.c (print_node): Simplify.
6323 * varpool.c (tls_model_names): New variable.
6324 (dump_varpool_node): Output tls model.
6326 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6328 * ipa-visibility.c (function_and_variable_visibility): Disable
6329 temporarily local aliases for some targets.
6331 2014-06-20 Marek Polacek <polacek@redhat.com>
6333 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6334 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6335 into SANITIZE_UNDEFINED.
6336 * doc/invoke.texi: Describe -fsanitize=bounds.
6337 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6338 functions created in the FEs.
6339 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6340 (expand_UBSAN_BOUNDS): New function.
6341 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6342 * internal-fn.h: Don't define internal functions here.
6343 * opts.c (common_handle_option): Add -fsanitize=bounds.
6344 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6345 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6346 * tree-core.h: Define internal functions here.
6347 (struct tree_base): Add ifn field.
6348 * tree-pretty-print.c: Include "internal-fn.h".
6349 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6350 * tree.c (get_callee_fndecl): Likewise.
6351 (build_call_expr_internal_loc): New function.
6352 * tree.def (CALL_EXPR): Update description.
6353 * tree.h (CALL_EXPR_IFN): Define.
6354 (build_call_expr_internal_loc): Declare.
6355 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6357 (ubsan_type_descriptor): Change bool parameter to enum
6358 ubsan_print_style. Adjust the code. Add handling of
6360 (ubsan_expand_bounds_ifn): New function.
6361 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6362 (ubsan_build_overflow_builtin): Likewise.
6363 (instrument_bool_enum_load): Likewise.
6364 (ubsan_instrument_float_cast): Likewise.
6365 * ubsan.h (enum ubsan_print_style): New enum.
6366 (ubsan_expand_bounds_ifn): Declare.
6367 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6369 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6371 * config/rs6000/rs6000.md: Append `DONE' to preparation
6372 statements of `bswap' pattern splitters.
6374 2014-06-20 Tom de Vries <tom@codesourcery.com>
6376 * target.def (call_fusage_contains_non_callee_clobbers): Update
6378 * doc/tm.texi: Regenerate.
6380 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6381 Max Ostapenko <m.ostapenko@partner.samsung.com>
6384 * asan.c (instrument_strlen_call): Fixed instrumentation of
6387 2014-06-20 Martin Jambor <mjambor@suse.cz>
6390 * ipa-prop.c (impossible_devirt_target): New function.
6391 (try_make_edge_direct_virtual_call): Use it, also instead of
6394 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6395 Max Ostapenko <m.ostapenko@partner.samsung.com>
6398 * asan.c (build_check_stmt): Add condition.
6400 2014-06-20 Martin Jambor <mjambor@suse.cz>
6403 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6406 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6408 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6410 (VCONQ): Make comment more helpful.
6412 * config/aarch64/aarch64-simd.md
6413 (aarch64_sqdmulh_lane<mode>):
6414 Use VCOND for operands 2. Update lane checking and flipping logic.
6415 (aarch64_sqrdmulh_lane<mode>): Likewise.
6416 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6417 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6418 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6419 attribute of operand 3 to VCOND.
6420 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6421 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6422 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6423 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6424 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6425 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6427 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6428 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6429 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6430 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6431 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6432 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6433 operand to VCOND. Update lane flipping and bounds checking logic.
6434 (aarch64_sqdmlal2_lane<mode>): Likewise.
6435 (aarch64_sqdmlsl_lane<mode>): Likewise.
6436 (aarch64_sqdmull_lane<mode>): Likewise.
6437 (aarch64_sqdmull2_lane<mode>): Likewise.
6438 (aarch64_sqdmlal_laneq<mode>):
6439 Replace VCON usage with VCONQ.
6440 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6441 (aarch64_sqdmlal2_laneq<mode>): Emit
6442 aarch64_sqdmlal2_laneq<mode>_internal insn.
6443 Replace VCON with VCONQ.
6444 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6445 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6446 (aarch64_sqdmull_laneq<mode>): Emit
6447 aarch64_sqdmull_laneq<mode>_internal insn.
6448 Replace VCON with VCONQ.
6449 (aarch64_sqdmull2_laneq<mode>): Emit
6450 aarch64_sqdmull2_laneq<mode>_internal insn.
6451 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6452 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6453 of 3rd argument to int16x4_t.
6454 (vqdmlalh_lane_s16): Likewise.
6455 (vqdmlslh_lane_s16): Likewise.
6456 (vqdmull_high_lane_s16): Likewise.
6457 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6458 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6459 (vqdmlsl_lane_s16): Likewise.
6460 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6461 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6462 (vqdmlals_lane_s32): Likewise.
6463 (vqdmlsls_lane_s32): Likewise.
6464 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6465 (vqdmulls_lane_s32): Likewise.
6466 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6467 (vqdmlsl_lane_s32): Likewise.
6468 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6469 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6470 (vqrdmulhh_lane_s16): Likewise.
6471 (vqdmlsl_high_lane_s16): Likewise.
6472 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6473 (vqdmlsl_high_lane_s32): Likewise.
6474 (vqrdmulhs_lane_s32): Likewise.
6476 2014-06-20 Tom de Vries <tom@codesourcery.com>
6478 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6479 get_call_reg_set_usage.
6481 2014-06-20 Tom de Vries <tom@codesourcery.com>
6483 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6484 it contains all call_used_regs.
6486 2014-06-20 Tom de Vries <tom@codesourcery.com>
6488 * final.c (collect_fn_hard_reg_usage): Add and use variable
6491 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6493 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6494 (set_init_priority, get_init_priority, set_fini_priority,
6495 get_fini_priority): New methods.
6496 * tree.c (init_priority_for_decl): Remove.
6497 (init_ttree): Do not initialize init priority.
6498 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6499 (decl_priority_info): Remove.
6500 (decl_init_priority_insert): Rewrite.
6501 (decl_fini_priority_insert): Rewrite.
6502 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6503 tree_priority_map_marked_p): Remove.
6504 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6505 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6506 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6507 not output priorities.
6508 (pack_ts_function_decl_value_fields): Likewise.
6509 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6510 not input priorities.
6511 (unpack_ts_function_decl_value_fields): Likewise.
6512 * symtab.c (symbol_priority_map): Declare.
6513 (init_priority_hash): Declare.
6514 (symtab_unregister_node): Unregister from priority hash, too.
6515 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6517 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6518 (symbol_priority_info): New function.
6519 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6521 * tree-core.h (tree_priority_map): Remove.
6523 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6525 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6526 0xff to uint64_t before shifting it up.
6528 2014-06-20 Julian Brown <julian@codesourcery.com>
6529 Chung-Lin Tang <cltang@codesourcery.com>
6531 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6532 TARGET_THUMB1_ONLY. Add comments.
6534 2014-06-19 Tom de Vries <tom@codesourcery.com>
6536 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6537 return type to void.
6538 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6540 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6542 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6543 as "move", from depends_on.
6545 2014-06-19 Terry Guo <terry.guo@arm.com>
6547 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6550 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6552 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6554 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6556 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6559 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6560 addresses here if reload in progress or completed.
6562 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6564 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6565 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6566 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6567 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6568 (mips_register_priority): New function that implements the target
6569 hook TARGET_REGISTER_PRIORITY.
6570 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6571 (mips_lra_p): Likewise for TARGET_LRA_P.
6572 (TARGET_REGISTER_PRIORITY): Define macro.
6573 (TARGET_SPILL_CLASS): Likewise.
6574 (TARGET_LRA_P): Likewise.
6575 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6577 (REG_CLASS_NAMES): Likewise.
6578 (REG_CLASS_CONTENTS): Likewise.
6579 (BASE_REG_CLASS): Use M16_SP_REGS.
6580 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6581 New set attribute to enable alternatives depending on the register
6583 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6584 (*lea64): Disable pattern for MIPS16.
6585 * config/mips/mips.opt (mlra): New option.
6587 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6589 * lra-constraints.c (base_to_reg): New function.
6590 (process_address): Use new function.
6592 2014-06-18 Tom de Vries <tom@codesourcery.com>
6594 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6595 * config/aarch64/aarch64.c
6596 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6597 (aarch64_emit_call_insn): New function.
6598 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6600 * config/aarch64/aarch64.md (define_expand "call_internal")
6601 (define_expand "call_value_internal", define_expand "sibcall_internal")
6602 (define_expand "sibcall_value_internal"): New.
6603 (define_expand "call", define_expand "call_value")
6604 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6605 expand variant and aarch64_emit_call_insn.
6607 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6608 Tom de Vries <tom@codesourcery.com>
6610 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6611 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6613 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6614 clobbers to CALL_INSN_FUNCTION_USAGE.
6615 (define_expand "sibcall_internal")
6616 (define_expand "sibcall_value_internal"): New.
6617 (define_expand "call", define_expand "call_value"): Add argument to
6619 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6620 (define_expand "sibcall_value"): Use sibcall_value_internal and
6623 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6625 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6627 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6629 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6632 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6634 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6635 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6636 annotations. Fix DWARF information.
6638 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6640 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6641 __udivmoddi4, and fixups for negative operands.
6643 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6645 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6647 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6649 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6652 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6654 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6657 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6659 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6660 describing register usage on function entry and exit.
6662 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6664 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6665 (__aeabi_ldivmod): Fix whitespace.
6667 2014-06-18 Andreas Schwab <schwab@suse.de>
6669 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6670 Remove blank line after @item.
6672 2014-06-18 Richard Henderson <rth@redhat.com>
6675 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6677 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6679 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6680 POST_MODIFY for neon loads and stores.
6681 (arm_print_operand): Output post-index register for neon loads and
6684 2014-06-18 Richard Biener <rguenther@suse.de>
6686 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6688 2014-06-18 Richard Biener <rguenther@suse.de>
6690 * tree-pass.h (make_pass_dce_loop): Remove.
6691 * passes.def: Replace pass_dce_loop with pass_dce.
6692 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6693 changed free niter estimates and reset the scev cache.
6694 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6695 make_pass_dce_loop): Remove.
6696 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6697 (fini_copy_prop): Return whether something changed. Always
6698 let substitute_and_fold perform DCE and free niter estimates
6699 and reset the scev cache if so.
6700 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6701 (pass_data_copy_prop): Do not unconditionally schedule
6702 cleanup-cfg or update-ssa.
6704 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6706 PR tree-optimization/61518
6707 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6708 reduction var is used in reduction stmt or phi-function only.
6710 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6712 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6714 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6716 PR tree-optimization/61517
6717 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6718 whose rhs's first tree is the source expression instead of the
6720 (find_bswap_or_nop): Likewise.
6721 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6722 gimple stmt whose rhs's first tree is the source. In the memory source
6723 case, move the stmt to be replaced close to one of the original load to
6724 avoid the problem of a store between the load and the stmt's original
6726 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6729 2014-06-18 Andreas Schwab <schwab@suse.de>
6731 PR rtl-optimization/54555
6732 * postreload.c (move2add_use_add2_insn): Substitute
6733 STRICT_LOW_PART only if it is cheaper.
6735 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6737 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6738 Do not use unspec as call operand. Use memory_operand instead of
6739 memory_nox32_operand and add "m" operand constraint. Disable
6740 pattern for TARGET_X32.
6741 (*sibcall_pop_memory): Ditto.
6742 (*sibcall_value_memory): Ditto.
6743 (*sibcall_value_pop_memory): Ditto.
6744 (sibcall peepholes): Merge SImode and DImode patterns using
6745 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6746 Disable pattern for TARGET_X32. Check if eliminated register is
6747 really dead after call insn. Generate call RTX without unspec operand.
6748 (sibcall_value peepholes): Ditto.
6749 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6750 instead of memory_nox32_operand. Check if eliminated register is
6751 really dead after call insn. Generate call RTX without unspec operand.
6752 (sibcall_value_pop peepholes): Ditto.
6753 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6755 2014-06-18 Terry Guo <terry.guo@arm.com>
6758 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6761 2014-06-18 Olivier Hainque <hainque@adacore.com>
6763 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6764 memorization of the end of block source location.
6765 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6766 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6767 end source location info we have on the block entry/exit code we
6770 2014-06-18 Richard Biener <rguenther@suse.de>
6772 * common.opt (fssa-phiopt): New option.
6773 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6775 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6776 * doc/invoke.texi (-fssa-phiopt): Document.
6778 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6780 * genattrtab.c (n_bypassed): New variable.
6781 (process_bypasses): Initialise n_bypassed.
6782 Count number of bypassed reservations.
6783 (make_automaton_attrs): Allocate space for bypassed reservations
6784 rather than number of bypasses.
6786 2014-06-18 Richard Biener <rguenther@suse.de>
6788 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6789 we propagated anything.
6790 (substitute_and_fold_dom_walker::before_dom_children): Something
6791 changed if we propagated into PHI arguments.
6792 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6795 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6797 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6799 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6800 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6801 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6802 Introduces alternative way of loads group permutaions.
6803 (vect_transform_grouped_load): Try alternative way of permutations.
6805 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6807 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6808 changed in ORT_TARGET region, don't jump to do_outer.
6809 (struct gimplify_adjust_omp_clauses_data): New type.
6810 (gimplify_adjust_omp_clauses_1): Adjust for data being
6811 a struct gimplify_adjust_omp_clauses_data pointer instead
6812 of tree *. Pass pre_p as a new argument to
6813 lang_hooks.decls.omp_finish_clause hook.
6814 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6815 splay_tree_foreach to pass both list_p and pre_p.
6816 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6817 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6818 gimplify_adjust_omp_clauses callers.
6819 * langhooks.c (lhd_omp_finish_clause): New function.
6820 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6821 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6822 * langhooks.h (struct lang_hooks_for_decls): Add a new
6823 gimple_seq * argument to omp_finish_clause hook.
6824 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6825 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6826 (scan_omp_parallel, lower_omp_for): When adding
6827 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6828 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6829 * tree-nested.c (convert_nonlocal_omp_clauses,
6830 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6831 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6833 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6835 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6836 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6838 2014-06-17 Xinliang David Li <davidxl@google.com>
6840 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6841 * passes.c (pass_init_dump_file): Do not set initialize
6842 flag to false unconditionally.
6844 2014-06-17 Richard Biener <rguenther@suse.de>
6846 * genopinit.c (main): Use vec<>::qsort method.
6847 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6849 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6851 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6853 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6854 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6855 (mips_move_to_gpr_cost): Remove ST_REGS case.
6856 (mips_move_from_gpr_cost): Likewise.
6857 (mips_register_move_cost): Likewise.
6858 (mips_secondary_reload_class): Likewise.
6860 2014-06-17 Richard Biener <rguenther@suse.de>
6862 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6863 (pass_all_optimizations): Move 3rd copy-prop pass from after
6864 fre to before ifcombine/phiopt.
6866 2014-06-17 Richard Biener <rguenther@suse.de>
6868 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6869 and allow all blocks to be forwarders.
6871 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6874 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6875 variable 'size'; calculate 'size' right in the front; use
6876 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6877 pcum->aapcs_stack_words.
6879 2014-06-17 Nick Clifton <nickc@redhat.com>
6881 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6882 (umulhi3, mulsidi3, umulsidi3): Likewise.
6884 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6887 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6888 check for section name.
6890 2014-06-17 Richard Biener <rguenther@suse.de>
6892 * tree-ssa-propagate.c: Include domwalk.h.
6893 (substitute_and_fold): Outline main worker into a domwalker ...
6894 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6895 Schedule stmts we can fully propagate for removal. Remove
6897 (substitute_and_fold): Apply a dominator walk to perform
6898 substitution. Process stmts scheduled for removal here.
6900 2014-06-17 Richard Biener <rguenther@suse.de>
6902 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6905 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6907 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6908 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6909 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6910 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6911 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6913 (get_fpscr) : Likewise.
6915 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6917 PR rtl-optimization/61325
6918 * lra-constraints.c (valid_address_p): Add forward declaration.
6919 (simplify_operand_subreg): Check address validity before and after
6920 alter_reg of memory subreg.
6922 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6924 * config/i386/i386.c (decide_alg): Correctly handle
6925 maximum size of stringop algorithm.
6927 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6929 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6931 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6933 PR rtl-optimization/61522
6934 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6936 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6939 * symtab.c (symtab_node::reset_section): New method.
6940 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6942 * cgraph.h (reset_section): Declare.
6943 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6944 do not consider comdat locals.
6945 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6947 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6948 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6949 reset sections of symbols dragged out of the comdats.
6950 (function_and_variable_visibility): Reset sections of
6953 2014-06-16 Richard Biener <rguenther@suse.de>
6955 PR tree-optimization/61482
6956 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
6957 [-INF(OVF), +INF(OVF)] range.
6959 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6961 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
6962 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
6963 handling 32-bit multiplication.
6965 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
6968 * lra-lives.c (process_bb_lives): Skip creating copy during
6969 insn scan when src/dest has constrained to same regno.
6971 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
6973 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
6974 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
6976 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6978 * asan.c (check_func): New function.
6979 (maybe_create_ssa_name): Likewise.
6980 (build_check_stmt_with_calls): Likewise.
6981 (use_calls_p): Likewise.
6982 (report_error_func): Change interface.
6983 (build_check_stmt): Allow non-integer lengths; add support
6985 (asan_instrument): Likewise.
6986 (instrument_mem_region_access): Moved code to build_check_stmt.
6987 (instrument_derefs): Likewise.
6988 (instrument_strlen_call): Likewise.
6989 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
6990 * doc/invoke.texi: Describe new parameter.
6991 * params.def: Define new parameter.
6992 * params.h: Likewise.
6993 * sanitizer.def: Describe new builtins.
6995 2014-06-16 Richard Biener <rguenther@suse.de>
6997 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6998 Make all defs available at the end.
6999 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7001 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7004 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7006 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7009 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7010 initialization. Replace remaining use of uid.
7012 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7014 * c-family/c-common.c (handle_tls_model_attribute): Use
7016 * c-family/c-common.c (handle_tls_model_attribute): Use
7018 * cgraph.h (struct varpool_node): Add tls_model.
7019 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7020 * tree.h (DECL_TLS_MODEL): Update.
7021 (DECL_THREAD_LOCAL_P): Check that variable is static.
7022 (decl_tls_model): Declare.
7023 (set_decl_tls_model): Declare.
7024 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7025 set symbol prorperties.
7026 (get_emutls_init_templ_addr): Cleanup.
7027 (new_emutls_decl): Update.
7028 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7029 (lto_input_varpool_node): Likewise.
7030 * lto-streamer-out.c (hash_tree): Likewise.
7031 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7032 not stream DECL_TLS_MODEL.
7033 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7034 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7036 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7038 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7040 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7042 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7043 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7045 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7046 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7047 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7048 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7049 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7050 (df_get_artificial_defs, df_get_artificial_uses)
7051 (df_single_def, df_single_use): Update accordingly.
7052 (df_refs_chain_dump): Take the first element in a linked list as
7053 parameter, rather than a pointer to an array of pointers.
7054 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7055 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7056 (df_chain_create_bb_process_use): Likewise.
7057 (df_md_bb_local_compute_process_def): Likewise.
7058 * fwprop.c (process_defs, process_uses): Likewise.
7059 (register_active_defs, update_uses): Likewise.
7060 (forward_propagate_asm): Update for new df_ref linking.
7061 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7062 (df_null_ref_rec, df_null_mw_rec): Likewise.
7063 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7065 (df_scan_free_bb_info): Remove check for null artificial_defs.
7066 (df_install_ref_incremental): Adjust for new df_ref linking.
7067 Use a single-element insertion rather than a full sort.
7068 (df_ref_chain_delete_du_chain): Take the first element
7069 in a linked list as parameter, rather than a pointer to an array of
7071 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7072 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7073 (df_insn_info_delete): Remove check for null defs and call to
7074 df_scan_free_mws_vec.
7075 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7076 null rather than df_null_*_rec.
7077 (df_insn_rescan_debug_internal): Likewise, and update null
7078 checks in the same way. Remove check for null defs.
7079 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7080 Move a single element rather doing a full sort.
7081 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7083 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7084 Initialize df_ref and df_mw_hardreg lists to null rather than
7086 (df_ref_compare): Take df_refs as parameter, transferring the
7088 (df_ref_ptr_compare): ...this new function.
7089 (df_sort_and_compress_refs): Update accordingly.
7090 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7092 (df_mw_ptr_compare): ...this new function.
7093 (df_sort_and_compress_mws): Update accordingly.
7094 (df_install_refs, df_install_mws): Return a linked list rather than
7095 an array of pointers.
7096 (df_refs_add_to_chains): Assert that old lists are empty rather
7098 (df_insn_refs_verify): Don't handle null defs speciailly.
7099 * web.c (union_match_dups): Update for new df_ref linking.
7101 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7103 * df.h (df_ref_create, df_ref_remove): Delete.
7104 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7105 (df_ref_remove): Likewise.
7107 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7109 * df.h (df_single_def, df_single_use): New functions.
7110 * ira.c (find_moveable_pseudos): Use them.
7112 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7114 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7115 * df-problems.c (df_note_bb_compute): Use it.
7116 * regstat.c (regstat_bb_compute_ri): Likewise.
7118 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7120 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7121 * cse.c (cse_extended_basic_block): Use them.
7122 * dce.c (mark_artificial_use): Likewise.
7123 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7124 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7125 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7126 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7127 (df_simulate_initialize_backwards): Likewise.
7128 (df_simulate_finalize_backwards): Likewise.
7129 (df_simulate_initialize_forwards): Likewise.
7130 (df_md_simulate_artificial_defs_at_top): Likewise.
7131 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7132 * regrename.c (init_rename_info): Likewise.
7133 * regstat.c (regstat_bb_compute_ri): Likewise.
7134 (regstat_bb_compute_calls_crossed): Likewise.
7136 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7138 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7139 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7140 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7141 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7142 * combine.c (create_log_links): Likewise.
7143 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7144 (try_eliminate_compare): Likewise.
7145 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7146 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7147 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7148 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7149 (word_dce_process_block, dce_process_block): Likewise.
7150 * ddg.c (def_has_ccmode_p): Likewise.
7151 * df-core.c (df_bb_regno_first_def_find): Likewise.
7152 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7153 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7154 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7155 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7156 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7157 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7158 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7159 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7160 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7161 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7162 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7163 * fwprop.c (local_ref_killed_between_p): Likewise.
7164 (all_uses_available_at, free_load_extend): Likewise.
7165 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7166 * hw-doloop.c (scan_loop): Likewise.
7167 * ifcvt.c (dead_or_predicable): Likewise.
7168 * init-regs.c (initialize_uninitialized_regs): Likewise.
7169 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7170 (process_bb_node_lives): Likewise.
7171 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7172 (find_moveable_pseudos): Likewise.
7173 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7174 * recog.c (peep2_find_free_register): Likewise.
7175 * ree.c (get_defs): Likewise.
7176 * regstat.c (regstat_bb_compute_ri): Likewise.
7177 (regstat_bb_compute_calls_crossed): Likewise.
7178 * sched-deps.c (find_inc, find_mem): Likewise.
7179 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7180 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7181 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7182 (prepare_shrink_wrap): Likewise.
7183 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7184 * web.c (union_defs, pass_web::execute): Likewise.
7185 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7186 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7188 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7190 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7191 to inheritance pseudos.
7192 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7194 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7197 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7198 (BU_MISC_2): Rename to ...
7199 (BU_LDBL128_2): ... this.
7200 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7201 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7202 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7204 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7205 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7206 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7207 (unpacktf_1): Likewise.
7208 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7209 (__builtin_longdouble_dw1): Likewise.
7210 * doc/sourcebuild.texi (longdouble128): Document.
7212 2014-06-13 Jeff Law <law@redhat.com>
7214 PR rtl-optimization/61094
7215 PR rtl-optimization/61446
7216 * ree.c (combine_reaching_defs): Get the mode for the copy from
7217 the extension insn rather than the defining insn.
7219 2014-06-13 Dehao Chen <dehao@google.com>
7221 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7223 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7225 * doc/install.texi (--enable-linker-plugin-configure-flags)
7226 (--enable-linker-plugin-flags): Document new flags.
7228 2014-06-13 Martin Jambor <mjambor@suse.cz>
7231 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7232 cache_token if returning early.
7234 2014-06-13 Nick Clifton <nickc@redhat.com>
7236 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7237 requested alignment is active.
7238 (LABEL_ALIGN): Likewise.
7239 (LOOP_ALIGN): Likewise.
7241 2014-06-13 Richard Biener <rguenther@suse.de>
7243 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7244 Rewrite to propagate the VN result into all uses where
7245 possible and to remove stmts becoming dead because of that.
7246 (eliminate): Generalize stmt removal handling, remove in
7247 reverse dominator order to support proper debug stmt
7248 generation. Update stmts before removing stmts.
7249 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7251 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7253 PR tree-optimization/61375
7254 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7255 symbolic number cannot be represented in an uint64_t.
7256 (find_bswap_or_nop_1): Likewise.
7258 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7260 * symtab.c (symtab_node::reset_section): New method.
7261 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7263 * cgraph.h (reset_section): Declare.
7264 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7265 do not consider comdat locals.
7266 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7268 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7269 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7270 reset sections of symbols dragged out of the comdats.
7271 (function_and_variable_visibility): Reset sections of
7274 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7276 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7277 to use symtab and decl_binds_to_current_def_p
7278 * tree-vectorizer.c (increase_alignment): Increase alignment
7279 of alias target, too.
7281 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7284 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7285 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7286 if outer combined construct is distribute.
7287 (gimplify_omp_for): For OMP_DISTRIBUTE set
7288 gimplify_omp_ctxp->distribute.
7289 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7290 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7291 mapping into decl map.
7293 2014-06-12 Jason Merrill <jason@redhat.com>
7295 * common.opt (fabi-version): Change default to 0.
7297 2014-06-12 Jason Merrill <jason@redhat.com>
7299 * toplev.c (process_options): Reject -fabi-version=1.
7301 2014-06-12 Jeff Law <law@redhat.com>
7303 PR tree-optimization/61009
7304 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7305 value when we stop processing a block due to problematic PHIs.
7307 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7309 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7310 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7311 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7312 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7313 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7314 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7315 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7316 are not in the spec.
7318 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7321 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7322 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7325 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7327 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7329 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7332 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7333 loading from address spaces.
7335 2014-06-12 Martin Liska <mliska@suse.cz>
7338 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7339 statement is reachable.
7341 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7343 * symtab.c (section_hash): New hash.
7344 (symtab_unregister_node): Clear section before freeing.
7345 (hash_section_hash_entry): New haser.
7346 (eq_sections): New function.
7347 (symtab_node::set_section_for_node): New method.
7348 (set_section_1): Update.
7349 (symtab_node::set_section): Take string instead of tree as parameter.
7350 (symtab_resolve_alias): Update.
7351 * cgraph.h (section_hash_entry_d): New structure.
7352 (section_hash_entry): New typedef.
7353 (cgraph_node): Change comdat_group_ to x_comdat_group,
7354 change section_ to x_section and turn into section_hash_entry;
7355 update accestors; put set_section_for_node offline.
7356 * tree.c (decl_section_name): Turn into string.
7357 (set_decl_section_name): Change parameter to be string.
7358 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7359 * sdbout.c (sdbout_one_type): Update.
7360 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7361 * varasm.c (IN_NAMED_SECTION, get_named_section,
7362 resolve_unique_section, hot_function_section, get_named_text_section,
7363 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7364 make_decl_rtl, default_unique_section): Update.
7365 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7366 (c6x_elf_unique_section): Update.
7367 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7368 * config/pa/pa.c (pa_function_section): Update.
7369 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7370 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7371 * config/arc/arc.c (arc_in_small_data_p): Update.
7372 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7373 * config/mcore/mcore.c (mcore_unique_section): Update.
7374 * config/mips/mips.c (mips16_build_function_stub): Update.
7375 (mips16_build_call_stub): Update.
7376 (mips_function_rodata_section): Update.
7377 (mips_in_small_data_p): Update.
7378 * config/score/score.c (score_in_small_data_p): Update.
7379 * config/rx/rx.c (rx_in_small_data): Update.
7380 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7381 (rs6000_xcoff_asm_named_section): Update.
7382 (rs6000_xcoff_unique_section): Update.
7383 * config/frv/frv.c (frv_string_begins_with): Update.
7384 (frv_in_small_data_p): Update.
7385 * config/v850/v850.c (v850_encode_data_area): Update.
7386 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7387 (bfin_handle_l1_data_attribute): Update.
7388 (bfin_handle_l2_attribute): Update.
7389 * config/mep/mep.c (mep_unique_section): Update.
7390 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7392 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7393 (h8300_handle_tiny_data_attribute): Update.
7394 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7395 (m32r_in_small_data_p): Update.
7396 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7397 * config/i386/i386.c (ix86_in_large_data_p): Update.
7398 * config/i386/winnt.c (i386_pe_unique_section): Update.
7399 * config/darwin.c (darwin_function_section): Update.
7400 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7401 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7402 (new_emutls_decl): Update.
7403 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7404 input_varpool_node): Update.
7405 (ead_string_cst): Turn to ...
7406 (read_string): ... this one.
7407 * dwarf2out.c (secname_for_decl): Update.
7408 * asan.c (asan_protect_global): Update.
7410 2014-06-11 DJ Delorie <dj@redhat.com>
7412 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7414 * config/rx/rx.c (rx_option_override): Likewise.
7415 (rx_align_for_label): Likewise.
7417 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7419 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7421 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7424 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7426 * common.md: New file.
7427 * doc/md.texi: Update description of generic, machine-independent
7429 * config/s390/constraints.md (e): Delete.
7430 * Makefile.in (md_file): Include common.md.
7431 * config/m32c/t-m32c (md_file): Likewise.
7432 * genpreds.c (general_mem): New array.
7433 (generic_constraint_letters): Remove constraints now defined by
7435 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7436 Allow the first character to be '<' or '>' as well.
7437 * genoutput.c (general_mem): New array.
7438 (indep_constraints): Remove constraints now defined by common.md.
7439 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7440 Remove special handling of 'm'.
7441 * ira-costs.c (record_reg_classes): Remove special handling of
7442 constraints now defined by common.md.
7443 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7444 * ira-lives.c (single_reg_class): Likewise.
7445 (ira_implicitly_set_insn_hard_regs): Likewise.
7446 * lra-constraints.c (reg_class_from_constraints): Likewise.
7447 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7448 * postreload.c (reload_cse_simplify_operands): Likewise.
7449 * reload.c (push_secondary_reload, scratch_reload_class)
7450 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7451 * reload1.c (maybe_fix_stack_asms): Likewise.
7452 * targhooks.c (default_secondary_reload): Likewise.
7453 * stmt.c (parse_output_constraint): Likewise.
7454 * recog.c (preprocess_constraints): Likewise.
7455 (constrain_operands, peep2_find_free_register): Likewise.
7456 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7457 must be handled specially.
7459 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7461 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7462 * genpreds.c (have_const_dbl_constraints): Delete.
7463 (add_constraint): Don't set it.
7464 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7465 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7466 constraints using the lookup_constraint logic.
7467 * ira-lives.c (single_reg_class): Likewise.
7468 * ira.c (ira_setup_alts): Likewise.
7469 * lra-constraints.c (process_alt_operands): Likewise.
7470 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7471 * reload.c (find_reloads): Likewise.
7473 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7475 * genpreds.c (const_int_start, const_int_end): New variables.
7476 (choose_enum_order): Output CONST_INT constraints before memory
7478 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7480 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7481 * ira.c (ira_setup_alts): Likewise.
7482 * lra-constraints.c (process_alt_operands): Likewise.
7483 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7484 * reload.c (find_reloads): Likewise.
7486 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7488 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7489 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7490 * recog.c (preprocess_constraints): Update accordingly.
7492 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7494 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7495 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7496 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7497 * genpreds.c (print_type_tree): New function.
7498 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7499 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7500 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7501 Write out enum constraint_type and get_constraint_type.
7502 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7503 constraint_num rather than a constraint string.
7504 (satisfies_address_constraint_p): Likewise.
7505 (reg_class_from_constraints): Avoid old constraint macros.
7506 (process_alt_operands, process_address_1): Likewise.
7507 (curr_insn_transform): Likewise.
7508 * ira-costs.c (record_reg_classes): Likewise.
7509 (record_operand_costs): Likewise.
7510 * ira-lives.c (single_reg_class): Likewise.
7511 (ira_implicitly_set_insn_hard_regs): Likewise.
7512 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7513 * postreload.c (reload_cse_simplify_operands): Likewise.
7514 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7515 (constrain_operands, peep2_find_free_register): Likewise.
7516 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7517 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7518 * reload1.c (maybe_fix_stack_asms): Likewise.
7519 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7520 * targhooks.c (default_secondary_reload): Likewise.
7521 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7522 to EXTRA_CONSTRAINT_STR.
7523 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7525 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7527 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7528 (write_constraint_satisfied_p_array): ...this new function.
7529 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7531 (write_insn_preds_c): Update accordingly.
7533 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7535 * genpreds.c (write_lookup_constraint): Rename to...
7536 (write_lookup_constraint_1): ...this.
7537 (write_lookup_constraint_array): New function.
7538 (write_tm_preds_h): Define lookup_constraint as an inline function
7539 that uses write_lookup_constraint_array where possible.
7540 (write_insn_preds_c): Update for the changes above.
7542 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7544 * doc/md.texi (regclass_for_constraint): Rename to...
7545 (reg_class_for_constraint): ...this.
7546 * genpreds.c (num_constraints, enum_order, register_start)
7547 (register_end, satisfied_start, memory_start, memory_end)
7548 (address_start, address_end): New variables.
7549 (add_constraint): Count the number of constraints.
7550 (choose_enum_order): New function.
7551 (write_enum_constraint_num): Iterate over enum_order.
7552 (write_regclass_for_constraint): Rename to...
7553 (write_reg_class_for_constraint_1): ...this and update output
7555 (write_constraint_satisfied_p): Rename to...
7556 (write_constraint_satisfied_p_1): ...this and update output
7557 accordingly. Do nothing if all extra constraints are register
7559 (write_insn_extra_memory_constraint): Delete.
7560 (write_insn_extra_address_constraint): Delete.
7561 (write_range_function): New function.
7562 (write_tm_preds_h): Define constraint_satisfied_p and
7563 reg_class_for_constraint as inline functions that do a range check
7564 before calling the out-of-line function. Use write_range_function
7565 to implement insn_extra_{register,memory,address}_constraint,
7566 the first of which is new.
7567 (write_insn_preds_c): Update after above changes to write_* functions.
7568 (main): Call choose_enum_order.
7570 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7572 PR tree-optimization/61306
7573 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7574 expression instead of its size.
7575 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7576 false to prevent optimization when the result is unpredictable due to
7577 arithmetic right shift of signed type with highest byte is set.
7578 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7579 (init_symbolic_number): Likewise.
7580 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7581 when the result is unpredictable due to sign extension.
7583 2014-06-11 Terry Guo <terry.guo@arm.com>
7585 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7586 (*thumb1_addsi3): Ditto.
7587 (*thumb_subdi3): Ditto.
7588 (thumb1_subsi3_insn): Ditto.
7589 (*thumb_mulsi3): Ditto.
7590 (*thumb_mulsi3_v6): Ditto.
7591 (*thumb1_andsi3_insn): Ditto.
7592 (thumb1_bicsi3): Ditto.
7593 (*thumb1_iorsi3_insn): Ditto.
7594 (*thumb1_xorsi3_insn): Ditto.
7595 (*thumb1_ashlsi3): Ditto.
7596 (*thumb1_ashrsi3): Ditto.
7597 (*thumb1_lshrsi3): Ditto.
7598 (*thumb1_rotrsi3): Ditto.
7599 (*thumb1_negdi2): Ditto.
7600 (*thumb1_negsi2): Ditto.
7601 (*thumb1_abssi2): Ditto.
7602 (*thumb1_neg_abssi2): Ditto.
7603 (*thumb1_one_cmplsi2): Ditto.
7604 (*thumb1_zero_extendhisi2): Ditto.
7605 (*thumb1_zero_extendqisi2): Ditto.
7606 (*thumb1_zero_extendqisi2_v6): Ditto.
7607 (thumb1_extendhisi2): Ditto.
7608 (thumb1_extendqisi2): Ditto.
7609 (*thumb1_movdi_insn): Ditto.
7610 (*thumb1_movsi_insn): Ditto.
7611 (*thumb1_movhi_insn): Ditto.
7612 (thumb_movhi_clobber): Ditto.
7613 (*thumb1_movqi_insn): Ditto.
7614 (*thumb1_movhf): Ditto.
7615 (*thumb1_movsf_insn): Ditto.
7616 (*thumb_movdf_insn): Ditto.
7619 (cbranchqi4): Ditto.
7620 (cbranchsi4_insn): Ditto.
7621 (cbranchsi4_scratch): Ditto.
7622 (*negated_cbranchsi4): Ditto.
7623 (*tbit_cbranch): Ditto.
7624 (*tlobits_cbranch): Ditto.
7625 (*tstsi3_cbranch): Ditto.
7626 (*cbranchne_decr1): Ditto.
7627 (*addsi3_cbranch): Ditto.
7628 (*addsi3_cbranch_scratch): Ditto.
7629 (*thumb_cmpdi_zero): Ditto.
7630 (cstoresi_eq0_thumb1): Ditto.
7631 (cstoresi_ne0_thumb1): Ditto.
7632 (*cstoresi_eq0_thumb1_insn): Ditto.
7633 (*cstoresi_ne0_thumb1_insn): Ditto.
7634 (cstoresi_nltu_thumb1): Ditto.
7635 (cstoresi_ltu_thumb1): Ditto.
7636 (thumb1_addsi3_addgeu): Ditto.
7637 (*thumb_jump): Ditto.
7638 (*call_reg_thumb1_v5): Ditto.
7639 (*call_reg_thumb1): Ditto.
7640 (*call_value_reg_thumb1_v5): Ditto.
7641 (*call_value_reg_thumb1): Ditto.
7642 (*call_insn): Ditto.
7643 (*call_value_insn): Ditto.
7644 (thumb1_casesi_internal_pic): Ditto.
7645 (thumb1_casesi_dispatch): Ditto.
7646 (*thumb1_indirect_jump): Ditto.
7647 (prologue_thumb1_interwork): Ditto.
7648 (*epilogue_insns): Ditto.
7649 (consttable_1): Ditto.
7650 (consttable_2): Ditto.
7652 (*thumb1_tablejump): Ditto.
7653 (thumb_eh_return): Ditto.
7654 (define_peephole2): Two of them are thumb1 only and got moved into
7656 (define_split): Six of them are thumb1 only and got moved into new
7658 * config/arm/thumb1.md: New file comprised of above thumb1 only
7661 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7663 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7664 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7666 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7667 (aarch64_crc_builtin_datum): New struct.
7668 (aarch64_crc_builtin_data): New.
7669 (aarch64_init_crc32_builtins): New function.
7670 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7671 (aarch64_crc32_expand_builtin): New.
7672 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7673 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7674 __ARM_FEATURE_CRC32 when appropriate.
7675 (TARGET_CRC32): Define.
7676 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7677 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7678 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7679 (aarch64_<crc_variant>): New pattern.
7680 * config/aarch64/arm_acle.h: New file.
7681 * config/aarch64/iterators.md (CRC): New int iterator.
7682 (crc_variant, crc_mode): New int attributes.
7683 * doc/aarch64-acle-intrinsics.texi: New file.
7684 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7685 Include aarch64-acle-intrinsics.texi.
7687 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7689 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7690 check for stores group of length 3.
7691 (vect_permute_store_chain): New permutations for stores group of
7693 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7694 of vec_perm_shuffle for the new permutations.
7696 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7698 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7699 table rewriting temporarily on targets not supporting ONE_ONLY.
7701 2014-06-11 Richard Biener <rguenther@suse.de>
7705 2014-06-04 Richard Biener <rguenther@suse.de>
7707 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7708 TREE_PUBLIC and DECL_EXTERNAL decls.
7710 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7712 * varasm.c (set_implicit_section): New function.
7713 (resolve_unique_section): Use it to set implicit section
7715 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7716 (default_function_section): Likewise.
7717 (decl_binds_to_current_def_p): Constify argument.
7718 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7719 * asan.c (asan_protect_global): Use
7720 symtab_get_node (decl)->implicit_section.
7721 * symtab.c (dump_symtab_base): Dump implicit sections.
7722 (verify_symtab_base): Verify sanity of sectoins and comdats.
7723 (symtab_resolve_alias): Alias share the section of its target.
7724 (set_section_1): New function.
7725 (symtab_node::set_section): Move here, recurse to aliases.
7726 (verify_symtab): Check for duplicated symtab lists.
7727 * tree-core.h (implicit_section_name_p): Remove.
7728 * tree-vect-data-refs.c: Include varasm.h.
7729 (vect_can_force_dr_alignment_p): Fix conditional on when
7730 decl bints to current definition; use
7731 symtab_get_node (decl)->implicit_section.
7732 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7733 * cgraph.h (struct symtab_node): Add implicit_section.
7734 (set_section): Rename to ...
7735 (set_section_for_node): ... this one.
7736 (set_section): Declare.
7737 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7738 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7739 input_overwrite_node, input_varpool_node): Stream implicit_section.
7740 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7741 removal; it will fail in LTO.
7743 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7745 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7746 Change second alternative type to f_mcr.
7747 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7748 and 12th alternatives' types to f_mcr and f_mrc.
7749 (*movdi_aarch64): Same for 12th and 13th alternatives.
7750 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7751 (aarch64_movtilow_tilow): Change type to fmov.
7753 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7755 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7756 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7758 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7760 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7762 (aarch64_sqrdmulh_lane<mode>): Likewise.
7763 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7764 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7765 (aarch64_sqdmulh_laneq<mode>): New expander.
7766 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7767 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7768 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7769 (aarch64_sqdmulh_lane<mode>): New expander.
7770 (aarch64_sqrdmulh_lane<mode>): Likewise.
7771 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7772 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7773 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7774 (aarch64_sqdmlal_laneq<mode>): Likewise.
7775 (aarch64_sqdmlsl_lane<mode>): Likewise.
7776 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7777 (aarch64_sqdmlal2_lane<mode>): Likewise.
7778 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7779 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7780 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7781 (aarch64_sqdmull_lane<mode>): Likewise.
7782 (aarch64_sqdmull_laneq<mode>): Likewise.
7783 (aarch64_sqdmull2_lane<mode>): Likewise.
7784 (aarch64_sqdmull2_laneq<mode>): Likewise.
7786 2014-06-10 Richard Biener <rguenther@suse.de>
7788 PR tree-optimization/61438
7789 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7790 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7791 insertion of IVs if running PRE.
7792 (eliminate): Adjust.
7793 (pass_pre::execute): Likewise.
7794 (pass_fre::execute): Likewise.
7796 2014-06-10 Richard Biener <rguenther@suse.de>
7799 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7800 Do not use the main variant for the type comparison.
7801 (ncr_compar): Likewise.
7802 (nonoverlapping_component_refs_p): Likewise.
7804 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7806 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7807 REG_CFA_RESTORE mode.
7809 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7811 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7812 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7813 expand_vec_perm_pblendv.
7815 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7817 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7819 Simplify description of __crc32d and __crc32cd intrinsics.
7820 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7823 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7826 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7827 * config.in: Regenerate.
7828 * configure: Likewise.
7830 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7832 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7834 (intersect_static_var_sets): Remove.
7835 (propagate): Do not prune local statics.
7837 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7840 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7841 Set lastprivate_firstprivate even if omp_private_outer_ref
7842 langhook returns true.
7843 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7844 langhook, call unshare_expr on new_var and call
7845 build_outer_var_ref to get the last argument.
7847 2014-06-10 Marek Polacek <polacek@redhat.com>
7850 * doc/extend.texi: Add cindex for transparent_union.
7852 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7854 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7855 init_symbolic_number ().
7857 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7860 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7861 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7862 (verify_rtl_sharing): Likewise.
7864 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7867 * tree.c (build_qualified_type): Use a canonical type for
7870 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7872 * config/arm/arm-modes.def: Remove XFmode.
7874 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7877 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7878 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7879 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7880 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7881 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7882 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7883 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7884 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7885 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7887 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7889 * tree-core.h (tree_decl_with_vis): Remove section_name.
7891 2014-06-09 Kito Cheng <kito@0xlab.org>
7893 * ira.c (ira): Don't call init_caller_save if LRA enabled
7894 since LRA use its own infrastructure to handle that.
7896 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7898 * symtab.c (dump_symtab_base): Update dumping.
7899 (symtab_make_decl_local): Clear only DECL_COMDAT.
7900 * tree-vect-data-refs.c (Check that variable is static before
7901 tampering with sections.
7902 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7903 (cgraph_create_virtual_clone): Likewise.
7904 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7905 (decl_section_name, set_decl_section_name): New accessors.
7906 (find_decls_types_r): Do not walk section name
7907 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7908 (decl_comdat_group, decl_comdat_group_id): Constify.
7909 (decl_section_name, set_decl_section_name): Update.
7910 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7911 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7912 (cgraph_make_node_local_1): Clear section and comdat group.
7913 * cgraph.h (set_comdat_group): Sanity check.
7914 (get_section, set_section): New.
7915 * ipa-comdats.c (ipa_comdats): Use get_section.
7916 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7917 * lto-streamer-out.c: Do not follow section names.
7918 * c-family/c-common.c (handle_section_attribute): Update.
7919 * lto-cgraph.c (lto_output_node): Output section.
7920 (lto_output_varpool_node): Likewise.
7921 (read_comdat_group): Rename to ...
7922 (read_identifier): ... this one.
7923 (read_string_cst): New function.
7924 (input_node, input_varpool_node): Input section names.
7925 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7926 (new_emutls_decl): Update.
7927 (secname_for_decl): Check section names only of static vars.
7928 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7929 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7930 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7931 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7932 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7933 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7934 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7935 * config/v850/v850.c (v850_insert_attributes): Likewise.
7936 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7938 (h8300_handle_tiny_data_attribute): Likewise.
7939 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7940 (bfin_handle_l2_attribute): Likewise.
7942 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7944 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
7945 remove static initializer.
7947 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7949 * varasm.c (use_blocks_for_decl_p): Check symbol table
7950 instead of alias attribute.
7951 (place_block_symbol): Recurse on aliases.
7953 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7955 * ipa-visibility.c: Include varasm.h
7956 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
7958 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7960 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
7963 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
7965 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
7966 from test_insn into GGC space escape via SET_SRC.
7968 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
7970 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
7971 call statement, if any.
7972 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
7973 statements, if any. Tidy up.
7975 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7978 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
7979 iterators, VSX_D that handles 64-bit types, and VSX_LE that
7980 handles swapping the two 64-bit double words on little endian
7981 systems. Include V1TImode and optionally TImode in VSX_LE so that
7982 these types are properly swapped. Change all of the insns and
7983 splits that do the 64-bit swaps to use VSX_LE.
7984 (vsx_le_perm_load_<mode>): Likewise.
7985 (vsx_le_perm_store_<mode>): Likewise.
7986 (splitters for little endian memory operations): Likewise.
7987 (vsx_xxpermdi2_le_<mode>): Likewise.
7988 (vsx_lxvd2x2_le_<mode>): Likewise.
7989 (vsx_stxvd2x2_le_<mode>): Likewise.
7991 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
7994 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
7995 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
7996 and corresponding splitters. Zero extend general register
7997 or memory input operand to XMM temporary. Enable for
7998 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
7999 (floatunssi<mode>2): Update expander predicate.
8001 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8003 PR rtl-optimization/61325
8004 * lra-constraints.c (process_address_1): Check scale equal to one
8005 to prevent transformation: base + scale * index => base + new_reg.
8007 2014-06-06 Richard Biener <rguenther@suse.de>
8009 PR tree-optimization/59299
8010 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8012 (nearest_common_dominator_of_uses): Likewise.
8013 (statement_sink_location): Adjust. Support sinking loads.
8015 2014-06-06 Martin Jambor <mjambor@suse.cz>
8017 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8018 (build_agg_jump_func_from_list): Likewise.
8019 (determine_known_aggregate_parts): Renamed to
8020 determine_locally_known_aggregate_parts. Moved some functionality
8021 to the two functions above, removed bound checks.
8023 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8025 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8026 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8027 (aarch64_progress_pointer): Likewise.
8028 (aarch64_copy_one_part_and_move_pointers): Likewise.
8029 (aarch64_expand_movmen): Likewise.
8030 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8031 * config/aarch64/aarch64.md (movmem<mode>): New.
8033 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8035 * targhooks.c (default_add_stmt_cost): Call target specific
8036 hook instead of default one.
8038 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8040 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8041 endianness instead of host endianness.
8042 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8045 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8048 * function.c (instantiate_decls): Process the saved static chain.
8049 (expand_function_start): If not optimizing, save the static chain
8051 * tree-nested.c (convert_all_function_calls): Always create the static
8052 chain for nested functions if not optimizing.
8054 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8056 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8058 2014-06-06 Richard Biener <rguenther@suse.de>
8060 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8061 (construct_init_block): Likewise.
8062 (construct_exit_block): Likewise.
8063 (pass_expand::execute): Likewise.
8064 * graphite.c (graphite_transforms): Replace check for current_loops
8065 with a check for > 1 loops.
8066 (pass_graphite_transforms::execute): Adjust.
8067 * ipa-split.c (split_function): Remove check for current_loops.
8068 * omp-low.c (expand_parallel_call): Likewise.
8069 (expand_omp_for_init_counts): Likewise.
8070 (extract_omp_for_update_vars): Likewise.
8071 (expand_omp_for_generic): Likewise.
8072 (expand_omp_sections): Likewise.
8073 (expand_omp_target): Likewise.
8074 * tracer.c (tail_duplicate): Likewise.
8075 (pass_tracer::execute): Likewise.
8076 * trans-mem.c (expand_transaction): Likewise.
8077 * tree-complex.c (expand_complex_div_wide): Likewise.
8078 * tree-eh.c (lower_resx): Likewise.
8079 (cleanup_empty_eh_merge_phis): Likewise.
8080 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8081 current_loops with a check for > 1 loops.
8082 (pass_predcom::execute): Adjust.
8083 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8084 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8085 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8086 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8087 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8088 * tree-switch-conversion.c (process_switch): Likewise.
8089 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8090 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8091 (execute_vrp): Likewise.
8092 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8094 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8096 * rtl.h (insn_location): Declare.
8097 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8098 with UNKNOWN_LOCATION.
8099 * emit-rtl.c (insn_location): New function.
8100 * final.c (notice_source_line): Check that the instruction has a
8101 location before retrieving it and use insn_location.
8102 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8103 * print-rtl.c (print_rtx): Likewise.
8105 2014-06-06 Richard Biener <rguenther@suse.de>
8107 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8109 2014-06-06 Christian Bruel <christian.bruel@st.com>
8111 PR tree-optimization/43934
8112 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8115 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8117 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8118 return NO_REGS for extra address and memory constraints. Handle
8119 operands that match (or are equivalent to something that matches)
8120 extra constant constraints. Ignore other non-register operands.
8122 2014-06-06 Alan Modra <amodra@gmail.com>
8125 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8126 * doc/tm.texi: Regenerate.
8127 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8128 Use throughout in place of REG_PARM_STACK_SPACE.
8129 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8130 "incoming" param. Pass to rs6000_function_parms_need_stack.
8131 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8132 prototype_p when incoming. Use function decl when incoming
8133 to handle K&R style functions.
8134 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8135 (INCOMING_REG_PARM_STACK_SPACE): Define.
8137 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8140 * cfgexpand.c (expand_debug_expr): Use address space of nested
8141 TREE_TYPE for ADDR_EXPR and MEM_REF.
8143 2014-06-05 Jeff Law <law@redhat.com>
8145 PR tree-optimization/61289
8146 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8147 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8148 looking for those which match LHS. All callers changed.
8149 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8150 parameters and code which manipulated them. All callers changed.
8151 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8152 and DST_MAP parameters. Simplify invalidation code by just calling
8153 invalidate_equivalences. All callers changed.
8154 (thread_across_edge): Simplify now that we don't need to maintain
8155 the map of equivalences to invalidate.
8157 2014-06-05 Kai Tietz <ktietz@redhat.com>
8158 Richard Henderson <rth@redhat.com>
8161 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8162 checking for !TARGET_X32.
8163 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8164 (sibcall_intern): New define_insn, plus required peepholes.
8165 (sibcall_pop_intern): Likewise.
8166 (sibcall_value_intern): Likewise.
8167 (sibcall_value_pop_intern): Likewise.
8169 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8171 * tree-inline.c (tree_function_versioning): Check DF info existence
8172 before accessing it.
8174 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8176 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8178 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8179 aarch64_frame hard_fp_offset and frame_size.
8180 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8181 frame_size; remove original_frame_size.
8182 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8183 (aarch64_initial_elimination_offset): Remove frame_size and
8184 offset. Use aarch64_frame frame_size.
8186 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8187 Jiong Wang <jiong.wang@arm.com>
8188 Renlin <renlin.li@arm.com>
8190 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8191 initialization of R30 offset. Update offset. Iterate core
8192 regisers upto X30. Remove X29, X30 specific code.
8194 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8195 Jiong Wang <jiong.wang@arm.com>
8197 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8198 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8199 (aarch64_register_saved_on_entry): Adjust test.
8201 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8203 * config/aarch64/aarch64.h (machine_function): Move
8204 saved_varargs_size from here...
8205 (aarch64_frame): ... to here.
8207 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8208 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8209 (aarch64_initial_elimination_offset)
8210 (aarch64_setup_incoming_varargs): Adjust location of
8213 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8215 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8218 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8219 Prachi Godbole <Prachi.Godbole@imgtec.com>
8221 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8222 mips32r5 entry to use PROCESSOR_P5600.
8223 * config/mips/mips-tables.opt: Regenerate.
8224 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8225 * config/mips/mips.c (mips_fmadd_bypass): New function.
8226 (mips_rtx_cost_data): Add costs for p5600.
8227 (mips_issue_rate): Add support for p5600.
8228 (mips_multipass_dfa_lookahead): Likewise.
8229 * config/mips/mips.h (TUNE_P5600): New define.
8230 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8231 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8232 * config/mips/mips.md: Include p5600.md.
8233 (processor): Add p5600.
8234 * config/mips/p5600.md: New file.
8236 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8238 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8239 * config/i386/predicates.md (palignr_operand): New.
8240 Indicates if permutation is suitable for palignr instruction.
8242 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8244 PR tree-optimization/61319
8245 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8246 stmt belongs to loop.
8248 2014-06-05 Richard Biener <rguenther@suse.de>
8250 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8251 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8252 (lookup_tmp_var): Adjust.
8253 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8255 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8257 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8259 2014-06-05 Marek Polacek <polacek@redhat.com>
8262 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8264 2014-06-04 Tom de Vries <tom@codesourcery.com>
8266 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8269 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8271 PR tree-optimization/61385
8272 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8274 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8276 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8277 changed to use fatal_error.
8278 (main): Ensure lto_wrapper_cleanup is run atexit.
8280 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8282 * lra-constraints.c (valid_address_p): Move earlier in file.
8283 (address_eliminator): New structure.
8284 (satisfies_memory_constraint_p): New function.
8285 (satisfies_address_constraint_p): Likewise.
8286 (process_alt_operands, process_address, curr_insn_transform): Use them.
8288 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8290 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8292 (target_lra_int, default_target_lra_int, this_target_lra_int)
8293 (op_alt_data): Delete.
8294 * lra.h (lra_init): Delete.
8295 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8296 (init_insn_code_data_once): Remove op_alt_data handling.
8297 (finish_insn_code_data_once): Likewise.
8298 (init_op_alt_data): Delete.
8299 (get_static_insn_data): Initialize operand_alternative to null.
8300 (free_insn_recog_data): Cast operand_alternative before freeing it.
8301 (setup_operand_alternative): Take the operand_alternative as
8302 parameter and assume it isn't already cached in the static
8304 (lra_set_insn_recog_data): Update accordingly.
8306 * ira.c (ira_init): Don't call lra_init.
8307 * target-globals.h (this_target_lra_int): Declare.
8308 (target_globals): Remove lra_int.
8309 (restore_target_globals): Update accordingly.
8310 * target-globals.c: Don't include lra-int.h.
8311 (default_target_globals, save_target_globals): Remove lra_int.
8313 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8315 * recog.h (operand_alternative): Convert reg_class, reject,
8316 matched and matches into bitfields.
8317 (preprocess_constraints): New overload.
8318 (preprocess_insn_constraints): New function.
8319 (preprocess_constraints): Take the insn as parameter.
8320 (recog_op_alt): Change into a pointer.
8321 (target_recog): Add x_op_alt.
8322 * recog.c (asm_op_alt): New variable.
8323 (recog_op_alt): Change into a pointer.
8324 (preprocess_constraints): New overload, replacing the old function
8325 definition with one that doesn't use global state.
8326 (preprocess_insn_constraints): New function.
8327 (preprocess_constraints): Use them. Take the insn as parameter.
8328 Use asm_op_alt for asms.
8329 (recog_init): Free existing x_op_alt entries.
8330 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8332 (make_early_clobber_and_input_conflicts): Likewise.
8333 (process_bb_node_lives): Pass the insn to process_constraints.
8334 * reg-stack.c (check_asm_stack_operands): Likewise.
8335 (subst_asm_stack_regs): Likewise.
8336 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8337 * regrename.c (build_def_use): Likewise.
8338 * sched-deps.c (sched_analyze_insn): Likewise.
8339 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8340 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8341 (note_invalid_constants): Likewise.
8342 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8343 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8346 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8348 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8349 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8351 (make_early_clobber_and_input_conflicts): Likewise.
8352 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8354 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8356 * recog.h (alternative_class): New function.
8357 (which_op_alt): Return a const recog_op_alt.
8358 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8359 (subst_asm_stack_regs): Likewise.
8360 * config/arm/arm.c (note_invalid_constants): Likewise.
8361 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8362 the operand_alternative; use alternative class instead.
8363 * sel-sched.c (get_reg_class): Likewise.
8364 * regrename.c (build_def_use): Likewise.
8365 (hide_operands, restore_operands, record_out_operands): Update type
8368 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8370 * recog.h (recog_op_alt): Convert to a flat array.
8371 (which_op_alt): New function.
8372 * recog.c (recog_op_alt): Convert to a flat array.
8373 (preprocess_constraints): Update accordingly, grouping all
8374 operands of the same alternative together, rather than the
8376 * ira-lives.c (check_and_make_def_conflict): Likewise.
8377 (make_early_clobber_and_input_conflicts): Likewise.
8378 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8379 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8380 (subst_asm_stack_regs): Likewise.
8381 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8382 * regrename.c (hide_operands, record_out_operands): Likewise.
8383 (build_def_use): Likewise.
8384 * sel-sched.c (get_reg_class): Likewise.
8385 * config/arm/arm.c (note_invalid_constants): Likewise.
8387 2014-06-04 Jason Merrill <jason@redhat.com>
8391 * gimplify.c (gimplify_arg): Non-static.
8392 * gimplify.h: Declare it.
8394 2014-06-04 Richard Biener <rguenther@suse.de>
8396 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8397 TREE_PUBLIC and DECL_EXTERNAL decls.
8399 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8401 * regcprop.c (copyprop_hardreg_forward_1): Account for
8402 HARD_REGNO_CALL_PART_CLOBBERED.
8404 2014-06-04 Richard Biener <rguenther@suse.de>
8406 * configure.ac: Check whether the underlying type of int64_t
8407 is long or long long.
8408 * configure: Regenerate.
8409 * config.in: Likewise.
8410 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8411 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8413 2014-06-04 Richard Biener <rguenther@suse.de>
8415 PR tree-optimization/60098
8416 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8418 (dse_optimize_stmt): Simplify, now that we found a kill
8421 2014-06-04 Richard Biener <rguenther@suse.de>
8423 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8424 of accesses with non-invariant address.
8426 2014-06-04 Martin Liska <mliska@suse.cz>
8428 * cgraph.h (cgraph_make_wrapper): New function introduced.
8429 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8430 * ipa-inline.h (inline_analyze_function): The function is global.
8431 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8433 2014-06-04 Martin Liska <mliska@suse.cz>
8435 * tree.h (private_lookup_attribute_starting): New function.
8436 (lookup_attribute_starting): Likewise.
8437 * tree.c (private_lookup_attribute_starting): Likewise.
8439 2014-06-04 Martin Liska <mliska@suse.cz>
8441 * cgraph.h (expand_thunk): New argument added.
8442 (address_taken_from_non_vtable_p): New global function.
8443 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8444 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8445 * cgraphunit.c (analyze_function): Likewise.
8446 (assemble_thunks_and_aliases): Argument added to call.
8447 (expand_thunk): New argument forces to produce GIMPLE thunk.
8449 2014-06-04 Martin Liska <mliska@suse.cz>
8451 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8452 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8453 * profile.c (branch_prob): Likewise.
8455 2014-06-04 Martin Jambor <mjambor@suse.cz>
8458 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8459 handler for switch on an ipa_ref_use enum.
8460 * ipa-reference.c (analyze_function): Likewise.
8462 2014-06-04 Kai Tietz <ktietz@redhat.com>
8464 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8465 from old call-instruction.
8467 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8469 * config/aarch64/aarch64.c (aarch64_classify_address)
8470 (aarch64_legitimize_reload_address): Support full addressing modes
8472 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8473 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8475 2014-06-03 Andrew Pinski <apinski@cavium.com>
8477 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8480 2014-06-03 Andrew Pinski <apinski@cavium.com>
8482 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8483 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8485 2014-06-03 Kai Tietz <ktietz@redhat.com>
8487 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8490 2014-06-03 Dehao Chen <dehao@google.com>
8492 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8495 2014-06-03 Marek Polacek <polacek@redhat.com>
8498 * doc/invoke.texi: Document -Wswitch-bool.
8499 * function.c (stack_protect_epilogue): Cast controlling expression of
8501 * gengtype.c (walk_type): Generate switch expression with its
8502 controlling expression cast to int.
8504 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8506 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8508 * config/avr/avr-tables.opt: Regenerate.
8509 * config/avr/t-multilib: Regenerate.
8510 * doc/avr-mmcu.texi: Regenerate.
8512 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8513 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8515 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8516 (ata6617c, ata664251): Add new avr35 devices.
8517 (ata6612c): Add new avr4 device.
8518 (ata6613c, ata6614q): Add new avr5 devices.
8519 * config/avr/avr-tables.opt: Regenerate.
8520 * config/avr/t-multilib: Regenerate.
8521 * doc/avr-mmcu.texi: Regenerate.
8523 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8525 * gcc/config/aarch64/aarch64-builtins.c
8526 (aarch64_types_binop_ssu_qualifiers): New static data.
8527 (TYPES_BINOP_SSU): Define.
8528 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8529 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8530 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8531 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8532 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8533 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8534 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8535 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8536 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8537 suffix to builtin function name, remove cast.
8538 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8539 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8540 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8542 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8544 * gcc/config/aarch64/aarch64-builtins.c
8545 (aarch64_types_binop_uus_qualifiers,
8546 aarch64_types_shift_to_unsigned_qualifiers,
8547 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8548 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8549 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8550 sqshlu_n, uqshl_n): Update qualifiers.
8551 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8552 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8553 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8554 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8555 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8556 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8557 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8558 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8559 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8560 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8561 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8562 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8563 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8564 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8565 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8566 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8567 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8568 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8569 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8570 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8571 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8572 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8573 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8574 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8575 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8576 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8577 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8579 2014-06-03 Teresa Johnson <tejohnson@google.com>
8581 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8583 2014-06-02 Jason Merrill <jason@redhat.com>
8586 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8588 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8590 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8593 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8595 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8597 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8598 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8599 * config/aarch64/iterators.md (REVERSE): New iterator.
8600 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8601 (rev_op): New int_attribute.
8602 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8603 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8604 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8605 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8606 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8607 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8608 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8609 Replace temporary __asm__ with __builtin_shuffle.
8611 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8613 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8615 * config/mips/mips-tables.opt: Regenerate.
8616 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8617 to use mips_isa_rev rather than ISA_MIPS32R2.
8618 * config/mips/mips.h (ISA_MIPS32R3): New define.
8619 (ISA_MIPS32R5): New define.
8620 (ISA_MIPS64R3): New define.
8621 (ISA_MIPS64R5): New define.
8622 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8623 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8624 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8626 (MIPS_ISA_SYNCI_SPEC): Likewise.
8627 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8628 (LINK_SPEC): Added mips32r3 and mips32r5.
8629 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8630 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8631 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8632 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8633 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8634 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8635 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8637 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8639 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8641 * config/mips/mips.opt (mxpa): New option.
8642 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8645 2014-06-03 Martin Jambor <mjambor@suse.cz>
8648 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8651 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8653 PR tree-optimization/61328
8654 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8655 initialization from find_bswap_or_nop_1.
8656 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8657 in source_expr2 before using the size value the function sets. Also
8658 make use of init_symbolic_number () in both the old place and
8659 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8660 doing recursion in the GIMPLE_BINARY_RHS case.
8662 2014-06-03 Richard Biener <rguenther@suse.de>
8664 PR tree-optimization/61383
8665 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8668 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8670 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8671 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8672 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8673 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8675 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8676 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8677 * system.h: ...here and make it unconditional.
8678 * target.def (conditional_register_usage): Mention
8679 define_register_constraint instead of old-style constraint macros.
8680 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8681 * doc/tm.texi: Regenerate.
8682 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8683 protected by !USE_MD_CONSTRAINTS.
8684 * config/frv/frv.md: Remove quote from old version of documentation.
8685 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8686 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8687 CONST_DOUBLE_OK_FOR_LETTER.
8688 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8690 2014-06-02 Andrew Pinski <apinski@cavium.com>
8692 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8693 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8694 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8695 file whose name depends on -mabi= and -mbig-endian.
8696 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8697 Handle LP64 better and handle ilp32 too.
8698 (MULTILIB_OPTIONS): Delete.
8699 (MULTILIB_DIRNAMES): Delete.
8701 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8703 * expr.h: Remove prototypes of functions defined in builtins.c.
8704 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8705 Remove prototypes of functions defined in builtins.c.
8706 * builtins.h: Update prototype list to include all exported functions.
8707 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8708 no_c99_libc_has_function): Move to targhooks.c
8709 (build_string_literal, build_call_expr_loc_array,
8710 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8712 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8713 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8714 no_c99_libc_has_function): Relocate from builtins.c.
8715 * tree.c: Include builtins.h.
8716 (build_call_expr_loc_array, build_call_expr_loc_vec,
8717 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8719 * fold-const.h (fold_fma): Move prototype to builtins.h.
8720 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8721 * asan.c: Include builtins.h.
8722 * cfgexpand.c: Likewise.
8723 * convert.c: Likewise.
8724 * emit-rtl.c: Likewise.
8725 * except.c: Likewise.
8727 * fold-const.c: Likewise.
8728 * gimple-fold.c: Likewise.
8729 * gimple-ssa-strength-reduction.c: Likewise.
8730 * gimplify.c: Likewise.
8731 * ipa-inline.c: Likewise.
8732 * ipa-prop.c: Likewise.
8733 * lto-streamer-out.c: Likewise.
8735 * tree-inline.c: Likewise.
8736 * tree-object-size.c: Likewise.
8737 * tree-sra.c: Likewise.
8738 * tree-ssa-ccp.c: Likewise.
8739 * tree-ssa-forwprop.c: Likewise.
8740 * tree-ssa-loop-ivcanon.c: Likewise.
8741 * tree-ssa-loop-ivopts.c: Likewise.
8742 * tree-ssa-math-opts.c: Likewise.
8743 * tree-ssa-reassoc.c: Likewise.
8744 * tree-ssa-threadedge.c: Likewise.
8745 * tree-streamer-in.c: Likewise.
8746 * tree-vect-data-refs.c: Likewise.
8747 * tree-vect-patterns.c: Likewise.
8748 * tree-vect-stmts.c: Likewise.
8749 * config/aarch64/aarch64.c: Likewise.
8750 * config/alpha/alpha.c: Likewise.
8751 * config/arc/arc.c: Likewise.
8752 * config/arm/arm.c: Likewise.
8753 * config/avr/avr.c: Likewise.
8754 * config/bfin/bfin.c: Likewise.
8755 * config/c6x/c6x.c: Likewise.
8756 * config/cr16/cr16.c: Likewise.
8757 * config/cris/cris.c: Likewise.
8758 * config/epiphany/epiphany.c: Likewise.
8759 * config/fr30/fr30.c: Likewise.
8760 * config/frv/frv.c: Likewise.
8761 * config/h8300/h8300.c: Likewise.
8762 * config/i386/i386.c: Likewise.
8763 * config/i386/winnt.c: Likewise.
8764 * config/ia64/ia64.c: Likewise.
8765 * config/iq2000/iq2000.c: Likewise.
8766 * config/lm32/lm32.c: Likewise.
8767 * config/m32c/m32c.c: Likewise.
8768 * config/m32r/m32r.c: Likewise.
8769 * config/m68k/m68k.c: Likewise.
8770 * config/mcore/mcore.c: Likewise.
8771 * config/mep/mep.c: Likewise.
8772 * config/microblaze/microblaze.c: Likewise.
8773 * config/mips/mips.c: Likewise.
8774 * config/mmix/mmix.c: Likewise.
8775 * config/mn10300/mn10300.c: Likewise.
8776 * config/moxie/moxie.c: Likewise.
8777 * config/msp430/msp430.c: Likewise.
8778 * config/nds32/nds32.c: Likewise.
8779 * config/pa/pa.c: Likewise.
8780 * config/pdp11/pdp11.c: Likewise.
8781 * config/picochip/picochip.c: Likewise.
8782 * config/rl78/rl78.c: Likewise.
8783 * config/rs6000/rs6000.c: Likewise.
8784 * config/rx/rx.c: Likewise.
8785 * config/s390/s390.c: Likewise.
8786 * config/score/score.c: Likewise.
8787 * config/sh/sh.c: Likewise.
8788 * config/sparc/sparc.c: Likewise.
8789 * config/spu/spu.c: Likewise.
8790 * config/stormy16/stormy16.c: Likewise.
8791 * config/tilegx/tilegx.c: Likewise.
8792 * config/tilepro/tilepro.c: Likewise.
8793 * config/v850/v850.c: Likewise.
8794 * config/vax/vax.c: Likewise.
8795 * config/xtensa/xtensa.c: Likewise.
8797 2014-06-02 Jeff Law <law@redhat.com>
8799 PR rtl-optimization/61094
8800 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8801 was marked as do_no_reextend. If a copy is needed to eliminate
8802 an extension, then mark it as do_not_reextend.
8804 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8806 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8808 2014-06-02 Richard Henderson <rth@redhat.com>
8811 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8812 addresses inside asms. Use output_operand_lossage instead of
8815 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8818 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8819 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8821 2014-06-02 Tom de Vries <tom@codesourcery.com>
8823 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8824 case that x has VOIDmode.
8826 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8828 * varasm.c (copy_constant): Delete function.
8829 (build_constant_desc): Don't call it.
8831 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8834 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8835 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8836 with immediate_operand.
8838 2014-06-02 Andreas Schwab <schwab@suse.de>
8840 * config/ia64/ia64.c
8841 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8842 pending_data_specs first.
8844 2014-06-02 Richard Biener <rguenther@suse.de>
8846 PR tree-optimization/61378
8847 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8850 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8852 * config/i386/constraints.md (Bw): Rename from 'w'.
8853 (Bz): Rename from 'z'.
8854 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8856 2014-06-01 Kai Tietz <ktietz@redhat.com>
8859 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8860 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8861 instead of m constraint.
8863 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8865 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8866 a separate alternative where the scratch operand 2 is marked as
8869 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8871 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8872 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8873 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8874 and __builtins_arm_get_fpscr.
8875 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8876 __builtins_arm_get_fpscr.
8877 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8878 __builtins_arm_ldfpscr.
8879 (arm_atomic_assign_expand_fenv): New function.
8880 * config/arm/vfp.md (set_fpscr): New pattern.
8881 (get_fpscr) : Likewise.
8882 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8884 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8885 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8887 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8889 * asan.c (report_error_func): Add SLOW_P argument, use
8890 BUILT_IN_ASAN_*_N if set.
8891 (build_check_stmt): Likewise.
8892 (instrument_derefs): If T has insufficient alignment,
8893 force same handling as for odd sizes.
8895 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8896 BUILT_IN_ASAN_REPORT_STORE_N): New.
8897 * asan.c (struct asan_mem_ref): Change access_size type to
8899 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8900 update_mem_ref_hash_table): Likewise.
8901 (asan_mem_ref_hasher::hash): Hash in a HWI.
8902 (report_error_func): Change size_in_bytes argument to HWI.
8903 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8905 (build_shadow_mem_access): New function.
8906 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8907 Handle size_in_bytes not power of two or larger than 16.
8908 (instrument_derefs): Don't give up if size_in_bytes is not
8909 power of two or is larger than 16.
8911 2014-05-30 Kai Tietz <ktietz@redhat.com>
8914 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8915 for sibling-tail-calls.
8916 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8918 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8919 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8921 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8923 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8924 * config/avr/avr-tables.opt: Regenerate.
8925 * config/avr/t-multilib: Regenerate.
8926 * doc/avr-mmcu.texi: Regenerate.
8928 2014-05-30 Ian Lance Taylor <iant@google.com>
8930 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8933 2014-05-30 Tom de Vries <tom@codesourcery.com>
8935 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8938 2014-05-30 Tom de Vries <tom@codesourcery.com>
8940 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8941 * lra.c (initialize_lra_reg_info_element): Add init of
8942 actual_call_used_reg_set field.
8943 (lra): Call lra_create_live_ranges before lra_inheritance for
8945 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8947 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
8948 instead of call_used_reg_set for -fuse-caller-save.
8949 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8951 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8953 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
8955 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
8957 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
8959 * ira.c (ira_get_dup_out_num): Check for output operands at
8960 the start of the loop. Handle cases where an included alternative
8961 follows an excluded one.
8963 2014-05-29 Mike Stump <mikestump@comcast.net>
8966 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
8967 post ld passes when lto is used.
8969 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
8971 PR rtl-optimization/61325
8972 * lra-constraints.c (process_address): Rename to process_address_1.
8973 (process_address): New function.
8975 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
8977 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
8978 TYPES_BINOPV): New static data.
8979 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
8981 * config/aarch64/aarch64-simd.md (aarch64_ext,
8982 aarch64_im_lane_boundsi): New patterns.
8983 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
8985 (aarch64_evpc_ext): New function.
8987 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
8989 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
8990 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
8991 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
8992 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
8993 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
8995 2014-05-29 Tom de Vries <tom@codesourcery.com>
8997 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
8999 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9000 Richard Sandiford <rdsandiford@googlemail.com>
9002 * arm/iterators.md (shiftable_ops): New code iterator.
9003 (t2_binop0, arith_shift_insn): New code attributes.
9004 * arm/predicates.md (shift_nomul_operator): New predicate.
9005 * arm/arm.md (insn_enabled): Delete.
9006 (enabled): Remove insn_enabled test.
9007 (*arith_shiftsi): Delete. Replace with ...
9008 (*<arith_shift_insn>_multsi): ... new pattern.
9009 (*<arith_shift_insn>_shiftsi): ... new pattern.
9010 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9012 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9013 Tom de Vries <tom@codesourcery.com>
9015 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9016 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9018 (mips_split_call): Use POST_CALL_TMP_REG.
9019 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9021 2014-05-29 Tom de Vries <tom@codesourcery.com>
9023 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9024 with #ifdef STACK_REGS.
9026 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9028 * varasm.c (get_variable_section): Walk aliases.
9029 (place_block_symbol): Walk aliases.
9031 2014-05-28 Tom de Vries <tom@codesourcery.com>
9034 2014-05-28 Tom de Vries <tom@codesourcery.com>
9036 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9037 * lra.c (initialize_lra_reg_info_element): Add init of
9038 actual_call_used_reg_set field.
9039 (lra): Call lra_create_live_ranges before lra_inheritance for
9041 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9043 * lra-constraints.c (need_for_call_save_p): Use
9044 actual_call_used_reg_set instead of call_used_reg_set for
9046 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9048 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9050 * doc/md.texi: Document that the % constraint character must
9051 be at the beginning of the string.
9052 * genoutput.c (validate_insn_alternatives): Check that '=',
9053 '+' and '%' only appear at the beginning of a constraint.
9054 * ira.c (commutative_constraint_p): Delete.
9055 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9056 at the start of the string.
9057 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9059 * config/arm/neon.md (bicdi3_neon): Likewise.
9060 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9061 (slt_si, sltu_si): Likewise.
9062 * config/vax/vax.md (sbcdi3): Likewise.
9063 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9064 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9065 (mul64): Move '%' to beginning of constraint.
9066 * config/arm/arm.md (*xordi3_insn): Likewise.
9067 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9070 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9072 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9074 2014-05-28 Jason Merrill <jason@redhat.com>
9077 * cgraph.h (symtab_node::get_comdat_group_id): New.
9078 * cgraphunit.c (analyze_functions): Call it.
9079 * symtab.c (dump_symtab_node): Likewise.
9080 * tree.c (decl_comdat_group_id): New.
9081 * tree.h: Declare it.
9082 * lto-streamer-out.c (write_symbol): Use it.
9083 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9085 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9087 PR bootstrap/PR61146
9088 * wide-int.cc: Do not include longlong.h when compiling with clang.
9090 2014-05-28 Richard Biener <rguenther@suse.de>
9092 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9093 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9094 (vrp_visit_assignment_or_call): Print less vertical space.
9095 (vrp_visit_stmt): Likewise.
9096 (vrp_visit_phi_node): Likewise. For a PHI argument with
9097 VR_VARYING range consider recording it as copy.
9099 2014-05-28 Richard Biener <rguenther@suse.de>
9102 2014-05-28 Richard Biener <rguenther@suse.de>
9104 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9106 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9108 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9109 sufficiently aligned and an offset is used at the same time.
9110 (expand_expr_real_1): Likewise.
9112 2014-05-28 Richard Biener <rguenther@suse.de>
9115 * fold-const.c (fold_comparison): When folding
9116 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9117 the sign of the remaining constant operand stays the same.
9119 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9121 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9122 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9123 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9125 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9126 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9127 (m32bit-doubles) Likewise.
9128 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9129 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9132 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9134 * configure.ac ($gcc_cv_ld_clearcap): New test.
9135 * configure: Regenerate.
9136 * config.in: Regenerate.
9137 * config/sol2.opt (mclear-hwcap): New option.
9138 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9139 * config/sol2-clearcap.map: Moved here from
9140 testsuite/gcc.target/i386/clearcap.map.
9141 * config/sol2-clearcapv2.map: Move here from
9142 gcc.target/i386/clearcapv2.map.
9143 * config/t-sol2 (install): Depend on install-clearcap-map.
9144 (install-clearcap-map): New target.
9145 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9148 2014-05-28 Richard Biener <rguenther@suse.de>
9150 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9151 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9152 ... here and remove the rest.
9153 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9155 2014-05-28 Richard Biener <rguenther@suse.de>
9157 PR tree-optimization/61335
9158 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9159 new range fails, drop to varying.
9161 2014-05-28 Olivier Hainque <hainque@adacore.com>
9163 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9164 (CPP_SPEC): Add entry for -mcpu=8548.
9165 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9166 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9168 2014-05-28 Tom de Vries <tom@codesourcery.com>
9170 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9171 * lra.c (initialize_lra_reg_info_element): Add init of
9172 actual_call_used_reg_set field.
9173 (lra): Call lra_create_live_ranges before lra_inheritance for
9175 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9177 * lra-constraints.c (need_for_call_save_p): Use
9178 actual_call_used_reg_set instead of call_used_reg_set for
9180 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9182 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9183 Tom de Vries <tom@codesourcery.com>
9185 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9187 (@item -fuse-caller-save): New item.
9189 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9190 Tom de Vries <tom@codesourcery.com>
9192 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9193 OPT_fuse_caller_save.
9195 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9196 Tom de Vries <tom@codesourcery.com>
9198 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9199 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9200 get_call_reg_set_usage.
9201 * resource.c (mark_set_resources, mark_target_live_regs): Use
9202 get_call_reg_set_usage.
9203 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9205 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9206 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9207 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9208 * ira-build.c (ira_create_allocno): Init
9209 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9210 (create_cap_allocno, propagate_allocno_info)
9211 (propagate_some_info_from_allocno)
9212 (copy_info_to_removed_store_destinations): Handle
9213 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9214 * ira-costs.c (ira_tune_allocno_costs): Use
9215 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9217 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9218 Tom de Vries <tom@codesourcery.com>
9220 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9221 and function_used_regs_valid fields.
9222 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9223 find_all_hard_reg_sets.
9224 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9225 (get_call_reg_set_usage): New function.
9226 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9227 * regs.h (get_call_reg_set_usage): Declare.
9229 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9232 * config/dbx.h (License): Add Runtime Library Exception.
9233 * config/newlib-stdint.h (License): Same.
9234 * config/rtems.h (License): Same
9235 * config/initfini-array.h (License): Same
9236 * config/v850/v850.h (License): Same.
9237 * config/v850/v850-opts.h (License): Same
9238 * config/v850/rtems.h (License): Same.
9240 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9243 * doc/extend.texi (Local Labels): Note that label differences are
9244 not supported for AVR.
9246 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9247 Olivier Hainque <hainque@adacore.com>
9249 * rtl.h (set_for_reg_notes): Declare.
9250 * emit-rtl.c (set_for_reg_notes): New function.
9251 (set_unique_reg_note): Use it.
9252 * optabs.c (add_equal_note): Likewise
9254 2014-05-27 Andrew Pinski <apinski@cavium.com>
9256 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9257 Use <w> for the register in assembly template.
9258 (stack_protect_test): Use the mode of operands[0] for the result.
9259 (stack_protect_test_<mode>): Use <w> for the register
9260 in assembly template.
9262 2014-05-27 DJ Delorie <dj@redhat.com>
9264 * config/rx/rx.c (add_vector_labels): New.
9265 (rx_output_function_prologue): Call it.
9266 (rx_handle_func_attribute): Don't require empty arguments.
9267 (rx_handle_vector_attribute): New.
9268 (rx_attribute_table): Add "vector" attribute.
9269 * doc/extend.texi (interrupt, vector): Document new/changed
9270 RX-specific attributes.
9272 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9274 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9276 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9277 predicate to detect a negative quotient.
9279 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9281 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9282 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9283 Add X - Y CMP 0 to X CMP Y transformation.
9284 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9286 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9288 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9291 2014-05-27 Steve Ellcey <sellcey@mips.com>
9293 * config/mips/mips.c: Add include of cgraph.h.
9295 2014-05-27 Richard Biener <rguenther@suse.de>
9297 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9299 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9302 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9303 * config/arm/arm-cores.def (License): Same.
9304 * config/arm/arm-opts.h (License): Same.
9305 * config/arm/aout.h (License): Same.
9306 * config/arm/bpabi.h (License): Same.
9307 * config/arm/elf.h (License): Same.
9308 * config/arm/linux-elf.h (License): Same.
9309 * config/arm/linux-gas.h (License): Same.
9310 * config/arm/netbsd-elf.h (License): Same.
9311 * config/arm/uclinux-eabi.h (License): Same.
9312 * config/arm/uclinux-elf.h (License): Same.
9313 * config/arm/vxworks.h (License): Same.
9315 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9317 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9318 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9319 (arm_init_neon_builtins): Handle NEON_BSWAP.
9320 Define required type nodes.
9321 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9322 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9323 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9324 * config/arm/iterators.md (VDQHSD): New mode iterator.
9326 2014-05-27 Richard Biener <rguenther@suse.de>
9328 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9329 Try using literal operands when comparing value-ranges failed.
9331 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9333 * ira.c (commutative_operand): Adjust for change to recog_data.
9334 [Missing from previous commit.]
9336 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9338 * system.h (TEST_BIT): New macro.
9339 * recog.h (alternative_mask): New type.
9340 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9341 (recog_data_d): Replace alternative_enabled_p array with
9342 enabled_alternatives.
9343 (target_recog): New structure.
9344 (default_target_recog, this_target_recog): Declare.
9345 (get_enabled_alternatives, recog_init): Likewise.
9346 * recog.c (default_target_recog, this_target_recog): New variables.
9347 (get_enabled_alternatives): New function.
9348 (extract_insn): Use it.
9349 (recog_init): New function.
9350 (preprocess_constraints, constrain_operands): Adjust for change to
9352 * postreload.c (reload_cse_simplify_operands): Likewise.
9353 * reload.c (find_reloads): Likewise.
9354 * ira-costs.c (record_reg_classes): Likewise.
9355 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9356 all alternatives after a disabled one would be skipped.
9357 (ira_implicitly_set_insn_hard_regs): Likewise.
9358 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9359 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9360 with enabled_alternatives.
9361 * lra.c (free_insn_recog_data): Update accordingly.
9362 (lra_update_insn_recog_data): Likewise.
9363 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9364 * lra-constraints.c (process_alt_operands): Likewise. Handle
9365 only_alternative as part of the enabled mask.
9366 * target-globals.h (this_target_recog): Declare.
9367 (target_globals): Add a recog field.
9368 (restore_target_globals): Restore this_target_recog.
9369 * target-globals.c: Include recog.h.
9370 (default_target_globals): Initialize recog field.
9371 (save_target_globals): Likewise.
9372 * reginfo.c (reinit_regs): Call recog_init.
9373 * toplev.c (backend_init_target): Likewise.
9375 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9377 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9378 rather than any named insn's code.
9380 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9383 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9384 * config/arm/arm-cores.def (License): Same.
9386 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9388 * tree.h (decl_comdat_group): Declare.
9389 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9390 * tree.c (decl_comdat_group): Here.
9392 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9394 PR rtl-optimization/61222
9395 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9396 the shift, truncate the PLUS operand to the result mode.
9398 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9401 * config/i386/i386.c (ix86_rtx_costs)
9402 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9405 2014-05-26 Martin Jambor <mjambor@suse.cz>
9407 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9410 2014-05-26 Richard Biener <rguenther@suse.de>
9412 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9413 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9414 Provide specializations.
9415 (wi::int_traits <HOST_WIDE_INT>,
9416 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9418 2014-05-26 Alan Modra <amodra@gmail.com>
9421 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9422 params and return a bool. Remove dead code. Update comment.
9423 Assert we have a const_int source. Remove bogus code from
9424 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9425 handling of constants > 2G and reg_equal note, from..
9426 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9427 return value. Update comment. If we can, use a new pseudo
9428 for intermediate calculations.
9429 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9431 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9432 call to rs6000_emit_set_const in splitter.
9433 (movdi_internal64+2, +3): Likewise.
9435 2014-05-26 Richard Biener <rguenther@suse.de>
9437 * system.h: Define __STDC_FORMAT_MACROS before
9438 including inttypes.h.
9439 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9440 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9441 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9442 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9443 HOST_WIDEST_INT_C): Remove.
9444 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9445 if C99 inttypes.h is not available.
9446 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9447 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9448 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9449 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9450 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9451 (struct output_info): Likewise.
9452 (print_statistics): Adjust.
9453 (dump_bitmap_statistics): Likewise.
9454 * bt-load.c (migrate_btr_defs): Print with PRId64.
9455 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9456 (MAX_SAFE_MULTIPLIER): Adjust.
9457 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9458 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9459 dump_cgraph_node): Likewise.
9460 * final.c (dump_basic_block_info): Likewise.
9461 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9462 * gcov.c (format_gcov): Likewise.
9463 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9465 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9466 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9467 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9468 Use PRId64 for dumping.
9469 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9470 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9471 (add_allocno_hard_regs): Adjust.
9472 * loop-doloop.c (doloop_modify): Print using PRId64.
9473 * loop-iv.c (inverse): Compute in uint64_t.
9474 (determine_max_iter, iv_number_of_iterations): Likewise.
9475 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9477 * lto-streamer-out.c (write_symbol): Use uint64_t.
9478 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9479 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9480 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9481 * modulo-sched.c (const_iteration_count): Use int64_t.
9482 (sms_schedule): Dump using PRId64.
9483 * predict.c (dump_prediction): Likewise.
9484 * pretty-print.h (pp_widest_integer): Remove.
9485 * profile.c (get_working_sets, is_edge_inconsistent,
9486 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9487 * tree-pretty-print.c (pp_double_int): Remove case handling
9488 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9489 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9491 (pass_optimize_bswap::execute): Remove restriction on hosts.
9492 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9493 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9494 * tree.c (widest_int_cst_value): Remove.
9495 * tree.h (widest_int_cst_value): Likewise.
9496 * value-prof.c (dump_histogram_value): Print using PRId64.
9497 * gengtype.c (main): Also inject int64_t.
9498 * ggc-page.c (struct max_alignment): Use int64_t.
9499 * alloc-pool.c (struct allocation_object_def): Likewise.
9500 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9502 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9503 * doc/tm.texi: Regenerated.
9504 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9505 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9506 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9507 mmix_output_register_setting): Use [u]int64_t in prototypes.
9508 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9509 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9510 mmix_output_octa, mmix_output_shifted_value): Adjust.
9511 (mmix_intval): Adjust. Remove unreachable case.
9512 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9514 2014-05-26 Richard Biener <rguenther@suse.de>
9516 * configure.ac: Drop __int64 type check. Insist that we
9517 found uint64_t and int64_t.
9518 * hwint.h (HOST_BITS_PER___INT64): Remove.
9519 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9520 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9521 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9522 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9523 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9524 for dst_q_src_df_rms_cdt.
9525 * configure: Regenerate.
9526 * config.in: Likewise.
9528 2014-05-26 Michael Tautschnig <mt@debian.org>
9531 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9532 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9534 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9536 PR rtl-optimization/61278
9537 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9539 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9541 PR rtl-optimization/61220
9542 Part of PR rtl-optimization/61225
9543 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9544 insn; skip split_edge for a block with only one successor.
9546 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9548 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9551 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9553 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9554 (update_vtable_references): New function.
9555 (function_and_variable_visibility): Rewrite also vtable initializers.
9556 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9558 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9560 * ggc.h (ggc_grow): New function.
9561 * ggc-none.c (ggc_grow): New function.
9562 * ggc-page.c (ggc_grow): Likewise.
9564 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9566 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9567 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9568 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9569 varpool_externally_visible_p, can_replace_by_local_alias,
9570 update_visibility_by_resolution_info, function_and_variable_visibility,
9571 pass_data_ipa_function_and_variable_visibility,
9572 make_pass_ipa_function_and_variable_visibility,
9573 whole_program_function_and_variable_visibility,
9574 pass_data_ipa_whole_program_visibility,
9575 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9576 * cgraph.h (cgraph_local_node_p): Declare.
9577 * ipa-visibility.c: New file.
9578 * Makefile.in (OBJS): Add ipa-visiblity.o
9580 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9582 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9583 that var decl is available.
9585 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9587 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9588 symtab_node pointer.
9589 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9590 (find_decls_types_r): Do not walk COMDAT_GROUP.
9591 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9592 * varasm.c (make_decl_one_only): Use set_comdat_group;
9593 create node if needed.
9594 * ipa-inline-transform.c (save_inline_function_body): Update
9595 way we decl->symtab mapping.
9596 * symtab.c (symtab_hash, hash_node, eq_node
9597 symtab_insert_node_to_hashtable): Remove.
9598 (symtab_register_node): Update.
9599 (symtab_unregister_node): Update.
9600 (symtab_get_node): Reimplement as inline function.
9601 (symtab_add_to_same_comdat_group): Update.
9602 (symtab_dissolve_same_comdat_group_list): Update.
9603 (dump_symtab_base): Update.
9604 (verify_symtab_base): Update.
9605 (symtab_make_decl_local): Update.
9606 (fixup_same_cpp_alias_visibility): Update.
9607 (symtab_nonoverwritable_alias): Update.
9608 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9609 * ipa.c (update_visibility_by_resolution_info): UPdate.
9610 * bb-reorder.c: Include cgraph.h
9611 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9613 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9614 * cgraph.c (cgraph_get_create_node): Update.
9615 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9617 (symtab_get_node): Make inline.
9618 (symtab_insert_node_to_hashtable): Remove.
9619 (symtab_can_be_discarded): Update.
9620 (decl_comdat_group): New function.
9621 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9623 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9625 (read_comdat_group): New function.
9626 (input_node, input_varpool_node): Use it.
9627 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9629 * mips.c (mips_start_unique_function): Likewise.
9630 (ix86_code_end): Likewise.
9631 (rs6000_code_end): Likweise.
9632 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9634 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9636 * gengtype-state.c (fatal_reading_state): Bring offline.
9637 * optabs.c (widening_optab_handler): Bring offline.
9638 * optabs.h (widening_optab_handler): Likewise.
9639 * final.c (get_attr_length_1): Likewise.
9641 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9643 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9645 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9647 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9648 (ppc440-compare): Include shift with dot.
9649 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9650 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9652 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9654 (e6500_sfx2): Include it.
9655 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9656 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9657 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9658 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9659 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9660 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9661 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9662 *lshiftrt_internal1le, *lshiftrt_internal1be,
9663 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9664 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9665 *rotldi3_internal10le, *rotldi3_internal10be,
9666 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9667 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9668 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9669 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9670 define_insns): Use type "shift" in the appropriate alternatives.
9672 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9674 * config/rs6000/rs6000.md (type): Add "logical". Delete
9676 (dot): Adjust comment.
9677 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9678 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9679 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9680 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9681 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9682 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9683 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9684 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9686 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9687 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9688 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9689 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9690 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9691 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9692 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9693 * config/rs6000/8540.md (ppc8540_su): Adjust.
9694 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9695 cell-cmp-microcoded): Adjust.
9696 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9697 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9698 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9699 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9700 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9701 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9702 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9703 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9704 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9706 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9707 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9708 Adjust. Adjust comment.
9709 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9710 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9712 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9714 * config/rs6000/rs6000.md (type): Add "add".
9715 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9716 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9717 define_insns): Use it.
9718 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9720 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9721 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9722 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9723 * config/rs6000/601.md (ppc601-integer): Adjust.
9724 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9725 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9726 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9727 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9728 * config/rs6000/8540.md (ppc8540_su): Adjust.
9729 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9730 cell-cmp-microcoded): Adjust.
9731 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9732 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9733 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9734 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9735 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9736 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9737 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9738 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9739 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9741 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9742 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9743 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9744 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9746 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9748 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9749 "delayed_compare", "var_delayed_compare".
9750 (var_shift): New attribute.
9751 (cell_micro): Adjust.
9752 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9753 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9754 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9755 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9756 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9757 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9758 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9759 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9760 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9761 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9762 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9763 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9764 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9765 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9766 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9767 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9768 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9769 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9770 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9771 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9772 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9773 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9774 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9775 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9776 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9778 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9779 * config/rs6000/440.md (ppc440-integer): Adjust.
9780 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9781 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9782 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9783 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9784 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9785 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9786 * config/rs6000/8540.md (ppc8540_su): Adjust.
9787 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9788 cell-cmp-microcoded): Adjust.
9789 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9790 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9791 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9792 e500mc64_delayed): Adjust.
9793 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9794 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9795 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9796 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9797 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9798 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9799 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9800 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9801 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9803 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9804 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9808 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9809 (bits): New mode_attr.
9810 (idiv_ldiv): Delete mode_attr.
9811 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9812 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9813 rs6000_adjust_priority, is_nonpipeline_insn,
9814 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9816 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9817 * config/rs6000/440.md (ppc440-idiv): Adjust.
9818 * config/rs6000/476.md (ppc476-idiv): Adjust.
9819 * config/rs6000/601.md (ppc601-idiv): Adjust.
9820 * config/rs6000/603.md (ppc603-idiv): Adjust.
9821 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9822 ppc620-ldiv): Adjust.
9823 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9824 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9825 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9826 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9827 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9828 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9829 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9830 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9831 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9832 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9833 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9834 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9835 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9836 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9837 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9838 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9839 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9840 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9842 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9844 * config/rs6000/rs6000.md (type): Delete "insert_word",
9845 "insert_dword". Add "insert".
9846 (size): Update comment.
9847 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9848 insn_must_be_first_in_group): Adjust.
9849 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9850 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9851 *insvsi_internal6, insvdi_internal): Adjust.
9853 * config/rs6000/40x.md (ppc403-integer): Adjust.
9854 * config/rs6000/440.md (ppc440-integer): Adjust.
9855 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9856 * config/rs6000/601.md (ppc601-integer): Adjust.
9857 * config/rs6000/603.md (ppc603-integer): Adjust.
9858 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9859 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9860 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9861 * config/rs6000/8540.md (ppc8540_su): Adjust.
9862 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9863 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9864 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9865 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9866 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9867 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9868 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9869 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9870 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9871 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9872 * config/rs6000/power7.md (power7-integer): Adjust.
9873 * config/rs6000/power8.md (power8-1cyc): Adjust.
9874 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9875 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9877 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9879 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9880 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9881 (size): New attribute.
9882 (dot): New attribute.
9883 (cell_micro): Adjust.
9884 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9885 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9886 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9887 umuldi3_highpart): Adjust.
9888 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9889 rs6000_adjust_priority, is_nonpipeline_insn,
9890 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9892 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9893 ppc405-imul3): Adjust.
9894 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9895 * config/rs6000/476.md (ppc476-imul): Adjust.
9896 * config/rs6000/601.md (ppc601-imul): Adjust.
9897 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9898 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9899 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9900 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9901 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9903 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9904 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9905 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9907 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9908 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9909 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9910 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9911 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9912 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9913 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9914 power4-lmul, power4-imul, power4-imul3): Adjust.
9915 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9916 power5-lmul, power5-imul, power5-imul3): Adjust.
9917 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9918 power6-lmul, power6-imul, power6-imul3): Adjust.
9919 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9920 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9922 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9923 rs64a-lmul): Adjust.
9924 * config/rs6000/titan.md (titan_imul): Adjust.
9926 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9928 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9929 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9930 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9931 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9932 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9933 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9934 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9935 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9936 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9937 * config/rs6000/titan.md: Delete nonsensical comment.
9938 (titan_imul): Add type imul3.
9939 (titan_mulhw): Remove type imul3; add type halfmul.
9941 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9943 * config/rs6000/rs6000.md (type): Reorder, reformat.
9945 2014-05-23 Martin Jambor <mjambor@suse.cz>
9947 PR tree-optimization/53787
9948 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
9949 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
9950 analysis_done, update all uses.
9951 * ipa-prop.c: Include domwalk.h
9952 (param_analysis_info): Removed.
9953 (param_aa_status): New type.
9954 (ipa_bb_info): Likewise.
9955 (func_body_info): Likewise.
9956 (ipa_get_bb_info): New function.
9957 (aa_overwalked): Likewise.
9958 (find_dominating_aa_status): Likewise.
9959 (parm_bb_aa_status_for_bb): Likewise.
9960 (parm_preserved_before_stmt_p): Changed to use new param AA info.
9961 (load_from_unmodified_param): Accept func_body_info as a parameter
9962 instead of parms_ainfo.
9963 (parm_ref_data_preserved_p): Changed to use new param AA info.
9964 (parm_ref_data_pass_through_p): Likewise.
9965 (ipa_load_from_parm_agg_1): Likewise. Update callers.
9966 (compute_complex_assign_jump_func): Changed to use new param AA info.
9967 (compute_complex_ancestor_jump_func): Likewise.
9968 (ipa_compute_jump_functions_for_edge): Likewise.
9969 (ipa_compute_jump_functions): Removed.
9970 (ipa_compute_jump_functions_for_bb): New function.
9971 (ipa_analyze_indirect_call_uses): Likewise, moved variable
9973 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
9974 and info, moved variable declarations down.
9975 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
9977 (ipa_analyze_stmt_uses): Likewise.
9978 (ipa_analyze_params_uses): Removed.
9979 (ipa_analyze_params_uses_in_bb): New function.
9980 (ipa_analyze_controlled_uses): Likewise.
9981 (free_ipa_bb_info): Likewise.
9982 (analysis_dom_walker): New class.
9983 (ipa_analyze_node): Handle node-specific forbidden analysis,
9984 initialize and free func_body_info, use dominator walker.
9985 (ipcp_modif_dom_walker): New class.
9986 (ipcp_transform_function): Create and free func_body_info, use
9987 ipcp_modif_dom_walker, moved a lot of functionality there.
9989 2014-05-23 Marek Polacek <polacek@redhat.com>
9990 Jakub Jelinek <jakub@redhat.com>
9992 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
9993 * gcc.c (sanitize_spec_function): Likewise.
9994 * convert.c (convert_to_integer): Include "ubsan.h". Add
9995 floating-point to integer instrumentation.
9996 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
9997 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
9998 SANITIZE_NONDEFAULT.
9999 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10000 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10001 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10002 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10003 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10004 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10005 float/double/long double.
10006 (ubsan_instrument_float_cast): New function.
10007 * ubsan.h (ubsan_instrument_float_cast): Declare.
10009 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10011 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10013 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10014 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10015 Adjust for tailcalling through registers.
10016 * config/aarch64/aarch64.h (enum reg_class): New caller save
10018 (REG_CLASS_NAMES): Likewise.
10019 (REG_CLASS_CONTENTS): Likewise.
10020 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10021 Allow tailcalling without decls.
10023 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10025 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10026 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10028 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10029 gsi, and variables v_* to v*.
10031 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10033 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10035 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10037 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10038 * omp-low.c: Update accordingly.
10040 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10041 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10042 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10043 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10044 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10045 GF_OMP_TARGET_KIND_UPDATE.
10047 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10048 Explicitly enumerate the expected region types.
10050 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10053 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10054 documentation; the old documentation didn't clearly state the
10055 constraints on the contents of the pointed-to storage.
10057 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10059 Fix bootstrap error on ia64
10060 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10061 Return default value.
10063 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10065 PR tree-optimization/54733
10066 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10068 (find_bswap_or_nop_load): New.
10069 (find_bswap_1): Renamed to ...
10070 (find_bswap_or_nop_1): This. Also add support for memory source.
10071 (find_bswap): Renamed to ...
10072 (find_bswap_or_nop): This. Also add support for memory source and
10073 detection of bitwise operations equivalent to load in target
10075 (execute_optimize_bswap): Likewise. Also move its leading comment back
10076 in place and split statement transformation into ...
10077 (bswap_replace): This.
10079 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10081 PR rtl-optimization/61215
10082 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10083 simplify_gen_subreg until final substitution.
10085 2014-05-23 Alan Modra <amodra@gmail.com>
10088 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10089 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10090 Use "Y" constraint rather than "m".
10092 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10094 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10096 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10097 New function declaration.
10098 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10099 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10100 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10101 (aarch64_init_builtins) : Initialize builtins
10102 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10103 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10104 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10105 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10106 and __builtins_aarch64_set_fpsr.
10107 (aarch64_atomic_assign_expand_fenv): New function.
10108 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10109 (get_fpcr) : Likewise.
10110 (set_fpsr) : Likewise.
10111 (get_fpsr) : Likewise.
10112 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10113 and UNSPECV_SET_FPSR.
10114 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10115 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10116 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10118 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10120 PR rtl-optimization/60969
10121 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10122 constraints. Set up mem cost for NO_REGS case.
10124 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10126 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10128 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10130 * config/darwin.c: Include "lto-section-names.h".
10131 (LTO_SEGMENT_NAME): Don't define.
10132 * config/i386/winnt.c: Include "lto-section-names.h".
10133 * lto-streamer.c: Include "lto-section-names.h".
10134 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10135 * lto-wrapper.c: Include "lto-section-names.h".
10136 (LTO_SECTION_NAME_PREFIX): Don't define.
10137 * lto-section-names.h: New file.
10138 * cgraphunit.c: Include "lto-section-names.h".
10140 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10142 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10144 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10147 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10149 2014-05-22 Nick Clifton <nickc@redhat.com>
10151 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10153 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10155 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10156 -> (T)A transformation to integer types.
10158 2014-05-22 Teresa Johnson <tejohnson@google.com>
10160 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10161 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10162 (gcov_rewrite): Use gcov_nonruntime_assert.
10163 (gcov_open): Ditto.
10164 (gcov_write_words): Ditto.
10165 (gcov_write_length): Ditto.
10166 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10167 gcc_assert from IN_LIBGCOV code.
10168 (gcov_read_summary): Use gcov_error to flag profile corruption.
10169 (gcov_sync): Use gcov_nonruntime_assert.
10170 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10171 (gcov_histo_index): Use gcov_nonruntime_assert.
10172 (static void gcov_histogram_merge): Ditto.
10173 (compute_working_sets): Ditto.
10174 * gcov-io.h (gcov_nonruntime_assert): Define.
10175 (gcov_error): Define for !IN_LIBGCOV
10177 2014-05-22 Richard Biener <rguenther@suse.de>
10179 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10180 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10181 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10182 and deallocation site.
10183 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10184 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10185 passing through the incoming points-to set.
10186 (handle_lhs_call): Use flags argument instead of recomputing it.
10187 (find_func_aliases_for_call): Call handle_lhs_call with proper
10190 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10192 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10193 all padding bits in REAL_VALUE_TYPE are cleared.
10195 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10197 Cleanup and improve multipass_dfa_lookahead_guard
10198 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10199 (core2i7_first_cycle_multipass_begin,)
10200 (core2i7_first_cycle_multipass_issue,)
10201 (core2i7_first_cycle_multipass_backtrack): Update signature.
10202 * config/ia64/ia64.c
10203 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10204 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10205 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10207 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10208 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10210 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10212 * doc/tm.texi: Regenerate.
10214 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10215 * haifa-sched.c (ready_try): Make signed to allow negative values.
10216 (rebug_ready_list_1): Update.
10217 (choose_ready): Simplify.
10218 (sched_extend_ready_list): Update.
10220 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10222 Remove IA64 speculation tweaking flags
10223 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10224 speculation tuning flags.
10225 (msched-prefer-non-data-spec-insns,)
10226 (msched-prefer-non-control-spec-insns): Obsolete options.
10227 * haifa-sched.c (choose_ready): Remove handling of
10228 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10229 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10230 and PREFER_NON_DATA_SPEC.
10231 * sel-sched.c (process_spec_exprs): Remove handling of
10232 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10234 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10236 Improve scheduling debug output
10237 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10238 (advance_one_cycle): Update.
10239 (schedule_insn, queue_to_ready): Add debug printouts.
10240 (debug_ready_list_1): New static function.
10241 (debug_ready_list): Update.
10242 (max_issue): Add debug printouts.
10243 (dump_insn_stream): New static function.
10244 (schedule_block): Use it. Also better indent printouts.
10246 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10248 Fix sched_insn debug counter
10249 * haifa-sched.c (schedule_insn): Update.
10250 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10251 (save_backtrack_point, restore_backtrack_point): Update.
10252 (first_nonscheduled_insn): New static function.
10253 (queue_to_ready, choose_ready): Use it.
10254 (schedule_block): Init nonscheduled_insns_begin.
10255 (sched_emit_insn): Update.
10258 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10260 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10262 (aarch64_secondary_reload) : LikeWise.
10263 (aarch64_class_max_nregs) : Remove CORE_REGS.
10264 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10265 (REG_CLASS_NAMES) : Likewise.
10266 (REG_CLASS_CONTENTS) : LikeWise.
10267 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10269 2014-05-21 Guozhi Wei <carrot@google.com>
10272 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10274 (vqdmulhq_n_s16): Likewise.
10276 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10278 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10280 2014-05-21 Marek Polacek <polacek@redhat.com>
10283 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10285 2014-05-21 Martin Jambor <mjambor@suse.cz>
10287 * doc/invoke.texi (Optimize Options): Document parameters
10288 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10289 ipa-cp-array-index-hint-bonus.
10291 2014-05-21 Mark Wielaard <mjw@redhat.com>
10294 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10295 version >= 3 or not strict DWARF.
10296 * langhooks.h (struct lang_hooks_for_types): Add
10297 enum_underlying_base_type.
10298 * langhooks.c (lhd_enum_underlying_base_type): New function.
10299 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10300 enum_underlying_base_type.
10301 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10302 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10303 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10305 2014-05-21 Richard Biener <rguenther@suse.de>
10307 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10309 2014-05-21 John Marino <gnugcc@marino.st>
10311 * config.gcc (*-*-dragonfly*): New target.
10312 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10313 * configure: Regenerate.
10314 * config/dragonfly-stdint.h: New.
10315 * config/dragonfly.h: New.
10316 * config/dragonfly.opt: New.
10317 * config/i386/dragonfly.h: New.
10318 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10320 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10322 * tree.def (VOID_CST): New.
10323 * tree-core.h (TI_VOID): New.
10324 * tree.h (void_node): New.
10325 * tree.c (tree_node_structure_for_code, tree_code_size)
10326 (iterative_hash_expr): Handle VOID_CST.
10327 (build_common_tree_nodes): Initialize void_node.
10329 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10331 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10333 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10335 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10338 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10339 flag_reorder_blocks_and_partition.
10340 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10342 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10345 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10347 (*addc_r_t): Add new insn_and_split.
10349 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10351 PR middle-end/61252
10352 * omp-low.c (handle_simd_reference): New function.
10353 (lower_rec_input_clauses): Use it. Defer adding reference
10354 initialization even for reduction without placeholder if in simd,
10355 handle it properly later on.
10357 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10359 PR tree-optimization/60899
10360 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10361 assume all static symbols will have definition wile parsing and
10362 check the do have definition later in compilation; check that
10363 variable referring symbol will be output before concluding that
10364 reference is safe; be conservative for referring local statics;
10365 be more precise about when comdat is output in other partition.
10367 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10370 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10372 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10373 (ipa_inline): Loop inline_to_all_callers until no more aliases
10376 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10378 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10379 set writeonly flag only for vars actually written to.
10381 2014-05-20 Dehao Chen <dehao@google.com>
10383 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10384 and callee count to get clone count.
10385 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10386 count in copy_body.
10388 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10390 PR rtl-optimization/61243
10391 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10393 2014-05-20 Xinliang David Li <davidxl@google.com>
10395 * cgraphunit.c (walk_polymorphic_call_targets): Add
10396 dbgcnt and fopt-info support.
10397 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10398 * ipa-devirt.c (ipa_devirt): Ditto.
10399 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10400 * ipa.c (walk_polymorphic_call_targets): Ditto.
10401 * gimple-fold.c (fold_gimple_assign): Ditto.
10402 (gimple_fold_call): Ditto.
10403 * dbgcnt.def: New counter.
10405 2014-05-20 DJ Delorie <dj@redhat.com>
10407 * config/msp430/msp430.md (split): Don't allow subregs when
10408 splitting SImode adds.
10409 (andneghi): Fix subtraction logic.
10410 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10412 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10414 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10416 * except.c (switch_to_exception_section, resolve_unique_section,
10417 get_named_text_section, default_function_rodata_section,
10418 align_variable, get_block_for_decl, default_section_type_flags):
10419 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10420 * symtab.c (symtab_add_to_same_comdat_group,
10421 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10422 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10424 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10425 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10426 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10427 (c6x_function_in_section_p): Likewise.
10428 * config/darwin.c (machopic_select_section): Likewise.
10429 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10430 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10431 * config/mep/mep.c (mep_select_section): LIkewise.
10432 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10434 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10436 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10437 EH region of calls to pure functions that can throw an exception.
10438 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10439 (copy_reference_ops_from_call): Also copy the EH region of the call if
10440 it can throw an exception.
10442 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10444 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10445 nested VEC_SELECTs that are inverses of each other.
10447 2014-05-20 Richard Biener <rguenther@suse.de>
10449 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10450 (extract_and_process_scc_for_name): not here.
10451 (cond_dom_walker::before_dom_children): Only process
10452 stmts that end the BB in interesting ways.
10453 (run_scc_vn): Mark param uses as visited.
10455 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10457 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10460 2014-05-20 Nick Clifton <nickc@redhat.com>
10462 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10463 (msp430_gimplify_va_arg_expr): New function.
10464 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10466 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10467 operand 0 in order to prevent confusion about the number of
10468 registers involved.
10470 2014-05-20 Richard Biener <rguenther@suse.de>
10472 PR tree-optimization/61221
10473 * tree-ssa-pre.c (el_to_update): Remove.
10474 (eliminate_dom_walker::before_dom_children): Handle released
10475 VDEFs by value-numbering them to the associated VUSE. Update
10476 stmt immediately for substituted call address.
10477 (eliminate): Remove delayed stmt updating code.
10478 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10479 possibly late re-numbered vuses.
10480 (vn_reference_lookup_2): Adjust.
10481 (vn_reference_lookup_pieces): Likewise.
10482 (vn_reference_lookup): Likewise.
10484 2014-05-20 Richard Biener <rguenther@suse.de>
10486 * config.gcc: Remove need_64bit_hwint.
10487 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10488 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10490 * config.in: Regenerate.
10491 * configure: Likewise.
10493 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10495 * doc/extend.texi: Create Label Attributes section,
10496 move all label attributes into it and reference it.
10498 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10500 * arm.c (thumb1_reorg): When scanning backwards skip anything
10501 that's not a proper insn.
10503 2014-05-19 Richard Biener <rguenther@suse.de>
10505 PR tree-optimization/61221
10506 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10507 Do nothing for unreachable blocks.
10508 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10509 Improve unreachability detection.
10511 2014-05-19 Richard Biener <rguenther@suse.de>
10513 PR tree-optimization/61209
10514 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10516 2014-05-19 Nick Clifton <nickc@redhat.com>
10518 * except.c (init_eh): Fix computation of builtin setjmp buffer
10519 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10521 2014-05-19 Richard Biener <rguenther@suse.de>
10523 PR tree-optimization/61184
10524 * tree-vrp.c (is_negative_overflow_infinity): Use
10525 TREE_OVERFLOW_P and do that check first.
10526 (is_positive_overflow_infinity): Likewise.
10527 (is_overflow_infinity): Likewise.
10528 (vrp_operand_equal_p): Properly treat operands with
10529 differing overflow as not equal.
10531 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10533 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10534 shift simplification where it was intended.
10536 2014-05-19 Christian Bruel <christian.bruel@st.com>
10539 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10541 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10544 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10547 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10549 * reg-notes.def (CROSSING_JUMP): Likewise.
10550 * rtl.h (rtx_def): Update comment for jump flag.
10551 (CROSSING_JUMP_P): Define.
10552 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10553 of a REG_CROSSING_JUMP note.
10554 * cfghooks.c (tidy_fallthru_edges): Likewise.
10555 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10556 * emit-rtl.c (try_split): Likewise.
10557 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10558 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10559 * jump.c (redirect_jump_2): Likewise.
10560 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10561 (relax_delay_slots): Likewise.
10562 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10563 (bbit_di): Likewise.
10564 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10565 * config/sh/sh.md (jump_compact): Likewise.
10566 * bb-reorder.c (rotate_loop): Likewise.
10567 (pass_duplicate_computed_gotos::execute): Likewise.
10568 (add_reg_crossing_jump_notes): Rename to...
10569 (update_crossing_jump_flags): ...this.
10570 (pass_partition_blocks::execute): Update accordingly.
10572 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10574 * tree.h: Remove extraneous template <>.
10576 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10578 * ipa.c (symtab_remove_unreachable_nodes): Remove
10579 symbol from comdat group if its body was eliminated.
10580 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10581 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10582 (symtab_unregister_node): ... this one.
10583 (verify_symtab_base): More strict checking of comdats.
10584 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10586 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10588 * tree-pass.h (make_pass_ipa_comdats): New pass.
10589 * timevar.def (TV_IPA_COMDATS): New timevar.
10590 * passes.def (pass_ipa_comdats): Add.
10591 * Makefile.in (OBJS): Add ipa-comdats.o
10592 * ipa-comdats.c: New file.
10594 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10596 * ipa.c (update_visibility_by_resolution_info): New function.
10597 (function_and_variable_visibility): Use it.
10599 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10601 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10603 (FOR_EACH_DEFINED_SYMBOL): New macro.
10604 (varpool_first_static_initializer, varpool_next_static_initializer,
10605 varpool_first_defined_variable, varpool_next_defined_variable):
10607 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10609 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10611 * ggc-page.c (ggc_handle_finalizers): Add comment.
10613 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10615 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10616 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10617 (ggc_internal_cleared_alloc): Likewise.
10618 * ggc-page.c (finalizer): New class.
10619 (vec_finalizer): Likewise.
10620 (globals::finalizers): New member.
10621 (globals::vec_finalizers): Likewise.
10622 (ggc_internal_alloc): Record the finalizer if any for the block being
10624 (ggc_handle_finalizers): New function.
10625 (ggc_collect): Call ggc_handle_finalizers.
10626 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10628 (ggc_internal_cleared_alloc): Likewise.
10629 (finalize): New function.
10630 (need_finalization_p): Likewise.
10631 (ggc_alloc): Install the type's destructor as the finalizer if it
10632 might do something.
10633 (ggc_cleared_alloc): Likewise.
10634 (ggc_vec_alloc): Likewise.
10635 (ggc_cleared_vec_alloc): Likewise.
10637 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10639 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10641 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10643 * alias.c (record_alias_subset): Adjust.
10644 * bitmap.c (bitmap_element_allocate): Likewise.
10645 (bitmap_gc_alloc_stat): Likewise.
10646 * cfg.c (init_flow): Likewise.
10647 (alloc_block): Likewise.
10648 (unchecked_make_edge): Likewise.
10649 * cfgloop.c (alloc_loop): Likewise.
10650 (flow_loops_find): Likewise.
10651 (rescan_loop_exit): Likewise.
10652 * cfgrtl.c (init_rtl_bb_info): Likewise.
10653 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10654 (cgraph_allocate_node): Likewise.
10655 (cgraph_create_edge_1): Likewise.
10656 (cgraph_allocate_init_indirect_info): Likewise.
10657 * cgraphclones.c (cgraph_clone_edge): Likewise.
10658 * cgraphunit.c (add_asm_node): Likewise.
10659 (init_lowered_empty_function): Likewise.
10660 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10661 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10662 (alpha_use_linkage): Likewise.
10663 * config/arc/arc.c (arc_init_machine_status): Likewise.
10664 * config/arm/arm.c (arm_init_machine_status): Likewise.
10665 * config/avr/avr.c (avr_init_machine_status): Likewise.
10666 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10667 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10668 * config/cris/cris.c (cris_init_machine_status): Likewise.
10669 * config/darwin.c (machopic_indirection_name): Likewise.
10670 (darwin_build_constant_cfstring): Likewise.
10671 (darwin_enter_string_into_cfstring_table): Likewise.
10672 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10673 * config/frv/frv.c (frv_init_machine_status): Likewise.
10674 * config/i386/i386.c (get_dllimport_decl): Likewise.
10675 (ix86_init_machine_status): Likewise.
10676 (assign_386_stack_local): Likewise.
10677 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10678 (i386_pe_maybe_record_exported_symbol): Likewise.
10679 (i386_pe_record_stub): Likewise.
10680 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10681 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10682 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10683 (m32c_note_pragma_address): Likewise.
10684 * config/mep/mep.c (mep_init_machine_status): Likewise.
10685 (mep_note_pragma_flag): Likewise.
10686 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10687 (mips16_local_alias): Likewise.
10688 (mips_init_machine_status): Likewise.
10689 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10690 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10691 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10692 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10693 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10694 * config/pa/pa.c (pa_init_machine_status): Likewise.
10695 (pa_get_deferred_plabel): Likewise.
10696 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10697 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10698 (rs6000_init_machine_status): Likewise.
10699 (output_toc): Likewise.
10700 * config/s390/s390.c (s390_init_machine_status): Likewise.
10701 * config/score/score.c (score_output_external): Likewise.
10702 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10703 * config/spu/spu.c (spu_init_machine_status): Likewise.
10704 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10705 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10706 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10707 * coverage.c (coverage_end_function): Likewise.
10708 * dbxout.c (dbxout_init): Likewise.
10709 * doc/gty.texi: Don't mention variable_size attribute.
10710 * dwarf2cfi.c (new_cfi): Adjust.
10711 (new_cfi_row): Likewise.
10712 (copy_cfi_row): Likewise.
10713 (create_cie_data): Likewise.
10714 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10715 (new_loc_descr): Likewise.
10716 (find_AT_string_in_table): Likewise.
10717 (add_addr_table_entry): Likewise.
10718 (new_die): Likewise.
10719 (add_var_loc_to_decl): Likewise.
10720 (clone_die): Likewise.
10721 (clone_as_declaration): Likewise.
10722 (break_out_comdat_types): Likewise.
10723 (new_loc_list): Likewise.
10724 (add_loc_descr_to_each): Likewise.
10725 (add_location_or_const_value_attribute): Likewise.
10726 (add_linkage_name): Likewise.
10727 (lookup_filename): Likewise.
10728 (dwarf2out_var_location): Likewise.
10729 (new_line_info_table): Likewise.
10730 (dwarf2out_init): Likewise.
10731 (mem_loc_descriptor): Likewise.
10732 (loc_descriptor): Likewise.
10733 (add_const_value_attribute): Likewise.
10734 (tree_add_const_value_attribute): Likewise.
10735 (comp_dir_string): Likewise.
10736 (dwarf2out_vms_debug_main_pointer): Likewise.
10737 (string_cst_pool_decl): Likewise.
10738 * emit-rtl.c (set_mem_attrs): Likewise.
10739 (get_reg_attrs): Likewise.
10740 (start_sequence): Likewise.
10741 (init_emit): Likewise.
10742 (init_emit_regs): Likewise.
10743 * except.c (init_eh_for_function): Likewise.
10744 (gen_eh_region): Likewise.
10745 (gen_eh_region_catch): Likewise.
10746 (gen_eh_landing_pad): Likewise.
10747 (add_call_site): Likewise.
10748 * function.c (add_frame_space): Likewise.
10749 (insert_temp_slot_address): Likewise.
10750 (assign_stack_temp_for_type): Likewise.
10751 (get_hard_reg_initial_val): Likewise.
10752 (allocate_struct_function): Likewise.
10753 (prepare_function_start): Likewise.
10754 (types_used_by_var_decl_insert): Likewise.
10755 * gengtype.c (variable_size_p): Remove function.
10756 (enum alloc_quantity): Remove enum.
10757 (write_typed_alloc_def): Remove function.
10758 (write_typed_struct_alloc_def): Likewise.
10759 (write_typed_typedef_alloc_def): Likewise.
10760 (write_typed_alloc_defns): Likewise.
10762 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10763 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10764 * ggc.h (ggc_alloc): new function.
10765 (ggc_cleared_alloc): Likewise.
10766 (ggc_vec_alloc): Template on type of vector element, and remove
10767 element size argument.
10768 (ggc_cleared_vec_alloc): Likewise.
10769 * gimple.c (gimple_build_omp_for): Adjust.
10770 (gimple_copy): Likewise.
10771 * ipa-cp.c (get_replacement_map): Likewise.
10772 (find_aggregate_values_for_callers_subset): Likewise.
10773 (known_aggs_to_agg_replacement_list): Likewise.
10774 * ipa-devirt.c (get_odr_type): Likewise.
10775 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10776 (read_agg_replacement_chain): Likewise.
10777 * loop-iv.c (get_simple_loop_desc): Likewise.
10778 * lto-cgraph.c (input_node_opt_summary): Likewise.
10779 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10780 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10781 (input_eh_region): Likewise.
10782 (input_eh_lp): Likewise.
10783 (input_cfg): Likewise.
10784 * optabs.c (set_optab_libfunc): Likewise.
10785 (init_tree_optimization_optabs): Likewise.
10786 (set_conv_libfunc): Likewise.
10787 * passes.c (do_per_function_toporder): Likewise.
10788 * rtl.h: Don't use variable_size gty attribute.
10789 * sese.c (if_region_set_false_region): Adjust.
10790 * stringpool.c (gt_pch_save_stringpool): Likewise.
10791 * target-globals.c (save_target_globals): Likewise.
10792 * toplev.c (general_init): Likewise.
10793 * trans-mem.c (record_tm_replacement): Likewise.
10794 (split_bb_make_tm_edge): Likewise.
10795 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10796 * tree-data-ref.h (lambda_vector_new): Likewise.
10797 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10798 * tree-iterator.c (tsi_link_before): Likewise.
10799 (tsi_link_after): Likewise.
10800 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10801 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10802 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10803 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10804 * tree-ssa.c (init_tree_ssa): Adjust.
10805 * tree-ssanames.c (set_range_info): Likewise.
10806 (get_ptr_info): Likewise.
10807 (duplicate_ssa_name_ptr_info): Likewise.
10808 (duplicate_ssa_name_range_info): Likewise.
10809 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10810 (unpack_ts_fixed_cst_value_fields): Likewise.
10811 * tree.c (build_fixed): Likewise.
10812 (build_real): Likewise.
10813 (build_string): Likewise.
10814 (decl_priority_info): Likewise.
10815 (decl_debug_expr_insert): Likewise.
10816 (decl_value_expr_insert): Likewise.
10817 (decl_debug_args_insert): Likewise.
10818 (type_hash_add): Likewise.
10819 (build_omp_clause): Likewise.
10820 * ubsan.c (decl_for_type_insert): Likewise.
10821 * varasm.c (get_unnamed_section): Likewise.
10822 (get_noswitch_section): Likewise.
10823 (get_section): Likewise.
10824 (get_block_for_section): Likewise.
10825 (create_block_symbol): Likewise.
10826 (build_constant_desc): Likewise.
10827 (create_constant_pool): Likewise.
10828 (force_const_mem): Likewise.
10829 (record_tm_clone_pair): Likewise.
10830 * varpool.c (varpool_create_empty_node): Likewise.
10832 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10834 * dwarf2out.c (tree_add_const_value_attribute): Call
10835 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10836 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10837 instead of ggc_internal_<x>alloc_stat.
10838 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10839 (ggc_realloc): Likewise.
10840 * ggc-none.c (ggc_internal_alloc): Likewise.
10841 (ggc_internal_cleared_alloc): Likewise.
10842 * ggc-page.c: Likewise.
10843 * ggc.h (ggc_internal_alloc_stat): Likewise.
10844 (ggc_internal_alloc): Remove macro.
10845 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10846 (ggc_internal_cleared_alloc): Remove macro.
10847 (GGC_RESIZEVEC): Adjust.
10848 (ggc_resizevar): Remove macro.
10849 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10850 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10851 (ggc_internal_vec_cleared_alloc): Remove macro.
10852 (ggc_alloc_atomic_stat): Drop _stat suffix.
10853 (ggc_alloc_atomic): Remove macro.
10854 (ggc_alloc_cleared_atomic): Remove macro.
10855 (ggc_alloc_string_stat): Drop _stat suffix.
10856 (ggc_alloc_string): Remove macro.
10857 (ggc_alloc_rtx_def_stat): Adjust.
10858 (ggc_alloc_tree_node_stat): Likewise.
10859 (ggc_alloc_cleared_tree_node_stat): Likewise.
10860 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10861 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10862 * gimple.c (gimple_build_omp_for): Likewise.
10863 (gimple_copy): Likewise.
10864 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10865 * toplev.c (realloc_for_line_map): Adjust.
10866 * tree-data-ref.h (lambda_vector_new): Likewise.
10867 * tree-phinodes.c (allocate_phi_node): Likewise.
10868 * tree.c (grow_tree_vec_stat): Likewise.
10869 * vec.h (va_gc::reserve): Adjust.
10871 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10873 * config/microblaze/microblaze.c (break_handler): New Declaration.
10874 (microblaze_break_function_p,microblaze_is_break_handler): New.
10875 (compute_frame_size): Use microblaze_break_function_p.
10876 Add the test of break_handler.
10877 (microblaze_function_prologue) : Add the test of variable
10878 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10879 (microblaze_function_epilogue) : Add the test of break_handler.
10880 (microblaze_globalize_label) : Add the test of break_handler.
10881 Check the name by BREAK_HANDLER_NAME.
10883 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10885 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10886 microblaze_is_break_handler test.
10887 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10888 Use SYMBOL_REF_DECL.
10890 * config/microblaze/microblaze-protos.h
10891 (microblaze_break_function_p,microblaze_is_break_handler):
10894 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10895 new MicroBlaze break_handler functions.
10897 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10899 * doc/extend.texi (Size of an asm): Move node text according
10900 to its @menu entry position.
10902 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10904 PR tree-optimization/61140
10905 PR tree-optimization/61150
10906 PR tree-optimization/61197
10907 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10909 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10911 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10913 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10915 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10916 __SIZEOF_INT128__ is defined.
10918 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10920 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10921 (rs6000_delegitimize_address): Use it.
10923 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10925 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10926 inplace argument. Store the new address in the original MEM when true.
10927 * emit-rtl.c (change_address_1): Likewise.
10928 (adjust_address_1, adjust_automodify_address_1, offset_address):
10929 Update accordingly.
10930 * rtl.h (plus_constant): Add an inplace argument.
10931 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10932 when true. Avoid generating (plus X (const_int 0)).
10933 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10934 in-place. Pass true to plus_constant.
10935 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10937 2014-05-16 Dehao Chen <dehao@google.com>
10939 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10941 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10944 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
10946 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
10948 2014-05-16 Dehao Chen <dehao@google.com>
10950 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
10951 optimize_function_for_size_p.
10952 * regs.h (REG_FREQ_FROM_BB): Likewise.
10954 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10957 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
10958 negt_reg_operand cases.
10959 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
10961 * config/sh/predicates.md (cbranch_treg_value): Simplify.
10963 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10965 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
10968 2014-05-16 David Malcolm <dmalcolm@redhat.com>
10971 2014-04-29 David Malcolm <dmalcolm@redhat.com>
10973 * tree-cfg.c (dump_function_to_file): Dump the return type of
10974 functions, in a line to itself before the function body, mimicking
10975 the layout of a C function.
10977 2014-05-16 Dehao Chen <dehao@google.com>
10979 * cfghooks.c (make_forwarder_block): Use direct computation to
10980 get fall-through edge's count and frequency.
10982 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
10984 * config/arc/arc.c (arc_init): Fix typo in error message.
10985 * config/i386/i386.c (ix86_expand_builtin): Likewise.
10986 (split_stack_prologue_scratch_regno): Likewise.
10987 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
10988 word from error message.
10990 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10992 * ira-costs.c: Fix typo in comment.
10994 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
10996 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
10998 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11000 * varpool.c (dump_varpool_node): Dump write-only flag.
11001 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11003 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11004 write-only variables.
11005 * ipa.c (process_references): New function.
11006 (set_readonly_bit): New function.
11007 (set_writeonly_bit): New function.
11008 (clear_addressable_bit): New function.
11009 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11010 fix handling of aliases.
11011 * cgraph.h (struct varpool_node): Add writeonly flag.
11013 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11015 PR rtl-optimization/60969
11016 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11017 Calculate costs for this case.
11019 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11021 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11022 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11024 2014-05-16 Richard Biener <rguenther@suse.de>
11026 PR tree-optimization/61194
11027 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11028 bool patterns ending in a COND_EXPR.
11030 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11032 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11036 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11037 where we were unable to cost an RTX.
11039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11041 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11044 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11045 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11047 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11053 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11056 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11062 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11068 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11070 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11071 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11073 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11074 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11076 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11077 rotates and shifts.
11079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11080 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11082 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11083 ZERO_EXTEND and SIGN_EXTEND better.
11085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11086 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11089 logical operations.
11091 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11092 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11094 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11095 costs when costing loads and stores to memory.
11097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11098 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11100 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11105 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11107 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11108 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11110 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11112 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11114 (aarch64_rtx_mult_cost): New.
11115 (aarch64_rtx_costs): Use it, refactor as appropriate.
11117 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11118 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11120 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11121 emit instructions, return number of instructions which would
11123 (aarch64_add_constant): Update call to aarch64_build_constant.
11124 (aarch64_output_mi_thunk): Likewise.
11125 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11128 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11130 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11131 (TARGET_RTX_COSTS): Call it.
11133 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11135 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11136 (cortexa57_vector_cost): Likewise.
11137 (cortexa57_tunings): Use them.
11139 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11141 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11142 (cpu_addrcost_table): Use it.
11143 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11144 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11147 2014-05-16 Richard Biener <rguenther@suse.de>
11149 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11150 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11151 (visit_phi): Ignore edges marked as not executable.
11152 (class cond_dom_walker): New.
11153 (cond_dom_walker::before_dom_children): Value-number
11154 control statements and mark successor edges as not
11155 executable if possible.
11156 (run_scc_vn): First walk all control statements in
11157 dominator order, marking edges as not executable.
11158 * tree-inline.c (copy_edges_for_bb): Be not confused
11159 about random edge flags.
11161 2014-05-16 Richard Biener <rguenther@suse.de>
11163 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11165 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11168 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11169 (__TM_simple_begin): Use it.
11170 (__TM_begin): Likewise.
11172 2014-05-15 Martin Jambor <mjambor@suse.cz>
11175 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11176 type_preserved flag when the indirect edge is polymorphic.
11178 2014-05-15 Martin Jambor <mjambor@suse.cz>
11180 PR tree-optimization/61090
11181 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11182 build_ref_for_model.
11184 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11186 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11187 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11189 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11191 PR tree-optimization/61158
11192 * fold-const.c (fold_binary_loc): If X is zero-extended and
11193 shiftc >= prec, make sure zerobits is all ones instead of
11194 invoking undefined behavior.
11196 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11198 * regcprop.h: New file.
11199 * regcprop.c (skip_debug_insn_p): New decl.
11200 (replace_oldest_value_reg): Check skip_debug_insn_p.
11201 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11202 * shrink-wrap.c: Include regcprop.h.
11203 (prepare_shrink_wrap): Call
11204 copyprop_hardreg_forward_bb_without_debug_insn.
11206 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11208 * shrink-wrap.h: Update comment.
11209 * shrink-wrap.c: Update comment.
11210 (next_block_for_reg): Rename to live_edge_for_reg.
11211 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11212 (move_insn_for_shrink_wrap): Split live_edge.
11213 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11215 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11217 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11219 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11220 * config/sparc/sparc.md (fptype_ut699): New attribute.
11221 (in_branch_delay): Return false if -mfix-ut699 is specified and
11222 fptype_ut699 is set to single.
11223 (truncdfsf2): Add fptype_ut699 attribute.
11224 (fix_truncdfsi2): Likewise.
11225 (floatsisf2): Change fptype attribute.
11226 (fix_truncsfsi2): Likewise.
11227 (negtf2_notv9): Delete.
11228 (negtf2_v9): Likewise.
11229 (negtf2_hq): New instruction.
11230 (negtf2): New instruction and splitter.
11231 (negdf2_notv9): Rewrite.
11232 (abstf2_notv9): Delete.
11233 (abstf2_hq_v9): Likewise.
11234 (abstf2_v9): Likewise.
11235 (abstf2_hq): New instruction.
11236 (abstf2): New instruction and splitter.
11237 (absdf2_notv9): Rewrite.
11239 2014-05-14 Cary Coutant <ccoutant@google.com>
11242 * opts.c (common_handle_option): Don't special-case "-g".
11243 (set_debug_level): Default to at least level 2 with "-g".
11245 2014-05-14 DJ Delorie <dj@redhat.com>
11247 * config/msp430/msp430.c (msp430_builtin): Add
11248 MSP430_BUILTIN_DELAY_CYCLES.
11249 (msp430_init_builtins): Register void __delay_cycles(long long).
11250 (msp430_builtin_decl): Add it.
11251 (cg_magic_constant): New.
11252 (msp430_expand_delay_cycles): New.
11253 (msp430_expand_builtin): Call it.
11254 (msp430_print_operand_raw): Change integer printing from "int" to
11256 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11257 (delay_cycles_start): New.
11258 (delay_cycles_end): New.
11259 (delay_cycles_32): New.
11260 (delay_cycles_32x): New.
11261 (delay_cycles_16): New.
11262 (delay_cycles_16x): New.
11263 (delay_cycles_2): New.
11264 (delay_cycles_1): New.
11265 * doc/extend.texi: Document __delay_cycles().
11267 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11269 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11270 length attribute computation.
11272 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11275 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11277 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11280 * config/sparc/sparc.md: Fix types of low and high in DI constant
11281 splitter. Use gen_int_mode in some other splitters.
11283 2014-05-14 Martin Jambor <mjambor@suse.cz>
11286 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11288 2014-05-14 James Norris <jnorris@codesourcery.com>
11290 * omp-low.c (expand_parallel_call): Remove shadow variable.
11291 (expand_omp_taskreg): Likewise.
11293 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11295 * common/config/i386/i386-common.c
11296 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11297 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11298 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11299 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11300 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11301 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11302 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11303 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11304 xsavecintrin.h, xsavesintrin.h.
11305 (x86_64-*-*): Ditto.
11306 * config/i386/clflushoptintrin.h: New.
11307 * config/i386/xsavecintrin.h: Ditto.
11308 * config/i386/xsavesintrin.h: Ditto.
11309 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11310 (bit_XSAVES): Ditto.
11311 (bit_XSAVES): Ditto.
11312 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11313 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11315 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11316 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11317 OPTION_MASK_ISA_XSAVES.
11318 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11319 -mxsavec, -mxsaves.
11320 (PTA_CLFLUSHOPT) Define.
11321 (PTA_XSAVEC): Ditto.
11322 (PTA_XSAVES): Ditto.
11323 (ix86_option_override_internal): Handle new options.
11324 (ix86_valid_target_attribute_inner_p): Ditto.
11325 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11326 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11327 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11328 (bdesc_special_args): Add __builtin_ia32_xsaves,
11329 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11330 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11331 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11332 (ix86_expand_builtin): Handle new builtins.
11333 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11334 (TARGET_CLFLUSHOPT_P): Ditto.
11335 (TARGET_XSAVEC): Ditto.
11336 (TARGET_XSAVEC_P): Ditto.
11337 (TARGET_XSAVES): Ditto.
11338 (TARGET_XSAVES_P): Ditto.
11339 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11340 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11341 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11343 (ANY_XRSTOR64): Ditto.
11345 (xrstor): Change into <xrstor>.
11346 (xrstor_rex64): Change into <xrstor>_rex64.
11347 (xrstor64): Change into <xrstor>64
11349 * config/i386/i386.opt (mclflushopt): New.
11352 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11354 * doc/invoke.texi: Document new options.
11356 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11358 PR rtl-optimization/60866
11359 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11360 Default it to -1. Pass it down to init_simplejump_data.
11361 (init_simplejump_data): New parameter old_seqno. Pass it down
11362 to get_seqno_for_a_jump.
11363 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11364 initializing new jump seqno as a last resort. Add comment.
11365 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11366 jump and pass it down to sel_init_new_insn.
11367 (sel_redirect_edge_and_branch_force): Likewise.
11369 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11371 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11372 shifted values to avoid build warning.
11374 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11376 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11377 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11378 (cfg_layout_merge_blocks): Likewise.
11379 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11381 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11383 PR rtl-optimization/60901
11384 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11385 bb predecessor belongs to the same scheduling region. Adjust comment.
11387 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11389 * doc/sourcebuild.texi: (dfp_hw): Document.
11390 (p8vector_hw): Likewise.
11391 (powerpc_eabi_ok): Likewise.
11392 (powerpc_elfv2): Likewise.
11393 (powerpc_htm_ok): Likewise.
11394 (ppc_recip_hw): Likewise.
11395 (vsx_hw): Likewise.
11397 2014-05-13 Cary Coutant <ccoutant@google.com>
11399 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11401 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11403 * gengtype-parse.c (require3): Eliminate in favor of...
11405 (require_template_declaration): Update to support optional single *
11408 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11409 (create_user_defined_type): Handle a single level of explicit
11410 pointerness within template arguments.
11411 (struct write_types_data): Add field "kind".
11412 (filter_type_name): Handle "*" character.
11413 (write_user_func_for_structure_ptr): Require a write_types_data
11414 rather than just a prefix string, so that we can look up the kind
11415 of the wtd and use it as an index into wrote_user_func_for_ptr,
11416 ensuring that such functions are written at most once. Support
11417 subclasses by invoking the marking function of the ultimate base class.
11418 (write_user_func_for_structure_body): Require a write_types_data
11419 rather than just a prefix string, so that we can pass this to
11420 write_user_func_for_structure_ptr.
11421 (write_func_for_structure): Likewise.
11422 (ggc_wtd): Add initializer of new "kind" field.
11423 (pch_wtd): Likewise.
11425 * gengtype.h (enum write_types_kinds): New.
11426 (struct type): Add field wrote_user_func_for_ptr to the "s"
11429 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11431 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11432 instead of const_binop.
11433 (fold_binary_loc): Likewise.
11435 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11437 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11438 calculation to match get_ref_base_and_extent.
11440 2014-05-13 Catherine Moore <clm@codesourcery.com>
11441 Sandra Loosemore <sandra@codesourcery.com>
11443 * configure.ac: Fix assembly for explicit JALR relocation check.
11444 * configure: Regenerate.
11446 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11448 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11449 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11450 Remove associated type declarations and initialisations.
11451 (arm_expand_neon_builtin): Likewise.
11452 (neon_emit_pair_result_insn): Delete.
11453 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11454 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11455 (neon_vzip<mode>): Likewise.
11456 (neon_vuzp<mode>): Likewise.
11458 2014-05-13 Richard Biener <rguenther@suse.de>
11461 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11462 it needs revisiting whether the call still may be tail-called.
11464 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11466 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11467 * rtl.h (block_symbol): Reduce number of fields to 2.
11468 (rtx_def): Add u2.symbol_ref_flags.
11469 (SYMBOL_REF_FLAGS): Use it.
11470 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11471 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11472 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11473 Lower index of SYMBOL_REF_DATA.
11474 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11475 Print SYMBOL_REF_FLAGS at the same time.
11476 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11478 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11480 * rtl.def (VAR_LOCATION): Remove "i" field.
11481 * rtl.h (rtx_def): Add u2.var_location_status.
11482 (PAT_VAR_LOCATION_STATUS): Use it.
11483 (gen_rtx_VAR_LOCATION): Declare.
11484 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11485 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11486 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11488 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11490 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11491 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11493 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11495 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11496 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11497 * rtl.h (rtx_def): Add insn_uid to u2 field.
11498 (RTX_FLAG_CHECK8): Delete in favor of...
11499 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11500 (INSN_DELETED_P): Update accordingly.
11501 (INSN_UID): Use u2.insn_uid.
11502 (INSN_CHAIN_CODE_P): Define.
11503 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11504 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11505 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11506 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11507 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11508 indices accordingly.
11509 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11510 Update indices for insn-chain rtxes.
11511 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11512 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11513 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11514 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11515 * combine.c (try_combine): Likewise.
11516 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11518 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11520 * rtl.def (REG): Remove middle field.
11521 * rtl.h (rtx_def): Add orignal_regno to u2.
11522 (ORIGINAL_REGNO): Use it instead of field 1.
11523 (REG_ATTRS): Lower field index accordingly.
11524 * gengtype.c (adjust_field_rtx_def): Remove handling of
11525 ORIGINAL_REGNO. Move REG_ATTRS index down.
11526 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11527 code that prints the REGNO.
11529 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11531 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11534 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11536 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11538 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11540 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11541 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11543 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11545 * config/aarch64/aarch64-protos.h
11546 (aarch64_hard_regno_caller_save_mode): New prototype.
11547 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11549 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11551 2014-05-13 Christian Bruel <christian.bruel@st.com>
11553 * target.def (mode_switching): New hook vector.
11554 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11555 (mode_exit, modepriority_to_mode): Likewise.
11556 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11557 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11558 * target.h: Include tm.h and hard-reg-set.h.
11559 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11560 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11561 * doc/tm.texi Regenerate.
11562 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11563 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11564 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11565 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11566 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11567 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11568 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11569 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11570 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11571 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11572 (ix86_emit_mode_set): Hookify.
11573 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11575 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11576 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11577 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11578 (epiphany_mode_priority_to_mode): Remove declaration.
11579 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11580 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11581 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11583 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11584 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11585 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11587 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11590 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11591 is const0_rtx, return immediately. Don't test count == 0 when
11594 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11596 * Makefile.in: add shrink-wrap.o.
11597 * config/i386/i386.c: include "shrink-wrap.h"
11598 * function.c: Likewise.
11599 (requires_stack_frame_p, next_block_for_reg,
11600 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11601 dup_block_and_redirect): Move to shrink-wrap.c
11602 (thread_prologue_and_epilogue_insns): Extract three code segments
11603 as functions in shrink-wrap.c
11604 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11606 * shrink-wrap.c: New file.
11607 * shrink-wrap.h: New file.
11609 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11611 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11612 reference to Solaris.
11614 2014-05-12 Mike Stump <mikestump@comcast.net>
11617 * genattrtab.c (filename): Add.
11618 (convert_set_attr_alternative): Improve error message.
11619 (check_defs): Restore read_md_filename for error messages.
11620 (gen_insn): Save filename.
11622 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11624 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11625 -fno-local-ivars and -fivar-visibility.
11626 * c-family/c.opt: Make -Wshadow also implicitly enable
11629 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11631 * doc/tm.texi: Remove reference to deleted macro.
11632 * doc/tm.texi.in: Likewise.
11634 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11637 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11640 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11643 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11644 * config/arm/aout.h (License): Same.
11645 * config/arm/bpabi.h (License): Same.
11646 * config/arm/elf.h (License): Same.
11647 * config/arm/linux-elf.h (License): Same.
11648 * config/arm/linux-gas.h (License): Same.
11649 * config/arm/netbsd-elf.h (License): Same.
11650 * config/arm/uclinux-eabi.h (License): Same.
11651 * config/arm/uclinux-elf.h (License): Same.
11652 * config/arm/vxworks.h (License): Same.
11654 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11656 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11657 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11658 number of operands to 3.
11659 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11660 * tree-nested.c (convert_nonlocal_omp_clauses,
11661 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11662 * gimplify.c (gimplify_scan_omp_clauses): Handle
11663 OMP_CLAUSE_LINEAR_STMT.
11664 * omp-low.c (lower_rec_input_clauses): Fix typo.
11665 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11666 cast between Fortran boolean_type_node and C _Bool if
11669 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11671 PR tree-optimization/61136
11672 * wide-int.h (multiple_of_p): Define a version that doesn't return
11674 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11675 integer_zerop/const_binop pair.
11676 (multiple_of_p): Likewise, converting both operands to widest_int
11679 2014-05-09 Teresa Johnson <tejohnson@google.com>
11681 * cgraphunit.c (analyze_functions): Use correct dump file.
11683 2014-05-09 Florian Weimer <fweimer@redhat.com>
11685 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11687 (stack_protect_return_slot_p): New function.
11688 (expand_used_vars): Call stack_protect_decl_p and
11689 stack_protect_return_slot_p for -fstack-protector-strong.
11691 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11692 Andrew Haley <aph@redhat.com>
11693 Richard Sandiford <rdsandiford@googlemail.com>
11695 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11698 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11700 PR middle-end/61111
11701 * fold-const.c (fold_binary_loc): Changed width of mask.
11703 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11705 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11706 unsigned int initializers for regno_in, regno_out.
11708 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11711 * config/avr/avr.md (cc): Add new attribute set_vzn.
11712 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11713 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11714 with INC, DEC or NEG.
11715 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11716 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11717 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11719 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11722 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11724 * wide-int.cc (UTItype): Define.
11725 (UDWtype): Define for appropriate W_TYPE_SIZE.
11727 2014-05-09 Richard Biener <rguenther@suse.de>
11729 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11730 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11731 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11732 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11733 ssa_propagate): Adjust.
11735 2014-05-08 Jeff Law <law@redhat.com>
11737 PR tree-optimization/61009
11738 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11739 tri-state rather than a boolean. When a block is too big to
11740 thread through, inform caller via negative return value.
11741 (thread_across_edge): If a block was too big for normal threading,
11742 then it's too big for a joiner too, so remove temporary equivalences
11743 and return immediately.
11745 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11746 Matthias Klose <doko@ubuntu.com>
11749 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11751 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11754 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11756 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11759 * config/alpha/alpha.c: Include gimple-iterator.h.
11760 (alpha_gimple_fold_builtin): New function. Move
11761 ALPHA_BUILTIN_UMULH folding from ...
11762 (alpha_fold_builtin): ... here.
11763 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11765 2014-05-08 Wei Mi <wmi@google.com>
11768 * config/i386/i386.c (ix86_compute_frame_layout): Update
11769 preferred_stack_boundary for call, expanded from tls descriptor.
11770 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11771 to depend on SP register.
11772 (*tls_local_dynamic_base_32_gnu): Ditto.
11773 (*tls_local_dynamic_32_once): Ditto.
11774 (tls_global_dynamic_64_<mode>): Set
11775 ix86_tls_descriptor_calls_expanded_in_cfun.
11776 (tls_local_dynamic_base_64_<mode>): Ditto.
11777 (tls_global_dynamic_32): Set
11778 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11779 to depend on SP register.
11780 (tls_local_dynamic_base_32): Ditto.
11782 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11784 * config/arm/arm_neon.h: Update comment.
11785 * config/arm/neon-docgen.ml: Delete.
11786 * config/arm/neon-gen.ml: Delete.
11787 * doc/arm-neon-intrinsics.texi: Update comment.
11789 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11791 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11793 (vand, vorr, veor, vorn, vbic): Remove.
11794 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11796 (neon_vsub_unspec): Likewise.
11797 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11799 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11801 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11802 (vadd_s16): Likewise.
11803 (vadd_s32): Likewise.
11804 (vadd_f32): Likewise.
11805 (vadd_u8): Likewise.
11806 (vadd_u16): Likewise.
11807 (vadd_u32): Likewise.
11808 (vadd_s64): Likewise.
11809 (vadd_u64): Likewise.
11810 (vaddq_s8): Likewise.
11811 (vaddq_s16): Likewise.
11812 (vaddq_s32): Likewise.
11813 (vaddq_s64): Likewise.
11814 (vaddq_f32): Likewise.
11815 (vaddq_u8): Likewise.
11816 (vaddq_u16): Likewise.
11817 (vaddq_u32): Likewise.
11818 (vaddq_u64): Likewise.
11819 (vmul_s8): Likewise.
11820 (vmul_s16): Likewise.
11821 (vmul_s32): Likewise.
11822 (vmul_f32): Likewise.
11823 (vmul_u8): Likewise.
11824 (vmul_u16): Likewise.
11825 (vmul_u32): Likewise.
11826 (vmul_p8): Likewise.
11827 (vmulq_s8): Likewise.
11828 (vmulq_s16): Likewise.
11829 (vmulq_s32): Likewise.
11830 (vmulq_f32): Likewise.
11831 (vmulq_u8): Likewise.
11832 (vmulq_u16): Likewise.
11833 (vmulq_u32): Likewise.
11834 (vsub_s8): Likewise.
11835 (vsub_s16): Likewise.
11836 (vsub_s32): Likewise.
11837 (vsub_f32): Likewise.
11838 (vsub_u8): Likewise.
11839 (vsub_u16): Likewise.
11840 (vsub_u32): Likewise.
11841 (vsub_s64): Likewise.
11842 (vsub_u64): Likewise.
11843 (vsubq_s8): Likewise.
11844 (vsubq_s16): Likewise.
11845 (vsubq_s32): Likewise.
11846 (vsubq_s64): Likewise.
11847 (vsubq_f32): Likewise.
11848 (vsubq_u8): Likewise.
11849 (vsubq_u16): Likewise.
11850 (vsubq_u32): Likewise.
11851 (vsubq_u64): Likewise.
11852 (vand_s8): Likewise.
11853 (vand_s16): Likewise.
11854 (vand_s32): Likewise.
11855 (vand_u8): Likewise.
11856 (vand_u16): Likewise.
11857 (vand_u32): Likewise.
11858 (vand_s64): Likewise.
11859 (vand_u64): Likewise.
11860 (vandq_s8): Likewise.
11861 (vandq_s16): Likewise.
11862 (vandq_s32): Likewise.
11863 (vandq_s64): Likewise.
11864 (vandq_u8): Likewise.
11865 (vandq_u16): Likewise.
11866 (vandq_u32): Likewise.
11867 (vandq_u64): Likewise.
11868 (vorr_s8): Likewise.
11869 (vorr_s16): Likewise.
11870 (vorr_s32): Likewise.
11871 (vorr_u8): Likewise.
11872 (vorr_u16): Likewise.
11873 (vorr_u32): Likewise.
11874 (vorr_s64): Likewise.
11875 (vorr_u64): Likewise.
11876 (vorrq_s8): Likewise.
11877 (vorrq_s16): Likewise.
11878 (vorrq_s32): Likewise.
11879 (vorrq_s64): Likewise.
11880 (vorrq_u8): Likewise.
11881 (vorrq_u16): Likewise.
11882 (vorrq_u32): Likewise.
11883 (vorrq_u64): Likewise.
11884 (veor_s8): Likewise.
11885 (veor_s16): Likewise.
11886 (veor_s32): Likewise.
11887 (veor_u8): Likewise.
11888 (veor_u16): Likewise.
11889 (veor_u32): Likewise.
11890 (veor_s64): Likewise.
11891 (veor_u64): Likewise.
11892 (veorq_s8): Likewise.
11893 (veorq_s16): Likewise.
11894 (veorq_s32): Likewise.
11895 (veorq_s64): Likewise.
11896 (veorq_u8): Likewise.
11897 (veorq_u16): Likewise.
11898 (veorq_u32): Likewise.
11899 (veorq_u64): Likewise.
11900 (vbic_s8): Likewise.
11901 (vbic_s16): Likewise.
11902 (vbic_s32): Likewise.
11903 (vbic_u8): Likewise.
11904 (vbic_u16): Likewise.
11905 (vbic_u32): Likewise.
11906 (vbic_s64): Likewise.
11907 (vbic_u64): Likewise.
11908 (vbicq_s8): Likewise.
11909 (vbicq_s16): Likewise.
11910 (vbicq_s32): Likewise.
11911 (vbicq_s64): Likewise.
11912 (vbicq_u8): Likewise.
11913 (vbicq_u16): Likewise.
11914 (vbicq_u32): Likewise.
11915 (vbicq_u64): Likewise.
11916 (vorn_s8): Likewise.
11917 (vorn_s16): Likewise.
11918 (vorn_s32): Likewise.
11919 (vorn_u8): Likewise.
11920 (vorn_u16): Likewise.
11921 (vorn_u32): Likewise.
11922 (vorn_s64): Likewise.
11923 (vorn_u64): Likewise.
11924 (vornq_s8): Likewise.
11925 (vornq_s16): Likewise.
11926 (vornq_s32): Likewise.
11927 (vornq_s64): Likewise.
11928 (vornq_u8): Likewise.
11929 (vornq_u16): Likewise.
11930 (vornq_u32): Likewise.
11931 (vornq_u64): Likewise.
11933 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11935 * wide-int.cc (UTItype): Define.
11936 (UDWtype): Define for appropriate W_TYPE_SIZE.
11938 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11940 PR tree-optimization/59100
11941 * tree-ssa-phiopt.c: Include tree-inline.h.
11942 (neutral_element_p, absorbing_element_p): New functions.
11943 (value_replacement): Handle conditional binary operations with a
11944 neutral or absorbing element.
11946 2014-05-08 Richard Biener <rguenther@suse.de>
11948 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
11949 folding the expression.
11950 (valueize_expr): Remove.
11951 (visit_reference_op_load): Do not valueize the result of
11953 (simplify_binary_expression): Likewise.
11954 (simplify_unary_expression): Likewise.
11956 2014-05-08 Richard Biener <rguenther@suse.de>
11958 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
11959 looking at TYPE_ARG_TYPES.
11961 2014-05-08 Richard Biener <rguenther@suse.de>
11963 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11964 pointer propagation special-case.
11966 2014-05-08 Bin Cheng <bin.cheng@arm.com>
11968 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
11969 core part of address expressions.
11971 2014-05-08 Alan Modra <amodra@gmail.com>
11974 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
11975 loads and stores when -mno-strict-align at any alignment.
11976 (expand_block_clear): Similarly. Also correct calculation of
11979 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11981 PR middle-end/39246
11982 * tree-complex.c (expand_complex_move): Keep line info when expanding
11984 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
11985 of complex expression. Use new argument to display correct location
11986 for values coming from phi statement.
11987 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
11988 (warn_uninitialized_phi): Pass location of phi argument to
11990 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
11991 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
11993 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11995 * config/rs6000/predicates.md (indexed_address_mem): New.
11996 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
11997 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
11998 fpstore_ux, fpstore_u.
11999 (sign_extend, indexed, update): New.
12000 (cell_micro): Adjust.
12001 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12002 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12003 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12004 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12005 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12006 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12007 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12008 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12009 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12010 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12011 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12012 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12013 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12014 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12015 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12017 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12018 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12019 *vsx_extract_<mode>_store): Adjust.
12020 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12021 is_cracked_insn, insn_must_be_first_in_group,
12022 insn_must_be_last_in_group): Adjust.
12024 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12026 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12027 ppc440-fpstore): Adjust.
12028 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12029 ppc476-fpstore): Adjust.
12030 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12031 ppc601-fpstore): Adjust.
12032 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12034 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12036 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12037 ppc7450-fpstore): Adjust.
12038 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12039 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12040 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12042 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12043 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12044 cell-fpstore, cell-fpstore-update): Adjust.
12045 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12046 ppce300c3_store, ppce300c3_fpstore): Adjust.
12047 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12048 e500mc_fpstore): Adjust.
12049 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12050 e500mc64_store, e500mc64_fpstore): Adjust.
12051 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12052 e5500_fpstore): Adjust.
12053 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12054 e6500_fpstore): Adjust.
12055 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12057 * config/rs6000/power4.md (power4-load, power4-load-ext,
12058 power4-load-ext-update, power4-load-ext-update-indexed,
12059 power4-load-update-indexed, power4-load-update, power4-fpload,
12060 power4-fpload-update, power4-store, power4-store-update,
12061 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12063 * config/rs6000/power5.md (power5-load, power5-load-ext,
12064 power5-load-ext-update, power5-load-ext-update-indexed,
12065 power5-load-update-indexed, power5-load-update, power5-fpload,
12066 power5-fpload-update, power5-store, power5-store-update,
12067 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12069 * config/rs6000/power6.md (power6-load, power6-load-ext,
12070 power6-load-update, power6-load-update-indexed,
12071 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12072 power6-fpload-update, power6-store, power6-store-update,
12073 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12075 * config/rs6000/power7.md (power7-load, power7-load-ext,
12076 power7-load-update, power7-load-update-indexed,
12077 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12078 power7-fpload-update, power7-store, power7-store-update,
12079 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12081 * config/rs6000/power8.md (power8-load, power8-load-update,
12082 power8-load-ext, power8-load-ext-update, power8-fpload,
12083 power8-fpload-update, power8-store, power8-store-update-indexed,
12084 power8-fpstore, power8-fpstore-update): Adjust.
12085 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12087 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12088 titan_lsu_store, titan_lsu_fpstore): Adjust.
12089 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12091 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12094 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12095 unrolled byte insns. Emit address increments after move insns.
12097 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12099 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12100 const_gimple, rather than a gimple.
12101 (gimple_call_builtin_p): Likewise, for the three variants.
12103 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12104 (gimple_call_builtin_p): Likewise, for the three variants.
12106 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12108 PR tree-optimization/61095
12109 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12111 2014-05-07 Richard Biener <rguenther@suse.de>
12113 PR tree-optimization/61034
12114 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12115 (maybe_skip_until): Use translate to take into account
12116 lattices when trying to do disambiguations.
12117 (get_continuation_for_phi_1): Likewise.
12118 (get_continuation_for_phi): Adjust for added translate arguments.
12119 (walk_non_aliased_vuses): Likewise.
12120 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12121 (walk_non_aliased_vuses): Likewise.
12122 (call_may_clobber_ref_p_1): Declare.
12123 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12124 calls. Stop early if we are only supposed to disambiguate.
12125 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12127 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12129 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12130 Emit an error when the function has arguments.
12132 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12134 * cfgloop.h (unswitch_loops): Remove.
12135 * doc/passes.texi: Remove references to loop-unswitch.c
12136 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12138 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12140 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12141 check for loads group of length 3.
12142 (vect_permute_load_chain): New permutations for loads group of
12144 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12145 of vec_perm_shuffle for the new permutations.
12147 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12149 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12150 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12151 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12152 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12153 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12154 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12155 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12156 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12158 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12160 * loop-unswitch.c: Delete.
12162 2014-05-07 Richard Biener <rguenther@suse.de>
12164 * config.gcc: Always set need_64bit_hwint to yes.
12166 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12168 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12169 of using optimize_size.
12171 2014-05-06 Mike Stump <mikestump@comcast.net>
12173 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12175 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12177 * config/i386/sse.md (*mov<mode>_internal)
12178 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12179 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12180 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12181 (*<code><mode>3, *andnot<mode>3<mask_name>)
12182 (<mask_codefor><code><mode>3<mask_name>): Only consider
12183 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12185 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12188 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12190 * lra-constraints.c (valid_address_p): Move earlier in file.
12191 Add a constraint argument to the address_info version.
12192 (satisfies_memory_constraint_p): New function.
12193 (satisfies_address_constraint_p): Likewise.
12194 (process_alt_operands, curr_insn_transform): Use them.
12195 (process_address): Pass the constraint to valid_address_p when
12196 checking address operands.
12198 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12200 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12201 to their respective blocks. Fix inadvertent use of "node".
12203 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12205 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12207 (init_emit_once): ...here.
12208 * rtl.h (init_derived_machine_modes): Declare.
12209 * toplev.c (do_compile): Call it even if no_backend.
12211 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12212 Mike Stump <mikestump@comcast.net>
12213 Richard Sandiford <rdsandiford@googlemail.com>
12214 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12216 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12217 (rtx_equal_for_memref_p): Update comment.
12218 (adjust_offset_for_component_ref): Use wide-int interfaces.
12219 * builtins.c (get_object_alignment_2): Likewise.
12220 (c_readstr): Likewise.
12221 (target_char_cast): Add comment.
12222 (determine_block_size): Use wide-int interfaces.
12223 (expand_builtin_signbit): Likewise.
12224 (fold_builtin_int_roundingfn): Likewise.
12225 (fold_builtin_bitop): Likewise.
12226 (fold_builtin_bswap): Likewise.
12227 (fold_builtin_logarithm): Use signop.
12228 (fold_builtin_pow): Likewise.
12229 (fold_builtin_memory_op): Use wide-int interfaces.
12230 (fold_builtin_object_size): Likewise.
12231 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12232 nb_iterations_estimate.
12233 (record_niter_bound): Use wide-int interfaces.
12234 (get_estimated_loop_iterations_int): Likewise.
12235 (get_estimated_loop_iterations): Likewise.
12236 (get_max_loop_iterations): Likewise.
12237 * cfgloop.h: Include wide-int.h.
12238 (struct nb_iter_bound): Change bound to widest_int.
12239 (struct loop): Change nb_iterations_upper_bound and
12240 nb_iterations_estimate to widest_int.
12241 (record_niter_bound): Switch to use widest_int.
12242 (get_estimated_loop_iterations): Likewise.
12243 (get_max_loop_iterations): Likewise.
12244 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12245 update for wide-int.
12246 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12247 * combine.c (try_combine): Likewise.
12248 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12249 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12251 (aarch64_float_const_representable_p): Likewise.
12252 * config/arc/arc.c: Include wide-int.h.
12253 (arc_can_use_doloop_p): Use wide-int interfaces.
12254 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12255 (vfp3_const_double_index): Likewise.
12256 * config/avr/avr.c (avr_out_round): Likewise.
12257 (avr_fold_builtin): Likewise.
12258 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12259 (bfin_can_use_doloop_p): Likewise.
12260 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12261 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12262 * config/i386/i386.c: Include wide-int.h.
12263 (ix86_data_alignment): Use wide-int interfaces.
12264 (ix86_local_alignment): Likewise.
12265 (ix86_emit_swsqrtsf): Update real_from_integer.
12266 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12267 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12268 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12269 (zero_constant): Likewise.
12270 (input_operand): Likewise.
12271 (splat_input_operand): Likewise.
12272 (non_logical_cint_operand): Change const_double to const_wide_int.
12273 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12274 (easy_altivec_constant): Remove comment.
12275 (paired_expand_vector_init): Use CONSTANT_P.
12276 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12277 (rs6000_emit_move): Update checks.
12278 (rs6000_aggregate_candidate): Use wide-int interfaces.
12279 (rs6000_expand_ternop_builtin): Likewise.
12280 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12281 (rs6000_assemble_integer): Likewise.
12282 (rs6000_hash_constant): Likewise.
12283 (output_toc): Likewise.
12284 (rs6000_rtx_costs): Likewise.
12285 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12286 * config/rs6000/rs6000-c.c: Include wide-int.h.
12287 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12288 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12289 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12290 Handle CONST_WIDE_INT.
12291 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12292 Use tree_fits_uhwi_p.
12293 * config/sparc/sparc.c: Include wide-int.h.
12294 (sparc_fold_builtin): Use wide-int interfaces.
12295 * config/vax/vax.c: Include wide-int.h.
12296 (vax_float_literal): Use real_from_integer.
12297 * coretypes.h (struct hwivec_def): New.
12299 (const_hwivec): New.
12300 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12301 (equiv_constant): Handle CONST_WIDE_INT.
12302 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12303 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12304 * dbxout.c (stabstr_U): Use wide-int interfaces.
12305 (dbxout_type): Update to use cst_fits_shwi_p.
12306 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12307 (TARGET_SUPPORTS_WIDE_INT): Add default.
12308 * dfp.c: Include wide-int.h.
12309 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12310 decimal_real_to_integer.
12311 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12312 decimal_real_to_integer.
12313 * doc/generic.texi (Constant expressions): Update for wide_int.
12314 * doc/rtl.texi (const_double): Likewise.
12315 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12316 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12317 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12318 (REAL_VALUE_FROM_INT): Remove.
12319 (TARGET_SUPPORTS_WIDE_INT): New.
12320 * doc/tm.texi: Regenerate.
12321 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12322 * double-int.h: Include wide-int.h.
12323 (struct wi::int_traits): New.
12324 * dwarf2out.c (get_full_len): New.
12325 (dw_val_equal_p): Add case dw_val_class_wide_int.
12326 (size_of_loc_descr): Likewise.
12327 (output_loc_operands): Likewise.
12328 (insert_double): Remove.
12329 (insert_wide_int): New.
12330 (add_AT_wide): New.
12331 (print_die): Add case dw_val_class_wide_int.
12332 (attr_checksum): Likewise.
12333 (attr_checksum_ordered): Likewise.
12334 (same_dw_val_p): Likewise.
12335 (size_of_die): Likewise.
12336 (value_format): Likewise.
12337 (output_die): Likewise.
12338 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12340 (clz_loc_descriptor): Use wide-int interfaces.
12341 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12342 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12343 (round_up_to_align): Use wide-int interfaces.
12344 (field_byte_offset): Likewise.
12345 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12346 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12347 CONST_DOUBLE handling. Use wide-int interfaces.
12348 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12349 (gen_enumeration_type_die): Use add_AT_wide.
12350 (hash_loc_operands): Add case dw_val_class_wide_int.
12351 (compare_loc_operands): Likewise.
12352 * dwarf2out.h: Include wide-int.h.
12353 (wide_int_ptr): New.
12354 (enum dw_val_class): Add dw_val_class_wide_int.
12355 (struct dw_val_struct): Add val_wide.
12356 * emit-rtl.c (const_wide_int_htab): New.
12357 (const_wide_int_htab_hash): New.
12358 (const_wide_int_htab_eq): New.
12359 (lookup_const_wide_int): New.
12360 (const_double_htab_hash): Use wide-int interfaces.
12361 (const_double_htab_eq): Likewise.
12362 (rtx_to_double_int): Conditionally compile for wide-int.
12363 (immed_double_int_const): Rename to immed_wide_int_const and
12364 update for wide-int.
12365 (immed_double_const): Conditionally compile for wide-int.
12366 (init_emit_once): Use wide-int interfaces.
12367 * explow.c (plus_constant): Likewise.
12368 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12369 (lshift_value): Use wide-int interfaces.
12370 (expand_mult): Likewise.
12371 (choose_multiplier): Likewise.
12372 (expand_smod_pow2): Likewise.
12373 (make_tree): Likewise.
12374 * expr.c (convert_modes): Consolidate handling of constants.
12375 Use wide-int interfaces.
12376 (emit_group_load_1): Add note.
12377 (store_expr): Update comment.
12378 (get_inner_reference): Use wide-int interfaces.
12379 (expand_constructor): Update comment.
12380 (expand_expr_real_2): Use wide-int interfaces.
12381 (expand_expr_real_1): Likewise.
12382 (reduce_to_bit_field_precision): Likewise.
12383 (const_vector_from_tree): Likewise.
12384 * final.c: Include wide-int-print.h.
12385 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12386 * fixed-value.c: Include wide-int.h.
12387 (fixed_from_string): Use wide-int interfaces.
12388 (fixed_to_decimal): Likewise.
12389 (fixed_convert_from_real): Likewise.
12390 (real_convert_from_fixed): Likewise.
12391 * fold-const.h (mem_ref_offset): Return an offset_int.
12392 (div_if_zero_remainder): Remove code parameter.
12393 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12394 Use wide-int interfaces.
12395 (may_negate_without_overflow_p): Use wide-int interfaces.
12396 (negate_expr_p): Likewise.
12397 (fold_negate_expr): Likewise.
12398 (int_const_binop_1): Likewise.
12399 (const_binop): Likewise.
12400 (fold_convert_const_int_from_int): Likewise.
12401 (fold_convert_const_int_from_real): Likewise.
12402 (fold_convert_const_int_from_fixed): Likewise.
12403 (fold_convert_const_fixed_from_int): Likewise.
12404 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12405 (sign_bit_p): Use wide-int interfaces.
12406 (make_range_step): Likewise.
12407 (build_range_check): Likewise. Pass an integer of the correct type
12408 instead of using integer_one_node.
12409 (range_predecessor): Pass an integer of the correct type instead
12410 of using integer_one_node.
12411 (range_successor): Likewise.
12412 (merge_ranges): Likewise.
12413 (unextend): Use wide-int interfaces.
12414 (extract_muldiv_1): Likewise.
12415 (fold_div_compare): Likewise.
12416 (fold_single_bit_test): Likewise.
12417 (fold_sign_changed_comparison): Likewise.
12418 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12419 (fold_plusminus_mult_expr): Use wide-int interfaces.
12420 (native_encode_int): Likewise.
12421 (native_interpret_int): Likewise.
12422 (fold_unary_loc): Likewise.
12423 (pointer_may_wrap_p): Likewise.
12424 (size_low_cst): Likewise.
12425 (mask_with_tz): Likewise.
12426 (fold_binary_loc): Likewise.
12427 (fold_ternary_loc): Likewise.
12428 (multiple_of_p): Likewise.
12429 (tree_call_nonnegative_warnv_p): Update calls to
12430 tree_int_cst_min_precision and real_from_integer.
12431 (fold_negate_const): Use wide-int interfaces.
12432 (fold_abs_const): Likewise.
12433 (fold_relational_const): Use tree_int_cst_lt.
12434 (round_up_loc): Use wide-int interfaces.
12435 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12436 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12437 * gengtype.c: Remove include of double-int.h.
12438 (do_typedef): Use wide-int interfaces.
12439 (open_base_files): Add wide-int.h.
12440 (main): Add offset_int and widest_int typedefs.
12441 * gengtype-lex.l: Handle "^".
12442 (CXX_KEYWORD): Add "static".
12443 * gengtype-parse.c (require3): New.
12444 (require_template_declaration): Handle constant template arguments
12445 and nested templates.
12446 * gengtype-state.c: Don't include "double-int.h".
12447 * genpreds.c (write_one_predicate_function): Update comment.
12448 (write_tm_constrs_h): Add check for hval and lval use in
12450 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12451 (add_to_sequence): Likewise.
12452 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12453 and const_double_operand.
12454 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12456 * gimple-fold.c (get_base_constructor): Likewise.
12457 (fold_array_ctor_reference): Likewise.
12458 (fold_nonarray_ctor_reference): Likewise.
12459 (fold_const_aggregate_ref_1): Likewise.
12460 (gimple_val_nonnegative_real_p): Likewise.
12461 (gimple_fold_indirect_ref): Likewise.
12462 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12463 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12464 (struct slsr_cand_d): Change index to be widest_int.
12465 (struct incr_info_d): Change incr to be widest_int.
12466 (alloc_cand_and_find_basis): Use wide-int interfaces.
12467 (slsr_process_phi): Likewise.
12468 (backtrace_base_for_ref): Likewise. Return a widest_int.
12469 (restructure_reference): Take a widest_int instead of a double_int.
12470 (slsr_process_ref): Use wide-int interfaces.
12471 (create_mul_ssa_cand): Likewise.
12472 (create_mul_imm_cand): Likewise.
12473 (create_add_ssa_cand): Likewise.
12474 (create_add_imm_cand): Take a widest_int instead of a double_int.
12475 (slsr_process_add): Use wide-int interfaces.
12476 (slsr_process_cast): Likewise.
12477 (slsr_process_copy): Likewise.
12478 (dump_candidate): Likewise.
12479 (dump_incr_vec): Likewise.
12480 (replace_ref): Likewise.
12481 (cand_increment): Likewise. Return a widest_int.
12482 (cand_abs_increment): Likewise.
12483 (replace_mult_candidate): Take a widest_int instead of a double_int.
12484 (replace_unconditional_candidate): Use wide-int interfaces.
12485 (incr_vec_index): Take a widest_int instead of a double_int.
12486 (create_add_on_incoming_edge): Likewise.
12487 (create_phi_basis): Use wide-int interfaces.
12488 (replace_conditional_candidate): Likewise.
12489 (record_increment): Take a widest_int instead of a double_int.
12490 (record_phi_increments): Use wide-int interfaces.
12491 (phi_incr_cost): Take a widest_int instead of a double_int.
12492 (lowest_cost_path): Likewise.
12493 (total_savings): Likewise.
12494 (analyze_increments): Use wide-int interfaces.
12495 (ncd_with_phi): Take a widest_int instead of a double_int.
12496 (ncd_of_cand_and_phis): Likewise.
12497 (nearest_common_dominator_for_cands): Likewise.
12498 (insert_initializers): Use wide-int interfaces.
12499 (all_phi_incrs_profitable): Likewise.
12500 (replace_one_candidate): Likewise.
12501 (replace_profitable_candidates): Likewise.
12502 * godump.c: Include wide-int-print.h.
12503 (go_output_typedef): Use wide-int interfaces.
12504 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12505 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12506 (build_loop_iteration_domains): Likewise.
12507 * hooks.h: Include wide-int.h rather than double-int.h.
12508 (hook_bool_dint_dint_uint_bool_true): Delete.
12509 (hook_bool_wint_wint_uint_bool_true): Declare.
12510 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12511 (hook_bool_wint_wint_uint_bool_true): New.
12512 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12514 (ubsan_expand_si_overflow_mul_check): Likewise.
12515 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12516 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12517 (get_ancestor_addr_info): Likewise.
12518 (ipa_modify_call_arguments): Likewise.
12519 * loop-doloop.c (doloop_modify): Likewise.
12520 (doloop_optimize): Likewise.
12521 * loop-iv.c (iv_number_of_iterations): Likewise.
12522 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12523 (unroll_loop_constant_iterations): Likewise.
12524 (decide_unroll_runtime_iterations): Likewise.
12525 (unroll_loop_runtime_iterations): Likewise.
12526 (decide_peel_simple): Likewise.
12527 (decide_unroll_stupid): Likewise.
12528 * lto-streamer-in.c (streamer_read_wi): Add.
12529 (input_cfg): Use wide-int interfaces.
12530 (lto_input_tree_1): Likewise.
12531 * lto-streamer-out.c (streamer_write_wi): Add.
12532 (hash_tree): Use wide-int interfaces.
12533 (output_cfg): Likewise.
12534 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12535 (GTFILES): Add wide-int.h and signop.h.
12536 (TAGS): Look for .cc files too.
12537 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12538 * optabs.c (expand_subword_shift): Likewise.
12539 (expand_doubleword_shift): Likewise.
12540 (expand_absneg_bit): Likewise.
12541 (expand_copysign_absneg): Likewise.
12542 (expand_copysign_bit): Likewise.
12543 * postreload.c (reload_cse_simplify_set): Likewise.
12544 * predict.c (predict_iv_comparison): Likewise.
12545 * pretty-print.h: Include wide-int-print.h.
12547 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12548 * print-tree.c: Include wide-int-print.h.
12549 (print_node_brief): Use wide-int interfaces.
12550 (print_node): Likewise.
12551 * read-rtl.c (validate_const_wide_int): New.
12552 (read_rtx_code): Add CONST_WIDE_INT case.
12553 * real.c: Include wide-int.h.
12554 (real_to_integer2): Delete.
12555 (real_to_integer): New function, returning a wide_int.
12556 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12557 (ten_to_ptwo): Update call to real_from_integer.
12558 (real_digit): Likewise.
12559 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12560 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12561 (REAL_VALUE_TO_INT): Delete.
12562 (real_to_integer): Declare a wide-int form.
12563 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12564 * recog.c (const_int_operand): Improve comment.
12565 (const_scalar_int_operand): New.
12566 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12567 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12568 (split_double): Likewise.
12569 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12570 (rtx_size): Likewise.
12571 (rtx_alloc_stat_v): New.
12572 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12573 (cwi_output_hex): New.
12574 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12575 (cwi_check_failed_bounds): New.
12576 * rtl.def (CONST_WIDE_INT): New.
12577 * rtl.h: Include <utility> and wide-int.h.
12578 (struct hwivec_def): New.
12579 (CWI_GET_NUM_ELEM): New.
12580 (CWI_PUT_NUM_ELEM): New.
12581 (struct rtx_def): Add num_elem and hwiv.
12582 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12583 (CASE_CONST_UNIQUE): Likewise.
12584 (CASE_CONST_ANY): Likewise.
12585 (CONST_SCALAR_INT_P): Likewise.
12586 (CONST_WIDE_INT_P): New.
12588 (HWIVEC_CHECK): New.
12589 (cwi_check_failed_bounds): New.
12591 (HWIVEC_CHECK): New.
12592 (CONST_WIDE_INT_VEC) New.
12593 (CONST_WIDE_INT_NUNITS) New.
12594 (CONST_WIDE_INT_ELT) New.
12595 (rtx_mode_t): New type.
12596 (wi::int_traits <rtx_mode_t>): New.
12598 (wi::min_value): New.
12599 (wi::max_value): New.
12601 (const_wide_int_alloc): New.
12602 (immed_wide_int_const): New.
12603 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12604 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12605 * signop.h: New file.
12606 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12607 (simplify_const_unary_operation): Use wide-int interfaces.
12608 (simplify_binary_operation_1): Likewise.
12609 (simplify_const_binary_operation): Likewise.
12610 (simplify_const_relational_operation): Likewise.
12611 (simplify_immed_subreg): Likewise.
12612 * stmt.c (expand_case): Likewise.
12613 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12614 signop rather than a bool.
12615 * stor-layout.c (layout_type): Use wide-int interfaces.
12616 (initialize_sizetypes): Update calls to
12617 set_min_and_max_values_for_integral_type.
12618 (set_min_and_max_values_for_integral_type): Take a signop rather
12619 than a bool. Use wide-int interfaces.
12620 (fixup_signed_type): Update accordingly. Remove
12621 HOST_BITS_PER_DOUBLE_INT limit.
12622 (fixup_unsigned_type): Likewise.
12623 * system.h (STATIC_CONSTANT_P): New.
12624 (STATIC_ASSERT): New.
12625 * target.def (can_use_doloop_p): Take widest_ints rather than
12627 * target.h: Include wide-int.h rather than double-int.h.
12628 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12630 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12631 rather than INT_CST_LT_UNSIGNED.
12632 (can_use_doloop_if_innermost): Take widest_ints rather than
12634 * tree-affine.c: Include wide-int-print.h.
12635 (double_int_ext_for_comb): Delete.
12636 (wide_int_ext_for_comb): New.
12637 (aff_combination_zero): Use wide-int interfaces.
12638 (aff_combination_const): Take a widest_int instead of a double_int.
12639 (aff_combination_elt): Use wide-int interfaces.
12640 (aff_combination_scale): Take a widest_int instead of a double_int.
12641 (aff_combination_add_elt): Likewise.
12642 (aff_combination_add_cst): Likewise.
12643 (aff_combination_add): Use wide-int interfaces.
12644 (aff_combination_convert): Likewise.
12645 (tree_to_aff_combination): Likewise.
12646 (add_elt_to_tree): Take a widest_int instead of a double_int.
12647 (aff_combination_to_tree): Use wide-int interfaces.
12648 (aff_combination_remove_elt): Likewise.
12649 (aff_combination_add_product): Take a widest_int instead of
12651 (aff_combination_mult): Use wide-int interfaces.
12652 (aff_combination_expand): Likewise.
12653 (double_int_constant_multiple_p): Delete.
12654 (wide_int_constant_multiple_p): New.
12655 (aff_combination_constant_multiple_p): Take a widest_int pointer
12656 instead of a double_int pointer.
12657 (print_aff): Use wide-int interfaces.
12658 (get_inner_reference_aff): Take a widest_int pointer
12659 instead of a double_int pointer.
12660 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12661 * tree-affine.h: Include wide-int.h.
12662 (struct aff_comb_elt): Change type of coef to widest_int.
12663 (struct affine_tree_combination): Change type of offset to widest_int.
12664 (double_int_ext_for_comb): Delete.
12665 (wide_int_ext_for_comb): New.
12666 (aff_combination_const): Use widest_int instead of double_int.
12667 (aff_combination_scale): Likewise.
12668 (aff_combination_add_elt): Likewise.
12669 (aff_combination_constant_multiple_p): Likewise.
12670 (get_inner_reference_aff): Likewise.
12671 (aff_comb_cannot_overlap_p): Likewise.
12672 (aff_combination_zero_p): Use wide-int interfaces.
12673 * tree.c: Include tree.h.
12674 (init_ttree): Use make_int_cst.
12675 (tree_code_size): Removed code for INTEGER_CST case.
12676 (tree_size): Add INTEGER_CST case.
12677 (make_node_stat): Update comment.
12678 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12679 (build_int_cst_type): Use wide-int interfaces.
12680 (double_int_to_tree): Likewise.
12681 (double_int_fits_to_tree_p): Delete.
12682 (force_fit_type_double): Delete.
12683 (force_fit_type): New.
12684 (int_cst_hash_hash): Use wide-int interfaces.
12685 (int_cst_hash_eq): Likewise.
12686 (build_int_cst_wide): Delete.
12687 (wide_int_to_tree): New.
12688 (cache_integer_cst): Use wide-int interfaces.
12689 (build_low_bits_mask): Likewise.
12690 (cst_and_fits_in_hwi): Likewise.
12691 (real_value_from_int_cst): Likewise.
12692 (make_int_cst_stat): New.
12693 (integer_zerop): Use wide_int interfaces.
12694 (integer_onep): Likewise.
12695 (integer_all_onesp): Likewise.
12696 (integer_pow2p): Likewise.
12697 (integer_nonzerop): Likewise.
12698 (tree_log2): Likewise.
12699 (tree_floor_log2): Likewise.
12700 (tree_ctz): Likewise.
12701 (int_size_in_bytes): Likewise.
12702 (mem_ref_offset): Return an offset_int rather than a double_int.
12703 (build_type_attribute_qual_variant): Use wide_int interfaces.
12704 (type_hash_eq): Likewise
12705 (tree_int_cst_equal): Likewise.
12706 (tree_int_cst_lt): Delete.
12707 (tree_int_cst_compare): Likewise.
12708 (tree_fits_shwi_p): Use wide_int interfaces.
12709 (tree_fits_uhwi_p): Likewise.
12710 (tree_int_cst_sign_bit): Likewise.
12711 (tree_int_cst_sgn): Likewise.
12712 (tree_int_cst_min_precision): Take a signop rather than a bool.
12713 (simple_cst_equal): Use wide_int interfaces.
12714 (compare_tree_int): Likewise.
12715 (iterative_hash_expr): Likewise.
12716 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12718 (get_type_static_bounds): Use wide_int interfaces.
12719 (tree_int_cst_elt_check_failed): New.
12720 (build_common_tree_nodes): Reordered to set prec before filling in
12722 (int_cst_value): Check cst_and_fits_in_hwi.
12723 (widest_int_cst_value): Use wide_int interfaces.
12724 (upper_bound_in_type): Likewise.
12725 (lower_bound_in_type): Likewise.
12726 (num_ending_zeros): Likewise.
12727 (drop_tree_overflow): Likewise.
12728 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12729 (gen_conditions_for_pow_cst_base): Likewise.
12730 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12731 (group_case_labels_stmt): Use wide-int interfaces.
12732 (verify_gimple_assign_binary): Likewise.
12733 (print_loop): Likewise.
12734 * tree-chrec.c (tree_fold_binomial): Likewise.
12735 * tree-core.h (struct tree_base): Add int_length.
12736 (struct tree_int_cst): Change rep of value.
12737 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12738 (dr_may_alias_p): Likewise.
12739 (max_stmt_executions_tree): Likewise.
12740 * tree.def (INTEGER_CST): Update comment.
12741 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12742 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12743 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12744 (dequeue_and_dump): Use wide-int interfaces.
12745 * tree.h: Include wide-int.h.
12746 (NULL_TREE): Moved to earlier loc in file.
12747 (TREE_INT_CST_ELT_CHECK): New.
12748 (tree_int_cst_elt_check_failed): New.
12750 (TREE_INT_CST): Delete.
12751 (TREE_INT_CST_LOW): Use wide-int interfaces.
12752 (TREE_INT_CST_HIGH): Delete.
12753 (TREE_INT_CST_NUNITS): New.
12754 (TREE_INT_CST_EXT_NUNITS): Likewise.
12755 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12756 (TREE_INT_CST_ELT): Likewise.
12757 (INT_CST_LT): Delete.
12758 (tree_int_cst_elt_check): New (two forms).
12759 (type_code_size): Update comment.
12760 (make_int_cst_stat, make_int_cst): New.
12761 (tree_to_double_int): Delete.
12762 (double_int_fits_to_tree_p): Delete.
12763 (force_fit_type_double): Delete.
12764 (build_int_cstu): Replace with out-of-line function.
12765 (build_int_cst_wide): Delete.
12766 (tree_int_cst_lt): Define inline.
12767 (tree_int_cst_le): New.
12768 (tree_int_cst_compare): Define inline.
12769 (tree_int_cst_min_precision): Take a signop rather than a bool.
12770 (wi::int_traits <const_tree>): New.
12771 (wi::int_traits <tree>): New.
12772 (wi::extended_tree): New.
12773 (wi::int_traits <wi::extended_tree>): New.
12774 (wi::to_widest): New.
12775 (wi::to_offset): New.
12776 (wi::fits_to_tree_p): New.
12777 (wi::min_value): New.
12778 (wi::max_value): New.
12779 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12780 (copy_tree_body_r): Likewise.
12781 * tree-object-size.c (compute_object_offset): Likewise.
12782 (addr_object_size): Likewise.
12783 * tree-predcom.c: Include wide-int-print.h.
12784 (struct dref_d): Change type of offset to widest_int.
12785 (dump_dref): Call wide-int printer.
12786 (aff_combination_dr_offset): Use wide-int interfaces.
12787 (determine_offset): Take a widest_int pointer rather than a
12788 double_int pointer.
12789 (split_data_refs_to_components): Use wide-int interfaces.
12790 (suitable_component_p): Likewise.
12791 (order_drefs): Likewise.
12792 (add_ref_to_chain): Likewise.
12793 (valid_initializer_p): Likewise.
12794 (determine_roots_comp): Likewise.
12795 * tree-pretty-print.c: Include wide-int-print.h.
12796 (dump_generic_node): Use wide-int interfaces.
12797 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12798 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12799 (move_fixed_address_to_symbol): Likewise.
12800 (move_hint_to_base): Likewise.
12801 (move_pointer_to_base): Likewise.
12802 (move_variant_to_index): Likewise.
12803 (most_expensive_mult_to_index): Likewise.
12804 (addr_to_parts): Likewise.
12805 (copy_ref_info): Likewise.
12806 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12807 (indirect_refs_may_alias_p): Likewise.
12808 (stmt_kills_ref_p_1): Likewise.
12809 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12810 * tree-ssa-ccp.c: Update comment at top of file. Include
12812 (struct prop_value_d): Change type of mask to widest_int.
12813 (extend_mask): New function.
12814 (dump_lattice_value): Use wide-int interfaces.
12815 (get_default_value): Likewise.
12816 (set_constant_value): Likewise.
12817 (set_value_varying): Likewise.
12818 (valid_lattice_transition): Likewise.
12819 (set_lattice_value): Likewise.
12820 (value_to_double_int): Delete.
12821 (value_to_wide_int): New.
12822 (get_value_from_alignment): Use wide-int interfaces.
12823 (get_value_for_expr): Likewise.
12824 (do_dbg_cnt): Likewise.
12825 (ccp_finalize): Likewise.
12826 (ccp_lattice_meet): Likewise.
12827 (bit_value_unop_1): Use widest_ints rather than double_ints.
12828 (bit_value_binop_1): Likewise.
12829 (bit_value_unop): Use wide-int interfaces.
12830 (bit_value_binop): Likewise.
12831 (bit_value_assume_aligned): Likewise.
12832 (evaluate_stmt): Likewise.
12833 (ccp_fold_stmt): Likewise.
12834 (visit_cond_stmt): Likewise.
12835 (ccp_visit_stmt): Likewise.
12836 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12837 (constant_pointer_difference): Likewise.
12838 (associate_pointerplus): Likewise.
12839 (combine_conversions): Likewise.
12840 * tree-ssa-loop.h: Include wide-int.h.
12841 (struct tree_niter_desc): Change type of max to widest_int.
12842 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12843 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12844 (remove_redundant_iv_tests): Likewise.
12845 (canonicalize_loop_induction_variables): Likewise.
12846 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12847 (constant_multiple_of): Take a widest_int pointer instead of
12848 a double_int pointer.
12849 (get_computation_aff): Use wide-int interfaces.
12850 (ptr_difference_cost): Likewise.
12851 (difference_cost): Likewise.
12852 (get_loop_invariant_expr_id): Likewise.
12853 (get_computation_cost_at): Likewise.
12854 (iv_elimination_compare_lt): Likewise.
12855 (may_eliminate_iv): Likewise.
12856 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12857 instead of double_int.
12858 (max_loop_iterations): Likewise.
12859 (max_stmt_executions): Likewise.
12860 (estimated_stmt_executions): Likewise.
12861 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12862 (split_to_var_and_offset): Use wide-int interfaces.
12863 (determine_value_range): Likewise.
12864 (bound_difference_of_offsetted_base): Likewise.
12865 (bounds_add): Take a widest_int instead of a double_int.
12866 (number_of_iterations_ne_max): Use wide-int interfaces.
12867 (number_of_iterations_ne): Likewise.
12868 (number_of_iterations_lt_to_ne): Likewise.
12869 (assert_loop_rolls_lt): Likewise.
12870 (number_of_iterations_lt): Likewise.
12871 (number_of_iterations_le): Likewise.
12872 (number_of_iterations_cond): Likewise.
12873 (number_of_iterations_exit): Likewise.
12874 (finite_loop_p): Likewise.
12875 (derive_constant_upper_bound_assign): Likewise.
12876 (derive_constant_upper_bound): Return a widest_int.
12877 (derive_constant_upper_bound_ops): Likewise.
12878 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12879 (record_estimate): Take a widest_int rather than a double_int.
12880 (record_nonwrapping_iv): Use wide-int interfaces.
12881 (double_int_cmp): Delete.
12882 (wide_int_cmp): New.
12883 (bound_index): Take a widest_int rather than a double_int.
12884 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12885 (maybe_lower_iteration_bound): Likewise.
12886 (estimate_numbers_of_iterations_loop): Likewise.
12887 (estimated_loop_iterations): Take a widest_int pointer than than
12888 a double_int pointer.
12889 (estimated_loop_iterations_int): Use wide-int interfaces.
12890 (max_loop_iterations): Take a widest_int pointer than than
12891 a double_int pointer.
12892 (max_loop_iterations_int): Use wide-int interfaces.
12893 (max_stmt_executions): Take a widest_int pointer than than
12894 a double_int pointer.
12895 (estimated_stmt_executions): Likewise.
12896 (n_of_executions_at_most): Use wide-int interfaces.
12897 (scev_probably_wraps_p): Likewise.
12898 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12899 to real_to_integer.
12900 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12902 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12903 double_ints. Adjust for trailing_wide_ints <3> representation.
12904 (set_nonzero_bits): Likewise.
12905 (get_range_info): Return wide_ints rather than double_ints.
12906 Adjust for trailing_wide_ints <3> representation.
12907 (get_nonzero_bits): Likewise.
12908 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12910 * tree-ssanames.h (struct range_info_def): Replace min, max and
12911 nonzero_bits with a trailing_wide_ints <3>.
12912 (set_range_info): Use wide_int_refs rather than double_ints.
12913 (set_nonzero_bits): Likewise.
12914 (get_range_info): Return wide_ints rather than double_ints.
12915 (get_nonzero_bits): Likewise.
12916 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12917 * tree-ssa-pre.c (phi_translate_1): Likewise.
12918 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12919 (acceptable_pow_call): Likewise.
12920 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12922 (vn_reference_fold_indirect): Likewise.
12923 (vn_reference_maybe_forwprop_address): Likewise.
12924 (valueize_refs_1): Likewise.
12925 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12926 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12927 tree_int_cst_lt and tree_int_cst_le.
12928 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12930 (streamer_alloc_tree): Likewise.
12931 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12932 (streamer_write_tree_header): Likewise.
12933 (streamer_write_integer_cst): Likewise.
12934 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12935 (build_constructors): Likewise.
12936 (array_value_type): Likewise.
12937 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12938 (vect_check_gather): Likewise.
12939 * tree-vect-generic.c (build_replicated_const): Likewise.
12940 (expand_vector_divmod): Likewise.
12941 * tree-vect-loop.c (vect_transform_loop): Likewise.
12942 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12943 (vect_do_peeling_for_alignment): Likewise.
12944 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12945 * tree-vrp.c: Include wide-int.h.
12946 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
12947 (extract_range_from_assert): Use wide-int interfaces.
12948 (vrp_int_const_binop): Likewise.
12949 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
12950 double_int pointers.
12951 (ranges_from_anti_range): Use wide-int interfaces.
12952 (quad_int_cmp): Delete.
12953 (quad_int_pair_sort): Likewise.
12954 (extract_range_from_binary_expr_1): Use wide-int interfaces.
12955 (extract_range_from_unary_expr_1): Likewise.
12956 (adjust_range_with_scev): Likewise.
12957 (masked_increment): Take and return wide_ints rather than double_ints.
12958 (register_edge_assert_for_2): Use wide-int interfaces.
12959 (check_array_ref): Likewise.
12960 (search_for_addr_array): Likewise.
12961 (maybe_set_nonzero_bits): Likewise.
12962 (union_ranges): Pass an integer of the correct type instead of
12963 using integer_one_node.
12964 (intersect_ranges): Likewise.
12965 (simplify_truth_ops_using_ranges): Likewise.
12966 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
12967 (range_fits_type_p): Likewise.
12968 (simplify_cond_using_ranges): Likewise. Take a signop rather than
12970 (simplify_conversion_using_ranges): Use wide-int interfaces.
12971 (simplify_float_conversion_using_ranges): Likewise.
12972 (vrp_finalize): Likewise.
12973 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
12974 (gimple_stringops_transform): Likewise.
12975 * varasm.c (decode_addr_const): Likewise.
12976 (const_hash_1): Likewise.
12977 (const_rtx_hash_1): Likewise
12978 (output_constant): Likewise.
12979 (array_size_for_constructor): Likewise.
12980 (output_constructor_regular_field): Likewise.
12981 (output_constructor_bitfield): Likewise.
12982 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
12983 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
12985 * gencheck.c: Define BITS_PER_UNIT.
12986 * wide-int.cc: New.
12988 * wide-int-print.cc: New.
12989 * wide-int-print.h: New.
12991 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12993 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
12995 2014-05-06 Richard Biener <rguenther@suse.de>
12997 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
12998 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
12999 (TODO_verify_all): Adjust.
13000 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13001 TODO_verify_stmts and TODO_verify_rtl_sharing.
13002 * bb-reorder.c: Likewise.
13003 * cfgexpand.c: Likewise.
13004 * cprop.c: Likewise.
13006 * function.c: Likewise.
13007 * fwprop.c: Likewise.
13008 * gcse.c: Likewise.
13009 * gimple-ssa-isolate-paths.c: Likewise.
13010 * gimple-ssa-strength-reduction.c: Likewise.
13011 * ipa-split.c: Likewise.
13012 * loop-init.c: Likewise.
13013 * loop-unroll.c: Likewise.
13014 * lower-subreg.c: Likewise.
13015 * modulo-sched.c: Likewise.
13016 * postreload-gcse.c: Likewise.
13017 * predict.c: Likewise.
13018 * recog.c: Likewise.
13019 * sched-rgn.c: Likewise.
13020 * store-motion.c: Likewise.
13021 * tracer.c: Likewise.
13022 * trans-mem.c: Likewise.
13023 * tree-call-cdce.c: Likewise.
13024 * tree-cfg.c: Likewise.
13025 * tree-cfgcleanup.c: Likewise.
13026 * tree-complex.c: Likewise.
13027 * tree-eh.c: Likewise.
13028 * tree-emutls.c: Likewise.
13029 * tree-if-conv.c: Likewise.
13030 * tree-into-ssa.c: Likewise.
13031 * tree-loop-distribution.c: Likewise.
13032 * tree-object-size.c: Likewise.
13033 * tree-parloops.c: Likewise.
13034 * tree-pass.h: Likewise.
13035 * tree-sra.c: Likewise.
13036 * tree-ssa-ccp.c: Likewise.
13037 * tree-ssa-copy.c: Likewise.
13038 * tree-ssa-copyrename.c: Likewise.
13039 * tree-ssa-dce.c: Likewise.
13040 * tree-ssa-dom.c: Likewise.
13041 * tree-ssa-dse.c: Likewise.
13042 * tree-ssa-forwprop.c: Likewise.
13043 * tree-ssa-ifcombine.c: Likewise.
13044 * tree-ssa-loop-ch.c: Likewise.
13045 * tree-ssa-loop-ivcanon.c: Likewise.
13046 * tree-ssa-loop.c: Likewise.
13047 * tree-ssa-math-opts.c: Likewise.
13048 * tree-ssa-phiopt.c: Likewise.
13049 * tree-ssa-phiprop.c: Likewise.
13050 * tree-ssa-pre.c: Likewise.
13051 * tree-ssa-reassoc.c: Likewise.
13052 * tree-ssa-sink.c: Likewise.
13053 * tree-ssa-strlen.c: Likewise.
13054 * tree-ssa-tail-merge.c: Likewise.
13055 * tree-ssa-uncprop.c: Likewise.
13056 * tree-switch-conversion.c: Likewise.
13057 * tree-tailcall.c: Likewise.
13058 * tree-vect-generic.c: Likewise.
13059 * tree-vectorizer.c: Likewise.
13060 * tree-vrp.c: Likewise.
13061 * tsan.c: Likewise.
13062 * var-tracking.c: Likewise.
13063 * bt-load.c: Likewise.
13064 * cfgcleanup.c: Likewise.
13065 * combine-stack-adj.c: Likewise.
13066 * combine.c: Likewise.
13067 * compare-elim.c: Likewise.
13068 * config/epiphany/resolve-sw-modes.c: Likewise.
13069 * config/i386/i386.c: Likewise.
13070 * config/mips/mips.c: Likewise.
13071 * config/s390/s390.c: Likewise.
13072 * config/sh/sh_treg_combine.cc: Likewise.
13073 * config/sparc/sparc.c: Likewise.
13076 * final.c: Likewise.
13077 * ifcvt.c: Likewise.
13078 * mode-switching.c: Likewise.
13079 * passes.c: Likewise.
13080 * postreload.c: Likewise.
13082 * reg-stack.c: Likewise.
13083 * regcprop.c: Likewise.
13084 * regrename.c: Likewise.
13087 2014-05-06 Richard Biener <rguenther@suse.de>
13089 PR middle-end/61070
13090 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13091 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13093 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13096 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13098 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13099 Tom de Vries <tom@codesourcery.com>
13101 * target.def (call_fusage_contains_non_callee_clobbers): New
13103 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13105 (@node Miscellaneous Register Hooks): New node.
13106 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13107 * doc/tm.texi: Regenerate.
13109 2014-05-05 Marek Polacek <polacek@redhat.com>
13112 * opts.c (common_handle_option): Call error_at instead of warning_at.
13114 2014-05-05 Richard Biener <rguenther@suse.de>
13116 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13117 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13118 under the TODO_verify_il umbrella.
13120 2014-05-05 Richard Biener <rguenther@suse.de>
13122 * passes.c (execute_function_todo): Move TODO_verify_flow under
13123 the TODO_verify_ul umbrella.
13125 2014-05-05 Richard Biener <rguenther@suse.de>
13127 PR middle-end/61010
13128 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13129 X & CST away from a CST that is the mask of a mode.
13131 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13133 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13134 int argument to enum machine_mode.
13135 (picochip_class_max_nregs): Ditto.
13136 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13137 (picochip_class_max_nregs): Ditto.
13139 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13141 * target.def: Add new target hook.
13142 * doc/tm.texi: Regenerate.
13143 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13144 * targhooks.c (default_keep_leaf_when_profiled): New function.
13146 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13147 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13149 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13151 PR tree-optimization/60363
13152 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13153 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13154 (update_destination_phis): New parameter.
13155 (create_edge_and_update_destination_phis): Ditto.
13156 (ssa_fix_duplicate_block_edges): Pass new arguments.
13157 (thread_single_edge): Ditto.
13159 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13161 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13162 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13163 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13164 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13165 Use RS6000_BTM_HARD_FLOAT.
13166 (BU_MISC_2): Likewise.
13167 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13168 RS6000_BTM_HARD_FLOAT.
13169 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13170 is explicitly used.
13171 (rs6000_invalid_builtin): Add hard floating builtin support.
13172 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13173 hard float builtins.
13174 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13176 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13178 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13179 Add missing function* argument.
13181 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13183 * lra-constraints.c (valid_address_p): Move earlier in file.
13184 Add a constraint argument to the address_info version.
13185 (satisfies_memory_constraint_p): New function.
13186 (satisfies_address_constraint_p): Likewise.
13187 (process_alt_operands, curr_insn_transform): Use them.
13188 (process_address): Pass the constraint to valid_address_p when
13189 checking address operands.
13191 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13193 * config/mips/mips.c (mips_isa_rev): New variable.
13194 (mips_set_architecture): Set it.
13195 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13197 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13198 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13199 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13200 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13201 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13202 conditions in terms of mips_isa_rev.
13203 (mips_isa_rev): Declare.
13205 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13207 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13208 (prob_unlikely, prob_likely): Make variables const.
13210 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13212 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13214 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13216 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13218 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13220 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13221 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13222 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13224 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13225 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13227 Replace usage of ROUND_REG with sh_round_reg.
13228 Use CEIL instead of ROUND_ADVANCE.
13230 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13233 * config/sh/sh.c: Include stdlib headers before everything else.
13235 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13237 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13238 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13239 (gimplify_adjust_omp_clauses): Simd region is never
13240 directly nested in combined parallel. Instead, for linear
13241 with copyin/copyout, if in combined for simd loop, make decl
13242 firstprivate/lastprivate on OMP_FOR.
13243 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13244 expand_omp_for_static_chunk): When setting endvar, also set
13245 fd->loop.v to the same value.
13247 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13249 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13251 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13253 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13256 2014-05-02 Marek Polacek <polacek@redhat.com>
13258 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13260 2014-05-02 Kito Cheng <kito@0xlab.org>
13262 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13263 to a C expression marco.
13264 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13265 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13266 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13267 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13268 HONOR_REG_ALLOC_ORDER.
13269 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13271 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13273 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13275 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13277 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13279 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13281 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13282 (convert_scalar_cond_reduction): Likewise.
13283 (predicate_scalar_phi): Add recognition and transformation
13284 of simple conditioanl reduction to be vectorizable.
13286 2014-05-01 Marek Polacek <polacek@redhat.com>
13289 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13291 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13293 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13294 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13295 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13296 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13297 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13298 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13299 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13300 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13302 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13304 * config/arc/arc.opt (mlra): Move comment above option name
13305 to avoid mis-parsing as language options.
13307 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13309 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13310 * config/sol2.h: ... here.
13311 * config/sol2-10.h: Remove.
13313 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13314 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13315 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13316 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13317 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13318 * config/sol2.h: ... here.
13319 (SECTION_NAME_FORMAT): Don't redefine.
13320 (STARTFILE_ARCH32_SPEC): Rename to ...
13321 (STARTFILE_ARCH_SPEC): ... this.
13322 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13323 * config/sparc/sol2.h: ... here.
13324 (SECTION_NAME_FORMAT): Don't undef.
13325 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13326 (SUBTARGET_EXTRA_SPECS): Remove.
13327 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13329 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13330 (MD_STARTFILE_PREFIX): Remove.
13331 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13332 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13333 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13334 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13335 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13336 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13337 * config/i386/sol2.h: ... here.
13338 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13339 * config/i386/sol2-bi.h: Remove.
13340 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13341 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13343 * config/i386/t-sol2-64: Rename to ...
13344 * config/i386/t-sol2: ... this.
13345 * config/sparc/t-sol2-64: Rename to ...
13346 * config/sparc/t-sol2: ... this.
13348 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13349 sol2_tm_file_head, sol2_tm_file_tail.
13350 Include ${cpu_type}/sol2.h before sol2.h.
13352 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13353 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13354 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13355 Reflect i386/t-sol2-64 renaming.
13356 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13357 Reflect sparc/t-sol2-64 renaming.
13359 2014-04-30 Richard Biener <rguenther@suse.de>
13361 * passes.c (execute_function_todo): Move TODO_verify_stmts
13362 and TODO_verify_ssa under the TODO_verify_il umbrella.
13363 * tree-ssa.h (verify_ssa): Adjust prototype.
13364 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13365 we should verify SSA operands.
13366 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13367 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13368 whether we should verify whether not throwing stmts have EH info.
13369 * graphite-scop-detection.c (create_sese_edges): Adjust.
13370 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13371 * tree-eh.c (lower_try_finally_switch): Do not add the
13372 default case label twice.
13374 2014-04-30 Marek Polacek <polacek@redhat.com>
13376 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13377 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13378 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13379 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13381 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13383 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13384 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13385 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13386 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13387 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13388 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13389 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13390 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13392 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13394 * tree-cfg.c (dump_function_to_file): Dump the return type of
13395 functions, in a line to itself before the function body, mimicking
13396 the layout of a C function.
13398 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13400 PR tree-optimization/60971
13401 * tree-tailcall.c (process_assignment): Reject conversions which
13404 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13406 * calls.c (initialize_argument_information): Always treat
13407 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13408 (expand_call): Likewise.
13409 (emit_library_call_calue_1): Likewise.
13410 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13411 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13414 2014-04-29 Nick Clifton <nickc@redhat.com>
13416 * config/msp430/msp430.md (umulsidi): Fix typo.
13417 (mulhisi3): Enable even inside interrupt handlers.
13418 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13419 bigger return address pushed in large mode.
13421 2014-04-29 Nick Clifton <nickc@redhat.com>
13423 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13424 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13426 * config/m32r/m32r.c (init_reg_tables): Likewise.
13427 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13428 enum to hold the modes.
13430 2014-04-29 Richard Biener <rguenther@suse.de>
13432 * dominance.c (free_dominance_info): Add overload with
13433 function parameter.
13434 (dom_info_state): Likewise.
13435 (dom_info_available_p): Likewise.
13436 * basic-block.h (free_dominance_info, dom_info_state,
13437 dom_info_available_p): Declare overloads.
13438 * passes.c (execute_function_todo): Verify that verifiers
13439 don't change dominator info state. Drop dominator info
13440 for IPA pass invocations.
13441 * cgraph.c (release_function_body): Restore asserts that
13442 dominator information is released.
13444 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13446 * doc/invoke.texi: Fix typo.
13447 * tree-vrp.c: Fix typos.
13448 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13450 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13452 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13454 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13456 * config/aarch64/aarch64-builtins.c
13457 (aarch64_types_storestruct_lane_qualifiers): New.
13458 (TYPES_STORESTRUCT_LANE): Likewise.
13459 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13460 (st3_lane): Likewise.
13461 (st4_lane): Likewise.
13462 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13463 (vec_store_lanesci_lane<mode>): Likewise.
13464 (vec_store_lanesxi_lane<mode>): Likewise.
13465 (aarch64_st2_lane<VQ:mode>): Likewise.
13466 (aarch64_st3_lane<VQ:mode>): Likewise.
13467 (aarch64_st4_lane<VQ:mode>): Likewise.
13468 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13469 * config/aarch64/arm_neon.h
13470 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13471 use new macro arguments.
13472 (__ST3_LANE_FUNC): Likewise.
13473 (__ST4_LANE_FUNC): Likewise.
13474 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13475 (V_THREE_ELEM): Likewise.
13476 (V_FOUR_ELEM): Likewise.
13478 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13480 * doc/gimple.texi: Replace the description of the now-defunct
13481 union gimple_statement_d with a diagram showing the
13482 gimple_statement_base class hierarchy and its relationships to
13483 the GSS_ and GIMPLE_ enums.
13485 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13487 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13488 * config/aarch64/aarch64.c
13489 (aarch64_cannot_change_mode_class): Weaken conditions.
13490 (aarch64_modes_tieable_p): New.
13491 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13493 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13495 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13496 (loadsync_<mode>): Change mode.
13497 (load_quadpti, store_quadpti): New.
13498 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13499 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13501 2014-04-28 Martin Jambor <mjambor@suse.cz>
13503 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13504 same alias type as the original statement.
13505 (subreplacement_assignment_data): New type.
13506 (handle_unscalarized_data_in_subtree): New type of parameter,
13507 generate new memory accesses with same alias type as the original
13509 (load_assign_lhs_subreplacements): Likewise.
13510 (sra_modify_constructor_assign): Generate new memory accesses with
13511 same alias type as the original statement.
13513 2014-04-28 Richard Biener <rguenther@suse.de>
13515 * tree-pass.h (TODO_verify_il): Define.
13516 (TODO_verify_all): Complete properly.
13517 * passes.c (execute_function_todo): Move existing loop-closed
13518 SSA verification under TODO_verify_il.
13519 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13520 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13521 Fix tree sharing issue.
13523 2014-04-28 Richard Biener <rguenther@suse.de>
13525 PR middle-end/60092
13526 * builtins.def (DEF_C11_BUILTIN): Add.
13527 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13528 * coretypes.h (enum function_class): Add function_c11_misc.
13529 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13530 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13531 (call_may_clobber_ref_p_1): Likewise.
13532 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13533 (mark_all_reaching_defs_necessary_1): Likewise.
13534 (propagate_necessity): Likewise.
13535 (eliminate_unnecessary_stmts): Likewise.
13536 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13538 2014-04-28 Richard Biener <rguenther@suse.de>
13540 * tree-vrp.c (vrp_var_may_overflow): Remove.
13541 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13542 with overflow immediately bump to one before that value and
13543 let iteration figure out overflow status.
13545 2014-04-28 Richard Biener <rguenther@suse.de>
13547 * configure.ac: Do valgrind header checks unconditionally.
13548 Add --enable-valgrind-annotations.
13549 * system.h: Guard valgrind header inclusion with
13550 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13551 * alloc-pool.c (pool_alloc, pool_free): Use
13552 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13553 to guard possibly dead code.
13554 * config.in: Regenerated.
13555 * configure: Likewise.
13557 2014-04-28 Jeff Law <law@redhat.com>
13559 PR tree-optimization/60902
13560 * tree-ssa-threadedge.c
13561 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13562 over real defs when invalidating outputs from statements that do not
13563 produce useful outputs for threading.
13565 2014-04-28 Richard Biener <rguenther@suse.de>
13567 PR tree-optimization/60979
13568 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13569 SCOPs that end in a block with a successor with abnormal
13572 2014-04-28 Richard Biener <rguenther@suse.de>
13574 * tree-pass.h (execute_pass_list): Adjust prototype.
13575 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13576 (do_per_function): Change callback signature, push all actual
13577 work to the callbals.
13578 (do_per_function_toporder): Likewise.
13579 (execute_function_dump): Adjust.
13580 (execute_function_todo): Likewise.
13581 (clear_last_verified): Likewise.
13582 (verify_curr_properties): Likewise.
13583 (update_properties_after_pass): Likewise.
13584 (execute_pass_list_1): Split out from ...
13585 (execute_pass_list): ... here. Adjust.
13586 (execute_ipa_pass_list): Likewise.
13587 * cgraphunit.c (cgraph_add_new_function): Adjust.
13588 (analyze_function): Likewise.
13589 (expand_function): Likewise.
13590 * cgraph.c (release_function_body): Free dominance info
13591 here instead of asserting it was magically freed elsewhere.
13593 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13595 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13596 * configure: Regenerate.
13597 * config/sparc/sparc.opt (muser-mode): New option.
13598 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13600 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13601 * doc/invoke.texi (SPARC options): Document -muser-mode.
13603 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13605 * cselib.c (find_slot_memmode): Delete.
13606 (cselib_hasher): Change compare_type to a struct.
13607 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13609 (preserve_constants_and_equivs): Adjust for new compare_type.
13610 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13611 (wrap_constant): Delete.
13612 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13614 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13616 * doc/install.texi (Building with profile feedback): Remove
13619 2014-04-26 Tom de Vries <tom@codesourcery.com>
13621 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13624 2014-04-25 Cary Coutant <ccoutant@google.com>
13627 * dwarf2out.c (should_move_die_to_comdat): A type definition
13628 can contain a subprogram definition, but don't move it to a
13630 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13631 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13633 (clone_tree_hash): Rename to...
13634 (clone_tree_partial): ...this; change callers. Copy
13635 DW_TAG_subprogram DIEs as declarations.
13636 (copy_decls_walk): Don't copy children of a declaration into a
13639 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13642 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13645 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13647 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13648 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13650 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13653 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13655 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13657 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13659 PR tree-optimization/60930
13660 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13661 creating a multiply candidate by folding two constant
13662 multiplicands when the result overflows.
13664 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13666 PR tree-optimization/60960
13667 * tree-vect-generic.c (expand_vector_operation): Only call
13668 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13670 2014-04-25 Tom de Vries <tom@codesourcery.com>
13672 * expr.c (clobber_reg_mode): New function.
13673 * expr.h (clobber_reg): New function.
13675 2014-04-25 Tom de Vries <tom@codesourcery.com>
13677 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13680 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13681 Tom de Vries <tom@codesourcery.com>
13683 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13685 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13686 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13687 new argument to find_all_hard_reg_sets call.
13689 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13691 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13692 Use HOST_WIDE_INT_C for mask literal.
13693 (aarch_rev16_shleft_mask_imm_p): Likewise.
13695 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13698 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13700 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13702 PR preprocessor/56540
13703 * config/i386/i386-c.c (ix86_target_macros): Define
13704 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13706 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13708 * configure.ac (tga_func): Remove.
13709 (LIB_TLS_SPEC): Remove.
13710 * configure: Regenerate.
13711 * config.in: Regenerate.
13712 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13714 2014-04-25 Richard Biener <rguenther@suse.de>
13717 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13718 call stmt use/clobber sets during stmt walk instead of
13719 walking the possibly incomplete set of caller edges.
13721 2014-04-25 Richard Biener <rguenther@suse.de>
13724 * passes.c (apply_ipa_transforms): Inline into only caller ...
13725 (execute_one_pass): ... here. Properly bring in function
13726 bodies for nodes we want to apply IPA transforms to.
13728 2014-04-24 Cong Hou <congh@google.com>
13730 PR tree-optimization/60896
13731 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13732 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13733 (vect_mark_pattern_stmts): Set the def type of all statements in
13734 PATTERN_DEF_SEQ as vect_internal_def.
13736 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13738 * doc/extend.texi (PowerPC Built-in Functions): Document new
13739 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13740 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13742 * config/rs6000/predicates.md (const_0_to_3_operand): New
13743 predicate to match 0..3 integer constants.
13745 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13746 to support adding miscellaneous builtin functions.
13747 (BU_DFP_MISC_2): Likewise.
13748 (BU_P7_MISC_1): Likewise.
13749 (BU_P7_MISC_2): Likewise.
13750 (BU_P8V_MISC_3): Likewise.
13751 (BU_MISC_1): Likewise.
13752 (BU_MISC_2): Likewise.
13753 (DIVWE): Add extended divide builtin functions.
13754 (DIVWEO): Likewise.
13755 (DIVWEU): Likewise.
13756 (DIVWEUO): Likewise.
13758 (DIVDEO): Likewise.
13759 (DIVDEU): Likewise.
13760 (DIVDEUO): Likewise.
13761 (DXEX): Add decimal floating-point builtin functions.
13763 (DDEDPD): Likewise.
13764 (DDEDPDQ): Likewise.
13765 (DENBCD): Likewise.
13766 (DENBCDQ): Likewise.
13770 (DSCLIQ): Likewise.
13772 (DSCRIQ): Likewise.
13773 (CDTBCD): Add new BCD builtin functions.
13774 (CBCDTD): Likewise.
13775 (ADDG6S): Likewise.
13776 (BCDADD): Likewise.
13777 (BCDADD_LT): Likewise.
13778 (BCDADD_EQ): Likewise.
13779 (BCDADD_GT): Likewise.
13780 (BCDADD_OV): Likewise.
13781 (BCDSUB): Likewise.
13782 (BCDSUB_LT): Likewise.
13783 (BCDSUB_EQ): Likewise.
13784 (BCDSUB_GT): Likewise.
13785 (BCDSUB_OV): Likewise.
13786 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13787 (UNPACK_TD): Likewise.
13788 (PACK_TF): Likewise.
13789 (UNPACK_TF): Likewise.
13790 (UNPACK_TF_0): Likewise.
13791 (UNPACK_TF_1): Likewise.
13792 (PACK_V1TI): Likewise.
13793 (UNPACK_V1TI): Likewise.
13795 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13796 support for decimal floating point builtin functions.
13797 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13798 functions that take constant arguments.
13799 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13800 (rs6000_init_builtins): Setup long double, _Decimal64, and
13801 _Decimal128 types for new builtin functions.
13802 (builtin_function_type): Set the unsigned flags appropriately for
13803 the new builtin functions.
13804 (rs6000_opt_masks): Add support for decimal floating point builtin
13807 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13808 floating point builtin functions.
13809 (RS6000_BTM_COMMON): Likewise.
13810 (RS6000_BTI_long_double): Likewise.
13811 (RS6000_BTI_dfloat64): Likewise.
13812 (RS6000_BTI_dfloat128): Likewise.
13813 (long_double_type_internal_node): Likewise.
13814 (dfloat64_type_internal_node): Likewise.
13815 (dfloat128_type_internal_node): Likewise.
13817 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13818 2.07 bcd arithmetic instructions.
13819 (UNSPEC_BCDSUB): Likewise.
13820 (UNSPEC_BCD_OVERFLOW): Likewise.
13821 (UNSPEC_BCD_ADD_SUB): Likewise.
13822 (bcd_add_sub): Likewise.
13823 (BCD_TEST): Likewise.
13824 (bcd<bcd_add_sub>): Likewise.
13825 (bcd<bcd_add_sub>_test): Likewise.
13826 (bcd<bcd_add_sub>_test2): Likewise.
13827 (bcd<bcd_add_sub>_<code>): Likewise.
13828 (peephole2 for combined bcd ops): Likewise.
13830 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13831 decimal floating point builtin functions.
13832 (UNSPEC_DENBCD): Likewise.
13833 (UNSPEC_DXEX): Likewise.
13834 (UNSPEC_DIEX): Likewise.
13835 (UNSPEC_DSCLI): Likewise.
13836 (UNSPEC_DSCRI): Likewise.
13837 (D64_D128): Likewise.
13838 (dfp_suffix): Likewise.
13839 (dfp_ddedpd_<mode>): Likewise.
13840 (dfp_denbcd_<mode>): Likewise.
13841 (dfp_dxex_<mode>): Likewise.
13842 (dfp_diex_<mode>): Likewise.
13843 (dfp_dscli_<mode>): Likewise.
13844 (dfp_dscri_<mode>): Likewise.
13846 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13848 (UNSPEC_CDTBCD): Likewise.
13849 (UNSPEC_CBCDTD): Likewise.
13850 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13851 (UNSPEC_DIVEO): Likewise.
13852 (UNSPEC_DIVEU): Likewise.
13853 (UNSPEC_DIVEUO): Likewise.
13854 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13855 pack/unpack 128-bit types.
13856 (UNSPEC_PACK_128BIT): Likewise.
13857 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13858 (udiv<mode>3): Use idiv_ldiv mode attribute.
13859 (div<mode>3): Likewise.
13860 (addg6s): Add new BCD builtin functions.
13861 (cdtbcd): Likewise.
13862 (cbcdtd): Likewise.
13863 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13864 (div_extend): Likewise.
13865 (div<div_extend>_<mode>"): Likewise.
13866 (FP128_64): Add support for new builtin functions to pack/unpack
13868 (unpack<mode>): Likewise.
13869 (unpacktf_0): Likewise.
13870 (unpacktf_1): Likewise.
13871 (unpack<mode>_dm): Likewise.
13872 (unpack<mode>_nodm): Likewise.
13873 (pack<mode>): Likewise.
13874 (unpackv1ti): Likewise.
13875 (packv1ti): Likewise.
13877 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13879 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13882 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13884 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13885 * gimplify.c (omp_is_private): Change last argument's type to int.
13886 Only diagnose lastprivate if the simd argument is 1, only diagnose
13887 linear if the simd argument is 2.
13888 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13889 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13890 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13891 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13892 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13893 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13894 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13895 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13896 * tree-nested.c (convert_nonlocal_omp_clauses,
13897 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13899 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13902 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13905 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13907 * flag-types.h (enum ivar_visibility): Add.
13909 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13911 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13912 function * argument.
13914 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13916 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13918 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13919 Tom de Vries <tom@codesourcery.com>
13921 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13922 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13924 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13925 * emit-rtl.c (try_split): Same.
13927 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13928 Tom de Vries <tom@codesourcery.com>
13930 * common.opt (fuse-caller-save): New option.
13932 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13934 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13935 elements for big-endian.
13937 2014-04-24 Richard Biener <rguenther@suse.de>
13939 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13940 during TER and instead use the sepops interface for expanding
13941 non-GIMPLE_SINGLE_RHS.
13943 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13945 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
13946 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
13948 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13950 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
13951 assembler 64-bit option.
13952 * configure: Regenerate.
13954 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13956 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
13957 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
13958 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
13959 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
13960 (TARGET_CRYPTO): Take TARGET_SIMD into account.
13962 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13964 * config/aarch64/aarch64-builtins.c
13965 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
13966 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
13967 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
13968 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
13970 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
13971 (Vrevsuff): New mode attribute.
13973 2014-04-24 Terry Guo <terry.guo@arm.com>
13975 * config/arm/arm.h (machine_function): Define variable
13976 after_arm_reorg here.
13977 * config/arm/arm.c (after_arm_reorg): Remove the definition.
13978 (arm_split_constant): Update the way to access variable
13980 (arm_reorg): Ditto.
13981 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
13983 2014-04-23 Tom de Vries <tom@codesourcery.com>
13985 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
13987 2014-04-23 David Malcolm <dmalcolm@redhat.com>
13989 * is-a.h: Update comments to reflect the following changes to the
13990 "pointerness" of the API, making the template parameter match the
13991 return type, allowing use of is-a.h with typedefs of pointers.
13992 (is_a_helper::cast): Return a T rather then a pointer to a T, so
13993 that the return type matches the parameter to the is_a_helper.
13995 (dyn_cast): Likewise.
13997 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
13998 pointer from the is-a.h API.
14000 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14001 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14003 (is_a_helper <varpool_node>::test): Likewise, convert to...
14004 (is_a_helper <varpool_node *>::test): ...this.
14006 (varpool_first_variable): Update for removal of implicit pointer
14007 from the is-a.h API.
14008 (varpool_next_variable): Likewise.
14009 (varpool_first_static_initializer): Likewise.
14010 (varpool_next_static_initializer): Likewise.
14011 (varpool_first_defined_variable): Likewise.
14012 (varpool_next_defined_variable): Likewise.
14013 (cgraph_first_defined_function): Likewise.
14014 (cgraph_next_defined_function): Likewise.
14015 (cgraph_first_function): Likewise.
14016 (cgraph_next_function): Likewise.
14017 (cgraph_first_function_with_gimple_body): Likewise.
14018 (cgraph_next_function_with_gimple_body): Likewise.
14019 (cgraph_alias_target): Likewise.
14020 (varpool_alias_target): Likewise.
14021 (cgraph_function_or_thunk_node): Likewise.
14022 (varpool_variable_node): Likewise.
14023 (symtab_real_symbol_p): Likewise.
14024 * cgraphunit.c (referred_to_p): Likewise.
14025 (analyze_functions): Likewise.
14026 (handle_alias_pairs): Likewise.
14027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14028 * gimple-ssa.h (gimple_vuse_op): Likewise.
14029 (gimple_vdef_op): Likewise.
14030 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14031 * gimple.c (gimple_build_asm_1): Likewise.
14032 (gimple_build_try): Likewise.
14033 (gimple_build_resx): Likewise.
14034 (gimple_build_eh_dispatch): Likewise.
14035 (gimple_build_omp_for): Likewise.
14036 (gimple_omp_for_set_clauses): Likewise.
14038 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14039 (is_a_helper <gimple_statement_asm *>::test): ...this.
14040 (is_a_helper <gimple_statement_bind>::test): Convert to...
14041 (is_a_helper <gimple_statement_bind *>::test): ...this.
14042 (is_a_helper <gimple_statement_call>::test): Convert to...
14043 (is_a_helper <gimple_statement_call *>::test): ...this.
14044 (is_a_helper <gimple_statement_catch>::test): Convert to...
14045 (is_a_helper <gimple_statement_catch *>::test): ...this.
14046 (is_a_helper <gimple_statement_resx>::test): Convert to...
14047 (is_a_helper <gimple_statement_resx *>::test): ...this.
14048 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14049 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14050 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14051 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14052 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14053 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14054 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14055 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14056 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14057 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14058 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14059 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14060 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14061 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14062 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14063 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14064 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14065 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14066 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14067 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14068 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14069 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14070 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14071 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14072 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14073 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14074 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14075 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14076 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14077 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14078 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14079 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14080 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14081 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14082 (is_a_helper <gimple_statement_phi>::test): Convert to...
14083 (is_a_helper <gimple_statement_phi *>::test): ...this.
14084 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14085 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14086 (is_a_helper <gimple_statement_try>::test): Convert to...
14087 (is_a_helper <gimple_statement_try *>::test): ...this.
14088 (is_a_helper <gimple_statement_wce>::test): Convert to...
14089 (is_a_helper <gimple_statement_wce *>::test): ...this.
14090 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14091 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14092 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14093 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14094 (is_a_helper <const gimple_statement_call>::test): Convert to...
14095 (is_a_helper <const gimple_statement_call *>::test): ...this.
14096 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14097 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14098 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14099 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14100 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14101 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14102 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14103 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14104 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14106 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14108 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14110 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14112 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14113 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14114 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14116 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14117 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14119 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14120 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14121 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14122 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14123 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14124 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14126 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14127 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14128 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14129 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14131 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14132 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14133 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14134 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14135 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14136 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14137 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14138 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14139 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14140 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14141 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14142 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14143 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14144 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14145 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14146 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14148 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14150 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14151 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14153 (gimple_use_ops): Update for removal of implicit pointer from the
14155 (gimple_set_use_ops): Likewise.
14156 (gimple_vuse): Likewise.
14157 (gimple_vdef): Likewise.
14158 (gimple_vuse_ptr): Likewise.
14159 (gimple_vdef_ptr): Likewise.
14160 (gimple_set_vuse): Likewise.
14161 (gimple_set_vdef): Likewise.
14162 (gimple_omp_return_set_lhs): Likewise.
14163 (gimple_omp_return_lhs): Likewise.
14164 (gimple_omp_return_lhs_ptr): Likewise.
14165 (gimple_call_fntype): Likewise.
14166 (gimple_call_set_fntype): Likewise.
14167 (gimple_call_set_internal_fn): Likewise.
14168 (gimple_call_use_set): Likewise.
14169 (gimple_call_clobber_set): Likewise.
14170 (gimple_bind_vars): Likewise.
14171 (gimple_bind_set_vars): Likewise.
14172 (gimple_bind_body_ptr): Likewise.
14173 (gimple_bind_set_body): Likewise.
14174 (gimple_bind_add_stmt): Likewise.
14175 (gimple_bind_block): Likewise.
14176 (gimple_bind_set_block): Likewise.
14177 (gimple_asm_ninputs): Likewise.
14178 (gimple_asm_noutputs): Likewise.
14179 (gimple_asm_nclobbers): Likewise.
14180 (gimple_asm_nlabels): Likewise.
14181 (gimple_asm_input_op): Likewise.
14182 (gimple_asm_input_op_ptr): Likewise.
14183 (gimple_asm_output_op): Likewise.
14184 (gimple_asm_output_op_ptr): Likewise.
14185 (gimple_asm_set_output_op): Likewise.
14186 (gimple_asm_clobber_op): Likewise.
14187 (gimple_asm_set_clobber_op): Likewise.
14188 (gimple_asm_label_op): Likewise.
14189 (gimple_asm_set_label_op): Likewise.
14190 (gimple_asm_string): Likewise.
14191 (gimple_catch_types): Likewise.
14192 (gimple_catch_types_ptr): Likewise.
14193 (gimple_catch_handler_ptr): Likewise.
14194 (gimple_catch_set_types): Likewise.
14195 (gimple_catch_set_handler): Likewise.
14196 (gimple_eh_filter_types): Likewise.
14197 (gimple_eh_filter_types_ptr): Likewise.
14198 (gimple_eh_filter_failure_ptr): Likewise.
14199 (gimple_eh_filter_set_types): Likewise.
14200 (gimple_eh_filter_set_failure): Likewise.
14201 (gimple_eh_must_not_throw_fndecl): Likewise.
14202 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14203 (gimple_eh_else_n_body_ptr): Likewise.
14204 (gimple_eh_else_e_body_ptr): Likewise.
14205 (gimple_eh_else_set_n_body): Likewise.
14206 (gimple_eh_else_set_e_body): Likewise.
14207 (gimple_try_eval_ptr): Likewise.
14208 (gimple_try_cleanup_ptr): Likewise.
14209 (gimple_try_set_eval): Likewise.
14210 (gimple_try_set_cleanup): Likewise.
14211 (gimple_wce_cleanup_ptr): Likewise.
14212 (gimple_wce_set_cleanup): Likewise.
14213 (gimple_phi_capacity): Likewise.
14214 (gimple_phi_num_args): Likewise.
14215 (gimple_phi_result): Likewise.
14216 (gimple_phi_result_ptr): Likewise.
14217 (gimple_phi_set_result): Likewise.
14218 (gimple_phi_arg): Likewise.
14219 (gimple_phi_set_arg): Likewise.
14220 (gimple_resx_region): Likewise.
14221 (gimple_resx_set_region): Likewise.
14222 (gimple_eh_dispatch_region): Likewise.
14223 (gimple_eh_dispatch_set_region): Likewise.
14224 (gimple_omp_critical_name): Likewise.
14225 (gimple_omp_critical_name_ptr): Likewise.
14226 (gimple_omp_critical_set_name): Likewise.
14227 (gimple_omp_for_clauses): Likewise.
14228 (gimple_omp_for_clauses_ptr): Likewise.
14229 (gimple_omp_for_set_clauses): Likewise.
14230 (gimple_omp_for_collapse): Likewise.
14231 (gimple_omp_for_index): Likewise.
14232 (gimple_omp_for_index_ptr): Likewise.
14233 (gimple_omp_for_set_index): Likewise.
14234 (gimple_omp_for_initial): Likewise.
14235 (gimple_omp_for_initial_ptr): Likewise.
14236 (gimple_omp_for_set_initial): Likewise.
14237 (gimple_omp_for_final): Likewise.
14238 (gimple_omp_for_final_ptr): Likewise.
14239 (gimple_omp_for_set_final): Likewise.
14240 (gimple_omp_for_incr): Likewise.
14241 (gimple_omp_for_incr_ptr): Likewise.
14242 (gimple_omp_for_set_incr): Likewise.
14243 (gimple_omp_for_pre_body_ptr): Likewise.
14244 (gimple_omp_for_set_pre_body): Likewise.
14245 (gimple_omp_parallel_clauses): Likewise.
14246 (gimple_omp_parallel_clauses_ptr): Likewise.
14247 (gimple_omp_parallel_set_clauses): Likewise.
14248 (gimple_omp_parallel_child_fn): Likewise.
14249 (gimple_omp_parallel_child_fn_ptr): Likewise.
14250 (gimple_omp_parallel_set_child_fn): Likewise.
14251 (gimple_omp_parallel_data_arg): Likewise.
14252 (gimple_omp_parallel_data_arg_ptr): Likewise.
14253 (gimple_omp_parallel_set_data_arg): Likewise.
14254 (gimple_omp_task_clauses): Likewise.
14255 (gimple_omp_task_clauses_ptr): Likewise.
14256 (gimple_omp_task_set_clauses): Likewise.
14257 (gimple_omp_task_child_fn): Likewise.
14258 (gimple_omp_task_child_fn_ptr): Likewise.
14259 (gimple_omp_task_set_child_fn): Likewise.
14260 (gimple_omp_task_data_arg): Likewise.
14261 (gimple_omp_task_data_arg_ptr): Likewise.
14262 (gimple_omp_task_set_data_arg): Likewise.
14263 (gimple_omp_taskreg_clauses): Likewise.
14264 (gimple_omp_taskreg_clauses_ptr): Likewise.
14265 (gimple_omp_taskreg_set_clauses): Likewise.
14266 (gimple_omp_taskreg_child_fn): Likewise.
14267 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14268 (gimple_omp_taskreg_set_child_fn): Likewise.
14269 (gimple_omp_taskreg_data_arg): Likewise.
14270 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14271 (gimple_omp_taskreg_set_data_arg): Likewise.
14272 (gimple_omp_task_copy_fn): Likewise.
14273 (gimple_omp_task_copy_fn_ptr): Likewise.
14274 (gimple_omp_task_set_copy_fn): Likewise.
14275 (gimple_omp_task_arg_size): Likewise.
14276 (gimple_omp_task_arg_size_ptr): Likewise.
14277 (gimple_omp_task_set_arg_size): Likewise.
14278 (gimple_omp_task_arg_align): Likewise.
14279 (gimple_omp_task_arg_align_ptr): Likewise.
14280 (gimple_omp_task_set_arg_align): Likewise.
14281 (gimple_omp_single_clauses): Likewise.
14282 (gimple_omp_single_clauses_ptr): Likewise.
14283 (gimple_omp_single_set_clauses): Likewise.
14284 (gimple_omp_target_clauses): Likewise.
14285 (gimple_omp_target_clauses_ptr): Likewise.
14286 (gimple_omp_target_set_clauses): Likewise.
14287 (gimple_omp_target_child_fn): Likewise.
14288 (gimple_omp_target_child_fn_ptr): Likewise.
14289 (gimple_omp_target_set_child_fn): Likewise.
14290 (gimple_omp_target_data_arg): Likewise.
14291 (gimple_omp_target_data_arg_ptr): Likewise.
14292 (gimple_omp_target_set_data_arg): Likewise.
14293 (gimple_omp_teams_clauses): Likewise.
14294 (gimple_omp_teams_clauses_ptr): Likewise.
14295 (gimple_omp_teams_set_clauses): Likewise.
14296 (gimple_omp_sections_clauses): Likewise.
14297 (gimple_omp_sections_clauses_ptr): Likewise.
14298 (gimple_omp_sections_set_clauses): Likewise.
14299 (gimple_omp_sections_control): Likewise.
14300 (gimple_omp_sections_control_ptr): Likewise.
14301 (gimple_omp_sections_set_control): Likewise.
14302 (gimple_omp_for_set_cond): Likewise.
14303 (gimple_omp_for_cond): Likewise.
14304 (gimple_omp_atomic_store_set_val): Likewise.
14305 (gimple_omp_atomic_store_val): Likewise.
14306 (gimple_omp_atomic_store_val_ptr): Likewise.
14307 (gimple_omp_atomic_load_set_lhs): Likewise.
14308 (gimple_omp_atomic_load_lhs): Likewise.
14309 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14310 (gimple_omp_atomic_load_set_rhs): Likewise.
14311 (gimple_omp_atomic_load_rhs): Likewise.
14312 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14313 (gimple_omp_continue_control_def): Likewise.
14314 (gimple_omp_continue_control_def_ptr): Likewise.
14315 (gimple_omp_continue_set_control_def): Likewise.
14316 (gimple_omp_continue_control_use): Likewise.
14317 (gimple_omp_continue_control_use_ptr): Likewise.
14318 (gimple_omp_continue_set_control_use): Likewise.
14319 (gimple_transaction_body_ptr): Likewise.
14320 (gimple_transaction_label): Likewise.
14321 (gimple_transaction_label_ptr): Likewise.
14322 (gimple_transaction_set_body): Likewise.
14323 (gimple_transaction_set_label): Likewise.
14325 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14326 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14327 * ipa-ref.c (ipa_record_reference): Likewise.
14328 * ipa-reference.c (analyze_function): Likewise.
14329 (ipa_reference_write_optimization_summary): Likewise.
14330 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14331 (address_taken_from_non_vtable_p): Likewise.
14332 (comdat_can_be_unshared_p_1): Likewise.
14333 * lto-cgraph.c (lto_output_ref): Likewise.
14334 (add_references): Likewise.
14335 (compute_ltrans_boundary): Likewise.
14336 (output_symtab): Likewise.
14337 (input_ref): Likewise.
14338 (input_cgraph_1): Likewise.
14339 (output_cgraph_opt_summary): Likewise.
14340 * lto-streamer-out.c (lto_output): Likewise.
14341 (output_symbol_p): Likewise.
14342 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14343 (lsei_start_function_in_partition): Likewise.
14344 (lsei_next_variable_in_partition): Likewise.
14345 (lsei_start_variable_in_partition): Likewise.
14346 * symtab.c (insert_to_assembler_name_hash): Likewise.
14347 (unlink_from_assembler_name_hash): Likewise.
14348 (symtab_unregister_node): Likewise.
14349 (symtab_remove_node): Likewise.
14350 (dump_symtab_node): Likewise.
14351 (verify_symtab_base): Likewise.
14352 (verify_symtab_node): Likewise.
14353 (symtab_make_decl_local): Likewise.
14354 (symtab_alias_ultimate_target): Likewise.
14355 (symtab_resolve_alias): Likewise.
14356 (symtab_get_symbol_partitioning_class): Likewise.
14357 * tree-phinodes.c (allocate_phi_node): Likewise.
14358 (reserve_phi_args_for_new_edge): Likewise.
14359 (remove_phi_args): Likewise.
14360 * varpool.c (varpool_node_for_asm): Likewise.
14361 (varpool_remove_unreferenced_decls): Likewise.
14363 2014-04-23 Jeff Law <law@redhat.com>
14365 PR tree-optimization/60902
14366 * tree-ssa-threadedge.c
14367 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14368 invalidate outputs from statements that do not produce useful
14369 outputs for threading.
14371 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14373 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14374 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14375 machine descriptions for Stack Smashing Protector.
14377 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14379 * aarch64.md (<optab>_rol<mode>3): New pattern.
14380 (<optab>_rolsi3_uxtw): Likewise.
14381 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14383 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14385 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14386 (arm_cortex_a12_tune): Likewise.
14388 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14390 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14392 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14394 * config/arm/arm.md (arm_rev16si2): New pattern.
14395 (arm_rev16si2_alt): Likewise.
14396 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14398 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14400 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14401 (rev16<mode>2_alt): Likewise.
14402 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14403 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14404 (aarch_rev16_shleft_mask_imm_p): Likewise.
14405 (aarch_rev16_p_1): Likewise.
14406 (aarch_rev16_p): Likewise.
14407 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14408 (aarch_rev16_shright_mask_imm_p): Likewise.
14409 (aarch_rev16_shleft_mask_imm_p): Likewise.
14411 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14413 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14414 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14416 (cortex_a53_extra_costs): Likewise.
14417 (cortex_a57_extra_costs): Likewise.
14418 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14419 (cortexa7_extra_costs): Likewise.
14420 (cortexa8_extra_costs): Likewise.
14421 (cortexa12_extra_costs): Likewise.
14422 (cortexa15_extra_costs): Likewise.
14423 (v7m_extra_costs): Likewise.
14424 (arm_new_rtx_costs): Handle BSWAP.
14426 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14428 * config/arm/arm.c (cortexa8_extra_costs): New table.
14429 (arm_cortex_a8_tune): New tuning struct.
14430 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14432 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14434 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14436 2014-04-23 Richard Biener <rguenther@suse.de>
14438 * Makefile.in (OBJS): Remove loop-unswitch.o.
14439 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14440 * passes.def (pass_rtl_unswitch): Likewise.
14441 * loop-init.c (gate_rtl_unswitch): Likewise.
14442 (rtl_unswitch): Likewise.
14443 (pass_data_rtl_unswitch): Likewise.
14444 (pass_rtl_unswitch): Likewise.
14445 (make_pass_rtl_unswitch): Likewise.
14446 * rtl.h (reversed_condition): Likewise.
14447 (compare_and_jump_seq): Likewise.
14448 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14450 * loop-unroll.c (compare_and_jump_seq): Likewise.
14452 2014-04-23 Richard Biener <rguenther@suse.de>
14454 PR tree-optimization/60903
14455 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14456 commented code block.
14457 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14458 loop flags to newly created BBs and edges.
14460 2014-04-23 Nick Clifton <nickc@redhat.com>
14462 * config/msp430/msp430.c (msp430_handle_option): Move function
14464 (msp430_option_override): Simplify mcu and mcpu option handling.
14465 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14466 support for -mhwmult command line option.
14467 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14468 -mhwmult command line option.
14469 (msp430_hwmult_enabled): Delete.
14470 (msp43o_output_labelref): Add support for -mhwmult command line option.
14471 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14472 (umulsidi3): Likewise.
14473 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14474 (mcpu, mlarge, msmall): Likewise.
14475 (mhwmult): New option.
14476 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14478 (msp430_is_f5_mcu): Remove prototype.
14479 (msp430_use_f5_series_hwmult): Add prototype.
14480 * config/msp430/msp430-opts.h: New file.
14481 * common/config/msp430: New directory.
14482 * common/config/msp430/msp430-common.c: New file.
14483 * config.gcc (msp430): Remove target_has_targetm_common.
14484 * doc/invoke.texi: Document -mhwmult command line option.
14486 2014-04-23 Nick Clifton <nickc@redhat.com>
14488 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14489 default-manifest.o if it can be found in the search path.
14490 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14492 2014-04-23 Terry Guo <terry.guo@arm.com>
14494 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14496 2014-04-23 Richard Biener <rguenther@suse.de>
14498 PR middle-end/60895
14499 * tree-inline.c (declare_return_variable): Use mark_addressable.
14501 2014-04-23 Richard Biener <rguenther@suse.de>
14503 PR middle-end/60891
14504 * loop-init.c (loop_optimizer_init): Make sure to apply
14505 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14507 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14510 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14512 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14513 if flag_sanitize_undefined_trap_on_error.
14514 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14515 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14516 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14517 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14518 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14519 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14520 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14521 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14522 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14523 * ubsan.c (ubsan_instrument_unreachable): Return
14524 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14525 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14526 if flag_sanitize_undefined_trap_on_error and
14527 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14528 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14529 instrument_bool_enum_load): Emit __builtin_trap () if
14530 flag_sanitize_undefined_trap_on_error and
14531 __builtin_handle_*_abort () if !flag_sanitize_recover.
14532 * doc/invoke.texi (-fsanitize-recover,
14533 -fsanitize-undefined-trap-on-error): Document.
14535 2014-04-22 Christian Bruel <christian.bruel@st.com>
14537 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14538 Force immediates to SImode.
14540 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14542 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14543 (lroundsfsi2): New.
14544 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14545 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14546 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14547 (nios2_fpu_insn): Add entry for round.
14548 (N2FPU_NO_ERRNO_P): Define.
14549 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14551 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14553 2014-04-22 Richard Henderson <rth@redhat.com>
14555 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14556 (add<GPI>3_compare0): Remove leading * from name.
14557 (add<GPI>3_carryin): Likewise.
14558 (sub<GPI>3_compare0): Likewise.
14559 (sub<GPI>3_carryin): Likewise.
14560 (<su_optab>mulditi3): New expander.
14561 (multi3): New expander.
14562 (madd<GPI>): Remove leading * from name.
14564 2014-04-22 Martin Jambor <mjambor@suse.cz>
14566 * cgraphclones.c (cgraph_function_versioning): Copy
14567 ipa_transforms_to_apply instead of asserting it is empty.
14569 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14572 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14573 on count_exp to get mode.
14575 2014-04-22 Andrew Pinski <apinski@cavium.com>
14577 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14578 Handle TLS for ILP32.
14579 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14580 (tlsie_small_<mode>): this and handle PTR.
14581 (tlsie_small_sidi): New pattern.
14582 (tlsle_small): Change to an expand to handle ILP32.
14583 (tlsle_small_<mode>): New pattern.
14584 (tlsdesc_small): Rename to ...
14585 (tlsdesc_small_<mode>): this and handle PTR.
14587 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14589 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14591 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14593 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14594 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14595 (aarch64_types_signed_poly_qualifiers): Likewise.
14596 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14597 (aarch64_types_poly_signed_qualifiers): Likewise.
14598 (TYPES_REINTERP_SS): Type macro added.
14599 (TYPES_REINTERP_SU): Likewise.
14600 (TYPES_REINTERP_SP): Likewise.
14601 (TYPES_REINTERP_US): Likewise.
14602 (TYPES_REINTERP_PS): Likewise.
14603 (aarch64_fold_builtin): New expression folding added.
14604 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14605 Declarations removed.
14606 (REINTERP_SS): Declarations added.
14607 (REINTERP_US): Likewise.
14608 (REINTERP_PS): Likewise.
14609 (REINTERP_SU): Likewise.
14610 (REINTERP_SP): Likewise.
14611 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14612 (vreinterpretq_p8_f64): Likewise.
14613 (vreinterpret_p16_f64): Likewise.
14614 (vreinterpretq_p16_f64): Likewise.
14615 (vreinterpret_f32_f64): Likewise.
14616 (vreinterpretq_f32_f64): Likewise.
14617 (vreinterpret_f64_f32): Likewise.
14618 (vreinterpret_f64_p8): Likewise.
14619 (vreinterpret_f64_p16): Likewise.
14620 (vreinterpret_f64_s8): Likewise.
14621 (vreinterpret_f64_s16): Likewise.
14622 (vreinterpret_f64_s32): Likewise.
14623 (vreinterpret_f64_s64): Likewise.
14624 (vreinterpret_f64_u8): Likewise.
14625 (vreinterpret_f64_u16): Likewise.
14626 (vreinterpret_f64_u32): Likewise.
14627 (vreinterpret_f64_u64): Likewise.
14628 (vreinterpretq_f64_f32): Likewise.
14629 (vreinterpretq_f64_p8): Likewise.
14630 (vreinterpretq_f64_p16): Likewise.
14631 (vreinterpretq_f64_s8): Likewise.
14632 (vreinterpretq_f64_s16): Likewise.
14633 (vreinterpretq_f64_s32): Likewise.
14634 (vreinterpretq_f64_s64): Likewise.
14635 (vreinterpretq_f64_u8): Likewise.
14636 (vreinterpretq_f64_u16): Likewise.
14637 (vreinterpretq_f64_u32): Likewise.
14638 (vreinterpretq_f64_u64): Likewise.
14639 (vreinterpret_s64_f64): Likewise.
14640 (vreinterpretq_s64_f64): Likewise.
14641 (vreinterpret_u64_f64): Likewise.
14642 (vreinterpretq_u64_f64): Likewise.
14643 (vreinterpret_s8_f64): Likewise.
14644 (vreinterpretq_s8_f64): Likewise.
14645 (vreinterpret_s16_f64): Likewise.
14646 (vreinterpretq_s16_f64): Likewise.
14647 (vreinterpret_s32_f64): Likewise.
14648 (vreinterpretq_s32_f64): Likewise.
14649 (vreinterpret_u8_f64): Likewise.
14650 (vreinterpretq_u8_f64): Likewise.
14651 (vreinterpret_u16_f64): Likewise.
14652 (vreinterpretq_u16_f64): Likewise.
14653 (vreinterpret_u32_f64): Likewise.
14654 (vreinterpretq_u32_f64): Likewise.
14656 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14658 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14659 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14660 (vreinterpret_p8_s8): Likewise.
14661 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14662 (vreinterpret_p8_s16): Likewise.
14663 (vreinterpret_p8_s32): Likewise.
14664 (vreinterpret_p8_s64): Likewise.
14665 (vreinterpret_p8_f32): Likewise.
14666 (vreinterpret_p8_u8): Likewise.
14667 (vreinterpret_p8_u16): Likewise.
14668 (vreinterpret_p8_u32): Likewise.
14669 (vreinterpret_p8_u64): Likewise.
14670 (vreinterpret_p8_p16): Likewise.
14671 (vreinterpretq_p8_s8): Likewise.
14672 (vreinterpretq_p8_s16): Likewise.
14673 (vreinterpretq_p8_s32): Likewise.
14674 (vreinterpretq_p8_s64): Likewise.
14675 (vreinterpretq_p8_f32): Likewise.
14676 (vreinterpretq_p8_u8): Likewise.
14677 (vreinterpretq_p8_u16): Likewise.
14678 (vreinterpretq_p8_u32): Likewise.
14679 (vreinterpretq_p8_u64): Likewise.
14680 (vreinterpretq_p8_p16): Likewise.
14681 (vreinterpret_p16_s8): Likewise.
14682 (vreinterpret_p16_s16): Likewise.
14683 (vreinterpret_p16_s32): Likewise.
14684 (vreinterpret_p16_s64): Likewise.
14685 (vreinterpret_p16_f32): Likewise.
14686 (vreinterpret_p16_u8): Likewise.
14687 (vreinterpret_p16_u16): Likewise.
14688 (vreinterpret_p16_u32): Likewise.
14689 (vreinterpret_p16_u64): Likewise.
14690 (vreinterpret_p16_p8): Likewise.
14691 (vreinterpretq_p16_s8): Likewise.
14692 (vreinterpretq_p16_s16): Likewise.
14693 (vreinterpretq_p16_s32): Likewise.
14694 (vreinterpretq_p16_s64): Likewise.
14695 (vreinterpretq_p16_f32): Likewise.
14696 (vreinterpretq_p16_u8): Likewise.
14697 (vreinterpretq_p16_u16): Likewise.
14698 (vreinterpretq_p16_u32): Likewise.
14699 (vreinterpretq_p16_u64): Likewise.
14700 (vreinterpretq_p16_p8): Likewise.
14701 (vreinterpret_f32_s8): Likewise.
14702 (vreinterpret_f32_s16): Likewise.
14703 (vreinterpret_f32_s32): Likewise.
14704 (vreinterpret_f32_s64): Likewise.
14705 (vreinterpret_f32_u8): Likewise.
14706 (vreinterpret_f32_u16): Likewise.
14707 (vreinterpret_f32_u32): Likewise.
14708 (vreinterpret_f32_u64): Likewise.
14709 (vreinterpret_f32_p8): Likewise.
14710 (vreinterpret_f32_p16): Likewise.
14711 (vreinterpretq_f32_s8): Likewise.
14712 (vreinterpretq_f32_s16): Likewise.
14713 (vreinterpretq_f32_s32): Likewise.
14714 (vreinterpretq_f32_s64): Likewise.
14715 (vreinterpretq_f32_u8): Likewise.
14716 (vreinterpretq_f32_u16): Likewise.
14717 (vreinterpretq_f32_u32): Likewise.
14718 (vreinterpretq_f32_u64): Likewise.
14719 (vreinterpretq_f32_p8): Likewise.
14720 (vreinterpretq_f32_p16): Likewise.
14721 (vreinterpret_s64_s8): Likewise.
14722 (vreinterpret_s64_s16): Likewise.
14723 (vreinterpret_s64_s32): Likewise.
14724 (vreinterpret_s64_f32): Likewise.
14725 (vreinterpret_s64_u8): Likewise.
14726 (vreinterpret_s64_u16): Likewise.
14727 (vreinterpret_s64_u32): Likewise.
14728 (vreinterpret_s64_u64): Likewise.
14729 (vreinterpret_s64_p8): Likewise.
14730 (vreinterpret_s64_p16): Likewise.
14731 (vreinterpretq_s64_s8): Likewise.
14732 (vreinterpretq_s64_s16): Likewise.
14733 (vreinterpretq_s64_s32): Likewise.
14734 (vreinterpretq_s64_f32): Likewise.
14735 (vreinterpretq_s64_u8): Likewise.
14736 (vreinterpretq_s64_u16): Likewise.
14737 (vreinterpretq_s64_u32): Likewise.
14738 (vreinterpretq_s64_u64): Likewise.
14739 (vreinterpretq_s64_p8): Likewise.
14740 (vreinterpretq_s64_p16): Likewise.
14741 (vreinterpret_u64_s8): Likewise.
14742 (vreinterpret_u64_s16): Likewise.
14743 (vreinterpret_u64_s32): Likewise.
14744 (vreinterpret_u64_s64): Likewise.
14745 (vreinterpret_u64_f32): Likewise.
14746 (vreinterpret_u64_u8): Likewise.
14747 (vreinterpret_u64_u16): Likewise.
14748 (vreinterpret_u64_u32): Likewise.
14749 (vreinterpret_u64_p8): Likewise.
14750 (vreinterpret_u64_p16): Likewise.
14751 (vreinterpretq_u64_s8): Likewise.
14752 (vreinterpretq_u64_s16): Likewise.
14753 (vreinterpretq_u64_s32): Likewise.
14754 (vreinterpretq_u64_s64): Likewise.
14755 (vreinterpretq_u64_f32): Likewise.
14756 (vreinterpretq_u64_u8): Likewise.
14757 (vreinterpretq_u64_u16): Likewise.
14758 (vreinterpretq_u64_u32): Likewise.
14759 (vreinterpretq_u64_p8): Likewise.
14760 (vreinterpretq_u64_p16): Likewise.
14761 (vreinterpret_s8_s16): Likewise.
14762 (vreinterpret_s8_s32): Likewise.
14763 (vreinterpret_s8_s64): Likewise.
14764 (vreinterpret_s8_f32): Likewise.
14765 (vreinterpret_s8_u8): Likewise.
14766 (vreinterpret_s8_u16): Likewise.
14767 (vreinterpret_s8_u32): Likewise.
14768 (vreinterpret_s8_u64): Likewise.
14769 (vreinterpret_s8_p8): Likewise.
14770 (vreinterpret_s8_p16): Likewise.
14771 (vreinterpretq_s8_s16): Likewise.
14772 (vreinterpretq_s8_s32): Likewise.
14773 (vreinterpretq_s8_s64): Likewise.
14774 (vreinterpretq_s8_f32): Likewise.
14775 (vreinterpretq_s8_u8): Likewise.
14776 (vreinterpretq_s8_u16): Likewise.
14777 (vreinterpretq_s8_u32): Likewise.
14778 (vreinterpretq_s8_u64): Likewise.
14779 (vreinterpretq_s8_p8): Likewise.
14780 (vreinterpretq_s8_p16): Likewise.
14781 (vreinterpret_s16_s8): Likewise.
14782 (vreinterpret_s16_s32): Likewise.
14783 (vreinterpret_s16_s64): Likewise.
14784 (vreinterpret_s16_f32): Likewise.
14785 (vreinterpret_s16_u8): Likewise.
14786 (vreinterpret_s16_u16): Likewise.
14787 (vreinterpret_s16_u32): Likewise.
14788 (vreinterpret_s16_u64): Likewise.
14789 (vreinterpret_s16_p8): Likewise.
14790 (vreinterpret_s16_p16): Likewise.
14791 (vreinterpretq_s16_s8): Likewise.
14792 (vreinterpretq_s16_s32): Likewise.
14793 (vreinterpretq_s16_s64): Likewise.
14794 (vreinterpretq_s16_f32): Likewise.
14795 (vreinterpretq_s16_u8): Likewise.
14796 (vreinterpretq_s16_u16): Likewise.
14797 (vreinterpretq_s16_u32): Likewise.
14798 (vreinterpretq_s16_u64): Likewise.
14799 (vreinterpretq_s16_p8): Likewise.
14800 (vreinterpretq_s16_p16): Likewise.
14801 (vreinterpret_s32_s8): Likewise.
14802 (vreinterpret_s32_s16): Likewise.
14803 (vreinterpret_s32_s64): Likewise.
14804 (vreinterpret_s32_f32): Likewise.
14805 (vreinterpret_s32_u8): Likewise.
14806 (vreinterpret_s32_u16): Likewise.
14807 (vreinterpret_s32_u32): Likewise.
14808 (vreinterpret_s32_u64): Likewise.
14809 (vreinterpret_s32_p8): Likewise.
14810 (vreinterpret_s32_p16): Likewise.
14811 (vreinterpretq_s32_s8): Likewise.
14812 (vreinterpretq_s32_s16): Likewise.
14813 (vreinterpretq_s32_s64): Likewise.
14814 (vreinterpretq_s32_f32): Likewise.
14815 (vreinterpretq_s32_u8): Likewise.
14816 (vreinterpretq_s32_u16): Likewise.
14817 (vreinterpretq_s32_u32): Likewise.
14818 (vreinterpretq_s32_u64): Likewise.
14819 (vreinterpretq_s32_p8): Likewise.
14820 (vreinterpretq_s32_p16): Likewise.
14821 (vreinterpret_u8_s8): Likewise.
14822 (vreinterpret_u8_s16): Likewise.
14823 (vreinterpret_u8_s32): Likewise.
14824 (vreinterpret_u8_s64): Likewise.
14825 (vreinterpret_u8_f32): Likewise.
14826 (vreinterpret_u8_u16): Likewise.
14827 (vreinterpret_u8_u32): Likewise.
14828 (vreinterpret_u8_u64): Likewise.
14829 (vreinterpret_u8_p8): Likewise.
14830 (vreinterpret_u8_p16): Likewise.
14831 (vreinterpretq_u8_s8): Likewise.
14832 (vreinterpretq_u8_s16): Likewise.
14833 (vreinterpretq_u8_s32): Likewise.
14834 (vreinterpretq_u8_s64): Likewise.
14835 (vreinterpretq_u8_f32): Likewise.
14836 (vreinterpretq_u8_u16): Likewise.
14837 (vreinterpretq_u8_u32): Likewise.
14838 (vreinterpretq_u8_u64): Likewise.
14839 (vreinterpretq_u8_p8): Likewise.
14840 (vreinterpretq_u8_p16): Likewise.
14841 (vreinterpret_u16_s8): Likewise.
14842 (vreinterpret_u16_s16): Likewise.
14843 (vreinterpret_u16_s32): Likewise.
14844 (vreinterpret_u16_s64): Likewise.
14845 (vreinterpret_u16_f32): Likewise.
14846 (vreinterpret_u16_u8): Likewise.
14847 (vreinterpret_u16_u32): Likewise.
14848 (vreinterpret_u16_u64): Likewise.
14849 (vreinterpret_u16_p8): Likewise.
14850 (vreinterpret_u16_p16): Likewise.
14851 (vreinterpretq_u16_s8): Likewise.
14852 (vreinterpretq_u16_s16): Likewise.
14853 (vreinterpretq_u16_s32): Likewise.
14854 (vreinterpretq_u16_s64): Likewise.
14855 (vreinterpretq_u16_f32): Likewise.
14856 (vreinterpretq_u16_u8): Likewise.
14857 (vreinterpretq_u16_u32): Likewise.
14858 (vreinterpretq_u16_u64): Likewise.
14859 (vreinterpretq_u16_p8): Likewise.
14860 (vreinterpretq_u16_p16): Likewise.
14861 (vreinterpret_u32_s8): Likewise.
14862 (vreinterpret_u32_s16): Likewise.
14863 (vreinterpret_u32_s32): Likewise.
14864 (vreinterpret_u32_s64): Likewise.
14865 (vreinterpret_u32_f32): Likewise.
14866 (vreinterpret_u32_u8): Likewise.
14867 (vreinterpret_u32_u16): Likewise.
14868 (vreinterpret_u32_u64): Likewise.
14869 (vreinterpret_u32_p8): Likewise.
14870 (vreinterpret_u32_p16): Likewise.
14871 (vreinterpretq_u32_s8): Likewise.
14872 (vreinterpretq_u32_s16): Likewise.
14873 (vreinterpretq_u32_s32): Likewise.
14874 (vreinterpretq_u32_s64): Likewise.
14875 (vreinterpretq_u32_f32): Likewise.
14876 (vreinterpretq_u32_u8): Likewise.
14877 (vreinterpretq_u32_u16): Likewise.
14878 (vreinterpretq_u32_u64): Likewise.
14879 (vreinterpretq_u32_p8): Likewise.
14880 (vreinterpretq_u32_p16): Likewise.
14882 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14884 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14886 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14888 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14889 (vqnegd_s64): Likewise.
14890 (vqabs_s64): Likewise.
14891 (vqabsd_s64): Likewise.
14893 2014-04-22 Richard Henderson <rth@redhat.com>
14895 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14896 computation to the top of the loop.
14898 2014-04-22 Renlin <renlin.li@arm.com>
14899 Jiong Wang <jiong.wang@arm.com>
14901 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14902 * config/aarch64/aarch64.c (aarch64_layout_frame)
14903 (aarch64_initial_elimination_offset): Likewise.
14905 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14907 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14910 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14912 * machmode.h (bitwise_mode_for_mode): Declare.
14913 * stor-layout.h (bitwise_type_for_mode): Likewise.
14914 * stor-layout.c (bitwise_mode_for_mode): New function.
14915 (bitwise_type_for_mode): Likewise.
14916 * builtins.c (fold_builtin_memory_op): Use it instead of
14917 int_mode_for_mode and build_nonstandard_integer_type.
14919 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14921 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14922 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14923 (*-*-solaris2*): Simplify.
14924 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14925 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14926 *-*-solaris2.9* handling.
14928 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14930 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14931 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14932 handling, simplify.
14933 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14934 * configure: Regenerate.
14936 * config/i386/sol2-9.h: Remove.
14938 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14939 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14940 Remove Solaris 9 references.
14942 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14944 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
14945 (floatuns<GPI:mode><GPF:mode>2): Remove.
14946 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
14947 and floatuns conversions.
14948 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
14949 and floatuns conversions.
14950 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
14951 (w1,w2): New mode attributes for inequal width conversions.
14953 2014-04-22 Renlin Li <Renlin.Li@arm.com>
14955 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
14956 the output asm format.
14958 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
14960 * config/aarch64/aarch64-simd.md
14961 (aarch64_cm<optab>di): Always split.
14962 (*aarch64_cm<optab>di): New.
14963 (aarch64_cmtstdi): Always split.
14964 (*aarch64_cmtstdi): New.
14966 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14968 PR tree-optimization/60823
14969 * omp-low.c (ipa_simd_modify_function_body): Go through
14970 all SSA_NAMEs and for those refering to vector arguments
14971 which are going to be replaced adjust SSA_NAME_VAR and,
14972 if it is a default definition, change it into a non-default
14973 definition assigned at the beginning of function from new_decl.
14974 (ipa_simd_modify_stmt_ops): Rewritten.
14975 * tree-dfa.c (set_ssa_default_def): When removing default def,
14976 check for NULL loc instead of NULL *loc.
14978 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14980 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
14981 restrictions on core registers for DImode values in Thumb2.
14983 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14985 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
14986 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
14988 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14990 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
14991 (*iordi_notzesidi_di): Likewise.
14992 (*iordi_notsesidi_di): Likewise.
14994 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14996 * config/arm/arm-protos.h (tune_params): New struct members.
14997 * config/arm/arm.c: Initialise tune_params per processor.
14998 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
14999 for speed, based on new tune_params.
15001 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15003 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15004 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15005 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15006 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15007 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15008 (vrnda_f64): Likewise.
15009 (vrndi_f64): Likewise.
15010 (vrndm_f64): Likewise.
15011 (vrndn_f64): Likewise.
15012 (vrndp_f64): Likewise.
15013 (vrndx_f64): Likewise.
15015 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15017 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15018 GET_MODE_SIZE argument is enum machine_mode.
15020 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15023 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15024 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15026 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15028 PR middle-end/60281
15029 * asan.c (asan_emit_stack_protection): Force the base to align to
15030 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15031 appropriate bits if STRICT_ALIGNMENT.
15032 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15034 (expand_used_vars): Leave a space in the stack frame for alignment
15035 if STRICT_ALIGNMENT.
15037 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15039 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15041 (gimple_store_p): Likewise.
15042 (gimple_assign_load_p): Likewise.
15043 (gimple_assign_cast_p): Likewise.
15044 (gimple_clobber_p): Likewise.
15046 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15047 rather than a gimple.
15048 (gimple_assign_cast_p): Likewise.
15050 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15053 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15054 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15057 more debug information for E500 if -mdebug=reg.
15059 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15062 * config/i386/i386.c (ix86_expand_builtin)
15063 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15064 register for target RTX.
15065 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15067 2014-04-18 Cong Hou <congh@google.com>
15069 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15070 the widen-mult pattern by handling two operands with different sizes,
15071 and operands whose size is smaller than half of the result type.
15073 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15075 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15076 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15077 (do_estimate_edge_time): Compute it.
15078 * ipa-inline.c (want_inline_small_function_p): Bypass
15079 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15081 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15083 * ipa-inline.c (spec_rem): New static variable.
15084 (dump_overall_stats): New function.
15085 (dump_inline_stats): New function.
15087 2014-04-18 Richard Henderson <rth@redhat.com>
15089 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15090 to GET_MODE_SIZE, not a reg_class_t.
15092 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15094 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15095 (vsx_xxmrglw_<mode>): Likewise.
15097 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15100 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15101 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15102 (rs6000_init_hard_regno_mode_ok): Likewise.
15104 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15106 * ipa-inline.c (inline_small_functions): Account only non-cold
15108 * doc/invoke.texi (inline-unit-growth): Update documentation.
15110 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15112 * config/rs6000/rs6000.md (addti3, subti3): New.
15114 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15117 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15118 comment. Check optimize_insn_for_size_p instead of
15119 optimize_insn_for_speed_p.
15121 2014-04-17 Martin Jambor <mjambor@suse.cz>
15123 * gimple-iterator.c (gsi_start_edge): New function.
15124 * gimple-iterator.h (gsi_start_edge): Declare.
15125 * tree-sra.c (single_non_eh_succ): New function.
15126 (disqualify_ops_if_throwing_stmt): Renamed to
15127 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15128 having one non-EH successor BB.
15129 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15130 generate loads into replacements.
15131 (sra_modify_assign): Likewise and and also use the simple path for
15133 (sra_modify_function_body): Commit statements on edges.
15135 2014-04-17 Richard Biener <rguenther@suse.de>
15137 PR middle-end/60849
15138 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15139 comparison results and add clarifying comment.
15141 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15143 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15144 (blank_mode): Initialize it.
15145 (emit_mode_size_inline, emit_mode_nunits_inline,
15146 emit_mode_inner_inline): New functions.
15147 (emit_insn_modes_h): Call them and surround their output with
15148 #if GCC_VERSION >= 4001 ... #endif.
15149 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15150 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15151 mode_* arrays if the argument is __builtin_constant_p.
15152 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15153 is enum machine_mode.
15155 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15157 * passes.c (opt_pass::execute): Adjust.
15158 (pass_manager::execute_pass_mode_switching): Likewise.
15159 (early_local_passes::execute): Likewise.
15160 (execute_one_pass): Pass cfun to the pass's execute method.
15161 * tree-pass.h (opt_pass::execute): Add function * argument.
15162 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15163 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15164 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15165 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15166 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15167 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15168 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15169 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15170 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15171 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15172 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15173 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15174 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15175 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15176 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15177 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15178 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15179 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15180 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15181 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15182 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15183 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15184 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15185 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15186 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15187 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15188 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15189 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15190 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15193 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15195 * passes.c (opt_pass::gate): Take function * argument.
15196 (gate_all_early_local_passes): Merge into
15197 (early_local_passes::gate): this.
15198 (gate_all_early_optimizations): Merge into
15199 (all_early_optimizations::gate): this.
15200 (gate_all_optimizations): Mege into
15201 (all_optimizations::gate): this.
15202 (gate_all_optimizations_g): Merge into
15203 (all_optimizations_g::gate): this.
15204 (gate_rest_of_compilation): Mege into
15205 (rest_of_compilation::gate): this.
15206 (gate_postreload): Merge into
15207 (postreload::gate): this.
15208 (dump_one_pass): Pass cfun to the pass's gate method.
15209 (execute_ipa_summary_passes): Likewise.
15210 (execute_one_pass): Likewise.
15211 (ipa_write_summaries_2): Likewise.
15212 (ipa_write_optimization_summaries_1): Likewise.
15213 (ipa_read_summaries_1): Likewise.
15214 (ipa_read_optimization_summaries_1): Likewise.
15215 (execute_ipa_stmt_fixups): Likewise.
15216 * tree-pass.h (opt_pass::gate): Add function * argument.
15217 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15218 combine-stack-adj.c, combine.c, compare-elim.c,
15219 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15220 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15221 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15222 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15223 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15224 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15225 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15226 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15227 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15228 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15229 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15230 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15231 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15232 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15233 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15234 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15235 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15236 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15237 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15238 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15239 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15240 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15241 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15242 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15243 var-tracking.c, vtable-verify.c, web.c: Adjust.
15245 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15247 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15248 * configure: Regenerate.
15250 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15252 * passes.c (dump_one_pass): don't check pass->has_gate.
15253 (execute_ipa_summary_passes): Likewise.
15254 (execute_one_pass): Likewise.
15255 (ipa_write_summaries_2): Likewise.
15256 (ipa_write_optimization_summaries_1): Likewise.
15257 (ipa_read_optimization_summaries_1): Likewise.
15258 (execute_ipa_stmt_fixups): Likewise.
15259 * tree-pass.h (pass_data::has_gate): Remove.
15260 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15261 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15262 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15263 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15264 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15265 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15266 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15267 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15268 gimple-low.c, gimple-ssa-isolate-paths.c,
15269 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15270 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15271 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15272 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15273 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15274 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15275 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15276 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15277 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15278 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15279 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15280 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15281 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15282 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15283 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15284 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15285 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15286 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15287 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15288 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15289 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15290 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15293 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15295 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15297 * passes.c (pass_manager::register_dump_files_1): Merge into
15298 (pass_manager::register_dump_files): this, and remove its handling of
15299 properties since the pass always has the properties anyway.
15300 (pass_manager::pass_manager): Adjust.
15302 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15304 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15305 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15306 dealing with properties.
15307 (pass_manager::register_dump_files): Adjust.
15309 2014-03-20 Mark Wielaard <mjw@redhat.com>
15311 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15312 then represent the bound as normal constant value.
15314 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15317 Forward port from 4.8 branch
15318 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15320 * config/i386/bmiintrin.h (_blsi_u32): New.
15321 (_blsi_u64): Ditto.
15322 (_blsr_u32): Ditto.
15323 (_blsr_u64): Ditto.
15324 (_blsmsk_u32): Ditto.
15325 (_blsmsk_u64): Ditto.
15326 (_tzcnt_u32): Ditto.
15327 (_tzcnt_u64): Ditto.
15329 2014-04-17 Kito Cheng <kito@0xlab.org>
15331 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15333 2014-04-17 Richard Biener <rguenther@suse.de>
15335 PR middle-end/60849
15336 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15337 boolean results for comparisons.
15339 2014-04-17 Richard Biener <rguenther@suse.de>
15341 PR tree-optimization/60836
15342 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15343 initial PHI args to be gimple values.
15345 2014-04-17 Richard Biener <rguenther@suse.de>
15347 PR tree-optimization/60841
15348 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15349 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15350 of stmts to SLP build.
15351 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15352 (vect_analyze_slp): Likewise.
15353 (vect_analyze_slp_instance): Likewise.
15354 (vect_build_slp_tree): Limit overall SLP tree growth.
15355 * tree-vectorizer.h (vect_analyze_data_refs,
15356 vect_analyze_slp): Adjust prototypes.
15358 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15360 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15363 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15365 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15366 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15367 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15368 for TARGET_SLOW_PSHUFB
15370 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15372 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15373 * config/i386/i386.c (intel_cost): Ditto.
15375 2014-04-17 Joey Ye <joey.ye@arm.com>
15377 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15379 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15381 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15382 with -fuse-profile.
15384 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15386 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15387 (type_all_derivations_known_p): New predicate.
15388 (type_all_ctors_visible_p): New predicate.
15389 (type_possibly_instantiated_p): New predicate.
15390 (get_odr_type): Compute all_derivations_known.
15391 (dump_odr_type): Dump the flag.
15392 (maybe_record_type): Cleanup.
15393 (record_target_from_binfo): Add bases_to_consider array;
15394 record bases for types w/o instances and skip CXX destructor.
15395 (possible_polymorphic_call_targets_1): Add bases_to_consider
15396 and consider_construction parameters; check if type may have instance.
15397 (get_polymorphic_call_info): Set maybe_in_construction to true
15398 when we know nothing.
15399 (record_targets_from_bases): Skip CXX destructors; they are
15400 never called for types in construction.
15401 (possible_polymorphic_call_targets): Do not record target when
15402 type may not have instance.
15404 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15407 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15408 external aliases alive, too.
15410 2014-04-16 Andrew Pinski <apinski@cavium.com>
15412 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15415 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15417 * final.c (compute_alignments): Do not apply loop alignment to a block
15418 falling through to the exit.
15420 2014-04-16 Catherine Moore <clm@codesourcery.com>
15422 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15423 Adjust constraints for microMIPS store patterns.
15425 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15427 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15429 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15431 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15432 (append_use): Run at -O0.
15433 (append_vdef): Likewise.
15434 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15435 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15437 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15439 PR tree-optimization/60844
15440 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15441 (propagate_op_to_single_use, remove_visited_stmt_chain,
15442 linearize_expr, repropagate_negates, reassociate_bb): Use it
15443 instead of gsi_remove.
15445 2014-04-16 Martin Jambor <mjambor@suse.cz>
15447 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15448 ipa_transforms_to_apply.
15449 (cgraph_function_versioning): Assert that old_node has empty
15450 ipa_transforms_to_apply.
15451 * trans-mem.c (ipa_tm_create_version): Likewise.
15452 * tree-inline.c (tree_function_versioning): Do not duplicate
15453 ipa_transforms_to_apply.
15455 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15458 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15460 Pass necessary as flags on 64-bit Solaris/x86.
15461 Use lowercase relocs for x86_64-*-*.
15462 * configure: Regenerate.
15464 2014-04-15 Jan Hubicka <jh@suse.cz>
15466 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15467 (maybe_record_node, likely_target_p): Use it.
15469 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15472 Revert following patch
15474 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15477 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15478 software floating point or no floating point registers, do not
15479 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15480 in GPRs that occurs after we tested for GPRs that would never be
15483 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15484 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15485 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15486 specifically allow DDmode, since that does not use the SPE SIMD
15489 2014-03-21 Mark Wielaard <mjw@redhat.com>
15491 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15492 as unsigned or int depending on type and value used.
15494 2014-04-15 Richard Biener <rguenther@suse.de>
15496 PR rtl-optimization/56965
15497 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15498 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15500 * alias.c (true_dependence_1): Do not call
15501 nonoverlapping_component_refs_p.
15502 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15503 nonoverlapping_component_refs_p.
15504 (indirect_refs_may_alias_p): Likewise.
15506 2014-04-15 Teresa Johnson <tejohnson@google.com>
15508 * cfg.c (dump_bb_info): Fix flags check.
15509 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15511 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15513 PR rtl-optimization/60663
15514 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15517 2014-04-15 Richard Biener <rguenther@suse.de>
15519 * lto-streamer.h (LTO_major_version): Bump to 4.
15521 2014-04-15 Richard Biener <rguenther@suse.de>
15523 * common.opt (lto_partition_model): New enum.
15524 (flto-partition=): Merge separate options with a single with argument,
15525 add -flto-partition=one support.
15526 * flag-types.h (enum lto_partition_model): Declare.
15527 * opts.c (finish_options): Remove duplicate -flto-partition=
15529 * lto-wrapper.c (run_gcc): Adjust.
15531 2014-04-15 Richard Biener <rguenther@suse.de>
15533 * alias.c (ncr_compar): New function.
15534 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15536 2014-04-15 Richard Biener <rguenther@suse.de>
15538 * alias.c (record_component_aliases): Do not walk BINFOs.
15540 2014-04-15 Richard Biener <rguenther@suse.de>
15542 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15543 Add struct function argument and adjust.
15544 (find_func_aliases_for_call): Likewise.
15545 (find_func_aliases): Likewise.
15546 (find_func_clobbers): Likewise.
15547 (intra_create_variable_infos): Likewise.
15548 (compute_points_to_sets): Likewise.
15549 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15551 2014-04-15 Richard Biener <rguenther@suse.de>
15553 * tree.c (iterative_hash_expr): Use enum tree_code_class
15554 to store TREE_CODE_CLASS.
15555 (tree_block): Likewise.
15556 (tree_set_block): Likewise.
15557 * tree.h (fold_build_pointer_plus_loc): Use
15558 convert_to_ptrofftype_loc.
15560 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15563 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15566 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15568 * cfgloop.h (struct loop): Move force_vectorize down.
15569 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15570 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15571 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15572 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15573 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15574 * tree-core.h (enum annot_expr_kind): Add new kind values.
15575 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15576 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15578 * tree.def (ANNOTATE_EXPR): Tweak comment.
15580 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15582 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15585 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15587 * tree.h (TYPE_IDENTIFIER): Declare.
15588 * tree.c (subrange_type_for_debug_p): Use it.
15589 * godump.c (go_format_type): Likewise.
15590 * dwarf2out.c (is_cxx_auto, modified_type_die,
15591 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15592 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15594 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15597 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15599 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15601 * config/i386/i386.c (examine_argument): Return bool. Return true if
15602 parameter should be passed in memory.
15603 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15604 (construct_container): Update calls to examine_argument.
15605 (function_arg_advance_64): Ditto.
15606 (return_in_memory_32): Merge with ix86_return_in_memory.
15607 (return_in_memory_64): Ditto.
15608 (return_in_memory_ms_64): Ditto.
15610 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15612 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15613 * coverage.c (coverage_compute_profile_id): Handle externally visible
15616 2014-04-14 Martin Jambor <mjambor@suse.cz>
15618 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15619 DECL_DISREGARD_INLINE_LIMITS functions.
15621 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15624 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15626 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15629 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15630 optimize_insn_for_speed_p instead of
15631 optimize_function_for_speed_p.
15633 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15635 * doc/invoke.texi (free): Document AArch64.
15637 2014-04-14 Richard Biener <rguenther@suse.de>
15639 PR tree-optimization/60042
15640 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15641 (insert_into_preds_of_block): Do not prevent PHI insertion
15642 for REFERENCE exprs here ...
15643 (eliminate_dom_walker::before_dom_children): ... but prevent
15644 their use here under similar conditions when applied to the
15645 IL after PRE optimizations.
15647 2014-04-14 Richard Biener <rguenther@suse.de>
15649 * passes.def: Move early points-to after early SRA.
15651 2014-04-14 Richard Biener <rguenther@suse.de>
15653 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15654 check for which sign-changes we allow when forwarding
15655 a converted value into a switch.
15657 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15659 * stor-layout.c (place_field): Finalize non-constant offset for the
15662 2014-04-14 Richard Biener <rguenther@suse.de>
15664 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15666 (expand_switch_using_bit_tests_p): Likewise.
15667 (process_switch): Compute and pass on speed_p based on the
15669 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15670 optimize_bb_for_speed_p.
15672 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15674 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15675 * function.h (struct function): Rename has_force_vect_loops into
15676 has_force_vectorize_loops.
15677 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15678 (input_struct_function_base): Likewise.
15679 * lto-streamer-out.c (output_cfg): Likewise.
15680 (output_struct_function_base): Likewise.
15681 * omp-low.c (expand_omp_simd): Likewise.
15682 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15683 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15684 (version_loop_for_if_conversion): Likewise.
15685 (tree_if_conversion): Likewise.
15686 (main_tree_if_conversion): Likewise.
15687 (gate_tree_if_conversion): Likewise.
15688 * tree-inline.c (copy_loops): Likewise.
15689 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15690 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15691 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15692 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15693 * tree-vectorizer.c (vectorize_loops): Likewise.
15694 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15696 2014-04-14 Richard Biener <rguenther@suse.de>
15699 * lto-streamer-out.c (wrap_refs): New function.
15700 (lto_output): Wrap symbol references in global initializes in
15701 type-preserving MEM_REFs.
15703 2014-04-14 Christian Bruel <christian.bruel@st.com>
15705 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15707 2014-04-14 Christian Bruel <christian.bruel@st.com>
15709 * config/sh/sh.md (setmemqi): New expand pattern.
15710 * config/sh/sh.h (CLEAR_RATIO): Define.
15711 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15712 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15714 2014-04-14 Richard Biener <rguenther@suse.de>
15716 PR middle-end/55022
15717 * fold-const.c (negate_expr_p): Don't negate directional rounding
15719 (fold_negate_expr): Likewise.
15721 2014-04-14 Richard Biener <rguenther@suse.de>
15723 PR tree-optimization/59817
15724 PR tree-optimization/60453
15725 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15726 recursion to catch all CHRECs in the scalar evolution and restrict
15727 the predicate for the remains appropriately.
15729 2014-04-12 Catherine Moore <clm@codesourcery.com>
15731 * config/mips/constraints.md: Add new register constraint "kb".
15732 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15733 (*movhi_internal): Likewise.
15734 (*movqi_internal): Likewise.
15735 * config/mips/mips.h (M16_STORE_REGS): New register class.
15736 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15737 (REG_CLASS_CONTENTS): Likewise.
15738 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15740 2014-04-11 Tobias Burnus <burnus@net-b.de>
15743 * doc/invoke.texi (-Wformat-signedness): Document it.
15744 (Wformat=2): Mention that this enables -Wformat-signedness.
15746 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15748 * common/config/epiphany/epiphany-common.c
15749 (epiphany_option_optimization_table): Enable section anchors by
15750 default at -O1 or higher.
15751 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15752 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15753 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15754 carries no extra cost.
15755 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15756 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15757 * config/epiphany/predicates.md (memclob_operand): New predicate.
15758 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15759 Use memclob_operand predicate and X constraint for operand 3.
15761 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15763 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15764 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15767 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15769 PR rtl-optimization/60651
15770 * mode-switching.c (optimize_mode_switching): Make sure to emit
15771 sets of a lower numbered entity before sets of a higher numbered
15772 entity to a mode of the same or lower priority.
15773 When creating a seginfo for a basic block that starts with a code
15774 label, move the insertion point past the code label.
15775 (new_seginfo): Document and enforce requirement that
15776 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15777 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15778 * doc/tm.texi: Regenerate.
15780 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15783 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15785 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15787 * BASE-VER: Set to 4.10.0.
15789 2014-04-11 Tobias Burnus <burnus@net-b.de>
15792 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15793 * doc/gcc.texi (Service): Update description in the @menu
15794 * doc/invoke.texi (Option Summary): Remove misplaced and
15797 2014-04-11 Steve Ellcey <sellcey@mips.com>
15798 Jakub Jelinek <jakub@redhat.com>
15800 PR middle-end/60556
15801 * expr.c (convert_move): Use emit_store_flag_force instead of
15802 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15805 2014-04-11 Richard Biener <rguenther@suse.de>
15807 PR middle-end/60797
15808 * varasm.c (assemble_alias): Avoid endless error reporting
15809 recursion by setting TREE_ASM_WRITTEN.
15811 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15813 * config/s390/s390.md: Add a splitter for NOT rtx.
15815 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15817 PR rtl-optimization/60663
15818 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15820 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15821 Jakub Jelinek <jakub@redhat.com>
15824 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15825 flag from decl_node to node.
15827 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15830 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15831 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15832 ameliorating the cases where it can be.
15834 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15837 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15839 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15840 (loadsync_<mode>): Change mode.
15841 (load_quadpti, store_quadpti): New.
15842 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15843 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15844 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15846 2014-04-09 Cong Hou <congh@google.com>
15849 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15852 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15854 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15855 instead of vnor to exploit possible fusion opportunity in the
15857 (altivec_expand_vec_perm_const_le): Likewise.
15859 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15861 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15862 (loadsync_<mode>): Change mode.
15863 (load_quadpti, store_quadpti): New.
15864 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15865 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15867 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15870 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15871 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15872 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15874 2014-04-08 Richard Biener <rguenther@suse.de>
15876 PR middle-end/60706
15877 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15878 a 64bit widest int print double-int similar to on HWI64 hosts.
15880 2014-04-08 Richard Biener <rguenther@suse.de>
15882 PR tree-optimization/60785
15883 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15884 default defs properly.
15886 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15888 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15889 (Weffc++): Likewise.
15891 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15893 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15894 set completep to false rather than true.
15896 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15899 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15900 ARM_TARGET2_DWARF_FORMAT.
15902 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15905 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15906 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15909 2014-04-07 Richard Biener <rguenther@suse.de>
15911 PR tree-optimization/60766
15912 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15913 (may_eliminate_iv): Convert cand_value_at result to desired type.
15915 2014-04-07 Jason Merrill <jason@redhat.com>
15918 * common.opt (-fno-gnu-unique): Add.
15919 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15921 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15923 * haifa-sched.c: Fix outdated function reference and minor
15924 grammar errors in introductory comment.
15926 2014-04-07 Richard Biener <rguenther@suse.de>
15928 PR middle-end/60750
15929 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15930 for noreturn calls.
15931 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15933 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15936 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15937 size accounting for thunks.
15938 (pa_asm_output_mi_thunk): Use final_start_function() and
15939 final_end_function() to output function start and end directives.
15941 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15943 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
15944 device specific ISA/ feature information. Remove short_sp and
15945 errata_skip ds. Add avr_device_specific_features enum to have device
15947 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
15948 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
15949 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
15950 updated device specific info.
15951 * config/avr/avr-mcus.def: Merge device specific details to
15952 dev_attribute field.
15953 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
15955 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
15956 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
15957 assembler if RMW isa supported by current device.
15958 * config/avr/genmultilib.awk: Update as device info structure changed.
15959 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
15961 2014-04-04 Cong Hou <congh@google.com>
15963 PR tree-optimization/60656
15964 * tree-vect-stmts.c (supportable_widening_operation):
15965 Fix a bug that elements in a vector with vect_used_by_reduction
15966 property are incorrectly reordered when the operation on it is not
15967 consistant with the one in reduction operation.
15969 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
15971 PR rtl-optimization/60155
15972 * gcse.c (record_set_data): New function.
15973 (single_set_gcse): New function.
15974 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
15975 (hoist_code): Likewise.
15976 (get_pressure_class_and_nregs): Likewise.
15978 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
15980 * explow.c (probe_stack_range): Emit a final optimization blockage.
15982 2014-04-04 Anthony Green <green@moxielogic.com>
15984 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
15987 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
15990 * lto-cgraph.c (input_overwrite_node): Check that partitioning
15991 flags are set only during streaming.
15992 * ipa.c (process_references, walk_polymorphic_call_targets,
15993 symtab_remove_unreachable_nodes): Drop bodies of always inline
15994 after early inlining.
15995 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
15997 2014-04-04 Jakub Jelinek <jakub@redhat.com>
15998 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16001 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16004 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16007 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16009 (cortex_a53_fdivd): Likewise.
16011 2014-04-04 Martin Jambor <mjambor@suse.cz>
16014 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16015 Adjust all callers.
16016 * cgraph.c (clone_of_p): Also return true if thunks match.
16017 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16018 cgraph_function_or_thunk_node and an obsolete comment.
16019 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16021 (build_function_decl_skip_args): Likewise.
16022 (set_new_clone_decl_and_node_flags): New function.
16023 (duplicate_thunk_for_node): Likewise.
16024 (redirect_edge_duplicating_thunks): Likewise.
16025 (cgraph_clone_node): New parameter args_to_skip, pass it to
16026 redirect_edge_duplicating_thunks which is called instead of
16027 cgraph_redirect_edge_callee.
16028 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16029 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16031 2014-04-04 Jeff Law <law@redhat.com>
16034 * config/arm/predicates.md (const_int_I_operand): New predicate.
16035 (const_int_M_operand): Similarly.
16036 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16038 (insv_t2, extv_reg, extzv_t2): Likewise.
16039 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16040 (pop_multiple_with_writeback_and_return): Likewise.
16041 (vfp_pop_multiple_with_writeback): Likewise
16043 2014-04-04 Richard Biener <rguenther@suse.de>
16046 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16047 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16049 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16050 * gimplify.c (gimple_add_tmp_var_fn): New function.
16051 * gimple-expr.h (create_tmp_reg_fn): Declare.
16052 * gimple-expr.c (create_tmp_reg_fn): New function.
16053 * gimple-low.c (record_vars_into): Don't change cfun.
16054 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16055 code generation without cfun.
16057 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16060 * Makefile.in (install-driver): Fix shell scripting.
16062 2014-04-03 Cong Hou <congh@google.com>
16064 PR tree-optimization/60505
16065 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16066 threshold of number of iterations below which no vectorization
16068 * tree-vect-loop.c (new_loop_vec_info):
16069 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16070 * tree-vect-loop.c (vect_analyze_loop_operations):
16071 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16072 * tree-vect-loop.c (vect_transform_loop):
16073 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16074 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16075 of iterations of the loop and see if we should build the epilogue.
16077 2014-04-03 Richard Biener <rguenther@suse.de>
16079 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16080 (streamer_tree_cache_create): Adjust.
16081 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16082 to allow optional nodes array.
16083 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16084 (streamer_tree_cache_append): Likewise.
16085 (streamer_tree_cache_create): Create nodes array optionally
16086 as specified by parameter.
16087 * lto-streamer-out.c (create_output_block): Avoid maintaining
16088 the node array in the writer cache.
16089 (DFS_write_tree): Remove assertion.
16090 (produce_asm_for_decls): Free the out decl state hash table early.
16091 * lto-streamer-in.c (lto_data_in_create): Adjust for
16092 streamer_tree_cache_create prototype change.
16094 2014-04-03 Richard Biener <rguenther@suse.de>
16096 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16097 set TREE_CHAIN to NULL_TREE.
16099 2014-04-03 Richard Biener <rguenther@suse.de>
16101 PR tree-optimization/60740
16102 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16103 over all GIMPLE_COND operands.
16105 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16107 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16108 (Weffc++): Remove Scott's numbering, merge lists and reference
16111 2014-04-03 Nick Clifton <nickc@redhat.com>
16113 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16116 2014-04-03 Martin Jambor <mjambor@suse.cz>
16118 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16119 mention gcc_unreachable before failing.
16120 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16123 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16126 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16127 inconsistent code and instead mark the context inconsistent.
16128 (possible_polymorphic_call_targets): For inconsistent contexts
16129 return empty complete list.
16131 2014-04-02 Anthony Green <green@moxielogic.com>
16133 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16134 (extendqisi2, extendhisi2): Define.
16135 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16136 (WCHAR_TYPE): Change to unsigned int.
16138 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16140 PR tree-optimization/60733
16141 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16142 insertion point for PHI candidates to be the end of the feeding
16143 block for the PHI argument.
16145 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16147 PR rtl-optimization/60650
16148 * lra-constraints.c (process_alt_operands): Decrease reject for
16149 earlyclobber matching.
16151 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16153 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16155 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16157 * config/spu/spu.c (pad_bb): Do not crash when the last
16158 insn is CODE_FOR_blockage.
16160 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16162 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16163 lies outside the target mode.
16165 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16168 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16169 software floating point or no floating point registers, do not
16170 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16171 in GPRs that occurs after we tested for GPRs that would never be
16174 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16175 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16176 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16177 specifically allow DDmode, since that does not use the SPE SIMD
16180 2014-04-02 Richard Biener <rguenther@suse.de>
16182 PR middle-end/60729
16183 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16184 MODE_INTs. Properly use negv_optab.
16185 (expand_abs): Likewise.
16187 2014-04-02 Richard Biener <rguenther@suse.de>
16190 * Makefile.in (install-driver): Guard extra installs with special
16193 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16195 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16196 Document vec_vgbbd.
16198 2014-04-01 Richard Henderson <rth@redhat.com>
16201 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16202 alternative enabled before register allocation.
16204 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16206 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16207 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16209 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16210 (nios2_got_address): Update nios2_large_got_address call site.
16211 (nios2_delegitimize_address): New function.
16212 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16213 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16214 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16216 2014-04-01 Martin Husemann <martin@duskware.de>
16218 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16221 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16223 PR rtl-optimization/60604
16224 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16225 check from register_operand.
16226 (register_operand): Redefine in terms of general_operand.
16227 (nonmemory_operand): Use register_operand for the non-constant cases.
16229 2014-04-01 Richard Biener <rguenther@suse.de>
16231 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16233 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16235 * doc/invoke.texi (mapp-regs): Clarify.
16237 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16239 * config/i386/avx512fintrin.h (__v32hi): Define type.
16240 (__v64qi): Likewise.
16241 (_mm512_set1_epi8): Define.
16242 (_mm512_set1_epi16): Define.
16243 (_mm512_set4_epi32): Define.
16244 (_mm512_set4_epi64): Define.
16245 (_mm512_set4_pd): Define.
16246 (_mm512_set4_ps): Define.
16247 (_mm512_setr4_epi64): Define.
16248 (_mm512_setr4_epi32): Define.
16249 (_mm512_setr4_pd): Define.
16250 (_mm512_setr4_ps): Define.
16251 (_mm512_setzero_epi32): Define.
16253 2014-03-31 Martin Jambor <mjambor@suse.cz>
16255 PR middle-end/60647
16256 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16257 callsite_arguments_match_p. Updated all callers. Also check types of
16258 corresponding formal parameters and actual arguments.
16259 (not_all_callers_have_enough_arguments_p) Renamed to
16260 some_callers_have_mismatched_arguments_p.
16262 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16264 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16266 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16269 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16272 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16274 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16275 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16277 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16278 Use FMAMODE_NOVF512 mode iterator.
16279 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16280 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16281 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16282 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16284 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16285 Use VF_128_256 mode iterator.
16286 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16289 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16291 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16292 static chain if needed.
16294 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16297 * lra-constraints.c (index_part_to_reg): New.
16298 (process_address): Use it.
16300 2014-03-27 Jeff Law <law@redhat.com>
16301 Jakub Jelinek <jakub@redhat.com>
16304 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16305 gen_rtx_{PLUS,MULT} to build up the address expression.
16307 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16308 creating non-canonical RTL.
16310 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16313 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16314 functions; reorganize to make cheap checks first.
16315 (inline_small_functions): Do not estimate growth when dumping;
16317 * ipa-inline.h (inline_summary): Add min_size.
16318 (growth_likely_positive): New function.
16319 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16320 (set_cond_stmt_execution_predicate): Cleanup.
16321 (estimate_edge_size_and_time): Compute min_size.
16322 (estimate_calls_size_and_time): Likewise.
16323 (estimate_node_size_and_time): Likewise.
16324 (inline_update_overall_summary): Update min_size.
16325 (do_estimate_edge_time): Likewise.
16326 (do_estimate_edge_size): Update.
16327 (do_estimate_edge_hints): Update.
16328 (growth_likely_positive): New function.
16330 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16333 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16334 also if addr has VOIDmode.
16336 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16338 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16339 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16341 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16342 instructions as well as AdvancedSIMD loads.
16344 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16346 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16347 Use crypto_aese type.
16348 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16349 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16350 crypto_aese, crypto_aesmc. Move to types.md.
16351 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16353 * config/arm/iterators.md (crypto_type): Likewise.
16355 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16357 * cgraph.c: Include expr.h and tree-dfa.h.
16358 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16361 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16364 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16365 regs from checking multi-reg pseudos.
16367 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16369 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16371 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16373 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16374 if it would clobber the stack pointer, even temporarily.
16376 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16378 * mode-switching.c: Make small adjustments to the top comment.
16380 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16382 * config/rs6000/constraints.md (wD constraint): New constraint to
16383 match the constant integer to get the top DImode/DFmode out of a
16384 vector in a VSX register.
16386 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16387 match the constant integer to get the top DImode/DFmode out of a
16388 vector in a VSX register.
16390 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16393 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16396 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16397 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16399 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16400 Optimize vec_extract of 64-bit values, where the value being
16401 extracted is in the top word, where we can use scalar
16402 instructions. Add direct move and store support. Combine the big
16403 endian/little endian vector select load support into a single insn.
16404 (vsx_extract_<mode>_internal1): Likewise.
16405 (vsx_extract_<mode>_internal2): Likewise.
16406 (vsx_extract_<mode>_load): Likewise.
16407 (vsx_extract_<mode>_store): Likewise.
16408 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16409 combined into vsx_extract_<mode>_load.
16410 (vsx_extract_<mode>_one_le): Likewise.
16412 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16413 define the top 64-bit vector element.
16415 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16418 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16419 Document vec_vbpermq builtin.
16422 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16423 enable use of xxsldwi and xxpermdi builtin functions.
16424 (vec_xxpermdi): Likewise.
16426 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16427 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16429 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16431 PR rtl-optimization/60650
16432 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16434 (find_spills_for): New.
16435 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16436 Spill all pseudos on the second iteration.
16438 2014-03-27 Marek Polacek <polacek@redhat.com>
16441 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16444 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16446 * config/s390/s390.c (s390_can_use_return_insn): Check for
16447 call-saved FPRs on 31 bit.
16449 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16451 PR middle-end/60682
16452 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16453 if they need regimplification, just drop them instead of
16454 calling gimple_regimplify_operands on them.
16456 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16459 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16460 (aarch64_frame_pointer_required): Adjust logic.
16461 (aarch64_can_eliminate): Adjust logic.
16462 (aarch64_override_options_after_change): Adjust logic.
16464 2014-03-27 Dehao Chen <dehao@google.com>
16466 * ipa-inline.c (early_inliner): Update node's inline info.
16468 2014-03-26 Dehao Chen <dehao@google.com>
16470 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16471 compiler inserted conditional jumps for NAN float check.
16473 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16475 * ubsan.h (ubsan_create_data): Change second argument's type
16476 to const location_t *.
16477 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16479 (ubsan_create_data): Change second argument to const location_t *PLOC.
16480 Create Loc field whenever PLOC is non-NULL.
16481 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16482 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16486 * real.c (real_to_integer2): Change type of low to UHWI.
16488 2014-03-26 Tobias Burnus <burnus@net-b.de>
16490 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16491 (CILK_SELF_SPECS): New define.
16492 (driver_self_specs): Use it.
16494 2014-03-26 Richard Biener <rguenther@suse.de>
16496 * tree-pretty-print.c (percent_K_format): Implement special
16497 case for LTO and its stripped down BLOCK tree.
16499 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16502 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16504 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16505 one range is range_int_cst_p, but not both, at least optimize
16506 addition/subtraction of 0 and multiplication by 0 or 1.
16507 * gimple-fold.c (gimple_fold_call): Fold
16508 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16509 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16510 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16512 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16514 PR rtl-optimization/60452
16515 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16516 <case REG>: Return 1 for invalid offsets from the frame pointer.
16518 2014-03-26 Marek Polacek <polacek@redhat.com>
16521 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16524 2014-03-26 Marek Polacek <polacek@redhat.com>
16527 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16530 2014-03-26 Marek Polacek <polacek@redhat.com>
16533 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16534 multiplication in unsigned type.
16536 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16538 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16540 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16542 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16544 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16547 * cif-code.def (UNREACHABLE) New code.
16548 * ipa-inline.c (inline_small_functions): Skip edges to
16549 __builtlin_unreachable.
16550 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16551 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16552 predicate to __bulitin_unreachable.
16553 (set_cond_stmt_execution_predicate): Fix issue when
16554 invert_tree_comparison returns ERROR_MARK.
16555 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16556 propagate to inline clones.
16557 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16559 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16560 * cgraphclones.c (cgraph_clone_node): If call destination is already
16561 ureachable, do not redirect it back.
16562 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16565 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16567 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16568 Do not modify inline clones.
16570 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16572 * config/i386/i386.md (general_sext_operand): New mode attr.
16573 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16574 don't generate (sign_extend (const_int)).
16575 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16576 operands[2]. Use We constraint instead of <i> and
16577 <general_sext_operand> predicate instead of <general_operand>.
16578 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16579 * config/i386/constraints.md (We): New constraint.
16580 * config/i386/predicates.md (x86_64_sext_operand,
16581 sext_operand): New predicates.
16583 2014-03-25 Martin Jambor <mjambor@suse.cz>
16586 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16587 inconsistent devirtualizations to __builtin_unreachable.
16589 2014-03-25 Marek Polacek <polacek@redhat.com>
16592 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16594 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16596 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16597 order of elements for big-endian.
16599 2014-03-25 Richard Biener <rguenther@suse.de>
16601 PR middle-end/60635
16602 * gimplify-me.c (gimple_regimplify_operands): Update the
16605 2014-03-25 Martin Jambor <mjambor@suse.cz>
16608 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16609 (lto_output_varpool_node): Likewise.
16610 (input_overwrite_node): Likewise.
16611 (input_varpool_node): Likewise.
16613 2014-03-25 Richard Biener <rguenther@suse.de>
16615 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16616 (run_gcc): Likewise.
16618 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16620 * combine.c (simplify_compare_const): Add MODE argument.
16621 Handle mode_width 0 as very large mode_width.
16622 (try_combine, simplify_comparison): Adjust callers.
16624 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16625 type to avoid signed integer overflow.
16626 * explow.c (plus_constant): Likewise.
16628 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16630 * doc/generic.texi: Correct typos.
16632 2014-03-24 Tobias Burnus <burnus@net-b.de>
16634 * doc/invoke.texi (-flto): Expand section about
16635 using static libraries with LTO.
16637 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16639 PR rtl-optimization/60501
16640 * optabs.def (addptr3_optab): New optab.
16641 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16642 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16643 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16645 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16647 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16649 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16651 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16654 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16655 (_mm256_undefined_ps): Define.
16656 (_mm256_undefined_pd): Define.
16657 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16658 (_mm_undefined_pd): Define.
16659 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16660 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16661 (_mm512_undefined_ps): Define.
16662 (_mm512_undefined_pd): Define.
16663 Use _mm*_undefined_*.
16664 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16666 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16668 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16669 (lshr_simd): DI mode added.
16670 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16671 (aarch64_ushr_simddi): Likewise.
16672 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16673 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16674 (vshrd_n_u64): Likewise.
16676 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16678 * Makefile.in (s-macro_list): Depend on cc1.
16680 2014-03-23 Teresa Johnson <tejohnson@google.com>
16682 * ipa-utils.c (ipa_print_order): Use specified dump file.
16684 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16686 PR rtl-optimization/60601
16687 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16689 * gcc.c (eval_spec_function): Initialize save_growing_value.
16691 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16694 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16695 code == MINUS_EXPR, never swap op0 with op1.
16697 * toplev.c (init_local_tick): Avoid signed integer multiplication
16699 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16700 shift by first operand's bitsize.
16702 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16705 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16706 redefine to 1 or 0.
16707 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16708 TARGET_ISA_64BIT_P(x).
16710 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16712 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16713 pattern for vector nor instead of subtract from splat(-1).
16714 (altivec_expand_vec_perm_const_le): Likewise.
16716 2014-03-21 Richard Henderson <rth@twiddle.net>
16719 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16720 related insns after epilogue_completed.
16722 2014-03-21 Martin Jambor <mjambor@suse.cz>
16725 * cgraph.h (symtab_node): New flag body_removed.
16726 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16727 when removing bodies.
16728 * symtab.c (dump_symtab_base): Dump body_removed flag.
16729 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16730 had their bodies removed.
16732 2014-03-21 Martin Jambor <mjambor@suse.cz>
16735 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16738 2014-03-21 Richard Biener <rguenther@suse.de>
16740 PR tree-optimization/60577
16741 * tree-core.h (struct tree_base): Document nothrow_flag use
16742 in DECL_NONALIASED.
16743 * tree.h (DECL_NONALIASED): New.
16744 (may_be_aliased): Adjust.
16745 * coverage.c (build_var): Set DECL_NONALIASED.
16747 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16749 * expr.c (expand_expr_real_1): Remove outdated comment.
16751 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16753 PR middle-end/60597
16754 * ira.c (adjust_cleared_regs): Call copy_rtx on
16755 *reg_equiv[REGNO (loc)].src_p before passing it to
16756 simplify_replace_fn_rtx.
16759 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16760 into CONST, put pic register as first operand of PLUS. Use
16761 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16763 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16765 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16767 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16769 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16770 around for store forwarding issue in the FPU on the UT699.
16771 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16772 loads and operations if -mfix-ut699 is specified.
16773 (divtf3_hq): Tweak attribute.
16774 (sqrttf2_hq): Likewise.
16776 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16778 * calls.c (store_one_arg): Remove incorrect const qualification on the
16779 type of the temporary.
16780 * cfgexpand.c (expand_return): Likewise.
16781 * expr.c (expand_constructor): Likewise.
16782 (expand_expr_real_1): Likewise.
16784 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16786 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16789 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16792 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16794 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16796 * config/arm/aarch-common-protos.h
16797 (alu_cost_table): Fix spelling of "extend".
16798 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16800 2014-03-19 Richard Biener <rguenther@suse.de>
16802 PR middle-end/60553
16803 * tree-core.h (tree_type_common): Re-order pointer members
16804 to reduce recursion depth during GC walks.
16806 2014-03-19 Marek Polacek <polacek@redhat.com>
16809 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16810 before accessing it.
16812 2014-03-19 Richard Biener <rguenther@suse.de>
16815 * lto-streamer-in.c (input_function): In WPA stage do not drop
16818 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16820 PR tree-optimization/60559
16821 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16822 with build_zero_cst assignment.
16824 2014-03-18 Kai Tietz <ktietz@redhat.com>
16826 PR rtl-optimization/56356
16827 * sdbout.c (sdbout_parms): Verify that parms'
16828 incoming argument is valid.
16829 (sdbout_reg_parms): Likewise.
16831 2014-03-18 Richard Henderson <rth@redhat.com>
16834 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16835 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16836 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16838 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16840 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16841 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16842 Italicize plugin event names in description. Explain that
16843 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16844 Remind that no GCC functions should be called after PLUGIN_FINISH.
16845 Explain what pragmas with expansion are.
16847 2014-03-18 Martin Liska <mliska@suse.cz>
16849 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16850 gimple call statement is update.
16851 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16852 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16854 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16857 * ubsan.c (ubsan_instrument_unreachable): Call
16858 initialize_sanitizer_builtins.
16859 (ubsan_pass): Likewise.
16862 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16863 varpool_finalize_decl instead of rest_of_decl_compilation.
16865 2014-03-18 Richard Biener <rguenther@suse.de>
16867 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16868 by using bitmap_and_compl instead of bitmap_and_compl_into.
16869 (df_rd_transfer_function): Likewise.
16871 2014-03-18 Richard Biener <rguenther@suse.de>
16873 * doc/lto.texi (fresolution): Fix typo.
16875 2014-03-18 Richard Biener <rguenther@suse.de>
16877 * doc/invoke.texi (flto): Update for changes in 4.9.
16879 2014-03-18 Richard Biener <rguenther@suse.de>
16881 * doc/loop.texi: Remove section on the removed lambda framework.
16882 Update loop docs with recent changes in preserving loop structure.
16884 2014-03-18 Richard Biener <rguenther@suse.de>
16886 * doc/lto.texi (-fresolution): Document.
16888 2014-03-18 Richard Biener <rguenther@suse.de>
16890 * doc/contrib.texi: Adjust my name.
16892 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16895 * internal-fn.c: Include diagnostic-core.h.
16896 (expand_BUILTIN_EXPECT): New function.
16897 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16898 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16899 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16900 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16901 IFN_BUILTIN_EXPECT.
16902 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16903 Revert 3 argument __builtin_expect code.
16904 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16905 * gimple-fold.c (gimple_fold_call): Likewise.
16906 * tree.h (fold_builtin_expect): New prototype.
16907 * builtins.c (build_builtin_expect_predicate): Add predictor
16908 argument, if non-NULL, create 3 argument __builtin_expect.
16909 (fold_builtin_expect): No longer static. Add ARG2 argument,
16910 pass it through to build_builtin_expect_predicate.
16911 (fold_builtin_2): Adjust caller.
16912 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16913 * internal-fn.def (BUILTIN_EXPECT): New.
16915 2014-03-18 Tobias Burnus <burnus@net-b.de>
16918 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16919 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16920 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16922 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16925 * predict.c (combine_predictions_for_bb): Fix up formatting.
16926 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16927 fill what it points to if non-NULL.
16928 (tree_predict_by_opcode): Adjust caller, use the predictor.
16929 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16931 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16933 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16934 proper constant for the store mode.
16936 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16938 * symtab.c (change_decl_assembler_name): Fix transparent alias
16939 chain construction.
16941 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16943 * config/aarch64/aarch64.c: Correct the comments about the
16944 aarch64 stack layout.
16946 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
16948 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
16949 check for GF_OMP_FOR_KIND_FOR.
16951 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
16953 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
16954 ymm and zmm register names.
16956 2014-03-17 Jakub Jelinek <jakub@redhat.com>
16959 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
16960 note creation for the 2010-08-31 changes.
16962 2014-03-17 Marek Polacek <polacek@redhat.com>
16964 PR middle-end/60534
16965 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
16966 as -fno-tree-loop-vectorize.
16967 (expand_omp_simd): Likewise.
16969 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
16971 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
16972 (eligible_for_call_delay): New prototype.
16973 * config/sparc/sparc.c (tls_call_delay): Rename into...
16974 (eligible_for_call_delay): ...this. Return false if the instruction
16975 cannot be put in the delay slot of a branch.
16976 (eligible_for_restore_insn): Simplify.
16977 (eligible_for_return_delay): Return false if the instruction cannot be
16978 put in the delay slot of a branch and simplify.
16979 (eligible_for_sibcall_delay): Return false if the instruction cannot be
16980 put in the delay slot of a branch.
16981 * config/sparc/sparc.md (fix_ut699): New attribute.
16982 (tls_call_delay): Delete.
16983 (in_call_delay): Reimplement.
16984 (eligible_for_sibcall_delay): Rename into...
16985 (in_sibcall_delay): ...this.
16986 (eligible_for_return_delay): Rename into...
16987 (in_return_delay): ...this.
16988 (in_branch_delay): Reimplement.
16989 (in_uncond_branch_delay): Delete.
16990 (in_annul_branch_delay): Delete.
16992 2014-03-14 Richard Henderson <rth@redhat.com>
16995 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
16996 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
16997 (*floathi<X87MODEF>2_i387_with_temp): Remove.
16998 (floathi splitters): Remove.
16999 (float<SWI48x>xf2): New pattern.
17000 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17001 code that tried to handle DImode for 32-bit, but which was excluded
17002 by the pattern's condition. Drop allocation of stack temporary.
17003 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17004 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17005 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17006 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17007 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17008 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17009 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17010 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17011 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17012 (*float<SWI48x><X87MODEF>2_i387): Remove.
17013 (all float _with_temp splitters): Remove.
17014 (*float<SWI48x><MODEF>2_i387): New pattern.
17015 (*float<SWI48><MODEF>2_sse): New pattern.
17016 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17017 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17019 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17020 Marek Polacek <polacek@redhat.com>
17022 PR middle-end/60484
17023 * common.opt (dump_base_name_prefixed): New Variable.
17024 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17025 if x_dump_base_name_prefixed is already set, set it at the end.
17027 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17029 PR rtl-optimization/60508
17030 * lra-constraints.c (get_reload_reg): Add new parameter
17032 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17033 Pass the new parameter values.
17035 2014-03-14 Richard Biener <rguenther@suse.de>
17037 * common.opt: Revert unintented changes from r205065.
17038 * opts.c: Likewise.
17040 2014-03-14 Richard Biener <rguenther@suse.de>
17042 PR middle-end/60518
17043 * cfghooks.c (split_block): Properly adjust all loops the
17044 block was a latch of.
17046 2014-03-14 Martin Jambor <mjambor@suse.cz>
17049 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17052 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17055 * config/avr/avr.c (avr_set_current_function): Pass function name
17056 through default_strip_name_encoding before sanity checking instead
17057 of skipping the first char of the assembler name.
17059 2014-03-13 Richard Henderson <rth@redhat.com>
17062 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17063 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17064 * config/i386/i386-protos.h: Likewise.
17065 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17066 in the expander instead of a splitter.
17067 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17068 any possibility of requiring a memory.
17069 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17070 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17071 (fp branch splitters): Update for ix86_split_fp_branch.
17072 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17073 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17074 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17075 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17076 (*fop_<MODEF>_3_i387): Likewise.
17077 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17078 (splitters for the fop_* register patterns): Remove.
17079 (fscalexf4_i387): Rename from *fscalexf4_i387.
17080 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17082 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17084 PR tree-optimization/59779
17085 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17086 type for bitsize and maxsize instead of HOST_WIDE_INT.
17088 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17090 PR rtl-optimization/57320
17091 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17092 the CFG after thread_prologue_and_epilogue_insns.
17094 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17096 PR rtl-optimization/57189
17097 * lra-constraints.c (process_alt_operands): Disfavor spilling
17100 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17102 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17104 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17106 PR tree-optimization/59025
17107 PR middle-end/60418
17108 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17109 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17111 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17114 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17115 calls of avr_out_plus_1.
17117 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17119 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17120 BB's single pred and update the father loop's latch info later.
17122 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17124 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17128 (VEC_base): Likewise.
17129 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17130 registers, we need to swap double words in little endian mode.
17132 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17133 to be a container mode for 128-bit integer operations added in ISA
17134 2.07. Unlike TImode and PTImode, the preferred register set is
17135 the Altivec/VMX registers for the 128-bit operations.
17137 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17139 (rs6000_split_128bit_ok_p): Likewise.
17141 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17142 macros for creating ISA 2.07 normal and overloaded builtin
17143 functions with 3 arguments.
17144 (BU_P8V_OVERLOAD_3): Likewise.
17145 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17146 for use as overloaded functions.
17147 (VPERM_1TI_UNS): Likewise.
17148 (VSEL_1TI): Likewise.
17149 (VSEL_1TI_UNS): Likewise.
17150 (ST_INTERNAL_1ti): Likewise.
17151 (LD_INTERNAL_1ti): Likewise.
17152 (XXSEL_1TI): Likewise.
17153 (XXSEL_1TI_UNS): Likewise.
17154 (VPERM_1TI): Likewise.
17155 (VPERM_1TI_UNS): Likewise.
17156 (XXPERMDI_1TI): Likewise.
17157 (SET_1TI): Likewise.
17158 (LXVD2X_V1TI): Likewise.
17159 (STXVD2X_V1TI): Likewise.
17160 (VEC_INIT_V1TI): Likewise.
17161 (VEC_SET_V1TI): Likewise.
17162 (VEC_EXT_V1TI): Likewise.
17163 (EQV_V1TI): Likewise.
17164 (NAND_V1TI): Likewise.
17165 (ORC_V1TI): Likewise.
17166 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17167 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17168 overloaded builtin.
17169 (VADDUQM): Likewise.
17170 (VSUBCUQ): Likewise.
17171 (VADDEUQM): Likewise.
17172 (VADDECUQ): Likewise.
17173 (VSUBEUQM): Likewise.
17174 (VSUBECUQ): Likewise.
17176 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17177 __int128_t and __uint128_t types.
17178 (__uint128_type): Likewise.
17179 (altivec_categorize_keyword): Add support for vector __int128_t,
17180 vector __uint128_t, vector __int128, and vector unsigned __int128
17181 as a container type for TImode operations that need to be done in
17182 VSX/Altivec registers.
17183 (rs6000_macro_to_expand): Likewise.
17184 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17185 to support 128-bit integer instructions vaddcuq, vadduqm,
17186 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17187 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17189 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17190 for V1TImode, and set up preferences to use VSX/Altivec registers.
17191 Setup VSX reload handlers.
17192 (rs6000_debug_reg_global): Likewise.
17193 (rs6000_init_hard_regno_mode_ok): Likewise.
17194 (rs6000_preferred_simd_mode): Likewise.
17195 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17196 (easy_altivec_constant): Likewise.
17197 (output_vec_const_move): Likewise.
17198 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17200 (rs6000_expand_vector_extract): Likewise.
17201 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17203 (rs6000_const_vec): Add support for V1TImode.
17204 (rs6000_emit_le_vsx_load): Swap double words when loading or
17205 storing TImode/V1TImode.
17206 (rs6000_emit_le_vsx_store): Likewise.
17207 (rs6000_emit_le_vsx_move): Likewise.
17208 (rs6000_emit_move): Add support for V1TImode.
17209 (altivec_expand_ld_builtin): Likewise.
17210 (altivec_expand_st_builtin): Likewise.
17211 (altivec_expand_vec_init_builtin): Likewise.
17212 (altivec_expand_builtin): Likewise.
17213 (rs6000_init_builtins): Add support for V1TImode type. Add
17214 support for ISA 2.07 128-bit integer builtins. Define type names
17215 for the VSX/Altivec vector types.
17216 (altivec_init_builtins): Add support for overloaded vector
17217 functions with V1TImode type.
17218 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17219 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17221 (rs6000_split_128bit_ok_p): Likewise.
17222 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17223 __int128_t and vector __uint128_t.
17225 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17226 and mode attributes.
17228 (VSX_M2): Likewise.
17233 (VS_scalar): Likewise.
17234 (VS_double): Likewise.
17235 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17237 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17238 we support the ISA 2.07 128-bit integer arithmetic instructions.
17239 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17240 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17241 and TImode types for use with the builtin functions.
17242 (V1TI_type_node): Likewise.
17243 (unsigned_V1TI_type_node): Likewise.
17244 (intTI_type_internal_node): Likewise.
17245 (uintTI_type_internal_node): Likewise.
17247 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17248 128-bit builtin functions.
17249 (UNSPEC_VADDEUQM): Likewise.
17250 (UNSPEC_VADDECUQ): Likewise.
17251 (UNSPEC_VSUBCUQ): Likewise.
17252 (UNSPEC_VSUBEUQM): Likewise.
17253 (UNSPEC_VSUBECUQ): Likewise.
17254 (VM): Add V1TImode to vector mode iterators.
17256 (VI_unit): Likewise.
17257 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17258 (altivec_vaddcuq): Likewise.
17259 (altivec_vsubuqm): Likewise.
17260 (altivec_vsubcuq): Likewise.
17261 (altivec_vaddeuqm): Likewise.
17262 (altivec_vaddecuq): Likewise.
17263 (altivec_vsubeuqm): Likewise.
17264 (altivec_vsubecuq): Likewise.
17266 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17268 (BOOL_128): Likewise.
17269 (BOOL_REGS_OUTPUT): Likewise.
17270 (BOOL_REGS_OP1): Likewise.
17271 (BOOL_REGS_OP2): Likewise.
17272 (BOOL_REGS_UNARY): Likewise.
17273 (BOOL_REGS_AND_CR0): Likewise.
17275 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17276 128-bit integer builtin support.
17277 (vec_vadduqm): Likewise.
17278 (vec_vaddecuq): Likewise.
17279 (vec_vaddeuqm): Likewise.
17280 (vec_vsubecuq): Likewise.
17281 (vec_vsubeuqm): Likewise.
17282 (vec_vsubcuq): Likewise.
17283 (vec_vsubuqm): Likewise.
17285 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17286 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17287 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17288 128-bit integer add/subtract to ISA 2.07.
17290 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17292 * config/arc/arc.c (arc_predicate_delay_insns):
17293 Fix third argument passed to conditionalize_nonjump.
17295 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17297 * config/aarch64/aarch64-builtins.c
17298 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17299 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17300 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17301 instead of __builtin_lfloor.
17302 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17304 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17306 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17307 (tree_ssa_ifcombine_bb_1): New function.
17308 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17309 is an empty forwarder block to then_bb or vice versa and then_bb
17310 and else_bb are effectively swapped.
17312 2014-03-12 Christian Bruel <christian.bruel@st.com>
17315 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17316 REG_CFA_DEF_CFA note.
17317 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17318 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17320 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17322 PR tree-optimization/60454
17323 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17325 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17327 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17328 Do not define target_cpu_default2 to generic.
17329 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17330 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17331 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17333 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17334 Marc Glisse <marc.glisse@inria.fr>
17336 PR tree-optimization/60502
17337 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17338 instead of build_low_bits_mask.
17340 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17342 PR middle-end/60482
17343 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17344 if there are multiple uses, but op doesn't live on E edge.
17345 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17346 clobber stmts before __builtin_unreachable.
17348 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17350 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17351 hard_frame_pointer_rtx.
17352 * cse.c (cse_insn): Remove volatile check.
17353 * cselib.c (cselib_process_insn): Likewise.
17354 * dse.c (scan_insn): Likewise.
17356 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17358 * config/arc/arc.c (conditionalize_nonjump): New function,
17360 (arc_ifcvt): ... this.
17361 (arc_predicate_delay_insns): Use it.
17363 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17365 * config/arc/predicates.md (extend_operand): During/after reload,
17366 allow const_int_operand.
17367 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17368 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17369 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17371 (umulsi3_highpart_i): Likewise.
17373 2014-03-11 Richard Biener <rguenther@suse.de>
17375 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17376 Add asserts to guard possible wrong-code bugs.
17378 2014-03-11 Richard Biener <rguenther@suse.de>
17380 PR tree-optimization/60429
17381 PR tree-optimization/60485
17382 * tree-ssa-structalias.c (set_union_with_increment): Properly
17383 take into account all fields that overlap the shifted vars.
17384 (do_sd_constraint): Likewise.
17385 (do_ds_constraint): Likewise.
17386 (get_constraint_for_ptr_offset): Likewise.
17388 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17390 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17391 (nios2_compute_frame_layout):
17392 Add calculation of cfun->machine->fp_save_offset.
17393 (nios2_expand_prologue): Correct setting of frame pointer register
17395 (nios2_expand_epilogue): Update recovery of stack pointer from
17396 frame pointer accordingly.
17397 (nios2_initial_elimination_offset): Update calculation of offset
17398 for eliminating to HARD_FRAME_POINTER_REGNUM.
17400 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17403 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17404 cgraph_get_create_node on VAR_DECLs.
17406 2014-03-10 Richard Biener <rguenther@suse.de>
17408 PR middle-end/60474
17409 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17411 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17413 * config/vms/vms.opt (vms_float_format): New variable.
17415 2014-03-08 Tobias Burnus <burnus@net-b.de>
17417 * doc/invoke.texi (-fcilkplus): Update implementation status.
17419 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17420 Richard Biener <rguenther@suse.de>
17422 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17423 consistently accross all TUs.
17424 (run_gcc): Enable -fshort-double automatically at link at link-time
17425 and disallow override.
17427 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17430 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17431 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17432 if they can't be used.
17434 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17436 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17437 for Solaris 11/x86 ld.
17438 * configure: Regenerate.
17440 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17442 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17443 (LIB_TLS_SPEC): Save as ld_tls_libs.
17444 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17445 (HAVE_AS_IX86_TLSLDM): New test.
17446 * configure, config.in: Regenerate.
17447 * config/i386/i386.c (legitimize_tls_address): Fall back to
17448 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17449 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17450 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17451 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17453 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17455 * common.opt (fira-loop-pressure): Mark as optimization.
17457 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17459 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17460 an OpenMP mappable type.
17462 2014-03-06 Matthias Klose <doko@ubuntu.com>
17464 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17465 MULTILIB_OSDIRNAMES is not defined.
17467 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17468 Meador Inge <meadori@codesourcery.com>
17471 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17472 (arm_legitimize_address): Call legitimize_tls_address for any
17473 arm_tls_referenced_p expression, handle constant addend. Call it
17474 before testing for !TARGET_ARM.
17475 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17477 2014-03-06 Richard Biener <rguenther@suse.de>
17479 PR middle-end/60445
17483 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17485 * tree-streamer.c (record_common_node): Assert we don't record
17486 nodes with type double.
17487 (preload_common_node): Skip type double, complex double and double
17488 pointer since it is now frontend dependent due to fshort-double option.
17490 2014-03-06 Richard Biener <rguenther@suse.de>
17492 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17493 or -fno-lto is specified and the linker has full plugin support.
17494 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17495 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17496 * lto-wrapper.c (merge_and_complain): Merge compile-time
17497 optimization levels.
17498 (run_gcc): And pass it through to the link options.
17500 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17504 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17506 * cselib.c (remove_useless_values): Skip to avoid quadratic
17507 behavior if the condition moved from...
17508 (cselib_process_insn): ... here holds.
17510 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17513 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17514 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17517 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17518 (TM_H): Add x86-tune.def.
17520 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17522 * config/aarch64/aarch64.c (generic_tunings):
17523 Use cortexa57_extra_costs.
17525 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17528 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17529 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17530 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17533 2014-03-04 Heiher <r@hev.cc>
17535 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17536 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17538 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17540 * config/i386/predicates.md (const2356_operand): Change to ...
17541 (const2367_operand): ... this.
17542 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17544 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17545 (*avx512pf_scatterpf<mode>sf): Ditto.
17546 (avx512pf_scatterpf<mode>df): Ditto.
17547 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17548 (*avx512pf_scatterpf<mode>df): Ditto.
17549 * config/i386/i386.c (ix86_expand_builtin): Update
17550 incorrect hint operand error message.
17552 2014-03-04 Richard Biener <rguenther@suse.de>
17554 * lto-section-in.c (lto_get_section_data): Fix const cast.
17556 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17558 * tree-streamer.c (record_common_node): Assert we don't record
17559 nodes with type double.
17560 (preload_common_node): Skip type double, complex double and double
17561 pointer since it is now frontend dependent due to fshort-double option.
17563 2014-03-04 Richard Biener <rguenther@suse.de>
17566 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17567 (lto_input_toplevel_asms): Likewise.
17568 * lto-section-in.c (lto_get_section_data): Instead do it here
17571 2014-03-04 Richard Biener <rguenther@suse.de>
17573 PR tree-optimization/60382
17574 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17575 dead PHIs a reduction.
17577 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17579 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17581 (_mm_prefetch): Move out of GCC target("sse") pragma.
17582 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17583 GCC target("prfchw") pragma.
17584 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17586 * config/i386/i386.c (ix86_option_override_internal): Enable
17587 -mprfchw with -mprefetchwt1.
17589 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17591 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17594 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17596 * opts.h (CL_PCH_IGNORE): Define.
17597 * targhooks.c (option_affects_pch_p):
17598 Return false for options that have CL_PCH_IGNORE set.
17599 * opt-functions.awk: Process PchIgnore.
17600 * doc/options.texi: Document PchIgnore.
17602 * config/arc/arc.opt (misize): Add PchIgnore property.
17604 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17606 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17607 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17608 constraint on constants to permit them being loaded into
17609 GENERAL_REGS or BASE_REGS.
17611 2014-03-03 Nick Clifton <nickc@redhat.com>
17613 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17614 anti-cacnonical alternatives.
17615 (negandhi3_real): New pattern.
17616 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17618 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17620 * config/avr/avr-mcus.def: Remove atxmega16x1.
17621 * config/avr/avr-tables.opt: Regenerate.
17622 * config/avr/t-multilib: Regenerate.
17623 * doc/avr-mmcu.texi: Regenerate.
17625 2014-03-03 Tobias Grosser <tobias@grosser.es>
17626 Mircea Namolaru <mircea.namolaru@inria.fr>
17628 PR tree-optimization/58028
17629 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17632 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17634 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17635 not handled by recognizers.
17637 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17639 PR middle-end/60175
17640 * function.c (expand_function_end): Don't emit
17641 clobber_return_register sequence if clobber_after is a BARRIER.
17642 * cfgexpand.c (construct_exit_block): Append instructions before
17643 return_label to prev_bb.
17645 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17647 * config/rs6000/constraints.md: Document reserved use of "wc".
17649 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17652 * ipa.c (function_and_variable_visibility): When dissolving comdat
17653 group, also set all symbols to local.
17655 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17660 2013-12-14 Jan Hubicka <jh@suse.cz>
17661 PR middle-end/58477
17662 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17664 2014-03-02 Jon Beniston <jon@beniston.com>
17670 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17671 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17672 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17673 (simple_return, *simple_return): New patterns
17674 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17675 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17677 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17679 * dwarf2out.c (gen_subprogram_die): Tidy.
17681 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17684 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17685 (*mov_t_msb_neg_negc): ... this new insn.
17687 2014-02-28 Jason Merrill <jason@redhat.com>
17690 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17693 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17696 * dwarf2out.c (decltype_auto_die): New static.
17697 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17698 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17699 (is_cxx_auto): Likewise.
17701 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17703 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17704 we are not using general regs only.
17706 2014-02-28 Richard Biener <rguenther@suse.de>
17709 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17710 previous fix and only allow to remove trivial pre-headers
17711 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17712 (remove_forwarder_block): Properly update the latch of a loop.
17714 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17717 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17718 (cselib_preserved_hash_table): New.
17719 (preserve_constants_and_equivs): Move preserved vals to it.
17720 (cselib_find_slot): Look it up first.
17721 (cselib_init): Initialize it.
17722 (cselib_finish): Release it.
17723 (dump_cselib_table): Dump it.
17725 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17728 * cselib.c (remove_useless_values): Skip to avoid quadratic
17729 behavior if the condition moved from...
17730 (cselib_process_insn): ... here holds.
17732 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17735 * var-tracking.c (vt_initialize): Apply the same condition to
17736 preserve the CFA base value.
17738 2014-02-28 Joey Ye <joey.ye@arm.com>
17741 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17742 if reload in progress or completed.
17744 2014-02-28 Tobias Burnus <burnus@net-b.de>
17746 PR middle-end/60147
17747 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17750 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17752 * doc/tm.texi.in (Condition Code Status): Update documention for
17753 relative locations of cc0-setter and cc0-user.
17755 2014-02-27 Jeff Law <law@redhat.com>
17757 PR rtl-optimization/52714
17758 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17759 into two independent simple sets, if I3 is a jump, ensure the
17760 pattern we place into I3 is a (set (pc) ...).
17762 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17763 Jeff Law <law@redhat.com>
17765 PR rtl-optimization/49847
17766 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17767 are in different blocks.
17768 * doc/tm.texi (Condition Code Status): Update documention for
17769 relative locations of cc0-setter and cc0-user.
17771 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17774 * lra.c (lra_emit_add): Check SUBREG too.
17776 2014-02-27 Andreas Schwab <schwab@suse.de>
17778 * config/m68k/m68k.c (m68k_option_override): Disable
17779 -flive-range-shrinkage for classic m68k.
17780 (m68k_override_options_after_change): Likewise.
17782 2014-02-27 Marek Polacek <polacek@redhat.com>
17784 PR middle-end/59223
17785 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17786 -Wmaybe-uninitialized.
17788 2014-02-27 Alan Modra <amodra@gmail.com>
17791 * reload1.c (emit_input_reload_insns): When reload_override_in,
17792 set old to rl->in_reg when rl->in_reg is a subreg.
17794 2014-02-26 Richard Biener <rguenther@suse.de>
17797 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17799 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17801 * common/config/i386/predicates.md (const1256_operand): Remove.
17802 (const2356_operand): New.
17803 (const_1_to_2_operand): Remove.
17804 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17805 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17806 (*avx512pf_gatherpf<mode>sf): Ditto.
17807 (avx512pf_gatherpf<mode>df): Ditto.
17808 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17809 (*avx512pf_gatherpf<mode>df): Ditto.
17810 (avx512pf_scatterpf<mode>sf): Ditto.
17811 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17812 (*avx512pf_scatterpf<mode>sf): Ditto.
17813 (avx512pf_scatterpf<mode>df): Ditto.
17814 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17815 (*avx512pf_scatterpf<mode>df): Ditto.
17816 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17818 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17820 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17821 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17822 (_mm512_mask_testn_epi64_mask): Move to ...
17823 * config/i386/avx512cdintrin.h: Here.
17824 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17825 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17826 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17827 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17828 TARGET_AVX512F from TARGET_AVX512CD.
17830 2014-02-26 Richard Biener <rguenther@suse.de>
17833 * ipa.c (walk_polymorphic_call_targets): Properly guard
17834 call to inline_update_overall_summary.
17836 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17839 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17840 and latches only if requested. Fix latch if it is removed.
17841 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17842 LOOPS_HAVE_PREHEADERS.
17844 2014-02-25 Andrew Pinski <apinski@cavium.com>
17846 * builtins.c (expand_builtin_thread_pointer): Create a new target
17847 when the target is NULL.
17849 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17851 PR rtl-optimization/60317
17852 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17853 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17854 * lra-assigns.c: Include params.h.
17855 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17856 other reload pseudos considerations.
17858 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17860 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17861 to use canonical form for nor<mode>3.
17863 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17866 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17869 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17871 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17872 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17873 (ix86_handle_option): Handle OPT_mprefetchwt1.
17874 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17875 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17877 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17878 OPTION_MASK_ISA_PREFETCHWT1.
17879 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17880 (PTA_PREFETCHWT1): New.
17881 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17882 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17883 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17884 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17885 (*prefetch_avx512pf_<mode>_: Change into ...
17886 (*prefetch_prefetchwt1_<mode>: This.
17887 * config/i386/i386.opt (mprefetchwt1): New.
17888 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17889 (_mm_prefetch): Handle intent to write.
17890 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17892 2014-02-25 Richard Biener <rguenther@suse.de>
17894 PR middle-end/60291
17895 * emit-rtl.c (mem_attrs_htab): Remove.
17896 (mem_attrs_htab_hash): Likewise.
17897 (mem_attrs_htab_eq): Likewise.
17898 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17899 (init_emit_once): Do not allocate mem_attrs_htab.
17901 2014-02-25 Richard Biener <rguenther@suse.de>
17904 * lto-opts.c (lto_write_options): Output non-explicit conservative
17905 -fwrapv, -fno-trapv and -fno-strict-overflow.
17906 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17907 (run_gcc): And pass them through.
17909 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17911 * sel-sched.c (calculate_new_fences): New parameter ptime.
17912 Calculate it as a maximum over all fence cycles.
17913 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17914 Print the final schedule timing when sched_verbose.
17916 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17918 PR rtl-optimization/60292
17919 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17920 bit fot the fence instruction.
17922 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17924 * calls.h: Fix typo in comment.
17926 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17928 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17929 adjusting offsetable addresses.
17931 2014-02-24 Guozhi Wei <carrot@google.com>
17933 * sparseset.h (sparseset_pop): Fix the wrong index.
17935 2014-02-24 Walter Lee <walt@tilera.com>
17937 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17938 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17940 * common/config/tilegx/tilegx-common.c
17941 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17942 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17943 (LINK_SPEC): Ditto.
17944 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
17945 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
17946 (tilegx_gimplify_va_arg_expr): Handle big endian.
17947 (tilegx_expand_unaligned_load): Ditto.
17948 (tilegx_expand_unaligned_store): Ditto.
17949 (TARGET_RETURN_IN_MSB): New.
17950 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
17951 (TARGET_ENDIAN_DEFAULT): New.
17952 (TARGET_BIG_ENDIAN): Handle big endian.
17953 (BYTES_BIG_ENDIAN): Ditto.
17954 (WORDS_BIG_ENDIAN): Ditto.
17955 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
17956 (ENDIAN_SPEC): New.
17957 (EXTRA_SPECS): New.
17958 * config/tilegx/tilegx.md (extv): Handle big endian.
17960 (insn_st<n>): Ditto.
17961 (insn_st<n>_add<bitsuffix>): Ditto.
17962 (insn_stnt<n>): Ditto.
17963 (insn_stnt<n>_add<bitsuffix>):Ditto.
17964 (vec_interleave_highv8qi): Handle big endian.
17965 (vec_interleave_highv8qi_be): New.
17966 (vec_interleave_highv8qi_le): New.
17967 (insn_v1int_h): Handle big endian.
17968 (vec_interleave_lowv8qi): Handle big endian.
17969 (vec_interleave_lowv8qi_be): New.
17970 (vec_interleave_lowv8qi_le): New.
17971 (insn_v1int_l): Handle big endian.
17972 (vec_interleave_highv4hi): Handle big endian.
17973 (vec_interleave_highv4hi_be): New.
17974 (vec_interleave_highv4hi_le): New.
17975 (insn_v2int_h): Handle big endian.
17976 (vec_interleave_lowv4hi): Handle big endian.
17977 (vec_interleave_lowv4hi_be): New.
17978 (vec_interleave_lowv4hi_le): New.
17979 (insn_v2int_l): Handle big endian.
17980 (vec_interleave_highv2si): Handle big endian.
17981 (vec_interleave_highv2si_be): New.
17982 (vec_interleave_highv2si_le): New.
17983 (insn_v4int_h): Handle big endian.
17984 (vec_interleave_lowv2si): Handle big endian.
17985 (vec_interleave_lowv2si_be): New.
17986 (vec_interleave_lowv2si_le): New.
17987 (insn_v4int_l): Handle big endian.
17988 * config/tilegx/tilegx.opt (mbig-endian): New option.
17989 (mlittle-endian): New option.
17990 * doc/install.texi: Document tilegxbe-linux.
17991 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
17993 2014-02-24 Martin Jambor <mjambor@suse.cz>
17996 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
17997 there are no parameter descriptors.
17999 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18001 PR rtl-optimization/60268
18002 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18003 initialization to ...
18004 (sched_rgn_init): ... here.
18005 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18007 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18009 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18012 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18014 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18017 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18019 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18020 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18022 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18024 * config/microblaze/predicates.md: Add cmp_op predicate.
18025 * config/microblaze/microblaze.md: Add branch_compare instruction
18026 which uses cmp_op predicate and emits cmp insn before branch.
18027 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18028 to microblaze_expand_conditional_branch and consolidate logic.
18029 (microblaze_expand_conditional_branch): emit branch_compare
18030 insn instead of handling cmp op separate from branch insn.
18032 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18034 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18037 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18039 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18040 define_insn with define_expand and new define_insn
18041 *altivec_lve<VI_char>x_internal.
18042 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18043 and new define_insn *altivec_stve<VI_char>x_internal.
18044 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18046 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18048 (altivec_expand_stvex_be): New function.
18050 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18052 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18053 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18054 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18055 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18057 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18060 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18061 instead of emit_move_insn.
18063 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18065 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18066 vspltw with vsldoi.
18067 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18068 gen_altivec_vsumsws.
18070 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18072 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18073 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18074 (altivec_lvxl_<mode>): New define_expand incorporating
18075 -maltivec=be semantics where needed.
18076 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18077 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18078 semantics where needed.
18079 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18080 (altivec_stvx_<mode>): New define_expand incorporating
18081 -maltivec=be semantics where needed.
18082 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18083 VM2 iterator instead of V4SI.
18084 (altivec_stvxl_<mode>): New define_expand incorporating
18085 -maltivec=be semantics where needed.
18086 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18087 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18088 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18089 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18090 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18091 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18092 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18093 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18094 ALTIVEC_BUILTIN_STVXL.
18095 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18096 (altivec_expand_stvx_be): Likewise.
18097 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18098 (altivec_expand_lvx_be): Likewise.
18099 (altivec_expand_stvx_be): Likewise.
18100 (altivec_expand_builtin): Add cases for
18101 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18102 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18103 (altivec_init_builtins): Add definitions for
18104 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18105 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18107 2014-02-21 Catherine Moore <clm@codesourcery.com>
18109 * doc/invoke.texi (mvirt, mno-virt): Document.
18110 * config/mips/mips.opt (mvirt): New option.
18111 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18113 2014-02-21 Richard Biener <rguenther@suse.de>
18115 PR tree-optimization/60276
18116 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18117 (STMT_VINFO_MIN_NEG_DIST): New macro.
18118 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18119 STMT_VINFO_MIN_NEG_DIST.
18120 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18121 made for negative dependence distances still hold.
18123 2014-02-21 Richard Biener <rguenther@suse.de>
18125 PR middle-end/60291
18126 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18127 DECL_INITIAL for globals not in the current function context.
18129 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18131 PR tree-optimization/56490
18132 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18133 * tree-ssa-uninit.c: Include params.h.
18134 (compute_control_dep_chain): Add num_calls argument, return false
18135 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18136 num_calls to recursive call.
18137 (find_predicates): Change dep_chain into normal array,
18138 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18139 variable and adjust compute_control_dep_chain caller.
18140 (find_def_preds): Likewise.
18142 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18144 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18145 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18147 2014-02-21 Nick Clifton <nickc@redhat.com>
18149 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18150 (pushhi1): Likewise.
18151 (popqi1): Add mode to pre_dec.
18152 (pophi1): Likewise.
18154 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18156 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18157 mode for mask of V8SFmode permutation.
18159 2014-02-20 Richard Henderson <rth@redhat.com>
18162 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18163 a new pseudo for OLDVAL.
18165 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18168 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18169 gen_reg_rtx if d->testing_p.
18170 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18171 if d->testing_p and we will certainly return true.
18172 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18175 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18177 * emit-rtl.c (gen_reg_rtx): Assert that
18178 crtl->emit.regno_pointer_align_length is non-zero.
18180 2014-02-20 Richard Henderson <rth@redhat.com>
18183 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18184 on failure the store back into EXPECT.
18186 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18187 Sandra Loosemore <sandra@codesourcery.com>
18189 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18190 * config/nios2/nios2.c (nios2_function_profiler): Add
18191 -fPIC (flag_pic == 2) support.
18192 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18193 (nios2_large_offset_p): New function.
18194 (nios2_unspec_reloc_p): Move up position, update to use
18195 nios2_large_offset_p.
18196 (nios2_unspec_address): Remove function.
18197 (nios2_unspec_offset): New function.
18198 (nios2_large_got_address): New function.
18199 (nios2_got_address): Add large offset support.
18200 (nios2_legitimize_tls_address): Update usage of removed and new
18202 (nios2_symbol_binds_local_p): New function.
18203 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18204 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18205 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18206 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18207 processing for (const (unspec ...)).
18208 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18210 2014-02-20 Richard Biener <rguenther@suse.de>
18212 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18213 doing the substitution.
18214 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18216 2014-02-20 Martin Jambor <mjambor@suse.cz>
18219 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18220 info when checking whether lattices are bottom.
18222 2014-02-20 Richard Biener <rguenther@suse.de>
18224 PR middle-end/60221
18225 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18228 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18231 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18232 parameter specifying the scaling.
18233 (inline_call): Update.
18234 (want_inline_recursively): Guard division by zero.
18235 (recursive_inlining): Update.
18236 * ipa-inline.h (clone_inlined_nodes): Update.
18238 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18241 * config/i386/i386.c (classify_argument): Pass structures of size
18242 64 bytes or less in register.
18244 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18245 Kirill Yukhin <kirill.yukhin@intel.com>
18247 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18248 (_mm_rcp28_round_ss): Ditto.
18249 (_mm_rsqrt28_round_sd): Ditto.
18250 (_mm_rsqrt28_round_ss): Ditto.
18251 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18252 (_mm_rcp14_round_ss): Ditto.
18253 (_mm_rsqrt14_round_sd): Ditto.
18254 (_mm_rsqrt14_round_ss): Ditto.
18255 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18256 the first input operand, get rid of match_dup.
18257 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18259 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18261 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18262 operand as the first input operand, set type attribute.
18263 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18264 Set type attribute.
18265 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18266 operand as the first input operand, set type attribute.
18268 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18270 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18273 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18276 * config/i386/i386.c (construct_container): Remove TFmode check
18277 for X86_64_INTEGER_CLASS.
18279 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18282 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18283 only when -Wpsabi is enabled.
18285 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18288 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18289 passing arrays in registers are the same as for structs, so remove the
18290 special case for them.
18292 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18294 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18295 destination type, extract only the valid bits if the source type is not
18296 integral and has a different mode.
18298 2014-02-19 Richard Biener <rguenther@suse.de>
18301 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18304 2014-02-19 Richard Biener <rguenther@suse.de>
18307 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18308 (ipa_modify_call_arguments): Emit an argument load explicitely and
18309 preserve virtual SSA form there and for the replacement call.
18310 Do not update SSA form nor free dominance info.
18312 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18314 * ipa.c (function_and_variable_visibility): Also clear WEAK
18315 flag when disolving COMDAT_GROUP.
18317 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18319 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18320 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18321 not devirtualizing.
18322 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18323 do more sanity checks.
18324 (detect_type_change): Return true when giving up early.
18325 (compute_complex_assign_jump_func): Fix type parameter of
18326 ipa_set_ancestor_jf.
18327 (compute_complex_ancestor_jump_func): Likewise.
18328 (update_jump_functions_after_inlining): Fix updating of
18330 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18332 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18334 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18335 inline clones when edge disappears.
18337 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18340 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18341 Split 64-bit moves into 2 patterns. Do not allow the use of
18342 direct move for TDmode in little endian, since the decimal value
18343 has little endian bytes within a word, but the 64-bit pieces are
18344 ordered in a big endian fashion, and normal subreg's of TDmode are
18346 (mov<mode>_64bit_dm): Likewise.
18347 (movtd_64bit_nodm): Likewise.
18349 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18351 PR tree-optimization/60174
18352 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18353 statement of an SSA_NAME that occurs in an abnormal PHI node.
18355 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18358 * final.c (SEEN_BB): Remove.
18359 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18360 (final_scan_insn): Don't force_source_line on second
18361 NOTE_INSN_BASIC_BLOCK.
18363 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18366 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18367 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18368 (type_natural_mode): Warn ABI change when %zmm register is not
18369 available for AVX512F vector value passing.
18371 2014-02-18 Kai Tietz <ktietz@redhat.com>
18374 * config/i386/i386.c (ix86_expand_prologue): Use value in
18375 rax register as displacement when restoring %r10 or %rax.
18376 Fix wrong offset when restoring both registers.
18378 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18380 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18381 assertion with conditional return.
18383 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18384 Uros Bizjak <ubizjak@gmail.com>
18387 * config/i386/driver-i386.c (host_detect_local_cpu): If
18388 YMM state is not saved by the OS, also clear has_f16c. Move
18389 CPUID 0x80000001 handling before YMM state saving checking.
18391 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18393 PR rtl-optimization/58960
18394 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18395 factored out from ...
18396 (sched_init): ... here.
18397 (free_global_sched_pressure_data): New, factored out from ...
18398 (sched_finish): ... here.
18399 * sched-int.h (free_global_sched_pressure_data): Declare.
18400 * sched-rgn.c (nr_regions_initial): New static global.
18401 (haifa_find_rgns): Initialize it.
18402 (schedule_region): Disable sched-pressure for the newly
18405 2014-02-17 Richard Biener <rguenther@suse.de>
18407 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18408 release SSA defs of pattern stmts.
18410 2014-02-17 Richard Biener <rguenther@suse.de>
18412 * tree-inline.c (expand_call_inline): Release the virtual
18413 operand defined by the call we are about to inline.
18415 2014-02-17 Richard Biener <rguenther@suse.de>
18417 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18419 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18420 Ilya Tocar <ilya.tocar@intel.com>
18422 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18423 arguments order in builtin.
18424 (_mm512_permutexvar_epi64): Ditto.
18425 (_mm512_mask_permutexvar_epi64): Ditto
18426 (_mm512_maskz_permutexvar_epi32): Ditto
18427 (_mm512_permutexvar_epi32): Ditto
18428 (_mm512_mask_permutexvar_epi32): Ditto
18430 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18432 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18433 (p8_vmrgow): Likewise.
18435 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18437 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18440 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18443 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18444 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18445 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18446 using direct move instructions on ISA 2.07. Also adjust
18447 instruction length for 64-bit.
18448 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18449 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18451 2014-02-15 Alan Modra <amodra@gmail.com>
18455 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18456 find_replacement on parts of insn rtl that might be reloaded.
18458 2014-02-15 Richard Biener <rguenther@suse.de>
18460 PR tree-optimization/60183
18461 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18462 (tree_ssa_phiprop): Calculate and free post-dominators.
18464 2014-02-14 Jeff Law <law@redhat.com>
18466 PR rtl-optimization/60131
18467 * ree.c (get_extended_src_reg): New function.
18468 (combine_reaching_defs): Use it rather than assuming location of REG.
18469 (find_and_remove_re): Verify first operand of extension is
18470 a REG before adding the insns to the copy list.
18472 2014-02-14 Roland McGrath <mcgrathr@google.com>
18474 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18475 * configure: Regenerated.
18476 * config.in: Regenerated.
18477 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18478 instead of ASM_SHORT.
18480 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18481 Richard Earnshaw <rearnsha@arm.com>
18483 PR rtl-optimization/59535
18484 * lra-constraints.c (process_alt_operands): Encourage alternative
18485 when unassigned pseudo class is superset of the alternative class.
18486 (inherit_reload_reg): Don't inherit when optimizing for code size.
18487 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18488 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18489 modes not less than 4 for Thumb1.
18491 2014-02-14 Kyle McMartin <kyle@redhat.com>
18494 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18496 2014-02-14 Richard Biener <rguenther@suse.de>
18498 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18499 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18500 Do not strip INDIRECT_REFs.
18502 2014-02-14 Richard Biener <rguenther@suse.de>
18505 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18506 DECL_FUNCTION_SPECIFIC_TARGET.
18507 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18508 * tree-streamer-out.c (pack_ts_target_option): Remove.
18509 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18510 (write_ts_function_decl_tree_pointers): Do not stream
18511 DECL_FUNCTION_SPECIFIC_TARGET.
18512 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18513 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18514 (lto_input_ts_function_decl_tree_pointers): Do not stream
18515 DECL_FUNCTION_SPECIFIC_TARGET.
18517 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18519 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18520 (get_initial_def_for_induction, vectorizable_induction): Ignore
18521 debug stmts when looking for exit_phi.
18522 (vectorizable_live_operation): Fix up condition.
18524 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18526 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18527 nreverse() because it changes the content of original tree list.
18529 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18531 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18532 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18534 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18536 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18537 GNU coding standards.
18539 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18542 * dwarf2out.c (gen_subprogram_die): Don't call
18543 add_calling_convention_attribute if subr_die is old_die.
18545 2014-02-13 Sharad Singhai <singhai@google.com>
18547 * doc/optinfo.texi: Fix order of nodes.
18549 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18551 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18552 operands[2], not operands[3].
18554 2014-02-13 Richard Biener <rguenther@suse.de>
18557 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18558 mention the possibility of an in-tree build.
18559 (CLooG): Update recommended version to 0.18.1, mention the
18560 possibility of an in-tree build and clarify that the ISL
18561 bundled with CLooG does not work.
18563 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18566 * expr.c (compress_float_constant): If x is a hard register,
18567 extend into a pseudo and then move to x.
18569 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18571 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18572 caused by bad second argument to warning_at() with -mhotpatch and
18573 nested functions (e.g. with gfortran).
18575 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18577 * opts.c (option_name): Remove "enabled by default" rider.
18579 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18581 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18583 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18584 Uros Bizjak <ubizjak@gmail.com>
18587 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18588 * configure: Regenerated.
18590 2014-02-12 Richard Biener <rguenther@suse.de>
18592 * vec.c (vec_prefix::calculate_allocation): Move as
18593 inline variant to vec.h.
18594 (vec_prefix::calculate_allocation_1): New out-of-line version.
18595 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18596 (vec_prefix::m_has_auto_buf): Rename to ...
18597 (vec_prefix::m_using_auto_storage): ... this.
18598 (vec_prefix::calculate_allocation): Inline the easy cases
18599 and dispatch to calculate_allocation_1 which doesn't need the
18601 (va_heap::reserve): Use gcc_checking_assert.
18602 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18603 m_using_auto_storage.
18604 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18606 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18607 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18608 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18610 2014-02-12 Richard Biener <rguenther@suse.de>
18612 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18613 when we found a dependence.
18615 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18617 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18619 (maybe_fold_stmt): ... into this new function.
18620 * omp-low.c (lower_omp): Update comment.
18622 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18625 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18628 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18630 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18631 identifiers in comments.
18632 (cortexa53_extra_costs): Likewise.
18633 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18634 (cortexa7_extra_costs): Likewise.
18635 (cortexa12_extra_costs): Likewise.
18636 (cortexa15_extra_costs): Likewise.
18637 (v7m_extra_costs): Likewise.
18639 2014-02-12 Richard Biener <rguenther@suse.de>
18641 PR middle-end/60092
18642 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18643 of posix_memalign being successful.
18644 (lower_stmt): Restrict lowering of posix_memalign to when
18645 -ftree-bit-ccp is enabled.
18647 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18649 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18651 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18653 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18655 PR rtl-optimization/60116
18656 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18657 other_insn once the combination has been validated.
18659 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18662 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18664 * ipa-devirt.c: Include demangle.h
18665 (odr_violation_reported): New static variable.
18666 (add_type_duplicate): Update odr_violations.
18667 (maybe_record_node): Add completep parameter; update it.
18668 (record_target_from_binfo): Add COMPLETEP parameter;
18669 update it as needed.
18670 (possible_polymorphic_call_targets_1): Likewise.
18671 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18672 rename FINAL to COMPLETE.
18673 (record_targets_from_bases): Sanity check we found the binfo;
18674 fix COMPLETEP updating.
18675 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18676 parameter, fix computing of COMPLETEP.
18677 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18678 at LTO time do demangling.
18679 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18680 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18682 (gimple_get_virt_method_for_binfo): Likewise.
18683 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18684 gimple_get_virt_method_for_vtable): Update prototypes.
18686 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18689 * genautomata.c (add_presence_absence): Fix typo with
18690 {final_}presence_list.
18692 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18695 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18696 for VSX/Altivec vectors that land in GPR registers.
18698 2014-02-11 Richard Henderson <rth@redhat.com>
18699 Jakub Jelinek <jakub@redhat.com>
18702 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18703 around drhs if type conversion to lacc->type is not useless.
18705 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18707 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18709 (cortex-a57.cortex-a53): Likewise.
18710 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18712 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18714 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18717 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18719 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18720 add_options_for_arm_vfp3.
18722 2014-02-11 Jeff Law <law@redhat.com>
18724 PR middle-end/54041
18725 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18726 object with an undesirable mode.
18728 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18731 * config/i386/sol2-9.h: New file.
18732 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18733 *-*-solaris2.9*): Use it.
18735 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18737 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18738 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18740 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18742 * config/microblaze/microblaze.c: Extend mcpu version format
18744 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18746 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18748 2014-02-10 Richard Henderson <rth@redhat.com>
18751 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18752 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18753 ms-abi vs -mno-accumulate-outgoing-args.
18754 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18755 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18758 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18760 PR middle-end/60080
18761 * cfgexpand.c (expand_asm_operands): Attach source location to
18762 ASM_INPUT rtx objects.
18763 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18765 2014-02-10 Nick Clifton <nickc@redhat.com>
18767 * config/mn10300/mn10300.c (popcount): New function.
18768 (mn10300_expand_prologue): Include saved registers in stack usage
18771 2014-02-10 Jeff Law <law@redhat.com>
18773 PR middle-end/52306
18774 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18775 when changing the SET_DEST of a prior insn to avoid an input reload.
18777 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18779 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18780 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18781 -mcall-openbsd, or -mcall-linux.
18782 (CC1_ENDIAN_BIG_SPEC): Remove.
18783 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18784 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18785 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18786 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18787 and %cc1_endian_default.
18788 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18790 2014-02-10 Richard Biener <rguenther@suse.de>
18792 PR tree-optimization/60115
18793 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18794 MEM_REF handling. Properly verify that the accesses are not
18795 out of the objects bound.
18797 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18799 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18802 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18804 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18805 proper constants and fix formatting.
18806 (possible_polymorphic_call_targets): Fix formatting.
18808 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18809 Ilya Tocar <ilya.tocar@intel.com>
18811 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18812 (_mm512_loadu_epi32): Renamed into...
18813 (_mm512_loadu_si512): This.
18814 (_mm512_storeu_epi32): Renamed into...
18815 (_mm512_storeu_si512): This.
18816 (_mm512_maskz_ceil_ps): Removed.
18817 (_mm512_maskz_ceil_pd): Ditto.
18818 (_mm512_maskz_floor_ps): Ditto.
18819 (_mm512_maskz_floor_pd): Ditto.
18820 (_mm512_floor_round_ps): Ditto.
18821 (_mm512_floor_round_pd): Ditto.
18822 (_mm512_ceil_round_ps): Ditto.
18823 (_mm512_ceil_round_pd): Ditto.
18824 (_mm512_mask_floor_round_ps): Ditto.
18825 (_mm512_mask_floor_round_pd): Ditto.
18826 (_mm512_mask_ceil_round_ps): Ditto.
18827 (_mm512_mask_ceil_round_pd): Ditto.
18828 (_mm512_maskz_floor_round_ps): Ditto.
18829 (_mm512_maskz_floor_round_pd): Ditto.
18830 (_mm512_maskz_ceil_round_ps): Ditto.
18831 (_mm512_maskz_ceil_round_pd): Ditto.
18832 (_mm512_expand_pd): Ditto.
18833 (_mm512_expand_ps): Ditto.
18834 * config/i386/i386.c (ix86_builtins): Remove
18835 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18836 (bdesc_args): Ditto.
18837 * config/i386/predicates.md (const1256_operand): New.
18838 (const_1_to_2_operand): Ditto.
18839 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18840 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18841 (*avx512pf_gatherpf<mode>sf): Ditto.
18842 (avx512pf_gatherpf<mode>df): Ditto.
18843 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18844 (*avx512pf_gatherpf<mode>df): Ditto.
18845 (avx512pf_scatterpf<mode>sf): Ditto.
18846 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18847 (*avx512pf_scatterpf<mode>sf): Ditto.
18848 (avx512pf_scatterpf<mode>df): Ditto.
18849 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18850 (*avx512pf_scatterpf<mode>df): Ditto.
18851 (avx512f_expand<mode>): Removed.
18852 (<shift_insn><mode>3<mask_name>): Change predicate type.
18854 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18856 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18857 not at the end of datarefs vector use ordered_remove to avoid
18858 reordering datarefs vector.
18861 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18862 mark local addressable non-static vars as GOVD_PRIVATE
18863 instead of GOVD_LOCAL.
18864 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18865 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18868 PR middle-end/60092
18869 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18870 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18871 assume_aligned or alloc_align attributes.
18872 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18873 arguments. Handle also assume_aligned and alloc_align attributes.
18874 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18875 calls to functions with assume_aligned or alloc_align attributes.
18876 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18878 2014-02-08 Terry Guo <terry.guo@arm.com>
18880 * doc/invoke.texi: Document ARM -march=armv7e-m.
18882 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18884 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18885 flag on __cilkrts_rethrow builtin.
18888 * ipa-cp.c (determine_versionability): Fail at -O0
18889 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18890 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18893 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18896 * tree-inline.c (copy_forbidden): Fail for
18897 __attribute__((optimize (0))) functions.
18899 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18901 * varpool.c: Include pointer-set.h.
18902 (varpool_remove_unreferenced_decls): Variables in other partitions
18903 will not be output; be however careful to not lose information
18904 about partitioning.
18906 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18908 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18909 lookup in the vtable constructor.
18911 2014-02-07 Jeff Law <law@redhat.com>
18914 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18915 define_insn_and_split.
18917 * ipa-inline.c (inline_small_functions): Fix typos.
18919 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18921 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18922 (s390_can_use_return_insn): Declare.
18923 * config/s390/s390.h (EPILOGUE_USES): Define.
18924 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18926 (s390_chunkify_start): Handle return JUMP_LABELs.
18927 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18928 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18929 (s390_can_use_return_insn): New functions.
18930 (s390_fix_long_loop_prediction): Handle conditional returns.
18931 (TARGET_SET_UP_BY_PROLOGUE): Define.
18932 * config/s390/s390.md (ANY_RETURN): New code iterator.
18933 (*creturn, *csimple_return, return, simple_return): New patterns.
18935 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18937 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18938 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18939 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18940 REG_CFA_RESTORE list when deciding not to restore a register.
18942 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18944 * config/s390/s390.c: Include tree-pass.h and context.h.
18945 (s390_early_mach): New function, split out from...
18946 (s390_emit_prologue): ...here.
18947 (pass_data_s390_early_mach): New pass structure.
18948 (pass_s390_early_mach): New class.
18949 (s390_option_override): Create and register early_mach pass.
18950 Move to end of file.
18952 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18954 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
18955 to match for the exit block.
18957 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18959 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
18960 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
18961 Reject misaligned operands.
18963 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18965 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
18967 2014-02-07 Richard Biener <rguenther@suse.de>
18969 PR middle-end/60092
18970 * gimple-low.c (lower_builtin_posix_memalign): New function.
18971 (lower_stmt): Call it to lower posix_memalign in a way
18972 to make alignment info accessible.
18974 2014-02-07 Jakub Jelinek <jakub@redhat.com>
18977 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
18978 __builtin_setjmp_receiver.
18980 2014-02-07 Richard Biener <rguenther@suse.de>
18982 PR middle-end/60092
18983 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
18984 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
18985 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18986 Handle BUILT_IN_POSIX_MEMALIGN.
18987 (find_func_clobbers): Likewise.
18988 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18989 (call_may_clobber_ref_p_1): Likewise.
18991 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18994 * ipa-devirt.c (record_target_from_binfo): Remove overactive
18997 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19000 * lto-cgraph.c (lto_output_node): Use
19001 symtab_get_symbol_partitioning_class.
19002 (lto_output_varpool_node): likewise.
19003 (symtab_get_symbol_partitioning_class): Move here from
19004 lto/lto-partition.c
19005 * cgraph.h (symbol_partitioning_class): Likewise.
19006 (symtab_get_symbol_partitioning_class): Declare.
19008 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19010 * ggc.h (ggc_internal_cleared_alloc): New macro.
19011 * vec.h (vec_safe_copy): Handle memory stats.
19012 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19013 * target-globals.c (save_target_globals): Likewise.
19015 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19018 * expr.c (emit_move_resolve_push): Export; be bit more selective
19019 on when to clear alias set.
19020 * expr.h (emit_move_resolve_push): Declare.
19021 * function.h (struct function): Add tail_call_marked.
19022 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19023 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19024 * config/i386/i386.md (TImode move expander): De not call
19026 (FP push expanders): Preserve memory attributes.
19027 * config/i386/sse.md (push<mode>1): Remove.
19028 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19029 (ix86_expand_push): Remove.
19030 * config/i386/mmx.md (push<mode>1): Remove.
19032 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19034 PR rtl-optimization/60030
19035 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19036 lopart with paradoxical subreg before shifting it up by hprec.
19038 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19040 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19041 Remove extra newline at end of file.
19042 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19043 (arm_issue_rate): Handle cortexa57.
19044 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19045 (cortex-a57.cortex-a53): Likewise.
19047 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19050 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19051 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19053 (arm_expand_prologue): Adjust all callers.
19054 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19055 info, registers also at the lowest numbered registers side. Use
19056 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19060 * var-tracking.c (adjust_mems): Before adding a SET to
19061 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19063 2014-02-06 Alan Modra <amodra@gmail.com>
19066 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19067 change SDmode to DDmode when lra_in_progress.
19069 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19071 PR middle-end/59150
19072 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19073 free_data_ref on the dr first, and before goto again also set dr
19074 to the next dr. For simd_lane_access, free old datarefs[i] before
19075 overwriting it. For get_vectype_for_scalar_type failure, don't
19076 free_data_ref if simd_lane_access.
19078 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19081 * tree.h (opts_for_fn): New inline function.
19082 (opt_for_fn): Define.
19083 * config/i386/i386.c (ix86_function_regparm): Use
19084 opt_for_fn (decl, optimize) instead of optimize.
19086 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19088 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19089 for SYMBOL_REF in large memory model.
19091 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19093 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19094 and crypto support.
19095 (cortex-a57): Likewise.
19096 (cortex-a57.cortex-a53): Likewise.
19098 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19099 Kugan Vivekanandarajah <kuganv@linaro.org>
19101 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19103 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19105 2014-02-06 Richard Biener <rguenther@suse.de>
19107 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19108 set_loop_copy and initialize_original_copy_tables.
19110 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19112 * config/aarch64/aarch64-simd.md
19113 (aarch64_ashr_simddi): Change QI to SI.
19115 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19116 Jakub Jelinek <jakub@redhat.com>
19118 PR middle-end/60013
19119 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19122 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19124 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19125 CODE_FOR_altivec_vpku[hw]um to
19126 CODE_FOR_altivec_vpku[hw]um_direct.
19127 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19128 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19129 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19130 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19132 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19134 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19135 generation for -maltivec=be.
19136 (altivec_vsumsws): Simplify redundant test.
19138 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19140 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19141 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19142 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19143 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19144 gen_altivec_vpkuwum.
19145 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19147 (altivec_vpks<VI_char>ss): Likewise.
19148 (altivec_vpks<VI_char>us): Likewise.
19149 (altivec_vpku<VI_char>us): Likewise.
19150 (altivec_vpku<VI_char>um): Likewise.
19151 (altivec_vpku<VI_char>um_direct): New (copy of
19152 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19154 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19155 target is little endian and -maltivec=be is not specified.
19156 (*altivec_vupkhs<VU_char>_direct): New (copy of
19157 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19158 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19159 target is little endian and -maltivec=be is not specified.
19160 (*altivec_vupkls<VU_char>_direct): New (copy of
19161 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19162 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19163 little endian and -maltivec=be is not specified.
19164 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19165 little endian and -maltivec=be is not specified.
19167 2014-02-05 Richard Henderson <rth@redhat.com>
19170 * combine-stack-adj.c: Revert r206943.
19171 * sched-int.h (struct deps_desc): Add last_args_size.
19172 * sched-deps.c (init_deps): Initialize it.
19173 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19174 contain REG_ARGS_SIZE notes.
19176 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19178 * lto-cgraph.c (asm_nodes_output): Make global.
19179 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19180 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19181 (driver_handle_option): Handle OPT_fwpa.
19183 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19186 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19187 a comment typo and formatting issue. If odr_hash hasn't been
19188 created, return vNULL and set *completep to false.
19190 PR middle-end/57499
19191 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19192 bb with no successors.
19194 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19197 * doc/invoke.texi (-march): Clarify documentation for ARM.
19198 (-mtune): Likewise.
19201 2014-02-05 Richard Biener <rguenther@suse.de>
19203 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19204 when not vectorizing because of too many alias checks.
19205 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19206 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19208 2014-02-05 Nick Clifton <nickc@redhat.com>
19210 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19211 accept extended registers in any mode when compiling for the MN10300.
19213 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19215 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19216 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19217 sanitization attributes.
19218 (can_inline_edge_p): Likewise.
19219 (sanitize_attrs_match_for_inline_p): New function.
19221 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19223 * ipa-prop.c (detect_type_change): Shor circuit testing of
19224 type changes on THIS pointer.
19226 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19229 * config/pa/pa.c (legitimize_tls_address): Return original address
19230 if not passed a SYMBOL_REF rtx.
19231 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19233 (pa_emit_move_sequence): Simplify TLS source operands.
19234 (pa_legitimate_constant_p): Reject all TLS constants.
19235 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19236 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19238 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19240 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19241 groups when we know they are controlled by LTO.
19242 * varasm.c (default_binds_local_p_1): If object is in other partition,
19243 it will be resolved locally.
19245 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19247 * config/host-linux.c (linux_gt_pch_use_address): Don't
19248 use SSIZE_MAX because it is not always defined.
19250 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19253 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19254 threshold for pseudo splitting.
19255 (update_ebb_live_info): Process call argument hard registers and
19256 hard registers from insn definition too.
19257 (max_small_class_regs_num): New constant.
19258 (inherit_in_ebb): Update live hard regs through EBBs. Update
19259 reloads_num only for small register classes. Don't split for
19262 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19265 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19268 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19270 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19271 visibility is safe.
19273 2014-02-04 Marek Polacek <polacek@redhat.com>
19275 * gdbinit.in (pel): Define.
19277 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19279 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19282 2014-02-04 Richard Biener <rguenther@suse.de>
19285 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19286 in function context local.
19287 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19288 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19289 similar to LTO_imported_decl_ref.
19291 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19293 PR tree-optimization/60002
19294 * cgraphclones.c (build_function_decl_skip_args): Clear
19295 DECL_LANG_SPECIFIC.
19297 PR tree-optimization/60023
19298 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19299 false to gsi_replace.
19300 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19301 has been in some EH region and vec_stmt could throw, add
19302 vec_stmt into the same EH region.
19303 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19304 has no lhs, ignore it.
19305 * internal-fn.c (expand_MASK_LOAD): Likewise.
19308 * tree-inline.c (copy_forbidden): Fail for
19309 __attribute__((optimize (0))) functions.
19312 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19313 is set, copy one less argument.
19314 (expand_simd_clones): Don't subtract clone_info->inbranch
19315 from simd_clone_struct_alloc argument.
19317 PR rtl-optimization/57915
19318 * recog.c (simplify_while_replacing): If all unary/binary/relational
19319 operation arguments are constant, attempt to simplify those.
19321 PR middle-end/59261
19322 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19323 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19325 2014-02-04 Richard Biener <rguenther@suse.de>
19327 PR tree-optimization/60012
19328 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19329 TBAA disambiguation to all DDRs.
19331 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19334 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19335 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19337 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19340 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19342 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19344 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19345 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19347 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19350 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19351 to figure out targets of polymorphic calls with known decl.
19352 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19353 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19354 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19355 (get_polymorphic_call_info): ... here.
19356 (get_polymorphic_call_info_from_invariant): New function.
19358 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19360 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19361 lookup via vtable pointer; check for type consistency
19362 and turn inconsitent facts into UNREACHABLE.
19363 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19364 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19365 type inconsistent querries; return UNREACHABLE instead.
19367 2014-02-03 Richard Henderson <rth@twiddle.net>
19370 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19371 already processed this node.
19372 (normalize_one_pred_1): Pass along mark_set.
19373 (normalize_one_pred): Create and destroy a pointer_set_t.
19374 (normalize_one_pred_chain): Likewise.
19376 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19378 PR gcov-profile/58602
19379 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19381 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19384 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19385 -fno-devirtualize; try to devirtualize by the knowledge of
19386 virtual table pointer given by aggregate propagation.
19387 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19388 (ipa_print_node_jump_functions): Dump also offset that
19389 is relevant for polymorphic calls.
19390 (determine_known_aggregate_parts): Add arg_type parameter; use it
19391 instead of determining the type from pointer type.
19392 (ipa_compute_jump_functions_for_edge): Update call of
19393 determine_known_aggregate_parts.
19394 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19395 (gimple_get_virt_method_for_binfo): ... here; simplify using
19396 vtable_pointer_value_to_vtable.
19397 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19398 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19399 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19400 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19402 (vtable_pointer_value_to_binfo): ... here.
19403 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19405 2014-02-03 Teresa Johnson <tejohnson@google.com>
19407 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19408 redef of outer loop index variable.
19410 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19414 * doc/extend.texi (Function Attributes): Typo.
19416 2014-02-03 Cong Hou <congh@google.com>
19418 PR tree-optimization/60000
19419 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19420 if the vectorized statement is a store. A store statement can only
19421 appear at the end of pattern statements.
19423 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19425 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19426 (ix86_option_override_internal): Default long double to 64-bit for
19427 32-bit Bionic and to 128-bit for 64-bit Bionic.
19429 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19430 TARGET_LONG_DOUBLE_128 is true.
19431 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19433 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19434 (mlong-double-64): Negate -mlong-double-128.
19435 (mlong-double-128): New option.
19437 * config/i386/i386-c.c (ix86_target_macros): Define
19438 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19440 * doc/invoke.texi: Document -mlong-double-128.
19442 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19444 PR rtl-optimization/60024
19445 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19447 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19449 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19451 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19453 PR rtl-optimization/57662
19454 * sel-sched.c (code_motion_path_driver): Do not mark already not
19455 existing blocks in the visiting bitmap.
19457 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19459 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19460 on the insn being emitted.
19462 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19463 Will Deacon <will.deacon@arm.com>
19465 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19467 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19469 * config/arm/arm-tables.opt: Regenerate.
19471 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19473 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19474 for vector types other than V16QImode.
19475 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19476 define_expand, and call altivec_expand_vec_perm_le when producing
19477 code with little endian element order.
19478 (*altivec_vperm_<mode>_internal): New insn having previous
19479 behavior of altivec_vperm_<mode>.
19480 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19481 altivec_expand_vec_perm_le when producing code with little endian
19483 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19484 behavior of altivec_vperm_<mode>_uns.
19486 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19488 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19489 (altivec_vsumsws): Add handling for -maltivec=be with a little
19491 (altivec_vsumsws_direct): New.
19492 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19493 gen_altivec_vsumsws.
19495 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19497 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19498 vtable_pointer_value_to_binfo): New functions.
19499 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19500 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19502 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19504 * config/nios2/nios2.md (load_got_register): Initialize GOT
19505 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19506 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19508 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19510 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19511 preserverd by passthrough, do not propagate the type.
19513 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19515 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19516 (mips_atomic_assign_expand_fenv): New function.
19517 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19519 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19521 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19522 (__builtin_mips_set_fcsr): Likewise.
19523 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19524 MIPS_USI_FTYPE_VOID.
19525 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19526 (mips16_expand_set_fcsr): Likewise.
19527 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19528 (mips16_set_fcsr_stub): Likewise.
19529 (mips16_get_fcsr_one_only_stub): New class.
19530 (mips16_set_fcsr_one_only_stub): Likewise.
19531 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19532 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19533 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19534 (hard_float): New availability predicate.
19535 (mips_builtins): Add get_fcsr and set_fcsr.
19536 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19537 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19538 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19539 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19540 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19543 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19545 * config/mips/mips.c (mips_one_only_stub): New class.
19546 (mips_need_mips16_rdhwr_p): Replace with...
19547 (mips16_rdhwr_stub): ...this new variable.
19548 (mips16_stub_call_address): New function.
19549 (mips16_rdhwr_one_only_stub): New class.
19550 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19551 (mips_output_mips16_rdhwr): Delete.
19552 (mips_finish_stub): New function.
19553 (mips_code_end): Use it to handle rdhwr stubs.
19555 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19558 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19559 when calculating size of integer atomic types.
19561 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19563 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19565 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19567 PR tree-optimization/60003
19568 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19569 * profile.c (branch_prob): Use gimple_call_builtin_p
19570 to check for BUILT_IN_SETJMP_RECEIVER.
19571 * tree-inline.c (copy_bb): Call notice_special_calls.
19573 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19576 * lra-constraints.c (process_alt_operands): Update reload_sum only
19579 2014-01-31 Richard Henderson <rth@redhat.com>
19581 PR middle-end/60004
19582 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19583 until after else_eh is processed.
19585 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19587 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19588 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19589 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19590 in smmintrin.h, remove them.
19591 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19592 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19593 * config/i386/i386.md (ROUND_SAE): Fix value.
19594 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19595 (const48_operand): New.
19596 * config/i386/subst.md (round), (round_expand): Use
19597 const_4_or_8_to_11_operand.
19598 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19600 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19602 * config/i386/constraints.md (Yk): Swap meaning with k.
19603 * config/i386/i386.md (movhi_internal): Change Yk to k.
19604 (movqi_internal): Ditto.
19605 (*k<logic><mode>): Ditto.
19608 (kandn<mode>): Ditto.
19609 (*<code>hi_1): Ditto.
19610 (*<code>qi_1): Ditto.
19611 (kxnor<mode>): Ditto.
19612 (kortestzhi): Ditto.
19613 (kortestchi): Ditto.
19615 (*one_cmplhi2_1): Ditto.
19616 (*one_cmplqi2_1): Ditto.
19617 * config/i386/sse.md (): Change k to Yk.
19618 (avx512f_load<mode>_mask): Ditto.
19619 (avx512f_blendm<mode>): Ditto.
19620 (avx512f_store<mode>_mask): Ditto.
19621 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19622 (avx512f_storedqu<mode>_mask): Ditto.
19623 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19625 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19626 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19627 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19628 (avx512f_maskcmp<mode>3): Ditto.
19629 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19630 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19631 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19632 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19633 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19634 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19635 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19636 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19637 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19638 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19639 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19640 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19641 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19642 (vec_extract_lo_<mode>_maskm): Ditto.
19643 (vec_extract_hi_<mode>_maskm): Ditto.
19644 (avx512f_vternlog<mode>_mask): Ditto.
19645 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19646 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19647 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19648 (avx512f_<code>v8div16qi2_mask): Ditto.
19649 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19650 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19651 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19652 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19653 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19654 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19655 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19656 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19657 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19658 (avx512cd_maskb_vec_dupv8di): Ditto.
19659 (avx512cd_maskw_vec_dupv16si): Ditto.
19660 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19661 (avx512f_vpermi2var<mode>3_mask): Ditto.
19662 (avx512f_vpermi2var<mode>3_mask): Ditto.
19663 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19664 (*avx512f_gathersi<mode>): Ditto.
19665 (*avx512f_gathersi<mode>_2): Ditto.
19666 (*avx512f_gatherdi<mode>): Ditto.
19667 (*avx512f_gatherdi<mode>_2): Ditto.
19668 (*avx512f_scattersi<mode>): Ditto.
19669 (*avx512f_scatterdi<mode>): Ditto.
19670 (avx512f_compress<mode>_mask): Ditto.
19671 (avx512f_compressstore<mode>_mask): Ditto.
19672 (avx512f_expand<mode>_mask): Ditto.
19673 * config/i386/subst.md (mask): Change k to Yk.
19674 (mask_scalar_merge): Ditto.
19677 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19679 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19681 2014-01-31 Richard Biener <rguenther@suse.de>
19683 PR middle-end/59990
19684 * builtins.c (fold_builtin_memory_op): Make sure to not
19685 use a floating-point mode or a boolean or enumeral type for
19686 the copy operation.
19688 2014-01-30 DJ Delorie <dj@redhat.com>
19690 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19691 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19692 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19693 whenever main() has an epilogue.
19695 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19697 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19698 unused variable "field".
19699 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19700 (vsx_mergeh_<mode>): Likewise.
19701 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19702 (altivec_vmrghh): Likewise.
19703 (altivec_vmrghw): Likewise.
19704 (altivec_vmrglb): Likewise.
19705 (altivec_vmrglh): Likewise.
19706 (altivec_vmrglw): Likewise.
19707 (altivec_vspltb): Add missing uses.
19708 (altivec_vsplth): Likewise.
19709 (altivec_vspltw): Likewise.
19710 (altivec_vspltsf): Likewise.
19712 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19715 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19716 frame related instructions.
19718 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19720 PR rtl-optimization/59959
19721 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19722 any reload of register whose subreg is invalid.
19724 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19726 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19727 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19728 Add missing return type - void.
19730 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19732 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19733 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19734 remove element index adjustment for endian (now handled in vsx.md
19736 (altivec_expand_vec_perm_const): Use
19737 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19738 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19739 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19740 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19741 define_expand and a new define_insn *altivec_vspltb_internal;
19742 adjust for -maltivec=be on a little endian target.
19743 (altivec_vspltb_direct): New.
19744 (altivec_vsplth): Divide into a define_expand and a new
19745 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19746 little endian target.
19747 (altivec_vsplth_direct): New.
19748 (altivec_vspltw): Divide into a define_expand and a new
19749 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19750 little endian target.
19751 (altivec_vspltw_direct): New.
19752 (altivec_vspltsf): Divide into a define_expand and a new
19753 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19754 a little endian target.
19756 2014-01-30 Richard Biener <rguenther@suse.de>
19758 PR tree-optimization/59993
19759 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19760 can propagate form the earlier stmt and avoid the transform
19761 when the intermediate result is needed.
19763 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19765 * README.Portability: Fix typo.
19767 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19769 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19770 comparison_operator with ordered_comparison_operator.
19772 2014-01-30 Nick Clifton <nickc@redhat.com>
19774 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19775 Rename to mn10300_store_multiple_regs.
19776 * config/mn10300/mn10300.c: Likewise.
19777 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19778 store_multiple_regs.
19779 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19780 Call mn10300_store_multiple_regs.
19782 2014-01-30 Nick Clifton <nickc@redhat.com>
19783 DJ Delorie <dj@redhat.com>
19785 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19786 %fp 2 to keep registers after it properly word-aligned.
19787 (rl78_alloc_physical_registers_umul): Handle the case where both
19788 input operands are the same.
19790 2014-01-30 Richard Biener <rguenther@suse.de>
19792 PR tree-optimization/59903
19793 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19796 2014-01-30 Jason Merrill <jason@redhat.com>
19799 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19802 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19804 2014-01-30 Richard Biener <rguenther@suse.de>
19806 PR tree-optimization/59951
19807 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19809 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19812 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19813 SFmode to DFmode case.
19815 2014-01-29 DJ Delorie <dj@redhat.com>
19817 * config/msp430/msp430.opt (-minrt): New.
19818 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19820 (ENDFILE_SPEC): Likewise.
19822 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19824 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19825 (estimate_function_body_sizes): Use it.
19827 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19830 * dwarf2out.c (is_cxx_auto): New.
19831 (is_base_type): Use it.
19832 (gen_type_die_with_usage): Likewise.
19834 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19836 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19837 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19838 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19839 -maltivec=be with LE targets.
19840 (vsx_mergeh_<mode>): Likewise.
19841 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19842 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19843 (altivec_vmrghb): Replace with define_expand and new
19844 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19845 (altivec_vmrghb_direct): New define_insn.
19846 (altivec_vmrghh): Replace with define_expand and new
19847 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19848 (altivec_vmrghh_direct): New define_insn.
19849 (altivec_vmrghw): Replace with define_expand and new
19850 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19851 (altivec_vmrghw_direct): New define_insn.
19852 (*altivec_vmrghsf): Adjust for endianness.
19853 (altivec_vmrglb): Replace with define_expand and new
19854 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19855 (altivec_vmrglb_direct): New define_insn.
19856 (altivec_vmrglh): Replace with define_expand and new
19857 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19858 (altivec_vmrglh_direct): New define_insn.
19859 (altivec_vmrglw): Replace with define_expand and new
19860 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19861 (altivec_vmrglw_direct): New define_insn.
19862 (*altivec_vmrglsf): Adjust for endianness.
19863 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19864 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19865 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19866 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19867 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19868 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19869 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19870 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19872 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19874 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19875 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19878 2014-01-29 Richard Biener <rguenther@suse.de>
19880 PR tree-optimization/58742
19881 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19882 associate_pointerplus_align.
19883 (associate_pointerplus_diff): New function.
19884 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19885 and associate_pointerplus_diff.
19887 2014-01-29 Richard Biener <rguenther@suse.de>
19889 * lto-streamer.h (LTO_major_version): Bump to 3.
19890 (LTO_minor_version): Reset to 0.
19892 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19894 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19895 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19896 (arm_file_start): Generate correct asm header for armv7ve.
19897 * config/arm/bpabi.h: Add multilib support for armv7ve.
19898 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19899 and cortex-a15 to armv7ve.
19900 * config/arm/t-aprofile: Add multilib support for armv7ve.
19901 * doc/invoke.texi: Document -march=armv7ve.
19903 2014-01-29 Richard Biener <rguenther@suse.de>
19905 PR tree-optimization/58742
19906 * tree-ssa-forwprop.c (associate_plusminus): Return true
19907 if we changed sth, defer EH cleanup to ...
19908 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19909 (simplify_mult): New function.
19911 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19913 PR middle-end/59917
19914 PR tree-optimization/59920
19915 * tree.c (build_common_builtin_nodes): Remove
19916 __builtin_setjmp_dispatcher initialization.
19917 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19918 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19919 instead of gsi_after_labels + manually skipping debug stmts.
19920 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19921 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19922 * tree-inline.c (copy_edges_for_bb): Remove
19923 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19924 argument. Ignore computed_goto_p stmts. Don't call
19925 make_abnormal_goto_edges. If a call might need abnormal edges
19926 for non-local gotos, see if it already has an edge to
19927 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19928 with true argument, don't do anything then, otherwise add
19929 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19930 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19932 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19933 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19934 (lower_stmt): Don't set data->calls_builtin_setjmp.
19935 (lower_builtin_setjmp): Adjust comment.
19936 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19937 * tree-cfg.c (found_computed_goto): Remove.
19938 (factor_computed_gotos): Remove.
19939 (make_goto_expr_edges): Return bool, true for computed gotos.
19940 Don't call make_abnormal_goto_edges.
19941 (build_gimple_cfg): Don't set found_computed_goto, don't call
19942 factor_computed_gotos.
19943 (computed_goto_p): No longer static.
19944 (make_blocks): Don't set found_computed_goto.
19945 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
19946 (make_edges): If make_goto_expr_edges returns true, push bb
19947 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
19948 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
19949 vector. Record mapping between bbs and OpenMP regions if there
19950 are any, adjust make_gimple_omp_edges caller. Call
19951 handle_abnormal_edges.
19952 (make_abnormal_goto_edges): Remove.
19953 * tree-cfg.h (make_abnormal_goto_edges): Remove.
19954 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
19955 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
19956 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
19957 * internal-fn.def (ABNORMAL_DISPATCHER): New.
19958 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
19959 filling *region also set *region_idx to (*region)->entry->index.
19962 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
19963 For REGs set ORIGINAL_REGNO.
19965 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
19967 * doc/md.texi: Mention that a target shouldn't implement
19968 vec_widen_(s|u)mul_even/odd pair if it is less efficient
19971 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19973 PR tree-optimization/59594
19974 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
19975 a copy of the datarefs vector rather than the vector itself.
19977 2014-01-28 Jason Merrill <jason@redhat.com>
19980 * dwarf2out.c (auto_die): New static.
19981 (gen_type_die_with_usage): Handle C++1y 'auto'.
19982 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
19985 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
19988 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
19989 (SPEC_X32): Likewise.
19990 (SPEC_64): Likewise.
19991 * config/i386/i386.c (ix86_option_override_internal): Turn off
19992 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
19994 (x86_file_start): Output .code16gcc for TARGET_16BIT.
19995 * config/i386/i386.h (TARGET_16BIT): New macro.
19996 (TARGET_16BIT_P): Likewise.
19997 * config/i386/i386.opt: Add m16.
19998 * doc/invoke.texi: Document -m16.
20000 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20002 PR preprocessor/59935
20003 * input.c (location_get_source_line): Bail out on when line number
20004 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20006 2014-01-28 Richard Biener <rguenther@suse.de>
20008 PR tree-optimization/58742
20009 * tree-ssa-forwprop.c (associate_plusminus): Handle
20010 pointer subtraction of the form (T)(P + A) - (T)P.
20012 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20014 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20017 2014-01-28 Richard Biener <rguenther@suse.de>
20020 2014-01-28 Richard Biener <rguenther@suse.de>
20022 PR rtl-optimization/45364
20023 PR rtl-optimization/59890
20024 * var-tracking.c (local_get_addr_clear_given_value): Handle
20025 already cleared slot.
20026 (val_reset): Handle not allocated local_get_addr_cache.
20027 (vt_find_locations): Use post-order on the inverted CFG.
20029 2014-01-28 Richard Biener <rguenther@suse.de>
20031 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20033 2014-01-28 Richard Biener <rguenther@suse.de>
20035 PR rtl-optimization/45364
20036 PR rtl-optimization/59890
20037 * var-tracking.c (local_get_addr_clear_given_value): Handle
20038 already cleared slot.
20039 (val_reset): Handle not allocated local_get_addr_cache.
20040 (vt_find_locations): Use post-order on the inverted CFG.
20042 2014-01-28 Alan Modra <amodra@gmail.com>
20044 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20045 * configure.ac <recursive call for build != host>: Define
20046 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20047 and LD_FOR_BUILD too.
20048 * configure: Regenerate.
20050 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20052 * config/i386/i386.c (get_builtin_code_for_version): Separate
20053 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20054 Broadwell from Haswell.
20056 2014-01-27 Steve Ellcey <sellcey@mips.com>
20058 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20059 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20060 * config/mips/mips.c (mips_option_override): Change setting
20062 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20063 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20064 Change from Mask to Var.
20066 2014-01-27 Jeff Law <law@redhat.com>
20068 * ipa-inline.c (inline_small_functions): Fix typo.
20070 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20072 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20073 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20074 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20075 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20076 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20077 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20078 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20079 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20080 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20081 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20082 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20083 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20084 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20085 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20086 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20087 (_mm512_storeu_epi64): Ditto.
20088 (_mm512_cmpge_epi32_mask): Ditto.
20089 (_mm512_cmpge_epu32_mask): Ditto.
20090 (_mm512_cmpge_epi64_mask): Ditto.
20091 (_mm512_cmpge_epu64_mask): Ditto.
20092 (_mm512_cmple_epi32_mask): Ditto.
20093 (_mm512_cmple_epu32_mask): Ditto.
20094 (_mm512_cmple_epi64_mask): Ditto.
20095 (_mm512_cmple_epu64_mask): Ditto.
20096 (_mm512_cmplt_epi32_mask): Ditto.
20097 (_mm512_cmplt_epu32_mask): Ditto.
20098 (_mm512_cmplt_epi64_mask): Ditto.
20099 (_mm512_cmplt_epu64_mask): Ditto.
20100 (_mm512_cmpneq_epi32_mask): Ditto.
20101 (_mm512_cmpneq_epu32_mask): Ditto.
20102 (_mm512_cmpneq_epi64_mask): Ditto.
20103 (_mm512_cmpneq_epu64_mask): Ditto.
20104 (_mm512_expand_pd): Ditto.
20105 (_mm512_expand_ps): Ditto.
20106 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20107 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20108 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20109 * config/i386/i386.c (ix86_builtins): Add
20110 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20111 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20112 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20113 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20114 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20115 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20116 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20117 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20118 IX86_BUILTIN_PMOVUSQW512_MEM.
20119 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20120 __builtin_ia32_pmovsqd512mem_mask,
20121 __builtin_ia32_pmovqd512mem_mask,
20122 __builtin_ia32_pmovusqw512mem_mask,
20123 __builtin_ia32_pmovsqw512mem_mask,
20124 __builtin_ia32_pmovqw512mem_mask,
20125 __builtin_ia32_pmovusdw512mem_mask,
20126 __builtin_ia32_pmovsdw512mem_mask,
20127 __builtin_ia32_pmovdw512mem_mask,
20128 __builtin_ia32_pmovqb512mem_mask,
20129 __builtin_ia32_pmovusqb512mem_mask,
20130 __builtin_ia32_pmovsqb512mem_mask,
20131 __builtin_ia32_pmovusdb512mem_mask,
20132 __builtin_ia32_pmovsdb512mem_mask,
20133 __builtin_ia32_pmovdb512mem_mask.
20134 (bdesc_args): Add __builtin_ia32_expanddf512,
20135 __builtin_ia32_expandsf512.
20136 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20137 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20138 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20139 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20140 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20141 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20142 (avx512f_<code>v8div16qi2_mask_store): This.
20143 (avx512f_expand<mode>): New.
20145 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20147 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20149 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20150 (_mm512_prefetch_i32scatter_pd): Ditto.
20151 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20152 (_mm512_prefetch_i64scatter_pd): Ditto.
20153 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20154 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20155 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20156 (_mm512_prefetch_i32scatter_ps): Ditto.
20157 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20158 (_mm512_prefetch_i64scatter_ps): Ditto.
20159 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20160 * config/i386/i386-builtin-types.def: Define
20161 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20162 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20163 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20164 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20165 IX86_BUILTIN_SCATTERPFQPD.
20166 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20167 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20168 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20169 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20170 __builtin_ia32_scatterpfqps.
20171 (ix86_expand_builtin): Expand new built-ins.
20172 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20173 fix memory access data type.
20174 (*avx512pf_gatherpf<mode>_mask): Ditto.
20175 (*avx512pf_gatherpf<mode>): Ditto.
20176 (avx512pf_scatterpf<mode>): Ditto.
20177 (*avx512pf_scatterpf<mode>_mask): Ditto.
20178 (*avx512pf_scatterpf<mode>): Ditto.
20179 (GATHER_SCATTER_SF_MEM_MODE): New.
20180 (avx512pf_gatherpf<mode>df): Ditto.
20181 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20182 (*avx512pf_scatterpf<mode>df): Ditto.
20184 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20187 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20188 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20191 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20193 * common/config/arm/arm-common.c
20194 (arm_rewrite_mcpu): Handle multiple names.
20196 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20198 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20200 * gimple-builder.h (create_gimple_tmp): Delete.
20202 2014-01-27 Christian Bruel <christian.bruel@st.com>
20204 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20207 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20209 * config/pa/pa.md (call): Generate indirect long calls to non-local
20210 functions when outputing 32-bit code.
20211 (call_value): Likewise except for special call to buggy powf function.
20213 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20214 portable runtime and PIC indirect calls.
20215 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20216 and PIC call sequences. Use ldo instead of blr to set return register
20217 in PIC call sequence.
20219 2014-01-25 Walter Lee <walt@tilera.com>
20221 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20222 avoid clobbering a live register.
20224 2014-01-25 Walter Lee <walt@tilera.com>
20226 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20227 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20228 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20229 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20231 2014-01-25 Walter Lee <walt@tilera.com>
20233 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20234 arguments on even registers.
20235 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20237 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20238 (BIGGEST_ALIGNMENT): Ditto.
20239 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20241 2014-01-25 Walter Lee <walt@tilera.com>
20243 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20244 insns before bundling.
20245 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20247 2014-01-25 Walter Lee <walt@tilera.com>
20249 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20250 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20251 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20253 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20255 * config/mips/constraints.md (kl): Delete.
20256 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20257 define expands, using...
20258 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20259 instructions for MIPS16.
20260 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20261 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20263 2014-01-25 Walter Lee <walt@tilera.com>
20265 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20269 2014-01-25 Walter Lee <walt@tilera.com>
20271 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20272 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20274 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20276 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20279 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20281 * print-rtl.c (in_call_function_usage): New var.
20282 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20283 EXPR_LIST mode as mode and not as reg note name.
20285 PR middle-end/59561
20286 * cfgloopmanip.c (copy_loop_info): If
20287 loop->warned_aggressive_loop_optimizations, make sure
20288 the flag is set in target loop too.
20290 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20292 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20294 * builtins.def: Likewise.
20295 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20296 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20297 * ira.c (ira_setup_eliminable_regset): Likewise.
20298 * omp-low.c (gate_expand_omp): Likewise.
20299 (execute_lower_omp): Likewise.
20300 (diagnose_sb_0): Likewise.
20301 (gate_diagnose_omp_blocks): Likewise.
20302 (simd_clone_clauses_extract): Likewise.
20305 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20307 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20308 correction for little endian...
20309 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20312 2014-01-24 Jeff Law <law@redhat.com>
20314 PR tree-optimization/59919
20315 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20316 for non-returning calls.
20318 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20320 * common/config/aarch64/aarch64-common.c
20321 (aarch64_rewrite_mcpu): Handle multiple names.
20322 * config/aarch64/aarch64.h
20323 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20325 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20327 * input.c (add_file_to_cache_tab): Handle the case where fopen
20330 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20333 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20334 from push operand if code of push isn't PRE_DEC.
20336 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20339 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20340 -mquad-memory-atomic. Update -mquad-memory documentation to say
20341 it is only used for non-atomic loads/stores.
20343 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20344 -mquad-memory or -mquad-memory-atomic switches.
20346 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20347 -mquad-memory-atomic to ISA 2.07 support.
20349 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20350 to separate support of normal quad word memory operations (ldq, stq)
20351 from the atomic quad word memory operations.
20353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20354 support to separate non-atomic quad word operations from atomic
20355 quad word operations. Disable non-atomic quad word operations in
20356 little endian mode so that we don't have to swap words after the
20357 load and before the store.
20358 (quad_load_store_p): Add comment about atomic quad word support.
20359 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20360 options printed with -mdebug=reg.
20362 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20363 -mquad-memory-atomic as the test for whether we have quad word
20364 atomic instructions.
20365 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20366 or -mp8-vector are used, allow byte/half-word atomic operations.
20368 * config/rs6000/sync.md (load_lockedti): Insure that the address
20369 is a proper indexed or indirect address for the lqarx instruction.
20370 On little endian systems, swap the hi/lo registers after the lqarx
20372 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20373 insure the address is valid for the lqarx instruction.
20374 (store_conditionalti): Insure that the address is a proper indexed
20375 or indirect address for the stqcrx. instruction. On little endian
20376 systems, swap the hi/lo registers before doing the stqcrx.
20378 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20379 insure the address is valid for the stqcrx. instruction.
20381 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20382 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20383 type of quad memory support is available.
20385 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20387 PR regression/59915
20388 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20389 there is a danger of looping.
20391 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20393 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20394 force flag_ira_loop_pressure if set via command line.
20396 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20398 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20399 (ashr_simd): New builtin handling DI mode.
20400 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20401 (aarch64_sshr_simddi): New match pattern.
20402 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20403 (vshrd_n_s64): Likewise.
20404 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20406 2014-01-23 Nick Clifton <nickc@redhat.com>
20408 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20409 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20410 favour of mcu specific scripts.
20411 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20414 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20415 Alex Velenko <Alex.Velenko@arm.com>
20417 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20418 (vaddv_s16): Likewise.
20419 (vaddv_s32): Likewise.
20420 (vaddv_u8): Likewise.
20421 (vaddv_u16): Likewise.
20422 (vaddv_u32): Likewise.
20423 (vaddvq_s8): Likewise.
20424 (vaddvq_s16): Likewise.
20425 (vaddvq_s32): Likewise.
20426 (vaddvq_s64): Likewise.
20427 (vaddvq_u8): Likewise.
20428 (vaddvq_u16): Likewise.
20429 (vaddvq_u32): Likewise.
20430 (vaddvq_u64): Likewise.
20431 (vaddv_f32): Likewise.
20432 (vaddvq_f32): Likewise.
20433 (vaddvq_f64): Likewise.
20434 (vmaxv_f32): Likewise.
20435 (vmaxv_s8): Likewise.
20436 (vmaxv_s16): Likewise.
20437 (vmaxv_s32): Likewise.
20438 (vmaxv_u8): Likewise.
20439 (vmaxv_u16): Likewise.
20440 (vmaxv_u32): Likewise.
20441 (vmaxvq_f32): Likewise.
20442 (vmaxvq_f64): Likewise.
20443 (vmaxvq_s8): Likewise.
20444 (vmaxvq_s16): Likewise.
20445 (vmaxvq_s32): Likewise.
20446 (vmaxvq_u8): Likewise.
20447 (vmaxvq_u16): Likewise.
20448 (vmaxvq_u32): Likewise.
20449 (vmaxnmv_f32): Likewise.
20450 (vmaxnmvq_f32): Likewise.
20451 (vmaxnmvq_f64): Likewise.
20452 (vminv_f32): Likewise.
20453 (vminv_s8): Likewise.
20454 (vminv_s16): Likewise.
20455 (vminv_s32): Likewise.
20456 (vminv_u8): Likewise.
20457 (vminv_u16): Likewise.
20458 (vminv_u32): Likewise.
20459 (vminvq_f32): Likewise.
20460 (vminvq_f64): Likewise.
20461 (vminvq_s8): Likewise.
20462 (vminvq_s16): Likewise.
20463 (vminvq_s32): Likewise.
20464 (vminvq_u8): Likewise.
20465 (vminvq_u16): Likewise.
20466 (vminvq_u32): Likewise.
20467 (vminnmv_f32): Likewise.
20468 (vminnmvq_f32): Likewise.
20469 (vminnmvq_f64): Likewise.
20471 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20473 * config/aarch64/aarch64-simd.md
20474 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20475 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20476 (*aarch64_mul3_elt<mode>): Likewise.
20477 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20478 (*aarch64_mul3_elt_to_64v2df): Likewise.
20479 (*aarch64_mla_elt<mode>): Likewise.
20480 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20481 (*aarch64_mls_elt<mode>): Likewise.
20482 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20483 (*aarch64_fma4_elt<mode>): Likewise.
20484 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20485 (*aarch64_fma4_elt_to_64v2df): Likewise.
20486 (*aarch64_fnma4_elt<mode>): Likewise.
20487 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20488 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20489 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20490 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20491 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20492 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20493 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20494 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20495 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20497 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20499 * config/aarch64/aarch64-simd.md
20500 (aarch64_be_checked_get_lane<mode>): New define_expand.
20501 * config/aarch64/aarch64-simd-builtins.def
20502 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20503 New builtin definition.
20504 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20505 Use new safe be builtin.
20507 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20509 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20511 (aarch64_be_st1<mode>): Likewise.
20512 (aarch_ld1<VALL:mode>): Define_expand modified.
20513 (aarch_st1<VALL:mode>): Likewise.
20514 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20515 (UNSPEC_ST1): Likewise.
20517 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20519 * config/microblaze/microblaze.md: Add trap insn and attribute
20521 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20523 PR preprocessor/58580
20524 * input.h (location_get_source_line): Take an additional line_size
20526 (void diagnostics_file_cache_fini): Declare new function.
20527 * input.c (struct fcache): New type.
20528 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20529 New static constants.
20530 (diagnostic_file_cache_init, total_lines_num)
20531 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20532 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20533 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20534 (get_next_line, read_next_line, goto_next_line, read_line_num):
20535 New static function definitions.
20536 (diagnostic_file_cache_fini): New function.
20537 (location_get_source_line): Take an additional output line_len
20538 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20540 * diagnostic.c (diagnostic_finish): Call
20541 diagnostic_file_cache_fini.
20542 (adjust_line): Take an additional input parameter for the length
20543 of the line, rather than calculating it with strlen.
20544 (diagnostic_show_locus): Adjust the use of
20545 location_get_source_line and adjust_line with respect to their new
20546 signature. While displaying a line now, do not stop at the first
20547 null byte. Rather, display the zero byte as a space and keep
20548 going until we reach the size of the line.
20549 * Makefile.in: Add vec.o to OBJS-libcommon
20551 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20552 Ilya Tocar <ilya.tocar@intel.com>
20554 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20555 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20556 (__builtin_ia32_kmov16): Ditto.
20557 * config/i386/i386.md (UNSPEC_KMOV): New.
20560 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20562 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20563 (_mm512_storeu_si512): Ditto.
20565 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20568 * rtl.h (get_referenced_operands): Declare.
20569 * recog.c (get_referenced_operands): New function.
20570 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20571 operands have been referenced when recording LO_SUM references.
20573 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20575 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20577 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20579 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20580 Enable for generic and recent AMD targets.
20582 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20584 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20585 ARG_SIZE note when adjustment was eliminated.
20587 2014-01-22 Jeff Law <law@redhat.com>
20589 PR tree-optimization/59597
20590 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20591 in file. Accept new argument REGISTERING and use it to modify
20592 dump output appropriately.
20593 (register_jump_thread): Corresponding changes.
20594 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20595 thread paths involving joiner blocks. Add code to dump cancelled
20596 jump threading paths.
20598 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20600 PR rtl-optimization/59477
20601 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20602 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20604 2014-01-22 Tom Tromey <tromey@redhat.com>
20606 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20608 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20610 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20612 PR rtl-optimization/59896
20613 * lra-constraints.c (process_alt_operands): Check unused note for
20614 matched operands of insn with no output reloads.
20616 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20618 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20619 (mips_move_from_gpr_cost): Likewise.
20621 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20623 PR rtl-optimization/59858
20624 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20625 ira_class_hard_regs_num.
20626 (process_alt_operands): Increase reject for dying matched operand.
20628 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20631 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20632 smaller than size, perform several stores or loads and stores
20633 at dst + count - size to store or copy all of size bytes, rather
20634 than just last modesize bytes.
20636 2014-01-20 DJ Delorie <dj@redhat.com>
20638 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20639 that CLOBBERs are REGs before propogating their values.
20641 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20643 PR middle-end/59789
20644 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20645 (cgraph_inline_failed_type): New function.
20646 * cgraph.h (DEFCIFCODE): Add type.
20647 (cgraph_inline_failed_type_t): New enum.
20648 (cgraph_inline_failed_type): New prototype.
20649 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20650 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20651 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20652 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20653 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20654 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20655 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20656 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20657 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20658 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20659 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20660 OPTIMIZATION_MISMATCH.
20661 * tree-inline.c (expand_call_inline): Emit errors during
20662 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20664 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20667 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20668 mode attribute in insn output.
20670 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20672 * output.h (output_constant): Delete.
20673 * varasm.c (output_constant): Make private.
20675 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20677 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20679 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20681 PR middle-end/59860
20682 * tree.h (fold_builtin_strcat): New prototype.
20683 * builtins.c (fold_builtin_strcat): No longer static. Add len
20684 argument, if non-NULL, don't call c_strlen. Optimize
20685 directly into __builtin_memcpy instead of __builtin_strcpy.
20686 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20687 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20689 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20691 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20692 for SImode_address_operand operands, having only a REG argument.
20694 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20696 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20697 loader name using mbig-endian.
20698 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20700 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20702 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20703 (-mtune): Likewise.
20706 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20708 * config/aarch64/aarch64-protos.h
20709 (aarch64_cannot_change_mode_class_ptr): Declare.
20710 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20711 aarch64_cannot_change_mode_class_ptr): New.
20712 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20713 backend hook aarch64_cannot_change_mode_class.
20715 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20717 * common/config/aarch64/aarch64-common.c
20718 (aarch64_handle_option): Don't handle any option order logic here.
20719 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20720 selected_cpu, warn on architecture version mismatch.
20721 (aarch64_override_options): Fix parsing order for option strings.
20723 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20724 Iain Sandoe <iain@codesourcery.com>
20727 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20728 warning. Amend comment to reflect current functionality.
20730 2014-01-20 Richard Biener <rguenther@suse.de>
20732 PR middle-end/59860
20733 * builtins.c (fold_builtin_strcat): Remove case better handled
20734 by tree-ssa-strlen.c.
20736 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20738 * config/aarch64/aarch64.opt
20739 (mcpu, march, mtune): Make case-insensitive.
20741 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20744 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20745 if operands[1] is a REG or ZERO_EXTEND of a REG.
20747 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20749 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20751 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20753 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20754 long non-pic millicode calls.
20756 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20758 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20760 2014-01-19 Kito Cheng <kito@0xlab.org>
20762 * builtins.c (expand_movstr): Check movstr expand done or fail.
20764 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20765 H.J. Lu <hongjiu.lu@intel.com>
20768 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20769 to DImode for zero-extended addresses.
20771 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20773 PR rtl-optimization/57763
20774 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20775 on the new indirect jump_insn and increment LABEL_NUSES (label).
20777 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20781 * config.gcc (x86_archs): New variable.
20782 (x86_64_archs): Likewise.
20783 (x86_cpus): Likewise.
20784 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20785 --with-arch/--with-cpu= options.
20786 Support --with-arch=/--with-cpu={nehalem,westmere,
20787 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20789 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20791 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20792 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20794 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20796 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20798 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20801 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20802 clear cpp_get_options (parse_in)->warn_unused_macros for
20803 ix86_target_macros_internal with cpp_define.
20805 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20807 * jump.c (delete_related_insns): Keep (use (insn))s.
20808 * reorg.c (redundant_insn): Check for barriers too.
20810 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20812 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20814 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20816 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20817 call to $$dyncall when TARGET_LONG_CALLS is true.
20819 2014-01-17 Jeff Law <law@redhat.com>
20821 * ree.c (combine_set_extension): Temporarily disable test for
20822 changing number of hard registers.
20824 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20826 PR middle-end/58125
20827 * ipa-inline-analysis.c (inline_free_summary):
20828 Do not free summary of aliases.
20830 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20832 PR middle-end/59706
20833 * gimplify.c (gimplify_expr): Use create_tmp_var
20834 instead of create_tmp_var_raw. If cond doesn't have
20835 integral type, don't add the IFN_ANNOTATE builtin at all.
20837 2014-01-17 Martin Jambor <mjambor@suse.cz>
20840 * ipa-cp.c (prev_edge_clone): New variable.
20841 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20842 Also resize prev_edge_clone vector.
20843 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20844 (ipcp_edge_removal_hook): New function.
20845 (ipcp_driver): Register ipcp_edge_removal_hook.
20847 2014-01-17 Andrew Pinski <apinski@cavium.com>
20848 Steve Ellcey <sellcey@mips.com>
20851 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20854 2014-01-17 Jeff Law <law@redhat.com>
20856 PR middle-end/57904
20857 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20858 so that pass_ccp runs first.
20860 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20862 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20863 (ix86_adjust_cost): Use !TARGET_XXX.
20864 (do_reorder_for_imul): Likewise.
20865 (swap_top_of_ready_list): Likewise.
20866 (ix86_sched_reorder): Likewise.
20868 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20870 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20871 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20872 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20873 (intel_memset): New. Duplicate slm_memset.
20874 (intel_cost): New. Duplicate slm_cost.
20875 (m_INTEL): New macro.
20876 (processor_target_table): Add "intel".
20877 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20878 with PROCESSOR_INTEL for "intel".
20879 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20880 PROCESSOR_SILVERMONT.
20881 (ix86_issue_rate): Likewise.
20882 (ix86_adjust_cost): Likewise.
20883 (ia32_multipass_dfa_lookahead): Likewise.
20884 (swap_top_of_ready_list): Likewise.
20885 (ix86_sched_reorder): Likewise.
20886 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20887 instead of TARGET_OPT_AGU.
20888 * config/i386/i386.h (TARGET_INTEL): New.
20889 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20890 (processor_type): Add PROCESSOR_INTEL.
20891 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20892 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20894 2014-01-17 Marek Polacek <polacek@redhat.com>
20897 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20900 2014-01-17 Richard Biener <rguenther@suse.de>
20902 PR tree-optimization/46590
20903 * opts.c (default_options_table): Add entries for
20904 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20905 all enabled at -O1 but not for -Og.
20906 * common.opt (fbranch-count-reg): Remove Init(1).
20907 (fmove-loop-invariants): Likewise.
20908 (ftree-pta): Likewise.
20910 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20912 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20913 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20914 decls to at least the GCC 4.8 used alignments.
20917 * tree-nested.c (convert_nonlocal_reference_stmt,
20918 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20919 of GIMPLE_BIND stmts, adjust associated decls.
20921 2014-01-17 Richard Biener <rguenther@suse.de>
20923 PR tree-optimization/46590
20924 * vec.h (vec<>::bseach): New member function implementing
20925 binary search according to C89 bsearch.
20926 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20927 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20928 bitmap pointer again. Make accesses_in_loop a flat array.
20929 (mem_ref_obstack): New global.
20930 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20931 (mark_ref_stored): Likewise.
20932 (ref_indep_loop_p_2): Likewise.
20933 (set_ref_stored_in_loop): New helper function.
20934 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20935 (memref_free): Adjust.
20936 (record_mem_ref_loc): Simplify.
20937 (gather_mem_refs_stmt): Adjust.
20938 (sort_locs_in_loop_postorder_cmp): New function.
20939 (analyze_memory_references): Sort accesses_in_loop after
20940 loop postorder number.
20941 (find_ref_loc_in_loop_cmp): New function.
20942 (for_all_locs_in_loop): Find relevant cluster of locs in
20943 accesses_in_loop and iterate without recursion.
20944 (execute_sm): Avoid uninit warning.
20945 (struct ref_always_accessed): Simplify.
20946 (ref_always_accessed::operator ()): Likewise.
20947 (ref_always_accessed_p): Likewise.
20948 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
20949 loop postorder numbers here.
20950 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
20953 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20956 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
20957 on decls for which assemble_alias has been called.
20959 2014-01-17 Nick Clifton <nickc@redhat.com>
20961 * config/msp430/msp430.opt: (mcpu): New option.
20962 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
20963 (msp430_option_override): Parse target_cpu. If the MCU name
20964 matches a generic string, clear target_mcu.
20965 (msp430_attr): Allow numeric interrupt values up to 63.
20966 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
20967 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
20969 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
20971 * config/msp430/msp430.md (popm): Use %J rather than %I.
20972 (addsi3): Use msp430_nonimmediate_operand for operand 2.
20973 (addhi_cy_i): Use immediate_operand for operand 2.
20974 * doc/invoke.texi: Document -mcpu option.
20976 2014-01-17 Richard Biener <rguenther@suse.de>
20978 PR rtl-optimization/38518
20979 * df.h (df_analyze_loop): Declare.
20980 * df-core.c: Include cfgloop.h.
20981 (df_analyze_1): Split out main part of df_analyze.
20982 (df_analyze): Adjust.
20983 (loop_inverted_post_order_compute): New function.
20984 (loop_post_order_compute): Likewise.
20985 (df_analyze_loop): New function avoiding whole-function
20986 postorder computes.
20987 * loop-invariant.c (find_defs): Use df_analyze_loop.
20988 (find_invariants): Adjust.
20989 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
20991 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
20993 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
20994 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
20996 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20998 * ipa-ref.c (ipa_remove_stmt_references): Fix references
20999 traversal when removing references.
21001 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21004 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21006 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21008 PR middle-end/56791
21009 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21010 pushing a reload for an autoinc when we had previously reloaded an
21011 inner part of the address.
21013 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21015 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21017 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21018 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21019 when not giving up or versioning for alias only because of
21021 (vect_analyze_data_ref_dependences): Set to true.
21022 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21024 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21025 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21028 PR middle-end/58344
21029 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21032 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21033 operand 0 predicate for gathers, use a new pseudo as subtarget.
21035 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21037 PR middle-end/59609
21038 * lra-constraints.c (process_alt_operands): Add printing debug info.
21039 Check absence of input/output reloads for matched operands too.
21041 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21043 PR rtl-optimization/59835
21044 * ira.c (ira_init_register_move_cost): Increase cost for
21047 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21049 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21051 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21054 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21055 non-register objects. Use gen_(high/low)part more consistently.
21058 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21061 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21062 endian support, remove tests for WORDS_BIG_ENDIAN.
21063 (p8_mfvsrd_3_<mode>): Likewise.
21064 (reload_gpr_from_vsx<mode>): Likewise.
21065 (reload_gpr_from_vsxsf): Likewise.
21066 (p8_mfvsrd_4_disf): Likewise.
21068 2014-01-16 Richard Biener <rguenther@suse.de>
21070 PR rtl-optimization/46590
21071 * lcm.c (compute_antinout_edge): Use postorder iteration.
21072 (compute_laterin): Use inverted postorder iteration.
21074 2014-01-16 Nick Clifton <nickc@redhat.com>
21076 PR middle-end/28865
21077 * varasm.c (output_constant): Return the number of bytes actually
21079 (output_constructor_array_range): Update the field size with the
21080 number of bytes emitted by output_constant.
21081 (output_constructor_regular_field): Likewise. Also do not
21082 complain if the total number of bytes emitted is now greater
21083 than the expected fieldpos.
21084 * output.h (output_constant): Update prototype and descriptive comment.
21086 2014-01-16 Marek Polacek <polacek@redhat.com>
21088 PR middle-end/59827
21089 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21090 it is error_mark_node.
21092 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21094 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21095 VALID_AVX256_REG_OR_OI_MODE.
21097 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21099 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21100 current procedure should be profiled.
21102 2014-01-15 Andrew Pinski <apinski@cavium.com>
21104 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21105 of moving from/to the STACK_REG register class.
21107 2014-01-15 Richard Henderson <rth@redhat.com>
21110 * reginfo.c (global_regs_decl): Globalize.
21111 * rtl.h (global_regs_decl): Declare.
21112 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21113 reserved via global_regs.
21115 2014-01-15 Teresa Johnson <tejohnson@google.com>
21117 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21119 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21121 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21122 and vmulosh rather than call gen_vec_widen_smult_*.
21123 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21124 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21125 (vec_widen_smult_even_v16qi): Likewise.
21126 (vec_widen_umult_even_v8hi): Likewise.
21127 (vec_widen_smult_even_v8hi): Likewise.
21128 (vec_widen_umult_odd_v16qi): Likewise.
21129 (vec_widen_smult_odd_v16qi): Likewise.
21130 (vec_widen_umult_odd_v8hi): Likewise.
21131 (vec_widen_smult_odd_v8hi): Likewise.
21132 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21133 vmuloub rather than call gen_vec_widen_umult_*.
21134 (vec_widen_umult_lo_v16qi): Likewise.
21135 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21136 vmulosb rather than call gen_vec_widen_smult_*.
21137 (vec_widen_smult_lo_v16qi): Likewise.
21138 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21139 rather than call gen_vec_widen_umult_*.
21140 (vec_widen_umult_lo_v8hi): Likewise.
21141 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21142 rather than call gen_vec_widen_smult_*.
21143 (vec_widen_smult_lo_v8hi): Likewise.
21145 2014-01-15 Jeff Law <law@redhat.com>
21147 PR tree-optimization/59747
21148 * ree.c (find_and_remove_re): Properly handle case where a second
21149 eliminated extension requires widening a copy created for elimination
21150 of a prior extension.
21151 (combine_set_extension): Ensure that the number of hard regs needed
21152 for a destination register does not change when we widen it.
21154 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21156 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21157 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21158 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21159 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21160 (avr-*-rtems*): Likewise.
21161 (bfin*-rtems*): Likewise.
21162 (moxie-*-rtems*): Likewise.
21163 (h8300-*-rtems*): Likewise.
21164 (i[34567]86-*-rtems*): Likewise.
21165 (lm32-*-rtems*): Likewise.
21166 (m32r-*-rtems*): Likewise.
21167 (m68k-*-rtems*): Likewise.
21168 (microblaze*-*-rtems*): Likewise.
21169 (mips*-*-rtems*): Likewise.
21170 (powerpc-*-rtems*): Likewise.
21171 (sh-*-rtems*): Likewise.
21172 (sparc-*-rtems*): Likewise.
21173 (sparc64-*-rtems*): Likewise.
21174 (v850-*-rtems*): Likewise.
21175 (m32c-*-rtems*): Likewise.
21177 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21179 PR rtl-optimization/59511
21180 * ira.c (ira_init_register_move_cost): Use memory costs for some
21181 cases of register move cost calculations.
21182 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21183 instead of BB frequency.
21184 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21185 * lra-assigns.c (find_hard_regno_for): Ditto.
21187 2014-01-15 Richard Biener <rguenther@suse.de>
21189 PR tree-optimization/59822
21190 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21191 (vectorizable_load): Use it to hoist defs of uses of invariant
21192 loads out of the loop.
21194 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21195 Kugan Vivekanandarajah <kuganv@linaro.org>
21198 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21201 2014-01-15 Richard Biener <rguenther@suse.de>
21203 PR rtl-optimization/59802
21204 * lcm.c (compute_available): Use inverted postorder to seed
21205 the initial worklist.
21207 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21210 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21211 ADDR_REGS for invalid symrefs in non-PIC code.
21213 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21216 * builtins.c (determine_block_size): Initialize *probable_max_size
21217 even if len_rtx is CONST_INT.
21219 2014-01-14 Andrew Pinski <apinski@cavium.com>
21221 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21222 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21223 (cortexa53_tunings): Likewise.
21224 (aarch64_sched_issue_rate): New function.
21225 (TARGET_SCHED_ISSUE_RATE): Define.
21227 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21229 * ira-costs.c (find_costs_and_classes): Add missed
21230 ira_init_register_move_cost_if_necessary.
21232 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21235 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21237 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21240 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21241 to indicate if type is used for function return value. Warn ABI
21242 change if the vector mode isn't available for function return value.
21243 (ix86_function_arg_advance): Pass false to type_natural_mode.
21244 (ix86_function_arg): Likewise.
21245 (ix86_gimplify_va_arg): Likewise.
21246 (function_arg_32): Don't warn ABI change.
21247 (ix86_function_value): Pass true to type_natural_mode.
21248 (ix86_return_in_memory): Likewise.
21249 (ix86_struct_value_rtx): Removed.
21250 (TARGET_STRUCT_VALUE_RTX): Likewise.
21252 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21254 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21255 converting a conditional jump into a conditional return.
21257 2014-01-14 Richard Biener <rguenther@suse.de>
21259 PR tree-optimization/58921
21260 PR tree-optimization/59006
21261 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21262 hoisting invariant stmts.
21263 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21264 invariant loads on the preheader edge if possible.
21266 2014-01-14 Joey Ye <joey.ye@arm.com>
21268 * doc/plugin.texi (Building GCC plugins): Update to C++.
21270 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21272 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21273 (_mm_rcp28_round_ss): Ditto.
21274 (_mm_rsqrt28_round_sd): Ditto.
21275 (_mm_rsqrt28_round_ss): Ditto.
21276 (_mm_rcp28_sd): Ditto.
21277 (_mm_rcp28_ss): Ditto.
21278 (_mm_rsqrt28_sd): Ditto.
21279 (_mm_rsqrt28_ss): Ditto.
21280 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21281 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21282 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21283 (IX86_BUILTIN_RCP28SD): Ditto.
21284 (IX86_BUILTIN_RCP28SS): Ditto.
21285 (IX86_BUILTIN_RSQRT28SD): Ditto.
21286 (IX86_BUILTIN_RSQRT28SS): Ditto.
21287 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21288 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21289 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21290 (ix86_expand_special_args_builtin): Expand new FTYPE.
21291 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21292 (srcp14<mode>): Make insn unary.
21293 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21294 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21295 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21296 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21297 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21298 Fix rounding: make it SAE only.
21299 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21301 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21303 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21304 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21305 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21306 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21307 (round_saeonly_mask_scalar_operand4): Ditto.
21308 (round_saeonly_mask_scalar_op3): Ditto.
21309 (round_saeonly_mask_scalar_op4): Ditto.
21311 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21313 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21314 Implement -maltivec=be for vec_insert and vec_extract.
21316 2014-01-10 DJ Delorie <dj@redhat.com>
21318 * config/msp430/msp430.md (call_internal): Don't allow memory
21319 references with SP as the base register.
21320 (call_value_internal): Likewise.
21321 * config/msp430/constraints.md (Yc): New. For memory references
21322 that don't use SP as a base register.
21324 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21325 "an integer without a # prefix"
21326 * config/msp430/msp430.md (epilogue_helper): Use it.
21328 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21331 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21332 AVX512F gather builtins.
21333 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21334 on gather decls with INTEGER_TYPE masktype.
21335 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21336 directly into the builtin rather than hoisting it before loop.
21338 PR tree-optimization/59387
21339 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21340 (scev_const_prop): If folded_casts and type has undefined overflow,
21341 use force_gimple_operand instead of force_gimple_operand_gsi and
21342 for each added stmt if it is assign with
21343 arith_code_with_undefined_signed_overflow, call
21344 rewrite_to_defined_overflow.
21345 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21346 gimple-fold.h instead.
21347 (arith_code_with_undefined_signed_overflow,
21348 rewrite_to_defined_overflow): Moved to ...
21349 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21350 rewrite_to_defined_overflow): ... here. No longer static.
21351 Include gimplify-me.h.
21352 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21353 rewrite_to_defined_overflow): New prototypes.
21355 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21357 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21359 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21361 * builtins.c (get_object_alignment_2): Minor tweak.
21362 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21364 2014-01-13 Christian Bruel <christian.bruel@st.com>
21366 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21367 optimized non constant lengths.
21369 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21372 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21373 load as __atomic_load_N if possible.
21375 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21377 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21379 (rs6000_expand_builtin): Adjust call.
21381 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21384 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21385 * config/rs6000/rs6000.c: Include target-globals.h.
21386 (rs6000_set_current_function): Instead of doing target_reinit
21387 unconditionally, use save_target_globals_default_opts and
21388 restore_target_globals.
21390 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21392 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21393 (rs6000_expand_builtin): Handle mffs and mtfsf.
21394 (rs6000_init_builtins): Define mffs and mtfsf.
21395 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21396 (rs6000_mffs): New pattern.
21397 (rs6000_mtfsf): New pattern.
21399 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21401 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21402 Start narrowing with START. Apply candidate-use pair
21403 and check overall cost in narrowing.
21404 (iv_ca_prune): Pass new argument.
21406 2014-01-10 Jeff Law <law@redhat.com>
21408 PR middle-end/59743
21409 * ree.c (combine_reaching_defs): Ensure the defining statement
21410 occurs before the extension when optimizing extensions with
21411 different source and destination hard registers.
21413 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21416 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21417 vtables into the type inheritance graph.
21419 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21421 PR rtl-optimization/59754
21422 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21423 modes in the REGNO != REGNO case.
21425 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21427 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21429 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21431 PR tree-optimization/59745
21432 * tree-predcom.c (tree_predictive_commoning_loop): Call
21433 free_affine_expand_cache if giving up because components is NULL.
21435 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21436 GC in payload of target_globals struct instead of allocating them on
21437 the heap and the larger structs separately using GC.
21438 * target-globals.h (struct target_globals): Make regs, hard_regs,
21439 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21440 of GTY((skip)) and change type to void *.
21441 (reset_target_globals): Cast loads from those fields to corresponding
21444 2014-01-10 Steve Ellcey <sellcey@mips.com>
21447 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21448 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21449 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21451 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21454 * aarch64-modes.def (CC_Zmode): New flags mode.
21455 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21456 represents an equality.
21457 (aarch64_get_condition_code): Handle CC_Zmode.
21458 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21460 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21462 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21463 extraction in good case.
21465 2014-01-10 Richard Biener <rguenther@suse.de>
21467 PR tree-optimization/59374
21468 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21469 checking after SLP discovery. Mark stmts not participating
21470 in any SLP instance properly.
21472 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21474 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21475 when handling a SET rtx.
21477 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21479 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21480 (cortex-a57): Likewise.
21481 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21483 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21485 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21486 non-iwmmxt builtins.
21488 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21492 * ipa-devirt.c record_target_from_binfo): Take as argument
21493 stack of binfos and lookup matching one for virtual inheritance.
21494 (possible_polymorphic_call_targets_1): Update.
21496 2014-01-10 Huacai Chen <chenhc@lemote.com>
21498 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21499 kernel strings for Loongson-2E/2F/3A.
21501 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21503 PR middle-end/59670
21504 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21505 is_gimple_call before calling gimple_call_internal_p.
21507 2014-01-09 Steve Ellcey <sellcey@mips.com>
21509 * Makefile.in (TREE_FLOW_H): Remove.
21510 (TREE_SSA_H): Add file names from tree-flow.h.
21511 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21512 * tree.h: Remove tree-flow.h reference.
21513 * hash-table.h: Remove tree-flow.h reference.
21514 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21515 reference with tree-ssa-loop.h.
21517 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21519 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21520 default element-order behavior for -maltivec.
21521 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21522 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21523 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21524 when targeting big endian, at least for now.
21525 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21527 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21529 PR middle-end/47735
21530 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21531 var satisfies use_register_for_decl, just take into account type
21532 alignment, rather than decl alignment.
21534 PR tree-optimization/59622
21535 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21536 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21537 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21538 Don't devirtualize for inplace at all. For targets.length () == 1,
21539 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21541 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21543 * config/i386/i386.md (cpu): Remove the unused btver1.
21545 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21547 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21549 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21552 * tree-core.h (struct target_globals): New forward declaration.
21553 (struct tree_target_option): Add globals field.
21554 * tree.h (TREE_TARGET_GLOBALS): Define.
21555 (prepare_target_option_nodes_for_pch): New prototype.
21556 * target-globals.h (struct target_globals): Define even if
21557 !SWITCHABLE_TARGET.
21558 * tree.c (prepare_target_option_node_for_pch,
21559 prepare_target_option_nodes_for_pch): New functions.
21560 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21561 * config/i386/i386.c: Include target-globals.h.
21562 (ix86_set_current_function): Instead of doing target_reinit
21563 unconditionally, use save_target_globals_default_opts and
21564 restore_target_globals.
21566 2014-01-09 Richard Biener <rguenther@suse.de>
21568 PR tree-optimization/59715
21569 * tree-cfg.h (split_critical_edges): Declare.
21570 * tree-cfg.c (split_critical_edges): Export.
21571 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21573 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21575 * cfgexpand.c (expand_stack_vars): Optionally disable
21576 asan stack protection.
21577 (expand_used_vars): Likewise.
21578 (partition_stack_vars): Likewise.
21579 * asan.c (asan_emit_stack_protection): Optionally disable
21580 after return stack usage.
21581 (instrument_derefs): Optionally disable memory access instrumentation.
21582 (instrument_builtin_call): Likewise.
21583 (instrument_strlen_call): Likewise.
21584 (asan_protect_global): Optionally disable global variables protection.
21585 * doc/invoke.texi: Added doc for new options.
21586 * params.def: Added new options.
21587 * params.h: Likewise.
21589 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21591 PR rtl-optimization/59724
21592 * ifcvt.c (cond_exec_process_if_block): Don't call
21593 flow_find_head_matching_sequence with 0 longest_match.
21594 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21595 non-active insns if !stop_after.
21596 (try_head_merge_bb): Revert 2014-01-07 changes.
21598 2014-01-08 Jeff Law <law@redhat.com>
21600 * ree.c (get_sub_rtx): New function, extracted from...
21601 (merge_def_and_ext): Here.
21602 (combine_reaching_defs): Use get_sub_rtx.
21604 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21606 * cgraph.h (varpool_variable_node): Do not choke on null node.
21608 2014-01-08 Catherine Moore <clm@codesourcery.com>
21610 * config/mips/mips.md (simple_return): Attempt to use JRC
21612 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21614 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21616 PR rtl-optimization/59137
21617 * reorg.c (steal_delay_list_from_target): Call update_block for
21619 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21621 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21623 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21624 two duplicate entries.
21626 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21629 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21631 * config/mips/mips.c (mips_truncated_op_cost): New function.
21632 (mips_rtx_costs): Adjust test for BADDU.
21633 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21635 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21637 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21638 (*baddu_si): ...this new pattern.
21640 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21643 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21645 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21647 PR middle-end/57748
21648 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21650 (expand_expr, expand_normal): Adjust.
21651 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21652 inner_reference_p. Use inner_reference_p to expand inner references.
21653 (store_expr): Adjust.
21654 * cfgexpand.c (expand_call_stmt): Adjust.
21656 2014-01-08 Rong Xu <xur@google.com>
21658 * gcov-io.c (gcov_var): Move from gcov-io.h.
21659 (gcov_position): Ditto.
21660 (gcov_is_error): Ditto.
21661 (gcov_rewrite): Ditto.
21662 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21663 only part to libgcc/libgcov.h.
21665 2014-01-08 Marek Polacek <polacek@redhat.com>
21667 PR middle-end/59669
21668 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21670 2014-01-08 Marek Polacek <polacek@redhat.com>
21673 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21675 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21677 PR rtl-optimization/59649
21678 * stor-layout.c (get_mode_bounds): For BImode return
21679 0 and STORE_FLAG_VALUE.
21681 2014-01-08 Richard Biener <rguenther@suse.de>
21683 PR middle-end/59630
21684 * gimple.h (is_gimple_builtin_call): Remove.
21685 (gimple_builtin_call_types_compatible_p): New.
21686 (gimple_call_builtin_p): New overload.
21687 * gimple.c (is_gimple_builtin_call): Remove.
21688 (validate_call): Rename to ...
21689 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21690 check return types.
21691 (validate_type): New static function.
21692 (gimple_call_builtin_p): New overload and adjust.
21693 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21694 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21695 (gimple_fold_stmt_to_constant_1): Likewise.
21696 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21698 2014-01-08 Richard Biener <rguenther@suse.de>
21700 PR middle-end/59471
21701 * gimplify.c (gimplify_expr): Gimplify register-register type
21702 VIEW_CONVERT_EXPRs to separate stmts.
21704 2014-01-07 Jeff Law <law@redhat.com>
21706 PR middle-end/53623
21707 * ree.c (combine_set_extension): Handle case where source
21708 and destination registers in an extension insn are different.
21709 (combine_reaching_defs): Allow source and destination registers
21710 in extension to be different under limited circumstances.
21711 (add_removable_extension): Remove restriction that the
21712 source and destination registers in the extension are the same.
21713 (find_and_remove_re): Emit a copy from the extension's
21714 destination to its source after the defining insn if
21715 the source and destination registers are different.
21717 PR middle-end/59285
21718 * ifcvt.c (merge_if_block): If we are merging a block with more than
21719 one successor with a block with no successors, remove any BARRIER
21720 after the second block.
21722 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21724 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21726 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21729 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21730 for 14-bit register offsets when INT14_OK_STRICT is false.
21732 2014-01-07 Roland Stigge <stigge@antcom.de>
21733 Michael Meissner <meissner@linux.vnet.ibm.com>
21736 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21737 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21739 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21741 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21744 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21746 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21747 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21748 rtx is const0_rtx or not.
21750 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21753 * target-globals.c (save_target_globals): Remove this_fn_optab
21755 * toplev.c: Include optabs.h.
21756 (target_reinit): Temporarily restore the global options if another
21757 set of options are in force.
21759 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21761 PR rtl-optimization/58668
21762 * cfgcleanup.c (flow_find_cross_jump): Don't count
21763 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21764 to determine what is counted.
21765 (flow_find_head_matching_sequence): Use active_insn_p to determine
21767 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21769 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21770 determine what is counted.
21772 PR tree-optimization/59643
21773 * tree-predcom.c (split_data_refs_to_components): If one dr is
21774 read and one write, determine_offset fails and the write isn't
21775 in the bad component, just put the read into the bad component.
21777 2014-01-07 Mike Stump <mikestump@comcast.net>
21778 Jakub Jelinek <jakub@redhat.com>
21781 * tree-core.h (struct tree_optimization_option): Change optabs
21782 type from unsigned char * to void *.
21783 * optabs.c (init_tree_optimization_optabs): Adjust
21784 TREE_OPTIMIZATION_OPTABS initialization.
21786 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21789 * config/i386/i386.h (struct machine_function): Add
21790 no_drap_save_restore field.
21791 * config/i386/i386.c (ix86_save_reg): Use
21792 !cfun->machine->no_drap_save_restore instead of
21793 crtl->stack_realign_needed.
21794 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21795 this function clears frame_pointer_needed. Set
21796 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21797 and DRAP reg is needed.
21799 2014-01-06 Marek Polacek <polacek@redhat.com>
21802 * doc/implement-c.texi: Mention that other integer types are
21803 permitted as bit-field types in strictly conforming mode.
21805 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21807 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21808 is newly allocated.
21810 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21812 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21814 2014-01-06 Martin Jambor <mjambor@suse.cz>
21817 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21819 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21821 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21825 * var-tracking.c (add_stores): Preserve the value of the source even if
21826 we don't record the store.
21828 2014-01-06 Terry Guo <terry.guo@arm.com>
21830 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21832 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21835 * config/darwin.c (darwin_function_section): Adjust return values to
21836 correspond to optimisation changes made in r206070.
21838 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21840 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21841 from prefetch_block tune setting.
21842 (nocona_cost): Correct size of prefetch block to 64.
21844 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21846 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21847 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21848 used to save the static chain register in the computation of the offset
21849 from which the FP registers need to be restored.
21851 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21853 PR tree-optimization/59519
21854 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21855 ICE if get_current_def (current_new_name) is already non-NULL, as long
21856 as it is a phi result of some other phi in *new_exit_bb that has
21859 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21860 or vmovdqu* for misaligned_operand.
21861 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21862 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21863 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21864 aligned_mem for AVX512F masked aligned load and store builtins and for
21865 non-temporal moves.
21867 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21869 PR tree-optimization/59651
21870 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21871 Address range for negative step should be added by TYPE_SIZE_UNIT.
21873 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21875 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21876 overlapping registers also for registers other than the stack pointer.
21878 2014-01-03 Marek Polacek <polacek@redhat.com>
21881 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21884 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21887 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21890 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21891 (push splitter): Use <P:MODE_SIZE> instead of
21892 GET_MODE_SIZE (<P:MODE>mode).
21893 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21894 (mov -1, reg peephole2): Likewise.
21895 * config/i386/sse.md (*mov<mode>_internal,
21896 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21897 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21898 *<code><mode>3, *andnot<mode>3<mask_name>,
21899 <mask_codefor><code><mode>3<mask_name>): Likewise.
21900 * config/i386/subst.md (mask_mode512bit_condition,
21901 sd_mask_mode512bit_condition): Likewise.
21903 2014-01-02 Xinliang David Li <davidxl@google.com>
21905 PR tree-optimization/59303
21906 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21907 (dump_predicates): Better output format.
21908 (pred_equal_p): New function.
21909 (is_neq_relop_p): Ditto.
21910 (is_neq_zero_form_p): Ditto.
21911 (pred_expr_equal_p): Ditto.
21912 (pred_neg_p): Ditto.
21913 (simplify_pred): Ditto.
21914 (simplify_preds_2): Ditto.
21915 (simplify_preds_3): Ditto.
21916 (simplify_preds_4): Ditto.
21917 (simplify_preds): Ditto.
21918 (push_pred): Ditto.
21919 (push_to_worklist): Ditto.
21920 (get_pred_info_from_cmp): Ditto.
21921 (is_degenerated_phi): Ditto.
21922 (normalize_one_pred_1): Ditto.
21923 (normalize_one_pred): Ditto.
21924 (normalize_one_pred_chain): Ditto.
21925 (normalize_preds): Ditto.
21926 (normalize_cond_1): Remove function.
21927 (normalize_cond): Ditto.
21928 (is_gcond_subset_of): Ditto.
21929 (is_subset_of_any): Ditto.
21930 (is_or_set_subset_of): Ditto.
21931 (is_and_set_subset_of): Ditto.
21932 (is_norm_cond_subset_of): Ditto.
21933 (pred_chain_length_cmp): Ditto.
21934 (convert_control_dep_chain_into_preds): Type change.
21935 (find_predicates): Ditto.
21936 (find_def_preds): Ditto.
21937 (destroy_predicates_vecs): Ditto.
21938 (find_matching_predicates_in_rest_chains): Ditto.
21939 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21940 (is_pred_expr_subset): Ditto.
21941 (is_pred_chain_subset_of): Ditto.
21942 (is_included_in): Ditto.
21943 (is_superset_of): Ditto.
21945 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21947 Update copyright years.
21949 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21951 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
21952 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
21953 config/arc/arc.md, config/arc/arc.opt,
21954 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
21955 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
21956 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
21957 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
21958 config/linux-protos.h, config/linux.c, config/winnt-c.c,
21959 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
21960 vtable-verify.c, vtable-verify.h: Use the standard form for the
21963 2014-01-02 Tobias Burnus <burnus@net-b.de>
21965 * gcc.c (process_command): Update copyright notice dates.
21966 * gcov-dump.c: Ditto.
21968 * doc/cpp.texi: Bump @copying's copyright year.
21969 * doc/cppinternals.texi: Ditto.
21970 * doc/gcc.texi: Ditto.
21971 * doc/gccint.texi: Ditto.
21972 * doc/gcov.texi: Ditto.
21973 * doc/install.texi: Ditto.
21974 * doc/invoke.texi: Ditto.
21976 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21978 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
21980 2014-01-01 Jakub Jelinek <jakub@redhat.com>
21982 * config/i386/sse.md (*mov<mode>_internal): Guard
21983 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
21985 PR rtl-optimization/59647
21986 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
21987 new_rtx into UNSIGNED_FLOAT rtxes.
21989 Copyright (C) 2014 Free Software Foundation, Inc.
21991 Copying and distribution of this file, with or without modification,
21992 are permitted in any medium without royalty provided the copyright
21993 notice and this notice are preserved.