1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3 * genattrtab.c (write_attr_get): Within the generated get_attr_
4 functions, rename param "insn" to "uncast_insn" and reintroduce
5 "insn" as an local rtx_insn * using a checked cast, so that "insn"
6 is an rtx_insn * within insn-attrtab.c
8 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10 * output.h (peephole): Strengthen return type from rtx to
12 * rtl.h (delete_for_peephole): Likewise for both params.
13 * genpeep.c (main): In generated "peephole" function, strengthen
14 return type and local "insn" from rtx to rtx_insn *. For now,
15 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
16 rtx_insn *, with a checked cast.
17 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
18 locals "insn", "next", "prev" from rtx to rtx_insn *.
20 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
22 PR tree-optimization/62112
23 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
24 * gimple-iterator.h (gsi_replace): Return bool.
25 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
26 moved from ref_may_alias_global_p.
27 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
29 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
30 (stmt_kills_ref_p_1): Rename...
31 (stmt_kills_ref_p): ... to this.
32 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
33 stmt_kills_ref_p): Declare.
34 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
35 Move the self-assignment case...
36 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
38 2014-08-21 David Malcolm <dmalcolm@redhat.com>
40 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
42 * emit-rtl.c (try_split): Likewise, also for locals "before" and
43 "after". For now, don't strengthen param "trial", which requires
44 adding checked casts when returning it.
46 2014-08-21 David Malcolm <dmalcolm@redhat.com>
48 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
49 "label" from rtx to rtx_code_label *. Strengthen param 1 of
50 "var_location" hook from rtx to rtx_insn *.
51 (debug_nothing_rtx): Delete in favor of...
52 (debug_nothing_rtx_code_label): New prototype.
53 (debug_nothing_rtx_rtx): Delete unused prototype.
54 (debug_nothing_rtx_insn): New prototype.
56 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
57 invoking debug_hooks->var_location (in two places, one in a NOTE
58 case of a switch statement, the other guarded by a CALL_P
59 conditional. Add checked cast to rtx_code_label * when invoking
60 debug_hooks->label (within CODE_LABEL case of switch statement).
62 * dbxout.c (dbx_debug_hooks): Update "label" hook from
63 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
64 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
65 (xcoff_debug_hooks): Likewise.
66 * debug.c (do_nothing_debug_hooks): Likewise.
67 (debug_nothing_rtx): Delete in favor of...
68 (debug_nothing_rtx_insn): New function.
69 (debug_nothing_rtx_rtx): Delete unused function.
70 (debug_nothing_rtx_code_label): New function.
71 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
72 debug_nothing_rtx to debug_nothing_rtx_code_label.
73 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
75 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
76 debug_nothing_rtx to debug_nothing_rtx_insn.
77 (sdbout_label): Strengthen param "insn" from rtx to
79 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
80 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
81 "var_location" hook from debug_nothing_rtx to
82 debug_nothing_rtx_insn.
84 2014-08-21 David Malcolm <dmalcolm@redhat.com>
86 * recog.h (insn_output_fn): Update this function typedef to match
87 the changes below to the generated output functions, strengthening
88 the 2nd param from rtx to rtx_insn *.
90 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
91 insn when invoking an output function, to match the new signature
92 of insn_output_fn with a stronger second param.
94 * genconditions.c (write_header): In the generated code for
95 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
96 to match the other changes in this patch.
98 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
99 the generated "gen_" functions from rtx to rtx_insn * within their
102 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
103 the subfunctions within the generated "recog_", "split", "peephole2"
104 function trees from rtx to rtx_insn *. For now, the top-level
105 generated functions ("recog", "split", "peephole2") continue to
106 take a plain rtx for "insn", to avoid introducing dependencies on
107 other patches. Rename this 2nd param from "insn" to
108 "uncast_insn", and reintroduce "insn" as a local variable of type
109 rtx_insn *, initialized at the top of the generated function with
110 a checked cast on "uncast_insn".
111 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
112 the generated "gen_" functions from rtx to rtx_insn * within their
115 * genoutput.c (process_template): Strengthen the 2nd param within
116 the generated "output_" functions "insn" from rtx to rtx_insn *.
118 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
120 * tree-profile.c (tree_profiling): Skip external functions
121 when doing coverage instrumentation.
122 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
124 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
126 * config/rs6000/altivec.h (vec_cpsgn): New #define.
127 (vec_mergee): Likewise.
128 (vec_mergeo): Likewise.
129 (vec_cntlz): Likewise.
130 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
131 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
132 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
134 * doc/extend.texi: Document various forms of vec_cpsgn,
135 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
136 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
137 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
138 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
139 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
141 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
143 * config/rs6000/rs6000.c (context.h): New include.
144 (tree-pass.h): Likewise.
145 (make_pass_analyze_swaps): New decl.
146 (rs6000_option_override): Register pass_analyze_swaps.
147 (swap_web_entry): New subsclass of web_entry_base (df.h).
148 (special_handling_values): New enum.
149 (union_defs): New function.
150 (union_uses): Likewise.
151 (insn_is_load_p): Likewise.
152 (insn_is_store_p): Likewise.
153 (insn_is_swap_p): Likewise.
154 (rtx_is_swappable_p): Likewise.
155 (insn_is_swappable_p): Likewise.
156 (chain_purpose): New enum.
157 (chain_contains_only_swaps): New function.
158 (mark_swaps_for_removal): Likewise.
159 (swap_const_vector_halves): Likewise.
160 (adjust_subreg_index): Likewise.
161 (permute_load): Likewise.
162 (permute_store): Likewise.
163 (handle_special_swappables): Likewise.
164 (replace_swap_with_copy): Likewise.
165 (dump_swap_insn_table): Likewise.
166 (rs6000_analyze_swaps): Likewise.
167 (pass_data_analyze_swaps): New pass_data.
168 (pass_analyze_swaps): New rtl_opt_pass.
169 (make_pass_analyze_swaps): New function.
170 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
172 2014-08-21 David Malcolm <dmalcolm@redhat.com>
174 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
175 type from rtx to rtx_insn *.
176 (create_copy_of_insn_rtx): Likewise.
177 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
178 (create_copy_of_insn_rtx): Likewise, also for local "res".
180 2014-08-21 David Malcolm <dmalcolm@redhat.com>
182 * rtl.h (find_first_parameter_load): Strengthen return type from
184 * rtlanal.c (find_first_parameter_load): Strengthen return type
185 from rtx to rtx_insn *. Add checked cast for now, to postpone
186 strengthening the params.
188 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
191 * diagnostic.c: Set default caret.
192 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
194 * diagnostic.h (struct diagnostic_context):
196 2014-08-21 David Malcolm <dmalcolm@redhat.com>
198 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
199 (sel_bb_head): Strengthen return type insn_t (currently just an
201 (sel_bb_end): Likewise.
203 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
204 (sel_bb_head): Strengthen return type and local "head" from
205 insn_t (currently just an rtx) to rtx_insn *.
206 (sel_bb_end): Likewise for return type.
207 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
210 2014-08-21 David Malcolm <dmalcolm@redhat.com>
212 * basic-block.h (get_last_bb_insn): Strengthen return type from
214 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
217 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
220 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
222 (diagnostic_report_diagnostic): ... from here.
223 * toplev.c (general_init): Move code to c-family.
225 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
227 * df.h (web_entry_base): Replace existing struct web_entry with a
228 new class web_entry_base with only the predecessor member.
229 (unionfind_root): Remove declaration and move to class member.
230 (unionfind_union): Remove declaration and move to friend
232 (union_defs): Remove declaration.
233 * web.c (web_entry_base::unionfind_root): Modify to be member
234 function and adjust accessors.
235 (unionfind_union): Modify to be friend function and adjust
237 (web_entry): New subclass of web_entry_base containing the reg
239 (union_match_dups): Modify for struct -> class changes.
240 (union_defs): Likewise.
241 (entry_register): Likewise.
242 (pass_web::execute): Likewise.
244 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
246 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
247 builtin define __VEC_ELEMENT_REG_ORDER__.
249 2014-08-20 Martin Jambor <mjambor@suse.cz>
250 Wei Mi <wmi@google.com>
254 * tree-ssa-operands.c (update_stmt_operands): Remove
255 MODIFIED_NORETURN_CALLS.
256 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
257 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
258 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
259 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
260 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
261 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
262 (gimple_call_set_ctrl_altering): New func.
263 (gimple_call_ctrl_altering_p): Ditto.
264 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
265 (make_blocks): Use gimple_call_initialize_ctrl_altering.
266 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
267 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
268 remove MODIFIED_NORETURN_CALLS.
270 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
272 * coverage.c (coverage_compute_profile_id): Return non-0;
273 also handle symbols with unique name.
274 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
276 2014-08-20 Steve Ellcey <sellcey@mips.com>
279 * doc/sourcebuild.texi (non_strict_align): New.
281 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
283 * cgraphunit.c (ipa_passes, compile): Reshedule
284 symtab_remove_unreachable_nodes passes; update comments.
285 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
286 TODO_remove_functions before the pass; the functions ought to be
288 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
289 TODO_remove_functions.
290 * passes.c (pass_data_early_local_passes): Do not schedule function
292 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
294 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
297 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
298 before setting the option.
299 * diagnostic.c (diagnostic_classify_diagnostic): Record
302 2014-08-20 Richard Biener <rguenther@suse.de>
305 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
306 to build uint{16,32,64}_type_node.
308 2014-08-20 Terry Guo <terry.guo@arm.com>
310 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
311 with immediate_operand.
313 2014-08-20 David Malcolm <dmalcolm@redhat.com>
315 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
316 "insn" from an as_a to a safe_as_a, for the case when "insn" is
319 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
321 PR preprocessor/51303
322 * incpath.c (remove_duplicates): Use cpp_warning.
324 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
328 * doc/options.texi (CPP): Document it.
329 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
330 * optc-gen.awk: Handle CPP.
331 * opth-gen.awk: Likewise.
333 2014-08-19 David Malcolm <dmalcolm@redhat.com>
335 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
337 (duplicate_insn_chain): Likewise.
338 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
339 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
340 checked cast for now (until we can strengthen the params in the
342 (duplicate_insn_chain): Likewise.
344 2014-08-19 David Malcolm <dmalcolm@redhat.com>
346 * rtl.h (next_cc0_user): Strengthen return type from rtx to
348 (prev_cc0_setter): Likewise.
350 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
351 rtx_insn *, adding checked casts for now as necessary.
352 (prev_cc0_setter): Likewise.
354 2014-08-19 David Malcolm <dmalcolm@redhat.com>
356 * expr.h (emit_move_insn): Strengthen return type from rtx to
358 (emit_move_insn_1): Likewise.
359 (emit_move_complex_push): Likewise.
360 (emit_move_complex_parts): Likewise.
362 * expr.c (emit_move_via_integer): Strengthen return type from rtx
363 to rtx_insn *. Replace use of NULL_RTX with NULL when working
365 (emit_move_complex_push): Strengthen return type from rtx to
367 (emit_move_complex): Likewise, also for local "ret".
368 (emit_move_ccmode): Likewise.
369 (emit_move_multi_word): Likewise for return type and locals
371 (emit_move_insn_1): Likewise for return type and locals "result",
373 (emit_move_insn): Likewise for return type and local "last_insn".
374 (compress_float_constant): Likewise.
376 2014-08-19 David Malcolm <dmalcolm@redhat.com>
378 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
379 from rtx to rtx_insn *.
381 * rtl.h (emit_insn_before): Likewise.
382 (emit_insn_before_noloc): Likewise.
383 (emit_insn_before_setloc): Likewise.
384 (emit_jump_insn_before): Likewise.
385 (emit_jump_insn_before_noloc): Likewise.
386 (emit_jump_insn_before_setloc): Likewise.
387 (emit_call_insn_before): Likewise.
388 (emit_call_insn_before_noloc): Likewise.
389 (emit_call_insn_before_setloc): Likewise.
390 (emit_debug_insn_before): Likewise.
391 (emit_debug_insn_before_noloc): Likewise.
392 (emit_debug_insn_before_setloc): Likewise.
393 (emit_label_before): Likewise.
394 (emit_insn_after): Likewise.
395 (emit_insn_after_noloc): Likewise.
396 (emit_insn_after_setloc): Likewise.
397 (emit_jump_insn_after): Likewise.
398 (emit_jump_insn_after_noloc): Likewise.
399 (emit_jump_insn_after_setloc): Likewise.
400 (emit_call_insn_after): Likewise.
401 (emit_call_insn_after_noloc): Likewise.
402 (emit_call_insn_after_setloc): Likewise.
403 (emit_debug_insn_after): Likewise.
404 (emit_debug_insn_after_noloc): Likewise.
405 (emit_debug_insn_after_setloc): Likewise.
406 (emit_label_after): Likewise.
407 (emit_insn): Likewise.
408 (emit_debug_insn): Likewise.
409 (emit_jump_insn): Likewise.
410 (emit_call_insn): Likewise.
411 (emit_label): Likewise.
412 (gen_clobber): Likewise.
413 (emit_clobber): Likewise.
415 (emit_use): Likewise.
418 (emit_barrier_before): Strengthen return type from rtx to
420 (emit_barrier_after): Likewise.
421 (emit_barrier): Likewise.
423 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
424 from rtx to rtx_insn *. Add checked casts for now when converting
425 "last" from rtx to rtx_insn *.
426 (emit_insn_before_noloc): Likewise for return type.
427 (emit_jump_insn_before_noloc): Likewise.
428 (emit_call_insn_before_noloc): Likewise.
429 (emit_debug_insn_before_noloc): Likewise.
430 (emit_barrier_before): Strengthen return type and local "insn"
431 from rtx to rtx_barrier *.
432 (emit_label_before): Strengthen return type from rtx to
433 rtx_insn *. Add checked cast for now when returning param
434 (emit_pattern_after_noloc): Strengthen return type from rtx to
435 rtx_insn *. Add checked casts for now when converting "last" from
437 (emit_insn_after_noloc): Strengthen return type from rtx to
439 (emit_jump_insn_after_noloc): Likewise.
440 (emit_call_insn_after_noloc): Likewise.
441 (emit_debug_insn_after_noloc): Likewise.
442 (emit_barrier_after): Strengthen return type from rtx to
444 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
445 Add checked cast for now when converting "label" from rtx to
447 (emit_pattern_after_setloc): Strengthen return type from rtx to
448 rtx_insn *. Add checked casts for now when converting "last" from
450 (emit_pattern_after): Strengthen return type from rtx to
452 (emit_insn_after_setloc): Likewise.
453 (emit_insn_after): Likewise.
454 (emit_jump_insn_after_setloc): Likewise.
455 (emit_jump_insn_after): Likewise.
456 (emit_call_insn_after_setloc): Likewise.
457 (emit_call_insn_after): Likewise.
458 (emit_debug_insn_after_setloc): Likewise.
459 (emit_debug_insn_after): Likewise.
460 (emit_pattern_before_setloc): Likewise. Add checked casts for now
461 when converting "last" from rtx to rtx_insn *.
462 (emit_pattern_before): Strengthen return type from rtx to
464 (emit_insn_before_setloc): Likewise.
465 (emit_insn_before): Likewise.
466 (emit_jump_insn_before_setloc): Likewise.
467 (emit_jump_insn_before): Likewise.
468 (emit_call_insn_before_setloc): Likewise.
469 (emit_call_insn_before): Likewise.
470 (emit_debug_insn_before_setloc): Likewise.
471 (emit_debug_insn_before): Likewise.
472 (emit_insn): Strengthen return type and locals "last", "insn",
473 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
474 within cases where we know we have an insn.
475 (emit_debug_insn): Likewise.
476 (emit_jump_insn): Likewise.
477 (emit_call_insn): Strengthen return type and local "insn" from rtx
479 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
480 a checked cast to rtx_insn * for now on "label".
481 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
482 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
483 (emit_use): Likewise.
484 (gen_use): Likewise, also for local "seq".
485 (emit): Likewise for return type and local "insn".
486 (rtx_insn): Likewise for return type and local "new_rtx".
488 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
489 from rtx to rtx_barrier *.
491 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
492 changed return type from rtx to rtx_insn *, we must update
493 "emit_fn" type, and this in turn means updating...
494 (frame_insn): ...this. Strengthen return type from rtx to
495 rtx_insn *. Introduce a new local "insn" of the appropriate type.
497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
499 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
500 rtx to rtx_jump_table_data *. Also for local.
501 * rtl.h (emit_jump_table_data): Likewise.
503 2014-08-19 David Malcolm <dmalcolm@redhat.com>
505 * basic-block.h (create_basic_block_structure): Strengthen third
506 param "bb_note" from rtx to rtx_note *.
507 * rtl.h (emit_note_before): Strengthen return type from rtx to
509 (emit_note_after): Likewise.
510 (emit_note): Likewise.
511 (emit_note_copy): Likewise. Also, strengthen param similarly.
512 * function.h (struct rtl_data): Strengthen field
513 "x_stack_check_probe_note" from rtx to rtx_note *.
515 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
516 from rtx to rtx_note *.
517 * cfgrtl.c (create_basic_block_structure): Strengthen third param
518 "bb_note" from rtx to rtx_note *.
519 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
520 when calling emit_note_copy.
521 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
523 (emit_note_after): Likewise.
524 (emit_note_before): Likewise.
525 (emit_note_copy): Likewise. Also, strengthen param similarly.
526 (emit_note): Likewise.
527 * except.c (emit_note_eh_region_end): Likewise for return type.
528 Strengthen local "next" from rtx to rtx_insn *.
529 (convert_to_eh_region_ranges): Strengthen local "note"
530 from rtx to rtx_note *.
531 * final.c (change_scope): Likewise.
532 (reemit_insn_block_notes): Likewise, for both locals named "note".
533 Also, strengthen local "insn" from rtx to rtx_insn *.
534 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
536 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
537 strengthen local "seq" from rtx to rtx_insn *.
538 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
540 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
542 (get_bb_note_from_pool): Strengthen return type from rtx to
544 (sel_create_basic_block): Strengthen local "new_bb_note" from
545 insn_t to rtx_note *.
546 * var-tracking.c (emit_note_insn_var_location): Strengthen local
547 "note" from rtx to rtx_note *.
548 (emit_notes_in_bb): Likewise.
550 2014-08-19 David Malcolm <dmalcolm@redhat.com>
552 * function.h (struct rtl_data): Strengthen field
553 "x_parm_birth_insn" from rtx to rtx_insn *.
554 * function.c (struct assign_parm_data_all): Strengthen fields
555 "first_conversion_insn" and "last_conversion_insn" from rtx to
558 2014-08-19 David Malcolm <dmalcolm@redhat.com>
560 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
561 to rtx_insn *; also for local "var_end_seq".
562 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
563 (maybe_cleanup_end_of_block): Likewise for param "last" and local
565 (expand_gimple_cond): Likewise for locals "last2" and "last".
566 (mark_transaction_restart_calls): Likewise for local "insn".
567 (expand_gimple_stmt): Likewise for return type and locals "last"
569 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
570 (avoid_complex_debug_insns): Likewise for param "insn".
571 (expand_debug_locations): Likewise for locals "insn", "last",
572 "prev_insn" and "insn2".
573 (expand_gimple_basic_block): Likewise for local "last".
574 (construct_exit_block): Likewise for locals "head", "end",
576 (pass_expand::execute): Likewise for locals "var_seq",
577 "var_ret_seq", "next".
579 2014-08-19 David Malcolm <dmalcolm@redhat.com>
581 * asan.h (asan_emit_stack_protection): Strengthen return type from
583 * asan.c (asan_emit_stack_protection): Likewise. Add local
584 "insns" to hold the return value.
586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
588 * basic-block.h (bb_note): Strengthen return type from rtx to
590 * sched-int.h (bb_note): Likewise.
591 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
593 2014-08-19 David Malcolm <dmalcolm@redhat.com>
595 * rtl.h (make_insn_raw): Strengthen return type from rtx to
598 * emit-rtl.c (make_insn_raw): Strengthen return type and local
599 "insn" from rtx to rtx_insn *.
600 (make_debug_insn_raw): Strengthen return type from rtx to
601 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
602 (make_jump_insn_raw): Strengthen return type from rtx to
603 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
604 (make_call_insn_raw): Strengthen return type from rtx to
605 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
606 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
607 callback from rtx to rtx_insn *; likewise for local "insn" and
608 "next", adding a checked cast to rtx_insn in the relevant cases of
609 the switch statement.
610 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
611 callback from rtx to rtx_insn *.
612 (emit_pattern_after_setloc): Likewise.
613 (emit_pattern_after): Likewise.
614 (emit_pattern_before_setloc): Likewise.
615 (emit_pattern_before): Likewise.
617 2014-08-19 David Malcolm <dmalcolm@redhat.com>
619 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
621 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
622 accepting an rtx_insn *.
623 (last_call_insn): Strengthen return type from rtx to
626 2014-08-19 David Malcolm <dmalcolm@redhat.com>
628 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
629 "insns" from rtx to rtx_insn *.
630 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
631 locals "insn" and "prev".
633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
635 * rtl.h (tablejump_p): Strengthen third param from rtx * to
636 rtx_jump_table_data **.
638 * cfgbuild.c (make_edges): Introduce local "table", using it in
639 place of "tmp" for jump table data.
640 (find_bb_boundaries): Strengthen local "table" from rtx to
641 rtx_jump_table_data *.
642 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
643 (outgoing_edges_match): Likewise for locals "table1" and "table2".
644 (try_crossjump_to_edge): Likewise.
645 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
647 (patch_jump_insn): Introduce local "table", using it in place of
648 "tmp" for jump table data.
649 (force_nonfallthru_and_redirect): Introduce local "table", so that
650 call to tablejump_p can receive an rtx_jump_table_data **. Update
651 logic around the call to overwrite "note" appropriately if
652 tablejump_p returns non-zero.
653 (get_last_bb_insn): Introduce local "table", using it in place of
654 "tmp" for jump table data.
655 * dwarf2cfi.c (create_trace_edges): Likewise.
657 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
658 from rtx to rtx_jump_table_data *.
659 (create_fix_barrier): Strengthen local "tmp" from rtx to
660 rtx_jump_table_data *.
661 (arm_reorg): Likewise for local "table".
663 * config/s390/s390.c (s390_chunkify_start): Likewise.
665 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
667 * jump.c (delete_related_insns): Strengthen local "lab_next" from
668 rtx to rtx_jump_table_data *.
670 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
671 rtx_jump_table_data **. Add a checked cast when writing through
672 the pointer: we know there that local "table" is non-NULL and that
673 JUMP_TABLE_DATA_P (table) holds.
674 (label_is_jump_target_p): Introduce local "table", using it in
675 place of "tmp" for jump table data.
677 2014-08-19 Marek Polacek <polacek@redhat.com>
680 * doc/invoke.texi: Document -Wbool-compare.
682 2014-08-19 David Malcolm <dmalcolm@redhat.com>
684 * rtl.h (entry_of_function): Strengthen return type from rtx to
686 * cfgrtl.c (entry_of_function): Likewise.
688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
690 * emit-rtl.h (get_insns): Strengthen return type from rtx to
691 rtx_insn *, adding a checked cast for now.
692 (get_last_insn): Likewise.
694 2014-08-19 David Malcolm <dmalcolm@redhat.com>
696 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
699 * emit-rtl.c (gen_label_rtx): Likewise.
701 2014-08-19 David Malcolm <dmalcolm@redhat.com>
703 * rtl.h (previous_insn): Strengthen return type from rtx to
705 (next_insn): Likewise.
706 (prev_nonnote_insn): Likewise.
707 (prev_nonnote_insn_bb): Likewise.
708 (next_nonnote_insn): Likewise.
709 (next_nonnote_insn_bb): Likewise.
710 (prev_nondebug_insn): Likewise.
711 (next_nondebug_insn): Likewise.
712 (prev_nonnote_nondebug_insn): Likewise.
713 (next_nonnote_nondebug_insn): Likewise.
714 (prev_real_insn): Likewise.
715 (next_real_insn): Likewise.
716 (prev_active_insn): Likewise.
717 (next_active_insn): Likewise.
719 * emit-rtl.c (next_insn): Strengthen return type from rtx to
720 rtx_insn *, adding a checked cast.
721 (previous_insn): Likewise.
722 (next_nonnote_insn): Likewise.
723 (next_nonnote_insn_bb): Likewise.
724 (prev_nonnote_insn): Likewise.
725 (prev_nonnote_insn_bb): Likewise.
726 (next_nondebug_insn): Likewise.
727 (prev_nondebug_insn): Likewise.
728 (next_nonnote_nondebug_insn): Likewise.
729 (prev_nonnote_nondebug_insn): Likewise.
730 (next_real_insn): Likewise.
731 (prev_real_insn): Likewise.
732 (next_active_insn): Likewise.
733 (prev_active_insn): Likewise.
735 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
736 param "stepfunc" so that it returns an rtx_insn * rather than an
737 rtx, to track the change to prev_nonnote_insn_bb, which is the
738 only function this is called with.
739 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
741 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
743 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
746 2014-08-19 David Malcolm <dmalcolm@redhat.com>
748 * coretypes.h (class rtx_debug_insn): Add forward declaration.
749 (class rtx_nonjump_insn): Likewise.
750 (class rtx_jump_insn): Likewise.
751 (class rtx_call_insn): Likewise.
752 (class rtx_jump_table_data): Likewise.
753 (class rtx_barrier): Likewise.
754 (class rtx_code_label): Likewise.
755 (class rtx_note): Likewise.
757 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
758 adding the invariant DEBUG_INSN_P (X).
759 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
760 the invariant NONJUMP_INSN_P (X).
761 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
762 the invariant JUMP_P (X).
763 (class rtx_call_insn): New, a subclass of rtx_insn, adding
764 the invariant CALL_P (X).
765 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
766 invariant JUMP_TABLE_DATA_P (X).
767 (class rtx_barrier): New, a subclass of rtx_insn, adding the
768 invariant BARRIER_P (X).
769 (class rtx_code_label): New, a subclass of rtx_insn, adding
770 the invariant LABEL_P (X).
771 (class rtx_note): New, a subclass of rtx_insn, adding
772 the invariant NOTE_P(X).
773 (is_a_helper <rtx_debug_insn *>::test): New.
774 (is_a_helper <rtx_nonjump_insn *>::test): New.
775 (is_a_helper <rtx_jump_insn *>::test): New.
776 (is_a_helper <rtx_call_insn *>::test): New.
777 (is_a_helper <rtx_jump_table_data *>::test): New functions,
778 overloaded for both rtx and rtx_insn *.
779 (is_a_helper <rtx_barrier *>::test): New.
780 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
781 for both rtx and rtx_insn *.
782 (is_a_helper <rtx_note *>::test): New.
784 2014-08-19 Marek Polacek <polacek@redhat.com>
786 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
787 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
788 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
789 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
791 2014-08-19 David Malcolm <dmalcolm@redhat.com>
793 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
794 rtx_insn *. To help with transition, for now, convert from an
795 access macro into a pair of functions: BND_TO, returning an
797 (SET_BND_TO): New function, for use where BND_TO is used as an
800 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
802 (BND_TO): New function, adding a checked cast.
803 (SET_BND_TO): New function.
805 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
807 (compute_av_set_on_boundaries): Likewise.
809 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
811 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
812 destination if it is used in source.
813 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
814 (*popcount<mode>2_falsedep_1): Likewise.
816 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
819 * configure.ac: Set install_gold_as_default to no first.
820 * configure: Regenerated.
822 2014-08-19 David Malcolm <dmalcolm@redhat.com>
824 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
825 "note_list" field will eventually be an rtx_insn *. To help with
826 transition, for now, convert from an access macro into a pair of
827 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
828 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
831 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
832 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
834 * sel-sched-ir.c (init_bb): Likewise.
835 (sel_restore_notes): Likewise.
836 (move_bb_info): Likewise.
837 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
838 (SET_BB_NOTE_LIST): New function.
840 2014-08-19 David Malcolm <dmalcolm@redhat.com>
842 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
843 field will eventually be an rtx_insn *. To help with transition,
844 for now, convert from an access macro into a pair of functions:
845 VINSN_INSN_RTX, returning an rtx_insn *, and...
846 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
847 is used as an lvalue.
849 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
850 SET_VINSN_INSN_RTX where it's used as an lvalue.
851 (VINSN_INSN_RTX): New function.
852 (SET_VINSN_INSN_RTX): New function.
854 2014-08-19 David Malcolm <dmalcolm@redhat.com>
856 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
857 eventually be rtx_insn *, but to help with transition, for now,
858 convert from an access macro into a pair of functions: DEP_PRO
859 returning an rtx_insn * and...
860 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
861 lvalue, returning an rtx&.
862 (DEP_CON): Analogous changes to DEP_PRO above.
863 (SET_DEP_CON): Likewise.
865 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
866 an lvalue to SET_DEP_CON.
867 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
868 (sd_copy_back_deps): Likewise for DEP_CON.
869 (DEP_PRO): New function, adding a checked cast for now.
871 (SET_DEP_PRO): New function.
872 (SET_DEP_CON): Likewise.
874 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
876 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
877 (extra_options): Add i386/cygwin.opt.
878 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
879 (CPP_SPEC): Accept -pthread.
881 (GOMP_SELF_SPECS): Update comment.
882 * config/i386/cygwin.opt: New file for -pthread flag.
884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
886 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
887 * df.h (DF_REF_INSN): Convert from a macro to a function, so
888 that we can return an rtx_insn *.
890 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
892 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
893 when building executables, not DLLs. Add --large-address-aware
894 under the same conditions.
895 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
896 when building executables, not DLLs. Add --large-address-aware
897 under the same conditions when using -m32.
899 * config/i386/cygwin-stdint.h: Throughout, make type
900 definitions dependent on target architecture, not host.
902 2014-08-19 David Malcolm <dmalcolm@redhat.com>
904 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
905 the return type from rtx to rtx_insn *, which will enable various
906 conversions in followup patches. For now this is is done by a
908 (NEXT_INSN): Likewise.
909 (SET_PREV_INSN): Convert to an inline function. This is intended
910 for use as an lvalue, and so returns an rtx& to allow in-place
912 (SET_NEXT_INSN): Likewise.
914 2014-07-08 Mark Wielaard <mjw@redhat.com>
917 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
919 2014-08-19 Marek Polacek <polacek@redhat.com>
922 * cgraphunit.c (handle_alias_pairs): Fix condition.
924 2014-08-19 Richard Biener <rguenther@suse.de>
926 * gimple-fold.c (fold_gimple_assign): Properly build a
927 null-pointer constant when devirtualizing addresses.
929 2014-07-07 Mark Wielaard <mjw@redhat.com>
931 * dwarf2out.c (decl_quals): New function.
932 (modified_type_die): Take one cv_quals argument instead of two,
933 one for const and one for volatile.
934 (add_type_attribute): Likewise.
935 (generic_parameter_die): Call add_type_attribute with one modifier
937 (base_type_for_mode): Likewise.
938 (add_bounds_info): Likewise.
939 (add_subscript_info): Likewise.
940 (gen_array_type_die): Likewise.
941 (gen_descr_array_type_die): Likewise.
942 (gen_entry_point_die): Likewise.
943 (gen_enumeration_type_die): Likewise.
944 (gen_formal_parameter_die): Likewise.
945 (gen_subprogram_die): Likewise.
946 (gen_variable_die): Likewise.
947 (gen_const_die): Likewise.
948 (gen_field_die): Likewise.
949 (gen_pointer_type_die): Likewise.
950 (gen_reference_type_die): Likewise.
951 (gen_ptr_to_mbr_type_die): Likewise.
952 (gen_inheritance_die): Likewise.
953 (gen_subroutine_type_die): Likewise.
954 (gen_typedef_die): Likewise.
955 (force_type_die): Likewise.
957 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
959 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
961 * configure: Regenerate.
963 2014-08-19 Richard Biener <rguenther@suse.de>
965 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
966 DECL_EXTERNALs in BLOCKs as non-references.
967 * tree-streamer-out.c (streamer_write_chain): Likewise.
969 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
971 Anna Tikhonova <anna.tikhonova@intel.com>
972 Ilya Tocar <ilya.tocar@intel.com>
973 Andrey Turetskiy <andrey.turetskiy@intel.com>
974 Ilya Verbin <ilya.verbin@intel.com>
975 Kirill Yukhin <kirill.yukhin@intel.com>
976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
979 (define_mode_iterator VI48_AVX512F): Delete.
980 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
981 (define_mode_iterator VI2_AVX512VL): Ditto.
982 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
985 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
987 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
988 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
989 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
990 with VI48_AVX512F_AVX512VL): New.
991 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
992 with VI2_AVX512VL): Ditto.
994 2014-08-19 Marek Polacek <polacek@redhat.com>
996 * doc/invoke.texi: Document -Wc99-c11-compat.
998 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1000 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1002 (SET_PREV_INSN): New macro, for use as an lvalue.
1003 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1005 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1006 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1007 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1008 (fixup_abnormal_edges): Likewise.
1009 (unlink_insn_chain): Likewise.
1010 (fixup_reorder_chain): Likewise.
1011 (cfg_layout_delete_block): Likewise.
1012 (cfg_layout_merge_blocks): Likewise.
1013 * combine.c (update_cfg_for_uncondjump): Likewise.
1014 * emit-rtl.c (link_insn_into_chain): Likewise.
1015 (remove_insn): Likewise.
1016 (delete_insns_since): Likewise.
1017 (reorder_insns_nobb): Likewise.
1018 (emit_insn_after_1): Likewise.
1019 * final.c (rest_of_clean_state): Likewise.
1020 (final_scan_insn): Likewise.
1021 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1022 * haifa-sched.c (concat_note_lists): Likewise.
1023 (remove_notes): Likewise.
1024 (restore_other_notes): Likewise.
1025 (move_insn): Likewise.
1026 (unlink_bb_notes): Likewise.
1027 (restore_bb_notes): Likewise.
1028 * jump.c (delete_for_peephole): Likewise.
1029 * optabs.c (emit_libcall_block_1): Likewise.
1030 * reorg.c (emit_delay_sequence): Likewise.
1031 (fill_simple_delay_slots): Likewise.
1032 * sel-sched-ir.c (sel_move_insn): Likewise.
1033 (sel_remove_insn): Likewise.
1034 (get_bb_note_from_pool): Likewise.
1035 * sel-sched.c (move_nop_to_previous_block): Likewise.
1037 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1038 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1039 (c6x_gen_bundles): Likewise.
1040 (hwloop_optimize): Likewise.
1041 * config/frv/frv.c (frv_function_prologue): Likewise.
1042 (frv_register_nop): Likewise.
1043 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1044 (ia64_reorg): Likewise.
1045 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1046 (mep_make_bundle): Likewise.
1047 (mep_bundle_insns): Likewise.
1048 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1049 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1050 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1052 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1054 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1055 return type from rtx to rtx_insn *.
1057 (BB_HEADER): Likewise.
1058 (BB_FOOTER): Likewise.
1059 (SET_BB_HEAD): Convert to a function.
1060 (SET_BB_END): Likewise.
1061 (SET_BB_HEADER): Likewise.
1062 (SET_BB_FOOTER): Likewise.
1064 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1065 Strengthen the return type from rtx to rtx_insn *. For now, this
1066 is done by adding a checked cast, but this will eventually
1067 become a field lookup.
1069 (BB_HEADER): Likewise.
1070 (BB_FOOTER): Likewise.
1071 (SET_BB_HEAD): New function, from macro of same name. This is
1072 intended for use as an lvalue, and so returns an rtx& to allow
1073 in-place modification.
1074 (SET_BB_END): Likewise.
1075 (SET_BB_HEADER): Likewise.
1076 (SET_BB_FOOTER): Likewise.
1078 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1080 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1082 (SET_BB_HEAD): New macro, for use as a lvalue.
1083 (BB_END, SET_BB_END): Likewise.
1084 (BB_HEADER, SET_BB_HEADER): Likewise.
1085 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1087 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1088 of BB_* macros into SET_BB_* macros.
1089 (fix_crossing_unconditional_branches): Likewise.
1090 * caller-save.c (save_call_clobbered_regs): Likewise.
1091 (insert_one_insn): Likewise.
1092 * cfgbuild.c (find_bb_boundaries): Likewise.
1093 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1094 (outgoing_edges_match): Likewise.
1095 (try_optimize_cfg): Likewise.
1096 * cfgexpand.c (expand_gimple_cond): Likewise.
1097 (expand_gimple_tailcall): Likewise.
1098 (expand_gimple_basic_block): Likewise.
1099 (construct_exit_block): Likewise.
1100 * cfgrtl.c (delete_insn): Likewise.
1101 (create_basic_block_structure): Likewise.
1102 (rtl_delete_block): Likewise.
1103 (rtl_split_block): Likewise.
1104 (emit_nop_for_unique_locus_between): Likewise.
1105 (rtl_merge_blocks): Likewise.
1106 (block_label): Likewise.
1107 (try_redirect_by_replacing_jump): Likewise.
1108 (emit_barrier_after_bb): Likewise.
1109 (fixup_abnormal_edges): Likewise.
1110 (record_effective_endpoints): Likewise.
1111 (relink_block_chain): Likewise.
1112 (fixup_reorder_chain): Likewise.
1113 (fixup_fallthru_exit_predecessor): Likewise.
1114 (cfg_layout_duplicate_bb): Likewise.
1115 (cfg_layout_split_block): Likewise.
1116 (cfg_layout_delete_block): Likewise.
1117 (cfg_layout_merge_blocks): Likewise.
1118 * combine.c (update_cfg_for_uncondjump): Likewise.
1119 * emit-rtl.c (add_insn_after): Likewise.
1120 (remove_insn): Likewise.
1121 (reorder_insns): Likewise.
1122 (emit_insn_after_1): Likewise.
1123 * haifa-sched.c (get_ebb_head_tail): Likewise.
1124 (restore_other_notes): Likewise.
1125 (move_insn): Likewise.
1126 (sched_extend_bb): Likewise.
1127 (fix_jump_move): Likewise.
1128 * ifcvt.c (noce_process_if_block): Likewise.
1129 (dead_or_predicable): Likewise.
1130 * ira.c (update_equiv_regs): Likewise.
1131 * reg-stack.c (change_stack): Likewise.
1132 * sel-sched-ir.c (sel_move_insn): Likewise.
1133 * sel-sched.c (move_nop_to_previous_block): Likewise.
1135 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1136 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1138 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1140 * rtl.h (for_each_rtx_in_insn): New function.
1141 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1143 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1145 * coretypes.h (class rtx_insn): Add forward declaration.
1147 * rtl.h: Include is-a.h.
1148 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1149 workaround to ensure gengtype knows inheritance is occurring,
1150 whilst continuing to use the pre-existing special-casing for
1152 (class rtx_insn): New subclass of rtx_def, adding the
1153 invariant that we're dealing with something we can sanely use
1154 INSN_UID, NEXT_INSN, PREV_INSN on.
1155 (is_a_helper <rtx_insn *>::test): New.
1156 (is_a_helper <const rtx_insn *>::test): New.
1158 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1160 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1162 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1164 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1167 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1169 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1170 to BUILT_IN_UNREACHABLE.
1172 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1175 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1177 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1178 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1179 (ffs<mode>2): Do not expand with tzcnt for
1180 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1181 (ffssi2_no_cmove): Ditto.
1182 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1183 (ctz<mode>2): New expander.
1184 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1185 (*ctz<mode>2_falsedep): New insn.
1186 (*ctz<mode>2): Rename from ctz<mode>2.
1187 (clz<mode>2_lzcnt): New expander.
1188 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1189 (*clz<mode>2_lzcnt_falsedep): New insn.
1190 (*clz<mode>2): Rename from ctz<mode>2.
1191 (popcount<mode>2): New expander.
1192 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1193 (*popcount<mode>2_falsedep): New insn.
1194 (*popcount<mode>2): Rename from ctz<mode>2.
1195 (*popcount<mode>2_cmp): Remove.
1196 (*popcountsi2_cmp_zext): Ditto.
1198 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1200 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1201 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1202 * config/microblaze/microblaze.h
1203 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1205 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1208 * configure.ac: Set install_gold_as_default to no for
1210 * configure: Regenerated.
1212 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1214 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1215 * config.in: Add undef of HAVE_isl.
1216 * configure: Regenerate.
1217 * configure.ac: Add definition of HAVE_isl.
1218 * graphite-blocking.c: Add checking of HAVE_isl.
1219 * graphite-dependences.c: Likewise.
1220 * graphite-interchange.c: Likewise.
1221 * graphite-isl-ast-to-gimple.c: Likewise.
1222 * graphite-optimize-isl.c: Likewise.
1223 * graphite-poly.c: Likewise.
1224 * graphite-scop-detection.c: Likewise.
1225 * graphite-sese-to-poly.c: Likewise.
1226 * graphite.c: Likewise.
1227 * toplev.c: Replace the checking of HAVE_cloog with the checking
1230 2014-08-18 Richard Biener <rguenther@suse.de>
1232 PR tree-optimization/62090
1233 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1234 (fold_builtin_3): Do not fold snprintf.
1235 (fold_builtin_4): Likewise.
1236 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1237 moved from builtins.c.
1238 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1239 (gimple_fold_builtin): Do not fold sprintf here.
1241 2014-08-18 Richard Biener <rguenther@suse.de>
1243 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1245 (maybe_canonicalize_mem_ref_addr): ... this function.
1246 (fold_stmt_1): Apply it here before all simplification.
1248 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1251 * cgraph.h (cgraph_node::create_indirect_edge): Add
1252 compute_indirect_info param.
1253 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1254 indirect_info only when it is required.
1255 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1256 indirect_info fore cloned indirect edge.
1258 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1259 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1260 Anna Tikhonova <anna.tikhonova@intel.com>
1261 Ilya Tocar <ilya.tocar@intel.com>
1262 Andrey Turetskiy <andrey.turetskiy@intel.com>
1263 Ilya Verbin <ilya.verbin@intel.com>
1264 Kirill Yukhin <kirill.yukhin@intel.com>
1265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1267 * config/i386/sse.md
1268 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1269 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1271 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1272 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1273 Anna Tikhonova <anna.tikhonova@intel.com>
1274 Ilya Tocar <ilya.tocar@intel.com>
1275 Andrey Turetskiy <andrey.turetskiy@intel.com>
1276 Ilya Verbin <ilya.verbin@intel.com>
1277 Kirill Yukhin <kirill.yukhin@intel.com>
1278 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1280 * config/i386/sse.md
1281 (define_mode_iterator VF1_AVX512VL): New.
1282 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1283 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1286 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1288 Anna Tikhonova <anna.tikhonova@intel.com>
1289 Ilya Tocar <ilya.tocar@intel.com>
1290 Andrey Turetskiy <andrey.turetskiy@intel.com>
1291 Ilya Verbin <ilya.verbin@intel.com>
1292 Kirill Yukhin <kirill.yukhin@intel.com>
1293 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1295 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1296 * config/i386/i386.md
1297 (define_code_iterator any_float): New.
1298 (define_code_attr floatsuffix): New.
1299 * config/i386/sse.md
1300 (define_mode_iterator VF1_128_256VL): New.
1301 (define_mode_iterator VF2_512_256VL): New.
1302 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1304 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1305 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1307 (define_mode_attr qq2pssuff): New.
1308 (define_mode_attr sselongvecmode): New.
1309 (define_mode_attr sselongvecmodelower): New.
1310 (define_mode_attr sseintvecmode3): New.
1311 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1313 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1314 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1315 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1316 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1318 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1320 Anna Tikhonova <anna.tikhonova@intel.com>
1321 Ilya Tocar <ilya.tocar@intel.com>
1322 Andrey Turetskiy <andrey.turetskiy@intel.com>
1323 Ilya Verbin <ilya.verbin@intel.com>
1324 Kirill Yukhin <kirill.yukhin@intel.com>
1325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1327 * config/i386/sse.md
1328 (define_mode_iterator VF2_AVX512VL): New.
1329 (define_mode_attr sseintvecmode2): New.
1330 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1331 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1332 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1334 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1336 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1338 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1341 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1342 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1343 Anna Tikhonova <anna.tikhonova@intel.com>
1344 Ilya Tocar <ilya.tocar@intel.com>
1345 Andrey Turetskiy <andrey.turetskiy@intel.com>
1346 Ilya Verbin <ilya.verbin@intel.com>
1347 Kirill Yukhin <kirill.yukhin@intel.com>
1348 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1350 * config/i386/i386.md
1351 (define_insn "*movoi_internal_avx"): Add evex version.
1352 (define_insn "*movti_internal"): Ditto.
1354 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1356 Anna Tikhonova <anna.tikhonova@intel.com>
1357 Ilya Tocar <ilya.tocar@intel.com>
1358 Andrey Turetskiy <andrey.turetskiy@intel.com>
1359 Ilya Verbin <ilya.verbin@intel.com>
1360 Kirill Yukhin <kirill.yukhin@intel.com>
1361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1363 * config/i386/i386.md
1364 (define_attr "isa"): Add avx512dq, noavx512dq.
1365 (define_attr "enabled"): Ditto.
1366 * config/i386/sse.md
1367 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1369 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1371 Anna Tikhonova <anna.tikhonova@intel.com>
1372 Ilya Tocar <ilya.tocar@intel.com>
1373 Andrey Turetskiy <andrey.turetskiy@intel.com>
1374 Ilya Verbin <ilya.verbin@intel.com>
1375 Kirill Yukhin <kirill.yukhin@intel.com>
1376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1378 * config/i386/i386.c
1379 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1380 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1381 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1382 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1383 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1384 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1385 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1386 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1387 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1388 * config/i386/sse.md
1389 (define_mode_iterator VMOVE): Allow V4TI mode.
1390 (define_mode_iterator V_AVX512VL): New.
1391 (define_mode_iterator V): New handling for AVX512VL.
1392 (define_insn "avx512f_load<mode>_mask"): Delete.
1393 (define_insn "<avx512>_load<mode>_mask"): New.
1394 (define_insn "avx512f_store<mode>_mask"): Delete.
1395 (define_insn "<avx512>_store<mode>_mask"): New.
1398 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1401 * asan.c (instrument_derefs): Fix bitfield check.
1403 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1405 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1406 * config/rs6000/htm.md (ttest): Remove clobber.
1407 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1408 (and_operand): Reformat.
1409 (and_2rld_operand): New predicate.
1410 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1412 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1413 parameter. Handle AND directly.
1414 (rs6000_split_logical_di): Remove last parameter.
1415 (rs6000_split_logical): Remove last parameter. Remove obsolete
1417 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1418 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1419 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1420 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1421 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1422 and 5 anonymous splitters): Delete.
1423 (and<mode>3): New expander.
1424 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1425 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1426 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1427 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1428 (floatdisf2_internal1): Remove clobbers.
1429 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1430 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1431 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1432 (and<mode>3 for BOOL_128): Remove clobber.
1433 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1434 rs6000_split_logical.
1435 (*bool<mode>3_internal for BOOL_128): Adjust call of
1436 rs6000_split_logical.
1437 (*boolc<mode>3_internal1 for BOOL_128,
1438 *boolc<mode>3_internal2 for BOOL_128,
1439 *boolcc<mode>3_internal1 for BOOL_128,
1440 *boolcc<mode>3_internal2 for BOOL_128,
1441 *eqv<mode>3_internal1 for BOOL_128,
1442 *eqv<mode>3_internal2 for BOOL_128,
1443 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1444 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1446 (*vec_reload_and_reg_<mptrsize>): Delete.
1448 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1450 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1451 and split, *boolccsi3_internal3 and split): Delete.
1452 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1453 *boolccdi3_internal3 and split): Delete.
1454 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1455 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1457 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1459 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1460 and split, *boolcsi3_internal3 and split): Delete.
1461 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1462 *boolcdi3_internal3 and split): Delete.
1463 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1465 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1467 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1468 <'u'>: Also support printing the low-order 16 bits.
1469 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1470 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1471 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1472 *booldi3_internal3 and split): Delete.
1473 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1474 *bool<mode>3_dot2): New.
1475 (two anonymous define_splits for non_logical_cint_operand): Merge.
1477 2014-08-17 Marek Polacek <polacek@redhat.com>
1478 Manuel López-Ibáñez <manu@gcc.gnu.org>
1481 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1482 (diagnostic_show_locus): Don't print caret diagnostic
1483 if a column is larger than the line_width.
1485 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1487 * common.opt: Make the ISL AST generator to be the main code generator
1490 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1492 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1494 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1497 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1499 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1500 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1501 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1503 * config/pa/pa.md (begin_brtab): Delete insn.
1504 (end_brtab): Likewise.
1506 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1508 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1510 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1512 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1513 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1514 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1515 (get_dynamic_type): Remove.
1516 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1517 (clear_speculation): Bring to ipa-deivrt.h
1518 (get_class_context): Rename to ...
1519 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1520 (contains_type_p): Update.
1521 (get_dynamic_type): Rename to ...
1522 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1523 (possible_polymorphic_call_targets): UPdate.
1524 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1525 * ipa-prop.c (ipa_analyze_call_uses): Update.
1527 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1529 * doc/invoke.texi (SH options): Document missing processor variant
1530 options. Remove references to Hitachi. Undocument deprecated mspace
1533 2014-08-15 Jason Merrill <jason@redhat.com>
1535 * tree.c (type_hash_canon): Uncomment assert.
1537 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1539 * input.h (in_system_header_at): Add comment.
1541 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1544 * diagnostic.c (build_message_string): Make it extern.
1545 * diagnostic.h (build_message_string): Make it extern.
1547 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1549 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1550 load/store from/to non-floating class pseudo.
1552 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1554 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1556 2014-08-15 Richard Biener <rguenther@suse.de>
1558 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1559 (get_constraint_for_ssa_var): Remove dead code.
1560 (get_constraint_for_1): Adjust.
1561 (find_what_var_points_to): Likewise.
1562 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1564 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1567 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1568 (_mm512_mask_cmpge_epu32_mask): Ditto.
1569 (_mm512_cmpge_epu32_mask): Ditto.
1570 (_mm512_mask_cmpge_epi64_mask): Ditto.
1571 (_mm512_cmpge_epi64_mask): Ditto.
1572 (_mm512_mask_cmpge_epu64_mask): Ditto.
1573 (_mm512_cmpge_epu64_mask): Ditto.
1574 (_mm512_mask_cmple_epi32_mask): Ditto.
1575 (_mm512_cmple_epi32_mask): Ditto.
1576 (_mm512_mask_cmple_epu32_mask): Ditto.
1577 (_mm512_cmple_epu32_mask): Ditto.
1578 (_mm512_mask_cmple_epi64_mask): Ditto.
1579 (_mm512_cmple_epi64_mask): Ditto.
1580 (_mm512_mask_cmple_epu64_mask): Ditto.
1581 (_mm512_cmple_epu64_mask): Ditto.
1582 (_mm512_mask_cmplt_epi32_mask): Ditto.
1583 (_mm512_cmplt_epi32_mask): Ditto.
1584 (_mm512_mask_cmplt_epu32_mask): Ditto.
1585 (_mm512_cmplt_epu32_mask): Ditto.
1586 (_mm512_mask_cmplt_epi64_mask): Ditto.
1587 (_mm512_cmplt_epi64_mask): Ditto.
1588 (_mm512_mask_cmplt_epu64_mask): Ditto.
1589 (_mm512_cmplt_epu64_mask): Ditto.
1590 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1591 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1592 (_mm512_cmpneq_epu32_mask): Ditto.
1593 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1594 (_mm512_cmpneq_epi64_mask): Ditto.
1595 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1596 (_mm512_cmpneq_epu64_mask): Ditto.
1597 (_mm512_castpd_ps): Ditto.
1598 (_mm512_castpd_si512): Ditto.
1599 (_mm512_castps_pd): Ditto.
1600 (_mm512_castps_si512): Ditto.
1601 (_mm512_castsi512_ps): Ditto.
1602 (_mm512_castsi512_pd): Ditto.
1603 (_mm512_castpd512_pd128): Ditto.
1604 (_mm512_castps512_ps128): Ditto.
1605 (_mm512_castsi512_si128): Ditto.
1606 (_mm512_castpd512_pd256): Ditto.
1607 (_mm512_castps512_ps256): Ditto.
1608 (_mm512_castsi512_si256): Ditto.
1609 (_mm512_castpd128_pd512): Ditto.
1610 (_mm512_castps128_ps512): Ditto.
1611 (_mm512_castsi128_si512): Ditto.
1612 (_mm512_castpd256_pd512): Ditto.
1613 (_mm512_castps256_ps512): Ditto.
1614 (_mm512_castsi256_si512): Ditto.
1615 (_mm512_cmpeq_epu32_mask): Ditto.
1616 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1617 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1618 (_mm512_cmpeq_epu64_mask): Ditto.
1619 (_mm512_cmpgt_epu32_mask): Ditto.
1620 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1621 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1622 (_mm512_cmpgt_epu64_mask): Ditto.
1623 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1624 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1625 * config/i386/i386.c (enum ix86_builtins): Add
1626 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1627 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1628 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1629 (bdesc_args): Add __builtin_ia32_si512_256si,
1630 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1631 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1632 __builtin_ia32_pd512_pd.
1633 (ix86_expand_args_builtin): Handle new FTYPEs.
1634 * config/i386/sse.md (castmode): Add 512-bit modes.
1635 (AVX512MODE2P): New.
1636 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1637 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1639 2014-08-15 Richard Biener <rguenther@suse.de>
1641 * fold-const.c (tree_swap_operands_p): Put all constants
1642 last, also strip sign-changing NOPs when considering further
1643 canonicalization. Canonicalize also when optimizing for size.
1645 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1647 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1648 one_match > zero_match case to just before simple_sequence.
1650 2014-08-15 Richard Biener <rguenther@suse.de>
1652 * data-streamer.h (streamer_string_index, string_for_index):
1654 * data-streamer-out.c (streamer_string_index): Make static.
1655 * data-streamer-in.c (string_for_index): Likewise.
1656 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1657 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1659 2014-08-15 Richard Biener <rguenther@suse.de>
1661 PR tree-optimization/62031
1662 * tree-data-ref.c (dr_analyze_indices): Do not set
1663 DR_UNCONSTRAINED_BASE.
1664 (dr_may_alias_p): All indirect accesses have to go the
1665 formerly DR_UNCONSTRAINED_BASE path.
1666 * tree-data-ref.h (struct indices): Remove
1667 unconstrained_base member.
1668 (DR_UNCONSTRAINED_BASE): Remove.
1670 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1673 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1674 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1675 in OMP_CLAUSE_MAP in some outer target region.
1677 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1679 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1680 name_expansion_cache.
1681 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1682 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1683 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1684 (difference_cannot_overflow_p): New parameter. Use affine
1685 expansion for equality check.
1686 (iv_elimination_compare_lt): Pass new argument.
1688 2014-08-14 DJ Delorie <dj@redhat.com>
1690 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1691 variables to the accumulator.
1693 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1694 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1695 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1698 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1699 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1700 (umulqihi3_virt): Likewise.
1701 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1702 (umulqihi3_real): Likewise.
1704 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1706 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1708 PR tree-optimization/62091
1709 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1710 function_entry_reached.
1711 (walk_aliased_vdefs): Clear it here.
1712 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1714 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1716 * ipa-utils.h (compare_virtual_tables): Declare.
1717 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1719 2014-08-14 Marek Polacek <polacek@redhat.com>
1722 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1723 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1725 2014-08-14 Tom de Vries <tom@codesourcery.com>
1727 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1729 2014-08-14 Tom de Vries <tom@codesourcery.com>
1731 PR rtl-optimization/62004
1732 PR rtl-optimization/62030
1733 * ifcvt.c (rtx_interchangeable_p): New function.
1734 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1735 * emit-rtl.h (mem_attrs_eq_p): Declare.
1737 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1739 * graphite-scop-detection.c:
1740 Add inclusion of cp-tree.h.
1741 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1742 in case they are pointers to object types
1744 2014-08-14 Richard Biener <rguenther@suse.de>
1746 * BASE-VER: Change to 5.0.0
1748 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1749 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1750 Anna Tikhonova <anna.tikhonova@intel.com>
1751 Ilya Tocar <ilya.tocar@intel.com>
1752 Andrey Turetskiy <andrey.turetskiy@intel.com>
1753 Ilya Verbin <ilya.verbin@intel.com>
1754 Kirill Yukhin <kirill.yukhin@intel.com>
1755 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1757 * config/i386/sse.md (define_mode_attr avx512): New.
1758 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1760 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1761 (define_mode_attr ssse3_avx2): Ditto.
1762 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1763 (define_mode_attr avx2_avx512bw): New.
1764 (define_mode_attr ssedoublemodelower): New.
1765 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1767 (define_mode_attr ssebytemode): Allow V8DI modes.
1768 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1769 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1770 (define_mode_attr ssePSmode2): New.
1771 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1773 (define_mode_attr dbpsadbwmode): New.
1774 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1775 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1776 (vi8_sse4_1_avx2_avx512): New.
1777 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1779 (define_mode_attr blendbits): Move before its immediate use.
1781 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1782 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1783 Anna Tikhonova <anna.tikhonova@intel.com>
1784 Ilya Tocar <ilya.tocar@intel.com>
1785 Andrey Turetskiy <andrey.turetskiy@intel.com>
1786 Ilya Verbin <ilya.verbin@intel.com>
1787 Kirill Yukhin <kirill.yukhin@intel.com>
1788 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1790 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1791 * config/i386/subst.md
1792 (define_mode_iterator SUBST_V): Update.
1793 (define_mode_iterator SUBST_A): Ditto.
1794 (define_subst_attr "mask_operand7"): New.
1795 (define_subst_attr "mask_operand10"): New.
1796 (define_subst_attr "mask_operand_arg34") : New.
1797 (define_subst_attr "mask_expand_op3"): New.
1798 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1799 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1800 (define_subst_attr "mask_avx512vl_condition"): New.
1801 (define_subst_attr "round_mask_operand4"): Ditto.
1802 (define_subst_attr "round_mask_scalar_op3"): Delete.
1803 (define_subst_attr "round_mask_op4"): New.
1804 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1806 (define_subst_attr "round_modev8sf_condition"): New.
1807 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1809 (define_subst_attr "round_saeonly_mask_operand4"): New.
1810 (define_subst_attr "round_saeonly_mask_op4"): New.
1811 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1812 V8DImode, V16SImode.
1813 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1814 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1815 (define_subst_attr "mask_expand4_args"): New.
1816 (define_subst "mask_expand4"): New.
1818 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1820 Anna Tikhonova <anna.tikhonova@intel.com>
1821 Ilya Tocar <ilya.tocar@intel.com>
1822 Andrey Turetskiy <andrey.turetskiy@intel.com>
1823 Ilya Verbin <ilya.verbin@intel.com>
1824 Kirill Yukhin <kirill.yukhin@intel.com>
1825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1827 * config/i386/i386.md
1828 (define_attr "isa"): Add avx512bw,noavx512bw.
1829 (define_attr "enabled"): Ditto.
1830 (define_split): Add 32/64-bit mask logic.
1831 (define_insn "*k<logic>qi"): New.
1832 (define_insn "*k<logic>hi"): New.
1833 (define_insn "*anddi_1"): Add mask version.
1834 (define_insn "*andsi_1"): Ditto.
1835 (define_insn "*<code><mode>_1"): Ditto.
1836 (define_insn "*<code>hi_1"): Ditto.
1837 (define_insn "kxnor<mode>"): New.
1838 (define_insn "kunpcksi"): New.
1839 (define_insn "kunpckdi"): New.
1840 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1841 (define_insn "*one_cmplhi2_1"): Ditto.
1843 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1845 Anna Tikhonova <anna.tikhonova@intel.com>
1846 Ilya Tocar <ilya.tocar@intel.com>
1847 Andrey Turetskiy <andrey.turetskiy@intel.com>
1848 Ilya Verbin <ilya.verbin@intel.com>
1849 Kirill Yukhin <kirill.yukhin@intel.com>
1850 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1852 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1855 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1857 Anna Tikhonova <anna.tikhonova@intel.com>
1858 Ilya Tocar <ilya.tocar@intel.com>
1859 Andrey Turetskiy <andrey.turetskiy@intel.com>
1860 Ilya Verbin <ilya.verbin@intel.com>
1861 Kirill Yukhin <kirill.yukhin@intel.com>
1862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1864 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1866 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1867 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1868 xmm/ymm16+ when availble.
1869 * config/i386/i386.h
1870 (HARD_REGNO_NREGS): Add mask regs.
1871 (VALID_AVX512F_REG_MODE): Ditto.
1872 (VALID_AVX512F_REG_MODE) : Define.
1873 (VALID_MASK_AVX512BW_MODE): Ditto.
1874 (reg_class) (MASK_REG_P(X)): Define.
1875 * config/i386/i386.md: Do not split long moves with mask register,
1876 use kmovb if avx512bw is availible.
1877 (movdi_internal): Handle mask registers.
1879 2014-08-14 Richard Biener <rguenther@suse.de>
1881 PR tree-optimization/62081
1882 * tree-ssa-loop.c (pass_fix_loops): New pass.
1883 (pass_tree_loop::gate): Do not fixup loops here.
1884 * tree-pass.h (make_pass_fix_loops): Declare.
1885 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1887 2014-08-14 Richard Biener <rguenther@suse.de>
1889 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1890 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1892 2014-08-14 Richard Biener <rguenther@suse.de>
1894 PR tree-optimization/62090
1895 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1896 (fold_builtin_2): Do not fold sprintf.
1897 (fold_builtin_3): Likewise.
1898 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1899 moved from builtins.c.
1900 (gimple_fold_builtin): Fold sprintf.
1902 2014-08-14 Richard Biener <rguenther@suse.de>
1904 PR rtl-optimization/62079
1905 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1908 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1910 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1911 current_function_decl.
1913 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1915 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1916 cgraph_function_node to cgraph_node::function_symbol
1919 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1921 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1922 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1924 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1926 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1929 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1931 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1934 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1937 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1938 any registers that are used in mem_insn.
1940 2014-08-12 Steve Ellcey <sellcey@mips.com>
1942 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1944 2014-08-12 Steve Ellcey <sellcey@mips.com>
1946 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1947 (MULTILIB_DIRNAMES): Ditto.
1948 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1949 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1950 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1951 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1952 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1953 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1955 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1958 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1959 of __ARM_SIZEOF_WCHAR_T.
1961 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1964 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1965 Remove unnecessary attributes.
1967 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1969 * internal-fn.c (init_internal_fns): Fix off-by-one.
1971 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1972 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1973 Anna Tikhonova <anna.tikhonova@intel.com>
1974 Ilya Tocar <ilya.tocar@intel.com>
1975 Andrey Turetskiy <andrey.turetskiy@intel.com>
1976 Ilya Verbin <ilya.verbin@intel.com>
1977 Kirill Yukhin <kirill.yukhin@intel.com>
1978 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1980 * config/i386/i386.c (standard_sse_constant_opcode): Use
1981 vpxord/vpternlog if avx512 is availible.
1983 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1986 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1987 bitfields, that is when size doesn't match the size of type or the
1988 size of the constructor.
1990 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1992 * config/rs6000/constraints.md (wh constraint): New constraint,
1993 for FP registers if direct move is available.
1994 (wi constraint): New constraint, for VSX/FP registers that can
1995 handle 64-bit integers.
1996 (wj constraint): New constraint for VSX/FP registers that can
1997 handle 64-bit integers for direct moves.
1998 (wk constraint): New constraint for VSX/FP registers that can
1999 handle 64-bit doubles for direct moves.
2000 (wy constraint): Make documentation match implementation.
2002 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2003 scalar_in_vmx_p field to simplify tests of whether SFmode or
2004 DFmode can go in the Altivec registers.
2005 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2006 (rs6000_setup_reg_addr_masks): Likewise.
2007 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2008 field, and wh/wi/wj/wk constraints.
2009 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2010 the wh/wi/wj/wk constraints.
2011 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2012 upper registers, prefer VSX registers unless the operation is a
2013 memory operation with REG+OFFSET addressing.
2015 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2016 DImode. Change SFmode to use ww constraint instead of d to allow
2017 SF registers in the upper registers.
2020 (VSr5): Fix thinko in comment.
2021 (VSa): New mode attribute that is an alternative to wa, that
2022 returns the VSX register class that a mode can go in, but may not
2023 be the preferred register class.
2024 (VS_64dm): New mode attribute for appropriate register classes for
2025 referencing 64-bit elements of vectors for direct moves and normal
2027 (VS_64reg): Likewise.
2028 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2029 register allocator to only registers the data type can handle.
2030 (vsx_le_perm_load_<mode>): Likewise.
2031 (vsx_le_perm_store_<mode>): Likewise.
2032 (vsx_xxpermdi2_le_<mode>): Likewise.
2033 (vsx_xxpermdi4_le_<mode>): Likewise.
2034 (vsx_lxvd2x2_le_<mode>): Likewise.
2035 (vsx_lxvd2x4_le_<mode>): Likewise.
2036 (vsx_stxvd2x2_le_<mode>): Likewise.
2037 (vsx_add<mode>3): Likewise.
2038 (vsx_sub<mode>3): Likewise.
2039 (vsx_mul<mode>3): Likewise.
2040 (vsx_div<mode>3): Likewise.
2041 (vsx_tdiv<mode>3_internal): Likewise.
2042 (vsx_fre<mode>2): Likewise.
2043 (vsx_neg<mode>2): Likewise.
2044 (vsx_abs<mode>2): Likewise.
2045 (vsx_nabs<mode>2): Likewise.
2046 (vsx_smax<mode>3): Likewise.
2047 (vsx_smin<mode>3): Likewise.
2048 (vsx_sqrt<mode>2): Likewise.
2049 (vsx_rsqrte<mode>2): Likewise.
2050 (vsx_tsqrt<mode>2_internal): Likewise.
2051 (vsx_fms<mode>4): Likewise.
2052 (vsx_nfma<mode>4): Likewise.
2053 (vsx_eq<mode>): Likewise.
2054 (vsx_gt<mode>): Likewise.
2055 (vsx_ge<mode>): Likewise.
2056 (vsx_eq<mode>_p): Likewise.
2057 (vsx_gt<mode>_p): Likewise.
2058 (vsx_ge<mode>_p): Likewise.
2059 (vsx_xxsel<mode>): Likewise.
2060 (vsx_xxsel<mode>_uns): Likewise.
2061 (vsx_copysign<mode>3): Likewise.
2062 (vsx_float<VSi><mode>2): Likewise.
2063 (vsx_floatuns<VSi><mode>2): Likewise.
2064 (vsx_fix_trunc<mode><VSi>2): Likewise.
2065 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2066 (vsx_x<VSv>r<VSs>i): Likewise.
2067 (vsx_x<VSv>r<VSs>ic): Likewise.
2068 (vsx_btrunc<mode>2): Likewise.
2069 (vsx_b2trunc<mode>2): Likewise.
2070 (vsx_floor<mode>2): Likewise.
2071 (vsx_ceil<mode>2): Likewise.
2072 (vsx_<VS_spdp_insn>): Likewise.
2073 (vsx_xscvspdp): Likewise.
2074 (vsx_xvcvspuxds): Likewise.
2075 (vsx_float_fix_<mode>2): Likewise.
2076 (vsx_set_<mode>): Likewise.
2077 (vsx_extract_<mode>_internal1): Likewise.
2078 (vsx_extract_<mode>_internal2): Likewise.
2079 (vsx_extract_<mode>_load): Likewise.
2080 (vsx_extract_<mode>_store): Likewise.
2081 (vsx_splat_<mode>): Likewise.
2082 (vsx_xxspltw_<mode>): Likewise.
2083 (vsx_xxspltw_<mode>_direct): Likewise.
2084 (vsx_xxmrghw_<mode>): Likewise.
2085 (vsx_xxmrglw_<mode>): Likewise.
2086 (vsx_xxsldwi_<mode>): Likewise.
2087 (vsx_xscvdpspn): Tighten constraints to only use register classes
2089 (vsx_xscvspdpn): Likewise.
2090 (vsx_xscvdpspn_scalar): Likewise.
2092 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2093 wj, and wk constraints.
2094 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2095 general purpose registers.
2097 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2099 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2100 DImode instead of wm. Use wk constraint for direct move of DFmode
2102 (extendsidi2_lfiwax): Likewise.
2105 (movdi_internal64): Likewise.
2107 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2108 wk constraints. Make the wy constraint documentation match them
2111 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2113 Replacement of isl_int by isl_val
2114 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2115 (compute_bounds_for_param): use isl_val instead of isl_int
2116 (compute_bounds_for_loop): likewise
2117 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2118 (build_linearized_memory_access): use isl_val instead of isl_int
2119 (pdr_stride_in_loop): likewise
2120 * graphite-optimize-isl.c:
2121 (getPrevectorMap): use isl_val instead of isl_int
2123 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2124 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2125 (extern the_isl_ctx): declare
2126 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2127 (extract_affine_gmp): likewise
2129 (build_loop_iteration_domains): likewise
2130 (add_param_constraints): likewise
2132 2014-08-11 Richard Biener <rguenther@suse.de>
2134 PR tree-optimization/62075
2135 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2136 handle uses in patterns.
2138 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2139 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2140 Anna Tikhonova <anna.tikhonova@intel.com>
2141 Ilya Tocar <ilya.tocar@intel.com>
2142 Andrey Turetskiy <andrey.turetskiy@intel.com>
2143 Ilya Verbin <ilya.verbin@intel.com>
2144 Kirill Yukhin <kirill.yukhin@intel.com>
2145 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2147 * common/config/i386/i386-common.c
2148 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2149 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2150 (ix86_handle_option): Handle OPT_mavx512vl.
2151 * config/i386/cpuid.h (bit_AVX512VL): Define.
2152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2153 set -mavx512vl accordingly.
2154 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2155 OPTION_MASK_ISA_AVX512VL.
2156 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2157 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2158 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2159 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2160 * config/i386/i386.h (TARGET_AVX512VL): Define.
2161 (TARGET_AVX512VL_P(x)): Ditto.
2162 * config/i386/i386.opt: Add mavx512vl.
2164 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2166 PR tree-optimization/62073
2167 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2170 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2172 Anna Tikhonova <anna.tikhonova@intel.com>
2173 Ilya Tocar <ilya.tocar@intel.com>
2174 Andrey Turetskiy <andrey.turetskiy@intel.com>
2175 Ilya Verbin <ilya.verbin@intel.com>
2176 Kirill Yukhin <kirill.yukhin@intel.com>
2177 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2179 * common/config/i386/i386-common.c
2180 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2181 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2182 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2183 (ix86_handle_option): Handle OPT_mavx512bw.
2184 * config/i386/cpuid.h (bit_AVX512BW): Define.
2185 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2186 set -mavx512bw accordingly.
2187 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2188 OPTION_MASK_ISA_AVX512BW.
2189 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2190 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2191 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2192 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2193 * config/i386/i386.h (TARGET_AVX512BW): Define.
2194 (TARGET_AVX512BW_P(x)): Ditto.
2195 * config/i386/i386.opt: Add mavx512bw.
2197 2014-08-11 Richard Biener <rguenther@suse.de>
2199 PR tree-optimization/62070
2200 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2201 Remove SSA checking.
2203 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2205 * asan.c (asan_check_flags): New enum.
2206 (build_check_stmt_with_calls): Removed function.
2207 (build_check_stmt): Split inlining logic to
2208 asan_expand_check_ifn.
2209 (instrument_derefs): Rename parameter.
2210 (instrument_mem_region_access): Rename parameter.
2211 (instrument_strlen_call): Likewise.
2212 (asan_expand_check_ifn): New function.
2213 (asan_instrument): Remove old code.
2214 (pass_sanopt::execute): Change handling of
2215 asan-instrumentation-with-call-threshold.
2216 (asan_clear_shadow): Fix formatting.
2217 (asan_function_start): Likewise.
2218 (asan_emit_stack_protection): Likewise.
2219 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2221 * internal-fn.c (expand_ASAN_CHECK): New function.
2222 * internal-fn.def (ASAN_CHECK): New internal function.
2223 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2225 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2226 * tree.c: Small comment fix.
2228 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2230 * gimple.c (gimple_call_fnspec): Support internal functions.
2231 (gimple_call_return_flags): Use const.
2232 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2233 * internal-fn.def: Add fnspec information.
2234 * internal-fn.h (internal_fn_fnspec): New function.
2235 (init_internal_fns): Declare new function.
2236 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2237 (init_internal_fns): New function.
2238 * tree-core.h: Update macro call.
2239 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2241 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2243 * lto-streamer.h (struct output_block::symbol): Change from
2244 struct symtab_node to plain symtab_node.
2245 (referenced_from_this_partition_p): Change first parameter
2246 from struct symtab_node to plain symtab_node.
2248 2014-08-10 Marek Polacek <polacek@redhat.com>
2251 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2253 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2255 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2256 DECL correctly; do not give up on types in static storage.
2258 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2260 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2262 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2264 * graphite-isl-ast-to-gimple.c:
2265 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2267 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2269 2014-08-08 Guozhi Wei <carrot@google.com>
2271 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2273 2014-08-08 Cary Coutant <ccoutant@google.com>
2275 * dwarf2out.c (get_skeleton_type_unit): Remove.
2276 (output_skeleton_debug_sections): Remove skeleton type units.
2277 (output_comdat_type_unit): Likewise.
2278 (dwarf2out_finish): Likewise.
2280 2014-08-07 Yi Yang <ahyangyi@google.com>
2282 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2284 2014-08-08 Richard Biener <rguenther@suse.de>
2286 * lto-streamer.h (struct lto_input_block): Make it a class
2288 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2289 (struct lto_function_header, struct lto_simple_header,
2290 struct lto_simple_header_with_strings,
2291 struct lto_decl_header, struct lto_function_header): Make
2292 a simple inheritance hieararchy. Remove unused fields.
2293 (struct lto_asm_header): Remove.
2294 * lto-streamer-out.c (produce_asm): Adjust.
2295 (lto_output_toplevel_asms): Likewise.
2296 (produce_asm_for_decls): Likewise.
2297 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2298 * data-streamer-in.c (string_for_index): Likewise.
2299 * ipa-inline-analysis.c (inline_read_section): Likewise.
2300 * ipa-prop.c (ipa_prop_read_section): Likewise.
2301 (read_replacements_section): Likewise.
2302 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2303 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2304 (lto_destroy_simple_input_block): Likewise.
2305 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2306 (lto_input_toplevel_asms): Likewise.
2308 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2309 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2310 Anna Tikhonova <anna.tikhonova@intel.com>
2311 Ilya Tocar <ilya.tocar@intel.com>
2312 Andrey Turetskiy <andrey.turetskiy@intel.com>
2313 Ilya Verbin <ilya.verbin@intel.com>
2314 Kirill Yukhin <kirill.yukhin@intel.com>
2315 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2317 * common/config/i386/i386-common.c
2318 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2319 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2320 (ix86_handle_option): Handle OPT_mavx512dq.
2321 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2322 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2323 set -mavx512dq accordingly.
2324 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2325 OPTION_MASK_ISA_AVX512DQ.
2326 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2327 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2328 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2329 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2330 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2331 (TARGET_AVX512DQ_P(x)): Ditto.
2332 * config/i386/i386.opt: Add mavx512dq.
2334 2014-08-08 Richard Biener <rguenther@suse.de>
2336 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2337 target_percent, target_percent_s): Export.
2338 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2339 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2340 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2341 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2342 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2343 Move to gimple-fold.c.
2344 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2346 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2347 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2348 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2349 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2350 (rewrite_call_expr_array): Remove.
2351 (fold_builtin_sprintf_chk): Likewise.
2352 (fold_builtin_snprintf_chk): Likewise.
2353 (fold_builtin_varargs): Remove handling of sprintf_chk,
2354 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2355 (gimple_fold_builtin_sprintf_chk): Remove.
2356 (gimple_fold_builtin_snprintf_chk): Likewise.
2357 (gimple_fold_builtin_varargs): Likewise.
2358 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2359 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2360 * gimple.c (gimple_seq_add_seq_without_update): New function.
2361 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2362 * gimple-fold.c: Include output.h.
2363 (gsi_replace_with_seq_vops): New function, split out from ...
2364 (gimplify_and_update_call_from_tree): ... here.
2365 (replace_call_with_value): New function.
2366 (replace_call_with_call_and_fold): Likewise.
2367 (var_decl_component_p): Moved from builtins.c.
2368 (gimple_fold_builtin_memory_op): Moved from builtins.c
2369 fold_builtin_memory_op and rewritten to GIMPLE.
2370 (gimple_fold_builtin_memset): Likewise.
2371 (gimple_fold_builtin_strcpy): Likewise.
2372 (gimple_fold_builtin_strncpy): Likewise.
2373 (gimple_fold_builtin_strcat): Likewise.
2374 (gimple_fold_builtin_fputs): Likewise.
2375 (gimple_fold_builtin_memory_chk): Likewise.
2376 (gimple_fold_builtin_stxcpy_chk): Likewise.
2377 (gimple_fold_builtin_stxncpy_chk): Likewise.
2378 (gimple_fold_builtin_snprintf_chk): Likewise.
2379 (gimple_fold_builtin_sprintf_chk): Likewise.
2380 (gimple_fold_builtin_strlen): New function.
2381 (gimple_fold_builtin_with_strlen): New function split out from
2382 gimple_fold_builtin.
2383 (gimple_fold_builtin): Change signature and handle
2384 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2385 here. Call gimple_fold_builtin_with_strlen.
2386 (gimple_fold_call): Adjust.
2388 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2390 * calls.c (precompute_arguments): Check
2391 promoted_for_signed_and_unsigned_p and set the promoted mode.
2392 (promoted_for_signed_and_unsigned_p): New function.
2393 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2394 and set the promoted mode.
2395 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2396 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2397 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2400 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2402 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2403 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2404 (expand_call): Likewise.
2405 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2406 to get promoted mode.
2407 * combine.c (record_promoted_value): Skip > 0 comparison with
2408 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2409 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2410 of SUBREG_PROMOTED_UNSIGNED_P.
2411 (convert_modes): Likewise.
2412 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2413 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2414 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2415 SUBREG_PROMOTED_UNSIGNED_SET.
2416 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2417 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2418 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2419 SUBREG_PROMOTED_SET.
2420 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2421 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2422 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2423 of SUBREG_PROMOTED_UNSIGNED_P.
2424 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2425 (SUBREG_PROMOTED_SET): New define.
2426 (SUBREG_PROMOTED_GET): Likewise.
2427 (SUBREG_PROMOTED_SIGN): Likewise.
2428 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2429 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2430 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2431 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2432 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2433 (nonzero_bits1): Skip > 0 comparison with the results as
2434 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2435 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2436 of !SUBREG_PROMOTED_UNSIGNED_P.
2437 * simplify-rtx.c (simplify_unary_operation_1): Use new
2438 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2439 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2440 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2441 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2443 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2445 * ipa-devirt.c: Include gimple-pretty-print.h
2446 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2448 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2449 (get_polymorphic_call_info): Fix return value
2450 (type_change_info): New sturcture based on ipa-prop
2452 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2453 based on ipa-prop variant.
2454 (extr_type_from_vtbl_ptr_store): New function
2455 based on ipa-prop variant.
2456 (record_known_type): New function.
2457 (check_stmt_for_type_change): New function.
2458 (get_dynamic_type): New function.
2459 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2460 * tree-ssa-pre.c: ipa-utils.h
2461 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2462 machinery; sanity check with ipa-prop devirtualization.
2463 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2466 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2468 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2469 * alias.c, cfgexpand.c, cgraphbuild.c,
2470 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2471 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2472 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2473 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2474 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2475 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2476 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2477 dse.c, except.c, gengtype.c, gimple-expr.c,
2478 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2479 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2480 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2481 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2482 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2483 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2485 * pointer-set.c: Remove file.
2486 * pointer-set.h: Remove file.
2488 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2490 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2491 * config/arm/types.md (f_sels, f_seld): Delete.
2493 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2495 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2496 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2497 (aarch64_movdi_<mode>high): Likewise.
2498 (aarch64_mov<mode>high_di): Likewise.
2499 (aarch64_movdi_<mode>low): Likewise.
2500 (aarch64_mov<mode>low_di): Likewise.
2501 (aarch64_movtilow_tilow): Likewise.
2502 Add comment explaining usage of fp,simd attributes and of
2503 TARGET_FLOAT and TARGET_SIMD.
2505 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2506 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2508 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2509 Use MOVN when one of the half-words is 0xffff.
2511 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2513 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2515 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2517 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2518 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2519 (rfs_str): String corresponding to RFS_* constants.
2520 (rank_for_schedule_stats_t): New typedef.
2521 (rank_for_schedule_stats): New static variable.
2522 (rfs_result): New static function.
2523 (rank_for_schedule): Track statistics for deciding heuristics.
2524 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2526 (ready_sort): Use them for debug printouts.
2527 (schedule_block): Init statistics state. Print statistics on
2528 rank_for_schedule decisions.
2530 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2532 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2534 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2536 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2539 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2541 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2542 function to not conflict.
2543 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2544 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2545 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2546 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2547 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2550 2014-08-07 Marek Polacek <polacek@redhat.com>
2552 * fold-const.c (fold_binary_loc): Add folding of
2553 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2555 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2557 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2558 instead of type size.
2559 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2561 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2563 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2564 (*thumb1_movqi_insn): Likewise.
2565 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2567 2014-08-07 Tom de Vries <tom@codesourcery.com>
2569 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2570 (glibc_2_11_or_earlier): Remove effective-target keywords.
2572 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2574 * config/arm/arm.c (bdesc_2arg): Fix typo.
2575 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2577 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2579 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2581 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2584 * haifa-sched.c (advance_one_cycle): Fix dump.
2585 (schedule_block): Don't advance cycle if we are already at the
2586 beginning of the cycle.
2588 2014-08-06 Martin Jambor <mjambor@suse.cz>
2591 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2593 2014-08-06 Richard Biener <rguenther@suse.de>
2596 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2598 (lto_input_tree): Pop SCCs here.
2600 2014-08-06 Richard Biener <rguenther@suse.de>
2602 PR tree-optimization/61320
2603 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2604 handle misaligned loads.
2606 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2608 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2609 (aarch64_expand_vec_perm_const): Check for dup before zip.
2611 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2613 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2614 CONST_INT_P instead of GET_CODE and compare.
2615 (aarch64_select_cc_mode): Likewise.
2616 (aarch64_print_operand): Likewise.
2617 (aarch64_rtx_costs): Likewise.
2618 (aarch64_simd_valid_immediate): Likewise.
2619 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2620 (aarch64_simd_emit_pair_result_insn): Likewise.
2622 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2624 * gdbhooks.py (find_gcc_source_dir): New helper function.
2625 (class PassNames): New class, locating and parsing passes.def.
2626 (class BreakOnPass): New command "break-on-pass".
2628 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2630 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2633 2014-08-05 Richard Biener <rguenther@suse.de>
2635 PR rtl-optimization/61672
2636 * emit-rtl.h (mem_attrs_eq_p): Declare.
2637 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2638 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2639 * cfgcleanup.c (merge_memattrs): Likewise.
2642 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2644 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2645 rather than singleton vectors.
2646 (vqdmlsls_lane_s32): Likewise.
2648 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2650 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2651 Use VSDQ_HSI mode iterator.
2652 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2653 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2654 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2655 Use BUILTIN_VDQHS macro.
2656 (sqrdmulh_laneq): Likewise.
2657 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2658 (vqdmlals_laneq_s32): Likewise.
2659 (vqdmlslh_laneq_s16): Likewise.
2660 (vqdmlsls_laneq_s32): Likewise.
2661 (vqdmulhh_laneq_s16): Likewise.
2662 (vqdmulhs_laneq_s32): Likewise.
2663 (vqrdmulhh_laneq_s16): Likewise.
2664 (vqrdmulhs_laneq_s32): Likewise.
2666 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2668 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2669 (vmuld_laneq_f64): Likewise.
2670 (vmuls_laneq_f32): Likewise.
2671 (vmul_n_f64): Likewise.
2672 (vmuld_lane_f64): Reimplement in C.
2673 (vmuls_lane_f32): Likewise.
2675 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2677 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2679 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2681 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2683 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2684 (rbitsi2): Likewise.
2685 (*arm_rev): Set predicable and predicable_short_it attributes.
2687 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2689 * convert.c (convert_to_integer): Guard transformation to lrint by
2692 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2694 * config/aarch64/aarch64-builtins.c
2695 (aarch64_simd_builtin_type_mode): Delete.
2696 (v8qi_UP): Remap to V8QImode.
2697 (v4hi_UP): Remap to V4HImode.
2698 (v2si_UP): Remap to V2SImode.
2699 (v2sf_UP): Remap to V2SFmode.
2700 (v1df_UP): Remap to V1DFmode.
2701 (di_UP): Remap to DImode.
2702 (df_UP): Remap to DFmode.
2703 (v16qi_UP):V16QImode.
2704 (v8hi_UP): Remap to V8HImode.
2705 (v4si_UP): Remap to V4SImode.
2706 (v4sf_UP): Remap to V4SFmode.
2707 (v2di_UP): Remap to V2DImode.
2708 (v2df_UP): Remap to V2DFmode.
2709 (ti_UP): Remap to TImode.
2710 (ei_UP): Remap to EImode.
2711 (oi_UP): Remap to OImode.
2712 (ci_UP): Map to CImode.
2713 (xi_UP): Remap to XImode.
2714 (si_UP): Remap to SImode.
2715 (sf_UP): Remap to SFmode.
2716 (hi_UP): Remap to HImode.
2717 (qi_UP): Remap to QImode.
2718 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2719 (VAR1): Build builtin name.
2720 (aarch64_init_simd_builtins): Remove dead code.
2722 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2724 * graphite-isl-ast-to-gimple.c:
2725 (set_options): New function.
2726 (scop_to_isl_ast): Add calling of set_options.
2728 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2730 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2731 (analyze_iv_to_split_insn): Don't initialize them.
2732 (get_ivts_expr): Removed.
2733 (allocate_basic_variable, insert_base_initialization): Use
2734 SET_SRC instead of *get_ivts_expr.
2735 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2737 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2739 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2740 (translate_isl_ast_for_loop): Add checking of the
2741 flag_loop_parallelize_all.
2742 (ast_build_before_for): New function.
2743 (scop_to_isl_ast): Add checking of the
2744 flag_loop_parallelize_all.
2745 * graphite-dependences.c: Move the defenition of the
2746 scop_get_dependences from graphite-optimize-isl.c to this file.
2747 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2748 (carries_deps): Add checking of the x's value.
2749 * graphite-optimize-isl.c: Move the defenition of the
2750 scop_get_dependences to graphite-dependences.c.
2751 * graphite-poly.h: Add declarations of scop_get_dependences
2754 2014-08-04 Rohit <rohitarulraj@freescale.com>
2757 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2759 (alt_reg_names): Likewise.
2760 (rs6000_dwarf_register_span): For SPE high registers, replace
2761 dwarf register numbers with GCC hard register numbers.
2762 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2763 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2764 register number for the corresponding GCC hard register number.
2765 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2766 newly added GCC hard register numbers for SPE high registers.
2767 (DWARF_FRAME_REGISTERS): Likewise.
2768 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2769 (DWARF_FRAME_REGNUM): Likewise.
2770 (FIXED_REGISTERS): Likewise.
2771 (CALL_USED_REGISTERS): Likewise.
2772 (CALL_REALLY_USED_REGISTERS): Likewise.
2773 (REG_ALLOC_ORDER): Likewise.
2774 (enum reg_class): Likewise.
2775 (REG_CLASS_NAMES): Likewise.
2776 (REG_CLASS_CONTENTS): Likewise.
2777 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2779 2014-08-04 Richard Biener <rguenther@suse.de>
2781 * gimple-fold.h (gimple_fold_builtin): Remove.
2782 * gimple-fold.c (gimple_fold_builtin): Make static.
2783 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2784 fold_stmt, not gimple_fold_builtin.
2786 2014-08-04 Martin Liska <mliska@suse.cz>
2788 * cgraph.h (csi_end_p): Removed.
2789 (csi_next): Likewise.
2790 (csi_node): Likewise.
2791 (csi_start): Likewise.
2792 (cgraph_node_in_set_p): Likewise.
2793 (cgraph_node_set_size): Likewise.
2794 (vsi_end_p): Likewise.
2795 (vsi_next): Likewise.
2796 (vsi_node): Likewise.
2797 (vsi_start): Likewise.
2798 (varpool_node_set_size): Likewise.
2799 (cgraph_node_set_nonempty_p): Likewise.
2800 (varpool_node_set_nonempty_p): Likewise.
2801 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2803 * ipa-inline-transform.c: Likewise.
2804 * ipa-utils.c (cgraph_node_set_new): Removed.
2805 (cgraph_node_set_add): Likewise.
2806 (cgraph_node_set_remove): Likewise.
2807 (cgraph_node_set_find): Likewise.
2808 (dump_cgraph_node_set): Likewise.
2809 (debug_cgraph_node_set): Likewise.
2810 (free_cgraph_node_set): Likewise.
2811 (varpool_node_set_new): Likewise.
2812 (varpool_node_set_add): Likewise.
2813 (varpool_node_set_remove): Likewise.
2814 (varpool_node_set_find): Likewise.
2815 (dump_varpool_node_set): Likewise.
2816 (free_varpool_node_set): Likewise.
2817 (debug_varpool_node_set): Likewise.
2818 * tree-emutls.c (struct tls_var_data):
2819 (emutls_index): Removed.
2820 (emutls_decl): Likewise.
2821 (gen_emutls_addr): Function implementation uses newly added
2822 hash_map<varpool_node *, tls_var_data>.
2823 (clear_access_vars): Likewise.
2824 (create_emultls_var): Likewise.
2825 (ipa_lower_emutls): Likewise.
2826 (reset_access): New function.
2828 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2830 * config/i386/i386.c (ix86_option_override_internal): Add
2831 PTA_RDRND and PTA_MOVBE for bdver4.
2833 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2834 James Greenhalgh <james.greenhalgh@arm.com>
2836 * doc/md.texi (clrsb): Document.
2837 (clz): Change reference to x into operand 1.
2839 (popcount): Likewise.
2841 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2844 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2845 move to subtarget in serial version if result is ignored.
2847 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2848 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2850 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2851 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2852 (sched_analyze_insn): Update use of try_group_insn to
2853 sched_macro_fuse_insns.
2854 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2855 arguments that are not conditional jumps.
2857 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2859 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2860 family information. Handle BTVER2 cpu with cpuid family value.
2862 2014-08-04 Tom de Vries <tom@codesourcery.com>
2864 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2865 (glibc_2_11_or_earlier): Document effective-target keywords.
2867 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2869 * ipa-devirt.c (odr_type_warn_count): Add type.
2870 (possible_polymorphic_call_targets): Set it.
2871 (ipa_devirt): Use it.
2873 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2875 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2877 * ipa-devirt.c: Include hash-map.h
2878 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2879 (clear_speculation): Break out of ...
2880 (get_class_context): ... here; speed up handling obviously useless
2882 (odr_type_warn_count, decl_warn_count): New structures.
2883 (final_warning_record): New structure.
2884 (final_warning_records): New static variable.
2885 (possible_polymorphic_call_targets): Cleanup handling of
2886 speculative info; do not build speculation when user do not care;
2887 record info about warnings when asked for.
2888 (add_decl_warning): New function.
2889 (type_warning_cmp): New function.
2890 (decl_warning_cmp): New function.
2891 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2892 (gate): Enable pass when warnings are requested.
2893 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2896 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2898 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2900 (hash_map::remove): New method.
2901 (hash_map::traverse): New method.
2902 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2903 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2904 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2905 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2906 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2907 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2910 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2912 * hash-set.h: new File.
2913 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2914 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2915 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2916 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2917 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2918 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2919 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2920 varpool.c: Use hash_set instead of pointer_set.
2922 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2924 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2926 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2928 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2929 for frame access when strict_p is false.
2931 2014-08-01 Renlin Li <renlin.li@arm.com>
2932 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2934 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2935 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2936 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2938 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2940 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2941 aarch64_mem_pair_offset.
2943 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2945 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2947 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2948 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2950 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2952 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2954 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2957 * cgraphunit.c (analyze_functions): Use get_create rather than get
2958 for decls which are clones of abstract functions.
2960 2014-08-01 Martin Liska <mliska@suse.cz>
2962 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2963 * ipa-prop.h (count_formal_params): Global function created from static.
2964 * ipa-prop.c (count_formal_params): Likewise.
2965 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2966 profiles for semantically equivalent functions.
2967 * passes.c (do_per_function): If we load body of a function
2968 during WPA, this condition should behave same.
2969 * varpool.c (ctor_for_folding): More tolerant assert for variable
2970 aliases created during WPA.
2972 2014-08-01 Martin Liska <mliska@suse.cz>
2974 * doc/invoke.texi (Options That Control Optimization): Documentation
2975 for -foptimize-strlen introduced. Optimization levels default options
2978 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2980 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2981 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2982 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2984 * stor-layout.h (min_align_of_type): New prototype.
2985 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2986 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2988 * ubsan.c: Include builtins.h.
2989 (ubsan_expand_bounds_ifn): Change return type to bool,
2991 (ubsan_expand_null_ifn): Change return type to bool, change
2992 argument to gimple_stmt_iterator *. Handle both null and alignment
2993 sanitization, take type from ckind argument's type rather than
2995 (instrument_member_call): Removed.
2996 (instrument_mem_ref): Remove t argument, add mem and base arguments.
2997 Handle both null and alignment sanitization, don't say whole
2998 struct access is member access. Build 3 argument IFN_UBSAN_NULL
2999 call instead of 2 argument.
3000 (instrument_null): Adjust instrument_mem_ref caller. Don't
3001 instrument calls here.
3002 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3004 * stor-layout.c (min_align_of_type): New function.
3005 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3006 Or it into SANITIZE_UNDEFINED.
3007 * doc/invoke.texi (-fsanitize=alignment): Document.
3009 2014-07-31 Andi Kleen <ak@linux.intel.com>
3011 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3013 2014-07-31 Andi Kleen <ak@linux.intel.com>
3015 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3017 (vn_reference_compute_hash): Dito.
3018 (vn_nary_op_compute_hash): Dito.
3019 (vn_phi_compute_hash): Dito.
3020 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3022 2014-07-31 Andi Kleen <ak@linux.intel.com>
3024 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3025 Rename to inchash:add_expr_commutative. Convert to inchash.
3026 (iterative_hash_hashable_expr): Rename to
3027 inchash:add_hashable_expr. Convert to inchash.
3028 (avail_expr_hash): Dito.
3030 2014-07-31 Andi Kleen <ak@linux.intel.com>
3032 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3035 2014-07-31 Andi Kleen <ak@linux.intel.com>
3037 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3039 2014-07-31 Andi Kleen <ak@linux.intel.com>
3041 * Makefile.in (OBJS): Add rtlhash.o
3042 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3043 (loc_checksum): Dito.
3044 (loc_checksum_ordered): Dito.
3045 (hash_loc_operands): Dito.
3047 (hash_loc_list): Dito.
3048 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3049 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3050 * rtlhash.c: New file.
3051 * rtlhash.h: New file.
3053 2014-07-31 Andi Kleen <ak@linux.intel.com>
3055 * inchash.h (inchash): Change inchash class to namespace.
3056 (class hash): ... Rename from inchash.
3057 (add_object): Move from macro to class template.
3058 * lto-streamer-out.c (hash_tree): Change inchash
3060 * tree.c (build_type_attribute_qual_variant): Dito.
3061 (type_hash_list): Dito.
3062 (attribute_hash_list): Dito.
3063 (iterative_hstate_expr): Rename to inchash::add_expr
3064 (build_range_type_1): Change inchash to inchash::hash
3065 and use hash::add_expr.
3066 (build_array_type_1): Dito.
3067 (build_function_type): Dito
3068 (build_method_type_directly): Dito.
3069 (build_offset_type): Dito.
3070 (build_complex_type): Dito.
3071 (make_vector_type): Dito.
3072 * tree.h (iterative_hash_expr): Dito.
3074 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3076 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3078 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3080 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3081 correct alphabetical position.
3082 (vpaddd_f64): Rewrite using builtins.
3083 (vpaddd_s64): Move to correct alphabetical position.
3086 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3089 * config/sh/sh.c (sh_legitimate_address_p,
3090 sh_legitimize_reload_address): Handle reg+reg address modes when
3091 ALLOW_INDEXED_ADDRESS is false.
3092 * config/sh/predicates.md (general_movsrc_operand,
3093 general_movdst_operand): Likewise.
3095 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3097 * config/aarch64/aarch64-builtins.c
3098 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3101 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3103 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3104 the generated mask based on BYTES_BIG_ENDIAN.
3105 (aarch64_simd_check_vect_par_cnst_half): New.
3106 * config/aarch64/aarch64-protos.h
3107 (aarch64_simd_check_vect_par_cnst_half): New.
3108 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3109 the check out to aarch64_simd_check_vect_par_cnst_half.
3110 (vect_par_cnst_lo_half): Likewise.
3111 * config/aarch64/aarch64-simd.md
3112 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3113 (move_hi_quad_<mode>): Always generate a low mask.
3115 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3117 * doc/invoke.texi (AVR Options): Add documentation about
3118 __AVR_DEVICE_NAME__ built-in macro.
3120 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3123 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3124 constraints are satisfied.
3125 (<shift>di3_neon): Likewise.
3127 2014-07-31 Richard Biener <rguenther@suse.de>
3129 PR tree-optimization/61964
3130 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3131 by structural equality.
3133 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3135 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3136 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3137 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3139 * gcc.c (sanitize_spec_function): Support new option.
3140 (SANITIZER_SPEC): Remove now redundant check.
3141 * opts.c (common_handle_option): Support new option.
3142 (finish_options): Check for incompatibilities.
3143 * toplev.c (process_options): Split userspace-specific checks.
3145 2014-07-31 Richard Biener <rguenther@suse.de>
3147 * lto-streamer.h (struct output_block): Remove global.
3148 (struct data_in): Remove labels, num_named_labels and
3150 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3151 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3153 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3156 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3157 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3158 (isolate_path): New argument to avoid inserting a trap.
3159 (find_implicit_erroneous_behaviour): Handle returning the address
3160 of a local variable.
3161 (find_explicit_erroneous_behaviour): Likewise.
3163 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3166 * toplev.c (init_random_seed): Move piece of code never called to
3168 (set_random_seed): see above.
3170 2014-07-31 Tom de Vries <tom@codesourcery.com>
3172 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3174 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3176 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3177 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3179 2014-07-31 Richard Biener <rguenther@suse.de>
3181 * data-streamer.h (streamer_write_data_stream): Declare here,
3183 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3184 * lto-cgraph.c (lto_output_node): Adjust.
3185 (lto_output_varpool_node): Likewise.
3186 * data-streamer-out.c (streamer_string_index): Likewise.
3187 (streamer_write_data_stream, lto_append_block): Move from ...
3188 * lto-section-out.c (lto_output_data_stream,
3189 lto_append_block): ... here.
3191 2014-07-30 Mike Stump <mikestump@comcast.net>
3193 * configure.ac: Also check for popen.
3194 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3195 * configure: Regenerate.
3196 * config.in: Regenerate.
3198 2014-07-30 Martin Jambor <mjambor@suse.cz>
3200 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3201 parameter to gimple.
3203 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3205 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3206 address as second parameter to __tpf_eh_return routine.
3208 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3210 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3213 2014-07-30 Tom Tromey <tromey@redhat.com>
3216 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3217 * doc/extend.texi (Type Attributes): Document designated_init
3220 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3222 * graphite-isl-ast-to-gimple.c:
3223 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3224 (gcc_expression_from_isl_expression): Pass type to
3225 gcc_expression_from_isl_ast_expr_id.
3227 2014-07-30 Richard Biener <rguenther@suse.de>
3229 * lto-streamer.h (lto_write_data): New function.
3230 * langhooks.c (lhd_append_data): Do not free block.
3231 * lto-section-out.c (lto_write_data): New function writing
3232 raw data to the current section.
3233 (lto_write_stream): Adjust for langhook semantic change.
3234 (lto_destroy_simple_output_block): Write header directly.
3235 * lto-opts.c (lto_write_options): Write options directly.
3236 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3237 (lto_output_toplevel_asms): Likewise.
3238 (copy_function_or_variable): Copy data directly.
3239 (write_global_references): Output index table directly.
3240 (lto_output_decl_state_refs): Likewise.
3241 (write_symbol): Write data directly.
3242 (produce_symtab): Adjust.
3243 (produce_asm_for_decls): Output header and refs directly.
3245 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3247 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3248 to speculative_targets
3249 (get_class_context): Fix handling of contextes without outer type;
3250 avoid matching non-polymorphic types in LTO.
3251 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3252 parameter to speculative_targetsp; handle speculation.
3253 (dump_possible_polymorphic_call_targets): Update dumping.
3255 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3257 * common.opt (Wodr): Enable by default.
3259 2014-07-29 Olivier Hainque <hainque@adacore.com>
3261 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3263 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3266 * gengtype.c (strtoken): New function.
3267 (create_user_defined_type): Replace strtok with strtoken.
3269 2014-07-29 Nathan Sidwell <nathan@acm.org>
3271 * gcov-io.c (gcov_var): Make hidden.
3272 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3273 (gcov_do_dump): Declare.
3274 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3276 2014-07-29 Martin Jambor <mjambor@suse.cz>
3278 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3279 parameter to gimple.
3280 (sra_modify_assign): Likewise.
3282 2014-07-29 Richard Biener <rguenther@suse.de>
3285 * expr.c (expand_expr_real_2): Revert last change.
3287 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3289 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3290 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3291 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3293 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3294 (contains_type_p): Forward declare.
3295 (polymorphic_call_target_hasher::hash): Hash speculative info.
3296 (polymorphic_call_target_hasher::equal): Compare speculative info.
3297 (get_class_context): Handle speuclation.
3298 (contains_type_p): Update.
3299 (get_polymorphic_call_info_for_decl): Update.
3300 (walk_ssa_copies): Break out from ...
3301 (get_polymorphic_call_info): ... here; set speculative context
3303 * ipa-prop.c (ipa_write_indirect_edge_info,
3304 ipa_read_indirect_edge_info): Stream speculative context.
3305 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3306 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3307 SPECULATIVE_MAYBE_DERIVED_TYPE).
3308 (possible_polymorphic_call_targets overriders): Update.
3309 (dump_possible_polymorphic_call_targets overriders): Update.
3310 (dump_possible_polymorphic_call_target_p overriders): Update.
3312 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3314 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3315 ipa-devirt path; fix thinko there.
3317 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3319 * config/i386/i386.c (ix86_return_in_memory): Replace one
3320 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3322 2014-07-28 Marek Polacek <polacek@redhat.com>
3324 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3326 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3328 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3329 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3330 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3331 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3332 (USE_LD_AS_NEEDED): Likewise.
3333 (ASM_APP_ON): Likewise.
3334 (ASM_APP_OFF): Likewise.
3335 (TARGET_POSIX_IO): Likewise.
3336 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3337 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3338 (USE_LD_AS_NEEDED): Likewise.
3339 (ASM_APP_ON): Likewise.
3340 (ASM_APP_OFF): Likewise.
3341 (TARGET_POSIX_IO): Likewise.
3343 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3346 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3347 operators other than the equality operators.
3349 2014-07-28 Richard Biener <rguenther@suse.de>
3352 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3353 sure to register SImode ones, not only >= word_mode ones.
3354 * expr.c (expand_expr_real_2): When expanding -ftrapv
3355 binops do not use OPTAB_LIB_WIDEN.
3357 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3360 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3361 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3362 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3363 inserting them in the insn stream.
3365 2014-07-28 Marek Polacek <polacek@redhat.com>
3368 * common.opt (Wodr): Add Var.
3370 2014-07-28 Richard Biener <rguenther@suse.de>
3372 PR tree-optimization/61921
3373 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3374 if there is a varpool node before dereferencing it.
3376 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3378 * graphite-sese-to-poly.c:
3379 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3380 id of the pbb), which contains pointer to the pbb1.
3382 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3384 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3386 * graphite-isl-ast-to-gimple.c:
3387 (graphite_create_new_guard): New function.
3388 (translate_isl_ast_node_if): New function.
3389 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3391 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3393 2014-07-27 Anthony Green <green@moxielogic.com>
3395 * config.gcc: Add moxie-*-moxiebox* configuration.
3396 * config/moxie/moxiebox.h: New file.
3398 2014-07-26 Andrew Pinski <apinski@cavium.com>
3400 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3401 from the read only register.
3403 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3405 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3406 as the allocation class if it isn't likely to be spilled.
3408 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3410 * rtl.h (tls_referenced_p): Declare.
3411 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3412 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3413 (mips_cannot_force_const_mem): Use tls_referenced_p.
3414 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3415 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3416 instead of pa_tls_referenced_p.
3417 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3418 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3419 (pa_legitimate_constant_p): Likewise.
3420 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3421 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3422 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3423 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3424 rs6000_tls_referenced_p.
3425 (rs6000_tls_symbol_ref_1): Delete.
3427 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3430 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3431 Optimize inverse of a VEC_CONCAT.
3433 2014-07-25 Xinliang David Li <davidxl@google.com>
3435 * params.def: New parameter.
3436 * coverage.c (get_coverage_counts): Check new flag.
3437 (coverage_compute_profile_id): Check new flag.
3438 (coverage_begin_function): Check new flag.
3439 (coverage_end_function): Check new flag.
3440 * value-prof.c (coverage_node_map_initialized_p): New function.
3441 (init_node_map): Populate map with all functions.
3442 * doc/invoke.texi: Document new parameter.
3444 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3445 Richard Biener <rguenther@suse.de>
3447 * lto-streamer-out.c (struct sccs): Turn to ...
3448 (class DFS): ... this one; refactor the DFS walk so it can
3449 be re-done on per-SCC basis.
3450 (DFS::DFS): New constructor.
3451 (DFS::~DFS): New destructor.
3452 (hash_tree): Add new MAP argument holding in-SCC hash values;
3453 remove POINTER_TYPE hashing hack.
3454 (scc_entry_compare): Rename to ...
3455 (DFS::scc_entry_compare): ... this one.
3456 (hash_scc): Rename to ...
3457 (DFS::hash_scc): ... this one; pass output_block instead
3458 of streamer_cache; work harder to get unique and stable SCC
3460 (DFS_write_tree): Rename to ...
3461 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3462 (lto_output_tree): Update.
3464 2014-07-25 Andi Kleen <ak@linux.intel.com>
3466 * lto-streamer-out.c (hash_tree): Convert to inchash.
3468 2014-07-25 Andi Kleen <ak@linux.intel.com>
3470 * tree.c (build_type_attribute_qual_variant): Use inchash.
3471 (type_hash_list): Dito.
3472 (attribute_hash_list): Dito
3473 (iterative_hstate_expr): Dito.
3474 (iterative_hash_expr): Dito.
3475 (build_range_type_1): Dito.
3476 (build_array_type_1): Dito.
3477 (build_function_type): Dito.
3478 (build_method_type_directly): Dito.
3479 (build_offset_type): Dito.
3480 (build_complex_type): Dito.
3481 (make_vector_type): Dito.
3482 * tree.h (iterative_hash_expr): Add compat wrapper.
3483 (iterative_hstate_expr): Add.
3485 2014-07-25 Andi Kleen <ak@linux.intel.com>
3487 * Makefile.in (OBJS): Add inchash.o.
3488 (PLUGIN_HEADERS): Add inchash.h.
3489 * ipa-devirt.c: Include inchash.h.
3490 * lto-streamer-out.c: Dito.
3491 * tree-ssa-dom.c: Dito.
3492 * tree-ssa-pre.c: Dito.
3493 * tree-ssa-sccvn.c: Dito.
3494 * tree-ssa-tail-merge.c: Dito.
3496 * tree.c (iterative_hash_hashval_t): Move to ...
3497 (iterative_hash_host_wide_int): Move to ...
3498 * inchash.c: Here. New file.
3499 * tree.h (iterative_hash_hashval_t): Move to ...
3500 (iterative_hash_host_wide_int): Move to ...
3501 * inchash.h: Here. New file.
3503 2014-07-25 Richard Biener <rguenther@suse.de>
3507 * fold-const.c (native_encode_int): Add and handle offset
3508 parameter to do partial encodings of expr.
3509 (native_encode_fixed): Likewise.
3510 (native_encode_real): Likewise.
3511 (native_encode_complex): Likewise.
3512 (native_encode_vector): Likewise.
3513 (native_encode_string): Likewise.
3514 (native_encode_expr): Likewise.
3515 * fold-const.c (native_encode_expr): Add offset parameter
3517 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3518 (fold_ctor_reference): Handle all reads from tcc_constant
3521 2014-07-25 Richard Biener <rguenther@suse.de>
3523 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3526 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3528 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3530 2014-07-24 Kyle McMartin <kyle@redhat.com>
3532 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3534 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3536 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3538 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3540 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3541 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3542 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3544 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3546 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3547 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3548 aggregate types. Instead, *all* aggregate types, except for single-
3549 element or homogeneous float/vector aggregates, are quadword-aligned
3550 if required by their type alignment. Issue -Wpsabi note when a type
3551 is now treated differently than before.
3553 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3555 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3556 does not fit fully into floating-point registers, and there is still
3557 space in the register parameter area, use GPRs to pass those parts
3558 of the argument. Issue -Wpsabi note if any parameter is now treated
3559 differently than before.
3560 (rs6000_arg_partial_bytes): Update.
3562 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3564 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3566 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3568 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3569 * toplev.c (initialize_rtl): Don't use it. Move previously
3570 "language-dependent" calls to...
3571 (backend_init): ...here.
3572 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3573 Assert that RTL initialization hasn't happend yet.
3575 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3577 PR rtl-optimization/61629
3578 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3579 they have already been initialized.
3581 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3584 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3585 DECL_INCOMING_RTL and entry_parm.
3586 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3587 * calls.c (load_register_parameters): Likewise argument values.
3588 (emit_library_call_value_1, store_one_arg): Likewise argument
3590 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3592 * explow.c (validize_mem): Modify the argument in-place.
3594 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3596 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3597 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3599 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3601 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3602 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3604 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3606 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3607 (aarch64_save_callee_saves): New parameter "skip_wb".
3608 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3610 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3612 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3614 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3616 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3618 * graphite-isl-ast-to-gimple.c:
3619 (graphite_create_new_loop): Add calling of isl_id_free to properly
3620 decrement reference counts.
3622 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3624 2014-07-24 Martin Liska <mliska@suse.cz>
3625 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3627 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3628 (rs6000_code_end): Likewise.
3630 2014-07-24 Martin Liska <mliska@suse.cz>
3632 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3633 symtab_node funtion used.
3634 (rs6000_xcoff_declare_object_name): Likewise.
3636 2014-07-24 Martin Liska <mliska@suse.cz>
3638 * cgraphunit.c (compile): Correct function used.
3640 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3642 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3645 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3648 * varasm.c (bss_initializer_p): Handle offlined ctors.
3649 (align_variable, get_variable_align): Likewise.
3650 (make_decl_one_only): Likewise.
3651 (default_binds_local_p_1): Likewise.
3652 (decl_binds_to_current_def_p): Likewise.
3653 (get_variable_section): Get constructor if it is offlined.
3654 (assemble_variable_contents): Sanity check that the caller
3655 streamed in the ctor in LTO.
3657 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3659 * graphite-isl-ast-to-gimple.c:
3660 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3661 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3662 isl_ast_op_pdiv_r to the different case.
3664 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3666 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3669 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3670 when flag_errno_math is on.
3672 2014-07-24 Martin Liska <mliska@suse.cz>
3674 * cgraph.h (varpool_node):
3675 (availability get_availability (void)):
3676 created from cgraph_variable_initializer_availability
3677 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3678 created from: cgraph_variable_initializer_availability
3679 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3680 (void finalize_named_section_flags (void)):
3681 created from varpool_finalize_named_section_flags
3682 (bool assemble_decl (void)): created from varpool_assemble_decl
3683 (void analyze (void)): created from varpool_analyze_node
3684 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3685 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3686 (void remove_initializer (void)): created from varpool_remove_initializer
3687 (tree get_constructor (void)): created from varpool_get_constructor
3688 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3689 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3690 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3691 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3692 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3693 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3694 (static bool output_variables (void)): created from varpool_output_variables
3695 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3696 created from varpool_extra_name_alias
3697 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3698 (static void dump_varpool (FILE *f)): created from dump_varpool
3699 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3700 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3701 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3702 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3703 (void assemble_aliases (void)): created from assemble_aliases
3705 2014-07-24 Martin Liska <mliska@suse.cz>
3707 * cgraph.h (symtab_node):
3708 (void register_symbol (void)): created from symtab_register_node
3709 (void remove (void)): created from symtab_remove_node
3710 (void dump (FILE *f)): created from dump_symtab_node
3711 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3712 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3713 (struct ipa_ref *add_reference (symtab_node *referred_node,
3714 enum ipa_ref_use use_type)): created from add_reference
3715 (struct ipa_ref *add_reference (symtab_node *referred_node,
3716 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3717 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3718 gimple stmt)): created from maybe_add_reference
3719 (bool semantically_equivalent_p (symtab_node *target)): created from
3720 symtab_semantically_equivalent_p
3721 (void remove_from_same_comdat_group (void)): created from
3722 remove_from_same_comdat_group
3723 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3724 symtab_add_to_same_comdat_group
3725 (void dissolve_same_comdat_group_list (void)): created from
3726 symtab_dissolve_same_comdat_group_list
3727 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3728 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3729 created from symtab_alias_ultimate_target
3730 (inline symtab_node *next_defined_symbol (void)): created from
3731 symtab_next_defined_symbol
3732 (bool resolve_alias (symtab_node *target)): created from
3733 symtab_resolve_alias
3734 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3735 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3736 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3737 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3738 (void set_section (const char *section)): created from set_section_1
3739 (enum availability get_availability (void)): created from symtab_node_availability
3740 (void make_decl_local (void)): created from symtab_make_decl_local
3741 (bool real_symbol_p (void)): created from symtab_read_node
3742 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3743 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3744 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3745 symtab_in_same_comdat_p;
3746 (bool address_taken_from_non_vtable_p (void)): created from
3747 address_taken_from_non_vtable_p
3748 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3749 (static void dump_table (FILE *)): created from dump_symtab
3750 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3751 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3752 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3753 symtab_used_from_object_file_p
3754 (void dump_base (FILE *)): created from dump_symtab_base
3755 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3756 (void unregister (void)): created from symtab_unregister_node
3757 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3758 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3759 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3760 symtab_nonoverwritable_alias_1
3761 * cgraph.h (cgraph_node):
3762 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3763 created from cgraph_remove_node_and_inline_clones
3764 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3765 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3766 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3767 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3768 created from cgraph_function_node
3769 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3770 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3771 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3772 created from cgraph_create_clone
3773 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3774 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3775 created from cgraph_create_virtual_clone
3776 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3777 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3778 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3779 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3780 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3781 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3782 created from cgraph_function_version_info
3783 (struct cgraph_function_version_info *insert_new_function_version (void)):
3784 created from insert_new_cgraph_node_version
3785 (struct cgraph_function_version_info *function_version (void)): created from
3786 get_cgraph_node_version
3787 (void analyze (void)): created from analyze_function
3788 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3789 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3790 tree real_alias) cgraph_add_thunk
3791 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3792 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3793 created from cgraph_function_or_thunk_node
3794 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3795 created from expand_thunk
3796 (void reset (void)): created from cgraph_reset_node
3797 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3798 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3799 (void remove (void)): created from cgraph_remove_node
3800 (void dump (FILE *f)): created from dump_cgraph_node
3801 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3802 (bool get_body (void)): created from cgraph_get_body
3803 (void release_body (void)): created from cgraph_release_function_body
3804 (void unnest (void)): created from cgraph_unnest_node
3805 (void make_local (void)): created from cgraph_make_node_local
3806 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3807 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3808 gcov_type count, int freq)): created from cgraph_create_edge
3809 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3810 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3811 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3812 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3813 created from cgraph_create_edge_including_clones
3814 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3815 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3816 (void remove_callers (void)): created from cgraph_node_remove_callers
3817 (void remove_callees (void)): created from cgraph_node_remove_callees
3818 (enum availability get_availability (void)): created from cgraph_function_body_availability
3819 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3820 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3821 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3822 (void call_duplication_hooks (cgraph_node *node2)): created from
3823 cgraph_call_node_duplication_hooks
3824 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3825 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3826 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3827 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3828 (void call_function_insertion_hooks (void)):
3829 created from cgraph_call_function_insertion_hooks
3830 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3831 (bool local_p (void)): created from cgraph_local_node
3832 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3833 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3834 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3835 (inline bool only_called_directly_or_aliased_p (void)):
3836 created from cgraph_only_called_directly_or_aliased_p
3837 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3838 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3839 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3840 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3841 (bool can_remove_if_no_direct_calls_p (void)):
3842 created from cgraph_can_remove_if_no_direct_calls_p
3843 (inline bool has_gimple_body_p (void)):
3844 created from cgraph_function_with_gimple_body_p
3845 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3846 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3847 (static inline void debug_cgraph (void)): created from debug_cgraph
3848 (static void record_function_versions (tree decl1, tree decl2)):
3849 created from record_function_versions
3850 (static void delete_function_version (tree decl)):
3851 created from delete_function_version
3852 (static void add_new_function (tree fndecl, bool lowered)):
3853 created from cgraph_add_new_function
3854 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3855 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3856 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3857 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3858 (static cgraph_node *get_for_asmname (tree asmname)):
3859 created from cgraph_node_for_asm
3860 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3861 created from cgraph_same_body_alias
3862 (static bool used_from_object_file_p_worker (cgraph_node *node,
3863 void *): new function
3864 (static bool non_local_p (cgraph_node *node, void *)):
3865 created from cgraph_non_local_node_p_1
3866 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3867 created from verify_cgraph
3868 (static bool make_local (cgraph_node *node, void *)):
3869 created from cgraph_make_node_local
3870 (static cgraph_node *create_alias (tree alias, tree target)):
3871 created from cgraph_create_function_alias
3872 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3873 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3874 created from cgraph_create_edge_1
3875 * cgraph.h (varpool_node):
3876 (void remove (void)): created from varpool_remove_node
3877 (void dump (FILE *f)): created from dump_varpool_node
3879 2014-07-24 Richard Biener <rguenther@suse.de>
3882 * tree-ssa-structalias.c (create_variable_info_for_1):
3883 Use varpool_get_constructor.
3884 (create_variable_info_for): Likewise.
3886 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3888 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3889 subtract outgoing area size when restoring stack_pointer_rtx.
3891 2014-07-24 Nick Clifton <nickc@redhat.com>
3893 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3894 that operations are taking place in parallel.
3895 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3897 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3899 * omp-low.c (extract_omp_for_data): Add missing break statement.
3901 2014-07-24 Richard Biener <rguenther@suse.de>
3903 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3904 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3905 and adjust MOVE_RATIO query accordingly.
3906 (estimate_num_insns): Adjust callers.
3907 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3908 * ipa-cp.c (gather_context_independent_values,
3909 estimate_local_effects): Likewise.
3910 * ipa-split.c (consider_split): Likewise.
3912 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3914 * config/i386/driver-i386.c: Remove names of unused arguments and
3915 unnecessary unused attributes.
3916 * config/i386/host-mingw32.c: Likewise.
3917 * config/i386/i386.c: Likewise.
3918 * config/i386/winnt-stubs.c: Likewise.
3919 * config/i386/winnt.c: Likewise.
3921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3923 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3924 (aarch64_gen_loadwb_pair): New helper function.
3925 (aarch64_expand_epilogue): Simplify code using new helper functions.
3926 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3928 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3930 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3931 (aarch64_gen_storewb_pair): New helper function.
3932 (aarch64_expand_prologue): Simplify code using new helper functions.
3933 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3935 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3937 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3938 Rename to aarch64_save_callee_saves, remove restore code.
3939 (aarch64_restore_callee_saves): New function.
3941 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3943 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3944 (aarch64_save_callee_saves): New function to handle reg save
3945 for both core and vectore regs.
3947 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3949 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3950 (aarch64_gen_store_pair): New helper function.
3951 (aarch64_save_or_restore_callee_save_registers)
3952 (aarch64_save_or_restore_fprs): Use new helper functions.
3954 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3956 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3957 (aarch64_save_or_restore_callee_save_registers)
3958 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3960 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3962 * config/aarch64/aarch64.c
3963 (aarch64_save_or_restore_callee_save_registers)
3964 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3966 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3968 * config/aarch64/aarch64.c
3969 (aarch64_save_or_restore_callee_save_registers)
3970 (aarch64_save_or_restore_fprs): Remove 'increment'.
3972 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3974 * config/aarch64/aarch64.c
3975 (aarch64_save_or_restore_callee_save_registers)
3976 (aarch64_save_or_restore_fprs): Use register offset in
3977 cfun->machine->frame.reg_offset.
3979 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3981 * config/aarch64/aarch64.c
3982 (aarch64_save_or_restore_callee_save_registers)
3983 (aarch64_save_or_restore_fprs): Remove base_rtx.
3985 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3987 * config/aarch64/aarch64.c
3988 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
3989 to 'start_offset'. Remove local variable 'start_offset'.
3991 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3993 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
3994 type to HOST_WIDE_INT.
3996 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3998 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3999 (aarch64_save_or_restore_fprs)
4000 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4002 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4004 * config/arm/t-rtems-eabi: Add
4005 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4006 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4007 mbig-endian/mthumb/march=armv7-r, and
4008 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4011 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4012 Chris Johns <chrisj@rtems.org>
4013 Joel Sherrill <joel.sherrill@oarcorp.com>
4015 * config.gcc: Add nios2-*-rtems*.
4016 * config/nios2/rtems.h: New file.
4017 * gcc/config/nios2/t-rtems: New file.
4019 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4022 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4023 constant numbers, not general constants.
4024 (rs6000_expand_vector_init): Ditto.
4026 2014-07-23 Nathan Sidwell <nathan@acm.org>
4028 * gcov-tool.c (gcov_list): Declare here.
4029 (set_gcov_list): Remove.
4030 (gcov_output_files): Set gcov_list directly.
4032 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4034 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4036 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4038 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4039 callee-saved registers are available for padding purpose
4040 and r3 is not mandatory, then prefer use those callee-saved
4043 2014-07-23 Richard Biener <rguenther@suse.de>
4045 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4046 * combine.c: Include statistics.h and params.h.
4047 (combine_instructions): Guard three and four insn combines
4048 with max-combine-insns value. Record statistics for combines
4050 * doc/invoke.texi (max-combine-insns): Document new param.
4052 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4054 * graphite-isl-ast-to-gimple.c:
4055 (translate_isl_ast_node_block): New function.
4056 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4058 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4059 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4061 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4063 * graphite-isl-ast-to-gimple.c:
4064 (get_max_schedule_dimensions): New function.
4065 (extend_schedule): Likewise.
4066 (generate_isl_schedule): Add calling of extend_schedule and
4067 get_max_schedule_dimensions.
4069 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4071 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4072 (case UNSPEC): Handle UNSPEC_RBIT.
4074 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4076 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4077 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4079 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4081 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4083 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4085 * graphite-isl-ast-to-gimple.c:
4086 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4088 (build_iv_mapping): New function.
4089 (translate_isl_ast_node_user): Likewise.
4090 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4092 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4093 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4094 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4096 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4099 * config/arm/arm.md (setmem): New pattern.
4100 * config/arm/arm-protos.h (struct tune_params): New fields.
4101 (arm_gen_setmem): New prototype.
4102 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4103 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4104 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4105 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4106 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4107 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4108 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4109 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4110 (arm_const_inline_cost): New function.
4111 (arm_block_set_max_insns): New function.
4112 (arm_block_set_non_vect_profit_p): New function.
4113 (arm_block_set_vect_profit_p): New function.
4114 (arm_block_set_unaligned_vect): New function.
4115 (arm_block_set_aligned_vect): New function.
4116 (arm_block_set_unaligned_non_vect): New function.
4117 (arm_block_set_aligned_non_vect): New function.
4118 (arm_block_set_vect, arm_gen_setmem): New functions.
4120 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4122 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4124 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4127 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4128 out of #ifdef __OPTIMIZE__.
4130 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4132 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4133 different trapping status if -fnon-call-exceptions is enabled.
4135 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4137 * expr.c (store_field): Handle VOIDmode for calls that return values
4138 in multiple locations.
4140 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4142 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4143 (altivec_vsldoi_<mode>): Likewise.
4145 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4147 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4148 to the number of characters in the line.
4150 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4152 * graphite-isl-ast-to-gimple.c: Add using of
4153 build_nonstandard_integer_type instead of int128_integer_type_node.
4155 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4157 * toplev.c (output_stack_usage): Adjust the location of the warning.
4159 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4161 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4162 (*membar_storeload): Disable for LEON3.
4164 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4166 PR rtl-optimization/61461
4167 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4169 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4172 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4173 Fix instruction constraint.
4174 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4176 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4178 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4180 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4182 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4183 GNU coding standards.
4184 (nds32_register_move_cost): Likewise.
4185 (nds32_memory_move_cost): Likewise.
4186 (nds32_address_cost): Likewise.
4188 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4190 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4192 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4194 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4195 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4196 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4197 (HAVE_sync_compare_and_swapqi): Define.
4198 (HAVE_sync_compare_and_swaphi): Likewise.
4199 (HAVE_sync_compare_and_swapsi): Likewise.
4201 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4203 * config/mips/p5600.md: Add missing cpu tests.
4205 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4207 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4208 (vmla_f64): Likewise.
4209 (vfms_f64): Likewise.
4210 (vmls_f64): Likewise.
4212 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4214 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4215 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4217 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4219 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4220 (vmlal_high_lane_s32): Likewise.
4221 (vmlal_high_lane_u16): Likewise.
4222 (vmlal_high_lane_u32): Likewise.
4223 (vmlsl_high_lane_s16): Likewise.
4224 (vmlsl_high_lane_s32): Likewise.
4225 (vmlsl_high_lane_u16): Likewise.
4226 (vmlsl_high_lane_u32): Likewise.
4228 2014-07-17 Terry Guo <terry.guo@arm.com>
4230 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4231 (alus_reg): Renamed to alus_sreg.
4232 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4233 from alu_reg to alu_sreg. Change type of dsp instructions from
4234 alu_reg to alu_dsp_reg.
4235 * config/arm/thumb1.md: Likewise.
4236 * config/arm/thumb2.md: Likewise.
4237 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4238 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4239 with alu_sreg and alus_sreg.
4240 * config/arm/arm1026ejs.md (alu_op): Likewise.
4241 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4242 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4243 * config/arm/fa526.md (526_alu_op): Likewise.
4244 * config/arm/fa606te.md (606te_alu_op): Likewise.
4245 * config/arm/fa626te.md (626te_alu_op): Likewise.
4246 * config/arm/fa726te.md (726te_alu_op): Likewise.
4247 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4248 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4249 alu_sreg, alu_dsp_reg and alus_sreg.
4250 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4251 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4252 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4253 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4254 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4255 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4256 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4257 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4258 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4259 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4260 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4261 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4262 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4263 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4264 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4265 alus_reg to alus_sreg.
4267 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4269 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4272 2014-07-17 Richard Biener <rguenther@suse.de>
4274 PR rtl-optimization/61801
4275 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4276 don't set reg_pending_barrier if it appears in a debug-insn.
4278 2014-07-16 DJ Delorie <dj@redhat.com>
4280 * config/rx/rx.c (rx_option_override): Fix alignment values.
4281 (rx_align_for_label): Likewise.
4283 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4286 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4287 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4288 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4290 (cris_print_index, cris_print_operand, cris_constant_index_p)
4291 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4292 (cris_address_cost): Ditto last CONSTANT_P.
4293 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4294 callers changed. Yield cris_offsettable_symbol for non-PIC
4295 constant symbolic expressions including labels. Yield cris_unspec
4297 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4298 target to pic_offset_table_rtx for calls that will likely go
4299 through PLT, const0_rtx when they can't. All callers changed.
4300 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4301 symbolic expressions to be PICified. Remove second, redundant,
4302 assert on can_create_pseudo_p returning non-zero. Use
4303 replace_equiv_address_nv, not replace_equiv_address, for final
4305 * config/cris/cris.md ("movsi"): Move variable t to pattern
4306 toplevel. Adjust assert for new cris_symbol_type member. Use
4307 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4308 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4310 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4311 ("call", "call_value"): Use second incoming operand as a marker
4312 for pic-offset-table-register being used.
4313 ("*expanded_call_non_v32", "*expanded_call_v32")
4314 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4315 second incoming operand to CALL, match cris_call_type_marker.
4316 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4317 ("*expanded_call_side"): Ditto. Fix typo in comment.
4318 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4320 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4321 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4322 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4323 users changed. Add members cris_offsettable_symbol and cris_unspec.
4324 (cris_symbol_type): Rename from cris_pic_symbol_type.
4325 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4327 * config/cris/cris-protos.h (cris_symbol_type_of,
4328 cris_expand_pic_call_address): Adjust prototypes.
4329 (cris_legitimate_constant_p): New prototype.
4331 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4332 an existing tmake_file. Don't add t-slibgcc and t-linux.
4334 2014-07-17 Jason Merrill <jason@redhat.com>
4337 * symtab.c (symtab_remove_from_same_comdat_group): Also
4338 set_comdat_group to NULL_TREE.
4339 (verify_symtab): Fix diagnostic.
4341 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4344 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4346 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4348 Support location tracking for built-in macro tokens
4349 * input.h (is_location_from_builtin_token): New function declaration.
4350 * input.c (is_location_from_builtin_token): New function definition.
4351 * toplev.c (general_init): Tell libcpp what the pre-defined
4352 spelling location for built-in tokens is.
4354 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4356 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4357 on the FUNCTION_DECL.
4359 2014-07-16 Richard Biener <rguenther@suse.de>
4362 * doc/extend.texi (always_inline): Clarify.
4364 2014-07-15 Eric Christopher <echristo@gmail.com>
4366 * doc/invoke.texi (Link Options): Document -z option.
4368 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4370 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4371 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4373 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4375 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4377 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4379 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4380 varpool_assemble_decl.
4381 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4384 2014-07-15 Michael Matz <matz@suse.de>
4386 PR rtl-optimization/61772
4387 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4389 2014-07-15 Richard Biener <rguenther@suse.de>
4391 * opts.c (default_options_table): Disable bit-ccp at -Og.
4393 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4395 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4397 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4399 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4400 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4401 call langhook for unknown declaration.
4402 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4403 * tree.h (DECL_ARGUMENTS): Update.
4404 * print-tree.c (print_node): Update.
4405 * tree-core.h (tree_decl_non_common): Remove arguments.
4406 (tree_function_decl): Add arguments.
4408 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4410 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4412 2014-07-14 Richard Biener <rguenther@suse.de>
4414 PR tree-optimization/61779
4415 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4416 simplifying a condition.
4418 2014-07-14 Richard Biener <rguenther@suse.de>
4420 * builtins.c (c_strlen): Make only_value == 2 really only
4421 affect warning generation.
4423 2014-07-14 Richard Biener <rguenther@suse.de>
4425 PR tree-optimization/61757
4426 PR tree-optimization/61783
4427 PR tree-optimization/61787
4428 * tree-ssa-dom.c (record_equality): Revert canonicalization
4429 change and add comment.
4430 (propagate_rhs_into_lhs): Revert previous fix, removing
4431 loop depth restriction again.
4433 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4435 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4436 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4437 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4438 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4439 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4440 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4441 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4443 2014-07-14 Richard Biener <rguenther@suse.de>
4445 * cgraph.h (decl_in_symtab_p): Make inline.
4447 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4450 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4453 * config/i386/i386.c (classify_argument): Don't merge classes above
4456 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4458 * cgraph.h (symtab_node): Add nonzero_address.
4459 (decl_in_symtab_p): Break out from ...
4460 (symtab_get_node): ... here.
4461 * fold-const.c: Include cgraph.h
4462 (tree_single_nonzero_warnv_p): Use symtab to determine
4463 if symbol is non-zero.
4464 * symtab.c (symtab_node::nonzero_address): New method.
4466 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4468 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4469 forgotten in previous commit.
4471 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4473 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4475 * ipa-devirt.c: Include stor-layout.h and intl.h
4476 (odr_subtypes_equivalent_p): New function.
4477 (warn_odr): New function.
4478 (warn_type_mismatch): New function.
4479 (odr_types_equivalent_p): New function.
4480 (add_type_duplicate): Use it.
4481 * common.opt (Wodr): New flag.
4482 * doc/invoke.texi (Wodr): Document new warning.
4484 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4486 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4487 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4488 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4489 (varpool_get_constructor): Push CTORS_IN timevar.
4490 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4492 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4494 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4495 Remove VOID_FTYPE_PUSHORT.
4496 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4497 Change code to USHORT_FTYPE_VOID.
4498 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4499 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4500 (ix86_atomic_assign_expand_fenv): Update for
4501 __builtin_ia32_fnstsw changes.
4502 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4503 (fnstsw): Change operand 0 to nonimmediate operand.
4505 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4507 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4508 (varpool_get_constructor): New function.
4509 (varpool_ctor_useable_for_folding_p): Break out from ...
4510 (ctor_for_folding): ... here; use varpool_get_constructor.
4511 (varpool_assemble_decl): Likewise.
4512 * lto-streamer.h (struct output_block): Turn cgraph_node
4514 (lto_input_variable_constructor): Declare.
4515 * ipa-visibility.c (function_and_variable_visibility): Use
4516 varpool_get_constructor.
4517 * cgraph.h (varpool_get_constructor): Declare.
4518 (varpool_ctor_useable_for_folding_p): New function.
4519 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4520 parameter; return error_mark_node for non-trivial constructors.
4521 (lto_write_tree_1, DFS_write_tree): Update use of
4522 get_symbol_initial_value.
4523 (output_function): Update initialization of symbol.
4524 (output_constructor): New function.
4525 (copy_function): Rename to ..
4526 (copy_function_or_variable): ... this one; handle vars too.
4527 (lto_output): Output variable sections.
4528 * lto-streamer-in.c (input_constructor): New function.
4529 (lto_read_body): Rename from ...
4530 (lto_read_body_or_constructor): ... this one; handle vars too.
4531 (lto_input_variable_constructor): New function.
4532 * ipa-prop.c (ipa_prop_write_jump_functions,
4533 ipa_prop_write_all_agg_replacement): Update.
4534 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4535 (output_cgraph_opt_summary): Set symbol to NULL.
4537 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4539 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4540 non-polymorphic types.
4541 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4542 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4543 of types is not polymorphic.
4545 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4547 * lra-constraints.c (remove_inheritance_pseudos): Process
4548 destination pseudo too.
4550 2014-07-11 Rong Xu <xur@google.com>
4552 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4555 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4557 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4558 * config/avr/avr-devices.c (AVR_MCU): Same.
4559 (avr_mcu_types): add text start value to end of device list.
4560 * config/avr/avr-mcus.def: Add text section start for all devices.
4561 (ata5782): Add new avr5 device.
4563 * config/avr/avr-tables.opt: Regenerate.
4564 * config/avr/avr.h: Add declaration for text section start handler.
4565 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4567 (LINK_SPEC): Include text section start handler to linker spec.
4568 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4569 pass -Ttext option to linker if the text section start for the device
4571 * config/avr/t-multilib: Regenerate.
4572 * doc/avr-mmcu.texi: Regenerate.
4574 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4576 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4577 * config/rs6000/aix52.h (LINK_SPEC): Same.
4578 * config/rs6000/aix53.h (LINK_SPEC): Same.
4579 * config/rs6000/aix61.h (LINK_SPEC): Same.
4580 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4582 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4584 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4585 (graphite_verify): New function.
4586 (ivs_params_clear): New function.
4587 (gcc_expression_from_isl_ast_expr_id): New function.
4588 (gcc_expression_from_isl_expr_int): New function.
4589 (binary_op_to_tree): New function.
4590 (ternary_op_to_tree): New function.
4591 (unary_op_to_tree): New function.
4592 (nary_op_to_tree): New function.
4593 (gcc_expression_from_isl_expr_op): New function.
4594 (gcc_expression_from_isl_expression): New function.
4595 (graphite_create_new_loop): New function.
4596 (translate_isl_ast_for_loop): New function.
4597 (get_upper_bound): New function.
4598 (graphite_create_new_loop_guard): New function.
4599 (translate_isl_ast_node_for): New function.
4600 (translate_isl_ast): New function.
4601 (add_parameters_to_ivs_params): New function.
4602 (scop_to_isl_ast): New parameter ip.
4603 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4605 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4607 * config/xtensa/predicates.md (call expander): Update for
4608 DECL_SECTION_NAME being string.
4610 2014-07-11 Richard Biener <rguenther@suse.de>
4613 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4614 can be implemented with a single load followed by a single store.
4615 (c_strlen): Only warn when only_value is not 2.
4617 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4619 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4621 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4624 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4625 (*movhi_bytes): Likewise.
4626 (*arm_movqi_insn): Likewise.
4628 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4631 * config/alpha/alpha.c: Include tree-pass.h, context.h
4633 (pass_data_handle_trap_shadows): New pass.
4634 (pass_handle_trap_shadows::gate): New pass gate function.
4635 (make_pass_handle_trap_shadows): New function.
4636 (rest_of_handle_trap_shadows): Ditto.
4638 (alpha_align_insns_1): Rename from alpha_align_insns.
4639 (pass_data_align_insns): New pass.
4640 (pass_align_insns::gate): New pass gate function.
4641 (make_pass_aling_insns): New function.
4642 (rest_of_align_insns): Ditto.
4643 (alpha_align_insns): Ditto.
4645 (alpha_option_override): Declare handle_trap_shadows info
4646 and align_insns_info. Register handle_trap_shadows and align_insns
4648 (alpha_reorg): Do not call alpha_trap_shadows and
4649 alpha_align_insn from here.
4651 (alpha_pad_function_end): Do not skip BARRIERs.
4653 2014-07-10 Rong Xu <xur@google.com>
4655 Add gcov-tool: an offline gcda profile processing tool support.
4656 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4657 (gcov_is_error): Ditto.
4658 (gcov_read_string): Ditto.
4659 (gcov_read_sync): Ditto.
4660 * gcov-io.h: Move counter defines to gcov-counter.def.
4661 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4662 * coverage.c: Ditto.
4663 * gcov-tool.c: Offline gcda profile processing tool.
4664 (unlink_gcda_file): Remove one gcda file.
4665 (unlink_profile_dir): Remove gcda files from the profile path.
4666 (gcov_output_files): Output gcda files to an output dir.
4667 (profile_merge): Merge two profiles in directory.
4668 (print_merge_usage_message): Print merge usage.
4669 (merge_usage): Print merge usage and exit.
4670 (do_merge): Driver for profile merge sub-command.
4671 (profile_rewrite): Rewrite profile.
4672 (print_rewrite_usage_message): Print rewrite usage.
4673 (rewrite_usage): Print rewrite usage and exit.
4674 (do_rewrite): Driver for profile rewrite sub-command.
4675 (print_usage): Print gcov-info usage and exit.
4676 (print_version): Print gcov-info version.
4677 (process_args): Process arguments.
4678 (main): Main routine for gcov-tool.
4679 * Makefile.in: Build and install gcov-tool.
4680 * gcov-counter.def: New file split from gcov-io.h.
4681 * doc/gcc.texi: Include gcov-tool.texi.
4682 * doc/gcov-tool.texi: Document for gcov-tool.
4684 2014-07-10 Richard Biener <rguenther@suse.de>
4686 PR tree-optimization/61757
4687 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4688 (propagate_rhs_into_lhs): Revert part of last change.
4690 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4692 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4695 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4698 * function.c (allocate_struct_function): Revert r188667 change.
4700 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4702 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4704 * doc/install.texi: Remove links to defunct package providers for
4707 2014-07-09 Tom de Vries <tom@codesourcery.com>
4709 * final.c (get_call_fndecl): Declare.
4710 (self_recursive_call_p): New function.
4711 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4713 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4715 * ipa-devirt.c (record_node): Walk through aliases.
4717 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4719 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4721 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4724 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4726 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4728 * ipa-visibility.c (function_and_variable_visibility): Remove
4729 temporary hack disabling local aliases on AIX.
4731 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4733 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4734 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4736 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4738 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4739 * rs6000/rs6000.c: Inline output of .set instruction.
4740 (declare_alias_data): New struct.
4741 (rs6000_declare_alias): New function.
4742 (rs6000_xcoff_declare_function_name): Use it.
4743 (rs6000_xcoff_declare_object_name): New function.
4744 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4745 (ASM_OUTPUT_DEF): Turn to empty definition.
4747 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4750 * hash-table.h: use hash_table::value_type instead of
4751 Descriptor::value_type in the return types of several methods.
4753 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4755 * tree-pass.h (pass_data): Remove has_execute member.
4756 * passes.c (execute_one_pass): Don't check pass->has_execute.
4757 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4758 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4759 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4760 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4761 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4762 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4763 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4764 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4765 gimple-low.c, gimple-ssa-isolate-paths.c,
4766 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4767 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4768 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4769 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4770 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4771 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4772 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4773 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4774 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4775 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4776 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4777 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4778 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4779 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4780 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4781 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4782 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4783 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4784 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4785 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4786 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4787 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4788 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4789 web.c: Remove initializer for pass_data::has_execute.
4791 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4793 * graphite-htab.h: Use hash_map instead of hash_table.
4794 * graphite-clast-to-gimple.c: Adjust.
4795 * passes.c: Use hash_map instead of hash_table.
4797 * sese.h: Remove now unused code.
4799 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4802 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4805 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4807 PR rtl-optimization/61673
4808 * combine.c (simplify_comparison): Test just mode's sign bit
4809 in tmode rather than the sign bit and any bits above it.
4811 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4813 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4814 Add __isl_give to the declaration.
4815 (generate_isl_schedule): Likewise.
4816 (scop_to_isl_ast): Likewise.
4818 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4820 * config/arm/arm.c (cortexa5_extra_costs): New table.
4821 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4823 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4825 PR tree-optimization/61725
4826 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4827 range, use range_includes_zerop_p instead of integer_zerop on
4828 vr0->min, only use log2 of max if min is not negative.
4830 2014-07-08 Richard Biener <rguenther@suse.de>
4832 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4833 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4834 restriction on loop depth difference.
4835 (record_equality): Likewise.
4836 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4837 (loop_depth_of_name): Remove.
4838 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4839 restriction on loop depth difference.
4840 (init_copy_prop): Likewise.
4842 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4844 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4846 (walk_aliased_vdefs): Likewise.
4847 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4848 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4849 (detect_type_change_from_memory_writes): Check if entry was reached.
4851 2014-07-08 Richard Biener <rguenther@suse.de>
4853 PR tree-optimization/61681
4854 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4855 NONLOCAL inside ESCAPED.
4857 2014-07-08 Richard Biener <rguenther@suse.de>
4859 PR tree-optimization/61680
4860 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4861 Handle properly all read-write dependences with group accesses.
4863 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4865 PR tree-optimization/61576
4866 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4867 block containing reduction statement is predecessor of phi basi block.
4869 2014-07-08 Marek Polacek <polacek@redhat.com>
4872 * fold-const.c (round_up_loc): Change the parameter type.
4874 * fold-const.h (round_up_loc): Adjust declaration.
4875 * stor-layout.c (finalize_record_size): Check for too large types.
4877 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4879 * symtab.c: Include calls.h.
4880 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4882 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4884 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4885 little-endian code generation.
4886 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4887 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4888 (spe_evmergehilo): Rename to...
4889 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4890 (spe_evmergelo): Rename to...
4891 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4892 (spe_evmergelohi): Rename to...
4893 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4894 (spe_evmergehi, spe_evmergehilo): New expanders.
4895 (spe_evmergelo, spe_evmergelohi): Likewise.
4896 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4897 (*frob_tf_ti): Likewise.
4898 (*frob_<mode>_di_2): Likewise.
4899 (*frob_tf_di_8_2): Likewise.
4900 (*frob_di_<mode>): Likewise.
4901 (*frob_ti_tf): Likewise.
4902 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4903 (*frob_ti_<mode>_8_2): Likewise.
4904 (*frob_ti_tf_2): Likewise.
4905 (mov_si<mode>_e500_subreg0): Rename to...
4906 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4908 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4909 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4910 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4911 the big endianness only.
4912 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4913 (*mov_si<mode>_e500_subreg0_2): Rename to...
4914 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4915 big big endianness only.
4916 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4917 (*mov_si<mode>_e500_subreg4): Rename to...
4918 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4920 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4921 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4922 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4923 the big endianness only.
4924 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4926 (*mov_si<mode>_e500_subreg4_2): Rename to...
4927 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4929 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4930 (*mov_sitf_e500_subreg8): Rename to...
4931 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4933 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4934 (*mov_sitf_e500_subreg8_2): Rename to...
4935 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4937 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4938 (*mov_sitf_e500_subreg12): Rename to...
4939 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4941 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4942 (*mov_sitf_e500_subreg12_2): Rename to...
4943 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4945 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4947 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4949 * asan.c (instrument_strlen_call): Do not instrument first byte
4950 in strlen if already instrumented.
4952 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4954 * config/arm/arm.opt (mwords-little-endian): Delete.
4955 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4956 of TARGET_LITTLE_WORDS.
4957 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4958 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4960 * doc/invoke.texi: Remove references to -mwords-little-endian.
4962 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4964 * expmed.c (struct init_expmed_rtl): Change all fields but
4965 pow2 and cint from struct rtx_def to rtx.
4966 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4967 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4970 2014-07-06 Marek Polacek <polacek@redhat.com>
4973 * doc/invoke.texi: Document -Wsizeof-array-argument.
4975 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4977 * wide-int.h (wide_int_storage): Change declaration from struct
4980 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4982 * cgraph.c (cgraph_create_indirect_edge): Update call of
4983 get_polymorphic_call_info.
4984 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4985 (possible_polymorphic_call_targets): Add parameter call.
4986 (decl_maybe_in_construction_p): New predicate.
4987 (get_polymorphic_call_info): Add parameter call;
4988 use decl_maybe_in_construction_p.
4989 * gimple-fold.c (fold_gimple_assign): Update use of
4990 possible_polymorphic_call_targets.
4991 (gimple_fold_call): Likewise.
4992 * ipa-prop.c: Inlcude calls.h
4993 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
4994 (param_type_may_change_p): New predicate.
4995 (detect_type_change_from_memory_writes): Break out from ...
4996 (detect_type_change): ... this one; use param_type_may_change_p.
4997 (detect_type_change_ssa): Use param_type_may_change_p.
4998 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5000 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5003 * config/arm/arm-protos.h (arm_legitimate_address_p,
5004 arm_is_constant_pool_ref): Add prototypes.
5005 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5006 (arm_is_constant_pool_ref) New function.
5007 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5008 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5009 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5010 operand. Remove pool_range and neg_pool_range attributes.
5011 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5012 pool_range and neg_pool_range attributes.
5013 * config/arm/constraints.md (Uh): New constraint.
5014 (Uq): Don't allow constant pool references.
5016 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5018 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5019 (move_lo_quad_internal_be_<mode>): Likewise.
5020 (move_lo_quad_<mode>): Convert to define_expand.
5021 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5022 (aarch64_simd_move_hi_quad_be_<mode>): New.
5023 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5024 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5025 (aarch64_combinez_be<mode>): New.
5026 (aarch64_combine<mode>): Convert to define_expand.
5027 (aarch64_combine_internal<mode>): New.
5028 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5030 2014-07-04 Tom de Vries <tom@codesourcery.com>
5032 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5033 combination of earlyclobber and read/write modifiers.
5035 2014-07-04 Tom de Vries <tom@codesourcery.com>
5037 * config/aarch64/aarch64-simd.md
5038 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5040 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5043 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5045 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5048 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5050 PR tree-optimization/61684
5051 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5052 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5054 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5055 Kito Cheng <kito@0xlab.org>
5056 Monk Chiang <sh.chiang04@gmail.com>
5058 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5059 (nds32_symbol_load_store_p): Move to ...
5060 (nds32_fp_as_gp_check_available): Move to ...
5061 * config/nds32/nds32-fp-as-gp.c: ... here.
5062 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5065 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5066 Kito Cheng <kito@0xlab.org>
5067 Monk Chiang <sh.chiang04@gmail.com>
5069 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5070 (nds32_expand_store_multiple): Move to ...
5071 (nds32_expand_movmemqi): Move to ...
5072 * config/nds32/nds32-memory-manipulation.c: ... here.
5074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5075 Kito Cheng <kito@0xlab.org>
5076 Monk Chiang <sh.chiang04@gmail.com>
5078 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5079 (nds32_output_casesi_pc_relative): Move to ...
5080 (nds32_output_casesi): Move to ...
5081 (nds32_mem_format): Move to ...
5082 (nds32_output_16bit_store): Move to ...
5083 (nds32_output_16bit_load): Move to ...
5084 (nds32_output_32bit_store): Move to ...
5085 (nds32_output_32bit_load): Move to ...
5086 (nds32_output_32bit_load_s): Move to ...
5087 (nds32_output_stack_push): Move to ...
5088 (nds32_output_stack_pop): Move to ...
5089 * config/nds32/nds32-md-auxiliary.c: ... here.
5091 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5092 Ling-Hua Tseng <uranus@tinlans.org>
5094 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5095 the purpose of this file.
5097 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5098 Kito Cheng <kito@0xlab.org>
5099 Monk Chiang <sh.chiang04@gmail.com>
5101 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5102 (nds32_address_cost): Move implementation to ...
5103 * config/nds32/nds32-cost.c: ... here.
5104 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5105 (nds32_address_cost_impl): Declare.
5107 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5108 Kito Cheng <kito@0xlab.org>
5109 Monk Chiang <sh.chiang04@gmail.com>
5111 * config/nds32/nds32.c
5112 (nds32_consecutive_registers_load_store_p): Move to ...
5113 (nds32_valid_multiple_load_store): Move to ...
5114 (nds32_valid_stack_push_pop): Move to ...
5115 (nds32_can_use_bclr_p): Move to ...
5116 (nds32_can_use_bset_p): Move to ...
5117 (nds32_can_use_btgl_p): Move to ...
5118 (nds32_can_use_bitci_p): Move to ...
5119 * config/nds32/nds32-predicates.c: ... here.
5121 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5122 Kito Cheng <kito@0xlab.org>
5123 Monk Chiang <sh.chiang04@gmail.com>
5125 * config/nds32/nds32.c
5126 (nds32_expand_builtin_null_ftype_reg): Move to ...
5127 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5128 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5129 (nds32_init_builtins): Move implementation to ...
5130 (nds32_expand_builtin): Move implementation to ...
5131 * config/nds32/nds32-intrinsic.c: ... here.
5132 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5133 (nds32_expand_builtin_impl): Declare.
5135 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5136 Kito Cheng <kito@0xlab.org>
5137 Monk Chiang <sh.chiang04@gmail.com>
5139 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5140 (nds32_emit_section_tail_template): Move to ...
5141 (nds32_emit_isr_jmptbl_section): Move to ...
5142 (nds32_emit_isr_vector_section): Move to ...
5143 (nds32_emit_isr_reset_conten): Move to ...
5144 (nds32_check_isr_attrs_conflict): Move to ...
5145 (nds32_construct_isr_vectors_information): Move to ...
5146 (nds32_asm_file_start): Move implementation to ...
5147 (nds32_asm_file_end): Move implementation to ...
5148 * config/nds32/nds32-isr.c: ... here.
5149 * config/nds32/nds32-protos.h
5150 (nds32_check_isr_attrs_conflict): Declare.
5151 (nds32_construct_isr_vectors_information): Declare.
5152 (nds32_asm_file_start_for_isr): Declare.
5153 (nds32_asm_file_end_for_isr): Declare.
5155 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5156 Kito Cheng <kito@0xlab.org>
5157 Monk Chiang <sh.chiang04@gmail.com>
5159 * config.gcc (nds32*): Add new modules to extra_objs.
5160 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5161 (nds32be-*-*): Likewise.
5162 * config/nds32/nds32-cost.c: New file.
5163 * config/nds32/nds32-fp-as-gp.c: New file.
5164 * config/nds32/nds32-intrinsic.c: New file.
5165 * config/nds32/nds32-isr.c: New file.
5166 * config/nds32/nds32-md-auxiliary.c: New file.
5167 * config/nds32/nds32-memory-manipulation.c: New file.
5168 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5169 * config/nds32/nds32-predicates.c: New file.
5170 * config/nds32/t-nds32: New file.
5172 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5174 PR tree-optimization/61682
5175 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5176 using cases and when one of the operands is equal to 1.
5178 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5180 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5181 ashr<mode>3): Correct mode of operands[2].
5182 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5183 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5184 Correct mode of operands[2]. Fix split condition.
5186 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5188 * arm.md (arch): Add armv6_or_vfpv3.
5189 (arch_enabled): Add test for the above.
5190 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5192 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5194 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5196 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5197 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5198 HWI 1 and negate the unsigned value.
5199 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5200 use AND instead of shift.
5201 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5203 2014-07-03 Marek Polacek <polacek@redhat.com>
5205 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5206 (-fsanitize=float-divide-by-zero): Move to the table with
5207 -fsanitize=undefined suboptions.
5208 (-fsanitize=float-cast-overflow): Likewise.
5210 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5212 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5213 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5216 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5218 * loop-invariant.c (struct invariant): Add a new member: eqno;
5219 (find_identical_invariants): Update eqno;
5220 (create_new_invariant): Init eqno;
5221 (get_inv_cost): Compute comp_cost with eqno;
5223 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5225 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5226 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5227 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5228 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5229 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5231 2014-07-02 Christian Bruel <christian.bruel@st.com>
5235 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5236 (make_preds_opaque): Delete.
5237 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5238 (commit_mode_sets): New function.
5239 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5240 Process all modes at once.
5241 * basic-block.h (pre_edge_lcm_avs): Declare.
5242 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5243 Call clear_aux_for_edges. Fix comments.
5244 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5245 (pre_edge_rev_lcm): Idem.
5246 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5248 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5249 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5251 * config/i386/i386.c (x96_emit_mode_set): Idem.
5252 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5253 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5254 (fpscr_toggle) Disallow from delay slot.
5255 * target.def (emit_mode_set): Add prev_mode parameter.
5256 * doc/tm.texi: Regenerate.
5258 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5260 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5263 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5265 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5266 vtable_pointer_value_to_vtable): Constify.
5267 (contains_polymorphic_type_p): Declare.
5268 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5269 vtable_pointer_value_to_vtable): Constify.
5270 (contains_polymorphic_type_p): New predicate.
5271 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5273 (ipa_set_ancestor_jf): Likewise.
5274 (detect_type_change): Return false in easy cases.
5275 (compute_complex_assign_jump_func): Require type to contain
5277 (compute_known_type_jump_func): Likewise.
5279 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5281 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5283 (type_in_anonymous_namespace_p): Constify argument.
5284 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5285 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5286 (main_odr_variant): New function.
5287 (hash_type_name): Make static; update assert; do not ICE on
5289 (types_same_for_odr): Bring here from tree.c; simplify and remove
5290 old structural comparing code that doesn't work for templates.
5291 (odr_hasher::equal): Update assert.
5292 (add_type_duplicate): Return true when bases should be computed;
5293 replace incomplete loader by complete; do not output duplicated
5294 warnings; do not ICE on non-records; set odr_violated flag.
5295 (get_odr_type): Be ready to replace incomplete type by complete
5296 one; work on ODR variants instead of main variants; reorder item
5297 in array so bases have still smaller indexes.
5298 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5299 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5301 2014-07-01 Cary Coutant <ccoutant@google.com>
5303 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5305 (resolve_addr_in_expr): When replacing the rtx in a location list
5306 entry, get a new address table entry.
5307 (dwarf2out_finish): Call index_location_lists even if there are no
5308 addr_index_table entries yet.
5310 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5312 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5313 change for not being obvious.
5315 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5317 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5320 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5322 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5323 (vcagt_f64): Likewise.
5324 (vcale_f64): Likewise.
5325 (vcaled_f64): Likewise.
5326 (vcales_f32): Likewise.
5327 (vcalt_f64): Likewise.
5328 (vcaltd_f64): Likewise.
5329 (vcalts_f32): Likewise.
5331 2014-07-01 Marek Polacek <polacek@redhat.com>
5333 * doc/invoke.texi: Document -Wint-conversion.
5335 2014-07-01 Marek Polacek <polacek@redhat.com>
5338 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5340 2014-07-01 Martin Liska <mliska@suse.cz>
5342 IPA REF alias refactoring
5343 * cgraph.h (iterate_direct_aliases): New function.
5344 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5345 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5346 FOR_EACH_ALIAS added.
5347 (cgraph_for_node_and_aliases): Likewise.
5348 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5349 * ipa-inline.c (reset_edge_caches): Likewise.
5350 (update_caller_keys): Likewise.
5351 * trans-mem.c (ipa_tm_execute): Likewise.
5352 *varpool.c (varpool_analyze_node): Likewise.
5353 (varpool_for_node_and_aliases): Likewise.
5354 * ipa-ref.h (first_alias): New function.
5355 (last_alias): Likewise.
5356 (has_aliases_p): Likewise.
5357 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5358 is sensitive to IPA_REF_ALIASes.
5359 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5360 are put at the beginning of the list.
5361 (symtab_node::iterate_direct_aliases): New function.
5363 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5366 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5368 (write_ts_type_common_tree_pointers): Do not stream fields not set
5369 for incomplete types; do not stream duplicated fields for variants;
5370 sanity check that variant and type match.
5371 (write_ts_type_non_common_tree_pointers): Likewise.
5372 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5373 TYPE_SIZE whether type is complete.
5374 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5375 write_ts_type_common_tree_pointers
5376 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5378 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5380 * var-tracking.c (add_stores): Return instead of asserting if old
5381 and new values for conditional store are the same.
5383 2014-06-30 Richard Henderson <rth@redhat.com>
5387 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5388 the cfg if there were any changes.
5389 * passes.def: Revert move of peephole2 after reorder_blocks;
5390 move duplicate_computed_gotos before peephole2.
5392 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5394 * except.c (emit_note_eh_region_end): New helper function.
5395 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5396 emit EH_REGION_END note.
5397 * jump.c (cleanup_barriers): Do not split a call and its
5398 corresponding CALL_ARG_LOCATION note.
5400 2014-06-30 Jeff Law <law@redhat.com>
5402 PR tree-optimization/61607
5403 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5404 deeper into the SSA_NAME_VALUE chain.
5406 2014-06-30 Marek Polacek <polacek@redhat.com>
5408 * convert.c (convert_to_integer): Don't instrument conversions if the
5409 function has no_sanitize_undefined attribute.
5410 * ubsan.c: Don't run the ubsan pass if the function has
5411 no_sanitize_undefined attribute.
5413 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5415 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5416 -fsanitize=undefined suboptions.
5418 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5420 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5421 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5422 against bigendian and adjust indices.
5424 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5426 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5428 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5431 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5432 Add alternative; make early clobber. Adjust both split patterns
5433 to use operand 0 as the working register.
5435 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5437 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5438 as ira_object_id_map might be NULL, or 1.
5440 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5442 * loop-invariant.c (get_inv_cost): Handle register class.
5443 (gain_for_invariant): Check the register pressure of the inv
5444 and its overlapped register class, other than all.
5446 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5448 * doc/invoke.texi (Optimize Options): Fix descriptions of
5449 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5451 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5453 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5456 2014-06-29 Tobias Grosser <tobias@grosser.es>
5459 * graphite-isl-ast-to-gimple.c: Add missing guards.
5461 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5463 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5464 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5465 * flag-types.h: Add new enum fgraphite_generator.
5466 * graphite-isl-ast-to-gimple.c: New.
5467 * graphite-isl-ast-to-gimple.h: New.
5468 * graphite.c (graphite_transform_loops): Add choice of Graphite
5469 code generator, which depends on flag_graphite_code_gen.
5471 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5473 * graphite-dependences.c (subtract_commutative_associative_deps):
5474 Add NULL checking of the following variables: must_raw_no_source,
5475 may_raw_no_source, must_war_no_source, may_war_no_source,
5476 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5477 must_war, may_war, must_waw, may_waw.
5479 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5481 * graphite-clast-to-gimple.c: gloog is renamed to
5482 graphite_regenerate_ast_cloog. gloog_error is renamed to
5483 graphite_regenerate_error.
5484 * graphite-clast-to-gimple.h: The definition of the struct
5485 bb_pbb_def is moved to graphite-htab.h.
5486 Add inclusion of the hash-table.h.
5487 * graphite-htab.h: The declaration of the function gloog is moved
5488 to graphite-clast-to-gimple.h and renamed to
5489 graphite_regenerate_ast_cloog.
5490 * graphite.c (graphite_transform_loops): gloog is renamed
5491 to graphite_regenerate_ast_cloog.
5493 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5495 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5497 (write_ts_type_common_tree_pointers): Do not stream fields not set
5498 for incomplete types; do not stream duplicated fields for variants;
5499 sanity check that variant and type match.
5500 (write_ts_type_non_common_tree_pointers): Likewise.
5501 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5502 TYPE_SIZE whether type is complete.
5503 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5504 write_ts_type_common_tree_pointers
5505 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5507 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5509 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5511 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5513 * tree-inline.c (remap_type_1): Do not duplicate fields
5514 that are shared in between type and its main variant.
5516 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5518 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5520 (ipa_set_ancestor_jf) Likewise.
5521 (check_stmt_for_type_change): Check that we work on main variant.
5522 (detect_type_change): Look into main variant.
5523 (compute_known_type_jump_func): Check that main variant has BINFO.
5525 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5527 * ipa-devirt.c (set_type_binfo): New function.
5528 (add_type_duplicate): Use it.
5529 (get_odr_type): Sanity check that binfos points to main variants.
5530 (get_class_context): Be sure the context's outer_type is main variant.
5531 (contains_type_p): Walk main variant.
5532 (get_polymorphic_call_info_for_decl): Set outer_type to be
5534 (get_polymorphic_call_info): Likewise.
5535 (possible_polymorphic_call_targets): Sanity check that we operate
5538 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5540 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5542 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5544 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5545 accidental change due to wide-int branch merge.
5547 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5549 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5550 compressed debug support.
5551 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5552 * configure: Regenerate.
5553 * config.in: Regenerate.
5554 * common.opt (compressed_debug_sections): New enum.
5555 (gz, gz=): New options.
5556 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5557 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5558 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5559 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5560 LINK_COMPRESS_DEBUG_SPEC.
5561 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5562 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5563 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5564 (Debugging Options): Document -gz[=type].
5566 2014-06-27 Martin Jambor <mjambor@suse.cz>
5569 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5570 args_to_skip, use those from node instead. Copy args_to_skip and
5571 combined_args_to_skip from node to the new thunk.
5572 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5573 (cgraph_create_virtual_clone): Moved computation of
5574 combined_args_to_skip...
5575 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5577 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5579 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5580 redundant diagnostic machinary.
5582 2014-06-27 Richard Biener <rguenther@suse.de>
5584 * tree-ssa-math-opts.c (bswap_replace): Fix
5585 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5587 2014-06-27 Martin Liska <mliska@suse.cz>
5589 * gimple.h (gimple_location_safe): New function introduced.
5590 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5591 of gimple_location_safe replaces gimple_location.
5592 (gimple_fold_call): Likewise.
5593 * ipa-devirt.c (ipa_devirt): Likewise.
5594 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5595 * ipa.c (walk_polymorphic_call_targets): Likewise.
5596 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5598 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5600 PR tree-optimization/57233
5601 PR tree-optimization/61299
5602 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5604 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5605 would be lowered to scalar shifts, check if corresponding
5606 shifts and vector BIT_IOR_EXPR are supported and don't lower
5607 or lower just to narrower vector type in that case.
5608 * expmed.c (expand_shift_1): Fix up handling of vector
5611 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5614 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5616 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5618 * doc/invoke.texi (-fsemantic-interposition): Document.
5619 * common.opt (fsemantic-interposition): New flag.
5620 * varasm.c (decl_replaceable_p): Use it.
5622 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5625 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5626 extraction other than index 3.
5628 2014-06-26 Teresa Johnson <tejohnson@google.com>
5630 * doc/invoke.texi: Fix typo.
5631 * dumpfile.c: Add support for documented -fdump-* options
5632 optimized/missed/note/optall.
5634 2014-06-26 Martin Jambor <mjambor@suse.cz>
5636 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5637 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5638 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5639 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5640 * opts.c (default_options_optimization): Set
5641 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5642 * doc/invoke.texi (allow-load-data-races)
5643 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5644 (allow-store-data-races): Document the new default.
5646 2014-06-26 Martin Jambor <mjambor@suse.cz>
5648 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5649 renamed to ipa_impossible_devirt_target. Fix typo.
5650 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5651 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5652 ipa_impossible_devirt_target.
5654 2014-06-26 Richard Biener <rguenther@suse.de>
5656 PR tree-optimization/61607
5657 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5658 explaining why we restrict copies on loop depth.
5659 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5661 (record_equivalences_from_phis): Instead add it here.
5663 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5665 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5666 (LTO_WRAPPER_OBJS): New variable.
5667 (lto-wrapper$(exeext)): Use it.
5668 * collect2.c: Include "collect-utils.h".
5669 (verbose, debug): Remove variables.
5670 (at_file_supplied): No longer static.
5671 (tool_name): New variable.
5672 (do_wait, fork_execute, maybe_unlink): Don't declare.
5673 (tool_cleanup): No longer static.
5674 (notice): Remove function.
5675 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5677 (collect_wait, do_wait, collect_execute): Remove functions.
5678 (maybe_unlink): No longer static.
5679 * collect2.h (verbose, debug): Don't declare.
5680 (at_file_supplied): Declare.
5681 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5683 (collect_execute): Replace with implementation from collect2, plus a
5684 new arg use_atfile. All callers changed.
5685 (collect_wait): Replace with implementation from collect2.
5686 (maybe_unlink_file): Remove function.
5687 (fork_execute): Replace with implementation from collect2, plus a
5688 new arg use_atfile. All callers changed.
5689 (do_wait): Add call to utils_cleanup to the error path.
5690 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5691 (tool_cleanup): Adjust declarations.
5692 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5693 * tlink.c: Include "collect-utils.h".
5694 (tlink_execute): New arg use_atfile. All callers changed.
5695 (tlink_init, tlink_execute): Remove declarations.
5697 * collect-utils.c (save_temps): New variable.
5698 (do_wait): Use it instead of debug. Use fatal_error.
5699 * collect-utils.h (save_temps): Declare.
5700 * collect2.c (verbose): Rename from vflag. All uses changed.
5701 (tool_cleanup): New function, copied from collect_atexit.
5702 (collect_atexit, handler): Just call it.
5703 * collect2.h (verbose): Declaration renamed from vflag.
5704 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5707 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5708 (lto-wrapper$(exeext)): Link with collect-utils.o.
5709 * collect-utils.c: New file.
5710 * collect-utils.h: New file.
5711 * lto-wrapper.c: Include "collect-utils.h".
5712 (args_name): Delete variable.
5713 (tool_name): New variable.
5714 (tool_cleanup): New function.
5715 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5716 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5717 (fork_execute): Remove functions.
5719 2014-06-26 Nick Clifton <nickc@redhat.com>
5721 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5723 * doc/extend.texi (Function Attributes): Fix typo in description
5724 of RX vector attribute.
5726 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5728 * config.gcc (supported_defaults): Error when passing either
5729 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5731 2014-06-26 Richard Biener <rguenther@suse.de>
5733 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5734 propagating volatile pointers.
5736 2014-06-26 Richard Biener <rguenther@suse.de>
5738 PR tree-optimization/61607
5739 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5740 loop if we redirected its latch edge.
5741 (thread_block_1): Do not cancel loops prematurely.
5743 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5745 * toplev.c (backend_init_target): Move init_emit_regs and
5747 (backend_init) ... here; skip ira_init_once and backend_init_target.
5748 (target_reinit) ... and here; clear
5749 this_target_rtl->lang_dependent_initialized.
5750 (lang_dependent_init_target): Clear
5751 this_target_rtl->lang_dependent_initialized;
5752 break out rtl initialization to ...
5753 (initialize_rtl): ... here; call also backend_init_target
5755 * toplev.h (initialize_rtl): New function.
5756 * function.c: Include toplev.h
5757 (init_function_start): Call initialize_rtl.
5758 * rtl.h (target_rtl): Add target_specific_initialized,
5759 lang_dependent_initialized.
5761 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5762 Jakub Jelinek <jakub@redhat.com>
5764 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5766 2014-06-25 Tom de Vries <tom@codesourcery.com>
5768 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5770 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5772 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5773 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5774 Issue a strict overflow warning if appropriate.
5776 2014-06-25 Martin Liska <mliska@suse.cz>
5779 * Makefile.in: Removed header file (ipa-ref-inline.h).
5780 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5782 (cgraph_speculative_call_info): Likewise.
5783 (cgraph_for_node_thunks_and_aliases): Likewise.
5784 (cgraph_for_node_and_aliases): Likewise.
5785 (verify_cgraph_node): Likewise.
5786 * cgraph.h: Batch of IPA REF functions become member functions of
5787 symtab_node: add_reference, maybe_add_reference, clone_references,
5788 clone_referring, clone_reference, find_reference,
5789 remove_stmt_references, remove_all_references,
5790 remove_all_referring, dump_references, dump_referring,
5791 has_alias_p, iterate_reference, iterate_referring.
5792 * cgraphbuild.c (record_reference): New IPA REF function used.
5793 (record_type_list): Likewise.
5794 (record_eh_tables): Likewise.
5795 (mark_address): Likewise.
5796 (mark_load): Likewise.
5797 (mark_store): Likewise.
5798 (pass_build_cgraph_edges): Likewise.
5799 (rebuild_cgraph_edge): Likewise.
5800 (cgraph_rebuild_references): Likewise.
5801 (pass_remove_cgraph_callee_edges): Likewise.
5802 * cgraphclones.c (cgraph_clone_node): Likewise.
5803 (cgraph_create_virtual_clone): Likewise.
5804 (cgraph_materialize_clone): Likewise.
5805 (cgraph_materialize_all_clones): Likewise.
5806 * cgraphunit.c (cgraph_reset_node): Likewise.
5807 (cgraph_reset_node): Likewise.
5808 (analyze_function): Likewise.
5809 (assemble_thunks_and_aliases): Likewise.
5810 (expand_function): Likewise.
5811 * ipa-comdats.c (propagate_comdat_group): Likewise.
5812 (enqueue_references): Likewise.
5813 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5814 (create_specialized_node): Likewise.
5815 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5816 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5817 * ipa-inline.c (reset_edge_caches): Likewise.
5818 (update_caller_keys): Likewise.
5819 (execute): Likewise.
5820 * ipa-prop.c (remove_described_reference): Likewise.
5821 (propagate_controlled_uses): Likewise.
5822 (ipa_edge_duplication_hook): Likewise.
5823 (ipa_modify_call_arguments): Likewise.
5824 * ipa-pure-const.c (propagate_pure_const): Likewise.
5825 * ipa-ref-inline.h: Header file removed, functions moved
5826 to symtab_node class.
5827 * ipa-ref.c (remove_reference): New class member function.
5828 (cannot_lead_to_return): New class member function.
5829 (referring_ref_list): Likewise.
5830 (referred_ref_list): Likewise.
5831 Rest of functions moved to symtab_node class.
5832 * ipa-ref.h: New member functions remove_reference,
5833 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5835 ipa_ref_list class has new member functions: first_reference,
5836 first_referring, clear, nreferences.
5837 * ipa-reference.c (analyze_function): New IPA REF function used.
5838 (write_node_summary_p): Likewise.
5839 (ipa_reference_write_optimization_summary): Likewise.
5840 * ipa-split.c (split_function): Likewise.
5841 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5842 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5843 (function_and_variable_visibility): Likewise.
5844 * ipa.c (has_addr_references_p): Likewise.
5845 (process_references): Argument type changed.
5846 (symtab_remove_unreachable_nodes): New IPA REF function used.
5847 (process_references): Likewise.
5848 (set_writeonly_bit): Likewise.
5849 * lto-cgraph.c: Implementation of new symtab_node member functions
5850 that uses new IPA REF functions.
5851 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5853 * lto-streamer-out.c (output_symbol_p): Likewise.
5854 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5856 * symtab.c: Implementation of new IPA REF API.
5857 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5858 (ipa_tm_create_version): Likewise.
5859 (ipa_tm_execute): Likewise.
5860 * tree-emutls.c (gen_emutls_addr): Likewise.
5861 * tree-inline.c (copy_bb): Likewise.
5862 (delete_unreachable_blocks_update_callgraph): Likewise.
5863 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5864 (varpool_for_node_and_aliases): Likewise.
5866 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5868 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5870 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5873 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5874 tree_node * instead of tree_node *.
5876 (print_fold_checksum): Likewise.
5877 (fold_check_failed): Likewise.
5878 (debug_fold_checksum): Likewise.
5879 (fold_build1_stat_loc): Likewise.
5880 (fold_build2_stat_loc): Likewise.
5881 (fold_build3_stat_loc): Likewise.
5882 (fold_build_call_array_loc): Likewise.
5884 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5886 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5887 implementation with call to...
5888 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5890 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5893 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5895 PR tree-optimization/57742
5896 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5897 after replacing the statement.
5899 2014-06-25 Nick Clifton <nickc@redhat.com>
5901 * config/v850/v850.c (GHS_default_section_names): Change to const
5903 (GHS_current_section_names): Likewise.
5904 (v850_insert_attributes): Do not build strings, just assign the
5905 names directly. Change the type of 'chosen_section' to const
5907 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5908 directly to the array entry.
5909 * config/v850/v850.h (GHS_default_section_names): Change to const
5911 (GHS_current_section_names): Likewise.
5913 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5915 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5916 (LANG_HOOKS_DECLS): Add it.
5917 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5919 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5920 * langhooks.h (struct lang_hooks_for_decls): Add
5921 omp_clause_linear_ctor hook.
5922 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5923 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5924 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5925 combined simd loop use omp_clause_linear_ctor hook.
5927 2014-06-24 Cong Hou <congh@google.com>
5929 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5930 pattern recognition.
5931 (type_conversion_p): PROMOTION is true if it's a type promotion
5932 conversion, and false otherwise. Return true if the given expression
5933 is a type conversion one.
5934 * tree-vectorizer.h: Adjust the number of patterns.
5935 * tree.def: Add SAD_EXPR.
5936 * optabs.def: Add sad_optab.
5937 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5938 * expr.c (expand_expr_real_2): Likewise.
5939 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5940 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5941 * optabs.c (optab_for_tree_code): Likewise.
5942 * tree-cfg.c (estimate_operator_cost): Likewise.
5943 * tree-ssa-operands.c (get_expr_operands): Likewise.
5944 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5945 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5946 * doc/generic.texi: Add document for SAD_EXPR.
5947 * doc/md.texi: Add document for ssad and usad.
5949 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5951 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5952 qualification in cast.
5954 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5956 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5957 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5958 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5959 (tree_function_decl): ... here.
5960 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5961 streaming of vindex to ...
5962 (write_ts_function_decl_tree_pointers): ... here.
5963 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5964 Do not stream DECL_VINDEX.
5965 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5967 2014-06-24 Catherine Moore <clm@codesourcery.com>
5968 Sandra Loosemore <sandra@codesourcery.com>
5970 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5971 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5972 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5974 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5976 * doc/invoke.texi (Warning Options): Remove duplicated
5977 -Wmaybe-uninitialized.
5979 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5981 PR tree-optimization/57742
5982 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5983 (handle_builtin_malloc, handle_builtin_memset): New functions.
5984 (strlen_optimize_stmt): Call them.
5985 * passes.def: Move strlen after loop+dom but before vrp.
5987 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5990 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
5991 model family 6 CPU with has_longmode never use a CPU without
5994 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
5997 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6000 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6002 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6003 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6005 * hash-map.h: New file.
6006 * ipa-comdats.c: Use hash_map instead of pointer_map.
6008 * lto-section-out.c: Adjust.
6009 * lto-streamer.h: Replace pointer_map with hash_map.
6010 * symtab.c (verify_symtab): Likewise.
6011 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6012 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6013 * tree-streamer.h: Likewise.
6014 * tree-streamer.c: Adjust.
6015 * pointer-set.h: Remove pointer_map.
6017 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6019 * hash-table.h: Add a template arg to choose between storing values
6020 and storing pointers to values, and then provide partial
6021 specializations for both.
6022 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6023 should store, not the type values should point to.
6024 * tree-into-ssa.c (var_info_hasher): Likewise.
6025 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6026 * tree-complex.c: Adjust.
6027 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6028 table instead of int_tree_map *.
6029 * tree-parloops.c: Adjust.
6030 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6031 type is being stored.
6032 * tree-vectorizer.c: Adjust.
6034 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6036 * hash-table.h: Remove a layer of indirection from hash_table so that
6037 it contains the hash table's data instead of a pointer to the data.
6038 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6039 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6040 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6041 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6042 fold-const.c, gcse.c, ggc-common.c,
6043 gimple-ssa-strength-reduction.c, gimplify.c,
6044 graphite-clast-to-gimple.c, graphite-dependences.c,
6045 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6046 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6047 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6048 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6049 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6050 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6051 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6052 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6053 tree-ssa-live.c, tree-ssa-loop-im.c,
6054 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6055 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6056 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6057 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6058 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6059 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6060 vtable-verify.c, vtable-verify.h: Adjust.
6062 2014-06-24 Richard Biener <rguenther@suse.de>
6064 PR tree-optimization/61572
6065 * tree-ssa-sink.c (statement_sink_location): Do not sink
6066 loads from hard registers.
6068 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6070 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6071 not mentioned in clauses use private clause if the iterator is
6072 declared in #pragma omp for simd, and when adding lastprivate
6073 instead, add it to the outer #pragma omp for too. Diagnose
6074 if the variable is private in outer context. For simd collapse > 1
6075 loops, replace all iterators with temporaries.
6076 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6077 same even in collapse > 1 loops.
6079 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6080 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6082 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6083 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6085 (gimplify_adjust_omp_clauses): Likewise.
6086 * omp-low.c (lower_rec_simd_input_clauses,
6087 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6088 safelen the same as safelen(1).
6089 * tree-nested.c (convert_nonlocal_omp_clauses,
6090 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6091 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6092 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6093 Fixup handling of GIMPLE_OMP_TARGET.
6094 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6097 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6099 PR tree-optimization/61554
6100 * tree-ssa-propagate.c: Include "bitmap.h".
6101 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6102 properly update constructor/destructor.
6103 (substitute_and_fold_dom_walker::before_dom_children):
6104 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6105 need_eh_cleaup instead.
6106 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6109 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6111 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6112 * tree-pass.h (make_pass_ipa_single_use): New pass.
6113 * cgraph.h (used_by_single_function): New flag.
6114 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6116 * passes.def (pass_ipa_single_use): Scedule.
6117 * ipa.c (BOTTOM): New macro.
6118 (meet): New function
6119 (propagate_single_user): New function.
6120 (ipa_single_use): New function.
6121 (pass_data_ipa_single_use): New pass.
6122 (pass_ipa_single_use): New pass.
6123 (pass_ipa_single_use::gate): New gate.
6124 (make_pass_ipa_single_use): New function.
6126 2014-06-23 Kai Tietz <ktietz@redhat.com>
6129 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6130 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6132 2014-06-23 Richard Biener <rguenther@suse.de>
6134 * tree-ssa-loop.c (gate_loop): New function.
6135 (pass_tree_loop::gate): Call it.
6136 (pass_data_tree_no_loop, pass_tree_no_loop,
6137 make_pass_tree_no_loop): New.
6138 * tree-vectorizer.c: Include tree-scalar-evolution.c
6139 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6141 (pass_slp_vectorize::clone): New method.
6142 * timevar.def (TV_TREE_NOLOOP): New.
6143 * tree-pass.h (make_pass_tree_no_loop): Declare.
6144 * passes.def (pass_tree_no_loop): New pass group with
6147 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6150 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6151 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6153 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6155 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6158 2014-06-23 Alan Modra <amodra@gmail.com>
6161 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6162 to zero on debug statements.
6164 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6167 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6168 Ignore third operand if present by marking qualifier_internal.
6170 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6172 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6174 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6175 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6176 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6177 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6178 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6179 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6180 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6181 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6182 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6183 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6184 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6185 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6186 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6187 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6188 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6189 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6190 logic in GCC vector extensions
6192 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6193 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6194 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6195 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6196 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6197 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6198 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6199 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6200 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6201 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6203 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6205 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6208 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6209 (vget_low_s64): Use __GET_LOW macro.
6210 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6211 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6212 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6213 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6214 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6216 (vcombine_s64): Use GCC vector extensions; remove cast.
6217 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6218 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6219 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6220 Fix type signature; remove cast.
6222 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6225 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6227 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6230 (BUILTIN_VD_RE): Remove.
6231 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6232 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6233 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6235 (vreinterpretv1df*, vreinterpret*v1df): New.
6236 (vreinterpretdf*, vreinterpret*df): Remove.
6237 * config/aarch64/aarch64-simd.md (aarch64_create,
6238 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6239 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6241 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6242 (vcreate_f64): Remove cast, use v1df builtin.
6243 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6244 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6245 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6246 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6247 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6248 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6249 add range check using __builtin_aarch64_im_lane_boundsi.
6250 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6251 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6252 type signature, use gcc vector extensions.
6253 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6254 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6255 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6256 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6257 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6258 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6259 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6260 vreinterpret_u64_f64): Use v1df builtin not df.
6262 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6264 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6267 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6269 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6272 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6274 * loop-invariant.c (pre_check_invariant_p): New function.
6275 (find_invariant_insn): Call pre_check_invariant_p.
6277 2014-06-22 Richard Henderson <rth@redhat.com>
6280 * compare-elim.c (struct comparison): Add eh_note.
6281 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6282 a redundant comparison in a different EH region. Purge EH edges if
6285 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6287 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6288 (var_shift): Use it.
6289 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6290 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6291 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6292 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6293 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6294 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6295 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6296 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6297 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6298 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6299 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6300 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6301 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6302 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6303 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6304 *rotldi3_internal15be): Use the new attribute. Merge register and
6305 integer alternatives.
6307 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6309 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6310 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6311 split, *ashrdi3_internal3 and split): Delete, merge into...
6312 (ashr<mode>3): New expander.
6313 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6314 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6316 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6318 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6319 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6320 *rotldi3_internal3 and split): Delete, merge into...
6321 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6322 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6323 Use "rotlw" extended mnemonic.
6325 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6327 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6328 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6329 and split, *ashldi3_internal3 and split): Delete, merge into...
6330 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6331 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6333 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6335 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6336 (lshrsi3, two anonymous define_insns and define_splits,
6337 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6338 *lshrdi3_internal3 and split): Delete, merge into...
6339 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6340 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6342 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6344 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6345 Remove "O" alternative.
6347 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6349 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6350 (mips_move_from_gpr_cost): Likewise.
6351 (mips_register_move_cost): Update accordingly.
6352 (mips_secondary_reload_class): Remove name of in_p.
6354 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6357 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6358 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6360 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6362 * config/nios2/nios2.c: Include "builtins.h".
6364 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6366 * cgraph.h (tls_model_names): New variable.
6367 * print-tree.c (print_node): Simplify.
6368 * varpool.c (tls_model_names): New variable.
6369 (dump_varpool_node): Output tls model.
6371 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6373 * ipa-visibility.c (function_and_variable_visibility): Disable
6374 temporarily local aliases for some targets.
6376 2014-06-20 Marek Polacek <polacek@redhat.com>
6378 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6379 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6380 into SANITIZE_UNDEFINED.
6381 * doc/invoke.texi: Describe -fsanitize=bounds.
6382 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6383 functions created in the FEs.
6384 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6385 (expand_UBSAN_BOUNDS): New function.
6386 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6387 * internal-fn.h: Don't define internal functions here.
6388 * opts.c (common_handle_option): Add -fsanitize=bounds.
6389 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6390 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6391 * tree-core.h: Define internal functions here.
6392 (struct tree_base): Add ifn field.
6393 * tree-pretty-print.c: Include "internal-fn.h".
6394 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6395 * tree.c (get_callee_fndecl): Likewise.
6396 (build_call_expr_internal_loc): New function.
6397 * tree.def (CALL_EXPR): Update description.
6398 * tree.h (CALL_EXPR_IFN): Define.
6399 (build_call_expr_internal_loc): Declare.
6400 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6402 (ubsan_type_descriptor): Change bool parameter to enum
6403 ubsan_print_style. Adjust the code. Add handling of
6405 (ubsan_expand_bounds_ifn): New function.
6406 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6407 (ubsan_build_overflow_builtin): Likewise.
6408 (instrument_bool_enum_load): Likewise.
6409 (ubsan_instrument_float_cast): Likewise.
6410 * ubsan.h (enum ubsan_print_style): New enum.
6411 (ubsan_expand_bounds_ifn): Declare.
6412 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6414 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6416 * config/rs6000/rs6000.md: Append `DONE' to preparation
6417 statements of `bswap' pattern splitters.
6419 2014-06-20 Tom de Vries <tom@codesourcery.com>
6421 * target.def (call_fusage_contains_non_callee_clobbers): Update
6423 * doc/tm.texi: Regenerate.
6425 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6426 Max Ostapenko <m.ostapenko@partner.samsung.com>
6429 * asan.c (instrument_strlen_call): Fixed instrumentation of
6432 2014-06-20 Martin Jambor <mjambor@suse.cz>
6435 * ipa-prop.c (impossible_devirt_target): New function.
6436 (try_make_edge_direct_virtual_call): Use it, also instead of
6439 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6440 Max Ostapenko <m.ostapenko@partner.samsung.com>
6443 * asan.c (build_check_stmt): Add condition.
6445 2014-06-20 Martin Jambor <mjambor@suse.cz>
6448 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6451 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6453 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6455 (VCONQ): Make comment more helpful.
6457 * config/aarch64/aarch64-simd.md
6458 (aarch64_sqdmulh_lane<mode>):
6459 Use VCOND for operands 2. Update lane checking and flipping logic.
6460 (aarch64_sqrdmulh_lane<mode>): Likewise.
6461 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6462 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6463 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6464 attribute of operand 3 to VCOND.
6465 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6466 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6467 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6468 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6469 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6470 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6472 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6473 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6474 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6475 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6476 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6477 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6478 operand to VCOND. Update lane flipping and bounds checking logic.
6479 (aarch64_sqdmlal2_lane<mode>): Likewise.
6480 (aarch64_sqdmlsl_lane<mode>): Likewise.
6481 (aarch64_sqdmull_lane<mode>): Likewise.
6482 (aarch64_sqdmull2_lane<mode>): Likewise.
6483 (aarch64_sqdmlal_laneq<mode>):
6484 Replace VCON usage with VCONQ.
6485 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6486 (aarch64_sqdmlal2_laneq<mode>): Emit
6487 aarch64_sqdmlal2_laneq<mode>_internal insn.
6488 Replace VCON with VCONQ.
6489 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6490 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6491 (aarch64_sqdmull_laneq<mode>): Emit
6492 aarch64_sqdmull_laneq<mode>_internal insn.
6493 Replace VCON with VCONQ.
6494 (aarch64_sqdmull2_laneq<mode>): Emit
6495 aarch64_sqdmull2_laneq<mode>_internal insn.
6496 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6497 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6498 of 3rd argument to int16x4_t.
6499 (vqdmlalh_lane_s16): Likewise.
6500 (vqdmlslh_lane_s16): Likewise.
6501 (vqdmull_high_lane_s16): Likewise.
6502 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6503 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6504 (vqdmlsl_lane_s16): Likewise.
6505 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6506 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6507 (vqdmlals_lane_s32): Likewise.
6508 (vqdmlsls_lane_s32): Likewise.
6509 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6510 (vqdmulls_lane_s32): Likewise.
6511 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6512 (vqdmlsl_lane_s32): Likewise.
6513 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6514 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6515 (vqrdmulhh_lane_s16): Likewise.
6516 (vqdmlsl_high_lane_s16): Likewise.
6517 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6518 (vqdmlsl_high_lane_s32): Likewise.
6519 (vqrdmulhs_lane_s32): Likewise.
6521 2014-06-20 Tom de Vries <tom@codesourcery.com>
6523 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6524 get_call_reg_set_usage.
6526 2014-06-20 Tom de Vries <tom@codesourcery.com>
6528 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6529 it contains all call_used_regs.
6531 2014-06-20 Tom de Vries <tom@codesourcery.com>
6533 * final.c (collect_fn_hard_reg_usage): Add and use variable
6536 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6538 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6539 (set_init_priority, get_init_priority, set_fini_priority,
6540 get_fini_priority): New methods.
6541 * tree.c (init_priority_for_decl): Remove.
6542 (init_ttree): Do not initialize init priority.
6543 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6544 (decl_priority_info): Remove.
6545 (decl_init_priority_insert): Rewrite.
6546 (decl_fini_priority_insert): Rewrite.
6547 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6548 tree_priority_map_marked_p): Remove.
6549 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6550 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6551 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6552 not output priorities.
6553 (pack_ts_function_decl_value_fields): Likewise.
6554 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6555 not input priorities.
6556 (unpack_ts_function_decl_value_fields): Likewise.
6557 * symtab.c (symbol_priority_map): Declare.
6558 (init_priority_hash): Declare.
6559 (symtab_unregister_node): Unregister from priority hash, too.
6560 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6562 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6563 (symbol_priority_info): New function.
6564 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6566 * tree-core.h (tree_priority_map): Remove.
6568 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6570 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6571 0xff to uint64_t before shifting it up.
6573 2014-06-20 Julian Brown <julian@codesourcery.com>
6574 Chung-Lin Tang <cltang@codesourcery.com>
6576 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6577 TARGET_THUMB1_ONLY. Add comments.
6579 2014-06-19 Tom de Vries <tom@codesourcery.com>
6581 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6582 return type to void.
6583 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6585 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6587 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6588 as "move", from depends_on.
6590 2014-06-19 Terry Guo <terry.guo@arm.com>
6592 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6595 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6597 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6599 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6601 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6604 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6605 addresses here if reload in progress or completed.
6607 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6609 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6610 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6611 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6612 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6613 (mips_register_priority): New function that implements the target
6614 hook TARGET_REGISTER_PRIORITY.
6615 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6616 (mips_lra_p): Likewise for TARGET_LRA_P.
6617 (TARGET_REGISTER_PRIORITY): Define macro.
6618 (TARGET_SPILL_CLASS): Likewise.
6619 (TARGET_LRA_P): Likewise.
6620 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6622 (REG_CLASS_NAMES): Likewise.
6623 (REG_CLASS_CONTENTS): Likewise.
6624 (BASE_REG_CLASS): Use M16_SP_REGS.
6625 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6626 New set attribute to enable alternatives depending on the register
6628 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6629 (*lea64): Disable pattern for MIPS16.
6630 * config/mips/mips.opt (mlra): New option.
6632 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6634 * lra-constraints.c (base_to_reg): New function.
6635 (process_address): Use new function.
6637 2014-06-18 Tom de Vries <tom@codesourcery.com>
6639 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6640 * config/aarch64/aarch64.c
6641 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6642 (aarch64_emit_call_insn): New function.
6643 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6645 * config/aarch64/aarch64.md (define_expand "call_internal")
6646 (define_expand "call_value_internal", define_expand "sibcall_internal")
6647 (define_expand "sibcall_value_internal"): New.
6648 (define_expand "call", define_expand "call_value")
6649 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6650 expand variant and aarch64_emit_call_insn.
6652 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6653 Tom de Vries <tom@codesourcery.com>
6655 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6656 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6658 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6659 clobbers to CALL_INSN_FUNCTION_USAGE.
6660 (define_expand "sibcall_internal")
6661 (define_expand "sibcall_value_internal"): New.
6662 (define_expand "call", define_expand "call_value"): Add argument to
6664 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6665 (define_expand "sibcall_value"): Use sibcall_value_internal and
6668 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6670 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6672 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6674 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6677 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6679 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6680 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6681 annotations. Fix DWARF information.
6683 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6685 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6686 __udivmoddi4, and fixups for negative operands.
6688 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6690 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6692 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6694 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6697 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6699 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6702 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6704 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6705 describing register usage on function entry and exit.
6707 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6709 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6710 (__aeabi_ldivmod): Fix whitespace.
6712 2014-06-18 Andreas Schwab <schwab@suse.de>
6714 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6715 Remove blank line after @item.
6717 2014-06-18 Richard Henderson <rth@redhat.com>
6720 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6722 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6724 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6725 POST_MODIFY for neon loads and stores.
6726 (arm_print_operand): Output post-index register for neon loads and
6729 2014-06-18 Richard Biener <rguenther@suse.de>
6731 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6733 2014-06-18 Richard Biener <rguenther@suse.de>
6735 * tree-pass.h (make_pass_dce_loop): Remove.
6736 * passes.def: Replace pass_dce_loop with pass_dce.
6737 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6738 changed free niter estimates and reset the scev cache.
6739 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6740 make_pass_dce_loop): Remove.
6741 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6742 (fini_copy_prop): Return whether something changed. Always
6743 let substitute_and_fold perform DCE and free niter estimates
6744 and reset the scev cache if so.
6745 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6746 (pass_data_copy_prop): Do not unconditionally schedule
6747 cleanup-cfg or update-ssa.
6749 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6751 PR tree-optimization/61518
6752 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6753 reduction var is used in reduction stmt or phi-function only.
6755 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6757 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6759 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6761 PR tree-optimization/61517
6762 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6763 whose rhs's first tree is the source expression instead of the
6765 (find_bswap_or_nop): Likewise.
6766 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6767 gimple stmt whose rhs's first tree is the source. In the memory source
6768 case, move the stmt to be replaced close to one of the original load to
6769 avoid the problem of a store between the load and the stmt's original
6771 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6774 2014-06-18 Andreas Schwab <schwab@suse.de>
6776 PR rtl-optimization/54555
6777 * postreload.c (move2add_use_add2_insn): Substitute
6778 STRICT_LOW_PART only if it is cheaper.
6780 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6782 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6783 Do not use unspec as call operand. Use memory_operand instead of
6784 memory_nox32_operand and add "m" operand constraint. Disable
6785 pattern for TARGET_X32.
6786 (*sibcall_pop_memory): Ditto.
6787 (*sibcall_value_memory): Ditto.
6788 (*sibcall_value_pop_memory): Ditto.
6789 (sibcall peepholes): Merge SImode and DImode patterns using
6790 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6791 Disable pattern for TARGET_X32. Check if eliminated register is
6792 really dead after call insn. Generate call RTX without unspec operand.
6793 (sibcall_value peepholes): Ditto.
6794 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6795 instead of memory_nox32_operand. Check if eliminated register is
6796 really dead after call insn. Generate call RTX without unspec operand.
6797 (sibcall_value_pop peepholes): Ditto.
6798 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6800 2014-06-18 Terry Guo <terry.guo@arm.com>
6803 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6806 2014-06-18 Olivier Hainque <hainque@adacore.com>
6808 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6809 memorization of the end of block source location.
6810 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6811 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6812 end source location info we have on the block entry/exit code we
6815 2014-06-18 Richard Biener <rguenther@suse.de>
6817 * common.opt (fssa-phiopt): New option.
6818 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6820 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6821 * doc/invoke.texi (-fssa-phiopt): Document.
6823 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6825 * genattrtab.c (n_bypassed): New variable.
6826 (process_bypasses): Initialise n_bypassed.
6827 Count number of bypassed reservations.
6828 (make_automaton_attrs): Allocate space for bypassed reservations
6829 rather than number of bypasses.
6831 2014-06-18 Richard Biener <rguenther@suse.de>
6833 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6834 we propagated anything.
6835 (substitute_and_fold_dom_walker::before_dom_children): Something
6836 changed if we propagated into PHI arguments.
6837 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6840 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6842 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6844 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6845 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6846 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6847 Introduces alternative way of loads group permutaions.
6848 (vect_transform_grouped_load): Try alternative way of permutations.
6850 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6852 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6853 changed in ORT_TARGET region, don't jump to do_outer.
6854 (struct gimplify_adjust_omp_clauses_data): New type.
6855 (gimplify_adjust_omp_clauses_1): Adjust for data being
6856 a struct gimplify_adjust_omp_clauses_data pointer instead
6857 of tree *. Pass pre_p as a new argument to
6858 lang_hooks.decls.omp_finish_clause hook.
6859 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6860 splay_tree_foreach to pass both list_p and pre_p.
6861 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6862 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6863 gimplify_adjust_omp_clauses callers.
6864 * langhooks.c (lhd_omp_finish_clause): New function.
6865 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6866 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6867 * langhooks.h (struct lang_hooks_for_decls): Add a new
6868 gimple_seq * argument to omp_finish_clause hook.
6869 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6870 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6871 (scan_omp_parallel, lower_omp_for): When adding
6872 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6873 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6874 * tree-nested.c (convert_nonlocal_omp_clauses,
6875 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6876 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6878 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6880 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6881 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6883 2014-06-17 Xinliang David Li <davidxl@google.com>
6885 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6886 * passes.c (pass_init_dump_file): Do not set initialize
6887 flag to false unconditionally.
6889 2014-06-17 Richard Biener <rguenther@suse.de>
6891 * genopinit.c (main): Use vec<>::qsort method.
6892 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6894 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6896 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6898 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6899 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6900 (mips_move_to_gpr_cost): Remove ST_REGS case.
6901 (mips_move_from_gpr_cost): Likewise.
6902 (mips_register_move_cost): Likewise.
6903 (mips_secondary_reload_class): Likewise.
6905 2014-06-17 Richard Biener <rguenther@suse.de>
6907 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6908 (pass_all_optimizations): Move 3rd copy-prop pass from after
6909 fre to before ifcombine/phiopt.
6911 2014-06-17 Richard Biener <rguenther@suse.de>
6913 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6914 and allow all blocks to be forwarders.
6916 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6919 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6920 variable 'size'; calculate 'size' right in the front; use
6921 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6922 pcum->aapcs_stack_words.
6924 2014-06-17 Nick Clifton <nickc@redhat.com>
6926 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6927 (umulhi3, mulsidi3, umulsidi3): Likewise.
6929 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6932 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6933 check for section name.
6935 2014-06-17 Richard Biener <rguenther@suse.de>
6937 * tree-ssa-propagate.c: Include domwalk.h.
6938 (substitute_and_fold): Outline main worker into a domwalker ...
6939 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6940 Schedule stmts we can fully propagate for removal. Remove
6942 (substitute_and_fold): Apply a dominator walk to perform
6943 substitution. Process stmts scheduled for removal here.
6945 2014-06-17 Richard Biener <rguenther@suse.de>
6947 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6950 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6952 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6953 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6954 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6955 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6956 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6958 (get_fpscr) : Likewise.
6960 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6962 PR rtl-optimization/61325
6963 * lra-constraints.c (valid_address_p): Add forward declaration.
6964 (simplify_operand_subreg): Check address validity before and after
6965 alter_reg of memory subreg.
6967 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6969 * config/i386/i386.c (decide_alg): Correctly handle
6970 maximum size of stringop algorithm.
6972 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6974 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6976 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6978 PR rtl-optimization/61522
6979 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6981 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6984 * symtab.c (symtab_node::reset_section): New method.
6985 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6987 * cgraph.h (reset_section): Declare.
6988 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6989 do not consider comdat locals.
6990 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6992 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6993 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6994 reset sections of symbols dragged out of the comdats.
6995 (function_and_variable_visibility): Reset sections of
6998 2014-06-16 Richard Biener <rguenther@suse.de>
7000 PR tree-optimization/61482
7001 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7002 [-INF(OVF), +INF(OVF)] range.
7004 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7006 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7007 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7008 handling 32-bit multiplication.
7010 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7013 * lra-lives.c (process_bb_lives): Skip creating copy during
7014 insn scan when src/dest has constrained to same regno.
7016 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7018 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7019 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7021 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7023 * asan.c (check_func): New function.
7024 (maybe_create_ssa_name): Likewise.
7025 (build_check_stmt_with_calls): Likewise.
7026 (use_calls_p): Likewise.
7027 (report_error_func): Change interface.
7028 (build_check_stmt): Allow non-integer lengths; add support
7030 (asan_instrument): Likewise.
7031 (instrument_mem_region_access): Moved code to build_check_stmt.
7032 (instrument_derefs): Likewise.
7033 (instrument_strlen_call): Likewise.
7034 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7035 * doc/invoke.texi: Describe new parameter.
7036 * params.def: Define new parameter.
7037 * params.h: Likewise.
7038 * sanitizer.def: Describe new builtins.
7040 2014-06-16 Richard Biener <rguenther@suse.de>
7042 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7043 Make all defs available at the end.
7044 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7046 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7049 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7051 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7054 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7055 initialization. Replace remaining use of uid.
7057 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7059 * c-family/c-common.c (handle_tls_model_attribute): Use
7061 * c-family/c-common.c (handle_tls_model_attribute): Use
7063 * cgraph.h (struct varpool_node): Add tls_model.
7064 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7065 * tree.h (DECL_TLS_MODEL): Update.
7066 (DECL_THREAD_LOCAL_P): Check that variable is static.
7067 (decl_tls_model): Declare.
7068 (set_decl_tls_model): Declare.
7069 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7070 set symbol prorperties.
7071 (get_emutls_init_templ_addr): Cleanup.
7072 (new_emutls_decl): Update.
7073 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7074 (lto_input_varpool_node): Likewise.
7075 * lto-streamer-out.c (hash_tree): Likewise.
7076 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7077 not stream DECL_TLS_MODEL.
7078 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7079 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7081 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7083 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7085 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7087 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7088 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7090 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7091 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7092 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7093 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7094 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7095 (df_get_artificial_defs, df_get_artificial_uses)
7096 (df_single_def, df_single_use): Update accordingly.
7097 (df_refs_chain_dump): Take the first element in a linked list as
7098 parameter, rather than a pointer to an array of pointers.
7099 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7100 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7101 (df_chain_create_bb_process_use): Likewise.
7102 (df_md_bb_local_compute_process_def): Likewise.
7103 * fwprop.c (process_defs, process_uses): Likewise.
7104 (register_active_defs, update_uses): Likewise.
7105 (forward_propagate_asm): Update for new df_ref linking.
7106 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7107 (df_null_ref_rec, df_null_mw_rec): Likewise.
7108 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7110 (df_scan_free_bb_info): Remove check for null artificial_defs.
7111 (df_install_ref_incremental): Adjust for new df_ref linking.
7112 Use a single-element insertion rather than a full sort.
7113 (df_ref_chain_delete_du_chain): Take the first element
7114 in a linked list as parameter, rather than a pointer to an array of
7116 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7117 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7118 (df_insn_info_delete): Remove check for null defs and call to
7119 df_scan_free_mws_vec.
7120 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7121 null rather than df_null_*_rec.
7122 (df_insn_rescan_debug_internal): Likewise, and update null
7123 checks in the same way. Remove check for null defs.
7124 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7125 Move a single element rather doing a full sort.
7126 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7128 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7129 Initialize df_ref and df_mw_hardreg lists to null rather than
7131 (df_ref_compare): Take df_refs as parameter, transferring the
7133 (df_ref_ptr_compare): ...this new function.
7134 (df_sort_and_compress_refs): Update accordingly.
7135 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7137 (df_mw_ptr_compare): ...this new function.
7138 (df_sort_and_compress_mws): Update accordingly.
7139 (df_install_refs, df_install_mws): Return a linked list rather than
7140 an array of pointers.
7141 (df_refs_add_to_chains): Assert that old lists are empty rather
7143 (df_insn_refs_verify): Don't handle null defs speciailly.
7144 * web.c (union_match_dups): Update for new df_ref linking.
7146 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7148 * df.h (df_ref_create, df_ref_remove): Delete.
7149 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7150 (df_ref_remove): Likewise.
7152 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7154 * df.h (df_single_def, df_single_use): New functions.
7155 * ira.c (find_moveable_pseudos): Use them.
7157 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7159 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7160 * df-problems.c (df_note_bb_compute): Use it.
7161 * regstat.c (regstat_bb_compute_ri): Likewise.
7163 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7165 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7166 * cse.c (cse_extended_basic_block): Use them.
7167 * dce.c (mark_artificial_use): Likewise.
7168 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7169 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7170 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7171 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7172 (df_simulate_initialize_backwards): Likewise.
7173 (df_simulate_finalize_backwards): Likewise.
7174 (df_simulate_initialize_forwards): Likewise.
7175 (df_md_simulate_artificial_defs_at_top): Likewise.
7176 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7177 * regrename.c (init_rename_info): Likewise.
7178 * regstat.c (regstat_bb_compute_ri): Likewise.
7179 (regstat_bb_compute_calls_crossed): Likewise.
7181 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7183 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7184 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7185 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7186 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7187 * combine.c (create_log_links): Likewise.
7188 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7189 (try_eliminate_compare): Likewise.
7190 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7191 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7192 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7193 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7194 (word_dce_process_block, dce_process_block): Likewise.
7195 * ddg.c (def_has_ccmode_p): Likewise.
7196 * df-core.c (df_bb_regno_first_def_find): Likewise.
7197 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7198 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7199 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7200 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7201 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7202 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7203 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7204 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7205 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7206 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7207 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7208 * fwprop.c (local_ref_killed_between_p): Likewise.
7209 (all_uses_available_at, free_load_extend): Likewise.
7210 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7211 * hw-doloop.c (scan_loop): Likewise.
7212 * ifcvt.c (dead_or_predicable): Likewise.
7213 * init-regs.c (initialize_uninitialized_regs): Likewise.
7214 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7215 (process_bb_node_lives): Likewise.
7216 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7217 (find_moveable_pseudos): Likewise.
7218 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7219 * recog.c (peep2_find_free_register): Likewise.
7220 * ree.c (get_defs): Likewise.
7221 * regstat.c (regstat_bb_compute_ri): Likewise.
7222 (regstat_bb_compute_calls_crossed): Likewise.
7223 * sched-deps.c (find_inc, find_mem): Likewise.
7224 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7225 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7226 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7227 (prepare_shrink_wrap): Likewise.
7228 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7229 * web.c (union_defs, pass_web::execute): Likewise.
7230 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7231 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7233 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7235 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7236 to inheritance pseudos.
7237 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7239 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7242 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7243 (BU_MISC_2): Rename to ...
7244 (BU_LDBL128_2): ... this.
7245 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7246 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7247 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7249 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7250 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7251 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7252 (unpacktf_1): Likewise.
7253 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7254 (__builtin_longdouble_dw1): Likewise.
7255 * doc/sourcebuild.texi (longdouble128): Document.
7257 2014-06-13 Jeff Law <law@redhat.com>
7259 PR rtl-optimization/61094
7260 PR rtl-optimization/61446
7261 * ree.c (combine_reaching_defs): Get the mode for the copy from
7262 the extension insn rather than the defining insn.
7264 2014-06-13 Dehao Chen <dehao@google.com>
7266 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7268 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7270 * doc/install.texi (--enable-linker-plugin-configure-flags)
7271 (--enable-linker-plugin-flags): Document new flags.
7273 2014-06-13 Martin Jambor <mjambor@suse.cz>
7276 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7277 cache_token if returning early.
7279 2014-06-13 Nick Clifton <nickc@redhat.com>
7281 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7282 requested alignment is active.
7283 (LABEL_ALIGN): Likewise.
7284 (LOOP_ALIGN): Likewise.
7286 2014-06-13 Richard Biener <rguenther@suse.de>
7288 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7289 Rewrite to propagate the VN result into all uses where
7290 possible and to remove stmts becoming dead because of that.
7291 (eliminate): Generalize stmt removal handling, remove in
7292 reverse dominator order to support proper debug stmt
7293 generation. Update stmts before removing stmts.
7294 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7296 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7298 PR tree-optimization/61375
7299 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7300 symbolic number cannot be represented in an uint64_t.
7301 (find_bswap_or_nop_1): Likewise.
7303 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7305 * symtab.c (symtab_node::reset_section): New method.
7306 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7308 * cgraph.h (reset_section): Declare.
7309 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7310 do not consider comdat locals.
7311 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7313 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7314 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7315 reset sections of symbols dragged out of the comdats.
7316 (function_and_variable_visibility): Reset sections of
7319 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7321 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7322 to use symtab and decl_binds_to_current_def_p
7323 * tree-vectorizer.c (increase_alignment): Increase alignment
7324 of alias target, too.
7326 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7329 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7330 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7331 if outer combined construct is distribute.
7332 (gimplify_omp_for): For OMP_DISTRIBUTE set
7333 gimplify_omp_ctxp->distribute.
7334 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7335 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7336 mapping into decl map.
7338 2014-06-12 Jason Merrill <jason@redhat.com>
7340 * common.opt (fabi-version): Change default to 0.
7342 2014-06-12 Jason Merrill <jason@redhat.com>
7344 * toplev.c (process_options): Reject -fabi-version=1.
7346 2014-06-12 Jeff Law <law@redhat.com>
7348 PR tree-optimization/61009
7349 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7350 value when we stop processing a block due to problematic PHIs.
7352 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7354 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7355 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7356 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7357 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7358 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7359 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7360 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7361 are not in the spec.
7363 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7366 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7367 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7370 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7372 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7374 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7377 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7378 loading from address spaces.
7380 2014-06-12 Martin Liska <mliska@suse.cz>
7383 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7384 statement is reachable.
7386 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7388 * symtab.c (section_hash): New hash.
7389 (symtab_unregister_node): Clear section before freeing.
7390 (hash_section_hash_entry): New haser.
7391 (eq_sections): New function.
7392 (symtab_node::set_section_for_node): New method.
7393 (set_section_1): Update.
7394 (symtab_node::set_section): Take string instead of tree as parameter.
7395 (symtab_resolve_alias): Update.
7396 * cgraph.h (section_hash_entry_d): New structure.
7397 (section_hash_entry): New typedef.
7398 (cgraph_node): Change comdat_group_ to x_comdat_group,
7399 change section_ to x_section and turn into section_hash_entry;
7400 update accestors; put set_section_for_node offline.
7401 * tree.c (decl_section_name): Turn into string.
7402 (set_decl_section_name): Change parameter to be string.
7403 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7404 * sdbout.c (sdbout_one_type): Update.
7405 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7406 * varasm.c (IN_NAMED_SECTION, get_named_section,
7407 resolve_unique_section, hot_function_section, get_named_text_section,
7408 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7409 make_decl_rtl, default_unique_section): Update.
7410 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7411 (c6x_elf_unique_section): Update.
7412 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7413 * config/pa/pa.c (pa_function_section): Update.
7414 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7415 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7416 * config/arc/arc.c (arc_in_small_data_p): Update.
7417 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7418 * config/mcore/mcore.c (mcore_unique_section): Update.
7419 * config/mips/mips.c (mips16_build_function_stub): Update.
7420 (mips16_build_call_stub): Update.
7421 (mips_function_rodata_section): Update.
7422 (mips_in_small_data_p): Update.
7423 * config/score/score.c (score_in_small_data_p): Update.
7424 * config/rx/rx.c (rx_in_small_data): Update.
7425 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7426 (rs6000_xcoff_asm_named_section): Update.
7427 (rs6000_xcoff_unique_section): Update.
7428 * config/frv/frv.c (frv_string_begins_with): Update.
7429 (frv_in_small_data_p): Update.
7430 * config/v850/v850.c (v850_encode_data_area): Update.
7431 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7432 (bfin_handle_l1_data_attribute): Update.
7433 (bfin_handle_l2_attribute): Update.
7434 * config/mep/mep.c (mep_unique_section): Update.
7435 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7437 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7438 (h8300_handle_tiny_data_attribute): Update.
7439 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7440 (m32r_in_small_data_p): Update.
7441 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7442 * config/i386/i386.c (ix86_in_large_data_p): Update.
7443 * config/i386/winnt.c (i386_pe_unique_section): Update.
7444 * config/darwin.c (darwin_function_section): Update.
7445 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7446 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7447 (new_emutls_decl): Update.
7448 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7449 input_varpool_node): Update.
7450 (ead_string_cst): Turn to ...
7451 (read_string): ... this one.
7452 * dwarf2out.c (secname_for_decl): Update.
7453 * asan.c (asan_protect_global): Update.
7455 2014-06-11 DJ Delorie <dj@redhat.com>
7457 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7459 * config/rx/rx.c (rx_option_override): Likewise.
7460 (rx_align_for_label): Likewise.
7462 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7464 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7466 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7469 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7471 * common.md: New file.
7472 * doc/md.texi: Update description of generic, machine-independent
7474 * config/s390/constraints.md (e): Delete.
7475 * Makefile.in (md_file): Include common.md.
7476 * config/m32c/t-m32c (md_file): Likewise.
7477 * genpreds.c (general_mem): New array.
7478 (generic_constraint_letters): Remove constraints now defined by
7480 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7481 Allow the first character to be '<' or '>' as well.
7482 * genoutput.c (general_mem): New array.
7483 (indep_constraints): Remove constraints now defined by common.md.
7484 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7485 Remove special handling of 'm'.
7486 * ira-costs.c (record_reg_classes): Remove special handling of
7487 constraints now defined by common.md.
7488 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7489 * ira-lives.c (single_reg_class): Likewise.
7490 (ira_implicitly_set_insn_hard_regs): Likewise.
7491 * lra-constraints.c (reg_class_from_constraints): Likewise.
7492 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7493 * postreload.c (reload_cse_simplify_operands): Likewise.
7494 * reload.c (push_secondary_reload, scratch_reload_class)
7495 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7496 * reload1.c (maybe_fix_stack_asms): Likewise.
7497 * targhooks.c (default_secondary_reload): Likewise.
7498 * stmt.c (parse_output_constraint): Likewise.
7499 * recog.c (preprocess_constraints): Likewise.
7500 (constrain_operands, peep2_find_free_register): Likewise.
7501 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7502 must be handled specially.
7504 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7506 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7507 * genpreds.c (have_const_dbl_constraints): Delete.
7508 (add_constraint): Don't set it.
7509 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7510 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7511 constraints using the lookup_constraint logic.
7512 * ira-lives.c (single_reg_class): Likewise.
7513 * ira.c (ira_setup_alts): Likewise.
7514 * lra-constraints.c (process_alt_operands): Likewise.
7515 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7516 * reload.c (find_reloads): Likewise.
7518 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7520 * genpreds.c (const_int_start, const_int_end): New variables.
7521 (choose_enum_order): Output CONST_INT constraints before memory
7523 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7525 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7526 * ira.c (ira_setup_alts): Likewise.
7527 * lra-constraints.c (process_alt_operands): Likewise.
7528 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7529 * reload.c (find_reloads): Likewise.
7531 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7533 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7534 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7535 * recog.c (preprocess_constraints): Update accordingly.
7537 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7539 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7540 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7541 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7542 * genpreds.c (print_type_tree): New function.
7543 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7544 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7545 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7546 Write out enum constraint_type and get_constraint_type.
7547 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7548 constraint_num rather than a constraint string.
7549 (satisfies_address_constraint_p): Likewise.
7550 (reg_class_from_constraints): Avoid old constraint macros.
7551 (process_alt_operands, process_address_1): Likewise.
7552 (curr_insn_transform): Likewise.
7553 * ira-costs.c (record_reg_classes): Likewise.
7554 (record_operand_costs): Likewise.
7555 * ira-lives.c (single_reg_class): Likewise.
7556 (ira_implicitly_set_insn_hard_regs): Likewise.
7557 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7558 * postreload.c (reload_cse_simplify_operands): Likewise.
7559 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7560 (constrain_operands, peep2_find_free_register): Likewise.
7561 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7562 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7563 * reload1.c (maybe_fix_stack_asms): Likewise.
7564 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7565 * targhooks.c (default_secondary_reload): Likewise.
7566 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7567 to EXTRA_CONSTRAINT_STR.
7568 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7570 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7572 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7573 (write_constraint_satisfied_p_array): ...this new function.
7574 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7576 (write_insn_preds_c): Update accordingly.
7578 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7580 * genpreds.c (write_lookup_constraint): Rename to...
7581 (write_lookup_constraint_1): ...this.
7582 (write_lookup_constraint_array): New function.
7583 (write_tm_preds_h): Define lookup_constraint as an inline function
7584 that uses write_lookup_constraint_array where possible.
7585 (write_insn_preds_c): Update for the changes above.
7587 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7589 * doc/md.texi (regclass_for_constraint): Rename to...
7590 (reg_class_for_constraint): ...this.
7591 * genpreds.c (num_constraints, enum_order, register_start)
7592 (register_end, satisfied_start, memory_start, memory_end)
7593 (address_start, address_end): New variables.
7594 (add_constraint): Count the number of constraints.
7595 (choose_enum_order): New function.
7596 (write_enum_constraint_num): Iterate over enum_order.
7597 (write_regclass_for_constraint): Rename to...
7598 (write_reg_class_for_constraint_1): ...this and update output
7600 (write_constraint_satisfied_p): Rename to...
7601 (write_constraint_satisfied_p_1): ...this and update output
7602 accordingly. Do nothing if all extra constraints are register
7604 (write_insn_extra_memory_constraint): Delete.
7605 (write_insn_extra_address_constraint): Delete.
7606 (write_range_function): New function.
7607 (write_tm_preds_h): Define constraint_satisfied_p and
7608 reg_class_for_constraint as inline functions that do a range check
7609 before calling the out-of-line function. Use write_range_function
7610 to implement insn_extra_{register,memory,address}_constraint,
7611 the first of which is new.
7612 (write_insn_preds_c): Update after above changes to write_* functions.
7613 (main): Call choose_enum_order.
7615 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7617 PR tree-optimization/61306
7618 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7619 expression instead of its size.
7620 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7621 false to prevent optimization when the result is unpredictable due to
7622 arithmetic right shift of signed type with highest byte is set.
7623 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7624 (init_symbolic_number): Likewise.
7625 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7626 when the result is unpredictable due to sign extension.
7628 2014-06-11 Terry Guo <terry.guo@arm.com>
7630 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7631 (*thumb1_addsi3): Ditto.
7632 (*thumb_subdi3): Ditto.
7633 (thumb1_subsi3_insn): Ditto.
7634 (*thumb_mulsi3): Ditto.
7635 (*thumb_mulsi3_v6): Ditto.
7636 (*thumb1_andsi3_insn): Ditto.
7637 (thumb1_bicsi3): Ditto.
7638 (*thumb1_iorsi3_insn): Ditto.
7639 (*thumb1_xorsi3_insn): Ditto.
7640 (*thumb1_ashlsi3): Ditto.
7641 (*thumb1_ashrsi3): Ditto.
7642 (*thumb1_lshrsi3): Ditto.
7643 (*thumb1_rotrsi3): Ditto.
7644 (*thumb1_negdi2): Ditto.
7645 (*thumb1_negsi2): Ditto.
7646 (*thumb1_abssi2): Ditto.
7647 (*thumb1_neg_abssi2): Ditto.
7648 (*thumb1_one_cmplsi2): Ditto.
7649 (*thumb1_zero_extendhisi2): Ditto.
7650 (*thumb1_zero_extendqisi2): Ditto.
7651 (*thumb1_zero_extendqisi2_v6): Ditto.
7652 (thumb1_extendhisi2): Ditto.
7653 (thumb1_extendqisi2): Ditto.
7654 (*thumb1_movdi_insn): Ditto.
7655 (*thumb1_movsi_insn): Ditto.
7656 (*thumb1_movhi_insn): Ditto.
7657 (thumb_movhi_clobber): Ditto.
7658 (*thumb1_movqi_insn): Ditto.
7659 (*thumb1_movhf): Ditto.
7660 (*thumb1_movsf_insn): Ditto.
7661 (*thumb_movdf_insn): Ditto.
7664 (cbranchqi4): Ditto.
7665 (cbranchsi4_insn): Ditto.
7666 (cbranchsi4_scratch): Ditto.
7667 (*negated_cbranchsi4): Ditto.
7668 (*tbit_cbranch): Ditto.
7669 (*tlobits_cbranch): Ditto.
7670 (*tstsi3_cbranch): Ditto.
7671 (*cbranchne_decr1): Ditto.
7672 (*addsi3_cbranch): Ditto.
7673 (*addsi3_cbranch_scratch): Ditto.
7674 (*thumb_cmpdi_zero): Ditto.
7675 (cstoresi_eq0_thumb1): Ditto.
7676 (cstoresi_ne0_thumb1): Ditto.
7677 (*cstoresi_eq0_thumb1_insn): Ditto.
7678 (*cstoresi_ne0_thumb1_insn): Ditto.
7679 (cstoresi_nltu_thumb1): Ditto.
7680 (cstoresi_ltu_thumb1): Ditto.
7681 (thumb1_addsi3_addgeu): Ditto.
7682 (*thumb_jump): Ditto.
7683 (*call_reg_thumb1_v5): Ditto.
7684 (*call_reg_thumb1): Ditto.
7685 (*call_value_reg_thumb1_v5): Ditto.
7686 (*call_value_reg_thumb1): Ditto.
7687 (*call_insn): Ditto.
7688 (*call_value_insn): Ditto.
7689 (thumb1_casesi_internal_pic): Ditto.
7690 (thumb1_casesi_dispatch): Ditto.
7691 (*thumb1_indirect_jump): Ditto.
7692 (prologue_thumb1_interwork): Ditto.
7693 (*epilogue_insns): Ditto.
7694 (consttable_1): Ditto.
7695 (consttable_2): Ditto.
7697 (*thumb1_tablejump): Ditto.
7698 (thumb_eh_return): Ditto.
7699 (define_peephole2): Two of them are thumb1 only and got moved into
7701 (define_split): Six of them are thumb1 only and got moved into new
7703 * config/arm/thumb1.md: New file comprised of above thumb1 only
7706 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7708 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7709 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7711 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7712 (aarch64_crc_builtin_datum): New struct.
7713 (aarch64_crc_builtin_data): New.
7714 (aarch64_init_crc32_builtins): New function.
7715 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7716 (aarch64_crc32_expand_builtin): New.
7717 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7718 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7719 __ARM_FEATURE_CRC32 when appropriate.
7720 (TARGET_CRC32): Define.
7721 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7722 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7723 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7724 (aarch64_<crc_variant>): New pattern.
7725 * config/aarch64/arm_acle.h: New file.
7726 * config/aarch64/iterators.md (CRC): New int iterator.
7727 (crc_variant, crc_mode): New int attributes.
7728 * doc/aarch64-acle-intrinsics.texi: New file.
7729 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7730 Include aarch64-acle-intrinsics.texi.
7732 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7734 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7735 check for stores group of length 3.
7736 (vect_permute_store_chain): New permutations for stores group of
7738 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7739 of vec_perm_shuffle for the new permutations.
7741 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7743 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7744 table rewriting temporarily on targets not supporting ONE_ONLY.
7746 2014-06-11 Richard Biener <rguenther@suse.de>
7750 2014-06-04 Richard Biener <rguenther@suse.de>
7752 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7753 TREE_PUBLIC and DECL_EXTERNAL decls.
7755 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7757 * varasm.c (set_implicit_section): New function.
7758 (resolve_unique_section): Use it to set implicit section
7760 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7761 (default_function_section): Likewise.
7762 (decl_binds_to_current_def_p): Constify argument.
7763 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7764 * asan.c (asan_protect_global): Use
7765 symtab_get_node (decl)->implicit_section.
7766 * symtab.c (dump_symtab_base): Dump implicit sections.
7767 (verify_symtab_base): Verify sanity of sectoins and comdats.
7768 (symtab_resolve_alias): Alias share the section of its target.
7769 (set_section_1): New function.
7770 (symtab_node::set_section): Move here, recurse to aliases.
7771 (verify_symtab): Check for duplicated symtab lists.
7772 * tree-core.h (implicit_section_name_p): Remove.
7773 * tree-vect-data-refs.c: Include varasm.h.
7774 (vect_can_force_dr_alignment_p): Fix conditional on when
7775 decl bints to current definition; use
7776 symtab_get_node (decl)->implicit_section.
7777 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7778 * cgraph.h (struct symtab_node): Add implicit_section.
7779 (set_section): Rename to ...
7780 (set_section_for_node): ... this one.
7781 (set_section): Declare.
7782 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7783 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7784 input_overwrite_node, input_varpool_node): Stream implicit_section.
7785 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7786 removal; it will fail in LTO.
7788 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7790 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7791 Change second alternative type to f_mcr.
7792 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7793 and 12th alternatives' types to f_mcr and f_mrc.
7794 (*movdi_aarch64): Same for 12th and 13th alternatives.
7795 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7796 (aarch64_movtilow_tilow): Change type to fmov.
7798 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7800 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7801 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7803 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7805 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7807 (aarch64_sqrdmulh_lane<mode>): Likewise.
7808 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7809 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7810 (aarch64_sqdmulh_laneq<mode>): New expander.
7811 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7812 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7813 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7814 (aarch64_sqdmulh_lane<mode>): New expander.
7815 (aarch64_sqrdmulh_lane<mode>): Likewise.
7816 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7817 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7818 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7819 (aarch64_sqdmlal_laneq<mode>): Likewise.
7820 (aarch64_sqdmlsl_lane<mode>): Likewise.
7821 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7822 (aarch64_sqdmlal2_lane<mode>): Likewise.
7823 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7824 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7825 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7826 (aarch64_sqdmull_lane<mode>): Likewise.
7827 (aarch64_sqdmull_laneq<mode>): Likewise.
7828 (aarch64_sqdmull2_lane<mode>): Likewise.
7829 (aarch64_sqdmull2_laneq<mode>): Likewise.
7831 2014-06-10 Richard Biener <rguenther@suse.de>
7833 PR tree-optimization/61438
7834 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7835 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7836 insertion of IVs if running PRE.
7837 (eliminate): Adjust.
7838 (pass_pre::execute): Likewise.
7839 (pass_fre::execute): Likewise.
7841 2014-06-10 Richard Biener <rguenther@suse.de>
7844 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7845 Do not use the main variant for the type comparison.
7846 (ncr_compar): Likewise.
7847 (nonoverlapping_component_refs_p): Likewise.
7849 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7851 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7852 REG_CFA_RESTORE mode.
7854 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7856 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7857 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7858 expand_vec_perm_pblendv.
7860 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7862 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7864 Simplify description of __crc32d and __crc32cd intrinsics.
7865 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7868 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7871 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7872 * config.in: Regenerate.
7873 * configure: Likewise.
7875 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7877 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7879 (intersect_static_var_sets): Remove.
7880 (propagate): Do not prune local statics.
7882 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7885 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7886 Set lastprivate_firstprivate even if omp_private_outer_ref
7887 langhook returns true.
7888 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7889 langhook, call unshare_expr on new_var and call
7890 build_outer_var_ref to get the last argument.
7892 2014-06-10 Marek Polacek <polacek@redhat.com>
7895 * doc/extend.texi: Add cindex for transparent_union.
7897 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7899 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7900 init_symbolic_number ().
7902 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7905 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7906 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7907 (verify_rtl_sharing): Likewise.
7909 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7912 * tree.c (build_qualified_type): Use a canonical type for
7915 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7917 * config/arm/arm-modes.def: Remove XFmode.
7919 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7922 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7923 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7924 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7925 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7926 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7927 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7928 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7929 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7930 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7932 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7934 * tree-core.h (tree_decl_with_vis): Remove section_name.
7936 2014-06-09 Kito Cheng <kito@0xlab.org>
7938 * ira.c (ira): Don't call init_caller_save if LRA enabled
7939 since LRA use its own infrastructure to handle that.
7941 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7943 * symtab.c (dump_symtab_base): Update dumping.
7944 (symtab_make_decl_local): Clear only DECL_COMDAT.
7945 * tree-vect-data-refs.c (Check that variable is static before
7946 tampering with sections.
7947 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7948 (cgraph_create_virtual_clone): Likewise.
7949 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7950 (decl_section_name, set_decl_section_name): New accessors.
7951 (find_decls_types_r): Do not walk section name
7952 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7953 (decl_comdat_group, decl_comdat_group_id): Constify.
7954 (decl_section_name, set_decl_section_name): Update.
7955 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7956 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7957 (cgraph_make_node_local_1): Clear section and comdat group.
7958 * cgraph.h (set_comdat_group): Sanity check.
7959 (get_section, set_section): New.
7960 * ipa-comdats.c (ipa_comdats): Use get_section.
7961 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7962 * lto-streamer-out.c: Do not follow section names.
7963 * c-family/c-common.c (handle_section_attribute): Update.
7964 * lto-cgraph.c (lto_output_node): Output section.
7965 (lto_output_varpool_node): Likewise.
7966 (read_comdat_group): Rename to ...
7967 (read_identifier): ... this one.
7968 (read_string_cst): New function.
7969 (input_node, input_varpool_node): Input section names.
7970 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7971 (new_emutls_decl): Update.
7972 (secname_for_decl): Check section names only of static vars.
7973 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7974 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7975 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7976 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7977 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7978 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7979 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7980 * config/v850/v850.c (v850_insert_attributes): Likewise.
7981 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7983 (h8300_handle_tiny_data_attribute): Likewise.
7984 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7985 (bfin_handle_l2_attribute): Likewise.
7987 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7989 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
7990 remove static initializer.
7992 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7994 * varasm.c (use_blocks_for_decl_p): Check symbol table
7995 instead of alias attribute.
7996 (place_block_symbol): Recurse on aliases.
7998 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8000 * ipa-visibility.c: Include varasm.h
8001 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8003 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8005 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8008 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8010 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8011 from test_insn into GGC space escape via SET_SRC.
8013 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8015 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8016 call statement, if any.
8017 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8018 statements, if any. Tidy up.
8020 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8023 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8024 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8025 handles swapping the two 64-bit double words on little endian
8026 systems. Include V1TImode and optionally TImode in VSX_LE so that
8027 these types are properly swapped. Change all of the insns and
8028 splits that do the 64-bit swaps to use VSX_LE.
8029 (vsx_le_perm_load_<mode>): Likewise.
8030 (vsx_le_perm_store_<mode>): Likewise.
8031 (splitters for little endian memory operations): Likewise.
8032 (vsx_xxpermdi2_le_<mode>): Likewise.
8033 (vsx_lxvd2x2_le_<mode>): Likewise.
8034 (vsx_stxvd2x2_le_<mode>): Likewise.
8036 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8039 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8040 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8041 and corresponding splitters. Zero extend general register
8042 or memory input operand to XMM temporary. Enable for
8043 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8044 (floatunssi<mode>2): Update expander predicate.
8046 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8048 PR rtl-optimization/61325
8049 * lra-constraints.c (process_address_1): Check scale equal to one
8050 to prevent transformation: base + scale * index => base + new_reg.
8052 2014-06-06 Richard Biener <rguenther@suse.de>
8054 PR tree-optimization/59299
8055 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8057 (nearest_common_dominator_of_uses): Likewise.
8058 (statement_sink_location): Adjust. Support sinking loads.
8060 2014-06-06 Martin Jambor <mjambor@suse.cz>
8062 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8063 (build_agg_jump_func_from_list): Likewise.
8064 (determine_known_aggregate_parts): Renamed to
8065 determine_locally_known_aggregate_parts. Moved some functionality
8066 to the two functions above, removed bound checks.
8068 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8070 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8071 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8072 (aarch64_progress_pointer): Likewise.
8073 (aarch64_copy_one_part_and_move_pointers): Likewise.
8074 (aarch64_expand_movmen): Likewise.
8075 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8076 * config/aarch64/aarch64.md (movmem<mode>): New.
8078 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8080 * targhooks.c (default_add_stmt_cost): Call target specific
8081 hook instead of default one.
8083 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8085 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8086 endianness instead of host endianness.
8087 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8090 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8093 * function.c (instantiate_decls): Process the saved static chain.
8094 (expand_function_start): If not optimizing, save the static chain
8096 * tree-nested.c (convert_all_function_calls): Always create the static
8097 chain for nested functions if not optimizing.
8099 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8101 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8103 2014-06-06 Richard Biener <rguenther@suse.de>
8105 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8106 (construct_init_block): Likewise.
8107 (construct_exit_block): Likewise.
8108 (pass_expand::execute): Likewise.
8109 * graphite.c (graphite_transforms): Replace check for current_loops
8110 with a check for > 1 loops.
8111 (pass_graphite_transforms::execute): Adjust.
8112 * ipa-split.c (split_function): Remove check for current_loops.
8113 * omp-low.c (expand_parallel_call): Likewise.
8114 (expand_omp_for_init_counts): Likewise.
8115 (extract_omp_for_update_vars): Likewise.
8116 (expand_omp_for_generic): Likewise.
8117 (expand_omp_sections): Likewise.
8118 (expand_omp_target): Likewise.
8119 * tracer.c (tail_duplicate): Likewise.
8120 (pass_tracer::execute): Likewise.
8121 * trans-mem.c (expand_transaction): Likewise.
8122 * tree-complex.c (expand_complex_div_wide): Likewise.
8123 * tree-eh.c (lower_resx): Likewise.
8124 (cleanup_empty_eh_merge_phis): Likewise.
8125 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8126 current_loops with a check for > 1 loops.
8127 (pass_predcom::execute): Adjust.
8128 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8129 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8130 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8131 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8132 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8133 * tree-switch-conversion.c (process_switch): Likewise.
8134 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8135 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8136 (execute_vrp): Likewise.
8137 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8139 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8141 * rtl.h (insn_location): Declare.
8142 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8143 with UNKNOWN_LOCATION.
8144 * emit-rtl.c (insn_location): New function.
8145 * final.c (notice_source_line): Check that the instruction has a
8146 location before retrieving it and use insn_location.
8147 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8148 * print-rtl.c (print_rtx): Likewise.
8150 2014-06-06 Richard Biener <rguenther@suse.de>
8152 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8154 2014-06-06 Christian Bruel <christian.bruel@st.com>
8156 PR tree-optimization/43934
8157 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8160 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8162 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8163 return NO_REGS for extra address and memory constraints. Handle
8164 operands that match (or are equivalent to something that matches)
8165 extra constant constraints. Ignore other non-register operands.
8167 2014-06-06 Alan Modra <amodra@gmail.com>
8170 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8171 * doc/tm.texi: Regenerate.
8172 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8173 Use throughout in place of REG_PARM_STACK_SPACE.
8174 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8175 "incoming" param. Pass to rs6000_function_parms_need_stack.
8176 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8177 prototype_p when incoming. Use function decl when incoming
8178 to handle K&R style functions.
8179 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8180 (INCOMING_REG_PARM_STACK_SPACE): Define.
8182 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8185 * cfgexpand.c (expand_debug_expr): Use address space of nested
8186 TREE_TYPE for ADDR_EXPR and MEM_REF.
8188 2014-06-05 Jeff Law <law@redhat.com>
8190 PR tree-optimization/61289
8191 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8192 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8193 looking for those which match LHS. All callers changed.
8194 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8195 parameters and code which manipulated them. All callers changed.
8196 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8197 and DST_MAP parameters. Simplify invalidation code by just calling
8198 invalidate_equivalences. All callers changed.
8199 (thread_across_edge): Simplify now that we don't need to maintain
8200 the map of equivalences to invalidate.
8202 2014-06-05 Kai Tietz <ktietz@redhat.com>
8203 Richard Henderson <rth@redhat.com>
8206 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8207 checking for !TARGET_X32.
8208 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8209 (sibcall_intern): New define_insn, plus required peepholes.
8210 (sibcall_pop_intern): Likewise.
8211 (sibcall_value_intern): Likewise.
8212 (sibcall_value_pop_intern): Likewise.
8214 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8216 * tree-inline.c (tree_function_versioning): Check DF info existence
8217 before accessing it.
8219 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8221 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8223 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8224 aarch64_frame hard_fp_offset and frame_size.
8225 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8226 frame_size; remove original_frame_size.
8227 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8228 (aarch64_initial_elimination_offset): Remove frame_size and
8229 offset. Use aarch64_frame frame_size.
8231 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8232 Jiong Wang <jiong.wang@arm.com>
8233 Renlin <renlin.li@arm.com>
8235 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8236 initialization of R30 offset. Update offset. Iterate core
8237 regisers upto X30. Remove X29, X30 specific code.
8239 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8240 Jiong Wang <jiong.wang@arm.com>
8242 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8243 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8244 (aarch64_register_saved_on_entry): Adjust test.
8246 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8248 * config/aarch64/aarch64.h (machine_function): Move
8249 saved_varargs_size from here...
8250 (aarch64_frame): ... to here.
8252 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8253 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8254 (aarch64_initial_elimination_offset)
8255 (aarch64_setup_incoming_varargs): Adjust location of
8258 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8260 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8263 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8264 Prachi Godbole <Prachi.Godbole@imgtec.com>
8266 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8267 mips32r5 entry to use PROCESSOR_P5600.
8268 * config/mips/mips-tables.opt: Regenerate.
8269 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8270 * config/mips/mips.c (mips_fmadd_bypass): New function.
8271 (mips_rtx_cost_data): Add costs for p5600.
8272 (mips_issue_rate): Add support for p5600.
8273 (mips_multipass_dfa_lookahead): Likewise.
8274 * config/mips/mips.h (TUNE_P5600): New define.
8275 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8276 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8277 * config/mips/mips.md: Include p5600.md.
8278 (processor): Add p5600.
8279 * config/mips/p5600.md: New file.
8281 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8283 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8284 * config/i386/predicates.md (palignr_operand): New.
8285 Indicates if permutation is suitable for palignr instruction.
8287 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8289 PR tree-optimization/61319
8290 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8291 stmt belongs to loop.
8293 2014-06-05 Richard Biener <rguenther@suse.de>
8295 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8296 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8297 (lookup_tmp_var): Adjust.
8298 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8300 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8302 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8304 2014-06-05 Marek Polacek <polacek@redhat.com>
8307 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8309 2014-06-04 Tom de Vries <tom@codesourcery.com>
8311 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8314 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8316 PR tree-optimization/61385
8317 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8319 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8321 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8322 changed to use fatal_error.
8323 (main): Ensure lto_wrapper_cleanup is run atexit.
8325 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8327 * lra-constraints.c (valid_address_p): Move earlier in file.
8328 (address_eliminator): New structure.
8329 (satisfies_memory_constraint_p): New function.
8330 (satisfies_address_constraint_p): Likewise.
8331 (process_alt_operands, process_address, curr_insn_transform): Use them.
8333 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8335 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8337 (target_lra_int, default_target_lra_int, this_target_lra_int)
8338 (op_alt_data): Delete.
8339 * lra.h (lra_init): Delete.
8340 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8341 (init_insn_code_data_once): Remove op_alt_data handling.
8342 (finish_insn_code_data_once): Likewise.
8343 (init_op_alt_data): Delete.
8344 (get_static_insn_data): Initialize operand_alternative to null.
8345 (free_insn_recog_data): Cast operand_alternative before freeing it.
8346 (setup_operand_alternative): Take the operand_alternative as
8347 parameter and assume it isn't already cached in the static
8349 (lra_set_insn_recog_data): Update accordingly.
8351 * ira.c (ira_init): Don't call lra_init.
8352 * target-globals.h (this_target_lra_int): Declare.
8353 (target_globals): Remove lra_int.
8354 (restore_target_globals): Update accordingly.
8355 * target-globals.c: Don't include lra-int.h.
8356 (default_target_globals, save_target_globals): Remove lra_int.
8358 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8360 * recog.h (operand_alternative): Convert reg_class, reject,
8361 matched and matches into bitfields.
8362 (preprocess_constraints): New overload.
8363 (preprocess_insn_constraints): New function.
8364 (preprocess_constraints): Take the insn as parameter.
8365 (recog_op_alt): Change into a pointer.
8366 (target_recog): Add x_op_alt.
8367 * recog.c (asm_op_alt): New variable.
8368 (recog_op_alt): Change into a pointer.
8369 (preprocess_constraints): New overload, replacing the old function
8370 definition with one that doesn't use global state.
8371 (preprocess_insn_constraints): New function.
8372 (preprocess_constraints): Use them. Take the insn as parameter.
8373 Use asm_op_alt for asms.
8374 (recog_init): Free existing x_op_alt entries.
8375 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8377 (make_early_clobber_and_input_conflicts): Likewise.
8378 (process_bb_node_lives): Pass the insn to process_constraints.
8379 * reg-stack.c (check_asm_stack_operands): Likewise.
8380 (subst_asm_stack_regs): Likewise.
8381 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8382 * regrename.c (build_def_use): Likewise.
8383 * sched-deps.c (sched_analyze_insn): Likewise.
8384 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8385 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8386 (note_invalid_constants): Likewise.
8387 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8388 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8391 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8393 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8394 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8396 (make_early_clobber_and_input_conflicts): Likewise.
8397 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8399 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8401 * recog.h (alternative_class): New function.
8402 (which_op_alt): Return a const recog_op_alt.
8403 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8404 (subst_asm_stack_regs): Likewise.
8405 * config/arm/arm.c (note_invalid_constants): Likewise.
8406 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8407 the operand_alternative; use alternative class instead.
8408 * sel-sched.c (get_reg_class): Likewise.
8409 * regrename.c (build_def_use): Likewise.
8410 (hide_operands, restore_operands, record_out_operands): Update type
8413 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8415 * recog.h (recog_op_alt): Convert to a flat array.
8416 (which_op_alt): New function.
8417 * recog.c (recog_op_alt): Convert to a flat array.
8418 (preprocess_constraints): Update accordingly, grouping all
8419 operands of the same alternative together, rather than the
8421 * ira-lives.c (check_and_make_def_conflict): Likewise.
8422 (make_early_clobber_and_input_conflicts): Likewise.
8423 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8424 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8425 (subst_asm_stack_regs): Likewise.
8426 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8427 * regrename.c (hide_operands, record_out_operands): Likewise.
8428 (build_def_use): Likewise.
8429 * sel-sched.c (get_reg_class): Likewise.
8430 * config/arm/arm.c (note_invalid_constants): Likewise.
8432 2014-06-04 Jason Merrill <jason@redhat.com>
8436 * gimplify.c (gimplify_arg): Non-static.
8437 * gimplify.h: Declare it.
8439 2014-06-04 Richard Biener <rguenther@suse.de>
8441 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8442 TREE_PUBLIC and DECL_EXTERNAL decls.
8444 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8446 * regcprop.c (copyprop_hardreg_forward_1): Account for
8447 HARD_REGNO_CALL_PART_CLOBBERED.
8449 2014-06-04 Richard Biener <rguenther@suse.de>
8451 * configure.ac: Check whether the underlying type of int64_t
8452 is long or long long.
8453 * configure: Regenerate.
8454 * config.in: Likewise.
8455 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8456 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8458 2014-06-04 Richard Biener <rguenther@suse.de>
8460 PR tree-optimization/60098
8461 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8463 (dse_optimize_stmt): Simplify, now that we found a kill
8466 2014-06-04 Richard Biener <rguenther@suse.de>
8468 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8469 of accesses with non-invariant address.
8471 2014-06-04 Martin Liska <mliska@suse.cz>
8473 * cgraph.h (cgraph_make_wrapper): New function introduced.
8474 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8475 * ipa-inline.h (inline_analyze_function): The function is global.
8476 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8478 2014-06-04 Martin Liska <mliska@suse.cz>
8480 * tree.h (private_lookup_attribute_starting): New function.
8481 (lookup_attribute_starting): Likewise.
8482 * tree.c (private_lookup_attribute_starting): Likewise.
8484 2014-06-04 Martin Liska <mliska@suse.cz>
8486 * cgraph.h (expand_thunk): New argument added.
8487 (address_taken_from_non_vtable_p): New global function.
8488 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8489 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8490 * cgraphunit.c (analyze_function): Likewise.
8491 (assemble_thunks_and_aliases): Argument added to call.
8492 (expand_thunk): New argument forces to produce GIMPLE thunk.
8494 2014-06-04 Martin Liska <mliska@suse.cz>
8496 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8497 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8498 * profile.c (branch_prob): Likewise.
8500 2014-06-04 Martin Jambor <mjambor@suse.cz>
8503 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8504 handler for switch on an ipa_ref_use enum.
8505 * ipa-reference.c (analyze_function): Likewise.
8507 2014-06-04 Kai Tietz <ktietz@redhat.com>
8509 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8510 from old call-instruction.
8512 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8514 * config/aarch64/aarch64.c (aarch64_classify_address)
8515 (aarch64_legitimize_reload_address): Support full addressing modes
8517 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8518 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8520 2014-06-03 Andrew Pinski <apinski@cavium.com>
8522 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8525 2014-06-03 Andrew Pinski <apinski@cavium.com>
8527 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8528 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8530 2014-06-03 Kai Tietz <ktietz@redhat.com>
8532 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8535 2014-06-03 Dehao Chen <dehao@google.com>
8537 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8540 2014-06-03 Marek Polacek <polacek@redhat.com>
8543 * doc/invoke.texi: Document -Wswitch-bool.
8544 * function.c (stack_protect_epilogue): Cast controlling expression of
8546 * gengtype.c (walk_type): Generate switch expression with its
8547 controlling expression cast to int.
8549 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8551 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8553 * config/avr/avr-tables.opt: Regenerate.
8554 * config/avr/t-multilib: Regenerate.
8555 * doc/avr-mmcu.texi: Regenerate.
8557 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8558 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8560 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8561 (ata6617c, ata664251): Add new avr35 devices.
8562 (ata6612c): Add new avr4 device.
8563 (ata6613c, ata6614q): Add new avr5 devices.
8564 * config/avr/avr-tables.opt: Regenerate.
8565 * config/avr/t-multilib: Regenerate.
8566 * doc/avr-mmcu.texi: Regenerate.
8568 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8570 * gcc/config/aarch64/aarch64-builtins.c
8571 (aarch64_types_binop_ssu_qualifiers): New static data.
8572 (TYPES_BINOP_SSU): Define.
8573 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8574 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8575 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8576 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8577 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8578 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8579 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8580 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8581 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8582 suffix to builtin function name, remove cast.
8583 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8584 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8585 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8587 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8589 * gcc/config/aarch64/aarch64-builtins.c
8590 (aarch64_types_binop_uus_qualifiers,
8591 aarch64_types_shift_to_unsigned_qualifiers,
8592 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8593 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8594 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8595 sqshlu_n, uqshl_n): Update qualifiers.
8596 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8597 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8598 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8599 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8600 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8601 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8602 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8603 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8604 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8605 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8606 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8607 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8608 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8609 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8610 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8611 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8612 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8613 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8614 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8615 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8616 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8617 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8618 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8619 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8620 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8621 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8622 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8624 2014-06-03 Teresa Johnson <tejohnson@google.com>
8626 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8628 2014-06-02 Jason Merrill <jason@redhat.com>
8631 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8633 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8635 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8638 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8640 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8642 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8643 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8644 * config/aarch64/iterators.md (REVERSE): New iterator.
8645 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8646 (rev_op): New int_attribute.
8647 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8648 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8649 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8650 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8651 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8652 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8653 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8654 Replace temporary __asm__ with __builtin_shuffle.
8656 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8658 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8660 * config/mips/mips-tables.opt: Regenerate.
8661 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8662 to use mips_isa_rev rather than ISA_MIPS32R2.
8663 * config/mips/mips.h (ISA_MIPS32R3): New define.
8664 (ISA_MIPS32R5): New define.
8665 (ISA_MIPS64R3): New define.
8666 (ISA_MIPS64R5): New define.
8667 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8668 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8669 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8671 (MIPS_ISA_SYNCI_SPEC): Likewise.
8672 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8673 (LINK_SPEC): Added mips32r3 and mips32r5.
8674 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8675 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8676 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8677 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8678 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8679 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8680 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8682 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8684 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8686 * config/mips/mips.opt (mxpa): New option.
8687 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8690 2014-06-03 Martin Jambor <mjambor@suse.cz>
8693 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8696 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8698 PR tree-optimization/61328
8699 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8700 initialization from find_bswap_or_nop_1.
8701 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8702 in source_expr2 before using the size value the function sets. Also
8703 make use of init_symbolic_number () in both the old place and
8704 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8705 doing recursion in the GIMPLE_BINARY_RHS case.
8707 2014-06-03 Richard Biener <rguenther@suse.de>
8709 PR tree-optimization/61383
8710 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8713 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8715 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8716 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8717 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8718 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8720 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8721 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8722 * system.h: ...here and make it unconditional.
8723 * target.def (conditional_register_usage): Mention
8724 define_register_constraint instead of old-style constraint macros.
8725 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8726 * doc/tm.texi: Regenerate.
8727 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8728 protected by !USE_MD_CONSTRAINTS.
8729 * config/frv/frv.md: Remove quote from old version of documentation.
8730 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8731 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8732 CONST_DOUBLE_OK_FOR_LETTER.
8733 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8735 2014-06-02 Andrew Pinski <apinski@cavium.com>
8737 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8738 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8739 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8740 file whose name depends on -mabi= and -mbig-endian.
8741 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8742 Handle LP64 better and handle ilp32 too.
8743 (MULTILIB_OPTIONS): Delete.
8744 (MULTILIB_DIRNAMES): Delete.
8746 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8748 * expr.h: Remove prototypes of functions defined in builtins.c.
8749 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8750 Remove prototypes of functions defined in builtins.c.
8751 * builtins.h: Update prototype list to include all exported functions.
8752 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8753 no_c99_libc_has_function): Move to targhooks.c
8754 (build_string_literal, build_call_expr_loc_array,
8755 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8757 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8758 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8759 no_c99_libc_has_function): Relocate from builtins.c.
8760 * tree.c: Include builtins.h.
8761 (build_call_expr_loc_array, build_call_expr_loc_vec,
8762 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8764 * fold-const.h (fold_fma): Move prototype to builtins.h.
8765 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8766 * asan.c: Include builtins.h.
8767 * cfgexpand.c: Likewise.
8768 * convert.c: Likewise.
8769 * emit-rtl.c: Likewise.
8770 * except.c: Likewise.
8772 * fold-const.c: Likewise.
8773 * gimple-fold.c: Likewise.
8774 * gimple-ssa-strength-reduction.c: Likewise.
8775 * gimplify.c: Likewise.
8776 * ipa-inline.c: Likewise.
8777 * ipa-prop.c: Likewise.
8778 * lto-streamer-out.c: Likewise.
8780 * tree-inline.c: Likewise.
8781 * tree-object-size.c: Likewise.
8782 * tree-sra.c: Likewise.
8783 * tree-ssa-ccp.c: Likewise.
8784 * tree-ssa-forwprop.c: Likewise.
8785 * tree-ssa-loop-ivcanon.c: Likewise.
8786 * tree-ssa-loop-ivopts.c: Likewise.
8787 * tree-ssa-math-opts.c: Likewise.
8788 * tree-ssa-reassoc.c: Likewise.
8789 * tree-ssa-threadedge.c: Likewise.
8790 * tree-streamer-in.c: Likewise.
8791 * tree-vect-data-refs.c: Likewise.
8792 * tree-vect-patterns.c: Likewise.
8793 * tree-vect-stmts.c: Likewise.
8794 * config/aarch64/aarch64.c: Likewise.
8795 * config/alpha/alpha.c: Likewise.
8796 * config/arc/arc.c: Likewise.
8797 * config/arm/arm.c: Likewise.
8798 * config/avr/avr.c: Likewise.
8799 * config/bfin/bfin.c: Likewise.
8800 * config/c6x/c6x.c: Likewise.
8801 * config/cr16/cr16.c: Likewise.
8802 * config/cris/cris.c: Likewise.
8803 * config/epiphany/epiphany.c: Likewise.
8804 * config/fr30/fr30.c: Likewise.
8805 * config/frv/frv.c: Likewise.
8806 * config/h8300/h8300.c: Likewise.
8807 * config/i386/i386.c: Likewise.
8808 * config/i386/winnt.c: Likewise.
8809 * config/ia64/ia64.c: Likewise.
8810 * config/iq2000/iq2000.c: Likewise.
8811 * config/lm32/lm32.c: Likewise.
8812 * config/m32c/m32c.c: Likewise.
8813 * config/m32r/m32r.c: Likewise.
8814 * config/m68k/m68k.c: Likewise.
8815 * config/mcore/mcore.c: Likewise.
8816 * config/mep/mep.c: Likewise.
8817 * config/microblaze/microblaze.c: Likewise.
8818 * config/mips/mips.c: Likewise.
8819 * config/mmix/mmix.c: Likewise.
8820 * config/mn10300/mn10300.c: Likewise.
8821 * config/moxie/moxie.c: Likewise.
8822 * config/msp430/msp430.c: Likewise.
8823 * config/nds32/nds32.c: Likewise.
8824 * config/pa/pa.c: Likewise.
8825 * config/pdp11/pdp11.c: Likewise.
8826 * config/picochip/picochip.c: Likewise.
8827 * config/rl78/rl78.c: Likewise.
8828 * config/rs6000/rs6000.c: Likewise.
8829 * config/rx/rx.c: Likewise.
8830 * config/s390/s390.c: Likewise.
8831 * config/score/score.c: Likewise.
8832 * config/sh/sh.c: Likewise.
8833 * config/sparc/sparc.c: Likewise.
8834 * config/spu/spu.c: Likewise.
8835 * config/stormy16/stormy16.c: Likewise.
8836 * config/tilegx/tilegx.c: Likewise.
8837 * config/tilepro/tilepro.c: Likewise.
8838 * config/v850/v850.c: Likewise.
8839 * config/vax/vax.c: Likewise.
8840 * config/xtensa/xtensa.c: Likewise.
8842 2014-06-02 Jeff Law <law@redhat.com>
8844 PR rtl-optimization/61094
8845 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8846 was marked as do_no_reextend. If a copy is needed to eliminate
8847 an extension, then mark it as do_not_reextend.
8849 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8851 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8853 2014-06-02 Richard Henderson <rth@redhat.com>
8856 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8857 addresses inside asms. Use output_operand_lossage instead of
8860 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8863 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8864 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8866 2014-06-02 Tom de Vries <tom@codesourcery.com>
8868 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8869 case that x has VOIDmode.
8871 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8873 * varasm.c (copy_constant): Delete function.
8874 (build_constant_desc): Don't call it.
8876 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8879 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8880 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8881 with immediate_operand.
8883 2014-06-02 Andreas Schwab <schwab@suse.de>
8885 * config/ia64/ia64.c
8886 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8887 pending_data_specs first.
8889 2014-06-02 Richard Biener <rguenther@suse.de>
8891 PR tree-optimization/61378
8892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8895 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8897 * config/i386/constraints.md (Bw): Rename from 'w'.
8898 (Bz): Rename from 'z'.
8899 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8901 2014-06-01 Kai Tietz <ktietz@redhat.com>
8904 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8905 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8906 instead of m constraint.
8908 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8910 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8911 a separate alternative where the scratch operand 2 is marked as
8914 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8916 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8917 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8918 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8919 and __builtins_arm_get_fpscr.
8920 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8921 __builtins_arm_get_fpscr.
8922 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8923 __builtins_arm_ldfpscr.
8924 (arm_atomic_assign_expand_fenv): New function.
8925 * config/arm/vfp.md (set_fpscr): New pattern.
8926 (get_fpscr) : Likewise.
8927 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8929 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8930 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8932 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8934 * asan.c (report_error_func): Add SLOW_P argument, use
8935 BUILT_IN_ASAN_*_N if set.
8936 (build_check_stmt): Likewise.
8937 (instrument_derefs): If T has insufficient alignment,
8938 force same handling as for odd sizes.
8940 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8941 BUILT_IN_ASAN_REPORT_STORE_N): New.
8942 * asan.c (struct asan_mem_ref): Change access_size type to
8944 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8945 update_mem_ref_hash_table): Likewise.
8946 (asan_mem_ref_hasher::hash): Hash in a HWI.
8947 (report_error_func): Change size_in_bytes argument to HWI.
8948 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8950 (build_shadow_mem_access): New function.
8951 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8952 Handle size_in_bytes not power of two or larger than 16.
8953 (instrument_derefs): Don't give up if size_in_bytes is not
8954 power of two or is larger than 16.
8956 2014-05-30 Kai Tietz <ktietz@redhat.com>
8959 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8960 for sibling-tail-calls.
8961 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8963 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8964 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8966 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8968 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8969 * config/avr/avr-tables.opt: Regenerate.
8970 * config/avr/t-multilib: Regenerate.
8971 * doc/avr-mmcu.texi: Regenerate.
8973 2014-05-30 Ian Lance Taylor <iant@google.com>
8975 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8978 2014-05-30 Tom de Vries <tom@codesourcery.com>
8980 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8983 2014-05-30 Tom de Vries <tom@codesourcery.com>
8985 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8986 * lra.c (initialize_lra_reg_info_element): Add init of
8987 actual_call_used_reg_set field.
8988 (lra): Call lra_create_live_ranges before lra_inheritance for
8990 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8992 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
8993 instead of call_used_reg_set for -fuse-caller-save.
8994 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8996 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8998 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9000 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9002 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9004 * ira.c (ira_get_dup_out_num): Check for output operands at
9005 the start of the loop. Handle cases where an included alternative
9006 follows an excluded one.
9008 2014-05-29 Mike Stump <mikestump@comcast.net>
9011 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9012 post ld passes when lto is used.
9014 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9016 PR rtl-optimization/61325
9017 * lra-constraints.c (process_address): Rename to process_address_1.
9018 (process_address): New function.
9020 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9022 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9023 TYPES_BINOPV): New static data.
9024 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9026 * config/aarch64/aarch64-simd.md (aarch64_ext,
9027 aarch64_im_lane_boundsi): New patterns.
9028 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9030 (aarch64_evpc_ext): New function.
9032 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9034 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9035 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9036 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9037 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9038 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9040 2014-05-29 Tom de Vries <tom@codesourcery.com>
9042 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9044 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9045 Richard Sandiford <rdsandiford@googlemail.com>
9047 * arm/iterators.md (shiftable_ops): New code iterator.
9048 (t2_binop0, arith_shift_insn): New code attributes.
9049 * arm/predicates.md (shift_nomul_operator): New predicate.
9050 * arm/arm.md (insn_enabled): Delete.
9051 (enabled): Remove insn_enabled test.
9052 (*arith_shiftsi): Delete. Replace with ...
9053 (*<arith_shift_insn>_multsi): ... new pattern.
9054 (*<arith_shift_insn>_shiftsi): ... new pattern.
9055 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9057 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9058 Tom de Vries <tom@codesourcery.com>
9060 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9061 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9063 (mips_split_call): Use POST_CALL_TMP_REG.
9064 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9066 2014-05-29 Tom de Vries <tom@codesourcery.com>
9068 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9069 with #ifdef STACK_REGS.
9071 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9073 * varasm.c (get_variable_section): Walk aliases.
9074 (place_block_symbol): Walk aliases.
9076 2014-05-28 Tom de Vries <tom@codesourcery.com>
9079 2014-05-28 Tom de Vries <tom@codesourcery.com>
9081 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9082 * lra.c (initialize_lra_reg_info_element): Add init of
9083 actual_call_used_reg_set field.
9084 (lra): Call lra_create_live_ranges before lra_inheritance for
9086 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9088 * lra-constraints.c (need_for_call_save_p): Use
9089 actual_call_used_reg_set instead of call_used_reg_set for
9091 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9093 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9095 * doc/md.texi: Document that the % constraint character must
9096 be at the beginning of the string.
9097 * genoutput.c (validate_insn_alternatives): Check that '=',
9098 '+' and '%' only appear at the beginning of a constraint.
9099 * ira.c (commutative_constraint_p): Delete.
9100 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9101 at the start of the string.
9102 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9104 * config/arm/neon.md (bicdi3_neon): Likewise.
9105 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9106 (slt_si, sltu_si): Likewise.
9107 * config/vax/vax.md (sbcdi3): Likewise.
9108 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9109 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9110 (mul64): Move '%' to beginning of constraint.
9111 * config/arm/arm.md (*xordi3_insn): Likewise.
9112 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9115 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9117 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9119 2014-05-28 Jason Merrill <jason@redhat.com>
9122 * cgraph.h (symtab_node::get_comdat_group_id): New.
9123 * cgraphunit.c (analyze_functions): Call it.
9124 * symtab.c (dump_symtab_node): Likewise.
9125 * tree.c (decl_comdat_group_id): New.
9126 * tree.h: Declare it.
9127 * lto-streamer-out.c (write_symbol): Use it.
9128 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9130 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9132 PR bootstrap/PR61146
9133 * wide-int.cc: Do not include longlong.h when compiling with clang.
9135 2014-05-28 Richard Biener <rguenther@suse.de>
9137 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9138 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9139 (vrp_visit_assignment_or_call): Print less vertical space.
9140 (vrp_visit_stmt): Likewise.
9141 (vrp_visit_phi_node): Likewise. For a PHI argument with
9142 VR_VARYING range consider recording it as copy.
9144 2014-05-28 Richard Biener <rguenther@suse.de>
9147 2014-05-28 Richard Biener <rguenther@suse.de>
9149 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9151 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9153 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9154 sufficiently aligned and an offset is used at the same time.
9155 (expand_expr_real_1): Likewise.
9157 2014-05-28 Richard Biener <rguenther@suse.de>
9160 * fold-const.c (fold_comparison): When folding
9161 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9162 the sign of the remaining constant operand stays the same.
9164 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9166 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9167 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9168 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9170 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9171 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9172 (m32bit-doubles) Likewise.
9173 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9174 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9177 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9179 * configure.ac ($gcc_cv_ld_clearcap): New test.
9180 * configure: Regenerate.
9181 * config.in: Regenerate.
9182 * config/sol2.opt (mclear-hwcap): New option.
9183 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9184 * config/sol2-clearcap.map: Moved here from
9185 testsuite/gcc.target/i386/clearcap.map.
9186 * config/sol2-clearcapv2.map: Move here from
9187 gcc.target/i386/clearcapv2.map.
9188 * config/t-sol2 (install): Depend on install-clearcap-map.
9189 (install-clearcap-map): New target.
9190 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9193 2014-05-28 Richard Biener <rguenther@suse.de>
9195 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9196 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9197 ... here and remove the rest.
9198 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9200 2014-05-28 Richard Biener <rguenther@suse.de>
9202 PR tree-optimization/61335
9203 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9204 new range fails, drop to varying.
9206 2014-05-28 Olivier Hainque <hainque@adacore.com>
9208 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9209 (CPP_SPEC): Add entry for -mcpu=8548.
9210 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9211 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9213 2014-05-28 Tom de Vries <tom@codesourcery.com>
9215 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9216 * lra.c (initialize_lra_reg_info_element): Add init of
9217 actual_call_used_reg_set field.
9218 (lra): Call lra_create_live_ranges before lra_inheritance for
9220 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9222 * lra-constraints.c (need_for_call_save_p): Use
9223 actual_call_used_reg_set instead of call_used_reg_set for
9225 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9227 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9228 Tom de Vries <tom@codesourcery.com>
9230 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9232 (@item -fuse-caller-save): New item.
9234 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9235 Tom de Vries <tom@codesourcery.com>
9237 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9238 OPT_fuse_caller_save.
9240 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9241 Tom de Vries <tom@codesourcery.com>
9243 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9244 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9245 get_call_reg_set_usage.
9246 * resource.c (mark_set_resources, mark_target_live_regs): Use
9247 get_call_reg_set_usage.
9248 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9250 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9251 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9252 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9253 * ira-build.c (ira_create_allocno): Init
9254 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9255 (create_cap_allocno, propagate_allocno_info)
9256 (propagate_some_info_from_allocno)
9257 (copy_info_to_removed_store_destinations): Handle
9258 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9259 * ira-costs.c (ira_tune_allocno_costs): Use
9260 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9262 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9263 Tom de Vries <tom@codesourcery.com>
9265 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9266 and function_used_regs_valid fields.
9267 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9268 find_all_hard_reg_sets.
9269 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9270 (get_call_reg_set_usage): New function.
9271 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9272 * regs.h (get_call_reg_set_usage): Declare.
9274 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9277 * config/dbx.h (License): Add Runtime Library Exception.
9278 * config/newlib-stdint.h (License): Same.
9279 * config/rtems.h (License): Same
9280 * config/initfini-array.h (License): Same
9281 * config/v850/v850.h (License): Same.
9282 * config/v850/v850-opts.h (License): Same
9283 * config/v850/rtems.h (License): Same.
9285 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9288 * doc/extend.texi (Local Labels): Note that label differences are
9289 not supported for AVR.
9291 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9292 Olivier Hainque <hainque@adacore.com>
9294 * rtl.h (set_for_reg_notes): Declare.
9295 * emit-rtl.c (set_for_reg_notes): New function.
9296 (set_unique_reg_note): Use it.
9297 * optabs.c (add_equal_note): Likewise
9299 2014-05-27 Andrew Pinski <apinski@cavium.com>
9301 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9302 Use <w> for the register in assembly template.
9303 (stack_protect_test): Use the mode of operands[0] for the result.
9304 (stack_protect_test_<mode>): Use <w> for the register
9305 in assembly template.
9307 2014-05-27 DJ Delorie <dj@redhat.com>
9309 * config/rx/rx.c (add_vector_labels): New.
9310 (rx_output_function_prologue): Call it.
9311 (rx_handle_func_attribute): Don't require empty arguments.
9312 (rx_handle_vector_attribute): New.
9313 (rx_attribute_table): Add "vector" attribute.
9314 * doc/extend.texi (interrupt, vector): Document new/changed
9315 RX-specific attributes.
9317 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9319 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9321 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9322 predicate to detect a negative quotient.
9324 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9326 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9327 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9328 Add X - Y CMP 0 to X CMP Y transformation.
9329 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9331 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9333 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9336 2014-05-27 Steve Ellcey <sellcey@mips.com>
9338 * config/mips/mips.c: Add include of cgraph.h.
9340 2014-05-27 Richard Biener <rguenther@suse.de>
9342 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9344 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9347 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9348 * config/arm/arm-cores.def (License): Same.
9349 * config/arm/arm-opts.h (License): Same.
9350 * config/arm/aout.h (License): Same.
9351 * config/arm/bpabi.h (License): Same.
9352 * config/arm/elf.h (License): Same.
9353 * config/arm/linux-elf.h (License): Same.
9354 * config/arm/linux-gas.h (License): Same.
9355 * config/arm/netbsd-elf.h (License): Same.
9356 * config/arm/uclinux-eabi.h (License): Same.
9357 * config/arm/uclinux-elf.h (License): Same.
9358 * config/arm/vxworks.h (License): Same.
9360 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9362 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9363 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9364 (arm_init_neon_builtins): Handle NEON_BSWAP.
9365 Define required type nodes.
9366 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9367 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9368 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9369 * config/arm/iterators.md (VDQHSD): New mode iterator.
9371 2014-05-27 Richard Biener <rguenther@suse.de>
9373 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9374 Try using literal operands when comparing value-ranges failed.
9376 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9378 * ira.c (commutative_operand): Adjust for change to recog_data.
9379 [Missing from previous commit.]
9381 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9383 * system.h (TEST_BIT): New macro.
9384 * recog.h (alternative_mask): New type.
9385 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9386 (recog_data_d): Replace alternative_enabled_p array with
9387 enabled_alternatives.
9388 (target_recog): New structure.
9389 (default_target_recog, this_target_recog): Declare.
9390 (get_enabled_alternatives, recog_init): Likewise.
9391 * recog.c (default_target_recog, this_target_recog): New variables.
9392 (get_enabled_alternatives): New function.
9393 (extract_insn): Use it.
9394 (recog_init): New function.
9395 (preprocess_constraints, constrain_operands): Adjust for change to
9397 * postreload.c (reload_cse_simplify_operands): Likewise.
9398 * reload.c (find_reloads): Likewise.
9399 * ira-costs.c (record_reg_classes): Likewise.
9400 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9401 all alternatives after a disabled one would be skipped.
9402 (ira_implicitly_set_insn_hard_regs): Likewise.
9403 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9404 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9405 with enabled_alternatives.
9406 * lra.c (free_insn_recog_data): Update accordingly.
9407 (lra_update_insn_recog_data): Likewise.
9408 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9409 * lra-constraints.c (process_alt_operands): Likewise. Handle
9410 only_alternative as part of the enabled mask.
9411 * target-globals.h (this_target_recog): Declare.
9412 (target_globals): Add a recog field.
9413 (restore_target_globals): Restore this_target_recog.
9414 * target-globals.c: Include recog.h.
9415 (default_target_globals): Initialize recog field.
9416 (save_target_globals): Likewise.
9417 * reginfo.c (reinit_regs): Call recog_init.
9418 * toplev.c (backend_init_target): Likewise.
9420 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9422 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9423 rather than any named insn's code.
9425 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9428 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9429 * config/arm/arm-cores.def (License): Same.
9431 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9433 * tree.h (decl_comdat_group): Declare.
9434 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9435 * tree.c (decl_comdat_group): Here.
9437 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9439 PR rtl-optimization/61222
9440 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9441 the shift, truncate the PLUS operand to the result mode.
9443 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9446 * config/i386/i386.c (ix86_rtx_costs)
9447 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9450 2014-05-26 Martin Jambor <mjambor@suse.cz>
9452 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9455 2014-05-26 Richard Biener <rguenther@suse.de>
9457 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9458 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9459 Provide specializations.
9460 (wi::int_traits <HOST_WIDE_INT>,
9461 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9463 2014-05-26 Alan Modra <amodra@gmail.com>
9466 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9467 params and return a bool. Remove dead code. Update comment.
9468 Assert we have a const_int source. Remove bogus code from
9469 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9470 handling of constants > 2G and reg_equal note, from..
9471 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9472 return value. Update comment. If we can, use a new pseudo
9473 for intermediate calculations.
9474 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9476 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9477 call to rs6000_emit_set_const in splitter.
9478 (movdi_internal64+2, +3): Likewise.
9480 2014-05-26 Richard Biener <rguenther@suse.de>
9482 * system.h: Define __STDC_FORMAT_MACROS before
9483 including inttypes.h.
9484 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9485 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9486 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9487 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9488 HOST_WIDEST_INT_C): Remove.
9489 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9490 if C99 inttypes.h is not available.
9491 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9492 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9493 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9494 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9495 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9496 (struct output_info): Likewise.
9497 (print_statistics): Adjust.
9498 (dump_bitmap_statistics): Likewise.
9499 * bt-load.c (migrate_btr_defs): Print with PRId64.
9500 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9501 (MAX_SAFE_MULTIPLIER): Adjust.
9502 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9503 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9504 dump_cgraph_node): Likewise.
9505 * final.c (dump_basic_block_info): Likewise.
9506 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9507 * gcov.c (format_gcov): Likewise.
9508 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9510 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9511 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9512 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9513 Use PRId64 for dumping.
9514 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9515 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9516 (add_allocno_hard_regs): Adjust.
9517 * loop-doloop.c (doloop_modify): Print using PRId64.
9518 * loop-iv.c (inverse): Compute in uint64_t.
9519 (determine_max_iter, iv_number_of_iterations): Likewise.
9520 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9522 * lto-streamer-out.c (write_symbol): Use uint64_t.
9523 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9524 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9525 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9526 * modulo-sched.c (const_iteration_count): Use int64_t.
9527 (sms_schedule): Dump using PRId64.
9528 * predict.c (dump_prediction): Likewise.
9529 * pretty-print.h (pp_widest_integer): Remove.
9530 * profile.c (get_working_sets, is_edge_inconsistent,
9531 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9532 * tree-pretty-print.c (pp_double_int): Remove case handling
9533 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9534 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9536 (pass_optimize_bswap::execute): Remove restriction on hosts.
9537 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9538 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9539 * tree.c (widest_int_cst_value): Remove.
9540 * tree.h (widest_int_cst_value): Likewise.
9541 * value-prof.c (dump_histogram_value): Print using PRId64.
9542 * gengtype.c (main): Also inject int64_t.
9543 * ggc-page.c (struct max_alignment): Use int64_t.
9544 * alloc-pool.c (struct allocation_object_def): Likewise.
9545 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9547 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9548 * doc/tm.texi: Regenerated.
9549 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9550 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9551 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9552 mmix_output_register_setting): Use [u]int64_t in prototypes.
9553 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9554 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9555 mmix_output_octa, mmix_output_shifted_value): Adjust.
9556 (mmix_intval): Adjust. Remove unreachable case.
9557 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9559 2014-05-26 Richard Biener <rguenther@suse.de>
9561 * configure.ac: Drop __int64 type check. Insist that we
9562 found uint64_t and int64_t.
9563 * hwint.h (HOST_BITS_PER___INT64): Remove.
9564 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9565 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9566 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9567 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9568 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9569 for dst_q_src_df_rms_cdt.
9570 * configure: Regenerate.
9571 * config.in: Likewise.
9573 2014-05-26 Michael Tautschnig <mt@debian.org>
9576 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9577 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9579 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9581 PR rtl-optimization/61278
9582 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9584 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9586 PR rtl-optimization/61220
9587 Part of PR rtl-optimization/61225
9588 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9589 insn; skip split_edge for a block with only one successor.
9591 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9593 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9596 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9598 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9599 (update_vtable_references): New function.
9600 (function_and_variable_visibility): Rewrite also vtable initializers.
9601 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9603 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9605 * ggc.h (ggc_grow): New function.
9606 * ggc-none.c (ggc_grow): New function.
9607 * ggc-page.c (ggc_grow): Likewise.
9609 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9611 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9612 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9613 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9614 varpool_externally_visible_p, can_replace_by_local_alias,
9615 update_visibility_by_resolution_info, function_and_variable_visibility,
9616 pass_data_ipa_function_and_variable_visibility,
9617 make_pass_ipa_function_and_variable_visibility,
9618 whole_program_function_and_variable_visibility,
9619 pass_data_ipa_whole_program_visibility,
9620 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9621 * cgraph.h (cgraph_local_node_p): Declare.
9622 * ipa-visibility.c: New file.
9623 * Makefile.in (OBJS): Add ipa-visiblity.o
9625 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9627 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9628 that var decl is available.
9630 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9632 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9633 symtab_node pointer.
9634 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9635 (find_decls_types_r): Do not walk COMDAT_GROUP.
9636 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9637 * varasm.c (make_decl_one_only): Use set_comdat_group;
9638 create node if needed.
9639 * ipa-inline-transform.c (save_inline_function_body): Update
9640 way we decl->symtab mapping.
9641 * symtab.c (symtab_hash, hash_node, eq_node
9642 symtab_insert_node_to_hashtable): Remove.
9643 (symtab_register_node): Update.
9644 (symtab_unregister_node): Update.
9645 (symtab_get_node): Reimplement as inline function.
9646 (symtab_add_to_same_comdat_group): Update.
9647 (symtab_dissolve_same_comdat_group_list): Update.
9648 (dump_symtab_base): Update.
9649 (verify_symtab_base): Update.
9650 (symtab_make_decl_local): Update.
9651 (fixup_same_cpp_alias_visibility): Update.
9652 (symtab_nonoverwritable_alias): Update.
9653 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9654 * ipa.c (update_visibility_by_resolution_info): UPdate.
9655 * bb-reorder.c: Include cgraph.h
9656 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9658 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9659 * cgraph.c (cgraph_get_create_node): Update.
9660 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9662 (symtab_get_node): Make inline.
9663 (symtab_insert_node_to_hashtable): Remove.
9664 (symtab_can_be_discarded): Update.
9665 (decl_comdat_group): New function.
9666 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9668 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9670 (read_comdat_group): New function.
9671 (input_node, input_varpool_node): Use it.
9672 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9674 * mips.c (mips_start_unique_function): Likewise.
9675 (ix86_code_end): Likewise.
9676 (rs6000_code_end): Likweise.
9677 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9679 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9681 * gengtype-state.c (fatal_reading_state): Bring offline.
9682 * optabs.c (widening_optab_handler): Bring offline.
9683 * optabs.h (widening_optab_handler): Likewise.
9684 * final.c (get_attr_length_1): Likewise.
9686 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9688 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9690 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9692 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9693 (ppc440-compare): Include shift with dot.
9694 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9695 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9697 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9699 (e6500_sfx2): Include it.
9700 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9701 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9702 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9703 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9704 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9705 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9706 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9707 *lshiftrt_internal1le, *lshiftrt_internal1be,
9708 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9709 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9710 *rotldi3_internal10le, *rotldi3_internal10be,
9711 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9712 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9713 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9714 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9715 define_insns): Use type "shift" in the appropriate alternatives.
9717 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9719 * config/rs6000/rs6000.md (type): Add "logical". Delete
9721 (dot): Adjust comment.
9722 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9723 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9724 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9725 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9726 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9727 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9728 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9729 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9731 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9732 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9733 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9734 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9735 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9736 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9737 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9738 * config/rs6000/8540.md (ppc8540_su): Adjust.
9739 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9740 cell-cmp-microcoded): Adjust.
9741 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9742 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9743 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9744 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9745 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9746 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9747 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9748 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9749 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9751 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9752 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9753 Adjust. Adjust comment.
9754 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9755 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9757 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9759 * config/rs6000/rs6000.md (type): Add "add".
9760 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9761 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9762 define_insns): Use it.
9763 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9765 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9766 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9767 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9768 * config/rs6000/601.md (ppc601-integer): Adjust.
9769 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9770 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9771 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9772 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9773 * config/rs6000/8540.md (ppc8540_su): Adjust.
9774 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9775 cell-cmp-microcoded): Adjust.
9776 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9777 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9778 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9779 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9780 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9781 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9782 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9783 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9784 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9786 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9787 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9788 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9789 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9791 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9793 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9794 "delayed_compare", "var_delayed_compare".
9795 (var_shift): New attribute.
9796 (cell_micro): Adjust.
9797 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9798 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9799 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9800 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9801 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9802 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9803 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9804 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9805 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9806 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9807 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9808 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9809 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9810 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9811 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9812 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9813 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9814 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9815 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9816 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9817 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9818 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9819 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9820 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9821 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9823 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9824 * config/rs6000/440.md (ppc440-integer): Adjust.
9825 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9826 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9827 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9828 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9829 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9830 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9831 * config/rs6000/8540.md (ppc8540_su): Adjust.
9832 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9833 cell-cmp-microcoded): Adjust.
9834 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9835 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9836 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9837 e500mc64_delayed): Adjust.
9838 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9839 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9840 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9841 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9842 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9843 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9844 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9845 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9846 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9848 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9849 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9851 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9853 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9854 (bits): New mode_attr.
9855 (idiv_ldiv): Delete mode_attr.
9856 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9857 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9858 rs6000_adjust_priority, is_nonpipeline_insn,
9859 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9861 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9862 * config/rs6000/440.md (ppc440-idiv): Adjust.
9863 * config/rs6000/476.md (ppc476-idiv): Adjust.
9864 * config/rs6000/601.md (ppc601-idiv): Adjust.
9865 * config/rs6000/603.md (ppc603-idiv): Adjust.
9866 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9867 ppc620-ldiv): Adjust.
9868 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9869 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9870 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9871 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9872 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9873 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9874 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9875 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9876 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9877 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9878 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9879 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9880 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9881 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9882 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9883 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9884 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9885 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9887 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9889 * config/rs6000/rs6000.md (type): Delete "insert_word",
9890 "insert_dword". Add "insert".
9891 (size): Update comment.
9892 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9893 insn_must_be_first_in_group): Adjust.
9894 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9895 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9896 *insvsi_internal6, insvdi_internal): Adjust.
9898 * config/rs6000/40x.md (ppc403-integer): Adjust.
9899 * config/rs6000/440.md (ppc440-integer): Adjust.
9900 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9901 * config/rs6000/601.md (ppc601-integer): Adjust.
9902 * config/rs6000/603.md (ppc603-integer): Adjust.
9903 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9904 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9905 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9906 * config/rs6000/8540.md (ppc8540_su): Adjust.
9907 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9908 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9909 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9910 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9911 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9912 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9913 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9914 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9915 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9916 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9917 * config/rs6000/power7.md (power7-integer): Adjust.
9918 * config/rs6000/power8.md (power8-1cyc): Adjust.
9919 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9920 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9922 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9924 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9925 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9926 (size): New attribute.
9927 (dot): New attribute.
9928 (cell_micro): Adjust.
9929 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9930 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9931 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9932 umuldi3_highpart): Adjust.
9933 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9934 rs6000_adjust_priority, is_nonpipeline_insn,
9935 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9937 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9938 ppc405-imul3): Adjust.
9939 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9940 * config/rs6000/476.md (ppc476-imul): Adjust.
9941 * config/rs6000/601.md (ppc601-imul): Adjust.
9942 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9943 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9944 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9945 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9946 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9948 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9949 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9950 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9952 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9953 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9954 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9955 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9956 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9957 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9958 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9959 power4-lmul, power4-imul, power4-imul3): Adjust.
9960 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9961 power5-lmul, power5-imul, power5-imul3): Adjust.
9962 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9963 power6-lmul, power6-imul, power6-imul3): Adjust.
9964 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9965 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9967 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9968 rs64a-lmul): Adjust.
9969 * config/rs6000/titan.md (titan_imul): Adjust.
9971 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9973 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9974 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9975 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9976 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9977 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9978 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9979 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9980 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9981 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9982 * config/rs6000/titan.md: Delete nonsensical comment.
9983 (titan_imul): Add type imul3.
9984 (titan_mulhw): Remove type imul3; add type halfmul.
9986 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9988 * config/rs6000/rs6000.md (type): Reorder, reformat.
9990 2014-05-23 Martin Jambor <mjambor@suse.cz>
9992 PR tree-optimization/53787
9993 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
9994 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
9995 analysis_done, update all uses.
9996 * ipa-prop.c: Include domwalk.h
9997 (param_analysis_info): Removed.
9998 (param_aa_status): New type.
9999 (ipa_bb_info): Likewise.
10000 (func_body_info): Likewise.
10001 (ipa_get_bb_info): New function.
10002 (aa_overwalked): Likewise.
10003 (find_dominating_aa_status): Likewise.
10004 (parm_bb_aa_status_for_bb): Likewise.
10005 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10006 (load_from_unmodified_param): Accept func_body_info as a parameter
10007 instead of parms_ainfo.
10008 (parm_ref_data_preserved_p): Changed to use new param AA info.
10009 (parm_ref_data_pass_through_p): Likewise.
10010 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10011 (compute_complex_assign_jump_func): Changed to use new param AA info.
10012 (compute_complex_ancestor_jump_func): Likewise.
10013 (ipa_compute_jump_functions_for_edge): Likewise.
10014 (ipa_compute_jump_functions): Removed.
10015 (ipa_compute_jump_functions_for_bb): New function.
10016 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10018 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10019 and info, moved variable declarations down.
10020 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10022 (ipa_analyze_stmt_uses): Likewise.
10023 (ipa_analyze_params_uses): Removed.
10024 (ipa_analyze_params_uses_in_bb): New function.
10025 (ipa_analyze_controlled_uses): Likewise.
10026 (free_ipa_bb_info): Likewise.
10027 (analysis_dom_walker): New class.
10028 (ipa_analyze_node): Handle node-specific forbidden analysis,
10029 initialize and free func_body_info, use dominator walker.
10030 (ipcp_modif_dom_walker): New class.
10031 (ipcp_transform_function): Create and free func_body_info, use
10032 ipcp_modif_dom_walker, moved a lot of functionality there.
10034 2014-05-23 Marek Polacek <polacek@redhat.com>
10035 Jakub Jelinek <jakub@redhat.com>
10037 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10038 * gcc.c (sanitize_spec_function): Likewise.
10039 * convert.c (convert_to_integer): Include "ubsan.h". Add
10040 floating-point to integer instrumentation.
10041 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10042 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10043 SANITIZE_NONDEFAULT.
10044 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10045 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10046 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10047 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10048 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10049 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10050 float/double/long double.
10051 (ubsan_instrument_float_cast): New function.
10052 * ubsan.h (ubsan_instrument_float_cast): Declare.
10054 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10056 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10058 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10059 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10060 Adjust for tailcalling through registers.
10061 * config/aarch64/aarch64.h (enum reg_class): New caller save
10063 (REG_CLASS_NAMES): Likewise.
10064 (REG_CLASS_CONTENTS): Likewise.
10065 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10066 Allow tailcalling without decls.
10068 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10070 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10071 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10073 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10074 gsi, and variables v_* to v*.
10076 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10078 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10080 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10082 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10083 * omp-low.c: Update accordingly.
10085 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10086 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10087 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10088 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10089 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10090 GF_OMP_TARGET_KIND_UPDATE.
10092 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10093 Explicitly enumerate the expected region types.
10095 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10098 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10099 documentation; the old documentation didn't clearly state the
10100 constraints on the contents of the pointed-to storage.
10102 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10104 Fix bootstrap error on ia64
10105 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10106 Return default value.
10108 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10110 PR tree-optimization/54733
10111 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10113 (find_bswap_or_nop_load): New.
10114 (find_bswap_1): Renamed to ...
10115 (find_bswap_or_nop_1): This. Also add support for memory source.
10116 (find_bswap): Renamed to ...
10117 (find_bswap_or_nop): This. Also add support for memory source and
10118 detection of bitwise operations equivalent to load in target
10120 (execute_optimize_bswap): Likewise. Also move its leading comment back
10121 in place and split statement transformation into ...
10122 (bswap_replace): This.
10124 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10126 PR rtl-optimization/61215
10127 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10128 simplify_gen_subreg until final substitution.
10130 2014-05-23 Alan Modra <amodra@gmail.com>
10133 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10134 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10135 Use "Y" constraint rather than "m".
10137 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10139 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10141 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10142 New function declaration.
10143 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10144 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10145 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10146 (aarch64_init_builtins) : Initialize builtins
10147 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10148 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10149 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10150 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10151 and __builtins_aarch64_set_fpsr.
10152 (aarch64_atomic_assign_expand_fenv): New function.
10153 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10154 (get_fpcr) : Likewise.
10155 (set_fpsr) : Likewise.
10156 (get_fpsr) : Likewise.
10157 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10158 and UNSPECV_SET_FPSR.
10159 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10160 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10161 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10163 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10165 PR rtl-optimization/60969
10166 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10167 constraints. Set up mem cost for NO_REGS case.
10169 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10171 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10173 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10175 * config/darwin.c: Include "lto-section-names.h".
10176 (LTO_SEGMENT_NAME): Don't define.
10177 * config/i386/winnt.c: Include "lto-section-names.h".
10178 * lto-streamer.c: Include "lto-section-names.h".
10179 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10180 * lto-wrapper.c: Include "lto-section-names.h".
10181 (LTO_SECTION_NAME_PREFIX): Don't define.
10182 * lto-section-names.h: New file.
10183 * cgraphunit.c: Include "lto-section-names.h".
10185 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10187 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10189 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10192 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10194 2014-05-22 Nick Clifton <nickc@redhat.com>
10196 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10198 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10200 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10201 -> (T)A transformation to integer types.
10203 2014-05-22 Teresa Johnson <tejohnson@google.com>
10205 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10206 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10207 (gcov_rewrite): Use gcov_nonruntime_assert.
10208 (gcov_open): Ditto.
10209 (gcov_write_words): Ditto.
10210 (gcov_write_length): Ditto.
10211 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10212 gcc_assert from IN_LIBGCOV code.
10213 (gcov_read_summary): Use gcov_error to flag profile corruption.
10214 (gcov_sync): Use gcov_nonruntime_assert.
10215 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10216 (gcov_histo_index): Use gcov_nonruntime_assert.
10217 (static void gcov_histogram_merge): Ditto.
10218 (compute_working_sets): Ditto.
10219 * gcov-io.h (gcov_nonruntime_assert): Define.
10220 (gcov_error): Define for !IN_LIBGCOV
10222 2014-05-22 Richard Biener <rguenther@suse.de>
10224 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10225 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10226 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10227 and deallocation site.
10228 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10229 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10230 passing through the incoming points-to set.
10231 (handle_lhs_call): Use flags argument instead of recomputing it.
10232 (find_func_aliases_for_call): Call handle_lhs_call with proper
10235 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10237 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10238 all padding bits in REAL_VALUE_TYPE are cleared.
10240 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10242 Cleanup and improve multipass_dfa_lookahead_guard
10243 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10244 (core2i7_first_cycle_multipass_begin,)
10245 (core2i7_first_cycle_multipass_issue,)
10246 (core2i7_first_cycle_multipass_backtrack): Update signature.
10247 * config/ia64/ia64.c
10248 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10249 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10250 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10252 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10253 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10255 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10257 * doc/tm.texi: Regenerate.
10259 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10260 * haifa-sched.c (ready_try): Make signed to allow negative values.
10261 (rebug_ready_list_1): Update.
10262 (choose_ready): Simplify.
10263 (sched_extend_ready_list): Update.
10265 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10267 Remove IA64 speculation tweaking flags
10268 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10269 speculation tuning flags.
10270 (msched-prefer-non-data-spec-insns,)
10271 (msched-prefer-non-control-spec-insns): Obsolete options.
10272 * haifa-sched.c (choose_ready): Remove handling of
10273 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10274 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10275 and PREFER_NON_DATA_SPEC.
10276 * sel-sched.c (process_spec_exprs): Remove handling of
10277 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10279 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10281 Improve scheduling debug output
10282 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10283 (advance_one_cycle): Update.
10284 (schedule_insn, queue_to_ready): Add debug printouts.
10285 (debug_ready_list_1): New static function.
10286 (debug_ready_list): Update.
10287 (max_issue): Add debug printouts.
10288 (dump_insn_stream): New static function.
10289 (schedule_block): Use it. Also better indent printouts.
10291 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10293 Fix sched_insn debug counter
10294 * haifa-sched.c (schedule_insn): Update.
10295 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10296 (save_backtrack_point, restore_backtrack_point): Update.
10297 (first_nonscheduled_insn): New static function.
10298 (queue_to_ready, choose_ready): Use it.
10299 (schedule_block): Init nonscheduled_insns_begin.
10300 (sched_emit_insn): Update.
10303 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10305 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10307 (aarch64_secondary_reload) : LikeWise.
10308 (aarch64_class_max_nregs) : Remove CORE_REGS.
10309 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10310 (REG_CLASS_NAMES) : Likewise.
10311 (REG_CLASS_CONTENTS) : LikeWise.
10312 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10314 2014-05-21 Guozhi Wei <carrot@google.com>
10317 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10319 (vqdmulhq_n_s16): Likewise.
10321 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10323 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10325 2014-05-21 Marek Polacek <polacek@redhat.com>
10328 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10330 2014-05-21 Martin Jambor <mjambor@suse.cz>
10332 * doc/invoke.texi (Optimize Options): Document parameters
10333 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10334 ipa-cp-array-index-hint-bonus.
10336 2014-05-21 Mark Wielaard <mjw@redhat.com>
10339 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10340 version >= 3 or not strict DWARF.
10341 * langhooks.h (struct lang_hooks_for_types): Add
10342 enum_underlying_base_type.
10343 * langhooks.c (lhd_enum_underlying_base_type): New function.
10344 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10345 enum_underlying_base_type.
10346 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10347 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10348 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10350 2014-05-21 Richard Biener <rguenther@suse.de>
10352 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10354 2014-05-21 John Marino <gnugcc@marino.st>
10356 * config.gcc (*-*-dragonfly*): New target.
10357 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10358 * configure: Regenerate.
10359 * config/dragonfly-stdint.h: New.
10360 * config/dragonfly.h: New.
10361 * config/dragonfly.opt: New.
10362 * config/i386/dragonfly.h: New.
10363 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10365 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10367 * tree.def (VOID_CST): New.
10368 * tree-core.h (TI_VOID): New.
10369 * tree.h (void_node): New.
10370 * tree.c (tree_node_structure_for_code, tree_code_size)
10371 (iterative_hash_expr): Handle VOID_CST.
10372 (build_common_tree_nodes): Initialize void_node.
10374 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10376 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10378 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10380 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10383 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10384 flag_reorder_blocks_and_partition.
10385 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10387 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10390 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10392 (*addc_r_t): Add new insn_and_split.
10394 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10396 PR middle-end/61252
10397 * omp-low.c (handle_simd_reference): New function.
10398 (lower_rec_input_clauses): Use it. Defer adding reference
10399 initialization even for reduction without placeholder if in simd,
10400 handle it properly later on.
10402 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10404 PR tree-optimization/60899
10405 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10406 assume all static symbols will have definition wile parsing and
10407 check the do have definition later in compilation; check that
10408 variable referring symbol will be output before concluding that
10409 reference is safe; be conservative for referring local statics;
10410 be more precise about when comdat is output in other partition.
10412 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10415 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10417 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10418 (ipa_inline): Loop inline_to_all_callers until no more aliases
10421 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10423 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10424 set writeonly flag only for vars actually written to.
10426 2014-05-20 Dehao Chen <dehao@google.com>
10428 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10429 and callee count to get clone count.
10430 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10431 count in copy_body.
10433 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10435 PR rtl-optimization/61243
10436 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10438 2014-05-20 Xinliang David Li <davidxl@google.com>
10440 * cgraphunit.c (walk_polymorphic_call_targets): Add
10441 dbgcnt and fopt-info support.
10442 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10443 * ipa-devirt.c (ipa_devirt): Ditto.
10444 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10445 * ipa.c (walk_polymorphic_call_targets): Ditto.
10446 * gimple-fold.c (fold_gimple_assign): Ditto.
10447 (gimple_fold_call): Ditto.
10448 * dbgcnt.def: New counter.
10450 2014-05-20 DJ Delorie <dj@redhat.com>
10452 * config/msp430/msp430.md (split): Don't allow subregs when
10453 splitting SImode adds.
10454 (andneghi): Fix subtraction logic.
10455 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10457 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10459 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10461 * except.c (switch_to_exception_section, resolve_unique_section,
10462 get_named_text_section, default_function_rodata_section,
10463 align_variable, get_block_for_decl, default_section_type_flags):
10464 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10465 * symtab.c (symtab_add_to_same_comdat_group,
10466 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10467 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10469 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10470 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10471 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10472 (c6x_function_in_section_p): Likewise.
10473 * config/darwin.c (machopic_select_section): Likewise.
10474 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10475 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10476 * config/mep/mep.c (mep_select_section): LIkewise.
10477 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10479 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10481 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10482 EH region of calls to pure functions that can throw an exception.
10483 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10484 (copy_reference_ops_from_call): Also copy the EH region of the call if
10485 it can throw an exception.
10487 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10489 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10490 nested VEC_SELECTs that are inverses of each other.
10492 2014-05-20 Richard Biener <rguenther@suse.de>
10494 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10495 (extract_and_process_scc_for_name): not here.
10496 (cond_dom_walker::before_dom_children): Only process
10497 stmts that end the BB in interesting ways.
10498 (run_scc_vn): Mark param uses as visited.
10500 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10502 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10505 2014-05-20 Nick Clifton <nickc@redhat.com>
10507 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10508 (msp430_gimplify_va_arg_expr): New function.
10509 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10511 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10512 operand 0 in order to prevent confusion about the number of
10513 registers involved.
10515 2014-05-20 Richard Biener <rguenther@suse.de>
10517 PR tree-optimization/61221
10518 * tree-ssa-pre.c (el_to_update): Remove.
10519 (eliminate_dom_walker::before_dom_children): Handle released
10520 VDEFs by value-numbering them to the associated VUSE. Update
10521 stmt immediately for substituted call address.
10522 (eliminate): Remove delayed stmt updating code.
10523 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10524 possibly late re-numbered vuses.
10525 (vn_reference_lookup_2): Adjust.
10526 (vn_reference_lookup_pieces): Likewise.
10527 (vn_reference_lookup): Likewise.
10529 2014-05-20 Richard Biener <rguenther@suse.de>
10531 * config.gcc: Remove need_64bit_hwint.
10532 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10533 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10535 * config.in: Regenerate.
10536 * configure: Likewise.
10538 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10540 * doc/extend.texi: Create Label Attributes section,
10541 move all label attributes into it and reference it.
10543 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10545 * arm.c (thumb1_reorg): When scanning backwards skip anything
10546 that's not a proper insn.
10548 2014-05-19 Richard Biener <rguenther@suse.de>
10550 PR tree-optimization/61221
10551 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10552 Do nothing for unreachable blocks.
10553 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10554 Improve unreachability detection.
10556 2014-05-19 Richard Biener <rguenther@suse.de>
10558 PR tree-optimization/61209
10559 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10561 2014-05-19 Nick Clifton <nickc@redhat.com>
10563 * except.c (init_eh): Fix computation of builtin setjmp buffer
10564 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10566 2014-05-19 Richard Biener <rguenther@suse.de>
10568 PR tree-optimization/61184
10569 * tree-vrp.c (is_negative_overflow_infinity): Use
10570 TREE_OVERFLOW_P and do that check first.
10571 (is_positive_overflow_infinity): Likewise.
10572 (is_overflow_infinity): Likewise.
10573 (vrp_operand_equal_p): Properly treat operands with
10574 differing overflow as not equal.
10576 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10578 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10579 shift simplification where it was intended.
10581 2014-05-19 Christian Bruel <christian.bruel@st.com>
10584 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10586 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10589 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10592 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10594 * reg-notes.def (CROSSING_JUMP): Likewise.
10595 * rtl.h (rtx_def): Update comment for jump flag.
10596 (CROSSING_JUMP_P): Define.
10597 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10598 of a REG_CROSSING_JUMP note.
10599 * cfghooks.c (tidy_fallthru_edges): Likewise.
10600 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10601 * emit-rtl.c (try_split): Likewise.
10602 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10603 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10604 * jump.c (redirect_jump_2): Likewise.
10605 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10606 (relax_delay_slots): Likewise.
10607 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10608 (bbit_di): Likewise.
10609 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10610 * config/sh/sh.md (jump_compact): Likewise.
10611 * bb-reorder.c (rotate_loop): Likewise.
10612 (pass_duplicate_computed_gotos::execute): Likewise.
10613 (add_reg_crossing_jump_notes): Rename to...
10614 (update_crossing_jump_flags): ...this.
10615 (pass_partition_blocks::execute): Update accordingly.
10617 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10619 * tree.h: Remove extraneous template <>.
10621 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10623 * ipa.c (symtab_remove_unreachable_nodes): Remove
10624 symbol from comdat group if its body was eliminated.
10625 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10626 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10627 (symtab_unregister_node): ... this one.
10628 (verify_symtab_base): More strict checking of comdats.
10629 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10631 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10633 * tree-pass.h (make_pass_ipa_comdats): New pass.
10634 * timevar.def (TV_IPA_COMDATS): New timevar.
10635 * passes.def (pass_ipa_comdats): Add.
10636 * Makefile.in (OBJS): Add ipa-comdats.o
10637 * ipa-comdats.c: New file.
10639 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10641 * ipa.c (update_visibility_by_resolution_info): New function.
10642 (function_and_variable_visibility): Use it.
10644 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10646 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10648 (FOR_EACH_DEFINED_SYMBOL): New macro.
10649 (varpool_first_static_initializer, varpool_next_static_initializer,
10650 varpool_first_defined_variable, varpool_next_defined_variable):
10652 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10654 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10656 * ggc-page.c (ggc_handle_finalizers): Add comment.
10658 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10660 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10661 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10662 (ggc_internal_cleared_alloc): Likewise.
10663 * ggc-page.c (finalizer): New class.
10664 (vec_finalizer): Likewise.
10665 (globals::finalizers): New member.
10666 (globals::vec_finalizers): Likewise.
10667 (ggc_internal_alloc): Record the finalizer if any for the block being
10669 (ggc_handle_finalizers): New function.
10670 (ggc_collect): Call ggc_handle_finalizers.
10671 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10673 (ggc_internal_cleared_alloc): Likewise.
10674 (finalize): New function.
10675 (need_finalization_p): Likewise.
10676 (ggc_alloc): Install the type's destructor as the finalizer if it
10677 might do something.
10678 (ggc_cleared_alloc): Likewise.
10679 (ggc_vec_alloc): Likewise.
10680 (ggc_cleared_vec_alloc): Likewise.
10682 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10684 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10686 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10688 * alias.c (record_alias_subset): Adjust.
10689 * bitmap.c (bitmap_element_allocate): Likewise.
10690 (bitmap_gc_alloc_stat): Likewise.
10691 * cfg.c (init_flow): Likewise.
10692 (alloc_block): Likewise.
10693 (unchecked_make_edge): Likewise.
10694 * cfgloop.c (alloc_loop): Likewise.
10695 (flow_loops_find): Likewise.
10696 (rescan_loop_exit): Likewise.
10697 * cfgrtl.c (init_rtl_bb_info): Likewise.
10698 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10699 (cgraph_allocate_node): Likewise.
10700 (cgraph_create_edge_1): Likewise.
10701 (cgraph_allocate_init_indirect_info): Likewise.
10702 * cgraphclones.c (cgraph_clone_edge): Likewise.
10703 * cgraphunit.c (add_asm_node): Likewise.
10704 (init_lowered_empty_function): Likewise.
10705 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10706 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10707 (alpha_use_linkage): Likewise.
10708 * config/arc/arc.c (arc_init_machine_status): Likewise.
10709 * config/arm/arm.c (arm_init_machine_status): Likewise.
10710 * config/avr/avr.c (avr_init_machine_status): Likewise.
10711 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10712 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10713 * config/cris/cris.c (cris_init_machine_status): Likewise.
10714 * config/darwin.c (machopic_indirection_name): Likewise.
10715 (darwin_build_constant_cfstring): Likewise.
10716 (darwin_enter_string_into_cfstring_table): Likewise.
10717 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10718 * config/frv/frv.c (frv_init_machine_status): Likewise.
10719 * config/i386/i386.c (get_dllimport_decl): Likewise.
10720 (ix86_init_machine_status): Likewise.
10721 (assign_386_stack_local): Likewise.
10722 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10723 (i386_pe_maybe_record_exported_symbol): Likewise.
10724 (i386_pe_record_stub): Likewise.
10725 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10726 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10727 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10728 (m32c_note_pragma_address): Likewise.
10729 * config/mep/mep.c (mep_init_machine_status): Likewise.
10730 (mep_note_pragma_flag): Likewise.
10731 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10732 (mips16_local_alias): Likewise.
10733 (mips_init_machine_status): Likewise.
10734 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10735 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10736 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10737 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10738 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10739 * config/pa/pa.c (pa_init_machine_status): Likewise.
10740 (pa_get_deferred_plabel): Likewise.
10741 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10742 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10743 (rs6000_init_machine_status): Likewise.
10744 (output_toc): Likewise.
10745 * config/s390/s390.c (s390_init_machine_status): Likewise.
10746 * config/score/score.c (score_output_external): Likewise.
10747 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10748 * config/spu/spu.c (spu_init_machine_status): Likewise.
10749 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10750 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10751 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10752 * coverage.c (coverage_end_function): Likewise.
10753 * dbxout.c (dbxout_init): Likewise.
10754 * doc/gty.texi: Don't mention variable_size attribute.
10755 * dwarf2cfi.c (new_cfi): Adjust.
10756 (new_cfi_row): Likewise.
10757 (copy_cfi_row): Likewise.
10758 (create_cie_data): Likewise.
10759 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10760 (new_loc_descr): Likewise.
10761 (find_AT_string_in_table): Likewise.
10762 (add_addr_table_entry): Likewise.
10763 (new_die): Likewise.
10764 (add_var_loc_to_decl): Likewise.
10765 (clone_die): Likewise.
10766 (clone_as_declaration): Likewise.
10767 (break_out_comdat_types): Likewise.
10768 (new_loc_list): Likewise.
10769 (add_loc_descr_to_each): Likewise.
10770 (add_location_or_const_value_attribute): Likewise.
10771 (add_linkage_name): Likewise.
10772 (lookup_filename): Likewise.
10773 (dwarf2out_var_location): Likewise.
10774 (new_line_info_table): Likewise.
10775 (dwarf2out_init): Likewise.
10776 (mem_loc_descriptor): Likewise.
10777 (loc_descriptor): Likewise.
10778 (add_const_value_attribute): Likewise.
10779 (tree_add_const_value_attribute): Likewise.
10780 (comp_dir_string): Likewise.
10781 (dwarf2out_vms_debug_main_pointer): Likewise.
10782 (string_cst_pool_decl): Likewise.
10783 * emit-rtl.c (set_mem_attrs): Likewise.
10784 (get_reg_attrs): Likewise.
10785 (start_sequence): Likewise.
10786 (init_emit): Likewise.
10787 (init_emit_regs): Likewise.
10788 * except.c (init_eh_for_function): Likewise.
10789 (gen_eh_region): Likewise.
10790 (gen_eh_region_catch): Likewise.
10791 (gen_eh_landing_pad): Likewise.
10792 (add_call_site): Likewise.
10793 * function.c (add_frame_space): Likewise.
10794 (insert_temp_slot_address): Likewise.
10795 (assign_stack_temp_for_type): Likewise.
10796 (get_hard_reg_initial_val): Likewise.
10797 (allocate_struct_function): Likewise.
10798 (prepare_function_start): Likewise.
10799 (types_used_by_var_decl_insert): Likewise.
10800 * gengtype.c (variable_size_p): Remove function.
10801 (enum alloc_quantity): Remove enum.
10802 (write_typed_alloc_def): Remove function.
10803 (write_typed_struct_alloc_def): Likewise.
10804 (write_typed_typedef_alloc_def): Likewise.
10805 (write_typed_alloc_defns): Likewise.
10807 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10808 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10809 * ggc.h (ggc_alloc): new function.
10810 (ggc_cleared_alloc): Likewise.
10811 (ggc_vec_alloc): Template on type of vector element, and remove
10812 element size argument.
10813 (ggc_cleared_vec_alloc): Likewise.
10814 * gimple.c (gimple_build_omp_for): Adjust.
10815 (gimple_copy): Likewise.
10816 * ipa-cp.c (get_replacement_map): Likewise.
10817 (find_aggregate_values_for_callers_subset): Likewise.
10818 (known_aggs_to_agg_replacement_list): Likewise.
10819 * ipa-devirt.c (get_odr_type): Likewise.
10820 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10821 (read_agg_replacement_chain): Likewise.
10822 * loop-iv.c (get_simple_loop_desc): Likewise.
10823 * lto-cgraph.c (input_node_opt_summary): Likewise.
10824 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10825 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10826 (input_eh_region): Likewise.
10827 (input_eh_lp): Likewise.
10828 (input_cfg): Likewise.
10829 * optabs.c (set_optab_libfunc): Likewise.
10830 (init_tree_optimization_optabs): Likewise.
10831 (set_conv_libfunc): Likewise.
10832 * passes.c (do_per_function_toporder): Likewise.
10833 * rtl.h: Don't use variable_size gty attribute.
10834 * sese.c (if_region_set_false_region): Adjust.
10835 * stringpool.c (gt_pch_save_stringpool): Likewise.
10836 * target-globals.c (save_target_globals): Likewise.
10837 * toplev.c (general_init): Likewise.
10838 * trans-mem.c (record_tm_replacement): Likewise.
10839 (split_bb_make_tm_edge): Likewise.
10840 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10841 * tree-data-ref.h (lambda_vector_new): Likewise.
10842 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10843 * tree-iterator.c (tsi_link_before): Likewise.
10844 (tsi_link_after): Likewise.
10845 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10846 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10847 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10848 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10849 * tree-ssa.c (init_tree_ssa): Adjust.
10850 * tree-ssanames.c (set_range_info): Likewise.
10851 (get_ptr_info): Likewise.
10852 (duplicate_ssa_name_ptr_info): Likewise.
10853 (duplicate_ssa_name_range_info): Likewise.
10854 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10855 (unpack_ts_fixed_cst_value_fields): Likewise.
10856 * tree.c (build_fixed): Likewise.
10857 (build_real): Likewise.
10858 (build_string): Likewise.
10859 (decl_priority_info): Likewise.
10860 (decl_debug_expr_insert): Likewise.
10861 (decl_value_expr_insert): Likewise.
10862 (decl_debug_args_insert): Likewise.
10863 (type_hash_add): Likewise.
10864 (build_omp_clause): Likewise.
10865 * ubsan.c (decl_for_type_insert): Likewise.
10866 * varasm.c (get_unnamed_section): Likewise.
10867 (get_noswitch_section): Likewise.
10868 (get_section): Likewise.
10869 (get_block_for_section): Likewise.
10870 (create_block_symbol): Likewise.
10871 (build_constant_desc): Likewise.
10872 (create_constant_pool): Likewise.
10873 (force_const_mem): Likewise.
10874 (record_tm_clone_pair): Likewise.
10875 * varpool.c (varpool_create_empty_node): Likewise.
10877 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10879 * dwarf2out.c (tree_add_const_value_attribute): Call
10880 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10881 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10882 instead of ggc_internal_<x>alloc_stat.
10883 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10884 (ggc_realloc): Likewise.
10885 * ggc-none.c (ggc_internal_alloc): Likewise.
10886 (ggc_internal_cleared_alloc): Likewise.
10887 * ggc-page.c: Likewise.
10888 * ggc.h (ggc_internal_alloc_stat): Likewise.
10889 (ggc_internal_alloc): Remove macro.
10890 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10891 (ggc_internal_cleared_alloc): Remove macro.
10892 (GGC_RESIZEVEC): Adjust.
10893 (ggc_resizevar): Remove macro.
10894 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10895 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10896 (ggc_internal_vec_cleared_alloc): Remove macro.
10897 (ggc_alloc_atomic_stat): Drop _stat suffix.
10898 (ggc_alloc_atomic): Remove macro.
10899 (ggc_alloc_cleared_atomic): Remove macro.
10900 (ggc_alloc_string_stat): Drop _stat suffix.
10901 (ggc_alloc_string): Remove macro.
10902 (ggc_alloc_rtx_def_stat): Adjust.
10903 (ggc_alloc_tree_node_stat): Likewise.
10904 (ggc_alloc_cleared_tree_node_stat): Likewise.
10905 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10906 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10907 * gimple.c (gimple_build_omp_for): Likewise.
10908 (gimple_copy): Likewise.
10909 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10910 * toplev.c (realloc_for_line_map): Adjust.
10911 * tree-data-ref.h (lambda_vector_new): Likewise.
10912 * tree-phinodes.c (allocate_phi_node): Likewise.
10913 * tree.c (grow_tree_vec_stat): Likewise.
10914 * vec.h (va_gc::reserve): Adjust.
10916 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10918 * config/microblaze/microblaze.c (break_handler): New Declaration.
10919 (microblaze_break_function_p,microblaze_is_break_handler): New.
10920 (compute_frame_size): Use microblaze_break_function_p.
10921 Add the test of break_handler.
10922 (microblaze_function_prologue) : Add the test of variable
10923 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10924 (microblaze_function_epilogue) : Add the test of break_handler.
10925 (microblaze_globalize_label) : Add the test of break_handler.
10926 Check the name by BREAK_HANDLER_NAME.
10928 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10930 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10931 microblaze_is_break_handler test.
10932 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10933 Use SYMBOL_REF_DECL.
10935 * config/microblaze/microblaze-protos.h
10936 (microblaze_break_function_p,microblaze_is_break_handler):
10939 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10940 new MicroBlaze break_handler functions.
10942 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10944 * doc/extend.texi (Size of an asm): Move node text according
10945 to its @menu entry position.
10947 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10949 PR tree-optimization/61140
10950 PR tree-optimization/61150
10951 PR tree-optimization/61197
10952 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10954 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10956 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10958 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10960 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10961 __SIZEOF_INT128__ is defined.
10963 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10965 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10966 (rs6000_delegitimize_address): Use it.
10968 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10970 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10971 inplace argument. Store the new address in the original MEM when true.
10972 * emit-rtl.c (change_address_1): Likewise.
10973 (adjust_address_1, adjust_automodify_address_1, offset_address):
10974 Update accordingly.
10975 * rtl.h (plus_constant): Add an inplace argument.
10976 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10977 when true. Avoid generating (plus X (const_int 0)).
10978 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10979 in-place. Pass true to plus_constant.
10980 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10982 2014-05-16 Dehao Chen <dehao@google.com>
10984 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10986 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10989 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
10991 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
10993 2014-05-16 Dehao Chen <dehao@google.com>
10995 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
10996 optimize_function_for_size_p.
10997 * regs.h (REG_FREQ_FROM_BB): Likewise.
10999 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11002 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11003 negt_reg_operand cases.
11004 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11006 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11008 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11010 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11013 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11016 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11018 * tree-cfg.c (dump_function_to_file): Dump the return type of
11019 functions, in a line to itself before the function body, mimicking
11020 the layout of a C function.
11022 2014-05-16 Dehao Chen <dehao@google.com>
11024 * cfghooks.c (make_forwarder_block): Use direct computation to
11025 get fall-through edge's count and frequency.
11027 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11029 * config/arc/arc.c (arc_init): Fix typo in error message.
11030 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11031 (split_stack_prologue_scratch_regno): Likewise.
11032 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11033 word from error message.
11035 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11037 * ira-costs.c: Fix typo in comment.
11039 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11041 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11043 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11045 * varpool.c (dump_varpool_node): Dump write-only flag.
11046 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11048 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11049 write-only variables.
11050 * ipa.c (process_references): New function.
11051 (set_readonly_bit): New function.
11052 (set_writeonly_bit): New function.
11053 (clear_addressable_bit): New function.
11054 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11055 fix handling of aliases.
11056 * cgraph.h (struct varpool_node): Add writeonly flag.
11058 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11060 PR rtl-optimization/60969
11061 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11062 Calculate costs for this case.
11064 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11066 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11067 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11069 2014-05-16 Richard Biener <rguenther@suse.de>
11071 PR tree-optimization/61194
11072 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11073 bool patterns ending in a COND_EXPR.
11075 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11077 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11081 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11082 where we were unable to cost an RTX.
11084 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11086 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11089 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11090 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11092 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11094 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11095 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11097 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11098 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11100 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11101 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11106 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11107 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11109 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11112 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11113 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11115 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11116 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11118 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11119 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11121 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11122 rotates and shifts.
11124 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11125 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11127 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11128 ZERO_EXTEND and SIGN_EXTEND better.
11130 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11131 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11133 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11134 logical operations.
11136 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11137 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11139 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11140 costs when costing loads and stores to memory.
11142 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11143 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11145 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11148 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11150 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11152 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11153 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11155 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11157 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11159 (aarch64_rtx_mult_cost): New.
11160 (aarch64_rtx_costs): Use it, refactor as appropriate.
11162 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11163 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11165 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11166 emit instructions, return number of instructions which would
11168 (aarch64_add_constant): Update call to aarch64_build_constant.
11169 (aarch64_output_mi_thunk): Likewise.
11170 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11173 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11175 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11176 (TARGET_RTX_COSTS): Call it.
11178 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11180 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11181 (cortexa57_vector_cost): Likewise.
11182 (cortexa57_tunings): Use them.
11184 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11186 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11187 (cpu_addrcost_table): Use it.
11188 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11189 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11192 2014-05-16 Richard Biener <rguenther@suse.de>
11194 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11195 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11196 (visit_phi): Ignore edges marked as not executable.
11197 (class cond_dom_walker): New.
11198 (cond_dom_walker::before_dom_children): Value-number
11199 control statements and mark successor edges as not
11200 executable if possible.
11201 (run_scc_vn): First walk all control statements in
11202 dominator order, marking edges as not executable.
11203 * tree-inline.c (copy_edges_for_bb): Be not confused
11204 about random edge flags.
11206 2014-05-16 Richard Biener <rguenther@suse.de>
11208 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11210 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11213 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11214 (__TM_simple_begin): Use it.
11215 (__TM_begin): Likewise.
11217 2014-05-15 Martin Jambor <mjambor@suse.cz>
11220 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11221 type_preserved flag when the indirect edge is polymorphic.
11223 2014-05-15 Martin Jambor <mjambor@suse.cz>
11225 PR tree-optimization/61090
11226 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11227 build_ref_for_model.
11229 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11231 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11232 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11234 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11236 PR tree-optimization/61158
11237 * fold-const.c (fold_binary_loc): If X is zero-extended and
11238 shiftc >= prec, make sure zerobits is all ones instead of
11239 invoking undefined behavior.
11241 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11243 * regcprop.h: New file.
11244 * regcprop.c (skip_debug_insn_p): New decl.
11245 (replace_oldest_value_reg): Check skip_debug_insn_p.
11246 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11247 * shrink-wrap.c: Include regcprop.h.
11248 (prepare_shrink_wrap): Call
11249 copyprop_hardreg_forward_bb_without_debug_insn.
11251 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11253 * shrink-wrap.h: Update comment.
11254 * shrink-wrap.c: Update comment.
11255 (next_block_for_reg): Rename to live_edge_for_reg.
11256 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11257 (move_insn_for_shrink_wrap): Split live_edge.
11258 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11260 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11262 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11264 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11265 * config/sparc/sparc.md (fptype_ut699): New attribute.
11266 (in_branch_delay): Return false if -mfix-ut699 is specified and
11267 fptype_ut699 is set to single.
11268 (truncdfsf2): Add fptype_ut699 attribute.
11269 (fix_truncdfsi2): Likewise.
11270 (floatsisf2): Change fptype attribute.
11271 (fix_truncsfsi2): Likewise.
11272 (negtf2_notv9): Delete.
11273 (negtf2_v9): Likewise.
11274 (negtf2_hq): New instruction.
11275 (negtf2): New instruction and splitter.
11276 (negdf2_notv9): Rewrite.
11277 (abstf2_notv9): Delete.
11278 (abstf2_hq_v9): Likewise.
11279 (abstf2_v9): Likewise.
11280 (abstf2_hq): New instruction.
11281 (abstf2): New instruction and splitter.
11282 (absdf2_notv9): Rewrite.
11284 2014-05-14 Cary Coutant <ccoutant@google.com>
11287 * opts.c (common_handle_option): Don't special-case "-g".
11288 (set_debug_level): Default to at least level 2 with "-g".
11290 2014-05-14 DJ Delorie <dj@redhat.com>
11292 * config/msp430/msp430.c (msp430_builtin): Add
11293 MSP430_BUILTIN_DELAY_CYCLES.
11294 (msp430_init_builtins): Register void __delay_cycles(long long).
11295 (msp430_builtin_decl): Add it.
11296 (cg_magic_constant): New.
11297 (msp430_expand_delay_cycles): New.
11298 (msp430_expand_builtin): Call it.
11299 (msp430_print_operand_raw): Change integer printing from "int" to
11301 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11302 (delay_cycles_start): New.
11303 (delay_cycles_end): New.
11304 (delay_cycles_32): New.
11305 (delay_cycles_32x): New.
11306 (delay_cycles_16): New.
11307 (delay_cycles_16x): New.
11308 (delay_cycles_2): New.
11309 (delay_cycles_1): New.
11310 * doc/extend.texi: Document __delay_cycles().
11312 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11314 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11315 length attribute computation.
11317 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11320 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11322 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11325 * config/sparc/sparc.md: Fix types of low and high in DI constant
11326 splitter. Use gen_int_mode in some other splitters.
11328 2014-05-14 Martin Jambor <mjambor@suse.cz>
11331 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11333 2014-05-14 James Norris <jnorris@codesourcery.com>
11335 * omp-low.c (expand_parallel_call): Remove shadow variable.
11336 (expand_omp_taskreg): Likewise.
11338 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11340 * common/config/i386/i386-common.c
11341 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11342 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11343 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11344 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11345 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11346 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11347 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11348 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11349 xsavecintrin.h, xsavesintrin.h.
11350 (x86_64-*-*): Ditto.
11351 * config/i386/clflushoptintrin.h: New.
11352 * config/i386/xsavecintrin.h: Ditto.
11353 * config/i386/xsavesintrin.h: Ditto.
11354 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11355 (bit_XSAVES): Ditto.
11356 (bit_XSAVES): Ditto.
11357 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11358 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11360 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11361 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11362 OPTION_MASK_ISA_XSAVES.
11363 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11364 -mxsavec, -mxsaves.
11365 (PTA_CLFLUSHOPT) Define.
11366 (PTA_XSAVEC): Ditto.
11367 (PTA_XSAVES): Ditto.
11368 (ix86_option_override_internal): Handle new options.
11369 (ix86_valid_target_attribute_inner_p): Ditto.
11370 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11371 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11372 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11373 (bdesc_special_args): Add __builtin_ia32_xsaves,
11374 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11375 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11376 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11377 (ix86_expand_builtin): Handle new builtins.
11378 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11379 (TARGET_CLFLUSHOPT_P): Ditto.
11380 (TARGET_XSAVEC): Ditto.
11381 (TARGET_XSAVEC_P): Ditto.
11382 (TARGET_XSAVES): Ditto.
11383 (TARGET_XSAVES_P): Ditto.
11384 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11385 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11386 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11388 (ANY_XRSTOR64): Ditto.
11390 (xrstor): Change into <xrstor>.
11391 (xrstor_rex64): Change into <xrstor>_rex64.
11392 (xrstor64): Change into <xrstor>64
11394 * config/i386/i386.opt (mclflushopt): New.
11397 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11399 * doc/invoke.texi: Document new options.
11401 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11403 PR rtl-optimization/60866
11404 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11405 Default it to -1. Pass it down to init_simplejump_data.
11406 (init_simplejump_data): New parameter old_seqno. Pass it down
11407 to get_seqno_for_a_jump.
11408 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11409 initializing new jump seqno as a last resort. Add comment.
11410 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11411 jump and pass it down to sel_init_new_insn.
11412 (sel_redirect_edge_and_branch_force): Likewise.
11414 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11416 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11417 shifted values to avoid build warning.
11419 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11421 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11422 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11423 (cfg_layout_merge_blocks): Likewise.
11424 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11426 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11428 PR rtl-optimization/60901
11429 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11430 bb predecessor belongs to the same scheduling region. Adjust comment.
11432 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11434 * doc/sourcebuild.texi: (dfp_hw): Document.
11435 (p8vector_hw): Likewise.
11436 (powerpc_eabi_ok): Likewise.
11437 (powerpc_elfv2): Likewise.
11438 (powerpc_htm_ok): Likewise.
11439 (ppc_recip_hw): Likewise.
11440 (vsx_hw): Likewise.
11442 2014-05-13 Cary Coutant <ccoutant@google.com>
11444 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11446 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11448 * gengtype-parse.c (require3): Eliminate in favor of...
11450 (require_template_declaration): Update to support optional single *
11453 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11454 (create_user_defined_type): Handle a single level of explicit
11455 pointerness within template arguments.
11456 (struct write_types_data): Add field "kind".
11457 (filter_type_name): Handle "*" character.
11458 (write_user_func_for_structure_ptr): Require a write_types_data
11459 rather than just a prefix string, so that we can look up the kind
11460 of the wtd and use it as an index into wrote_user_func_for_ptr,
11461 ensuring that such functions are written at most once. Support
11462 subclasses by invoking the marking function of the ultimate base class.
11463 (write_user_func_for_structure_body): Require a write_types_data
11464 rather than just a prefix string, so that we can pass this to
11465 write_user_func_for_structure_ptr.
11466 (write_func_for_structure): Likewise.
11467 (ggc_wtd): Add initializer of new "kind" field.
11468 (pch_wtd): Likewise.
11470 * gengtype.h (enum write_types_kinds): New.
11471 (struct type): Add field wrote_user_func_for_ptr to the "s"
11474 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11476 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11477 instead of const_binop.
11478 (fold_binary_loc): Likewise.
11480 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11482 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11483 calculation to match get_ref_base_and_extent.
11485 2014-05-13 Catherine Moore <clm@codesourcery.com>
11486 Sandra Loosemore <sandra@codesourcery.com>
11488 * configure.ac: Fix assembly for explicit JALR relocation check.
11489 * configure: Regenerate.
11491 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11493 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11494 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11495 Remove associated type declarations and initialisations.
11496 (arm_expand_neon_builtin): Likewise.
11497 (neon_emit_pair_result_insn): Delete.
11498 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11499 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11500 (neon_vzip<mode>): Likewise.
11501 (neon_vuzp<mode>): Likewise.
11503 2014-05-13 Richard Biener <rguenther@suse.de>
11506 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11507 it needs revisiting whether the call still may be tail-called.
11509 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11511 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11512 * rtl.h (block_symbol): Reduce number of fields to 2.
11513 (rtx_def): Add u2.symbol_ref_flags.
11514 (SYMBOL_REF_FLAGS): Use it.
11515 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11516 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11517 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11518 Lower index of SYMBOL_REF_DATA.
11519 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11520 Print SYMBOL_REF_FLAGS at the same time.
11521 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11523 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11525 * rtl.def (VAR_LOCATION): Remove "i" field.
11526 * rtl.h (rtx_def): Add u2.var_location_status.
11527 (PAT_VAR_LOCATION_STATUS): Use it.
11528 (gen_rtx_VAR_LOCATION): Declare.
11529 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11530 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11531 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11533 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11535 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11536 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11538 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11540 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11541 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11542 * rtl.h (rtx_def): Add insn_uid to u2 field.
11543 (RTX_FLAG_CHECK8): Delete in favor of...
11544 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11545 (INSN_DELETED_P): Update accordingly.
11546 (INSN_UID): Use u2.insn_uid.
11547 (INSN_CHAIN_CODE_P): Define.
11548 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11549 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11550 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11551 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11552 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11553 indices accordingly.
11554 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11555 Update indices for insn-chain rtxes.
11556 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11557 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11558 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11559 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11560 * combine.c (try_combine): Likewise.
11561 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11563 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11565 * rtl.def (REG): Remove middle field.
11566 * rtl.h (rtx_def): Add orignal_regno to u2.
11567 (ORIGINAL_REGNO): Use it instead of field 1.
11568 (REG_ATTRS): Lower field index accordingly.
11569 * gengtype.c (adjust_field_rtx_def): Remove handling of
11570 ORIGINAL_REGNO. Move REG_ATTRS index down.
11571 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11572 code that prints the REGNO.
11574 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11576 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11579 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11581 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11583 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11585 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11586 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11588 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11590 * config/aarch64/aarch64-protos.h
11591 (aarch64_hard_regno_caller_save_mode): New prototype.
11592 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11594 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11596 2014-05-13 Christian Bruel <christian.bruel@st.com>
11598 * target.def (mode_switching): New hook vector.
11599 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11600 (mode_exit, modepriority_to_mode): Likewise.
11601 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11602 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11603 * target.h: Include tm.h and hard-reg-set.h.
11604 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11605 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11606 * doc/tm.texi Regenerate.
11607 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11608 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11609 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11610 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11611 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11612 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11613 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11614 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11615 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11616 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11617 (ix86_emit_mode_set): Hookify.
11618 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11620 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11621 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11622 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11623 (epiphany_mode_priority_to_mode): Remove declaration.
11624 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11625 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11626 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11628 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11629 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11630 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11632 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11635 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11636 is const0_rtx, return immediately. Don't test count == 0 when
11639 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11641 * Makefile.in: add shrink-wrap.o.
11642 * config/i386/i386.c: include "shrink-wrap.h"
11643 * function.c: Likewise.
11644 (requires_stack_frame_p, next_block_for_reg,
11645 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11646 dup_block_and_redirect): Move to shrink-wrap.c
11647 (thread_prologue_and_epilogue_insns): Extract three code segments
11648 as functions in shrink-wrap.c
11649 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11651 * shrink-wrap.c: New file.
11652 * shrink-wrap.h: New file.
11654 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11656 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11657 reference to Solaris.
11659 2014-05-12 Mike Stump <mikestump@comcast.net>
11662 * genattrtab.c (filename): Add.
11663 (convert_set_attr_alternative): Improve error message.
11664 (check_defs): Restore read_md_filename for error messages.
11665 (gen_insn): Save filename.
11667 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11669 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11670 -fno-local-ivars and -fivar-visibility.
11671 * c-family/c.opt: Make -Wshadow also implicitly enable
11674 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11676 * doc/tm.texi: Remove reference to deleted macro.
11677 * doc/tm.texi.in: Likewise.
11679 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11682 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11685 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11688 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11689 * config/arm/aout.h (License): Same.
11690 * config/arm/bpabi.h (License): Same.
11691 * config/arm/elf.h (License): Same.
11692 * config/arm/linux-elf.h (License): Same.
11693 * config/arm/linux-gas.h (License): Same.
11694 * config/arm/netbsd-elf.h (License): Same.
11695 * config/arm/uclinux-eabi.h (License): Same.
11696 * config/arm/uclinux-elf.h (License): Same.
11697 * config/arm/vxworks.h (License): Same.
11699 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11701 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11702 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11703 number of operands to 3.
11704 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11705 * tree-nested.c (convert_nonlocal_omp_clauses,
11706 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11707 * gimplify.c (gimplify_scan_omp_clauses): Handle
11708 OMP_CLAUSE_LINEAR_STMT.
11709 * omp-low.c (lower_rec_input_clauses): Fix typo.
11710 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11711 cast between Fortran boolean_type_node and C _Bool if
11714 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11716 PR tree-optimization/61136
11717 * wide-int.h (multiple_of_p): Define a version that doesn't return
11719 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11720 integer_zerop/const_binop pair.
11721 (multiple_of_p): Likewise, converting both operands to widest_int
11724 2014-05-09 Teresa Johnson <tejohnson@google.com>
11726 * cgraphunit.c (analyze_functions): Use correct dump file.
11728 2014-05-09 Florian Weimer <fweimer@redhat.com>
11730 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11732 (stack_protect_return_slot_p): New function.
11733 (expand_used_vars): Call stack_protect_decl_p and
11734 stack_protect_return_slot_p for -fstack-protector-strong.
11736 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11737 Andrew Haley <aph@redhat.com>
11738 Richard Sandiford <rdsandiford@googlemail.com>
11740 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11743 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11745 PR middle-end/61111
11746 * fold-const.c (fold_binary_loc): Changed width of mask.
11748 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11750 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11751 unsigned int initializers for regno_in, regno_out.
11753 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11756 * config/avr/avr.md (cc): Add new attribute set_vzn.
11757 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11758 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11759 with INC, DEC or NEG.
11760 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11761 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11762 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11764 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11767 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11769 * wide-int.cc (UTItype): Define.
11770 (UDWtype): Define for appropriate W_TYPE_SIZE.
11772 2014-05-09 Richard Biener <rguenther@suse.de>
11774 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11775 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11776 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11777 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11778 ssa_propagate): Adjust.
11780 2014-05-08 Jeff Law <law@redhat.com>
11782 PR tree-optimization/61009
11783 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11784 tri-state rather than a boolean. When a block is too big to
11785 thread through, inform caller via negative return value.
11786 (thread_across_edge): If a block was too big for normal threading,
11787 then it's too big for a joiner too, so remove temporary equivalences
11788 and return immediately.
11790 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11791 Matthias Klose <doko@ubuntu.com>
11794 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11796 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11799 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11801 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11804 * config/alpha/alpha.c: Include gimple-iterator.h.
11805 (alpha_gimple_fold_builtin): New function. Move
11806 ALPHA_BUILTIN_UMULH folding from ...
11807 (alpha_fold_builtin): ... here.
11808 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11810 2014-05-08 Wei Mi <wmi@google.com>
11813 * config/i386/i386.c (ix86_compute_frame_layout): Update
11814 preferred_stack_boundary for call, expanded from tls descriptor.
11815 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11816 to depend on SP register.
11817 (*tls_local_dynamic_base_32_gnu): Ditto.
11818 (*tls_local_dynamic_32_once): Ditto.
11819 (tls_global_dynamic_64_<mode>): Set
11820 ix86_tls_descriptor_calls_expanded_in_cfun.
11821 (tls_local_dynamic_base_64_<mode>): Ditto.
11822 (tls_global_dynamic_32): Set
11823 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11824 to depend on SP register.
11825 (tls_local_dynamic_base_32): Ditto.
11827 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11829 * config/arm/arm_neon.h: Update comment.
11830 * config/arm/neon-docgen.ml: Delete.
11831 * config/arm/neon-gen.ml: Delete.
11832 * doc/arm-neon-intrinsics.texi: Update comment.
11834 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11836 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11838 (vand, vorr, veor, vorn, vbic): Remove.
11839 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11841 (neon_vsub_unspec): Likewise.
11842 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11844 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11846 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11847 (vadd_s16): Likewise.
11848 (vadd_s32): Likewise.
11849 (vadd_f32): Likewise.
11850 (vadd_u8): Likewise.
11851 (vadd_u16): Likewise.
11852 (vadd_u32): Likewise.
11853 (vadd_s64): Likewise.
11854 (vadd_u64): Likewise.
11855 (vaddq_s8): Likewise.
11856 (vaddq_s16): Likewise.
11857 (vaddq_s32): Likewise.
11858 (vaddq_s64): Likewise.
11859 (vaddq_f32): Likewise.
11860 (vaddq_u8): Likewise.
11861 (vaddq_u16): Likewise.
11862 (vaddq_u32): Likewise.
11863 (vaddq_u64): Likewise.
11864 (vmul_s8): Likewise.
11865 (vmul_s16): Likewise.
11866 (vmul_s32): Likewise.
11867 (vmul_f32): Likewise.
11868 (vmul_u8): Likewise.
11869 (vmul_u16): Likewise.
11870 (vmul_u32): Likewise.
11871 (vmul_p8): Likewise.
11872 (vmulq_s8): Likewise.
11873 (vmulq_s16): Likewise.
11874 (vmulq_s32): Likewise.
11875 (vmulq_f32): Likewise.
11876 (vmulq_u8): Likewise.
11877 (vmulq_u16): Likewise.
11878 (vmulq_u32): Likewise.
11879 (vsub_s8): Likewise.
11880 (vsub_s16): Likewise.
11881 (vsub_s32): Likewise.
11882 (vsub_f32): Likewise.
11883 (vsub_u8): Likewise.
11884 (vsub_u16): Likewise.
11885 (vsub_u32): Likewise.
11886 (vsub_s64): Likewise.
11887 (vsub_u64): Likewise.
11888 (vsubq_s8): Likewise.
11889 (vsubq_s16): Likewise.
11890 (vsubq_s32): Likewise.
11891 (vsubq_s64): Likewise.
11892 (vsubq_f32): Likewise.
11893 (vsubq_u8): Likewise.
11894 (vsubq_u16): Likewise.
11895 (vsubq_u32): Likewise.
11896 (vsubq_u64): Likewise.
11897 (vand_s8): Likewise.
11898 (vand_s16): Likewise.
11899 (vand_s32): Likewise.
11900 (vand_u8): Likewise.
11901 (vand_u16): Likewise.
11902 (vand_u32): Likewise.
11903 (vand_s64): Likewise.
11904 (vand_u64): Likewise.
11905 (vandq_s8): Likewise.
11906 (vandq_s16): Likewise.
11907 (vandq_s32): Likewise.
11908 (vandq_s64): Likewise.
11909 (vandq_u8): Likewise.
11910 (vandq_u16): Likewise.
11911 (vandq_u32): Likewise.
11912 (vandq_u64): Likewise.
11913 (vorr_s8): Likewise.
11914 (vorr_s16): Likewise.
11915 (vorr_s32): Likewise.
11916 (vorr_u8): Likewise.
11917 (vorr_u16): Likewise.
11918 (vorr_u32): Likewise.
11919 (vorr_s64): Likewise.
11920 (vorr_u64): Likewise.
11921 (vorrq_s8): Likewise.
11922 (vorrq_s16): Likewise.
11923 (vorrq_s32): Likewise.
11924 (vorrq_s64): Likewise.
11925 (vorrq_u8): Likewise.
11926 (vorrq_u16): Likewise.
11927 (vorrq_u32): Likewise.
11928 (vorrq_u64): Likewise.
11929 (veor_s8): Likewise.
11930 (veor_s16): Likewise.
11931 (veor_s32): Likewise.
11932 (veor_u8): Likewise.
11933 (veor_u16): Likewise.
11934 (veor_u32): Likewise.
11935 (veor_s64): Likewise.
11936 (veor_u64): Likewise.
11937 (veorq_s8): Likewise.
11938 (veorq_s16): Likewise.
11939 (veorq_s32): Likewise.
11940 (veorq_s64): Likewise.
11941 (veorq_u8): Likewise.
11942 (veorq_u16): Likewise.
11943 (veorq_u32): Likewise.
11944 (veorq_u64): Likewise.
11945 (vbic_s8): Likewise.
11946 (vbic_s16): Likewise.
11947 (vbic_s32): Likewise.
11948 (vbic_u8): Likewise.
11949 (vbic_u16): Likewise.
11950 (vbic_u32): Likewise.
11951 (vbic_s64): Likewise.
11952 (vbic_u64): Likewise.
11953 (vbicq_s8): Likewise.
11954 (vbicq_s16): Likewise.
11955 (vbicq_s32): Likewise.
11956 (vbicq_s64): Likewise.
11957 (vbicq_u8): Likewise.
11958 (vbicq_u16): Likewise.
11959 (vbicq_u32): Likewise.
11960 (vbicq_u64): Likewise.
11961 (vorn_s8): Likewise.
11962 (vorn_s16): Likewise.
11963 (vorn_s32): Likewise.
11964 (vorn_u8): Likewise.
11965 (vorn_u16): Likewise.
11966 (vorn_u32): Likewise.
11967 (vorn_s64): Likewise.
11968 (vorn_u64): Likewise.
11969 (vornq_s8): Likewise.
11970 (vornq_s16): Likewise.
11971 (vornq_s32): Likewise.
11972 (vornq_s64): Likewise.
11973 (vornq_u8): Likewise.
11974 (vornq_u16): Likewise.
11975 (vornq_u32): Likewise.
11976 (vornq_u64): Likewise.
11978 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11980 * wide-int.cc (UTItype): Define.
11981 (UDWtype): Define for appropriate W_TYPE_SIZE.
11983 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11985 PR tree-optimization/59100
11986 * tree-ssa-phiopt.c: Include tree-inline.h.
11987 (neutral_element_p, absorbing_element_p): New functions.
11988 (value_replacement): Handle conditional binary operations with a
11989 neutral or absorbing element.
11991 2014-05-08 Richard Biener <rguenther@suse.de>
11993 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
11994 folding the expression.
11995 (valueize_expr): Remove.
11996 (visit_reference_op_load): Do not valueize the result of
11998 (simplify_binary_expression): Likewise.
11999 (simplify_unary_expression): Likewise.
12001 2014-05-08 Richard Biener <rguenther@suse.de>
12003 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12004 looking at TYPE_ARG_TYPES.
12006 2014-05-08 Richard Biener <rguenther@suse.de>
12008 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12009 pointer propagation special-case.
12011 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12013 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12014 core part of address expressions.
12016 2014-05-08 Alan Modra <amodra@gmail.com>
12019 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12020 loads and stores when -mno-strict-align at any alignment.
12021 (expand_block_clear): Similarly. Also correct calculation of
12024 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12026 PR middle-end/39246
12027 * tree-complex.c (expand_complex_move): Keep line info when expanding
12029 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12030 of complex expression. Use new argument to display correct location
12031 for values coming from phi statement.
12032 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12033 (warn_uninitialized_phi): Pass location of phi argument to
12035 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12036 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12038 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12040 * config/rs6000/predicates.md (indexed_address_mem): New.
12041 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12042 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12043 fpstore_ux, fpstore_u.
12044 (sign_extend, indexed, update): New.
12045 (cell_micro): Adjust.
12046 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12047 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12048 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12049 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12050 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12051 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12052 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12053 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12054 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12055 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12056 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12057 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12058 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12059 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12060 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12062 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12063 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12064 *vsx_extract_<mode>_store): Adjust.
12065 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12066 is_cracked_insn, insn_must_be_first_in_group,
12067 insn_must_be_last_in_group): Adjust.
12069 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12071 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12072 ppc440-fpstore): Adjust.
12073 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12074 ppc476-fpstore): Adjust.
12075 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12076 ppc601-fpstore): Adjust.
12077 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12079 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12081 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12082 ppc7450-fpstore): Adjust.
12083 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12084 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12085 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12087 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12088 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12089 cell-fpstore, cell-fpstore-update): Adjust.
12090 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12091 ppce300c3_store, ppce300c3_fpstore): Adjust.
12092 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12093 e500mc_fpstore): Adjust.
12094 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12095 e500mc64_store, e500mc64_fpstore): Adjust.
12096 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12097 e5500_fpstore): Adjust.
12098 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12099 e6500_fpstore): Adjust.
12100 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12102 * config/rs6000/power4.md (power4-load, power4-load-ext,
12103 power4-load-ext-update, power4-load-ext-update-indexed,
12104 power4-load-update-indexed, power4-load-update, power4-fpload,
12105 power4-fpload-update, power4-store, power4-store-update,
12106 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12108 * config/rs6000/power5.md (power5-load, power5-load-ext,
12109 power5-load-ext-update, power5-load-ext-update-indexed,
12110 power5-load-update-indexed, power5-load-update, power5-fpload,
12111 power5-fpload-update, power5-store, power5-store-update,
12112 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12114 * config/rs6000/power6.md (power6-load, power6-load-ext,
12115 power6-load-update, power6-load-update-indexed,
12116 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12117 power6-fpload-update, power6-store, power6-store-update,
12118 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12120 * config/rs6000/power7.md (power7-load, power7-load-ext,
12121 power7-load-update, power7-load-update-indexed,
12122 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12123 power7-fpload-update, power7-store, power7-store-update,
12124 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12126 * config/rs6000/power8.md (power8-load, power8-load-update,
12127 power8-load-ext, power8-load-ext-update, power8-fpload,
12128 power8-fpload-update, power8-store, power8-store-update-indexed,
12129 power8-fpstore, power8-fpstore-update): Adjust.
12130 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12132 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12133 titan_lsu_store, titan_lsu_fpstore): Adjust.
12134 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12136 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12139 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12140 unrolled byte insns. Emit address increments after move insns.
12142 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12144 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12145 const_gimple, rather than a gimple.
12146 (gimple_call_builtin_p): Likewise, for the three variants.
12148 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12149 (gimple_call_builtin_p): Likewise, for the three variants.
12151 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12153 PR tree-optimization/61095
12154 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12156 2014-05-07 Richard Biener <rguenther@suse.de>
12158 PR tree-optimization/61034
12159 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12160 (maybe_skip_until): Use translate to take into account
12161 lattices when trying to do disambiguations.
12162 (get_continuation_for_phi_1): Likewise.
12163 (get_continuation_for_phi): Adjust for added translate arguments.
12164 (walk_non_aliased_vuses): Likewise.
12165 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12166 (walk_non_aliased_vuses): Likewise.
12167 (call_may_clobber_ref_p_1): Declare.
12168 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12169 calls. Stop early if we are only supposed to disambiguate.
12170 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12172 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12174 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12175 Emit an error when the function has arguments.
12177 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12179 * cfgloop.h (unswitch_loops): Remove.
12180 * doc/passes.texi: Remove references to loop-unswitch.c
12181 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12183 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12185 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12186 check for loads group of length 3.
12187 (vect_permute_load_chain): New permutations for loads group of
12189 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12190 of vec_perm_shuffle for the new permutations.
12192 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12194 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12195 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12196 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12197 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12198 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12199 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12200 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12201 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12203 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12205 * loop-unswitch.c: Delete.
12207 2014-05-07 Richard Biener <rguenther@suse.de>
12209 * config.gcc: Always set need_64bit_hwint to yes.
12211 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12213 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12214 of using optimize_size.
12216 2014-05-06 Mike Stump <mikestump@comcast.net>
12218 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12220 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12222 * config/i386/sse.md (*mov<mode>_internal)
12223 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12224 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12225 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12226 (*<code><mode>3, *andnot<mode>3<mask_name>)
12227 (<mask_codefor><code><mode>3<mask_name>): Only consider
12228 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12230 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12233 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12235 * lra-constraints.c (valid_address_p): Move earlier in file.
12236 Add a constraint argument to the address_info version.
12237 (satisfies_memory_constraint_p): New function.
12238 (satisfies_address_constraint_p): Likewise.
12239 (process_alt_operands, curr_insn_transform): Use them.
12240 (process_address): Pass the constraint to valid_address_p when
12241 checking address operands.
12243 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12245 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12246 to their respective blocks. Fix inadvertent use of "node".
12248 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12250 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12252 (init_emit_once): ...here.
12253 * rtl.h (init_derived_machine_modes): Declare.
12254 * toplev.c (do_compile): Call it even if no_backend.
12256 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12257 Mike Stump <mikestump@comcast.net>
12258 Richard Sandiford <rdsandiford@googlemail.com>
12259 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12261 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12262 (rtx_equal_for_memref_p): Update comment.
12263 (adjust_offset_for_component_ref): Use wide-int interfaces.
12264 * builtins.c (get_object_alignment_2): Likewise.
12265 (c_readstr): Likewise.
12266 (target_char_cast): Add comment.
12267 (determine_block_size): Use wide-int interfaces.
12268 (expand_builtin_signbit): Likewise.
12269 (fold_builtin_int_roundingfn): Likewise.
12270 (fold_builtin_bitop): Likewise.
12271 (fold_builtin_bswap): Likewise.
12272 (fold_builtin_logarithm): Use signop.
12273 (fold_builtin_pow): Likewise.
12274 (fold_builtin_memory_op): Use wide-int interfaces.
12275 (fold_builtin_object_size): Likewise.
12276 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12277 nb_iterations_estimate.
12278 (record_niter_bound): Use wide-int interfaces.
12279 (get_estimated_loop_iterations_int): Likewise.
12280 (get_estimated_loop_iterations): Likewise.
12281 (get_max_loop_iterations): Likewise.
12282 * cfgloop.h: Include wide-int.h.
12283 (struct nb_iter_bound): Change bound to widest_int.
12284 (struct loop): Change nb_iterations_upper_bound and
12285 nb_iterations_estimate to widest_int.
12286 (record_niter_bound): Switch to use widest_int.
12287 (get_estimated_loop_iterations): Likewise.
12288 (get_max_loop_iterations): Likewise.
12289 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12290 update for wide-int.
12291 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12292 * combine.c (try_combine): Likewise.
12293 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12294 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12296 (aarch64_float_const_representable_p): Likewise.
12297 * config/arc/arc.c: Include wide-int.h.
12298 (arc_can_use_doloop_p): Use wide-int interfaces.
12299 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12300 (vfp3_const_double_index): Likewise.
12301 * config/avr/avr.c (avr_out_round): Likewise.
12302 (avr_fold_builtin): Likewise.
12303 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12304 (bfin_can_use_doloop_p): Likewise.
12305 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12306 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12307 * config/i386/i386.c: Include wide-int.h.
12308 (ix86_data_alignment): Use wide-int interfaces.
12309 (ix86_local_alignment): Likewise.
12310 (ix86_emit_swsqrtsf): Update real_from_integer.
12311 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12312 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12313 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12314 (zero_constant): Likewise.
12315 (input_operand): Likewise.
12316 (splat_input_operand): Likewise.
12317 (non_logical_cint_operand): Change const_double to const_wide_int.
12318 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12319 (easy_altivec_constant): Remove comment.
12320 (paired_expand_vector_init): Use CONSTANT_P.
12321 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12322 (rs6000_emit_move): Update checks.
12323 (rs6000_aggregate_candidate): Use wide-int interfaces.
12324 (rs6000_expand_ternop_builtin): Likewise.
12325 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12326 (rs6000_assemble_integer): Likewise.
12327 (rs6000_hash_constant): Likewise.
12328 (output_toc): Likewise.
12329 (rs6000_rtx_costs): Likewise.
12330 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12331 * config/rs6000/rs6000-c.c: Include wide-int.h.
12332 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12333 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12334 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12335 Handle CONST_WIDE_INT.
12336 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12337 Use tree_fits_uhwi_p.
12338 * config/sparc/sparc.c: Include wide-int.h.
12339 (sparc_fold_builtin): Use wide-int interfaces.
12340 * config/vax/vax.c: Include wide-int.h.
12341 (vax_float_literal): Use real_from_integer.
12342 * coretypes.h (struct hwivec_def): New.
12344 (const_hwivec): New.
12345 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12346 (equiv_constant): Handle CONST_WIDE_INT.
12347 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12348 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12349 * dbxout.c (stabstr_U): Use wide-int interfaces.
12350 (dbxout_type): Update to use cst_fits_shwi_p.
12351 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12352 (TARGET_SUPPORTS_WIDE_INT): Add default.
12353 * dfp.c: Include wide-int.h.
12354 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12355 decimal_real_to_integer.
12356 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12357 decimal_real_to_integer.
12358 * doc/generic.texi (Constant expressions): Update for wide_int.
12359 * doc/rtl.texi (const_double): Likewise.
12360 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12361 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12362 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12363 (REAL_VALUE_FROM_INT): Remove.
12364 (TARGET_SUPPORTS_WIDE_INT): New.
12365 * doc/tm.texi: Regenerate.
12366 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12367 * double-int.h: Include wide-int.h.
12368 (struct wi::int_traits): New.
12369 * dwarf2out.c (get_full_len): New.
12370 (dw_val_equal_p): Add case dw_val_class_wide_int.
12371 (size_of_loc_descr): Likewise.
12372 (output_loc_operands): Likewise.
12373 (insert_double): Remove.
12374 (insert_wide_int): New.
12375 (add_AT_wide): New.
12376 (print_die): Add case dw_val_class_wide_int.
12377 (attr_checksum): Likewise.
12378 (attr_checksum_ordered): Likewise.
12379 (same_dw_val_p): Likewise.
12380 (size_of_die): Likewise.
12381 (value_format): Likewise.
12382 (output_die): Likewise.
12383 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12385 (clz_loc_descriptor): Use wide-int interfaces.
12386 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12387 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12388 (round_up_to_align): Use wide-int interfaces.
12389 (field_byte_offset): Likewise.
12390 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12391 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12392 CONST_DOUBLE handling. Use wide-int interfaces.
12393 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12394 (gen_enumeration_type_die): Use add_AT_wide.
12395 (hash_loc_operands): Add case dw_val_class_wide_int.
12396 (compare_loc_operands): Likewise.
12397 * dwarf2out.h: Include wide-int.h.
12398 (wide_int_ptr): New.
12399 (enum dw_val_class): Add dw_val_class_wide_int.
12400 (struct dw_val_struct): Add val_wide.
12401 * emit-rtl.c (const_wide_int_htab): New.
12402 (const_wide_int_htab_hash): New.
12403 (const_wide_int_htab_eq): New.
12404 (lookup_const_wide_int): New.
12405 (const_double_htab_hash): Use wide-int interfaces.
12406 (const_double_htab_eq): Likewise.
12407 (rtx_to_double_int): Conditionally compile for wide-int.
12408 (immed_double_int_const): Rename to immed_wide_int_const and
12409 update for wide-int.
12410 (immed_double_const): Conditionally compile for wide-int.
12411 (init_emit_once): Use wide-int interfaces.
12412 * explow.c (plus_constant): Likewise.
12413 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12414 (lshift_value): Use wide-int interfaces.
12415 (expand_mult): Likewise.
12416 (choose_multiplier): Likewise.
12417 (expand_smod_pow2): Likewise.
12418 (make_tree): Likewise.
12419 * expr.c (convert_modes): Consolidate handling of constants.
12420 Use wide-int interfaces.
12421 (emit_group_load_1): Add note.
12422 (store_expr): Update comment.
12423 (get_inner_reference): Use wide-int interfaces.
12424 (expand_constructor): Update comment.
12425 (expand_expr_real_2): Use wide-int interfaces.
12426 (expand_expr_real_1): Likewise.
12427 (reduce_to_bit_field_precision): Likewise.
12428 (const_vector_from_tree): Likewise.
12429 * final.c: Include wide-int-print.h.
12430 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12431 * fixed-value.c: Include wide-int.h.
12432 (fixed_from_string): Use wide-int interfaces.
12433 (fixed_to_decimal): Likewise.
12434 (fixed_convert_from_real): Likewise.
12435 (real_convert_from_fixed): Likewise.
12436 * fold-const.h (mem_ref_offset): Return an offset_int.
12437 (div_if_zero_remainder): Remove code parameter.
12438 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12439 Use wide-int interfaces.
12440 (may_negate_without_overflow_p): Use wide-int interfaces.
12441 (negate_expr_p): Likewise.
12442 (fold_negate_expr): Likewise.
12443 (int_const_binop_1): Likewise.
12444 (const_binop): Likewise.
12445 (fold_convert_const_int_from_int): Likewise.
12446 (fold_convert_const_int_from_real): Likewise.
12447 (fold_convert_const_int_from_fixed): Likewise.
12448 (fold_convert_const_fixed_from_int): Likewise.
12449 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12450 (sign_bit_p): Use wide-int interfaces.
12451 (make_range_step): Likewise.
12452 (build_range_check): Likewise. Pass an integer of the correct type
12453 instead of using integer_one_node.
12454 (range_predecessor): Pass an integer of the correct type instead
12455 of using integer_one_node.
12456 (range_successor): Likewise.
12457 (merge_ranges): Likewise.
12458 (unextend): Use wide-int interfaces.
12459 (extract_muldiv_1): Likewise.
12460 (fold_div_compare): Likewise.
12461 (fold_single_bit_test): Likewise.
12462 (fold_sign_changed_comparison): Likewise.
12463 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12464 (fold_plusminus_mult_expr): Use wide-int interfaces.
12465 (native_encode_int): Likewise.
12466 (native_interpret_int): Likewise.
12467 (fold_unary_loc): Likewise.
12468 (pointer_may_wrap_p): Likewise.
12469 (size_low_cst): Likewise.
12470 (mask_with_tz): Likewise.
12471 (fold_binary_loc): Likewise.
12472 (fold_ternary_loc): Likewise.
12473 (multiple_of_p): Likewise.
12474 (tree_call_nonnegative_warnv_p): Update calls to
12475 tree_int_cst_min_precision and real_from_integer.
12476 (fold_negate_const): Use wide-int interfaces.
12477 (fold_abs_const): Likewise.
12478 (fold_relational_const): Use tree_int_cst_lt.
12479 (round_up_loc): Use wide-int interfaces.
12480 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12481 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12482 * gengtype.c: Remove include of double-int.h.
12483 (do_typedef): Use wide-int interfaces.
12484 (open_base_files): Add wide-int.h.
12485 (main): Add offset_int and widest_int typedefs.
12486 * gengtype-lex.l: Handle "^".
12487 (CXX_KEYWORD): Add "static".
12488 * gengtype-parse.c (require3): New.
12489 (require_template_declaration): Handle constant template arguments
12490 and nested templates.
12491 * gengtype-state.c: Don't include "double-int.h".
12492 * genpreds.c (write_one_predicate_function): Update comment.
12493 (write_tm_constrs_h): Add check for hval and lval use in
12495 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12496 (add_to_sequence): Likewise.
12497 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12498 and const_double_operand.
12499 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12501 * gimple-fold.c (get_base_constructor): Likewise.
12502 (fold_array_ctor_reference): Likewise.
12503 (fold_nonarray_ctor_reference): Likewise.
12504 (fold_const_aggregate_ref_1): Likewise.
12505 (gimple_val_nonnegative_real_p): Likewise.
12506 (gimple_fold_indirect_ref): Likewise.
12507 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12508 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12509 (struct slsr_cand_d): Change index to be widest_int.
12510 (struct incr_info_d): Change incr to be widest_int.
12511 (alloc_cand_and_find_basis): Use wide-int interfaces.
12512 (slsr_process_phi): Likewise.
12513 (backtrace_base_for_ref): Likewise. Return a widest_int.
12514 (restructure_reference): Take a widest_int instead of a double_int.
12515 (slsr_process_ref): Use wide-int interfaces.
12516 (create_mul_ssa_cand): Likewise.
12517 (create_mul_imm_cand): Likewise.
12518 (create_add_ssa_cand): Likewise.
12519 (create_add_imm_cand): Take a widest_int instead of a double_int.
12520 (slsr_process_add): Use wide-int interfaces.
12521 (slsr_process_cast): Likewise.
12522 (slsr_process_copy): Likewise.
12523 (dump_candidate): Likewise.
12524 (dump_incr_vec): Likewise.
12525 (replace_ref): Likewise.
12526 (cand_increment): Likewise. Return a widest_int.
12527 (cand_abs_increment): Likewise.
12528 (replace_mult_candidate): Take a widest_int instead of a double_int.
12529 (replace_unconditional_candidate): Use wide-int interfaces.
12530 (incr_vec_index): Take a widest_int instead of a double_int.
12531 (create_add_on_incoming_edge): Likewise.
12532 (create_phi_basis): Use wide-int interfaces.
12533 (replace_conditional_candidate): Likewise.
12534 (record_increment): Take a widest_int instead of a double_int.
12535 (record_phi_increments): Use wide-int interfaces.
12536 (phi_incr_cost): Take a widest_int instead of a double_int.
12537 (lowest_cost_path): Likewise.
12538 (total_savings): Likewise.
12539 (analyze_increments): Use wide-int interfaces.
12540 (ncd_with_phi): Take a widest_int instead of a double_int.
12541 (ncd_of_cand_and_phis): Likewise.
12542 (nearest_common_dominator_for_cands): Likewise.
12543 (insert_initializers): Use wide-int interfaces.
12544 (all_phi_incrs_profitable): Likewise.
12545 (replace_one_candidate): Likewise.
12546 (replace_profitable_candidates): Likewise.
12547 * godump.c: Include wide-int-print.h.
12548 (go_output_typedef): Use wide-int interfaces.
12549 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12550 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12551 (build_loop_iteration_domains): Likewise.
12552 * hooks.h: Include wide-int.h rather than double-int.h.
12553 (hook_bool_dint_dint_uint_bool_true): Delete.
12554 (hook_bool_wint_wint_uint_bool_true): Declare.
12555 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12556 (hook_bool_wint_wint_uint_bool_true): New.
12557 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12559 (ubsan_expand_si_overflow_mul_check): Likewise.
12560 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12561 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12562 (get_ancestor_addr_info): Likewise.
12563 (ipa_modify_call_arguments): Likewise.
12564 * loop-doloop.c (doloop_modify): Likewise.
12565 (doloop_optimize): Likewise.
12566 * loop-iv.c (iv_number_of_iterations): Likewise.
12567 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12568 (unroll_loop_constant_iterations): Likewise.
12569 (decide_unroll_runtime_iterations): Likewise.
12570 (unroll_loop_runtime_iterations): Likewise.
12571 (decide_peel_simple): Likewise.
12572 (decide_unroll_stupid): Likewise.
12573 * lto-streamer-in.c (streamer_read_wi): Add.
12574 (input_cfg): Use wide-int interfaces.
12575 (lto_input_tree_1): Likewise.
12576 * lto-streamer-out.c (streamer_write_wi): Add.
12577 (hash_tree): Use wide-int interfaces.
12578 (output_cfg): Likewise.
12579 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12580 (GTFILES): Add wide-int.h and signop.h.
12581 (TAGS): Look for .cc files too.
12582 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12583 * optabs.c (expand_subword_shift): Likewise.
12584 (expand_doubleword_shift): Likewise.
12585 (expand_absneg_bit): Likewise.
12586 (expand_copysign_absneg): Likewise.
12587 (expand_copysign_bit): Likewise.
12588 * postreload.c (reload_cse_simplify_set): Likewise.
12589 * predict.c (predict_iv_comparison): Likewise.
12590 * pretty-print.h: Include wide-int-print.h.
12592 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12593 * print-tree.c: Include wide-int-print.h.
12594 (print_node_brief): Use wide-int interfaces.
12595 (print_node): Likewise.
12596 * read-rtl.c (validate_const_wide_int): New.
12597 (read_rtx_code): Add CONST_WIDE_INT case.
12598 * real.c: Include wide-int.h.
12599 (real_to_integer2): Delete.
12600 (real_to_integer): New function, returning a wide_int.
12601 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12602 (ten_to_ptwo): Update call to real_from_integer.
12603 (real_digit): Likewise.
12604 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12605 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12606 (REAL_VALUE_TO_INT): Delete.
12607 (real_to_integer): Declare a wide-int form.
12608 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12609 * recog.c (const_int_operand): Improve comment.
12610 (const_scalar_int_operand): New.
12611 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12612 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12613 (split_double): Likewise.
12614 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12615 (rtx_size): Likewise.
12616 (rtx_alloc_stat_v): New.
12617 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12618 (cwi_output_hex): New.
12619 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12620 (cwi_check_failed_bounds): New.
12621 * rtl.def (CONST_WIDE_INT): New.
12622 * rtl.h: Include <utility> and wide-int.h.
12623 (struct hwivec_def): New.
12624 (CWI_GET_NUM_ELEM): New.
12625 (CWI_PUT_NUM_ELEM): New.
12626 (struct rtx_def): Add num_elem and hwiv.
12627 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12628 (CASE_CONST_UNIQUE): Likewise.
12629 (CASE_CONST_ANY): Likewise.
12630 (CONST_SCALAR_INT_P): Likewise.
12631 (CONST_WIDE_INT_P): New.
12633 (HWIVEC_CHECK): New.
12634 (cwi_check_failed_bounds): New.
12636 (HWIVEC_CHECK): New.
12637 (CONST_WIDE_INT_VEC) New.
12638 (CONST_WIDE_INT_NUNITS) New.
12639 (CONST_WIDE_INT_ELT) New.
12640 (rtx_mode_t): New type.
12641 (wi::int_traits <rtx_mode_t>): New.
12643 (wi::min_value): New.
12644 (wi::max_value): New.
12646 (const_wide_int_alloc): New.
12647 (immed_wide_int_const): New.
12648 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12649 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12650 * signop.h: New file.
12651 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12652 (simplify_const_unary_operation): Use wide-int interfaces.
12653 (simplify_binary_operation_1): Likewise.
12654 (simplify_const_binary_operation): Likewise.
12655 (simplify_const_relational_operation): Likewise.
12656 (simplify_immed_subreg): Likewise.
12657 * stmt.c (expand_case): Likewise.
12658 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12659 signop rather than a bool.
12660 * stor-layout.c (layout_type): Use wide-int interfaces.
12661 (initialize_sizetypes): Update calls to
12662 set_min_and_max_values_for_integral_type.
12663 (set_min_and_max_values_for_integral_type): Take a signop rather
12664 than a bool. Use wide-int interfaces.
12665 (fixup_signed_type): Update accordingly. Remove
12666 HOST_BITS_PER_DOUBLE_INT limit.
12667 (fixup_unsigned_type): Likewise.
12668 * system.h (STATIC_CONSTANT_P): New.
12669 (STATIC_ASSERT): New.
12670 * target.def (can_use_doloop_p): Take widest_ints rather than
12672 * target.h: Include wide-int.h rather than double-int.h.
12673 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12675 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12676 rather than INT_CST_LT_UNSIGNED.
12677 (can_use_doloop_if_innermost): Take widest_ints rather than
12679 * tree-affine.c: Include wide-int-print.h.
12680 (double_int_ext_for_comb): Delete.
12681 (wide_int_ext_for_comb): New.
12682 (aff_combination_zero): Use wide-int interfaces.
12683 (aff_combination_const): Take a widest_int instead of a double_int.
12684 (aff_combination_elt): Use wide-int interfaces.
12685 (aff_combination_scale): Take a widest_int instead of a double_int.
12686 (aff_combination_add_elt): Likewise.
12687 (aff_combination_add_cst): Likewise.
12688 (aff_combination_add): Use wide-int interfaces.
12689 (aff_combination_convert): Likewise.
12690 (tree_to_aff_combination): Likewise.
12691 (add_elt_to_tree): Take a widest_int instead of a double_int.
12692 (aff_combination_to_tree): Use wide-int interfaces.
12693 (aff_combination_remove_elt): Likewise.
12694 (aff_combination_add_product): Take a widest_int instead of
12696 (aff_combination_mult): Use wide-int interfaces.
12697 (aff_combination_expand): Likewise.
12698 (double_int_constant_multiple_p): Delete.
12699 (wide_int_constant_multiple_p): New.
12700 (aff_combination_constant_multiple_p): Take a widest_int pointer
12701 instead of a double_int pointer.
12702 (print_aff): Use wide-int interfaces.
12703 (get_inner_reference_aff): Take a widest_int pointer
12704 instead of a double_int pointer.
12705 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12706 * tree-affine.h: Include wide-int.h.
12707 (struct aff_comb_elt): Change type of coef to widest_int.
12708 (struct affine_tree_combination): Change type of offset to widest_int.
12709 (double_int_ext_for_comb): Delete.
12710 (wide_int_ext_for_comb): New.
12711 (aff_combination_const): Use widest_int instead of double_int.
12712 (aff_combination_scale): Likewise.
12713 (aff_combination_add_elt): Likewise.
12714 (aff_combination_constant_multiple_p): Likewise.
12715 (get_inner_reference_aff): Likewise.
12716 (aff_comb_cannot_overlap_p): Likewise.
12717 (aff_combination_zero_p): Use wide-int interfaces.
12718 * tree.c: Include tree.h.
12719 (init_ttree): Use make_int_cst.
12720 (tree_code_size): Removed code for INTEGER_CST case.
12721 (tree_size): Add INTEGER_CST case.
12722 (make_node_stat): Update comment.
12723 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12724 (build_int_cst_type): Use wide-int interfaces.
12725 (double_int_to_tree): Likewise.
12726 (double_int_fits_to_tree_p): Delete.
12727 (force_fit_type_double): Delete.
12728 (force_fit_type): New.
12729 (int_cst_hash_hash): Use wide-int interfaces.
12730 (int_cst_hash_eq): Likewise.
12731 (build_int_cst_wide): Delete.
12732 (wide_int_to_tree): New.
12733 (cache_integer_cst): Use wide-int interfaces.
12734 (build_low_bits_mask): Likewise.
12735 (cst_and_fits_in_hwi): Likewise.
12736 (real_value_from_int_cst): Likewise.
12737 (make_int_cst_stat): New.
12738 (integer_zerop): Use wide_int interfaces.
12739 (integer_onep): Likewise.
12740 (integer_all_onesp): Likewise.
12741 (integer_pow2p): Likewise.
12742 (integer_nonzerop): Likewise.
12743 (tree_log2): Likewise.
12744 (tree_floor_log2): Likewise.
12745 (tree_ctz): Likewise.
12746 (int_size_in_bytes): Likewise.
12747 (mem_ref_offset): Return an offset_int rather than a double_int.
12748 (build_type_attribute_qual_variant): Use wide_int interfaces.
12749 (type_hash_eq): Likewise
12750 (tree_int_cst_equal): Likewise.
12751 (tree_int_cst_lt): Delete.
12752 (tree_int_cst_compare): Likewise.
12753 (tree_fits_shwi_p): Use wide_int interfaces.
12754 (tree_fits_uhwi_p): Likewise.
12755 (tree_int_cst_sign_bit): Likewise.
12756 (tree_int_cst_sgn): Likewise.
12757 (tree_int_cst_min_precision): Take a signop rather than a bool.
12758 (simple_cst_equal): Use wide_int interfaces.
12759 (compare_tree_int): Likewise.
12760 (iterative_hash_expr): Likewise.
12761 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12763 (get_type_static_bounds): Use wide_int interfaces.
12764 (tree_int_cst_elt_check_failed): New.
12765 (build_common_tree_nodes): Reordered to set prec before filling in
12767 (int_cst_value): Check cst_and_fits_in_hwi.
12768 (widest_int_cst_value): Use wide_int interfaces.
12769 (upper_bound_in_type): Likewise.
12770 (lower_bound_in_type): Likewise.
12771 (num_ending_zeros): Likewise.
12772 (drop_tree_overflow): Likewise.
12773 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12774 (gen_conditions_for_pow_cst_base): Likewise.
12775 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12776 (group_case_labels_stmt): Use wide-int interfaces.
12777 (verify_gimple_assign_binary): Likewise.
12778 (print_loop): Likewise.
12779 * tree-chrec.c (tree_fold_binomial): Likewise.
12780 * tree-core.h (struct tree_base): Add int_length.
12781 (struct tree_int_cst): Change rep of value.
12782 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12783 (dr_may_alias_p): Likewise.
12784 (max_stmt_executions_tree): Likewise.
12785 * tree.def (INTEGER_CST): Update comment.
12786 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12787 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12788 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12789 (dequeue_and_dump): Use wide-int interfaces.
12790 * tree.h: Include wide-int.h.
12791 (NULL_TREE): Moved to earlier loc in file.
12792 (TREE_INT_CST_ELT_CHECK): New.
12793 (tree_int_cst_elt_check_failed): New.
12795 (TREE_INT_CST): Delete.
12796 (TREE_INT_CST_LOW): Use wide-int interfaces.
12797 (TREE_INT_CST_HIGH): Delete.
12798 (TREE_INT_CST_NUNITS): New.
12799 (TREE_INT_CST_EXT_NUNITS): Likewise.
12800 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12801 (TREE_INT_CST_ELT): Likewise.
12802 (INT_CST_LT): Delete.
12803 (tree_int_cst_elt_check): New (two forms).
12804 (type_code_size): Update comment.
12805 (make_int_cst_stat, make_int_cst): New.
12806 (tree_to_double_int): Delete.
12807 (double_int_fits_to_tree_p): Delete.
12808 (force_fit_type_double): Delete.
12809 (build_int_cstu): Replace with out-of-line function.
12810 (build_int_cst_wide): Delete.
12811 (tree_int_cst_lt): Define inline.
12812 (tree_int_cst_le): New.
12813 (tree_int_cst_compare): Define inline.
12814 (tree_int_cst_min_precision): Take a signop rather than a bool.
12815 (wi::int_traits <const_tree>): New.
12816 (wi::int_traits <tree>): New.
12817 (wi::extended_tree): New.
12818 (wi::int_traits <wi::extended_tree>): New.
12819 (wi::to_widest): New.
12820 (wi::to_offset): New.
12821 (wi::fits_to_tree_p): New.
12822 (wi::min_value): New.
12823 (wi::max_value): New.
12824 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12825 (copy_tree_body_r): Likewise.
12826 * tree-object-size.c (compute_object_offset): Likewise.
12827 (addr_object_size): Likewise.
12828 * tree-predcom.c: Include wide-int-print.h.
12829 (struct dref_d): Change type of offset to widest_int.
12830 (dump_dref): Call wide-int printer.
12831 (aff_combination_dr_offset): Use wide-int interfaces.
12832 (determine_offset): Take a widest_int pointer rather than a
12833 double_int pointer.
12834 (split_data_refs_to_components): Use wide-int interfaces.
12835 (suitable_component_p): Likewise.
12836 (order_drefs): Likewise.
12837 (add_ref_to_chain): Likewise.
12838 (valid_initializer_p): Likewise.
12839 (determine_roots_comp): Likewise.
12840 * tree-pretty-print.c: Include wide-int-print.h.
12841 (dump_generic_node): Use wide-int interfaces.
12842 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12843 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12844 (move_fixed_address_to_symbol): Likewise.
12845 (move_hint_to_base): Likewise.
12846 (move_pointer_to_base): Likewise.
12847 (move_variant_to_index): Likewise.
12848 (most_expensive_mult_to_index): Likewise.
12849 (addr_to_parts): Likewise.
12850 (copy_ref_info): Likewise.
12851 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12852 (indirect_refs_may_alias_p): Likewise.
12853 (stmt_kills_ref_p_1): Likewise.
12854 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12855 * tree-ssa-ccp.c: Update comment at top of file. Include
12857 (struct prop_value_d): Change type of mask to widest_int.
12858 (extend_mask): New function.
12859 (dump_lattice_value): Use wide-int interfaces.
12860 (get_default_value): Likewise.
12861 (set_constant_value): Likewise.
12862 (set_value_varying): Likewise.
12863 (valid_lattice_transition): Likewise.
12864 (set_lattice_value): Likewise.
12865 (value_to_double_int): Delete.
12866 (value_to_wide_int): New.
12867 (get_value_from_alignment): Use wide-int interfaces.
12868 (get_value_for_expr): Likewise.
12869 (do_dbg_cnt): Likewise.
12870 (ccp_finalize): Likewise.
12871 (ccp_lattice_meet): Likewise.
12872 (bit_value_unop_1): Use widest_ints rather than double_ints.
12873 (bit_value_binop_1): Likewise.
12874 (bit_value_unop): Use wide-int interfaces.
12875 (bit_value_binop): Likewise.
12876 (bit_value_assume_aligned): Likewise.
12877 (evaluate_stmt): Likewise.
12878 (ccp_fold_stmt): Likewise.
12879 (visit_cond_stmt): Likewise.
12880 (ccp_visit_stmt): Likewise.
12881 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12882 (constant_pointer_difference): Likewise.
12883 (associate_pointerplus): Likewise.
12884 (combine_conversions): Likewise.
12885 * tree-ssa-loop.h: Include wide-int.h.
12886 (struct tree_niter_desc): Change type of max to widest_int.
12887 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12888 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12889 (remove_redundant_iv_tests): Likewise.
12890 (canonicalize_loop_induction_variables): Likewise.
12891 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12892 (constant_multiple_of): Take a widest_int pointer instead of
12893 a double_int pointer.
12894 (get_computation_aff): Use wide-int interfaces.
12895 (ptr_difference_cost): Likewise.
12896 (difference_cost): Likewise.
12897 (get_loop_invariant_expr_id): Likewise.
12898 (get_computation_cost_at): Likewise.
12899 (iv_elimination_compare_lt): Likewise.
12900 (may_eliminate_iv): Likewise.
12901 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12902 instead of double_int.
12903 (max_loop_iterations): Likewise.
12904 (max_stmt_executions): Likewise.
12905 (estimated_stmt_executions): Likewise.
12906 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12907 (split_to_var_and_offset): Use wide-int interfaces.
12908 (determine_value_range): Likewise.
12909 (bound_difference_of_offsetted_base): Likewise.
12910 (bounds_add): Take a widest_int instead of a double_int.
12911 (number_of_iterations_ne_max): Use wide-int interfaces.
12912 (number_of_iterations_ne): Likewise.
12913 (number_of_iterations_lt_to_ne): Likewise.
12914 (assert_loop_rolls_lt): Likewise.
12915 (number_of_iterations_lt): Likewise.
12916 (number_of_iterations_le): Likewise.
12917 (number_of_iterations_cond): Likewise.
12918 (number_of_iterations_exit): Likewise.
12919 (finite_loop_p): Likewise.
12920 (derive_constant_upper_bound_assign): Likewise.
12921 (derive_constant_upper_bound): Return a widest_int.
12922 (derive_constant_upper_bound_ops): Likewise.
12923 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12924 (record_estimate): Take a widest_int rather than a double_int.
12925 (record_nonwrapping_iv): Use wide-int interfaces.
12926 (double_int_cmp): Delete.
12927 (wide_int_cmp): New.
12928 (bound_index): Take a widest_int rather than a double_int.
12929 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12930 (maybe_lower_iteration_bound): Likewise.
12931 (estimate_numbers_of_iterations_loop): Likewise.
12932 (estimated_loop_iterations): Take a widest_int pointer than than
12933 a double_int pointer.
12934 (estimated_loop_iterations_int): Use wide-int interfaces.
12935 (max_loop_iterations): Take a widest_int pointer than than
12936 a double_int pointer.
12937 (max_loop_iterations_int): Use wide-int interfaces.
12938 (max_stmt_executions): Take a widest_int pointer than than
12939 a double_int pointer.
12940 (estimated_stmt_executions): Likewise.
12941 (n_of_executions_at_most): Use wide-int interfaces.
12942 (scev_probably_wraps_p): Likewise.
12943 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12944 to real_to_integer.
12945 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12947 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12948 double_ints. Adjust for trailing_wide_ints <3> representation.
12949 (set_nonzero_bits): Likewise.
12950 (get_range_info): Return wide_ints rather than double_ints.
12951 Adjust for trailing_wide_ints <3> representation.
12952 (get_nonzero_bits): Likewise.
12953 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12955 * tree-ssanames.h (struct range_info_def): Replace min, max and
12956 nonzero_bits with a trailing_wide_ints <3>.
12957 (set_range_info): Use wide_int_refs rather than double_ints.
12958 (set_nonzero_bits): Likewise.
12959 (get_range_info): Return wide_ints rather than double_ints.
12960 (get_nonzero_bits): Likewise.
12961 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12962 * tree-ssa-pre.c (phi_translate_1): Likewise.
12963 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12964 (acceptable_pow_call): Likewise.
12965 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12967 (vn_reference_fold_indirect): Likewise.
12968 (vn_reference_maybe_forwprop_address): Likewise.
12969 (valueize_refs_1): Likewise.
12970 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12971 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12972 tree_int_cst_lt and tree_int_cst_le.
12973 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12975 (streamer_alloc_tree): Likewise.
12976 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12977 (streamer_write_tree_header): Likewise.
12978 (streamer_write_integer_cst): Likewise.
12979 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12980 (build_constructors): Likewise.
12981 (array_value_type): Likewise.
12982 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12983 (vect_check_gather): Likewise.
12984 * tree-vect-generic.c (build_replicated_const): Likewise.
12985 (expand_vector_divmod): Likewise.
12986 * tree-vect-loop.c (vect_transform_loop): Likewise.
12987 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12988 (vect_do_peeling_for_alignment): Likewise.
12989 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12990 * tree-vrp.c: Include wide-int.h.
12991 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
12992 (extract_range_from_assert): Use wide-int interfaces.
12993 (vrp_int_const_binop): Likewise.
12994 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
12995 double_int pointers.
12996 (ranges_from_anti_range): Use wide-int interfaces.
12997 (quad_int_cmp): Delete.
12998 (quad_int_pair_sort): Likewise.
12999 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13000 (extract_range_from_unary_expr_1): Likewise.
13001 (adjust_range_with_scev): Likewise.
13002 (masked_increment): Take and return wide_ints rather than double_ints.
13003 (register_edge_assert_for_2): Use wide-int interfaces.
13004 (check_array_ref): Likewise.
13005 (search_for_addr_array): Likewise.
13006 (maybe_set_nonzero_bits): Likewise.
13007 (union_ranges): Pass an integer of the correct type instead of
13008 using integer_one_node.
13009 (intersect_ranges): Likewise.
13010 (simplify_truth_ops_using_ranges): Likewise.
13011 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13012 (range_fits_type_p): Likewise.
13013 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13015 (simplify_conversion_using_ranges): Use wide-int interfaces.
13016 (simplify_float_conversion_using_ranges): Likewise.
13017 (vrp_finalize): Likewise.
13018 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13019 (gimple_stringops_transform): Likewise.
13020 * varasm.c (decode_addr_const): Likewise.
13021 (const_hash_1): Likewise.
13022 (const_rtx_hash_1): Likewise
13023 (output_constant): Likewise.
13024 (array_size_for_constructor): Likewise.
13025 (output_constructor_regular_field): Likewise.
13026 (output_constructor_bitfield): Likewise.
13027 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13028 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13030 * gencheck.c: Define BITS_PER_UNIT.
13031 * wide-int.cc: New.
13033 * wide-int-print.cc: New.
13034 * wide-int-print.h: New.
13036 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13038 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13040 2014-05-06 Richard Biener <rguenther@suse.de>
13042 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13043 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13044 (TODO_verify_all): Adjust.
13045 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13046 TODO_verify_stmts and TODO_verify_rtl_sharing.
13047 * bb-reorder.c: Likewise.
13048 * cfgexpand.c: Likewise.
13049 * cprop.c: Likewise.
13051 * function.c: Likewise.
13052 * fwprop.c: Likewise.
13053 * gcse.c: Likewise.
13054 * gimple-ssa-isolate-paths.c: Likewise.
13055 * gimple-ssa-strength-reduction.c: Likewise.
13056 * ipa-split.c: Likewise.
13057 * loop-init.c: Likewise.
13058 * loop-unroll.c: Likewise.
13059 * lower-subreg.c: Likewise.
13060 * modulo-sched.c: Likewise.
13061 * postreload-gcse.c: Likewise.
13062 * predict.c: Likewise.
13063 * recog.c: Likewise.
13064 * sched-rgn.c: Likewise.
13065 * store-motion.c: Likewise.
13066 * tracer.c: Likewise.
13067 * trans-mem.c: Likewise.
13068 * tree-call-cdce.c: Likewise.
13069 * tree-cfg.c: Likewise.
13070 * tree-cfgcleanup.c: Likewise.
13071 * tree-complex.c: Likewise.
13072 * tree-eh.c: Likewise.
13073 * tree-emutls.c: Likewise.
13074 * tree-if-conv.c: Likewise.
13075 * tree-into-ssa.c: Likewise.
13076 * tree-loop-distribution.c: Likewise.
13077 * tree-object-size.c: Likewise.
13078 * tree-parloops.c: Likewise.
13079 * tree-pass.h: Likewise.
13080 * tree-sra.c: Likewise.
13081 * tree-ssa-ccp.c: Likewise.
13082 * tree-ssa-copy.c: Likewise.
13083 * tree-ssa-copyrename.c: Likewise.
13084 * tree-ssa-dce.c: Likewise.
13085 * tree-ssa-dom.c: Likewise.
13086 * tree-ssa-dse.c: Likewise.
13087 * tree-ssa-forwprop.c: Likewise.
13088 * tree-ssa-ifcombine.c: Likewise.
13089 * tree-ssa-loop-ch.c: Likewise.
13090 * tree-ssa-loop-ivcanon.c: Likewise.
13091 * tree-ssa-loop.c: Likewise.
13092 * tree-ssa-math-opts.c: Likewise.
13093 * tree-ssa-phiopt.c: Likewise.
13094 * tree-ssa-phiprop.c: Likewise.
13095 * tree-ssa-pre.c: Likewise.
13096 * tree-ssa-reassoc.c: Likewise.
13097 * tree-ssa-sink.c: Likewise.
13098 * tree-ssa-strlen.c: Likewise.
13099 * tree-ssa-tail-merge.c: Likewise.
13100 * tree-ssa-uncprop.c: Likewise.
13101 * tree-switch-conversion.c: Likewise.
13102 * tree-tailcall.c: Likewise.
13103 * tree-vect-generic.c: Likewise.
13104 * tree-vectorizer.c: Likewise.
13105 * tree-vrp.c: Likewise.
13106 * tsan.c: Likewise.
13107 * var-tracking.c: Likewise.
13108 * bt-load.c: Likewise.
13109 * cfgcleanup.c: Likewise.
13110 * combine-stack-adj.c: Likewise.
13111 * combine.c: Likewise.
13112 * compare-elim.c: Likewise.
13113 * config/epiphany/resolve-sw-modes.c: Likewise.
13114 * config/i386/i386.c: Likewise.
13115 * config/mips/mips.c: Likewise.
13116 * config/s390/s390.c: Likewise.
13117 * config/sh/sh_treg_combine.cc: Likewise.
13118 * config/sparc/sparc.c: Likewise.
13121 * final.c: Likewise.
13122 * ifcvt.c: Likewise.
13123 * mode-switching.c: Likewise.
13124 * passes.c: Likewise.
13125 * postreload.c: Likewise.
13127 * reg-stack.c: Likewise.
13128 * regcprop.c: Likewise.
13129 * regrename.c: Likewise.
13132 2014-05-06 Richard Biener <rguenther@suse.de>
13134 PR middle-end/61070
13135 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13136 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13138 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13141 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13143 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13144 Tom de Vries <tom@codesourcery.com>
13146 * target.def (call_fusage_contains_non_callee_clobbers): New
13148 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13150 (@node Miscellaneous Register Hooks): New node.
13151 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13152 * doc/tm.texi: Regenerate.
13154 2014-05-05 Marek Polacek <polacek@redhat.com>
13157 * opts.c (common_handle_option): Call error_at instead of warning_at.
13159 2014-05-05 Richard Biener <rguenther@suse.de>
13161 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13162 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13163 under the TODO_verify_il umbrella.
13165 2014-05-05 Richard Biener <rguenther@suse.de>
13167 * passes.c (execute_function_todo): Move TODO_verify_flow under
13168 the TODO_verify_ul umbrella.
13170 2014-05-05 Richard Biener <rguenther@suse.de>
13172 PR middle-end/61010
13173 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13174 X & CST away from a CST that is the mask of a mode.
13176 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13178 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13179 int argument to enum machine_mode.
13180 (picochip_class_max_nregs): Ditto.
13181 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13182 (picochip_class_max_nregs): Ditto.
13184 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13186 * target.def: Add new target hook.
13187 * doc/tm.texi: Regenerate.
13188 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13189 * targhooks.c (default_keep_leaf_when_profiled): New function.
13191 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13192 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13194 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13196 PR tree-optimization/60363
13197 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13198 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13199 (update_destination_phis): New parameter.
13200 (create_edge_and_update_destination_phis): Ditto.
13201 (ssa_fix_duplicate_block_edges): Pass new arguments.
13202 (thread_single_edge): Ditto.
13204 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13206 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13207 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13208 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13209 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13210 Use RS6000_BTM_HARD_FLOAT.
13211 (BU_MISC_2): Likewise.
13212 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13213 RS6000_BTM_HARD_FLOAT.
13214 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13215 is explicitly used.
13216 (rs6000_invalid_builtin): Add hard floating builtin support.
13217 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13218 hard float builtins.
13219 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13221 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13223 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13224 Add missing function* argument.
13226 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13228 * lra-constraints.c (valid_address_p): Move earlier in file.
13229 Add a constraint argument to the address_info version.
13230 (satisfies_memory_constraint_p): New function.
13231 (satisfies_address_constraint_p): Likewise.
13232 (process_alt_operands, curr_insn_transform): Use them.
13233 (process_address): Pass the constraint to valid_address_p when
13234 checking address operands.
13236 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13238 * config/mips/mips.c (mips_isa_rev): New variable.
13239 (mips_set_architecture): Set it.
13240 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13242 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13243 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13244 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13245 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13246 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13247 conditions in terms of mips_isa_rev.
13248 (mips_isa_rev): Declare.
13250 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13252 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13253 (prob_unlikely, prob_likely): Make variables const.
13255 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13257 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13259 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13261 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13263 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13265 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13266 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13267 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13269 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13270 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13272 Replace usage of ROUND_REG with sh_round_reg.
13273 Use CEIL instead of ROUND_ADVANCE.
13275 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13278 * config/sh/sh.c: Include stdlib headers before everything else.
13280 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13282 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13283 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13284 (gimplify_adjust_omp_clauses): Simd region is never
13285 directly nested in combined parallel. Instead, for linear
13286 with copyin/copyout, if in combined for simd loop, make decl
13287 firstprivate/lastprivate on OMP_FOR.
13288 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13289 expand_omp_for_static_chunk): When setting endvar, also set
13290 fd->loop.v to the same value.
13292 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13294 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13296 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13298 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13301 2014-05-02 Marek Polacek <polacek@redhat.com>
13303 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13305 2014-05-02 Kito Cheng <kito@0xlab.org>
13307 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13308 to a C expression marco.
13309 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13310 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13311 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13312 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13313 HONOR_REG_ALLOC_ORDER.
13314 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13316 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13318 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13320 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13322 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13324 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13326 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13327 (convert_scalar_cond_reduction): Likewise.
13328 (predicate_scalar_phi): Add recognition and transformation
13329 of simple conditioanl reduction to be vectorizable.
13331 2014-05-01 Marek Polacek <polacek@redhat.com>
13334 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13336 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13338 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13339 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13340 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13341 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13342 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13343 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13344 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13345 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13347 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13349 * config/arc/arc.opt (mlra): Move comment above option name
13350 to avoid mis-parsing as language options.
13352 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13354 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13355 * config/sol2.h: ... here.
13356 * config/sol2-10.h: Remove.
13358 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13359 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13360 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13361 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13362 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13363 * config/sol2.h: ... here.
13364 (SECTION_NAME_FORMAT): Don't redefine.
13365 (STARTFILE_ARCH32_SPEC): Rename to ...
13366 (STARTFILE_ARCH_SPEC): ... this.
13367 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13368 * config/sparc/sol2.h: ... here.
13369 (SECTION_NAME_FORMAT): Don't undef.
13370 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13371 (SUBTARGET_EXTRA_SPECS): Remove.
13372 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13374 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13375 (MD_STARTFILE_PREFIX): Remove.
13376 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13377 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13378 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13379 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13380 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13381 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13382 * config/i386/sol2.h: ... here.
13383 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13384 * config/i386/sol2-bi.h: Remove.
13385 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13386 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13388 * config/i386/t-sol2-64: Rename to ...
13389 * config/i386/t-sol2: ... this.
13390 * config/sparc/t-sol2-64: Rename to ...
13391 * config/sparc/t-sol2: ... this.
13393 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13394 sol2_tm_file_head, sol2_tm_file_tail.
13395 Include ${cpu_type}/sol2.h before sol2.h.
13397 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13398 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13399 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13400 Reflect i386/t-sol2-64 renaming.
13401 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13402 Reflect sparc/t-sol2-64 renaming.
13404 2014-04-30 Richard Biener <rguenther@suse.de>
13406 * passes.c (execute_function_todo): Move TODO_verify_stmts
13407 and TODO_verify_ssa under the TODO_verify_il umbrella.
13408 * tree-ssa.h (verify_ssa): Adjust prototype.
13409 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13410 we should verify SSA operands.
13411 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13412 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13413 whether we should verify whether not throwing stmts have EH info.
13414 * graphite-scop-detection.c (create_sese_edges): Adjust.
13415 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13416 * tree-eh.c (lower_try_finally_switch): Do not add the
13417 default case label twice.
13419 2014-04-30 Marek Polacek <polacek@redhat.com>
13421 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13422 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13423 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13424 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13426 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13428 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13429 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13430 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13431 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13432 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13433 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13434 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13435 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13437 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13439 * tree-cfg.c (dump_function_to_file): Dump the return type of
13440 functions, in a line to itself before the function body, mimicking
13441 the layout of a C function.
13443 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13445 PR tree-optimization/60971
13446 * tree-tailcall.c (process_assignment): Reject conversions which
13449 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13451 * calls.c (initialize_argument_information): Always treat
13452 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13453 (expand_call): Likewise.
13454 (emit_library_call_calue_1): Likewise.
13455 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13456 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13459 2014-04-29 Nick Clifton <nickc@redhat.com>
13461 * config/msp430/msp430.md (umulsidi): Fix typo.
13462 (mulhisi3): Enable even inside interrupt handlers.
13463 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13464 bigger return address pushed in large mode.
13466 2014-04-29 Nick Clifton <nickc@redhat.com>
13468 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13469 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13471 * config/m32r/m32r.c (init_reg_tables): Likewise.
13472 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13473 enum to hold the modes.
13475 2014-04-29 Richard Biener <rguenther@suse.de>
13477 * dominance.c (free_dominance_info): Add overload with
13478 function parameter.
13479 (dom_info_state): Likewise.
13480 (dom_info_available_p): Likewise.
13481 * basic-block.h (free_dominance_info, dom_info_state,
13482 dom_info_available_p): Declare overloads.
13483 * passes.c (execute_function_todo): Verify that verifiers
13484 don't change dominator info state. Drop dominator info
13485 for IPA pass invocations.
13486 * cgraph.c (release_function_body): Restore asserts that
13487 dominator information is released.
13489 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13491 * doc/invoke.texi: Fix typo.
13492 * tree-vrp.c: Fix typos.
13493 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13495 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13497 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13499 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13501 * config/aarch64/aarch64-builtins.c
13502 (aarch64_types_storestruct_lane_qualifiers): New.
13503 (TYPES_STORESTRUCT_LANE): Likewise.
13504 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13505 (st3_lane): Likewise.
13506 (st4_lane): Likewise.
13507 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13508 (vec_store_lanesci_lane<mode>): Likewise.
13509 (vec_store_lanesxi_lane<mode>): Likewise.
13510 (aarch64_st2_lane<VQ:mode>): Likewise.
13511 (aarch64_st3_lane<VQ:mode>): Likewise.
13512 (aarch64_st4_lane<VQ:mode>): Likewise.
13513 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13514 * config/aarch64/arm_neon.h
13515 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13516 use new macro arguments.
13517 (__ST3_LANE_FUNC): Likewise.
13518 (__ST4_LANE_FUNC): Likewise.
13519 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13520 (V_THREE_ELEM): Likewise.
13521 (V_FOUR_ELEM): Likewise.
13523 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13525 * doc/gimple.texi: Replace the description of the now-defunct
13526 union gimple_statement_d with a diagram showing the
13527 gimple_statement_base class hierarchy and its relationships to
13528 the GSS_ and GIMPLE_ enums.
13530 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13532 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13533 * config/aarch64/aarch64.c
13534 (aarch64_cannot_change_mode_class): Weaken conditions.
13535 (aarch64_modes_tieable_p): New.
13536 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13538 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13540 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13541 (loadsync_<mode>): Change mode.
13542 (load_quadpti, store_quadpti): New.
13543 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13544 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13546 2014-04-28 Martin Jambor <mjambor@suse.cz>
13548 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13549 same alias type as the original statement.
13550 (subreplacement_assignment_data): New type.
13551 (handle_unscalarized_data_in_subtree): New type of parameter,
13552 generate new memory accesses with same alias type as the original
13554 (load_assign_lhs_subreplacements): Likewise.
13555 (sra_modify_constructor_assign): Generate new memory accesses with
13556 same alias type as the original statement.
13558 2014-04-28 Richard Biener <rguenther@suse.de>
13560 * tree-pass.h (TODO_verify_il): Define.
13561 (TODO_verify_all): Complete properly.
13562 * passes.c (execute_function_todo): Move existing loop-closed
13563 SSA verification under TODO_verify_il.
13564 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13565 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13566 Fix tree sharing issue.
13568 2014-04-28 Richard Biener <rguenther@suse.de>
13570 PR middle-end/60092
13571 * builtins.def (DEF_C11_BUILTIN): Add.
13572 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13573 * coretypes.h (enum function_class): Add function_c11_misc.
13574 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13575 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13576 (call_may_clobber_ref_p_1): Likewise.
13577 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13578 (mark_all_reaching_defs_necessary_1): Likewise.
13579 (propagate_necessity): Likewise.
13580 (eliminate_unnecessary_stmts): Likewise.
13581 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13583 2014-04-28 Richard Biener <rguenther@suse.de>
13585 * tree-vrp.c (vrp_var_may_overflow): Remove.
13586 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13587 with overflow immediately bump to one before that value and
13588 let iteration figure out overflow status.
13590 2014-04-28 Richard Biener <rguenther@suse.de>
13592 * configure.ac: Do valgrind header checks unconditionally.
13593 Add --enable-valgrind-annotations.
13594 * system.h: Guard valgrind header inclusion with
13595 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13596 * alloc-pool.c (pool_alloc, pool_free): Use
13597 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13598 to guard possibly dead code.
13599 * config.in: Regenerated.
13600 * configure: Likewise.
13602 2014-04-28 Jeff Law <law@redhat.com>
13604 PR tree-optimization/60902
13605 * tree-ssa-threadedge.c
13606 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13607 over real defs when invalidating outputs from statements that do not
13608 produce useful outputs for threading.
13610 2014-04-28 Richard Biener <rguenther@suse.de>
13612 PR tree-optimization/60979
13613 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13614 SCOPs that end in a block with a successor with abnormal
13617 2014-04-28 Richard Biener <rguenther@suse.de>
13619 * tree-pass.h (execute_pass_list): Adjust prototype.
13620 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13621 (do_per_function): Change callback signature, push all actual
13622 work to the callbals.
13623 (do_per_function_toporder): Likewise.
13624 (execute_function_dump): Adjust.
13625 (execute_function_todo): Likewise.
13626 (clear_last_verified): Likewise.
13627 (verify_curr_properties): Likewise.
13628 (update_properties_after_pass): Likewise.
13629 (execute_pass_list_1): Split out from ...
13630 (execute_pass_list): ... here. Adjust.
13631 (execute_ipa_pass_list): Likewise.
13632 * cgraphunit.c (cgraph_add_new_function): Adjust.
13633 (analyze_function): Likewise.
13634 (expand_function): Likewise.
13635 * cgraph.c (release_function_body): Free dominance info
13636 here instead of asserting it was magically freed elsewhere.
13638 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13640 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13641 * configure: Regenerate.
13642 * config/sparc/sparc.opt (muser-mode): New option.
13643 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13645 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13646 * doc/invoke.texi (SPARC options): Document -muser-mode.
13648 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13650 * cselib.c (find_slot_memmode): Delete.
13651 (cselib_hasher): Change compare_type to a struct.
13652 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13654 (preserve_constants_and_equivs): Adjust for new compare_type.
13655 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13656 (wrap_constant): Delete.
13657 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13659 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13661 * doc/install.texi (Building with profile feedback): Remove
13664 2014-04-26 Tom de Vries <tom@codesourcery.com>
13666 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13669 2014-04-25 Cary Coutant <ccoutant@google.com>
13672 * dwarf2out.c (should_move_die_to_comdat): A type definition
13673 can contain a subprogram definition, but don't move it to a
13675 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13676 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13678 (clone_tree_hash): Rename to...
13679 (clone_tree_partial): ...this; change callers. Copy
13680 DW_TAG_subprogram DIEs as declarations.
13681 (copy_decls_walk): Don't copy children of a declaration into a
13684 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13687 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13690 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13692 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13693 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13695 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13698 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13700 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13702 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13704 PR tree-optimization/60930
13705 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13706 creating a multiply candidate by folding two constant
13707 multiplicands when the result overflows.
13709 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13711 PR tree-optimization/60960
13712 * tree-vect-generic.c (expand_vector_operation): Only call
13713 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13715 2014-04-25 Tom de Vries <tom@codesourcery.com>
13717 * expr.c (clobber_reg_mode): New function.
13718 * expr.h (clobber_reg): New function.
13720 2014-04-25 Tom de Vries <tom@codesourcery.com>
13722 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13725 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13726 Tom de Vries <tom@codesourcery.com>
13728 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13730 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13731 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13732 new argument to find_all_hard_reg_sets call.
13734 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13736 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13737 Use HOST_WIDE_INT_C for mask literal.
13738 (aarch_rev16_shleft_mask_imm_p): Likewise.
13740 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13743 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13745 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13747 PR preprocessor/56540
13748 * config/i386/i386-c.c (ix86_target_macros): Define
13749 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13751 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13753 * configure.ac (tga_func): Remove.
13754 (LIB_TLS_SPEC): Remove.
13755 * configure: Regenerate.
13756 * config.in: Regenerate.
13757 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13759 2014-04-25 Richard Biener <rguenther@suse.de>
13762 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13763 call stmt use/clobber sets during stmt walk instead of
13764 walking the possibly incomplete set of caller edges.
13766 2014-04-25 Richard Biener <rguenther@suse.de>
13769 * passes.c (apply_ipa_transforms): Inline into only caller ...
13770 (execute_one_pass): ... here. Properly bring in function
13771 bodies for nodes we want to apply IPA transforms to.
13773 2014-04-24 Cong Hou <congh@google.com>
13775 PR tree-optimization/60896
13776 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13777 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13778 (vect_mark_pattern_stmts): Set the def type of all statements in
13779 PATTERN_DEF_SEQ as vect_internal_def.
13781 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13783 * doc/extend.texi (PowerPC Built-in Functions): Document new
13784 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13785 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13787 * config/rs6000/predicates.md (const_0_to_3_operand): New
13788 predicate to match 0..3 integer constants.
13790 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13791 to support adding miscellaneous builtin functions.
13792 (BU_DFP_MISC_2): Likewise.
13793 (BU_P7_MISC_1): Likewise.
13794 (BU_P7_MISC_2): Likewise.
13795 (BU_P8V_MISC_3): Likewise.
13796 (BU_MISC_1): Likewise.
13797 (BU_MISC_2): Likewise.
13798 (DIVWE): Add extended divide builtin functions.
13799 (DIVWEO): Likewise.
13800 (DIVWEU): Likewise.
13801 (DIVWEUO): Likewise.
13803 (DIVDEO): Likewise.
13804 (DIVDEU): Likewise.
13805 (DIVDEUO): Likewise.
13806 (DXEX): Add decimal floating-point builtin functions.
13808 (DDEDPD): Likewise.
13809 (DDEDPDQ): Likewise.
13810 (DENBCD): Likewise.
13811 (DENBCDQ): Likewise.
13815 (DSCLIQ): Likewise.
13817 (DSCRIQ): Likewise.
13818 (CDTBCD): Add new BCD builtin functions.
13819 (CBCDTD): Likewise.
13820 (ADDG6S): Likewise.
13821 (BCDADD): Likewise.
13822 (BCDADD_LT): Likewise.
13823 (BCDADD_EQ): Likewise.
13824 (BCDADD_GT): Likewise.
13825 (BCDADD_OV): Likewise.
13826 (BCDSUB): Likewise.
13827 (BCDSUB_LT): Likewise.
13828 (BCDSUB_EQ): Likewise.
13829 (BCDSUB_GT): Likewise.
13830 (BCDSUB_OV): Likewise.
13831 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13832 (UNPACK_TD): Likewise.
13833 (PACK_TF): Likewise.
13834 (UNPACK_TF): Likewise.
13835 (UNPACK_TF_0): Likewise.
13836 (UNPACK_TF_1): Likewise.
13837 (PACK_V1TI): Likewise.
13838 (UNPACK_V1TI): Likewise.
13840 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13841 support for decimal floating point builtin functions.
13842 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13843 functions that take constant arguments.
13844 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13845 (rs6000_init_builtins): Setup long double, _Decimal64, and
13846 _Decimal128 types for new builtin functions.
13847 (builtin_function_type): Set the unsigned flags appropriately for
13848 the new builtin functions.
13849 (rs6000_opt_masks): Add support for decimal floating point builtin
13852 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13853 floating point builtin functions.
13854 (RS6000_BTM_COMMON): Likewise.
13855 (RS6000_BTI_long_double): Likewise.
13856 (RS6000_BTI_dfloat64): Likewise.
13857 (RS6000_BTI_dfloat128): Likewise.
13858 (long_double_type_internal_node): Likewise.
13859 (dfloat64_type_internal_node): Likewise.
13860 (dfloat128_type_internal_node): Likewise.
13862 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13863 2.07 bcd arithmetic instructions.
13864 (UNSPEC_BCDSUB): Likewise.
13865 (UNSPEC_BCD_OVERFLOW): Likewise.
13866 (UNSPEC_BCD_ADD_SUB): Likewise.
13867 (bcd_add_sub): Likewise.
13868 (BCD_TEST): Likewise.
13869 (bcd<bcd_add_sub>): Likewise.
13870 (bcd<bcd_add_sub>_test): Likewise.
13871 (bcd<bcd_add_sub>_test2): Likewise.
13872 (bcd<bcd_add_sub>_<code>): Likewise.
13873 (peephole2 for combined bcd ops): Likewise.
13875 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13876 decimal floating point builtin functions.
13877 (UNSPEC_DENBCD): Likewise.
13878 (UNSPEC_DXEX): Likewise.
13879 (UNSPEC_DIEX): Likewise.
13880 (UNSPEC_DSCLI): Likewise.
13881 (UNSPEC_DSCRI): Likewise.
13882 (D64_D128): Likewise.
13883 (dfp_suffix): Likewise.
13884 (dfp_ddedpd_<mode>): Likewise.
13885 (dfp_denbcd_<mode>): Likewise.
13886 (dfp_dxex_<mode>): Likewise.
13887 (dfp_diex_<mode>): Likewise.
13888 (dfp_dscli_<mode>): Likewise.
13889 (dfp_dscri_<mode>): Likewise.
13891 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13893 (UNSPEC_CDTBCD): Likewise.
13894 (UNSPEC_CBCDTD): Likewise.
13895 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13896 (UNSPEC_DIVEO): Likewise.
13897 (UNSPEC_DIVEU): Likewise.
13898 (UNSPEC_DIVEUO): Likewise.
13899 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13900 pack/unpack 128-bit types.
13901 (UNSPEC_PACK_128BIT): Likewise.
13902 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13903 (udiv<mode>3): Use idiv_ldiv mode attribute.
13904 (div<mode>3): Likewise.
13905 (addg6s): Add new BCD builtin functions.
13906 (cdtbcd): Likewise.
13907 (cbcdtd): Likewise.
13908 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13909 (div_extend): Likewise.
13910 (div<div_extend>_<mode>"): Likewise.
13911 (FP128_64): Add support for new builtin functions to pack/unpack
13913 (unpack<mode>): Likewise.
13914 (unpacktf_0): Likewise.
13915 (unpacktf_1): Likewise.
13916 (unpack<mode>_dm): Likewise.
13917 (unpack<mode>_nodm): Likewise.
13918 (pack<mode>): Likewise.
13919 (unpackv1ti): Likewise.
13920 (packv1ti): Likewise.
13922 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13924 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13927 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13929 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13930 * gimplify.c (omp_is_private): Change last argument's type to int.
13931 Only diagnose lastprivate if the simd argument is 1, only diagnose
13932 linear if the simd argument is 2.
13933 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13934 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13935 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13936 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13937 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13938 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13939 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13940 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13941 * tree-nested.c (convert_nonlocal_omp_clauses,
13942 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13944 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13947 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13950 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13952 * flag-types.h (enum ivar_visibility): Add.
13954 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13956 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13957 function * argument.
13959 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13961 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13963 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13964 Tom de Vries <tom@codesourcery.com>
13966 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13967 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13969 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13970 * emit-rtl.c (try_split): Same.
13972 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13973 Tom de Vries <tom@codesourcery.com>
13975 * common.opt (fuse-caller-save): New option.
13977 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13979 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13980 elements for big-endian.
13982 2014-04-24 Richard Biener <rguenther@suse.de>
13984 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13985 during TER and instead use the sepops interface for expanding
13986 non-GIMPLE_SINGLE_RHS.
13988 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13990 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
13991 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
13993 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13995 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
13996 assembler 64-bit option.
13997 * configure: Regenerate.
13999 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14001 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14002 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14003 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14004 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14005 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14007 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14009 * config/aarch64/aarch64-builtins.c
14010 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14011 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14012 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14013 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14015 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14016 (Vrevsuff): New mode attribute.
14018 2014-04-24 Terry Guo <terry.guo@arm.com>
14020 * config/arm/arm.h (machine_function): Define variable
14021 after_arm_reorg here.
14022 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14023 (arm_split_constant): Update the way to access variable
14025 (arm_reorg): Ditto.
14026 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14028 2014-04-23 Tom de Vries <tom@codesourcery.com>
14030 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14032 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14034 * is-a.h: Update comments to reflect the following changes to the
14035 "pointerness" of the API, making the template parameter match the
14036 return type, allowing use of is-a.h with typedefs of pointers.
14037 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14038 that the return type matches the parameter to the is_a_helper.
14040 (dyn_cast): Likewise.
14042 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14043 pointer from the is-a.h API.
14045 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14046 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14048 (is_a_helper <varpool_node>::test): Likewise, convert to...
14049 (is_a_helper <varpool_node *>::test): ...this.
14051 (varpool_first_variable): Update for removal of implicit pointer
14052 from the is-a.h API.
14053 (varpool_next_variable): Likewise.
14054 (varpool_first_static_initializer): Likewise.
14055 (varpool_next_static_initializer): Likewise.
14056 (varpool_first_defined_variable): Likewise.
14057 (varpool_next_defined_variable): Likewise.
14058 (cgraph_first_defined_function): Likewise.
14059 (cgraph_next_defined_function): Likewise.
14060 (cgraph_first_function): Likewise.
14061 (cgraph_next_function): Likewise.
14062 (cgraph_first_function_with_gimple_body): Likewise.
14063 (cgraph_next_function_with_gimple_body): Likewise.
14064 (cgraph_alias_target): Likewise.
14065 (varpool_alias_target): Likewise.
14066 (cgraph_function_or_thunk_node): Likewise.
14067 (varpool_variable_node): Likewise.
14068 (symtab_real_symbol_p): Likewise.
14069 * cgraphunit.c (referred_to_p): Likewise.
14070 (analyze_functions): Likewise.
14071 (handle_alias_pairs): Likewise.
14072 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14073 * gimple-ssa.h (gimple_vuse_op): Likewise.
14074 (gimple_vdef_op): Likewise.
14075 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14076 * gimple.c (gimple_build_asm_1): Likewise.
14077 (gimple_build_try): Likewise.
14078 (gimple_build_resx): Likewise.
14079 (gimple_build_eh_dispatch): Likewise.
14080 (gimple_build_omp_for): Likewise.
14081 (gimple_omp_for_set_clauses): Likewise.
14083 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14084 (is_a_helper <gimple_statement_asm *>::test): ...this.
14085 (is_a_helper <gimple_statement_bind>::test): Convert to...
14086 (is_a_helper <gimple_statement_bind *>::test): ...this.
14087 (is_a_helper <gimple_statement_call>::test): Convert to...
14088 (is_a_helper <gimple_statement_call *>::test): ...this.
14089 (is_a_helper <gimple_statement_catch>::test): Convert to...
14090 (is_a_helper <gimple_statement_catch *>::test): ...this.
14091 (is_a_helper <gimple_statement_resx>::test): Convert to...
14092 (is_a_helper <gimple_statement_resx *>::test): ...this.
14093 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14094 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14095 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14096 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14097 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14098 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14099 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14100 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14101 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14102 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14103 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14104 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14105 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14106 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14107 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14108 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14109 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14110 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14111 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14112 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14113 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14114 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14115 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14116 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14117 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14118 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14119 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14120 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14121 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14122 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14123 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14124 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14125 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14126 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14127 (is_a_helper <gimple_statement_phi>::test): Convert to...
14128 (is_a_helper <gimple_statement_phi *>::test): ...this.
14129 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14130 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14131 (is_a_helper <gimple_statement_try>::test): Convert to...
14132 (is_a_helper <gimple_statement_try *>::test): ...this.
14133 (is_a_helper <gimple_statement_wce>::test): Convert to...
14134 (is_a_helper <gimple_statement_wce *>::test): ...this.
14135 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14136 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14137 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14138 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14139 (is_a_helper <const gimple_statement_call>::test): Convert to...
14140 (is_a_helper <const gimple_statement_call *>::test): ...this.
14141 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14142 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14143 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14144 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14145 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14146 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14147 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14148 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14149 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14151 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14153 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14155 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14157 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14158 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14159 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14161 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14162 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14164 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14165 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14166 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14167 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14168 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14169 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14171 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14172 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14173 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14174 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14176 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14177 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14178 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14179 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14180 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14181 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14182 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14183 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14184 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14185 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14186 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14187 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14188 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14189 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14190 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14191 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14193 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14195 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14196 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14198 (gimple_use_ops): Update for removal of implicit pointer from the
14200 (gimple_set_use_ops): Likewise.
14201 (gimple_vuse): Likewise.
14202 (gimple_vdef): Likewise.
14203 (gimple_vuse_ptr): Likewise.
14204 (gimple_vdef_ptr): Likewise.
14205 (gimple_set_vuse): Likewise.
14206 (gimple_set_vdef): Likewise.
14207 (gimple_omp_return_set_lhs): Likewise.
14208 (gimple_omp_return_lhs): Likewise.
14209 (gimple_omp_return_lhs_ptr): Likewise.
14210 (gimple_call_fntype): Likewise.
14211 (gimple_call_set_fntype): Likewise.
14212 (gimple_call_set_internal_fn): Likewise.
14213 (gimple_call_use_set): Likewise.
14214 (gimple_call_clobber_set): Likewise.
14215 (gimple_bind_vars): Likewise.
14216 (gimple_bind_set_vars): Likewise.
14217 (gimple_bind_body_ptr): Likewise.
14218 (gimple_bind_set_body): Likewise.
14219 (gimple_bind_add_stmt): Likewise.
14220 (gimple_bind_block): Likewise.
14221 (gimple_bind_set_block): Likewise.
14222 (gimple_asm_ninputs): Likewise.
14223 (gimple_asm_noutputs): Likewise.
14224 (gimple_asm_nclobbers): Likewise.
14225 (gimple_asm_nlabels): Likewise.
14226 (gimple_asm_input_op): Likewise.
14227 (gimple_asm_input_op_ptr): Likewise.
14228 (gimple_asm_output_op): Likewise.
14229 (gimple_asm_output_op_ptr): Likewise.
14230 (gimple_asm_set_output_op): Likewise.
14231 (gimple_asm_clobber_op): Likewise.
14232 (gimple_asm_set_clobber_op): Likewise.
14233 (gimple_asm_label_op): Likewise.
14234 (gimple_asm_set_label_op): Likewise.
14235 (gimple_asm_string): Likewise.
14236 (gimple_catch_types): Likewise.
14237 (gimple_catch_types_ptr): Likewise.
14238 (gimple_catch_handler_ptr): Likewise.
14239 (gimple_catch_set_types): Likewise.
14240 (gimple_catch_set_handler): Likewise.
14241 (gimple_eh_filter_types): Likewise.
14242 (gimple_eh_filter_types_ptr): Likewise.
14243 (gimple_eh_filter_failure_ptr): Likewise.
14244 (gimple_eh_filter_set_types): Likewise.
14245 (gimple_eh_filter_set_failure): Likewise.
14246 (gimple_eh_must_not_throw_fndecl): Likewise.
14247 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14248 (gimple_eh_else_n_body_ptr): Likewise.
14249 (gimple_eh_else_e_body_ptr): Likewise.
14250 (gimple_eh_else_set_n_body): Likewise.
14251 (gimple_eh_else_set_e_body): Likewise.
14252 (gimple_try_eval_ptr): Likewise.
14253 (gimple_try_cleanup_ptr): Likewise.
14254 (gimple_try_set_eval): Likewise.
14255 (gimple_try_set_cleanup): Likewise.
14256 (gimple_wce_cleanup_ptr): Likewise.
14257 (gimple_wce_set_cleanup): Likewise.
14258 (gimple_phi_capacity): Likewise.
14259 (gimple_phi_num_args): Likewise.
14260 (gimple_phi_result): Likewise.
14261 (gimple_phi_result_ptr): Likewise.
14262 (gimple_phi_set_result): Likewise.
14263 (gimple_phi_arg): Likewise.
14264 (gimple_phi_set_arg): Likewise.
14265 (gimple_resx_region): Likewise.
14266 (gimple_resx_set_region): Likewise.
14267 (gimple_eh_dispatch_region): Likewise.
14268 (gimple_eh_dispatch_set_region): Likewise.
14269 (gimple_omp_critical_name): Likewise.
14270 (gimple_omp_critical_name_ptr): Likewise.
14271 (gimple_omp_critical_set_name): Likewise.
14272 (gimple_omp_for_clauses): Likewise.
14273 (gimple_omp_for_clauses_ptr): Likewise.
14274 (gimple_omp_for_set_clauses): Likewise.
14275 (gimple_omp_for_collapse): Likewise.
14276 (gimple_omp_for_index): Likewise.
14277 (gimple_omp_for_index_ptr): Likewise.
14278 (gimple_omp_for_set_index): Likewise.
14279 (gimple_omp_for_initial): Likewise.
14280 (gimple_omp_for_initial_ptr): Likewise.
14281 (gimple_omp_for_set_initial): Likewise.
14282 (gimple_omp_for_final): Likewise.
14283 (gimple_omp_for_final_ptr): Likewise.
14284 (gimple_omp_for_set_final): Likewise.
14285 (gimple_omp_for_incr): Likewise.
14286 (gimple_omp_for_incr_ptr): Likewise.
14287 (gimple_omp_for_set_incr): Likewise.
14288 (gimple_omp_for_pre_body_ptr): Likewise.
14289 (gimple_omp_for_set_pre_body): Likewise.
14290 (gimple_omp_parallel_clauses): Likewise.
14291 (gimple_omp_parallel_clauses_ptr): Likewise.
14292 (gimple_omp_parallel_set_clauses): Likewise.
14293 (gimple_omp_parallel_child_fn): Likewise.
14294 (gimple_omp_parallel_child_fn_ptr): Likewise.
14295 (gimple_omp_parallel_set_child_fn): Likewise.
14296 (gimple_omp_parallel_data_arg): Likewise.
14297 (gimple_omp_parallel_data_arg_ptr): Likewise.
14298 (gimple_omp_parallel_set_data_arg): Likewise.
14299 (gimple_omp_task_clauses): Likewise.
14300 (gimple_omp_task_clauses_ptr): Likewise.
14301 (gimple_omp_task_set_clauses): Likewise.
14302 (gimple_omp_task_child_fn): Likewise.
14303 (gimple_omp_task_child_fn_ptr): Likewise.
14304 (gimple_omp_task_set_child_fn): Likewise.
14305 (gimple_omp_task_data_arg): Likewise.
14306 (gimple_omp_task_data_arg_ptr): Likewise.
14307 (gimple_omp_task_set_data_arg): Likewise.
14308 (gimple_omp_taskreg_clauses): Likewise.
14309 (gimple_omp_taskreg_clauses_ptr): Likewise.
14310 (gimple_omp_taskreg_set_clauses): Likewise.
14311 (gimple_omp_taskreg_child_fn): Likewise.
14312 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14313 (gimple_omp_taskreg_set_child_fn): Likewise.
14314 (gimple_omp_taskreg_data_arg): Likewise.
14315 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14316 (gimple_omp_taskreg_set_data_arg): Likewise.
14317 (gimple_omp_task_copy_fn): Likewise.
14318 (gimple_omp_task_copy_fn_ptr): Likewise.
14319 (gimple_omp_task_set_copy_fn): Likewise.
14320 (gimple_omp_task_arg_size): Likewise.
14321 (gimple_omp_task_arg_size_ptr): Likewise.
14322 (gimple_omp_task_set_arg_size): Likewise.
14323 (gimple_omp_task_arg_align): Likewise.
14324 (gimple_omp_task_arg_align_ptr): Likewise.
14325 (gimple_omp_task_set_arg_align): Likewise.
14326 (gimple_omp_single_clauses): Likewise.
14327 (gimple_omp_single_clauses_ptr): Likewise.
14328 (gimple_omp_single_set_clauses): Likewise.
14329 (gimple_omp_target_clauses): Likewise.
14330 (gimple_omp_target_clauses_ptr): Likewise.
14331 (gimple_omp_target_set_clauses): Likewise.
14332 (gimple_omp_target_child_fn): Likewise.
14333 (gimple_omp_target_child_fn_ptr): Likewise.
14334 (gimple_omp_target_set_child_fn): Likewise.
14335 (gimple_omp_target_data_arg): Likewise.
14336 (gimple_omp_target_data_arg_ptr): Likewise.
14337 (gimple_omp_target_set_data_arg): Likewise.
14338 (gimple_omp_teams_clauses): Likewise.
14339 (gimple_omp_teams_clauses_ptr): Likewise.
14340 (gimple_omp_teams_set_clauses): Likewise.
14341 (gimple_omp_sections_clauses): Likewise.
14342 (gimple_omp_sections_clauses_ptr): Likewise.
14343 (gimple_omp_sections_set_clauses): Likewise.
14344 (gimple_omp_sections_control): Likewise.
14345 (gimple_omp_sections_control_ptr): Likewise.
14346 (gimple_omp_sections_set_control): Likewise.
14347 (gimple_omp_for_set_cond): Likewise.
14348 (gimple_omp_for_cond): Likewise.
14349 (gimple_omp_atomic_store_set_val): Likewise.
14350 (gimple_omp_atomic_store_val): Likewise.
14351 (gimple_omp_atomic_store_val_ptr): Likewise.
14352 (gimple_omp_atomic_load_set_lhs): Likewise.
14353 (gimple_omp_atomic_load_lhs): Likewise.
14354 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14355 (gimple_omp_atomic_load_set_rhs): Likewise.
14356 (gimple_omp_atomic_load_rhs): Likewise.
14357 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14358 (gimple_omp_continue_control_def): Likewise.
14359 (gimple_omp_continue_control_def_ptr): Likewise.
14360 (gimple_omp_continue_set_control_def): Likewise.
14361 (gimple_omp_continue_control_use): Likewise.
14362 (gimple_omp_continue_control_use_ptr): Likewise.
14363 (gimple_omp_continue_set_control_use): Likewise.
14364 (gimple_transaction_body_ptr): Likewise.
14365 (gimple_transaction_label): Likewise.
14366 (gimple_transaction_label_ptr): Likewise.
14367 (gimple_transaction_set_body): Likewise.
14368 (gimple_transaction_set_label): Likewise.
14370 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14371 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14372 * ipa-ref.c (ipa_record_reference): Likewise.
14373 * ipa-reference.c (analyze_function): Likewise.
14374 (ipa_reference_write_optimization_summary): Likewise.
14375 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14376 (address_taken_from_non_vtable_p): Likewise.
14377 (comdat_can_be_unshared_p_1): Likewise.
14378 * lto-cgraph.c (lto_output_ref): Likewise.
14379 (add_references): Likewise.
14380 (compute_ltrans_boundary): Likewise.
14381 (output_symtab): Likewise.
14382 (input_ref): Likewise.
14383 (input_cgraph_1): Likewise.
14384 (output_cgraph_opt_summary): Likewise.
14385 * lto-streamer-out.c (lto_output): Likewise.
14386 (output_symbol_p): Likewise.
14387 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14388 (lsei_start_function_in_partition): Likewise.
14389 (lsei_next_variable_in_partition): Likewise.
14390 (lsei_start_variable_in_partition): Likewise.
14391 * symtab.c (insert_to_assembler_name_hash): Likewise.
14392 (unlink_from_assembler_name_hash): Likewise.
14393 (symtab_unregister_node): Likewise.
14394 (symtab_remove_node): Likewise.
14395 (dump_symtab_node): Likewise.
14396 (verify_symtab_base): Likewise.
14397 (verify_symtab_node): Likewise.
14398 (symtab_make_decl_local): Likewise.
14399 (symtab_alias_ultimate_target): Likewise.
14400 (symtab_resolve_alias): Likewise.
14401 (symtab_get_symbol_partitioning_class): Likewise.
14402 * tree-phinodes.c (allocate_phi_node): Likewise.
14403 (reserve_phi_args_for_new_edge): Likewise.
14404 (remove_phi_args): Likewise.
14405 * varpool.c (varpool_node_for_asm): Likewise.
14406 (varpool_remove_unreferenced_decls): Likewise.
14408 2014-04-23 Jeff Law <law@redhat.com>
14410 PR tree-optimization/60902
14411 * tree-ssa-threadedge.c
14412 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14413 invalidate outputs from statements that do not produce useful
14414 outputs for threading.
14416 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14418 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14419 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14420 machine descriptions for Stack Smashing Protector.
14422 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14424 * aarch64.md (<optab>_rol<mode>3): New pattern.
14425 (<optab>_rolsi3_uxtw): Likewise.
14426 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14428 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14430 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14431 (arm_cortex_a12_tune): Likewise.
14433 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14435 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14437 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14439 * config/arm/arm.md (arm_rev16si2): New pattern.
14440 (arm_rev16si2_alt): Likewise.
14441 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14443 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14445 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14446 (rev16<mode>2_alt): Likewise.
14447 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14448 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14449 (aarch_rev16_shleft_mask_imm_p): Likewise.
14450 (aarch_rev16_p_1): Likewise.
14451 (aarch_rev16_p): Likewise.
14452 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14453 (aarch_rev16_shright_mask_imm_p): Likewise.
14454 (aarch_rev16_shleft_mask_imm_p): Likewise.
14456 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14458 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14459 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14461 (cortex_a53_extra_costs): Likewise.
14462 (cortex_a57_extra_costs): Likewise.
14463 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14464 (cortexa7_extra_costs): Likewise.
14465 (cortexa8_extra_costs): Likewise.
14466 (cortexa12_extra_costs): Likewise.
14467 (cortexa15_extra_costs): Likewise.
14468 (v7m_extra_costs): Likewise.
14469 (arm_new_rtx_costs): Handle BSWAP.
14471 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14473 * config/arm/arm.c (cortexa8_extra_costs): New table.
14474 (arm_cortex_a8_tune): New tuning struct.
14475 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14477 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14479 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14481 2014-04-23 Richard Biener <rguenther@suse.de>
14483 * Makefile.in (OBJS): Remove loop-unswitch.o.
14484 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14485 * passes.def (pass_rtl_unswitch): Likewise.
14486 * loop-init.c (gate_rtl_unswitch): Likewise.
14487 (rtl_unswitch): Likewise.
14488 (pass_data_rtl_unswitch): Likewise.
14489 (pass_rtl_unswitch): Likewise.
14490 (make_pass_rtl_unswitch): Likewise.
14491 * rtl.h (reversed_condition): Likewise.
14492 (compare_and_jump_seq): Likewise.
14493 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14495 * loop-unroll.c (compare_and_jump_seq): Likewise.
14497 2014-04-23 Richard Biener <rguenther@suse.de>
14499 PR tree-optimization/60903
14500 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14501 commented code block.
14502 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14503 loop flags to newly created BBs and edges.
14505 2014-04-23 Nick Clifton <nickc@redhat.com>
14507 * config/msp430/msp430.c (msp430_handle_option): Move function
14509 (msp430_option_override): Simplify mcu and mcpu option handling.
14510 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14511 support for -mhwmult command line option.
14512 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14513 -mhwmult command line option.
14514 (msp430_hwmult_enabled): Delete.
14515 (msp43o_output_labelref): Add support for -mhwmult command line option.
14516 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14517 (umulsidi3): Likewise.
14518 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14519 (mcpu, mlarge, msmall): Likewise.
14520 (mhwmult): New option.
14521 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14523 (msp430_is_f5_mcu): Remove prototype.
14524 (msp430_use_f5_series_hwmult): Add prototype.
14525 * config/msp430/msp430-opts.h: New file.
14526 * common/config/msp430: New directory.
14527 * common/config/msp430/msp430-common.c: New file.
14528 * config.gcc (msp430): Remove target_has_targetm_common.
14529 * doc/invoke.texi: Document -mhwmult command line option.
14531 2014-04-23 Nick Clifton <nickc@redhat.com>
14533 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14534 default-manifest.o if it can be found in the search path.
14535 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14537 2014-04-23 Terry Guo <terry.guo@arm.com>
14539 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14541 2014-04-23 Richard Biener <rguenther@suse.de>
14543 PR middle-end/60895
14544 * tree-inline.c (declare_return_variable): Use mark_addressable.
14546 2014-04-23 Richard Biener <rguenther@suse.de>
14548 PR middle-end/60891
14549 * loop-init.c (loop_optimizer_init): Make sure to apply
14550 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14552 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14555 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14557 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14558 if flag_sanitize_undefined_trap_on_error.
14559 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14560 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14561 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14562 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14563 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14564 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14565 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14566 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14567 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14568 * ubsan.c (ubsan_instrument_unreachable): Return
14569 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14570 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14571 if flag_sanitize_undefined_trap_on_error and
14572 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14573 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14574 instrument_bool_enum_load): Emit __builtin_trap () if
14575 flag_sanitize_undefined_trap_on_error and
14576 __builtin_handle_*_abort () if !flag_sanitize_recover.
14577 * doc/invoke.texi (-fsanitize-recover,
14578 -fsanitize-undefined-trap-on-error): Document.
14580 2014-04-22 Christian Bruel <christian.bruel@st.com>
14582 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14583 Force immediates to SImode.
14585 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14587 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14588 (lroundsfsi2): New.
14589 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14590 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14591 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14592 (nios2_fpu_insn): Add entry for round.
14593 (N2FPU_NO_ERRNO_P): Define.
14594 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14596 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14598 2014-04-22 Richard Henderson <rth@redhat.com>
14600 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14601 (add<GPI>3_compare0): Remove leading * from name.
14602 (add<GPI>3_carryin): Likewise.
14603 (sub<GPI>3_compare0): Likewise.
14604 (sub<GPI>3_carryin): Likewise.
14605 (<su_optab>mulditi3): New expander.
14606 (multi3): New expander.
14607 (madd<GPI>): Remove leading * from name.
14609 2014-04-22 Martin Jambor <mjambor@suse.cz>
14611 * cgraphclones.c (cgraph_function_versioning): Copy
14612 ipa_transforms_to_apply instead of asserting it is empty.
14614 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14617 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14618 on count_exp to get mode.
14620 2014-04-22 Andrew Pinski <apinski@cavium.com>
14622 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14623 Handle TLS for ILP32.
14624 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14625 (tlsie_small_<mode>): this and handle PTR.
14626 (tlsie_small_sidi): New pattern.
14627 (tlsle_small): Change to an expand to handle ILP32.
14628 (tlsle_small_<mode>): New pattern.
14629 (tlsdesc_small): Rename to ...
14630 (tlsdesc_small_<mode>): this and handle PTR.
14632 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14634 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14636 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14638 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14639 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14640 (aarch64_types_signed_poly_qualifiers): Likewise.
14641 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14642 (aarch64_types_poly_signed_qualifiers): Likewise.
14643 (TYPES_REINTERP_SS): Type macro added.
14644 (TYPES_REINTERP_SU): Likewise.
14645 (TYPES_REINTERP_SP): Likewise.
14646 (TYPES_REINTERP_US): Likewise.
14647 (TYPES_REINTERP_PS): Likewise.
14648 (aarch64_fold_builtin): New expression folding added.
14649 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14650 Declarations removed.
14651 (REINTERP_SS): Declarations added.
14652 (REINTERP_US): Likewise.
14653 (REINTERP_PS): Likewise.
14654 (REINTERP_SU): Likewise.
14655 (REINTERP_SP): Likewise.
14656 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14657 (vreinterpretq_p8_f64): Likewise.
14658 (vreinterpret_p16_f64): Likewise.
14659 (vreinterpretq_p16_f64): Likewise.
14660 (vreinterpret_f32_f64): Likewise.
14661 (vreinterpretq_f32_f64): Likewise.
14662 (vreinterpret_f64_f32): Likewise.
14663 (vreinterpret_f64_p8): Likewise.
14664 (vreinterpret_f64_p16): Likewise.
14665 (vreinterpret_f64_s8): Likewise.
14666 (vreinterpret_f64_s16): Likewise.
14667 (vreinterpret_f64_s32): Likewise.
14668 (vreinterpret_f64_s64): Likewise.
14669 (vreinterpret_f64_u8): Likewise.
14670 (vreinterpret_f64_u16): Likewise.
14671 (vreinterpret_f64_u32): Likewise.
14672 (vreinterpret_f64_u64): Likewise.
14673 (vreinterpretq_f64_f32): Likewise.
14674 (vreinterpretq_f64_p8): Likewise.
14675 (vreinterpretq_f64_p16): Likewise.
14676 (vreinterpretq_f64_s8): Likewise.
14677 (vreinterpretq_f64_s16): Likewise.
14678 (vreinterpretq_f64_s32): Likewise.
14679 (vreinterpretq_f64_s64): Likewise.
14680 (vreinterpretq_f64_u8): Likewise.
14681 (vreinterpretq_f64_u16): Likewise.
14682 (vreinterpretq_f64_u32): Likewise.
14683 (vreinterpretq_f64_u64): Likewise.
14684 (vreinterpret_s64_f64): Likewise.
14685 (vreinterpretq_s64_f64): Likewise.
14686 (vreinterpret_u64_f64): Likewise.
14687 (vreinterpretq_u64_f64): Likewise.
14688 (vreinterpret_s8_f64): Likewise.
14689 (vreinterpretq_s8_f64): Likewise.
14690 (vreinterpret_s16_f64): Likewise.
14691 (vreinterpretq_s16_f64): Likewise.
14692 (vreinterpret_s32_f64): Likewise.
14693 (vreinterpretq_s32_f64): Likewise.
14694 (vreinterpret_u8_f64): Likewise.
14695 (vreinterpretq_u8_f64): Likewise.
14696 (vreinterpret_u16_f64): Likewise.
14697 (vreinterpretq_u16_f64): Likewise.
14698 (vreinterpret_u32_f64): Likewise.
14699 (vreinterpretq_u32_f64): Likewise.
14701 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14703 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14704 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14705 (vreinterpret_p8_s8): Likewise.
14706 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14707 (vreinterpret_p8_s16): Likewise.
14708 (vreinterpret_p8_s32): Likewise.
14709 (vreinterpret_p8_s64): Likewise.
14710 (vreinterpret_p8_f32): Likewise.
14711 (vreinterpret_p8_u8): Likewise.
14712 (vreinterpret_p8_u16): Likewise.
14713 (vreinterpret_p8_u32): Likewise.
14714 (vreinterpret_p8_u64): Likewise.
14715 (vreinterpret_p8_p16): Likewise.
14716 (vreinterpretq_p8_s8): Likewise.
14717 (vreinterpretq_p8_s16): Likewise.
14718 (vreinterpretq_p8_s32): Likewise.
14719 (vreinterpretq_p8_s64): Likewise.
14720 (vreinterpretq_p8_f32): Likewise.
14721 (vreinterpretq_p8_u8): Likewise.
14722 (vreinterpretq_p8_u16): Likewise.
14723 (vreinterpretq_p8_u32): Likewise.
14724 (vreinterpretq_p8_u64): Likewise.
14725 (vreinterpretq_p8_p16): Likewise.
14726 (vreinterpret_p16_s8): Likewise.
14727 (vreinterpret_p16_s16): Likewise.
14728 (vreinterpret_p16_s32): Likewise.
14729 (vreinterpret_p16_s64): Likewise.
14730 (vreinterpret_p16_f32): Likewise.
14731 (vreinterpret_p16_u8): Likewise.
14732 (vreinterpret_p16_u16): Likewise.
14733 (vreinterpret_p16_u32): Likewise.
14734 (vreinterpret_p16_u64): Likewise.
14735 (vreinterpret_p16_p8): Likewise.
14736 (vreinterpretq_p16_s8): Likewise.
14737 (vreinterpretq_p16_s16): Likewise.
14738 (vreinterpretq_p16_s32): Likewise.
14739 (vreinterpretq_p16_s64): Likewise.
14740 (vreinterpretq_p16_f32): Likewise.
14741 (vreinterpretq_p16_u8): Likewise.
14742 (vreinterpretq_p16_u16): Likewise.
14743 (vreinterpretq_p16_u32): Likewise.
14744 (vreinterpretq_p16_u64): Likewise.
14745 (vreinterpretq_p16_p8): Likewise.
14746 (vreinterpret_f32_s8): Likewise.
14747 (vreinterpret_f32_s16): Likewise.
14748 (vreinterpret_f32_s32): Likewise.
14749 (vreinterpret_f32_s64): Likewise.
14750 (vreinterpret_f32_u8): Likewise.
14751 (vreinterpret_f32_u16): Likewise.
14752 (vreinterpret_f32_u32): Likewise.
14753 (vreinterpret_f32_u64): Likewise.
14754 (vreinterpret_f32_p8): Likewise.
14755 (vreinterpret_f32_p16): Likewise.
14756 (vreinterpretq_f32_s8): Likewise.
14757 (vreinterpretq_f32_s16): Likewise.
14758 (vreinterpretq_f32_s32): Likewise.
14759 (vreinterpretq_f32_s64): Likewise.
14760 (vreinterpretq_f32_u8): Likewise.
14761 (vreinterpretq_f32_u16): Likewise.
14762 (vreinterpretq_f32_u32): Likewise.
14763 (vreinterpretq_f32_u64): Likewise.
14764 (vreinterpretq_f32_p8): Likewise.
14765 (vreinterpretq_f32_p16): Likewise.
14766 (vreinterpret_s64_s8): Likewise.
14767 (vreinterpret_s64_s16): Likewise.
14768 (vreinterpret_s64_s32): Likewise.
14769 (vreinterpret_s64_f32): Likewise.
14770 (vreinterpret_s64_u8): Likewise.
14771 (vreinterpret_s64_u16): Likewise.
14772 (vreinterpret_s64_u32): Likewise.
14773 (vreinterpret_s64_u64): Likewise.
14774 (vreinterpret_s64_p8): Likewise.
14775 (vreinterpret_s64_p16): Likewise.
14776 (vreinterpretq_s64_s8): Likewise.
14777 (vreinterpretq_s64_s16): Likewise.
14778 (vreinterpretq_s64_s32): Likewise.
14779 (vreinterpretq_s64_f32): Likewise.
14780 (vreinterpretq_s64_u8): Likewise.
14781 (vreinterpretq_s64_u16): Likewise.
14782 (vreinterpretq_s64_u32): Likewise.
14783 (vreinterpretq_s64_u64): Likewise.
14784 (vreinterpretq_s64_p8): Likewise.
14785 (vreinterpretq_s64_p16): Likewise.
14786 (vreinterpret_u64_s8): Likewise.
14787 (vreinterpret_u64_s16): Likewise.
14788 (vreinterpret_u64_s32): Likewise.
14789 (vreinterpret_u64_s64): Likewise.
14790 (vreinterpret_u64_f32): Likewise.
14791 (vreinterpret_u64_u8): Likewise.
14792 (vreinterpret_u64_u16): Likewise.
14793 (vreinterpret_u64_u32): Likewise.
14794 (vreinterpret_u64_p8): Likewise.
14795 (vreinterpret_u64_p16): Likewise.
14796 (vreinterpretq_u64_s8): Likewise.
14797 (vreinterpretq_u64_s16): Likewise.
14798 (vreinterpretq_u64_s32): Likewise.
14799 (vreinterpretq_u64_s64): Likewise.
14800 (vreinterpretq_u64_f32): Likewise.
14801 (vreinterpretq_u64_u8): Likewise.
14802 (vreinterpretq_u64_u16): Likewise.
14803 (vreinterpretq_u64_u32): Likewise.
14804 (vreinterpretq_u64_p8): Likewise.
14805 (vreinterpretq_u64_p16): Likewise.
14806 (vreinterpret_s8_s16): Likewise.
14807 (vreinterpret_s8_s32): Likewise.
14808 (vreinterpret_s8_s64): Likewise.
14809 (vreinterpret_s8_f32): Likewise.
14810 (vreinterpret_s8_u8): Likewise.
14811 (vreinterpret_s8_u16): Likewise.
14812 (vreinterpret_s8_u32): Likewise.
14813 (vreinterpret_s8_u64): Likewise.
14814 (vreinterpret_s8_p8): Likewise.
14815 (vreinterpret_s8_p16): Likewise.
14816 (vreinterpretq_s8_s16): Likewise.
14817 (vreinterpretq_s8_s32): Likewise.
14818 (vreinterpretq_s8_s64): Likewise.
14819 (vreinterpretq_s8_f32): Likewise.
14820 (vreinterpretq_s8_u8): Likewise.
14821 (vreinterpretq_s8_u16): Likewise.
14822 (vreinterpretq_s8_u32): Likewise.
14823 (vreinterpretq_s8_u64): Likewise.
14824 (vreinterpretq_s8_p8): Likewise.
14825 (vreinterpretq_s8_p16): Likewise.
14826 (vreinterpret_s16_s8): Likewise.
14827 (vreinterpret_s16_s32): Likewise.
14828 (vreinterpret_s16_s64): Likewise.
14829 (vreinterpret_s16_f32): Likewise.
14830 (vreinterpret_s16_u8): Likewise.
14831 (vreinterpret_s16_u16): Likewise.
14832 (vreinterpret_s16_u32): Likewise.
14833 (vreinterpret_s16_u64): Likewise.
14834 (vreinterpret_s16_p8): Likewise.
14835 (vreinterpret_s16_p16): Likewise.
14836 (vreinterpretq_s16_s8): Likewise.
14837 (vreinterpretq_s16_s32): Likewise.
14838 (vreinterpretq_s16_s64): Likewise.
14839 (vreinterpretq_s16_f32): Likewise.
14840 (vreinterpretq_s16_u8): Likewise.
14841 (vreinterpretq_s16_u16): Likewise.
14842 (vreinterpretq_s16_u32): Likewise.
14843 (vreinterpretq_s16_u64): Likewise.
14844 (vreinterpretq_s16_p8): Likewise.
14845 (vreinterpretq_s16_p16): Likewise.
14846 (vreinterpret_s32_s8): Likewise.
14847 (vreinterpret_s32_s16): Likewise.
14848 (vreinterpret_s32_s64): Likewise.
14849 (vreinterpret_s32_f32): Likewise.
14850 (vreinterpret_s32_u8): Likewise.
14851 (vreinterpret_s32_u16): Likewise.
14852 (vreinterpret_s32_u32): Likewise.
14853 (vreinterpret_s32_u64): Likewise.
14854 (vreinterpret_s32_p8): Likewise.
14855 (vreinterpret_s32_p16): Likewise.
14856 (vreinterpretq_s32_s8): Likewise.
14857 (vreinterpretq_s32_s16): Likewise.
14858 (vreinterpretq_s32_s64): Likewise.
14859 (vreinterpretq_s32_f32): Likewise.
14860 (vreinterpretq_s32_u8): Likewise.
14861 (vreinterpretq_s32_u16): Likewise.
14862 (vreinterpretq_s32_u32): Likewise.
14863 (vreinterpretq_s32_u64): Likewise.
14864 (vreinterpretq_s32_p8): Likewise.
14865 (vreinterpretq_s32_p16): Likewise.
14866 (vreinterpret_u8_s8): Likewise.
14867 (vreinterpret_u8_s16): Likewise.
14868 (vreinterpret_u8_s32): Likewise.
14869 (vreinterpret_u8_s64): Likewise.
14870 (vreinterpret_u8_f32): Likewise.
14871 (vreinterpret_u8_u16): Likewise.
14872 (vreinterpret_u8_u32): Likewise.
14873 (vreinterpret_u8_u64): Likewise.
14874 (vreinterpret_u8_p8): Likewise.
14875 (vreinterpret_u8_p16): Likewise.
14876 (vreinterpretq_u8_s8): Likewise.
14877 (vreinterpretq_u8_s16): Likewise.
14878 (vreinterpretq_u8_s32): Likewise.
14879 (vreinterpretq_u8_s64): Likewise.
14880 (vreinterpretq_u8_f32): Likewise.
14881 (vreinterpretq_u8_u16): Likewise.
14882 (vreinterpretq_u8_u32): Likewise.
14883 (vreinterpretq_u8_u64): Likewise.
14884 (vreinterpretq_u8_p8): Likewise.
14885 (vreinterpretq_u8_p16): Likewise.
14886 (vreinterpret_u16_s8): Likewise.
14887 (vreinterpret_u16_s16): Likewise.
14888 (vreinterpret_u16_s32): Likewise.
14889 (vreinterpret_u16_s64): Likewise.
14890 (vreinterpret_u16_f32): Likewise.
14891 (vreinterpret_u16_u8): Likewise.
14892 (vreinterpret_u16_u32): Likewise.
14893 (vreinterpret_u16_u64): Likewise.
14894 (vreinterpret_u16_p8): Likewise.
14895 (vreinterpret_u16_p16): Likewise.
14896 (vreinterpretq_u16_s8): Likewise.
14897 (vreinterpretq_u16_s16): Likewise.
14898 (vreinterpretq_u16_s32): Likewise.
14899 (vreinterpretq_u16_s64): Likewise.
14900 (vreinterpretq_u16_f32): Likewise.
14901 (vreinterpretq_u16_u8): Likewise.
14902 (vreinterpretq_u16_u32): Likewise.
14903 (vreinterpretq_u16_u64): Likewise.
14904 (vreinterpretq_u16_p8): Likewise.
14905 (vreinterpretq_u16_p16): Likewise.
14906 (vreinterpret_u32_s8): Likewise.
14907 (vreinterpret_u32_s16): Likewise.
14908 (vreinterpret_u32_s32): Likewise.
14909 (vreinterpret_u32_s64): Likewise.
14910 (vreinterpret_u32_f32): Likewise.
14911 (vreinterpret_u32_u8): Likewise.
14912 (vreinterpret_u32_u16): Likewise.
14913 (vreinterpret_u32_u64): Likewise.
14914 (vreinterpret_u32_p8): Likewise.
14915 (vreinterpret_u32_p16): Likewise.
14916 (vreinterpretq_u32_s8): Likewise.
14917 (vreinterpretq_u32_s16): Likewise.
14918 (vreinterpretq_u32_s32): Likewise.
14919 (vreinterpretq_u32_s64): Likewise.
14920 (vreinterpretq_u32_f32): Likewise.
14921 (vreinterpretq_u32_u8): Likewise.
14922 (vreinterpretq_u32_u16): Likewise.
14923 (vreinterpretq_u32_u64): Likewise.
14924 (vreinterpretq_u32_p8): Likewise.
14925 (vreinterpretq_u32_p16): Likewise.
14927 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14929 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14931 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14933 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14934 (vqnegd_s64): Likewise.
14935 (vqabs_s64): Likewise.
14936 (vqabsd_s64): Likewise.
14938 2014-04-22 Richard Henderson <rth@redhat.com>
14940 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14941 computation to the top of the loop.
14943 2014-04-22 Renlin <renlin.li@arm.com>
14944 Jiong Wang <jiong.wang@arm.com>
14946 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14947 * config/aarch64/aarch64.c (aarch64_layout_frame)
14948 (aarch64_initial_elimination_offset): Likewise.
14950 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14952 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14955 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14957 * machmode.h (bitwise_mode_for_mode): Declare.
14958 * stor-layout.h (bitwise_type_for_mode): Likewise.
14959 * stor-layout.c (bitwise_mode_for_mode): New function.
14960 (bitwise_type_for_mode): Likewise.
14961 * builtins.c (fold_builtin_memory_op): Use it instead of
14962 int_mode_for_mode and build_nonstandard_integer_type.
14964 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14966 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14967 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14968 (*-*-solaris2*): Simplify.
14969 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14970 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14971 *-*-solaris2.9* handling.
14973 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14975 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14976 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14977 handling, simplify.
14978 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14979 * configure: Regenerate.
14981 * config/i386/sol2-9.h: Remove.
14983 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14984 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14985 Remove Solaris 9 references.
14987 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14989 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
14990 (floatuns<GPI:mode><GPF:mode>2): Remove.
14991 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
14992 and floatuns conversions.
14993 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
14994 and floatuns conversions.
14995 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
14996 (w1,w2): New mode attributes for inequal width conversions.
14998 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15000 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15001 the output asm format.
15003 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15005 * config/aarch64/aarch64-simd.md
15006 (aarch64_cm<optab>di): Always split.
15007 (*aarch64_cm<optab>di): New.
15008 (aarch64_cmtstdi): Always split.
15009 (*aarch64_cmtstdi): New.
15011 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15013 PR tree-optimization/60823
15014 * omp-low.c (ipa_simd_modify_function_body): Go through
15015 all SSA_NAMEs and for those refering to vector arguments
15016 which are going to be replaced adjust SSA_NAME_VAR and,
15017 if it is a default definition, change it into a non-default
15018 definition assigned at the beginning of function from new_decl.
15019 (ipa_simd_modify_stmt_ops): Rewritten.
15020 * tree-dfa.c (set_ssa_default_def): When removing default def,
15021 check for NULL loc instead of NULL *loc.
15023 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15025 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15026 restrictions on core registers for DImode values in Thumb2.
15028 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15030 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15031 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15033 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15035 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15036 (*iordi_notzesidi_di): Likewise.
15037 (*iordi_notsesidi_di): Likewise.
15039 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15041 * config/arm/arm-protos.h (tune_params): New struct members.
15042 * config/arm/arm.c: Initialise tune_params per processor.
15043 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15044 for speed, based on new tune_params.
15046 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15048 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15049 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15050 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15051 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15052 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15053 (vrnda_f64): Likewise.
15054 (vrndi_f64): Likewise.
15055 (vrndm_f64): Likewise.
15056 (vrndn_f64): Likewise.
15057 (vrndp_f64): Likewise.
15058 (vrndx_f64): Likewise.
15060 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15062 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15063 GET_MODE_SIZE argument is enum machine_mode.
15065 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15068 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15069 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15071 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15073 PR middle-end/60281
15074 * asan.c (asan_emit_stack_protection): Force the base to align to
15075 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15076 appropriate bits if STRICT_ALIGNMENT.
15077 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15079 (expand_used_vars): Leave a space in the stack frame for alignment
15080 if STRICT_ALIGNMENT.
15082 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15084 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15086 (gimple_store_p): Likewise.
15087 (gimple_assign_load_p): Likewise.
15088 (gimple_assign_cast_p): Likewise.
15089 (gimple_clobber_p): Likewise.
15091 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15092 rather than a gimple.
15093 (gimple_assign_cast_p): Likewise.
15095 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15098 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15099 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15101 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15102 more debug information for E500 if -mdebug=reg.
15104 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15107 * config/i386/i386.c (ix86_expand_builtin)
15108 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15109 register for target RTX.
15110 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15112 2014-04-18 Cong Hou <congh@google.com>
15114 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15115 the widen-mult pattern by handling two operands with different sizes,
15116 and operands whose size is smaller than half of the result type.
15118 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15120 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15121 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15122 (do_estimate_edge_time): Compute it.
15123 * ipa-inline.c (want_inline_small_function_p): Bypass
15124 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15126 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15128 * ipa-inline.c (spec_rem): New static variable.
15129 (dump_overall_stats): New function.
15130 (dump_inline_stats): New function.
15132 2014-04-18 Richard Henderson <rth@redhat.com>
15134 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15135 to GET_MODE_SIZE, not a reg_class_t.
15137 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15139 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15140 (vsx_xxmrglw_<mode>): Likewise.
15142 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15145 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15146 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15147 (rs6000_init_hard_regno_mode_ok): Likewise.
15149 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15151 * ipa-inline.c (inline_small_functions): Account only non-cold
15153 * doc/invoke.texi (inline-unit-growth): Update documentation.
15155 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15157 * config/rs6000/rs6000.md (addti3, subti3): New.
15159 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15162 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15163 comment. Check optimize_insn_for_size_p instead of
15164 optimize_insn_for_speed_p.
15166 2014-04-17 Martin Jambor <mjambor@suse.cz>
15168 * gimple-iterator.c (gsi_start_edge): New function.
15169 * gimple-iterator.h (gsi_start_edge): Declare.
15170 * tree-sra.c (single_non_eh_succ): New function.
15171 (disqualify_ops_if_throwing_stmt): Renamed to
15172 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15173 having one non-EH successor BB.
15174 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15175 generate loads into replacements.
15176 (sra_modify_assign): Likewise and and also use the simple path for
15178 (sra_modify_function_body): Commit statements on edges.
15180 2014-04-17 Richard Biener <rguenther@suse.de>
15182 PR middle-end/60849
15183 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15184 comparison results and add clarifying comment.
15186 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15188 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15189 (blank_mode): Initialize it.
15190 (emit_mode_size_inline, emit_mode_nunits_inline,
15191 emit_mode_inner_inline): New functions.
15192 (emit_insn_modes_h): Call them and surround their output with
15193 #if GCC_VERSION >= 4001 ... #endif.
15194 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15195 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15196 mode_* arrays if the argument is __builtin_constant_p.
15197 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15198 is enum machine_mode.
15200 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15202 * passes.c (opt_pass::execute): Adjust.
15203 (pass_manager::execute_pass_mode_switching): Likewise.
15204 (early_local_passes::execute): Likewise.
15205 (execute_one_pass): Pass cfun to the pass's execute method.
15206 * tree-pass.h (opt_pass::execute): Add function * argument.
15207 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15208 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15209 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15210 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15211 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15212 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15213 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15214 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15215 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15216 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15217 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15218 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15219 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15220 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15221 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15222 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15223 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15224 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15225 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15226 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15227 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15228 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15229 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15230 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15231 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15232 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15233 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15234 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15235 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15238 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15240 * passes.c (opt_pass::gate): Take function * argument.
15241 (gate_all_early_local_passes): Merge into
15242 (early_local_passes::gate): this.
15243 (gate_all_early_optimizations): Merge into
15244 (all_early_optimizations::gate): this.
15245 (gate_all_optimizations): Mege into
15246 (all_optimizations::gate): this.
15247 (gate_all_optimizations_g): Merge into
15248 (all_optimizations_g::gate): this.
15249 (gate_rest_of_compilation): Mege into
15250 (rest_of_compilation::gate): this.
15251 (gate_postreload): Merge into
15252 (postreload::gate): this.
15253 (dump_one_pass): Pass cfun to the pass's gate method.
15254 (execute_ipa_summary_passes): Likewise.
15255 (execute_one_pass): Likewise.
15256 (ipa_write_summaries_2): Likewise.
15257 (ipa_write_optimization_summaries_1): Likewise.
15258 (ipa_read_summaries_1): Likewise.
15259 (ipa_read_optimization_summaries_1): Likewise.
15260 (execute_ipa_stmt_fixups): Likewise.
15261 * tree-pass.h (opt_pass::gate): Add function * argument.
15262 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15263 combine-stack-adj.c, combine.c, compare-elim.c,
15264 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15265 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15266 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15267 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15268 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15269 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15270 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15271 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15272 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15273 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15274 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15275 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15276 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15277 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15278 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15279 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15280 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15281 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15282 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15283 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15284 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15285 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15286 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15287 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15288 var-tracking.c, vtable-verify.c, web.c: Adjust.
15290 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15292 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15293 * configure: Regenerate.
15295 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15297 * passes.c (dump_one_pass): don't check pass->has_gate.
15298 (execute_ipa_summary_passes): Likewise.
15299 (execute_one_pass): Likewise.
15300 (ipa_write_summaries_2): Likewise.
15301 (ipa_write_optimization_summaries_1): Likewise.
15302 (ipa_read_optimization_summaries_1): Likewise.
15303 (execute_ipa_stmt_fixups): Likewise.
15304 * tree-pass.h (pass_data::has_gate): Remove.
15305 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15306 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15307 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15308 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15309 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15310 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15311 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15312 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15313 gimple-low.c, gimple-ssa-isolate-paths.c,
15314 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15315 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15316 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15317 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15318 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15319 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15320 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15321 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15322 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15323 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15324 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15325 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15326 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15327 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15328 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15329 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15330 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15331 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15332 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15333 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15334 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15335 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15338 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15340 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15342 * passes.c (pass_manager::register_dump_files_1): Merge into
15343 (pass_manager::register_dump_files): this, and remove its handling of
15344 properties since the pass always has the properties anyway.
15345 (pass_manager::pass_manager): Adjust.
15347 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15349 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15350 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15351 dealing with properties.
15352 (pass_manager::register_dump_files): Adjust.
15354 2014-03-20 Mark Wielaard <mjw@redhat.com>
15356 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15357 then represent the bound as normal constant value.
15359 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15362 Forward port from 4.8 branch
15363 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15365 * config/i386/bmiintrin.h (_blsi_u32): New.
15366 (_blsi_u64): Ditto.
15367 (_blsr_u32): Ditto.
15368 (_blsr_u64): Ditto.
15369 (_blsmsk_u32): Ditto.
15370 (_blsmsk_u64): Ditto.
15371 (_tzcnt_u32): Ditto.
15372 (_tzcnt_u64): Ditto.
15374 2014-04-17 Kito Cheng <kito@0xlab.org>
15376 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15378 2014-04-17 Richard Biener <rguenther@suse.de>
15380 PR middle-end/60849
15381 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15382 boolean results for comparisons.
15384 2014-04-17 Richard Biener <rguenther@suse.de>
15386 PR tree-optimization/60836
15387 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15388 initial PHI args to be gimple values.
15390 2014-04-17 Richard Biener <rguenther@suse.de>
15392 PR tree-optimization/60841
15393 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15394 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15395 of stmts to SLP build.
15396 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15397 (vect_analyze_slp): Likewise.
15398 (vect_analyze_slp_instance): Likewise.
15399 (vect_build_slp_tree): Limit overall SLP tree growth.
15400 * tree-vectorizer.h (vect_analyze_data_refs,
15401 vect_analyze_slp): Adjust prototypes.
15403 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15405 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15408 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15410 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15411 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15412 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15413 for TARGET_SLOW_PSHUFB
15415 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15417 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15418 * config/i386/i386.c (intel_cost): Ditto.
15420 2014-04-17 Joey Ye <joey.ye@arm.com>
15422 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15424 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15426 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15427 with -fuse-profile.
15429 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15431 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15432 (type_all_derivations_known_p): New predicate.
15433 (type_all_ctors_visible_p): New predicate.
15434 (type_possibly_instantiated_p): New predicate.
15435 (get_odr_type): Compute all_derivations_known.
15436 (dump_odr_type): Dump the flag.
15437 (maybe_record_type): Cleanup.
15438 (record_target_from_binfo): Add bases_to_consider array;
15439 record bases for types w/o instances and skip CXX destructor.
15440 (possible_polymorphic_call_targets_1): Add bases_to_consider
15441 and consider_construction parameters; check if type may have instance.
15442 (get_polymorphic_call_info): Set maybe_in_construction to true
15443 when we know nothing.
15444 (record_targets_from_bases): Skip CXX destructors; they are
15445 never called for types in construction.
15446 (possible_polymorphic_call_targets): Do not record target when
15447 type may not have instance.
15449 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15452 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15453 external aliases alive, too.
15455 2014-04-16 Andrew Pinski <apinski@cavium.com>
15457 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15460 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15462 * final.c (compute_alignments): Do not apply loop alignment to a block
15463 falling through to the exit.
15465 2014-04-16 Catherine Moore <clm@codesourcery.com>
15467 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15468 Adjust constraints for microMIPS store patterns.
15470 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15472 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15474 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15476 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15477 (append_use): Run at -O0.
15478 (append_vdef): Likewise.
15479 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15480 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15482 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15484 PR tree-optimization/60844
15485 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15486 (propagate_op_to_single_use, remove_visited_stmt_chain,
15487 linearize_expr, repropagate_negates, reassociate_bb): Use it
15488 instead of gsi_remove.
15490 2014-04-16 Martin Jambor <mjambor@suse.cz>
15492 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15493 ipa_transforms_to_apply.
15494 (cgraph_function_versioning): Assert that old_node has empty
15495 ipa_transforms_to_apply.
15496 * trans-mem.c (ipa_tm_create_version): Likewise.
15497 * tree-inline.c (tree_function_versioning): Do not duplicate
15498 ipa_transforms_to_apply.
15500 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15503 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15505 Pass necessary as flags on 64-bit Solaris/x86.
15506 Use lowercase relocs for x86_64-*-*.
15507 * configure: Regenerate.
15509 2014-04-15 Jan Hubicka <jh@suse.cz>
15511 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15512 (maybe_record_node, likely_target_p): Use it.
15514 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15517 Revert following patch
15519 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15522 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15523 software floating point or no floating point registers, do not
15524 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15525 in GPRs that occurs after we tested for GPRs that would never be
15528 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15529 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15530 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15531 specifically allow DDmode, since that does not use the SPE SIMD
15534 2014-03-21 Mark Wielaard <mjw@redhat.com>
15536 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15537 as unsigned or int depending on type and value used.
15539 2014-04-15 Richard Biener <rguenther@suse.de>
15541 PR rtl-optimization/56965
15542 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15543 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15545 * alias.c (true_dependence_1): Do not call
15546 nonoverlapping_component_refs_p.
15547 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15548 nonoverlapping_component_refs_p.
15549 (indirect_refs_may_alias_p): Likewise.
15551 2014-04-15 Teresa Johnson <tejohnson@google.com>
15553 * cfg.c (dump_bb_info): Fix flags check.
15554 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15556 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15558 PR rtl-optimization/60663
15559 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15562 2014-04-15 Richard Biener <rguenther@suse.de>
15564 * lto-streamer.h (LTO_major_version): Bump to 4.
15566 2014-04-15 Richard Biener <rguenther@suse.de>
15568 * common.opt (lto_partition_model): New enum.
15569 (flto-partition=): Merge separate options with a single with argument,
15570 add -flto-partition=one support.
15571 * flag-types.h (enum lto_partition_model): Declare.
15572 * opts.c (finish_options): Remove duplicate -flto-partition=
15574 * lto-wrapper.c (run_gcc): Adjust.
15576 2014-04-15 Richard Biener <rguenther@suse.de>
15578 * alias.c (ncr_compar): New function.
15579 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15581 2014-04-15 Richard Biener <rguenther@suse.de>
15583 * alias.c (record_component_aliases): Do not walk BINFOs.
15585 2014-04-15 Richard Biener <rguenther@suse.de>
15587 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15588 Add struct function argument and adjust.
15589 (find_func_aliases_for_call): Likewise.
15590 (find_func_aliases): Likewise.
15591 (find_func_clobbers): Likewise.
15592 (intra_create_variable_infos): Likewise.
15593 (compute_points_to_sets): Likewise.
15594 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15596 2014-04-15 Richard Biener <rguenther@suse.de>
15598 * tree.c (iterative_hash_expr): Use enum tree_code_class
15599 to store TREE_CODE_CLASS.
15600 (tree_block): Likewise.
15601 (tree_set_block): Likewise.
15602 * tree.h (fold_build_pointer_plus_loc): Use
15603 convert_to_ptrofftype_loc.
15605 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15608 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15611 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15613 * cfgloop.h (struct loop): Move force_vectorize down.
15614 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15615 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15616 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15617 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15618 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15619 * tree-core.h (enum annot_expr_kind): Add new kind values.
15620 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15621 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15623 * tree.def (ANNOTATE_EXPR): Tweak comment.
15625 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15627 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15630 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15632 * tree.h (TYPE_IDENTIFIER): Declare.
15633 * tree.c (subrange_type_for_debug_p): Use it.
15634 * godump.c (go_format_type): Likewise.
15635 * dwarf2out.c (is_cxx_auto, modified_type_die,
15636 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15637 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15639 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15642 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15644 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15646 * config/i386/i386.c (examine_argument): Return bool. Return true if
15647 parameter should be passed in memory.
15648 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15649 (construct_container): Update calls to examine_argument.
15650 (function_arg_advance_64): Ditto.
15651 (return_in_memory_32): Merge with ix86_return_in_memory.
15652 (return_in_memory_64): Ditto.
15653 (return_in_memory_ms_64): Ditto.
15655 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15657 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15658 * coverage.c (coverage_compute_profile_id): Handle externally visible
15661 2014-04-14 Martin Jambor <mjambor@suse.cz>
15663 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15664 DECL_DISREGARD_INLINE_LIMITS functions.
15666 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15669 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15671 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15674 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15675 optimize_insn_for_speed_p instead of
15676 optimize_function_for_speed_p.
15678 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15680 * doc/invoke.texi (free): Document AArch64.
15682 2014-04-14 Richard Biener <rguenther@suse.de>
15684 PR tree-optimization/60042
15685 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15686 (insert_into_preds_of_block): Do not prevent PHI insertion
15687 for REFERENCE exprs here ...
15688 (eliminate_dom_walker::before_dom_children): ... but prevent
15689 their use here under similar conditions when applied to the
15690 IL after PRE optimizations.
15692 2014-04-14 Richard Biener <rguenther@suse.de>
15694 * passes.def: Move early points-to after early SRA.
15696 2014-04-14 Richard Biener <rguenther@suse.de>
15698 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15699 check for which sign-changes we allow when forwarding
15700 a converted value into a switch.
15702 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15704 * stor-layout.c (place_field): Finalize non-constant offset for the
15707 2014-04-14 Richard Biener <rguenther@suse.de>
15709 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15711 (expand_switch_using_bit_tests_p): Likewise.
15712 (process_switch): Compute and pass on speed_p based on the
15714 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15715 optimize_bb_for_speed_p.
15717 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15719 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15720 * function.h (struct function): Rename has_force_vect_loops into
15721 has_force_vectorize_loops.
15722 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15723 (input_struct_function_base): Likewise.
15724 * lto-streamer-out.c (output_cfg): Likewise.
15725 (output_struct_function_base): Likewise.
15726 * omp-low.c (expand_omp_simd): Likewise.
15727 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15728 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15729 (version_loop_for_if_conversion): Likewise.
15730 (tree_if_conversion): Likewise.
15731 (main_tree_if_conversion): Likewise.
15732 (gate_tree_if_conversion): Likewise.
15733 * tree-inline.c (copy_loops): Likewise.
15734 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15735 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15736 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15737 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15738 * tree-vectorizer.c (vectorize_loops): Likewise.
15739 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15741 2014-04-14 Richard Biener <rguenther@suse.de>
15744 * lto-streamer-out.c (wrap_refs): New function.
15745 (lto_output): Wrap symbol references in global initializes in
15746 type-preserving MEM_REFs.
15748 2014-04-14 Christian Bruel <christian.bruel@st.com>
15750 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15752 2014-04-14 Christian Bruel <christian.bruel@st.com>
15754 * config/sh/sh.md (setmemqi): New expand pattern.
15755 * config/sh/sh.h (CLEAR_RATIO): Define.
15756 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15757 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15759 2014-04-14 Richard Biener <rguenther@suse.de>
15761 PR middle-end/55022
15762 * fold-const.c (negate_expr_p): Don't negate directional rounding
15764 (fold_negate_expr): Likewise.
15766 2014-04-14 Richard Biener <rguenther@suse.de>
15768 PR tree-optimization/59817
15769 PR tree-optimization/60453
15770 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15771 recursion to catch all CHRECs in the scalar evolution and restrict
15772 the predicate for the remains appropriately.
15774 2014-04-12 Catherine Moore <clm@codesourcery.com>
15776 * config/mips/constraints.md: Add new register constraint "kb".
15777 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15778 (*movhi_internal): Likewise.
15779 (*movqi_internal): Likewise.
15780 * config/mips/mips.h (M16_STORE_REGS): New register class.
15781 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15782 (REG_CLASS_CONTENTS): Likewise.
15783 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15785 2014-04-11 Tobias Burnus <burnus@net-b.de>
15788 * doc/invoke.texi (-Wformat-signedness): Document it.
15789 (Wformat=2): Mention that this enables -Wformat-signedness.
15791 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15793 * common/config/epiphany/epiphany-common.c
15794 (epiphany_option_optimization_table): Enable section anchors by
15795 default at -O1 or higher.
15796 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15797 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15798 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15799 carries no extra cost.
15800 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15801 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15802 * config/epiphany/predicates.md (memclob_operand): New predicate.
15803 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15804 Use memclob_operand predicate and X constraint for operand 3.
15806 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15808 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15809 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15812 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15814 PR rtl-optimization/60651
15815 * mode-switching.c (optimize_mode_switching): Make sure to emit
15816 sets of a lower numbered entity before sets of a higher numbered
15817 entity to a mode of the same or lower priority.
15818 When creating a seginfo for a basic block that starts with a code
15819 label, move the insertion point past the code label.
15820 (new_seginfo): Document and enforce requirement that
15821 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15822 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15823 * doc/tm.texi: Regenerate.
15825 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15828 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15830 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15832 * BASE-VER: Set to 4.10.0.
15834 2014-04-11 Tobias Burnus <burnus@net-b.de>
15837 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15838 * doc/gcc.texi (Service): Update description in the @menu
15839 * doc/invoke.texi (Option Summary): Remove misplaced and
15842 2014-04-11 Steve Ellcey <sellcey@mips.com>
15843 Jakub Jelinek <jakub@redhat.com>
15845 PR middle-end/60556
15846 * expr.c (convert_move): Use emit_store_flag_force instead of
15847 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15850 2014-04-11 Richard Biener <rguenther@suse.de>
15852 PR middle-end/60797
15853 * varasm.c (assemble_alias): Avoid endless error reporting
15854 recursion by setting TREE_ASM_WRITTEN.
15856 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15858 * config/s390/s390.md: Add a splitter for NOT rtx.
15860 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15862 PR rtl-optimization/60663
15863 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15865 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15866 Jakub Jelinek <jakub@redhat.com>
15869 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15870 flag from decl_node to node.
15872 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15875 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15876 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15877 ameliorating the cases where it can be.
15879 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15882 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15884 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15885 (loadsync_<mode>): Change mode.
15886 (load_quadpti, store_quadpti): New.
15887 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15888 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15889 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15891 2014-04-09 Cong Hou <congh@google.com>
15894 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15897 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15899 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15900 instead of vnor to exploit possible fusion opportunity in the
15902 (altivec_expand_vec_perm_const_le): Likewise.
15904 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15906 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15907 (loadsync_<mode>): Change mode.
15908 (load_quadpti, store_quadpti): New.
15909 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15910 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15912 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15915 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15916 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15917 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15919 2014-04-08 Richard Biener <rguenther@suse.de>
15921 PR middle-end/60706
15922 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15923 a 64bit widest int print double-int similar to on HWI64 hosts.
15925 2014-04-08 Richard Biener <rguenther@suse.de>
15927 PR tree-optimization/60785
15928 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15929 default defs properly.
15931 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15933 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15934 (Weffc++): Likewise.
15936 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15938 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15939 set completep to false rather than true.
15941 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15944 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15945 ARM_TARGET2_DWARF_FORMAT.
15947 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15950 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15951 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15954 2014-04-07 Richard Biener <rguenther@suse.de>
15956 PR tree-optimization/60766
15957 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15958 (may_eliminate_iv): Convert cand_value_at result to desired type.
15960 2014-04-07 Jason Merrill <jason@redhat.com>
15963 * common.opt (-fno-gnu-unique): Add.
15964 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15966 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15968 * haifa-sched.c: Fix outdated function reference and minor
15969 grammar errors in introductory comment.
15971 2014-04-07 Richard Biener <rguenther@suse.de>
15973 PR middle-end/60750
15974 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15975 for noreturn calls.
15976 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15978 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15981 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15982 size accounting for thunks.
15983 (pa_asm_output_mi_thunk): Use final_start_function() and
15984 final_end_function() to output function start and end directives.
15986 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15988 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
15989 device specific ISA/ feature information. Remove short_sp and
15990 errata_skip ds. Add avr_device_specific_features enum to have device
15992 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
15993 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
15994 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
15995 updated device specific info.
15996 * config/avr/avr-mcus.def: Merge device specific details to
15997 dev_attribute field.
15998 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16000 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16001 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16002 assembler if RMW isa supported by current device.
16003 * config/avr/genmultilib.awk: Update as device info structure changed.
16004 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16006 2014-04-04 Cong Hou <congh@google.com>
16008 PR tree-optimization/60656
16009 * tree-vect-stmts.c (supportable_widening_operation):
16010 Fix a bug that elements in a vector with vect_used_by_reduction
16011 property are incorrectly reordered when the operation on it is not
16012 consistant with the one in reduction operation.
16014 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16016 PR rtl-optimization/60155
16017 * gcse.c (record_set_data): New function.
16018 (single_set_gcse): New function.
16019 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16020 (hoist_code): Likewise.
16021 (get_pressure_class_and_nregs): Likewise.
16023 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16025 * explow.c (probe_stack_range): Emit a final optimization blockage.
16027 2014-04-04 Anthony Green <green@moxielogic.com>
16029 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16032 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16035 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16036 flags are set only during streaming.
16037 * ipa.c (process_references, walk_polymorphic_call_targets,
16038 symtab_remove_unreachable_nodes): Drop bodies of always inline
16039 after early inlining.
16040 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16042 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16043 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16046 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16049 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16052 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16054 (cortex_a53_fdivd): Likewise.
16056 2014-04-04 Martin Jambor <mjambor@suse.cz>
16059 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16060 Adjust all callers.
16061 * cgraph.c (clone_of_p): Also return true if thunks match.
16062 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16063 cgraph_function_or_thunk_node and an obsolete comment.
16064 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16066 (build_function_decl_skip_args): Likewise.
16067 (set_new_clone_decl_and_node_flags): New function.
16068 (duplicate_thunk_for_node): Likewise.
16069 (redirect_edge_duplicating_thunks): Likewise.
16070 (cgraph_clone_node): New parameter args_to_skip, pass it to
16071 redirect_edge_duplicating_thunks which is called instead of
16072 cgraph_redirect_edge_callee.
16073 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16074 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16076 2014-04-04 Jeff Law <law@redhat.com>
16079 * config/arm/predicates.md (const_int_I_operand): New predicate.
16080 (const_int_M_operand): Similarly.
16081 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16083 (insv_t2, extv_reg, extzv_t2): Likewise.
16084 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16085 (pop_multiple_with_writeback_and_return): Likewise.
16086 (vfp_pop_multiple_with_writeback): Likewise
16088 2014-04-04 Richard Biener <rguenther@suse.de>
16091 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16092 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16094 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16095 * gimplify.c (gimple_add_tmp_var_fn): New function.
16096 * gimple-expr.h (create_tmp_reg_fn): Declare.
16097 * gimple-expr.c (create_tmp_reg_fn): New function.
16098 * gimple-low.c (record_vars_into): Don't change cfun.
16099 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16100 code generation without cfun.
16102 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16105 * Makefile.in (install-driver): Fix shell scripting.
16107 2014-04-03 Cong Hou <congh@google.com>
16109 PR tree-optimization/60505
16110 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16111 threshold of number of iterations below which no vectorization
16113 * tree-vect-loop.c (new_loop_vec_info):
16114 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16115 * tree-vect-loop.c (vect_analyze_loop_operations):
16116 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16117 * tree-vect-loop.c (vect_transform_loop):
16118 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16119 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16120 of iterations of the loop and see if we should build the epilogue.
16122 2014-04-03 Richard Biener <rguenther@suse.de>
16124 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16125 (streamer_tree_cache_create): Adjust.
16126 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16127 to allow optional nodes array.
16128 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16129 (streamer_tree_cache_append): Likewise.
16130 (streamer_tree_cache_create): Create nodes array optionally
16131 as specified by parameter.
16132 * lto-streamer-out.c (create_output_block): Avoid maintaining
16133 the node array in the writer cache.
16134 (DFS_write_tree): Remove assertion.
16135 (produce_asm_for_decls): Free the out decl state hash table early.
16136 * lto-streamer-in.c (lto_data_in_create): Adjust for
16137 streamer_tree_cache_create prototype change.
16139 2014-04-03 Richard Biener <rguenther@suse.de>
16141 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16142 set TREE_CHAIN to NULL_TREE.
16144 2014-04-03 Richard Biener <rguenther@suse.de>
16146 PR tree-optimization/60740
16147 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16148 over all GIMPLE_COND operands.
16150 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16152 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16153 (Weffc++): Remove Scott's numbering, merge lists and reference
16156 2014-04-03 Nick Clifton <nickc@redhat.com>
16158 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16161 2014-04-03 Martin Jambor <mjambor@suse.cz>
16163 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16164 mention gcc_unreachable before failing.
16165 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16168 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16171 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16172 inconsistent code and instead mark the context inconsistent.
16173 (possible_polymorphic_call_targets): For inconsistent contexts
16174 return empty complete list.
16176 2014-04-02 Anthony Green <green@moxielogic.com>
16178 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16179 (extendqisi2, extendhisi2): Define.
16180 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16181 (WCHAR_TYPE): Change to unsigned int.
16183 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16185 PR tree-optimization/60733
16186 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16187 insertion point for PHI candidates to be the end of the feeding
16188 block for the PHI argument.
16190 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16192 PR rtl-optimization/60650
16193 * lra-constraints.c (process_alt_operands): Decrease reject for
16194 earlyclobber matching.
16196 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16198 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16200 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16202 * config/spu/spu.c (pad_bb): Do not crash when the last
16203 insn is CODE_FOR_blockage.
16205 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16207 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16208 lies outside the target mode.
16210 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16213 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16214 software floating point or no floating point registers, do not
16215 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16216 in GPRs that occurs after we tested for GPRs that would never be
16219 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16220 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16221 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16222 specifically allow DDmode, since that does not use the SPE SIMD
16225 2014-04-02 Richard Biener <rguenther@suse.de>
16227 PR middle-end/60729
16228 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16229 MODE_INTs. Properly use negv_optab.
16230 (expand_abs): Likewise.
16232 2014-04-02 Richard Biener <rguenther@suse.de>
16235 * Makefile.in (install-driver): Guard extra installs with special
16238 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16240 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16241 Document vec_vgbbd.
16243 2014-04-01 Richard Henderson <rth@redhat.com>
16246 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16247 alternative enabled before register allocation.
16249 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16251 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16252 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16254 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16255 (nios2_got_address): Update nios2_large_got_address call site.
16256 (nios2_delegitimize_address): New function.
16257 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16258 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16259 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16261 2014-04-01 Martin Husemann <martin@duskware.de>
16263 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16266 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16268 PR rtl-optimization/60604
16269 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16270 check from register_operand.
16271 (register_operand): Redefine in terms of general_operand.
16272 (nonmemory_operand): Use register_operand for the non-constant cases.
16274 2014-04-01 Richard Biener <rguenther@suse.de>
16276 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16278 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16280 * doc/invoke.texi (mapp-regs): Clarify.
16282 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16284 * config/i386/avx512fintrin.h (__v32hi): Define type.
16285 (__v64qi): Likewise.
16286 (_mm512_set1_epi8): Define.
16287 (_mm512_set1_epi16): Define.
16288 (_mm512_set4_epi32): Define.
16289 (_mm512_set4_epi64): Define.
16290 (_mm512_set4_pd): Define.
16291 (_mm512_set4_ps): Define.
16292 (_mm512_setr4_epi64): Define.
16293 (_mm512_setr4_epi32): Define.
16294 (_mm512_setr4_pd): Define.
16295 (_mm512_setr4_ps): Define.
16296 (_mm512_setzero_epi32): Define.
16298 2014-03-31 Martin Jambor <mjambor@suse.cz>
16300 PR middle-end/60647
16301 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16302 callsite_arguments_match_p. Updated all callers. Also check types of
16303 corresponding formal parameters and actual arguments.
16304 (not_all_callers_have_enough_arguments_p) Renamed to
16305 some_callers_have_mismatched_arguments_p.
16307 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16309 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16311 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16314 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16317 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16319 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16320 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16322 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16323 Use FMAMODE_NOVF512 mode iterator.
16324 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16325 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16326 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16327 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16329 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16330 Use VF_128_256 mode iterator.
16331 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16334 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16336 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16337 static chain if needed.
16339 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16342 * lra-constraints.c (index_part_to_reg): New.
16343 (process_address): Use it.
16345 2014-03-27 Jeff Law <law@redhat.com>
16346 Jakub Jelinek <jakub@redhat.com>
16349 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16350 gen_rtx_{PLUS,MULT} to build up the address expression.
16352 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16353 creating non-canonical RTL.
16355 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16358 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16359 functions; reorganize to make cheap checks first.
16360 (inline_small_functions): Do not estimate growth when dumping;
16362 * ipa-inline.h (inline_summary): Add min_size.
16363 (growth_likely_positive): New function.
16364 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16365 (set_cond_stmt_execution_predicate): Cleanup.
16366 (estimate_edge_size_and_time): Compute min_size.
16367 (estimate_calls_size_and_time): Likewise.
16368 (estimate_node_size_and_time): Likewise.
16369 (inline_update_overall_summary): Update min_size.
16370 (do_estimate_edge_time): Likewise.
16371 (do_estimate_edge_size): Update.
16372 (do_estimate_edge_hints): Update.
16373 (growth_likely_positive): New function.
16375 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16378 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16379 also if addr has VOIDmode.
16381 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16383 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16384 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16386 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16387 instructions as well as AdvancedSIMD loads.
16389 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16391 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16392 Use crypto_aese type.
16393 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16394 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16395 crypto_aese, crypto_aesmc. Move to types.md.
16396 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16398 * config/arm/iterators.md (crypto_type): Likewise.
16400 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16402 * cgraph.c: Include expr.h and tree-dfa.h.
16403 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16406 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16409 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16410 regs from checking multi-reg pseudos.
16412 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16414 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16416 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16418 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16419 if it would clobber the stack pointer, even temporarily.
16421 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16423 * mode-switching.c: Make small adjustments to the top comment.
16425 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16427 * config/rs6000/constraints.md (wD constraint): New constraint to
16428 match the constant integer to get the top DImode/DFmode out of a
16429 vector in a VSX register.
16431 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16432 match the constant integer to get the top DImode/DFmode out of a
16433 vector in a VSX register.
16435 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16438 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16441 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16442 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16444 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16445 Optimize vec_extract of 64-bit values, where the value being
16446 extracted is in the top word, where we can use scalar
16447 instructions. Add direct move and store support. Combine the big
16448 endian/little endian vector select load support into a single insn.
16449 (vsx_extract_<mode>_internal1): Likewise.
16450 (vsx_extract_<mode>_internal2): Likewise.
16451 (vsx_extract_<mode>_load): Likewise.
16452 (vsx_extract_<mode>_store): Likewise.
16453 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16454 combined into vsx_extract_<mode>_load.
16455 (vsx_extract_<mode>_one_le): Likewise.
16457 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16458 define the top 64-bit vector element.
16460 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16463 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16464 Document vec_vbpermq builtin.
16467 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16468 enable use of xxsldwi and xxpermdi builtin functions.
16469 (vec_xxpermdi): Likewise.
16471 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16472 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16474 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16476 PR rtl-optimization/60650
16477 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16479 (find_spills_for): New.
16480 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16481 Spill all pseudos on the second iteration.
16483 2014-03-27 Marek Polacek <polacek@redhat.com>
16486 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16489 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16491 * config/s390/s390.c (s390_can_use_return_insn): Check for
16492 call-saved FPRs on 31 bit.
16494 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16496 PR middle-end/60682
16497 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16498 if they need regimplification, just drop them instead of
16499 calling gimple_regimplify_operands on them.
16501 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16504 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16505 (aarch64_frame_pointer_required): Adjust logic.
16506 (aarch64_can_eliminate): Adjust logic.
16507 (aarch64_override_options_after_change): Adjust logic.
16509 2014-03-27 Dehao Chen <dehao@google.com>
16511 * ipa-inline.c (early_inliner): Update node's inline info.
16513 2014-03-26 Dehao Chen <dehao@google.com>
16515 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16516 compiler inserted conditional jumps for NAN float check.
16518 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16520 * ubsan.h (ubsan_create_data): Change second argument's type
16521 to const location_t *.
16522 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16524 (ubsan_create_data): Change second argument to const location_t *PLOC.
16525 Create Loc field whenever PLOC is non-NULL.
16526 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16527 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16531 * real.c (real_to_integer2): Change type of low to UHWI.
16533 2014-03-26 Tobias Burnus <burnus@net-b.de>
16535 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16536 (CILK_SELF_SPECS): New define.
16537 (driver_self_specs): Use it.
16539 2014-03-26 Richard Biener <rguenther@suse.de>
16541 * tree-pretty-print.c (percent_K_format): Implement special
16542 case for LTO and its stripped down BLOCK tree.
16544 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16547 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16549 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16550 one range is range_int_cst_p, but not both, at least optimize
16551 addition/subtraction of 0 and multiplication by 0 or 1.
16552 * gimple-fold.c (gimple_fold_call): Fold
16553 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16554 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16555 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16557 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16559 PR rtl-optimization/60452
16560 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16561 <case REG>: Return 1 for invalid offsets from the frame pointer.
16563 2014-03-26 Marek Polacek <polacek@redhat.com>
16566 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16569 2014-03-26 Marek Polacek <polacek@redhat.com>
16572 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16575 2014-03-26 Marek Polacek <polacek@redhat.com>
16578 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16579 multiplication in unsigned type.
16581 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16583 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16585 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16587 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16589 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16592 * cif-code.def (UNREACHABLE) New code.
16593 * ipa-inline.c (inline_small_functions): Skip edges to
16594 __builtlin_unreachable.
16595 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16596 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16597 predicate to __bulitin_unreachable.
16598 (set_cond_stmt_execution_predicate): Fix issue when
16599 invert_tree_comparison returns ERROR_MARK.
16600 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16601 propagate to inline clones.
16602 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16604 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16605 * cgraphclones.c (cgraph_clone_node): If call destination is already
16606 ureachable, do not redirect it back.
16607 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16610 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16612 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16613 Do not modify inline clones.
16615 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16617 * config/i386/i386.md (general_sext_operand): New mode attr.
16618 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16619 don't generate (sign_extend (const_int)).
16620 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16621 operands[2]. Use We constraint instead of <i> and
16622 <general_sext_operand> predicate instead of <general_operand>.
16623 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16624 * config/i386/constraints.md (We): New constraint.
16625 * config/i386/predicates.md (x86_64_sext_operand,
16626 sext_operand): New predicates.
16628 2014-03-25 Martin Jambor <mjambor@suse.cz>
16631 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16632 inconsistent devirtualizations to __builtin_unreachable.
16634 2014-03-25 Marek Polacek <polacek@redhat.com>
16637 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16639 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16641 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16642 order of elements for big-endian.
16644 2014-03-25 Richard Biener <rguenther@suse.de>
16646 PR middle-end/60635
16647 * gimplify-me.c (gimple_regimplify_operands): Update the
16650 2014-03-25 Martin Jambor <mjambor@suse.cz>
16653 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16654 (lto_output_varpool_node): Likewise.
16655 (input_overwrite_node): Likewise.
16656 (input_varpool_node): Likewise.
16658 2014-03-25 Richard Biener <rguenther@suse.de>
16660 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16661 (run_gcc): Likewise.
16663 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16665 * combine.c (simplify_compare_const): Add MODE argument.
16666 Handle mode_width 0 as very large mode_width.
16667 (try_combine, simplify_comparison): Adjust callers.
16669 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16670 type to avoid signed integer overflow.
16671 * explow.c (plus_constant): Likewise.
16673 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16675 * doc/generic.texi: Correct typos.
16677 2014-03-24 Tobias Burnus <burnus@net-b.de>
16679 * doc/invoke.texi (-flto): Expand section about
16680 using static libraries with LTO.
16682 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16684 PR rtl-optimization/60501
16685 * optabs.def (addptr3_optab): New optab.
16686 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16687 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16688 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16690 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16692 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16694 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16696 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16699 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16700 (_mm256_undefined_ps): Define.
16701 (_mm256_undefined_pd): Define.
16702 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16703 (_mm_undefined_pd): Define.
16704 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16705 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16706 (_mm512_undefined_ps): Define.
16707 (_mm512_undefined_pd): Define.
16708 Use _mm*_undefined_*.
16709 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16711 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16713 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16714 (lshr_simd): DI mode added.
16715 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16716 (aarch64_ushr_simddi): Likewise.
16717 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16718 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16719 (vshrd_n_u64): Likewise.
16721 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16723 * Makefile.in (s-macro_list): Depend on cc1.
16725 2014-03-23 Teresa Johnson <tejohnson@google.com>
16727 * ipa-utils.c (ipa_print_order): Use specified dump file.
16729 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16731 PR rtl-optimization/60601
16732 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16734 * gcc.c (eval_spec_function): Initialize save_growing_value.
16736 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16739 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16740 code == MINUS_EXPR, never swap op0 with op1.
16742 * toplev.c (init_local_tick): Avoid signed integer multiplication
16744 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16745 shift by first operand's bitsize.
16747 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16750 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16751 redefine to 1 or 0.
16752 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16753 TARGET_ISA_64BIT_P(x).
16755 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16757 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16758 pattern for vector nor instead of subtract from splat(-1).
16759 (altivec_expand_vec_perm_const_le): Likewise.
16761 2014-03-21 Richard Henderson <rth@twiddle.net>
16764 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16765 related insns after epilogue_completed.
16767 2014-03-21 Martin Jambor <mjambor@suse.cz>
16770 * cgraph.h (symtab_node): New flag body_removed.
16771 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16772 when removing bodies.
16773 * symtab.c (dump_symtab_base): Dump body_removed flag.
16774 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16775 had their bodies removed.
16777 2014-03-21 Martin Jambor <mjambor@suse.cz>
16780 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16783 2014-03-21 Richard Biener <rguenther@suse.de>
16785 PR tree-optimization/60577
16786 * tree-core.h (struct tree_base): Document nothrow_flag use
16787 in DECL_NONALIASED.
16788 * tree.h (DECL_NONALIASED): New.
16789 (may_be_aliased): Adjust.
16790 * coverage.c (build_var): Set DECL_NONALIASED.
16792 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16794 * expr.c (expand_expr_real_1): Remove outdated comment.
16796 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16798 PR middle-end/60597
16799 * ira.c (adjust_cleared_regs): Call copy_rtx on
16800 *reg_equiv[REGNO (loc)].src_p before passing it to
16801 simplify_replace_fn_rtx.
16804 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16805 into CONST, put pic register as first operand of PLUS. Use
16806 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16808 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16810 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16812 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16814 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16815 around for store forwarding issue in the FPU on the UT699.
16816 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16817 loads and operations if -mfix-ut699 is specified.
16818 (divtf3_hq): Tweak attribute.
16819 (sqrttf2_hq): Likewise.
16821 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16823 * calls.c (store_one_arg): Remove incorrect const qualification on the
16824 type of the temporary.
16825 * cfgexpand.c (expand_return): Likewise.
16826 * expr.c (expand_constructor): Likewise.
16827 (expand_expr_real_1): Likewise.
16829 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16831 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16834 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16837 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16839 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16841 * config/arm/aarch-common-protos.h
16842 (alu_cost_table): Fix spelling of "extend".
16843 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16845 2014-03-19 Richard Biener <rguenther@suse.de>
16847 PR middle-end/60553
16848 * tree-core.h (tree_type_common): Re-order pointer members
16849 to reduce recursion depth during GC walks.
16851 2014-03-19 Marek Polacek <polacek@redhat.com>
16854 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16855 before accessing it.
16857 2014-03-19 Richard Biener <rguenther@suse.de>
16860 * lto-streamer-in.c (input_function): In WPA stage do not drop
16863 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16865 PR tree-optimization/60559
16866 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16867 with build_zero_cst assignment.
16869 2014-03-18 Kai Tietz <ktietz@redhat.com>
16871 PR rtl-optimization/56356
16872 * sdbout.c (sdbout_parms): Verify that parms'
16873 incoming argument is valid.
16874 (sdbout_reg_parms): Likewise.
16876 2014-03-18 Richard Henderson <rth@redhat.com>
16879 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16880 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16881 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16883 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16885 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16886 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16887 Italicize plugin event names in description. Explain that
16888 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16889 Remind that no GCC functions should be called after PLUGIN_FINISH.
16890 Explain what pragmas with expansion are.
16892 2014-03-18 Martin Liska <mliska@suse.cz>
16894 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16895 gimple call statement is update.
16896 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16897 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16899 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16902 * ubsan.c (ubsan_instrument_unreachable): Call
16903 initialize_sanitizer_builtins.
16904 (ubsan_pass): Likewise.
16907 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16908 varpool_finalize_decl instead of rest_of_decl_compilation.
16910 2014-03-18 Richard Biener <rguenther@suse.de>
16912 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16913 by using bitmap_and_compl instead of bitmap_and_compl_into.
16914 (df_rd_transfer_function): Likewise.
16916 2014-03-18 Richard Biener <rguenther@suse.de>
16918 * doc/lto.texi (fresolution): Fix typo.
16920 2014-03-18 Richard Biener <rguenther@suse.de>
16922 * doc/invoke.texi (flto): Update for changes in 4.9.
16924 2014-03-18 Richard Biener <rguenther@suse.de>
16926 * doc/loop.texi: Remove section on the removed lambda framework.
16927 Update loop docs with recent changes in preserving loop structure.
16929 2014-03-18 Richard Biener <rguenther@suse.de>
16931 * doc/lto.texi (-fresolution): Document.
16933 2014-03-18 Richard Biener <rguenther@suse.de>
16935 * doc/contrib.texi: Adjust my name.
16937 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16940 * internal-fn.c: Include diagnostic-core.h.
16941 (expand_BUILTIN_EXPECT): New function.
16942 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16943 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16944 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16945 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16946 IFN_BUILTIN_EXPECT.
16947 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16948 Revert 3 argument __builtin_expect code.
16949 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16950 * gimple-fold.c (gimple_fold_call): Likewise.
16951 * tree.h (fold_builtin_expect): New prototype.
16952 * builtins.c (build_builtin_expect_predicate): Add predictor
16953 argument, if non-NULL, create 3 argument __builtin_expect.
16954 (fold_builtin_expect): No longer static. Add ARG2 argument,
16955 pass it through to build_builtin_expect_predicate.
16956 (fold_builtin_2): Adjust caller.
16957 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16958 * internal-fn.def (BUILTIN_EXPECT): New.
16960 2014-03-18 Tobias Burnus <burnus@net-b.de>
16963 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16964 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16965 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16967 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16970 * predict.c (combine_predictions_for_bb): Fix up formatting.
16971 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16972 fill what it points to if non-NULL.
16973 (tree_predict_by_opcode): Adjust caller, use the predictor.
16974 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16976 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16978 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16979 proper constant for the store mode.
16981 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16983 * symtab.c (change_decl_assembler_name): Fix transparent alias
16984 chain construction.
16986 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16988 * config/aarch64/aarch64.c: Correct the comments about the
16989 aarch64 stack layout.
16991 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
16993 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
16994 check for GF_OMP_FOR_KIND_FOR.
16996 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
16998 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
16999 ymm and zmm register names.
17001 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17004 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17005 note creation for the 2010-08-31 changes.
17007 2014-03-17 Marek Polacek <polacek@redhat.com>
17009 PR middle-end/60534
17010 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17011 as -fno-tree-loop-vectorize.
17012 (expand_omp_simd): Likewise.
17014 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17016 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17017 (eligible_for_call_delay): New prototype.
17018 * config/sparc/sparc.c (tls_call_delay): Rename into...
17019 (eligible_for_call_delay): ...this. Return false if the instruction
17020 cannot be put in the delay slot of a branch.
17021 (eligible_for_restore_insn): Simplify.
17022 (eligible_for_return_delay): Return false if the instruction cannot be
17023 put in the delay slot of a branch and simplify.
17024 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17025 put in the delay slot of a branch.
17026 * config/sparc/sparc.md (fix_ut699): New attribute.
17027 (tls_call_delay): Delete.
17028 (in_call_delay): Reimplement.
17029 (eligible_for_sibcall_delay): Rename into...
17030 (in_sibcall_delay): ...this.
17031 (eligible_for_return_delay): Rename into...
17032 (in_return_delay): ...this.
17033 (in_branch_delay): Reimplement.
17034 (in_uncond_branch_delay): Delete.
17035 (in_annul_branch_delay): Delete.
17037 2014-03-14 Richard Henderson <rth@redhat.com>
17040 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17041 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17042 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17043 (floathi splitters): Remove.
17044 (float<SWI48x>xf2): New pattern.
17045 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17046 code that tried to handle DImode for 32-bit, but which was excluded
17047 by the pattern's condition. Drop allocation of stack temporary.
17048 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17049 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17050 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17051 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17052 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17053 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17054 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17055 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17056 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17057 (*float<SWI48x><X87MODEF>2_i387): Remove.
17058 (all float _with_temp splitters): Remove.
17059 (*float<SWI48x><MODEF>2_i387): New pattern.
17060 (*float<SWI48><MODEF>2_sse): New pattern.
17061 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17062 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17064 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17065 Marek Polacek <polacek@redhat.com>
17067 PR middle-end/60484
17068 * common.opt (dump_base_name_prefixed): New Variable.
17069 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17070 if x_dump_base_name_prefixed is already set, set it at the end.
17072 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17074 PR rtl-optimization/60508
17075 * lra-constraints.c (get_reload_reg): Add new parameter
17077 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17078 Pass the new parameter values.
17080 2014-03-14 Richard Biener <rguenther@suse.de>
17082 * common.opt: Revert unintented changes from r205065.
17083 * opts.c: Likewise.
17085 2014-03-14 Richard Biener <rguenther@suse.de>
17087 PR middle-end/60518
17088 * cfghooks.c (split_block): Properly adjust all loops the
17089 block was a latch of.
17091 2014-03-14 Martin Jambor <mjambor@suse.cz>
17094 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17097 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17100 * config/avr/avr.c (avr_set_current_function): Pass function name
17101 through default_strip_name_encoding before sanity checking instead
17102 of skipping the first char of the assembler name.
17104 2014-03-13 Richard Henderson <rth@redhat.com>
17107 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17108 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17109 * config/i386/i386-protos.h: Likewise.
17110 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17111 in the expander instead of a splitter.
17112 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17113 any possibility of requiring a memory.
17114 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17115 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17116 (fp branch splitters): Update for ix86_split_fp_branch.
17117 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17118 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17119 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17120 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17121 (*fop_<MODEF>_3_i387): Likewise.
17122 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17123 (splitters for the fop_* register patterns): Remove.
17124 (fscalexf4_i387): Rename from *fscalexf4_i387.
17125 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17127 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17129 PR tree-optimization/59779
17130 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17131 type for bitsize and maxsize instead of HOST_WIDE_INT.
17133 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17135 PR rtl-optimization/57320
17136 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17137 the CFG after thread_prologue_and_epilogue_insns.
17139 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17141 PR rtl-optimization/57189
17142 * lra-constraints.c (process_alt_operands): Disfavor spilling
17145 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17147 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17149 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17151 PR tree-optimization/59025
17152 PR middle-end/60418
17153 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17154 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17156 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17159 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17160 calls of avr_out_plus_1.
17162 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17164 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17165 BB's single pred and update the father loop's latch info later.
17167 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17169 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17173 (VEC_base): Likewise.
17174 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17175 registers, we need to swap double words in little endian mode.
17177 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17178 to be a container mode for 128-bit integer operations added in ISA
17179 2.07. Unlike TImode and PTImode, the preferred register set is
17180 the Altivec/VMX registers for the 128-bit operations.
17182 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17184 (rs6000_split_128bit_ok_p): Likewise.
17186 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17187 macros for creating ISA 2.07 normal and overloaded builtin
17188 functions with 3 arguments.
17189 (BU_P8V_OVERLOAD_3): Likewise.
17190 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17191 for use as overloaded functions.
17192 (VPERM_1TI_UNS): Likewise.
17193 (VSEL_1TI): Likewise.
17194 (VSEL_1TI_UNS): Likewise.
17195 (ST_INTERNAL_1ti): Likewise.
17196 (LD_INTERNAL_1ti): Likewise.
17197 (XXSEL_1TI): Likewise.
17198 (XXSEL_1TI_UNS): Likewise.
17199 (VPERM_1TI): Likewise.
17200 (VPERM_1TI_UNS): Likewise.
17201 (XXPERMDI_1TI): Likewise.
17202 (SET_1TI): Likewise.
17203 (LXVD2X_V1TI): Likewise.
17204 (STXVD2X_V1TI): Likewise.
17205 (VEC_INIT_V1TI): Likewise.
17206 (VEC_SET_V1TI): Likewise.
17207 (VEC_EXT_V1TI): Likewise.
17208 (EQV_V1TI): Likewise.
17209 (NAND_V1TI): Likewise.
17210 (ORC_V1TI): Likewise.
17211 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17212 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17213 overloaded builtin.
17214 (VADDUQM): Likewise.
17215 (VSUBCUQ): Likewise.
17216 (VADDEUQM): Likewise.
17217 (VADDECUQ): Likewise.
17218 (VSUBEUQM): Likewise.
17219 (VSUBECUQ): Likewise.
17221 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17222 __int128_t and __uint128_t types.
17223 (__uint128_type): Likewise.
17224 (altivec_categorize_keyword): Add support for vector __int128_t,
17225 vector __uint128_t, vector __int128, and vector unsigned __int128
17226 as a container type for TImode operations that need to be done in
17227 VSX/Altivec registers.
17228 (rs6000_macro_to_expand): Likewise.
17229 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17230 to support 128-bit integer instructions vaddcuq, vadduqm,
17231 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17232 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17234 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17235 for V1TImode, and set up preferences to use VSX/Altivec registers.
17236 Setup VSX reload handlers.
17237 (rs6000_debug_reg_global): Likewise.
17238 (rs6000_init_hard_regno_mode_ok): Likewise.
17239 (rs6000_preferred_simd_mode): Likewise.
17240 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17241 (easy_altivec_constant): Likewise.
17242 (output_vec_const_move): Likewise.
17243 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17245 (rs6000_expand_vector_extract): Likewise.
17246 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17248 (rs6000_const_vec): Add support for V1TImode.
17249 (rs6000_emit_le_vsx_load): Swap double words when loading or
17250 storing TImode/V1TImode.
17251 (rs6000_emit_le_vsx_store): Likewise.
17252 (rs6000_emit_le_vsx_move): Likewise.
17253 (rs6000_emit_move): Add support for V1TImode.
17254 (altivec_expand_ld_builtin): Likewise.
17255 (altivec_expand_st_builtin): Likewise.
17256 (altivec_expand_vec_init_builtin): Likewise.
17257 (altivec_expand_builtin): Likewise.
17258 (rs6000_init_builtins): Add support for V1TImode type. Add
17259 support for ISA 2.07 128-bit integer builtins. Define type names
17260 for the VSX/Altivec vector types.
17261 (altivec_init_builtins): Add support for overloaded vector
17262 functions with V1TImode type.
17263 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17264 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17266 (rs6000_split_128bit_ok_p): Likewise.
17267 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17268 __int128_t and vector __uint128_t.
17270 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17271 and mode attributes.
17273 (VSX_M2): Likewise.
17278 (VS_scalar): Likewise.
17279 (VS_double): Likewise.
17280 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17282 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17283 we support the ISA 2.07 128-bit integer arithmetic instructions.
17284 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17285 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17286 and TImode types for use with the builtin functions.
17287 (V1TI_type_node): Likewise.
17288 (unsigned_V1TI_type_node): Likewise.
17289 (intTI_type_internal_node): Likewise.
17290 (uintTI_type_internal_node): Likewise.
17292 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17293 128-bit builtin functions.
17294 (UNSPEC_VADDEUQM): Likewise.
17295 (UNSPEC_VADDECUQ): Likewise.
17296 (UNSPEC_VSUBCUQ): Likewise.
17297 (UNSPEC_VSUBEUQM): Likewise.
17298 (UNSPEC_VSUBECUQ): Likewise.
17299 (VM): Add V1TImode to vector mode iterators.
17301 (VI_unit): Likewise.
17302 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17303 (altivec_vaddcuq): Likewise.
17304 (altivec_vsubuqm): Likewise.
17305 (altivec_vsubcuq): Likewise.
17306 (altivec_vaddeuqm): Likewise.
17307 (altivec_vaddecuq): Likewise.
17308 (altivec_vsubeuqm): Likewise.
17309 (altivec_vsubecuq): Likewise.
17311 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17313 (BOOL_128): Likewise.
17314 (BOOL_REGS_OUTPUT): Likewise.
17315 (BOOL_REGS_OP1): Likewise.
17316 (BOOL_REGS_OP2): Likewise.
17317 (BOOL_REGS_UNARY): Likewise.
17318 (BOOL_REGS_AND_CR0): Likewise.
17320 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17321 128-bit integer builtin support.
17322 (vec_vadduqm): Likewise.
17323 (vec_vaddecuq): Likewise.
17324 (vec_vaddeuqm): Likewise.
17325 (vec_vsubecuq): Likewise.
17326 (vec_vsubeuqm): Likewise.
17327 (vec_vsubcuq): Likewise.
17328 (vec_vsubuqm): Likewise.
17330 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17331 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17332 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17333 128-bit integer add/subtract to ISA 2.07.
17335 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17337 * config/arc/arc.c (arc_predicate_delay_insns):
17338 Fix third argument passed to conditionalize_nonjump.
17340 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17342 * config/aarch64/aarch64-builtins.c
17343 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17344 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17345 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17346 instead of __builtin_lfloor.
17347 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17349 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17351 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17352 (tree_ssa_ifcombine_bb_1): New function.
17353 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17354 is an empty forwarder block to then_bb or vice versa and then_bb
17355 and else_bb are effectively swapped.
17357 2014-03-12 Christian Bruel <christian.bruel@st.com>
17360 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17361 REG_CFA_DEF_CFA note.
17362 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17363 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17365 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17367 PR tree-optimization/60454
17368 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17370 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17372 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17373 Do not define target_cpu_default2 to generic.
17374 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17375 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17376 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17378 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17379 Marc Glisse <marc.glisse@inria.fr>
17381 PR tree-optimization/60502
17382 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17383 instead of build_low_bits_mask.
17385 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17387 PR middle-end/60482
17388 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17389 if there are multiple uses, but op doesn't live on E edge.
17390 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17391 clobber stmts before __builtin_unreachable.
17393 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17395 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17396 hard_frame_pointer_rtx.
17397 * cse.c (cse_insn): Remove volatile check.
17398 * cselib.c (cselib_process_insn): Likewise.
17399 * dse.c (scan_insn): Likewise.
17401 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17403 * config/arc/arc.c (conditionalize_nonjump): New function,
17405 (arc_ifcvt): ... this.
17406 (arc_predicate_delay_insns): Use it.
17408 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17410 * config/arc/predicates.md (extend_operand): During/after reload,
17411 allow const_int_operand.
17412 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17413 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17414 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17416 (umulsi3_highpart_i): Likewise.
17418 2014-03-11 Richard Biener <rguenther@suse.de>
17420 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17421 Add asserts to guard possible wrong-code bugs.
17423 2014-03-11 Richard Biener <rguenther@suse.de>
17425 PR tree-optimization/60429
17426 PR tree-optimization/60485
17427 * tree-ssa-structalias.c (set_union_with_increment): Properly
17428 take into account all fields that overlap the shifted vars.
17429 (do_sd_constraint): Likewise.
17430 (do_ds_constraint): Likewise.
17431 (get_constraint_for_ptr_offset): Likewise.
17433 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17435 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17436 (nios2_compute_frame_layout):
17437 Add calculation of cfun->machine->fp_save_offset.
17438 (nios2_expand_prologue): Correct setting of frame pointer register
17440 (nios2_expand_epilogue): Update recovery of stack pointer from
17441 frame pointer accordingly.
17442 (nios2_initial_elimination_offset): Update calculation of offset
17443 for eliminating to HARD_FRAME_POINTER_REGNUM.
17445 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17448 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17449 cgraph_get_create_node on VAR_DECLs.
17451 2014-03-10 Richard Biener <rguenther@suse.de>
17453 PR middle-end/60474
17454 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17456 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17458 * config/vms/vms.opt (vms_float_format): New variable.
17460 2014-03-08 Tobias Burnus <burnus@net-b.de>
17462 * doc/invoke.texi (-fcilkplus): Update implementation status.
17464 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17465 Richard Biener <rguenther@suse.de>
17467 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17468 consistently accross all TUs.
17469 (run_gcc): Enable -fshort-double automatically at link at link-time
17470 and disallow override.
17472 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17475 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17476 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17477 if they can't be used.
17479 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17481 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17482 for Solaris 11/x86 ld.
17483 * configure: Regenerate.
17485 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17487 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17488 (LIB_TLS_SPEC): Save as ld_tls_libs.
17489 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17490 (HAVE_AS_IX86_TLSLDM): New test.
17491 * configure, config.in: Regenerate.
17492 * config/i386/i386.c (legitimize_tls_address): Fall back to
17493 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17494 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17495 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17496 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17498 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17500 * common.opt (fira-loop-pressure): Mark as optimization.
17502 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17504 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17505 an OpenMP mappable type.
17507 2014-03-06 Matthias Klose <doko@ubuntu.com>
17509 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17510 MULTILIB_OSDIRNAMES is not defined.
17512 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17513 Meador Inge <meadori@codesourcery.com>
17516 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17517 (arm_legitimize_address): Call legitimize_tls_address for any
17518 arm_tls_referenced_p expression, handle constant addend. Call it
17519 before testing for !TARGET_ARM.
17520 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17522 2014-03-06 Richard Biener <rguenther@suse.de>
17524 PR middle-end/60445
17528 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17530 * tree-streamer.c (record_common_node): Assert we don't record
17531 nodes with type double.
17532 (preload_common_node): Skip type double, complex double and double
17533 pointer since it is now frontend dependent due to fshort-double option.
17535 2014-03-06 Richard Biener <rguenther@suse.de>
17537 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17538 or -fno-lto is specified and the linker has full plugin support.
17539 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17540 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17541 * lto-wrapper.c (merge_and_complain): Merge compile-time
17542 optimization levels.
17543 (run_gcc): And pass it through to the link options.
17545 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17549 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17551 * cselib.c (remove_useless_values): Skip to avoid quadratic
17552 behavior if the condition moved from...
17553 (cselib_process_insn): ... here holds.
17555 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17558 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17559 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17562 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17563 (TM_H): Add x86-tune.def.
17565 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17567 * config/aarch64/aarch64.c (generic_tunings):
17568 Use cortexa57_extra_costs.
17570 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17573 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17574 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17575 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17578 2014-03-04 Heiher <r@hev.cc>
17580 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17581 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17583 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17585 * config/i386/predicates.md (const2356_operand): Change to ...
17586 (const2367_operand): ... this.
17587 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17589 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17590 (*avx512pf_scatterpf<mode>sf): Ditto.
17591 (avx512pf_scatterpf<mode>df): Ditto.
17592 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17593 (*avx512pf_scatterpf<mode>df): Ditto.
17594 * config/i386/i386.c (ix86_expand_builtin): Update
17595 incorrect hint operand error message.
17597 2014-03-04 Richard Biener <rguenther@suse.de>
17599 * lto-section-in.c (lto_get_section_data): Fix const cast.
17601 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17603 * tree-streamer.c (record_common_node): Assert we don't record
17604 nodes with type double.
17605 (preload_common_node): Skip type double, complex double and double
17606 pointer since it is now frontend dependent due to fshort-double option.
17608 2014-03-04 Richard Biener <rguenther@suse.de>
17611 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17612 (lto_input_toplevel_asms): Likewise.
17613 * lto-section-in.c (lto_get_section_data): Instead do it here
17616 2014-03-04 Richard Biener <rguenther@suse.de>
17618 PR tree-optimization/60382
17619 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17620 dead PHIs a reduction.
17622 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17624 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17626 (_mm_prefetch): Move out of GCC target("sse") pragma.
17627 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17628 GCC target("prfchw") pragma.
17629 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17631 * config/i386/i386.c (ix86_option_override_internal): Enable
17632 -mprfchw with -mprefetchwt1.
17634 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17636 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17639 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17641 * opts.h (CL_PCH_IGNORE): Define.
17642 * targhooks.c (option_affects_pch_p):
17643 Return false for options that have CL_PCH_IGNORE set.
17644 * opt-functions.awk: Process PchIgnore.
17645 * doc/options.texi: Document PchIgnore.
17647 * config/arc/arc.opt (misize): Add PchIgnore property.
17649 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17651 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17652 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17653 constraint on constants to permit them being loaded into
17654 GENERAL_REGS or BASE_REGS.
17656 2014-03-03 Nick Clifton <nickc@redhat.com>
17658 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17659 anti-cacnonical alternatives.
17660 (negandhi3_real): New pattern.
17661 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17663 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17665 * config/avr/avr-mcus.def: Remove atxmega16x1.
17666 * config/avr/avr-tables.opt: Regenerate.
17667 * config/avr/t-multilib: Regenerate.
17668 * doc/avr-mmcu.texi: Regenerate.
17670 2014-03-03 Tobias Grosser <tobias@grosser.es>
17671 Mircea Namolaru <mircea.namolaru@inria.fr>
17673 PR tree-optimization/58028
17674 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17677 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17679 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17680 not handled by recognizers.
17682 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17684 PR middle-end/60175
17685 * function.c (expand_function_end): Don't emit
17686 clobber_return_register sequence if clobber_after is a BARRIER.
17687 * cfgexpand.c (construct_exit_block): Append instructions before
17688 return_label to prev_bb.
17690 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17692 * config/rs6000/constraints.md: Document reserved use of "wc".
17694 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17697 * ipa.c (function_and_variable_visibility): When dissolving comdat
17698 group, also set all symbols to local.
17700 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17705 2013-12-14 Jan Hubicka <jh@suse.cz>
17706 PR middle-end/58477
17707 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17709 2014-03-02 Jon Beniston <jon@beniston.com>
17715 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17716 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17717 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17718 (simple_return, *simple_return): New patterns
17719 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17720 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17722 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17724 * dwarf2out.c (gen_subprogram_die): Tidy.
17726 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17729 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17730 (*mov_t_msb_neg_negc): ... this new insn.
17732 2014-02-28 Jason Merrill <jason@redhat.com>
17735 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17738 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17741 * dwarf2out.c (decltype_auto_die): New static.
17742 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17743 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17744 (is_cxx_auto): Likewise.
17746 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17748 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17749 we are not using general regs only.
17751 2014-02-28 Richard Biener <rguenther@suse.de>
17754 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17755 previous fix and only allow to remove trivial pre-headers
17756 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17757 (remove_forwarder_block): Properly update the latch of a loop.
17759 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17762 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17763 (cselib_preserved_hash_table): New.
17764 (preserve_constants_and_equivs): Move preserved vals to it.
17765 (cselib_find_slot): Look it up first.
17766 (cselib_init): Initialize it.
17767 (cselib_finish): Release it.
17768 (dump_cselib_table): Dump it.
17770 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17773 * cselib.c (remove_useless_values): Skip to avoid quadratic
17774 behavior if the condition moved from...
17775 (cselib_process_insn): ... here holds.
17777 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17780 * var-tracking.c (vt_initialize): Apply the same condition to
17781 preserve the CFA base value.
17783 2014-02-28 Joey Ye <joey.ye@arm.com>
17786 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17787 if reload in progress or completed.
17789 2014-02-28 Tobias Burnus <burnus@net-b.de>
17791 PR middle-end/60147
17792 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17795 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17797 * doc/tm.texi.in (Condition Code Status): Update documention for
17798 relative locations of cc0-setter and cc0-user.
17800 2014-02-27 Jeff Law <law@redhat.com>
17802 PR rtl-optimization/52714
17803 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17804 into two independent simple sets, if I3 is a jump, ensure the
17805 pattern we place into I3 is a (set (pc) ...).
17807 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17808 Jeff Law <law@redhat.com>
17810 PR rtl-optimization/49847
17811 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17812 are in different blocks.
17813 * doc/tm.texi (Condition Code Status): Update documention for
17814 relative locations of cc0-setter and cc0-user.
17816 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17819 * lra.c (lra_emit_add): Check SUBREG too.
17821 2014-02-27 Andreas Schwab <schwab@suse.de>
17823 * config/m68k/m68k.c (m68k_option_override): Disable
17824 -flive-range-shrinkage for classic m68k.
17825 (m68k_override_options_after_change): Likewise.
17827 2014-02-27 Marek Polacek <polacek@redhat.com>
17829 PR middle-end/59223
17830 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17831 -Wmaybe-uninitialized.
17833 2014-02-27 Alan Modra <amodra@gmail.com>
17836 * reload1.c (emit_input_reload_insns): When reload_override_in,
17837 set old to rl->in_reg when rl->in_reg is a subreg.
17839 2014-02-26 Richard Biener <rguenther@suse.de>
17842 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17844 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17846 * common/config/i386/predicates.md (const1256_operand): Remove.
17847 (const2356_operand): New.
17848 (const_1_to_2_operand): Remove.
17849 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17850 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17851 (*avx512pf_gatherpf<mode>sf): Ditto.
17852 (avx512pf_gatherpf<mode>df): Ditto.
17853 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17854 (*avx512pf_gatherpf<mode>df): Ditto.
17855 (avx512pf_scatterpf<mode>sf): Ditto.
17856 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17857 (*avx512pf_scatterpf<mode>sf): Ditto.
17858 (avx512pf_scatterpf<mode>df): Ditto.
17859 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17860 (*avx512pf_scatterpf<mode>df): Ditto.
17861 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17863 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17865 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17866 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17867 (_mm512_mask_testn_epi64_mask): Move to ...
17868 * config/i386/avx512cdintrin.h: Here.
17869 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17870 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17871 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17872 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17873 TARGET_AVX512F from TARGET_AVX512CD.
17875 2014-02-26 Richard Biener <rguenther@suse.de>
17878 * ipa.c (walk_polymorphic_call_targets): Properly guard
17879 call to inline_update_overall_summary.
17881 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17884 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17885 and latches only if requested. Fix latch if it is removed.
17886 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17887 LOOPS_HAVE_PREHEADERS.
17889 2014-02-25 Andrew Pinski <apinski@cavium.com>
17891 * builtins.c (expand_builtin_thread_pointer): Create a new target
17892 when the target is NULL.
17894 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17896 PR rtl-optimization/60317
17897 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17898 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17899 * lra-assigns.c: Include params.h.
17900 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17901 other reload pseudos considerations.
17903 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17905 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17906 to use canonical form for nor<mode>3.
17908 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17911 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17914 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17916 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17917 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17918 (ix86_handle_option): Handle OPT_mprefetchwt1.
17919 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17920 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17922 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17923 OPTION_MASK_ISA_PREFETCHWT1.
17924 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17925 (PTA_PREFETCHWT1): New.
17926 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17927 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17928 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17929 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17930 (*prefetch_avx512pf_<mode>_: Change into ...
17931 (*prefetch_prefetchwt1_<mode>: This.
17932 * config/i386/i386.opt (mprefetchwt1): New.
17933 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17934 (_mm_prefetch): Handle intent to write.
17935 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17937 2014-02-25 Richard Biener <rguenther@suse.de>
17939 PR middle-end/60291
17940 * emit-rtl.c (mem_attrs_htab): Remove.
17941 (mem_attrs_htab_hash): Likewise.
17942 (mem_attrs_htab_eq): Likewise.
17943 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17944 (init_emit_once): Do not allocate mem_attrs_htab.
17946 2014-02-25 Richard Biener <rguenther@suse.de>
17949 * lto-opts.c (lto_write_options): Output non-explicit conservative
17950 -fwrapv, -fno-trapv and -fno-strict-overflow.
17951 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17952 (run_gcc): And pass them through.
17954 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17956 * sel-sched.c (calculate_new_fences): New parameter ptime.
17957 Calculate it as a maximum over all fence cycles.
17958 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17959 Print the final schedule timing when sched_verbose.
17961 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17963 PR rtl-optimization/60292
17964 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17965 bit fot the fence instruction.
17967 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17969 * calls.h: Fix typo in comment.
17971 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17973 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17974 adjusting offsetable addresses.
17976 2014-02-24 Guozhi Wei <carrot@google.com>
17978 * sparseset.h (sparseset_pop): Fix the wrong index.
17980 2014-02-24 Walter Lee <walt@tilera.com>
17982 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17983 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17985 * common/config/tilegx/tilegx-common.c
17986 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17987 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17988 (LINK_SPEC): Ditto.
17989 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
17990 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
17991 (tilegx_gimplify_va_arg_expr): Handle big endian.
17992 (tilegx_expand_unaligned_load): Ditto.
17993 (tilegx_expand_unaligned_store): Ditto.
17994 (TARGET_RETURN_IN_MSB): New.
17995 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
17996 (TARGET_ENDIAN_DEFAULT): New.
17997 (TARGET_BIG_ENDIAN): Handle big endian.
17998 (BYTES_BIG_ENDIAN): Ditto.
17999 (WORDS_BIG_ENDIAN): Ditto.
18000 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18001 (ENDIAN_SPEC): New.
18002 (EXTRA_SPECS): New.
18003 * config/tilegx/tilegx.md (extv): Handle big endian.
18005 (insn_st<n>): Ditto.
18006 (insn_st<n>_add<bitsuffix>): Ditto.
18007 (insn_stnt<n>): Ditto.
18008 (insn_stnt<n>_add<bitsuffix>):Ditto.
18009 (vec_interleave_highv8qi): Handle big endian.
18010 (vec_interleave_highv8qi_be): New.
18011 (vec_interleave_highv8qi_le): New.
18012 (insn_v1int_h): Handle big endian.
18013 (vec_interleave_lowv8qi): Handle big endian.
18014 (vec_interleave_lowv8qi_be): New.
18015 (vec_interleave_lowv8qi_le): New.
18016 (insn_v1int_l): Handle big endian.
18017 (vec_interleave_highv4hi): Handle big endian.
18018 (vec_interleave_highv4hi_be): New.
18019 (vec_interleave_highv4hi_le): New.
18020 (insn_v2int_h): Handle big endian.
18021 (vec_interleave_lowv4hi): Handle big endian.
18022 (vec_interleave_lowv4hi_be): New.
18023 (vec_interleave_lowv4hi_le): New.
18024 (insn_v2int_l): Handle big endian.
18025 (vec_interleave_highv2si): Handle big endian.
18026 (vec_interleave_highv2si_be): New.
18027 (vec_interleave_highv2si_le): New.
18028 (insn_v4int_h): Handle big endian.
18029 (vec_interleave_lowv2si): Handle big endian.
18030 (vec_interleave_lowv2si_be): New.
18031 (vec_interleave_lowv2si_le): New.
18032 (insn_v4int_l): Handle big endian.
18033 * config/tilegx/tilegx.opt (mbig-endian): New option.
18034 (mlittle-endian): New option.
18035 * doc/install.texi: Document tilegxbe-linux.
18036 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18038 2014-02-24 Martin Jambor <mjambor@suse.cz>
18041 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18042 there are no parameter descriptors.
18044 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18046 PR rtl-optimization/60268
18047 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18048 initialization to ...
18049 (sched_rgn_init): ... here.
18050 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18052 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18054 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18057 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18059 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18062 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18064 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18065 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18067 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18069 * config/microblaze/predicates.md: Add cmp_op predicate.
18070 * config/microblaze/microblaze.md: Add branch_compare instruction
18071 which uses cmp_op predicate and emits cmp insn before branch.
18072 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18073 to microblaze_expand_conditional_branch and consolidate logic.
18074 (microblaze_expand_conditional_branch): emit branch_compare
18075 insn instead of handling cmp op separate from branch insn.
18077 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18079 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18082 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18084 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18085 define_insn with define_expand and new define_insn
18086 *altivec_lve<VI_char>x_internal.
18087 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18088 and new define_insn *altivec_stve<VI_char>x_internal.
18089 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18091 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18093 (altivec_expand_stvex_be): New function.
18095 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18097 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18098 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18099 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18100 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18102 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18105 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18106 instead of emit_move_insn.
18108 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18110 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18111 vspltw with vsldoi.
18112 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18113 gen_altivec_vsumsws.
18115 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18117 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18118 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18119 (altivec_lvxl_<mode>): New define_expand incorporating
18120 -maltivec=be semantics where needed.
18121 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18122 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18123 semantics where needed.
18124 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18125 (altivec_stvx_<mode>): New define_expand incorporating
18126 -maltivec=be semantics where needed.
18127 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18128 VM2 iterator instead of V4SI.
18129 (altivec_stvxl_<mode>): New define_expand incorporating
18130 -maltivec=be semantics where needed.
18131 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18132 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18133 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18134 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18135 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18137 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18138 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18139 ALTIVEC_BUILTIN_STVXL.
18140 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18141 (altivec_expand_stvx_be): Likewise.
18142 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18143 (altivec_expand_lvx_be): Likewise.
18144 (altivec_expand_stvx_be): Likewise.
18145 (altivec_expand_builtin): Add cases for
18146 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18147 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18148 (altivec_init_builtins): Add definitions for
18149 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18150 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18152 2014-02-21 Catherine Moore <clm@codesourcery.com>
18154 * doc/invoke.texi (mvirt, mno-virt): Document.
18155 * config/mips/mips.opt (mvirt): New option.
18156 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18158 2014-02-21 Richard Biener <rguenther@suse.de>
18160 PR tree-optimization/60276
18161 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18162 (STMT_VINFO_MIN_NEG_DIST): New macro.
18163 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18164 STMT_VINFO_MIN_NEG_DIST.
18165 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18166 made for negative dependence distances still hold.
18168 2014-02-21 Richard Biener <rguenther@suse.de>
18170 PR middle-end/60291
18171 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18172 DECL_INITIAL for globals not in the current function context.
18174 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18176 PR tree-optimization/56490
18177 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18178 * tree-ssa-uninit.c: Include params.h.
18179 (compute_control_dep_chain): Add num_calls argument, return false
18180 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18181 num_calls to recursive call.
18182 (find_predicates): Change dep_chain into normal array,
18183 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18184 variable and adjust compute_control_dep_chain caller.
18185 (find_def_preds): Likewise.
18187 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18189 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18190 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18192 2014-02-21 Nick Clifton <nickc@redhat.com>
18194 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18195 (pushhi1): Likewise.
18196 (popqi1): Add mode to pre_dec.
18197 (pophi1): Likewise.
18199 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18201 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18202 mode for mask of V8SFmode permutation.
18204 2014-02-20 Richard Henderson <rth@redhat.com>
18207 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18208 a new pseudo for OLDVAL.
18210 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18213 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18214 gen_reg_rtx if d->testing_p.
18215 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18216 if d->testing_p and we will certainly return true.
18217 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18220 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18222 * emit-rtl.c (gen_reg_rtx): Assert that
18223 crtl->emit.regno_pointer_align_length is non-zero.
18225 2014-02-20 Richard Henderson <rth@redhat.com>
18228 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18229 on failure the store back into EXPECT.
18231 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18232 Sandra Loosemore <sandra@codesourcery.com>
18234 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18235 * config/nios2/nios2.c (nios2_function_profiler): Add
18236 -fPIC (flag_pic == 2) support.
18237 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18238 (nios2_large_offset_p): New function.
18239 (nios2_unspec_reloc_p): Move up position, update to use
18240 nios2_large_offset_p.
18241 (nios2_unspec_address): Remove function.
18242 (nios2_unspec_offset): New function.
18243 (nios2_large_got_address): New function.
18244 (nios2_got_address): Add large offset support.
18245 (nios2_legitimize_tls_address): Update usage of removed and new
18247 (nios2_symbol_binds_local_p): New function.
18248 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18249 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18250 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18251 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18252 processing for (const (unspec ...)).
18253 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18255 2014-02-20 Richard Biener <rguenther@suse.de>
18257 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18258 doing the substitution.
18259 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18261 2014-02-20 Martin Jambor <mjambor@suse.cz>
18264 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18265 info when checking whether lattices are bottom.
18267 2014-02-20 Richard Biener <rguenther@suse.de>
18269 PR middle-end/60221
18270 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18273 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18276 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18277 parameter specifying the scaling.
18278 (inline_call): Update.
18279 (want_inline_recursively): Guard division by zero.
18280 (recursive_inlining): Update.
18281 * ipa-inline.h (clone_inlined_nodes): Update.
18283 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18286 * config/i386/i386.c (classify_argument): Pass structures of size
18287 64 bytes or less in register.
18289 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18290 Kirill Yukhin <kirill.yukhin@intel.com>
18292 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18293 (_mm_rcp28_round_ss): Ditto.
18294 (_mm_rsqrt28_round_sd): Ditto.
18295 (_mm_rsqrt28_round_ss): Ditto.
18296 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18297 (_mm_rcp14_round_ss): Ditto.
18298 (_mm_rsqrt14_round_sd): Ditto.
18299 (_mm_rsqrt14_round_ss): Ditto.
18300 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18301 the first input operand, get rid of match_dup.
18302 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18304 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18306 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18307 operand as the first input operand, set type attribute.
18308 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18309 Set type attribute.
18310 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18311 operand as the first input operand, set type attribute.
18313 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18315 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18318 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18321 * config/i386/i386.c (construct_container): Remove TFmode check
18322 for X86_64_INTEGER_CLASS.
18324 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18327 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18328 only when -Wpsabi is enabled.
18330 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18333 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18334 passing arrays in registers are the same as for structs, so remove the
18335 special case for them.
18337 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18339 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18340 destination type, extract only the valid bits if the source type is not
18341 integral and has a different mode.
18343 2014-02-19 Richard Biener <rguenther@suse.de>
18346 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18349 2014-02-19 Richard Biener <rguenther@suse.de>
18352 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18353 (ipa_modify_call_arguments): Emit an argument load explicitely and
18354 preserve virtual SSA form there and for the replacement call.
18355 Do not update SSA form nor free dominance info.
18357 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18359 * ipa.c (function_and_variable_visibility): Also clear WEAK
18360 flag when disolving COMDAT_GROUP.
18362 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18364 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18365 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18366 not devirtualizing.
18367 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18368 do more sanity checks.
18369 (detect_type_change): Return true when giving up early.
18370 (compute_complex_assign_jump_func): Fix type parameter of
18371 ipa_set_ancestor_jf.
18372 (compute_complex_ancestor_jump_func): Likewise.
18373 (update_jump_functions_after_inlining): Fix updating of
18375 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18377 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18379 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18380 inline clones when edge disappears.
18382 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18385 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18386 Split 64-bit moves into 2 patterns. Do not allow the use of
18387 direct move for TDmode in little endian, since the decimal value
18388 has little endian bytes within a word, but the 64-bit pieces are
18389 ordered in a big endian fashion, and normal subreg's of TDmode are
18391 (mov<mode>_64bit_dm): Likewise.
18392 (movtd_64bit_nodm): Likewise.
18394 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18396 PR tree-optimization/60174
18397 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18398 statement of an SSA_NAME that occurs in an abnormal PHI node.
18400 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18403 * final.c (SEEN_BB): Remove.
18404 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18405 (final_scan_insn): Don't force_source_line on second
18406 NOTE_INSN_BASIC_BLOCK.
18408 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18411 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18412 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18413 (type_natural_mode): Warn ABI change when %zmm register is not
18414 available for AVX512F vector value passing.
18416 2014-02-18 Kai Tietz <ktietz@redhat.com>
18419 * config/i386/i386.c (ix86_expand_prologue): Use value in
18420 rax register as displacement when restoring %r10 or %rax.
18421 Fix wrong offset when restoring both registers.
18423 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18425 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18426 assertion with conditional return.
18428 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18429 Uros Bizjak <ubizjak@gmail.com>
18432 * config/i386/driver-i386.c (host_detect_local_cpu): If
18433 YMM state is not saved by the OS, also clear has_f16c. Move
18434 CPUID 0x80000001 handling before YMM state saving checking.
18436 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18438 PR rtl-optimization/58960
18439 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18440 factored out from ...
18441 (sched_init): ... here.
18442 (free_global_sched_pressure_data): New, factored out from ...
18443 (sched_finish): ... here.
18444 * sched-int.h (free_global_sched_pressure_data): Declare.
18445 * sched-rgn.c (nr_regions_initial): New static global.
18446 (haifa_find_rgns): Initialize it.
18447 (schedule_region): Disable sched-pressure for the newly
18450 2014-02-17 Richard Biener <rguenther@suse.de>
18452 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18453 release SSA defs of pattern stmts.
18455 2014-02-17 Richard Biener <rguenther@suse.de>
18457 * tree-inline.c (expand_call_inline): Release the virtual
18458 operand defined by the call we are about to inline.
18460 2014-02-17 Richard Biener <rguenther@suse.de>
18462 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18464 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18465 Ilya Tocar <ilya.tocar@intel.com>
18467 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18468 arguments order in builtin.
18469 (_mm512_permutexvar_epi64): Ditto.
18470 (_mm512_mask_permutexvar_epi64): Ditto
18471 (_mm512_maskz_permutexvar_epi32): Ditto
18472 (_mm512_permutexvar_epi32): Ditto
18473 (_mm512_mask_permutexvar_epi32): Ditto
18475 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18477 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18478 (p8_vmrgow): Likewise.
18480 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18482 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18485 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18488 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18489 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18490 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18491 using direct move instructions on ISA 2.07. Also adjust
18492 instruction length for 64-bit.
18493 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18494 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18496 2014-02-15 Alan Modra <amodra@gmail.com>
18500 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18501 find_replacement on parts of insn rtl that might be reloaded.
18503 2014-02-15 Richard Biener <rguenther@suse.de>
18505 PR tree-optimization/60183
18506 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18507 (tree_ssa_phiprop): Calculate and free post-dominators.
18509 2014-02-14 Jeff Law <law@redhat.com>
18511 PR rtl-optimization/60131
18512 * ree.c (get_extended_src_reg): New function.
18513 (combine_reaching_defs): Use it rather than assuming location of REG.
18514 (find_and_remove_re): Verify first operand of extension is
18515 a REG before adding the insns to the copy list.
18517 2014-02-14 Roland McGrath <mcgrathr@google.com>
18519 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18520 * configure: Regenerated.
18521 * config.in: Regenerated.
18522 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18523 instead of ASM_SHORT.
18525 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18526 Richard Earnshaw <rearnsha@arm.com>
18528 PR rtl-optimization/59535
18529 * lra-constraints.c (process_alt_operands): Encourage alternative
18530 when unassigned pseudo class is superset of the alternative class.
18531 (inherit_reload_reg): Don't inherit when optimizing for code size.
18532 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18533 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18534 modes not less than 4 for Thumb1.
18536 2014-02-14 Kyle McMartin <kyle@redhat.com>
18539 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18541 2014-02-14 Richard Biener <rguenther@suse.de>
18543 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18544 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18545 Do not strip INDIRECT_REFs.
18547 2014-02-14 Richard Biener <rguenther@suse.de>
18550 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18551 DECL_FUNCTION_SPECIFIC_TARGET.
18552 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18553 * tree-streamer-out.c (pack_ts_target_option): Remove.
18554 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18555 (write_ts_function_decl_tree_pointers): Do not stream
18556 DECL_FUNCTION_SPECIFIC_TARGET.
18557 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18558 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18559 (lto_input_ts_function_decl_tree_pointers): Do not stream
18560 DECL_FUNCTION_SPECIFIC_TARGET.
18562 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18564 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18565 (get_initial_def_for_induction, vectorizable_induction): Ignore
18566 debug stmts when looking for exit_phi.
18567 (vectorizable_live_operation): Fix up condition.
18569 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18571 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18572 nreverse() because it changes the content of original tree list.
18574 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18576 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18577 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18579 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18581 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18582 GNU coding standards.
18584 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18587 * dwarf2out.c (gen_subprogram_die): Don't call
18588 add_calling_convention_attribute if subr_die is old_die.
18590 2014-02-13 Sharad Singhai <singhai@google.com>
18592 * doc/optinfo.texi: Fix order of nodes.
18594 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18596 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18597 operands[2], not operands[3].
18599 2014-02-13 Richard Biener <rguenther@suse.de>
18602 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18603 mention the possibility of an in-tree build.
18604 (CLooG): Update recommended version to 0.18.1, mention the
18605 possibility of an in-tree build and clarify that the ISL
18606 bundled with CLooG does not work.
18608 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18611 * expr.c (compress_float_constant): If x is a hard register,
18612 extend into a pseudo and then move to x.
18614 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18616 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18617 caused by bad second argument to warning_at() with -mhotpatch and
18618 nested functions (e.g. with gfortran).
18620 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18622 * opts.c (option_name): Remove "enabled by default" rider.
18624 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18626 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18628 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18629 Uros Bizjak <ubizjak@gmail.com>
18632 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18633 * configure: Regenerated.
18635 2014-02-12 Richard Biener <rguenther@suse.de>
18637 * vec.c (vec_prefix::calculate_allocation): Move as
18638 inline variant to vec.h.
18639 (vec_prefix::calculate_allocation_1): New out-of-line version.
18640 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18641 (vec_prefix::m_has_auto_buf): Rename to ...
18642 (vec_prefix::m_using_auto_storage): ... this.
18643 (vec_prefix::calculate_allocation): Inline the easy cases
18644 and dispatch to calculate_allocation_1 which doesn't need the
18646 (va_heap::reserve): Use gcc_checking_assert.
18647 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18648 m_using_auto_storage.
18649 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18651 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18652 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18653 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18655 2014-02-12 Richard Biener <rguenther@suse.de>
18657 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18658 when we found a dependence.
18660 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18662 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18664 (maybe_fold_stmt): ... into this new function.
18665 * omp-low.c (lower_omp): Update comment.
18667 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18670 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18673 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18675 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18676 identifiers in comments.
18677 (cortexa53_extra_costs): Likewise.
18678 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18679 (cortexa7_extra_costs): Likewise.
18680 (cortexa12_extra_costs): Likewise.
18681 (cortexa15_extra_costs): Likewise.
18682 (v7m_extra_costs): Likewise.
18684 2014-02-12 Richard Biener <rguenther@suse.de>
18686 PR middle-end/60092
18687 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18688 of posix_memalign being successful.
18689 (lower_stmt): Restrict lowering of posix_memalign to when
18690 -ftree-bit-ccp is enabled.
18692 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18694 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18696 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18698 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18700 PR rtl-optimization/60116
18701 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18702 other_insn once the combination has been validated.
18704 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18707 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18709 * ipa-devirt.c: Include demangle.h
18710 (odr_violation_reported): New static variable.
18711 (add_type_duplicate): Update odr_violations.
18712 (maybe_record_node): Add completep parameter; update it.
18713 (record_target_from_binfo): Add COMPLETEP parameter;
18714 update it as needed.
18715 (possible_polymorphic_call_targets_1): Likewise.
18716 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18717 rename FINAL to COMPLETE.
18718 (record_targets_from_bases): Sanity check we found the binfo;
18719 fix COMPLETEP updating.
18720 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18721 parameter, fix computing of COMPLETEP.
18722 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18723 at LTO time do demangling.
18724 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18725 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18727 (gimple_get_virt_method_for_binfo): Likewise.
18728 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18729 gimple_get_virt_method_for_vtable): Update prototypes.
18731 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18734 * genautomata.c (add_presence_absence): Fix typo with
18735 {final_}presence_list.
18737 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18740 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18741 for VSX/Altivec vectors that land in GPR registers.
18743 2014-02-11 Richard Henderson <rth@redhat.com>
18744 Jakub Jelinek <jakub@redhat.com>
18747 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18748 around drhs if type conversion to lacc->type is not useless.
18750 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18752 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18754 (cortex-a57.cortex-a53): Likewise.
18755 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18757 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18759 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18762 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18764 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18765 add_options_for_arm_vfp3.
18767 2014-02-11 Jeff Law <law@redhat.com>
18769 PR middle-end/54041
18770 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18771 object with an undesirable mode.
18773 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18776 * config/i386/sol2-9.h: New file.
18777 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18778 *-*-solaris2.9*): Use it.
18780 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18782 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18783 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18785 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18787 * config/microblaze/microblaze.c: Extend mcpu version format
18789 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18791 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18793 2014-02-10 Richard Henderson <rth@redhat.com>
18796 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18797 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18798 ms-abi vs -mno-accumulate-outgoing-args.
18799 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18800 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18803 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18805 PR middle-end/60080
18806 * cfgexpand.c (expand_asm_operands): Attach source location to
18807 ASM_INPUT rtx objects.
18808 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18810 2014-02-10 Nick Clifton <nickc@redhat.com>
18812 * config/mn10300/mn10300.c (popcount): New function.
18813 (mn10300_expand_prologue): Include saved registers in stack usage
18816 2014-02-10 Jeff Law <law@redhat.com>
18818 PR middle-end/52306
18819 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18820 when changing the SET_DEST of a prior insn to avoid an input reload.
18822 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18824 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18825 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18826 -mcall-openbsd, or -mcall-linux.
18827 (CC1_ENDIAN_BIG_SPEC): Remove.
18828 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18829 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18830 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18831 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18832 and %cc1_endian_default.
18833 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18835 2014-02-10 Richard Biener <rguenther@suse.de>
18837 PR tree-optimization/60115
18838 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18839 MEM_REF handling. Properly verify that the accesses are not
18840 out of the objects bound.
18842 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18844 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18847 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18849 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18850 proper constants and fix formatting.
18851 (possible_polymorphic_call_targets): Fix formatting.
18853 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18854 Ilya Tocar <ilya.tocar@intel.com>
18856 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18857 (_mm512_loadu_epi32): Renamed into...
18858 (_mm512_loadu_si512): This.
18859 (_mm512_storeu_epi32): Renamed into...
18860 (_mm512_storeu_si512): This.
18861 (_mm512_maskz_ceil_ps): Removed.
18862 (_mm512_maskz_ceil_pd): Ditto.
18863 (_mm512_maskz_floor_ps): Ditto.
18864 (_mm512_maskz_floor_pd): Ditto.
18865 (_mm512_floor_round_ps): Ditto.
18866 (_mm512_floor_round_pd): Ditto.
18867 (_mm512_ceil_round_ps): Ditto.
18868 (_mm512_ceil_round_pd): Ditto.
18869 (_mm512_mask_floor_round_ps): Ditto.
18870 (_mm512_mask_floor_round_pd): Ditto.
18871 (_mm512_mask_ceil_round_ps): Ditto.
18872 (_mm512_mask_ceil_round_pd): Ditto.
18873 (_mm512_maskz_floor_round_ps): Ditto.
18874 (_mm512_maskz_floor_round_pd): Ditto.
18875 (_mm512_maskz_ceil_round_ps): Ditto.
18876 (_mm512_maskz_ceil_round_pd): Ditto.
18877 (_mm512_expand_pd): Ditto.
18878 (_mm512_expand_ps): Ditto.
18879 * config/i386/i386.c (ix86_builtins): Remove
18880 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18881 (bdesc_args): Ditto.
18882 * config/i386/predicates.md (const1256_operand): New.
18883 (const_1_to_2_operand): Ditto.
18884 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18885 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18886 (*avx512pf_gatherpf<mode>sf): Ditto.
18887 (avx512pf_gatherpf<mode>df): Ditto.
18888 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18889 (*avx512pf_gatherpf<mode>df): Ditto.
18890 (avx512pf_scatterpf<mode>sf): Ditto.
18891 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18892 (*avx512pf_scatterpf<mode>sf): Ditto.
18893 (avx512pf_scatterpf<mode>df): Ditto.
18894 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18895 (*avx512pf_scatterpf<mode>df): Ditto.
18896 (avx512f_expand<mode>): Removed.
18897 (<shift_insn><mode>3<mask_name>): Change predicate type.
18899 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18901 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18902 not at the end of datarefs vector use ordered_remove to avoid
18903 reordering datarefs vector.
18906 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18907 mark local addressable non-static vars as GOVD_PRIVATE
18908 instead of GOVD_LOCAL.
18909 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18910 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18913 PR middle-end/60092
18914 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18915 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18916 assume_aligned or alloc_align attributes.
18917 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18918 arguments. Handle also assume_aligned and alloc_align attributes.
18919 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18920 calls to functions with assume_aligned or alloc_align attributes.
18921 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18923 2014-02-08 Terry Guo <terry.guo@arm.com>
18925 * doc/invoke.texi: Document ARM -march=armv7e-m.
18927 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18929 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18930 flag on __cilkrts_rethrow builtin.
18933 * ipa-cp.c (determine_versionability): Fail at -O0
18934 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18935 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18938 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18941 * tree-inline.c (copy_forbidden): Fail for
18942 __attribute__((optimize (0))) functions.
18944 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18946 * varpool.c: Include pointer-set.h.
18947 (varpool_remove_unreferenced_decls): Variables in other partitions
18948 will not be output; be however careful to not lose information
18949 about partitioning.
18951 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18953 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18954 lookup in the vtable constructor.
18956 2014-02-07 Jeff Law <law@redhat.com>
18959 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18960 define_insn_and_split.
18962 * ipa-inline.c (inline_small_functions): Fix typos.
18964 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18966 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18967 (s390_can_use_return_insn): Declare.
18968 * config/s390/s390.h (EPILOGUE_USES): Define.
18969 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18971 (s390_chunkify_start): Handle return JUMP_LABELs.
18972 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18973 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18974 (s390_can_use_return_insn): New functions.
18975 (s390_fix_long_loop_prediction): Handle conditional returns.
18976 (TARGET_SET_UP_BY_PROLOGUE): Define.
18977 * config/s390/s390.md (ANY_RETURN): New code iterator.
18978 (*creturn, *csimple_return, return, simple_return): New patterns.
18980 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18982 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18983 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18984 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18985 REG_CFA_RESTORE list when deciding not to restore a register.
18987 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18989 * config/s390/s390.c: Include tree-pass.h and context.h.
18990 (s390_early_mach): New function, split out from...
18991 (s390_emit_prologue): ...here.
18992 (pass_data_s390_early_mach): New pass structure.
18993 (pass_s390_early_mach): New class.
18994 (s390_option_override): Create and register early_mach pass.
18995 Move to end of file.
18997 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18999 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19000 to match for the exit block.
19002 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19004 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19005 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19006 Reject misaligned operands.
19008 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19010 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19012 2014-02-07 Richard Biener <rguenther@suse.de>
19014 PR middle-end/60092
19015 * gimple-low.c (lower_builtin_posix_memalign): New function.
19016 (lower_stmt): Call it to lower posix_memalign in a way
19017 to make alignment info accessible.
19019 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19022 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19023 __builtin_setjmp_receiver.
19025 2014-02-07 Richard Biener <rguenther@suse.de>
19027 PR middle-end/60092
19028 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19029 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19030 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19031 Handle BUILT_IN_POSIX_MEMALIGN.
19032 (find_func_clobbers): Likewise.
19033 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19034 (call_may_clobber_ref_p_1): Likewise.
19036 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19039 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19042 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19045 * lto-cgraph.c (lto_output_node): Use
19046 symtab_get_symbol_partitioning_class.
19047 (lto_output_varpool_node): likewise.
19048 (symtab_get_symbol_partitioning_class): Move here from
19049 lto/lto-partition.c
19050 * cgraph.h (symbol_partitioning_class): Likewise.
19051 (symtab_get_symbol_partitioning_class): Declare.
19053 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19055 * ggc.h (ggc_internal_cleared_alloc): New macro.
19056 * vec.h (vec_safe_copy): Handle memory stats.
19057 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19058 * target-globals.c (save_target_globals): Likewise.
19060 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19063 * expr.c (emit_move_resolve_push): Export; be bit more selective
19064 on when to clear alias set.
19065 * expr.h (emit_move_resolve_push): Declare.
19066 * function.h (struct function): Add tail_call_marked.
19067 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19068 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19069 * config/i386/i386.md (TImode move expander): De not call
19071 (FP push expanders): Preserve memory attributes.
19072 * config/i386/sse.md (push<mode>1): Remove.
19073 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19074 (ix86_expand_push): Remove.
19075 * config/i386/mmx.md (push<mode>1): Remove.
19077 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19079 PR rtl-optimization/60030
19080 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19081 lopart with paradoxical subreg before shifting it up by hprec.
19083 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19085 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19086 Remove extra newline at end of file.
19087 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19088 (arm_issue_rate): Handle cortexa57.
19089 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19090 (cortex-a57.cortex-a53): Likewise.
19092 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19095 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19096 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19098 (arm_expand_prologue): Adjust all callers.
19099 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19100 info, registers also at the lowest numbered registers side. Use
19101 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19105 * var-tracking.c (adjust_mems): Before adding a SET to
19106 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19108 2014-02-06 Alan Modra <amodra@gmail.com>
19111 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19112 change SDmode to DDmode when lra_in_progress.
19114 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19116 PR middle-end/59150
19117 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19118 free_data_ref on the dr first, and before goto again also set dr
19119 to the next dr. For simd_lane_access, free old datarefs[i] before
19120 overwriting it. For get_vectype_for_scalar_type failure, don't
19121 free_data_ref if simd_lane_access.
19123 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19126 * tree.h (opts_for_fn): New inline function.
19127 (opt_for_fn): Define.
19128 * config/i386/i386.c (ix86_function_regparm): Use
19129 opt_for_fn (decl, optimize) instead of optimize.
19131 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19133 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19134 for SYMBOL_REF in large memory model.
19136 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19138 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19139 and crypto support.
19140 (cortex-a57): Likewise.
19141 (cortex-a57.cortex-a53): Likewise.
19143 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19144 Kugan Vivekanandarajah <kuganv@linaro.org>
19146 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19148 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19150 2014-02-06 Richard Biener <rguenther@suse.de>
19152 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19153 set_loop_copy and initialize_original_copy_tables.
19155 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19157 * config/aarch64/aarch64-simd.md
19158 (aarch64_ashr_simddi): Change QI to SI.
19160 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19161 Jakub Jelinek <jakub@redhat.com>
19163 PR middle-end/60013
19164 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19167 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19169 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19170 CODE_FOR_altivec_vpku[hw]um to
19171 CODE_FOR_altivec_vpku[hw]um_direct.
19172 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19173 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19174 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19175 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19177 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19179 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19180 generation for -maltivec=be.
19181 (altivec_vsumsws): Simplify redundant test.
19183 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19185 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19186 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19187 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19188 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19189 gen_altivec_vpkuwum.
19190 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19192 (altivec_vpks<VI_char>ss): Likewise.
19193 (altivec_vpks<VI_char>us): Likewise.
19194 (altivec_vpku<VI_char>us): Likewise.
19195 (altivec_vpku<VI_char>um): Likewise.
19196 (altivec_vpku<VI_char>um_direct): New (copy of
19197 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19199 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19200 target is little endian and -maltivec=be is not specified.
19201 (*altivec_vupkhs<VU_char>_direct): New (copy of
19202 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19203 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19204 target is little endian and -maltivec=be is not specified.
19205 (*altivec_vupkls<VU_char>_direct): New (copy of
19206 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19207 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19208 little endian and -maltivec=be is not specified.
19209 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19210 little endian and -maltivec=be is not specified.
19212 2014-02-05 Richard Henderson <rth@redhat.com>
19215 * combine-stack-adj.c: Revert r206943.
19216 * sched-int.h (struct deps_desc): Add last_args_size.
19217 * sched-deps.c (init_deps): Initialize it.
19218 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19219 contain REG_ARGS_SIZE notes.
19221 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19223 * lto-cgraph.c (asm_nodes_output): Make global.
19224 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19225 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19226 (driver_handle_option): Handle OPT_fwpa.
19228 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19231 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19232 a comment typo and formatting issue. If odr_hash hasn't been
19233 created, return vNULL and set *completep to false.
19235 PR middle-end/57499
19236 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19237 bb with no successors.
19239 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19242 * doc/invoke.texi (-march): Clarify documentation for ARM.
19243 (-mtune): Likewise.
19246 2014-02-05 Richard Biener <rguenther@suse.de>
19248 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19249 when not vectorizing because of too many alias checks.
19250 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19251 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19253 2014-02-05 Nick Clifton <nickc@redhat.com>
19255 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19256 accept extended registers in any mode when compiling for the MN10300.
19258 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19260 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19261 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19262 sanitization attributes.
19263 (can_inline_edge_p): Likewise.
19264 (sanitize_attrs_match_for_inline_p): New function.
19266 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19268 * ipa-prop.c (detect_type_change): Shor circuit testing of
19269 type changes on THIS pointer.
19271 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19274 * config/pa/pa.c (legitimize_tls_address): Return original address
19275 if not passed a SYMBOL_REF rtx.
19276 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19278 (pa_emit_move_sequence): Simplify TLS source operands.
19279 (pa_legitimate_constant_p): Reject all TLS constants.
19280 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19281 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19283 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19285 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19286 groups when we know they are controlled by LTO.
19287 * varasm.c (default_binds_local_p_1): If object is in other partition,
19288 it will be resolved locally.
19290 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19292 * config/host-linux.c (linux_gt_pch_use_address): Don't
19293 use SSIZE_MAX because it is not always defined.
19295 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19298 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19299 threshold for pseudo splitting.
19300 (update_ebb_live_info): Process call argument hard registers and
19301 hard registers from insn definition too.
19302 (max_small_class_regs_num): New constant.
19303 (inherit_in_ebb): Update live hard regs through EBBs. Update
19304 reloads_num only for small register classes. Don't split for
19307 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19310 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19313 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19315 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19316 visibility is safe.
19318 2014-02-04 Marek Polacek <polacek@redhat.com>
19320 * gdbinit.in (pel): Define.
19322 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19324 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19327 2014-02-04 Richard Biener <rguenther@suse.de>
19330 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19331 in function context local.
19332 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19333 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19334 similar to LTO_imported_decl_ref.
19336 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19338 PR tree-optimization/60002
19339 * cgraphclones.c (build_function_decl_skip_args): Clear
19340 DECL_LANG_SPECIFIC.
19342 PR tree-optimization/60023
19343 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19344 false to gsi_replace.
19345 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19346 has been in some EH region and vec_stmt could throw, add
19347 vec_stmt into the same EH region.
19348 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19349 has no lhs, ignore it.
19350 * internal-fn.c (expand_MASK_LOAD): Likewise.
19353 * tree-inline.c (copy_forbidden): Fail for
19354 __attribute__((optimize (0))) functions.
19357 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19358 is set, copy one less argument.
19359 (expand_simd_clones): Don't subtract clone_info->inbranch
19360 from simd_clone_struct_alloc argument.
19362 PR rtl-optimization/57915
19363 * recog.c (simplify_while_replacing): If all unary/binary/relational
19364 operation arguments are constant, attempt to simplify those.
19366 PR middle-end/59261
19367 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19368 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19370 2014-02-04 Richard Biener <rguenther@suse.de>
19372 PR tree-optimization/60012
19373 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19374 TBAA disambiguation to all DDRs.
19376 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19379 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19380 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19382 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19385 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19387 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19389 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19390 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19392 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19395 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19396 to figure out targets of polymorphic calls with known decl.
19397 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19398 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19399 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19400 (get_polymorphic_call_info): ... here.
19401 (get_polymorphic_call_info_from_invariant): New function.
19403 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19405 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19406 lookup via vtable pointer; check for type consistency
19407 and turn inconsitent facts into UNREACHABLE.
19408 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19409 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19410 type inconsistent querries; return UNREACHABLE instead.
19412 2014-02-03 Richard Henderson <rth@twiddle.net>
19415 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19416 already processed this node.
19417 (normalize_one_pred_1): Pass along mark_set.
19418 (normalize_one_pred): Create and destroy a pointer_set_t.
19419 (normalize_one_pred_chain): Likewise.
19421 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19423 PR gcov-profile/58602
19424 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19426 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19429 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19430 -fno-devirtualize; try to devirtualize by the knowledge of
19431 virtual table pointer given by aggregate propagation.
19432 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19433 (ipa_print_node_jump_functions): Dump also offset that
19434 is relevant for polymorphic calls.
19435 (determine_known_aggregate_parts): Add arg_type parameter; use it
19436 instead of determining the type from pointer type.
19437 (ipa_compute_jump_functions_for_edge): Update call of
19438 determine_known_aggregate_parts.
19439 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19440 (gimple_get_virt_method_for_binfo): ... here; simplify using
19441 vtable_pointer_value_to_vtable.
19442 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19443 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19444 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19445 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19447 (vtable_pointer_value_to_binfo): ... here.
19448 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19450 2014-02-03 Teresa Johnson <tejohnson@google.com>
19452 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19453 redef of outer loop index variable.
19455 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19459 * doc/extend.texi (Function Attributes): Typo.
19461 2014-02-03 Cong Hou <congh@google.com>
19463 PR tree-optimization/60000
19464 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19465 if the vectorized statement is a store. A store statement can only
19466 appear at the end of pattern statements.
19468 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19470 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19471 (ix86_option_override_internal): Default long double to 64-bit for
19472 32-bit Bionic and to 128-bit for 64-bit Bionic.
19474 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19475 TARGET_LONG_DOUBLE_128 is true.
19476 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19478 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19479 (mlong-double-64): Negate -mlong-double-128.
19480 (mlong-double-128): New option.
19482 * config/i386/i386-c.c (ix86_target_macros): Define
19483 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19485 * doc/invoke.texi: Document -mlong-double-128.
19487 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19489 PR rtl-optimization/60024
19490 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19492 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19494 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19496 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19498 PR rtl-optimization/57662
19499 * sel-sched.c (code_motion_path_driver): Do not mark already not
19500 existing blocks in the visiting bitmap.
19502 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19504 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19505 on the insn being emitted.
19507 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19508 Will Deacon <will.deacon@arm.com>
19510 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19512 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19514 * config/arm/arm-tables.opt: Regenerate.
19516 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19518 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19519 for vector types other than V16QImode.
19520 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19521 define_expand, and call altivec_expand_vec_perm_le when producing
19522 code with little endian element order.
19523 (*altivec_vperm_<mode>_internal): New insn having previous
19524 behavior of altivec_vperm_<mode>.
19525 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19526 altivec_expand_vec_perm_le when producing code with little endian
19528 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19529 behavior of altivec_vperm_<mode>_uns.
19531 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19533 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19534 (altivec_vsumsws): Add handling for -maltivec=be with a little
19536 (altivec_vsumsws_direct): New.
19537 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19538 gen_altivec_vsumsws.
19540 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19542 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19543 vtable_pointer_value_to_binfo): New functions.
19544 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19545 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19547 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19549 * config/nios2/nios2.md (load_got_register): Initialize GOT
19550 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19551 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19553 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19555 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19556 preserverd by passthrough, do not propagate the type.
19558 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19560 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19561 (mips_atomic_assign_expand_fenv): New function.
19562 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19564 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19566 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19567 (__builtin_mips_set_fcsr): Likewise.
19568 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19569 MIPS_USI_FTYPE_VOID.
19570 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19571 (mips16_expand_set_fcsr): Likewise.
19572 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19573 (mips16_set_fcsr_stub): Likewise.
19574 (mips16_get_fcsr_one_only_stub): New class.
19575 (mips16_set_fcsr_one_only_stub): Likewise.
19576 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19577 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19578 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19579 (hard_float): New availability predicate.
19580 (mips_builtins): Add get_fcsr and set_fcsr.
19581 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19582 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19583 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19584 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19585 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19588 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19590 * config/mips/mips.c (mips_one_only_stub): New class.
19591 (mips_need_mips16_rdhwr_p): Replace with...
19592 (mips16_rdhwr_stub): ...this new variable.
19593 (mips16_stub_call_address): New function.
19594 (mips16_rdhwr_one_only_stub): New class.
19595 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19596 (mips_output_mips16_rdhwr): Delete.
19597 (mips_finish_stub): New function.
19598 (mips_code_end): Use it to handle rdhwr stubs.
19600 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19603 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19604 when calculating size of integer atomic types.
19606 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19608 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19610 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19612 PR tree-optimization/60003
19613 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19614 * profile.c (branch_prob): Use gimple_call_builtin_p
19615 to check for BUILT_IN_SETJMP_RECEIVER.
19616 * tree-inline.c (copy_bb): Call notice_special_calls.
19618 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19621 * lra-constraints.c (process_alt_operands): Update reload_sum only
19624 2014-01-31 Richard Henderson <rth@redhat.com>
19626 PR middle-end/60004
19627 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19628 until after else_eh is processed.
19630 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19632 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19633 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19634 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19635 in smmintrin.h, remove them.
19636 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19637 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19638 * config/i386/i386.md (ROUND_SAE): Fix value.
19639 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19640 (const48_operand): New.
19641 * config/i386/subst.md (round), (round_expand): Use
19642 const_4_or_8_to_11_operand.
19643 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19645 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19647 * config/i386/constraints.md (Yk): Swap meaning with k.
19648 * config/i386/i386.md (movhi_internal): Change Yk to k.
19649 (movqi_internal): Ditto.
19650 (*k<logic><mode>): Ditto.
19653 (kandn<mode>): Ditto.
19654 (*<code>hi_1): Ditto.
19655 (*<code>qi_1): Ditto.
19656 (kxnor<mode>): Ditto.
19657 (kortestzhi): Ditto.
19658 (kortestchi): Ditto.
19660 (*one_cmplhi2_1): Ditto.
19661 (*one_cmplqi2_1): Ditto.
19662 * config/i386/sse.md (): Change k to Yk.
19663 (avx512f_load<mode>_mask): Ditto.
19664 (avx512f_blendm<mode>): Ditto.
19665 (avx512f_store<mode>_mask): Ditto.
19666 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19667 (avx512f_storedqu<mode>_mask): Ditto.
19668 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19670 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19671 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19672 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19673 (avx512f_maskcmp<mode>3): Ditto.
19674 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19675 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19676 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19677 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19678 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19679 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19680 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19681 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19682 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19683 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19684 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19685 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19686 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19687 (vec_extract_lo_<mode>_maskm): Ditto.
19688 (vec_extract_hi_<mode>_maskm): Ditto.
19689 (avx512f_vternlog<mode>_mask): Ditto.
19690 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19691 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19692 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19693 (avx512f_<code>v8div16qi2_mask): Ditto.
19694 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19695 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19696 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19697 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19698 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19699 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19700 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19701 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19702 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19703 (avx512cd_maskb_vec_dupv8di): Ditto.
19704 (avx512cd_maskw_vec_dupv16si): Ditto.
19705 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19706 (avx512f_vpermi2var<mode>3_mask): Ditto.
19707 (avx512f_vpermi2var<mode>3_mask): Ditto.
19708 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19709 (*avx512f_gathersi<mode>): Ditto.
19710 (*avx512f_gathersi<mode>_2): Ditto.
19711 (*avx512f_gatherdi<mode>): Ditto.
19712 (*avx512f_gatherdi<mode>_2): Ditto.
19713 (*avx512f_scattersi<mode>): Ditto.
19714 (*avx512f_scatterdi<mode>): Ditto.
19715 (avx512f_compress<mode>_mask): Ditto.
19716 (avx512f_compressstore<mode>_mask): Ditto.
19717 (avx512f_expand<mode>_mask): Ditto.
19718 * config/i386/subst.md (mask): Change k to Yk.
19719 (mask_scalar_merge): Ditto.
19722 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19724 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19726 2014-01-31 Richard Biener <rguenther@suse.de>
19728 PR middle-end/59990
19729 * builtins.c (fold_builtin_memory_op): Make sure to not
19730 use a floating-point mode or a boolean or enumeral type for
19731 the copy operation.
19733 2014-01-30 DJ Delorie <dj@redhat.com>
19735 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19736 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19737 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19738 whenever main() has an epilogue.
19740 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19742 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19743 unused variable "field".
19744 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19745 (vsx_mergeh_<mode>): Likewise.
19746 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19747 (altivec_vmrghh): Likewise.
19748 (altivec_vmrghw): Likewise.
19749 (altivec_vmrglb): Likewise.
19750 (altivec_vmrglh): Likewise.
19751 (altivec_vmrglw): Likewise.
19752 (altivec_vspltb): Add missing uses.
19753 (altivec_vsplth): Likewise.
19754 (altivec_vspltw): Likewise.
19755 (altivec_vspltsf): Likewise.
19757 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19760 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19761 frame related instructions.
19763 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19765 PR rtl-optimization/59959
19766 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19767 any reload of register whose subreg is invalid.
19769 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19771 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19772 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19773 Add missing return type - void.
19775 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19777 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19778 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19779 remove element index adjustment for endian (now handled in vsx.md
19781 (altivec_expand_vec_perm_const): Use
19782 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19783 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19784 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19785 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19786 define_expand and a new define_insn *altivec_vspltb_internal;
19787 adjust for -maltivec=be on a little endian target.
19788 (altivec_vspltb_direct): New.
19789 (altivec_vsplth): Divide into a define_expand and a new
19790 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19791 little endian target.
19792 (altivec_vsplth_direct): New.
19793 (altivec_vspltw): Divide into a define_expand and a new
19794 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19795 little endian target.
19796 (altivec_vspltw_direct): New.
19797 (altivec_vspltsf): Divide into a define_expand and a new
19798 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19799 a little endian target.
19801 2014-01-30 Richard Biener <rguenther@suse.de>
19803 PR tree-optimization/59993
19804 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19805 can propagate form the earlier stmt and avoid the transform
19806 when the intermediate result is needed.
19808 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19810 * README.Portability: Fix typo.
19812 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19814 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19815 comparison_operator with ordered_comparison_operator.
19817 2014-01-30 Nick Clifton <nickc@redhat.com>
19819 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19820 Rename to mn10300_store_multiple_regs.
19821 * config/mn10300/mn10300.c: Likewise.
19822 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19823 store_multiple_regs.
19824 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19825 Call mn10300_store_multiple_regs.
19827 2014-01-30 Nick Clifton <nickc@redhat.com>
19828 DJ Delorie <dj@redhat.com>
19830 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19831 %fp 2 to keep registers after it properly word-aligned.
19832 (rl78_alloc_physical_registers_umul): Handle the case where both
19833 input operands are the same.
19835 2014-01-30 Richard Biener <rguenther@suse.de>
19837 PR tree-optimization/59903
19838 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19841 2014-01-30 Jason Merrill <jason@redhat.com>
19844 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19847 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19849 2014-01-30 Richard Biener <rguenther@suse.de>
19851 PR tree-optimization/59951
19852 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19854 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19857 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19858 SFmode to DFmode case.
19860 2014-01-29 DJ Delorie <dj@redhat.com>
19862 * config/msp430/msp430.opt (-minrt): New.
19863 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19865 (ENDFILE_SPEC): Likewise.
19867 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19869 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19870 (estimate_function_body_sizes): Use it.
19872 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19875 * dwarf2out.c (is_cxx_auto): New.
19876 (is_base_type): Use it.
19877 (gen_type_die_with_usage): Likewise.
19879 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19881 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19882 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19883 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19884 -maltivec=be with LE targets.
19885 (vsx_mergeh_<mode>): Likewise.
19886 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19887 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19888 (altivec_vmrghb): Replace with define_expand and new
19889 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19890 (altivec_vmrghb_direct): New define_insn.
19891 (altivec_vmrghh): Replace with define_expand and new
19892 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19893 (altivec_vmrghh_direct): New define_insn.
19894 (altivec_vmrghw): Replace with define_expand and new
19895 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19896 (altivec_vmrghw_direct): New define_insn.
19897 (*altivec_vmrghsf): Adjust for endianness.
19898 (altivec_vmrglb): Replace with define_expand and new
19899 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19900 (altivec_vmrglb_direct): New define_insn.
19901 (altivec_vmrglh): Replace with define_expand and new
19902 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19903 (altivec_vmrglh_direct): New define_insn.
19904 (altivec_vmrglw): Replace with define_expand and new
19905 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19906 (altivec_vmrglw_direct): New define_insn.
19907 (*altivec_vmrglsf): Adjust for endianness.
19908 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19909 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19910 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19911 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19912 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19913 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19914 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19915 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19917 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19919 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19920 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19923 2014-01-29 Richard Biener <rguenther@suse.de>
19925 PR tree-optimization/58742
19926 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19927 associate_pointerplus_align.
19928 (associate_pointerplus_diff): New function.
19929 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19930 and associate_pointerplus_diff.
19932 2014-01-29 Richard Biener <rguenther@suse.de>
19934 * lto-streamer.h (LTO_major_version): Bump to 3.
19935 (LTO_minor_version): Reset to 0.
19937 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19939 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19940 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19941 (arm_file_start): Generate correct asm header for armv7ve.
19942 * config/arm/bpabi.h: Add multilib support for armv7ve.
19943 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19944 and cortex-a15 to armv7ve.
19945 * config/arm/t-aprofile: Add multilib support for armv7ve.
19946 * doc/invoke.texi: Document -march=armv7ve.
19948 2014-01-29 Richard Biener <rguenther@suse.de>
19950 PR tree-optimization/58742
19951 * tree-ssa-forwprop.c (associate_plusminus): Return true
19952 if we changed sth, defer EH cleanup to ...
19953 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19954 (simplify_mult): New function.
19956 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19958 PR middle-end/59917
19959 PR tree-optimization/59920
19960 * tree.c (build_common_builtin_nodes): Remove
19961 __builtin_setjmp_dispatcher initialization.
19962 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19963 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19964 instead of gsi_after_labels + manually skipping debug stmts.
19965 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19966 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19967 * tree-inline.c (copy_edges_for_bb): Remove
19968 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19969 argument. Ignore computed_goto_p stmts. Don't call
19970 make_abnormal_goto_edges. If a call might need abnormal edges
19971 for non-local gotos, see if it already has an edge to
19972 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19973 with true argument, don't do anything then, otherwise add
19974 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19975 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19977 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19978 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19979 (lower_stmt): Don't set data->calls_builtin_setjmp.
19980 (lower_builtin_setjmp): Adjust comment.
19981 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19982 * tree-cfg.c (found_computed_goto): Remove.
19983 (factor_computed_gotos): Remove.
19984 (make_goto_expr_edges): Return bool, true for computed gotos.
19985 Don't call make_abnormal_goto_edges.
19986 (build_gimple_cfg): Don't set found_computed_goto, don't call
19987 factor_computed_gotos.
19988 (computed_goto_p): No longer static.
19989 (make_blocks): Don't set found_computed_goto.
19990 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
19991 (make_edges): If make_goto_expr_edges returns true, push bb
19992 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
19993 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
19994 vector. Record mapping between bbs and OpenMP regions if there
19995 are any, adjust make_gimple_omp_edges caller. Call
19996 handle_abnormal_edges.
19997 (make_abnormal_goto_edges): Remove.
19998 * tree-cfg.h (make_abnormal_goto_edges): Remove.
19999 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20000 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20001 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20002 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20003 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20004 filling *region also set *region_idx to (*region)->entry->index.
20007 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20008 For REGs set ORIGINAL_REGNO.
20010 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20012 * doc/md.texi: Mention that a target shouldn't implement
20013 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20016 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20018 PR tree-optimization/59594
20019 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20020 a copy of the datarefs vector rather than the vector itself.
20022 2014-01-28 Jason Merrill <jason@redhat.com>
20025 * dwarf2out.c (auto_die): New static.
20026 (gen_type_die_with_usage): Handle C++1y 'auto'.
20027 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20030 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20033 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20034 (SPEC_X32): Likewise.
20035 (SPEC_64): Likewise.
20036 * config/i386/i386.c (ix86_option_override_internal): Turn off
20037 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20039 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20040 * config/i386/i386.h (TARGET_16BIT): New macro.
20041 (TARGET_16BIT_P): Likewise.
20042 * config/i386/i386.opt: Add m16.
20043 * doc/invoke.texi: Document -m16.
20045 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20047 PR preprocessor/59935
20048 * input.c (location_get_source_line): Bail out on when line number
20049 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20051 2014-01-28 Richard Biener <rguenther@suse.de>
20053 PR tree-optimization/58742
20054 * tree-ssa-forwprop.c (associate_plusminus): Handle
20055 pointer subtraction of the form (T)(P + A) - (T)P.
20057 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20059 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20062 2014-01-28 Richard Biener <rguenther@suse.de>
20065 2014-01-28 Richard Biener <rguenther@suse.de>
20067 PR rtl-optimization/45364
20068 PR rtl-optimization/59890
20069 * var-tracking.c (local_get_addr_clear_given_value): Handle
20070 already cleared slot.
20071 (val_reset): Handle not allocated local_get_addr_cache.
20072 (vt_find_locations): Use post-order on the inverted CFG.
20074 2014-01-28 Richard Biener <rguenther@suse.de>
20076 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20078 2014-01-28 Richard Biener <rguenther@suse.de>
20080 PR rtl-optimization/45364
20081 PR rtl-optimization/59890
20082 * var-tracking.c (local_get_addr_clear_given_value): Handle
20083 already cleared slot.
20084 (val_reset): Handle not allocated local_get_addr_cache.
20085 (vt_find_locations): Use post-order on the inverted CFG.
20087 2014-01-28 Alan Modra <amodra@gmail.com>
20089 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20090 * configure.ac <recursive call for build != host>: Define
20091 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20092 and LD_FOR_BUILD too.
20093 * configure: Regenerate.
20095 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20097 * config/i386/i386.c (get_builtin_code_for_version): Separate
20098 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20099 Broadwell from Haswell.
20101 2014-01-27 Steve Ellcey <sellcey@mips.com>
20103 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20104 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20105 * config/mips/mips.c (mips_option_override): Change setting
20107 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20108 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20109 Change from Mask to Var.
20111 2014-01-27 Jeff Law <law@redhat.com>
20113 * ipa-inline.c (inline_small_functions): Fix typo.
20115 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20117 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20118 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20119 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20120 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20121 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20122 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20123 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20124 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20125 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20126 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20127 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20128 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20129 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20130 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20131 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20132 (_mm512_storeu_epi64): Ditto.
20133 (_mm512_cmpge_epi32_mask): Ditto.
20134 (_mm512_cmpge_epu32_mask): Ditto.
20135 (_mm512_cmpge_epi64_mask): Ditto.
20136 (_mm512_cmpge_epu64_mask): Ditto.
20137 (_mm512_cmple_epi32_mask): Ditto.
20138 (_mm512_cmple_epu32_mask): Ditto.
20139 (_mm512_cmple_epi64_mask): Ditto.
20140 (_mm512_cmple_epu64_mask): Ditto.
20141 (_mm512_cmplt_epi32_mask): Ditto.
20142 (_mm512_cmplt_epu32_mask): Ditto.
20143 (_mm512_cmplt_epi64_mask): Ditto.
20144 (_mm512_cmplt_epu64_mask): Ditto.
20145 (_mm512_cmpneq_epi32_mask): Ditto.
20146 (_mm512_cmpneq_epu32_mask): Ditto.
20147 (_mm512_cmpneq_epi64_mask): Ditto.
20148 (_mm512_cmpneq_epu64_mask): Ditto.
20149 (_mm512_expand_pd): Ditto.
20150 (_mm512_expand_ps): Ditto.
20151 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20152 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20153 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20154 * config/i386/i386.c (ix86_builtins): Add
20155 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20156 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20157 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20158 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20159 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20160 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20161 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20162 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20163 IX86_BUILTIN_PMOVUSQW512_MEM.
20164 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20165 __builtin_ia32_pmovsqd512mem_mask,
20166 __builtin_ia32_pmovqd512mem_mask,
20167 __builtin_ia32_pmovusqw512mem_mask,
20168 __builtin_ia32_pmovsqw512mem_mask,
20169 __builtin_ia32_pmovqw512mem_mask,
20170 __builtin_ia32_pmovusdw512mem_mask,
20171 __builtin_ia32_pmovsdw512mem_mask,
20172 __builtin_ia32_pmovdw512mem_mask,
20173 __builtin_ia32_pmovqb512mem_mask,
20174 __builtin_ia32_pmovusqb512mem_mask,
20175 __builtin_ia32_pmovsqb512mem_mask,
20176 __builtin_ia32_pmovusdb512mem_mask,
20177 __builtin_ia32_pmovsdb512mem_mask,
20178 __builtin_ia32_pmovdb512mem_mask.
20179 (bdesc_args): Add __builtin_ia32_expanddf512,
20180 __builtin_ia32_expandsf512.
20181 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20182 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20183 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20184 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20185 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20186 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20187 (avx512f_<code>v8div16qi2_mask_store): This.
20188 (avx512f_expand<mode>): New.
20190 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20192 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20194 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20195 (_mm512_prefetch_i32scatter_pd): Ditto.
20196 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20197 (_mm512_prefetch_i64scatter_pd): Ditto.
20198 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20199 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20200 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20201 (_mm512_prefetch_i32scatter_ps): Ditto.
20202 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20203 (_mm512_prefetch_i64scatter_ps): Ditto.
20204 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20205 * config/i386/i386-builtin-types.def: Define
20206 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20207 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20208 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20209 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20210 IX86_BUILTIN_SCATTERPFQPD.
20211 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20212 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20213 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20214 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20215 __builtin_ia32_scatterpfqps.
20216 (ix86_expand_builtin): Expand new built-ins.
20217 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20218 fix memory access data type.
20219 (*avx512pf_gatherpf<mode>_mask): Ditto.
20220 (*avx512pf_gatherpf<mode>): Ditto.
20221 (avx512pf_scatterpf<mode>): Ditto.
20222 (*avx512pf_scatterpf<mode>_mask): Ditto.
20223 (*avx512pf_scatterpf<mode>): Ditto.
20224 (GATHER_SCATTER_SF_MEM_MODE): New.
20225 (avx512pf_gatherpf<mode>df): Ditto.
20226 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20227 (*avx512pf_scatterpf<mode>df): Ditto.
20229 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20232 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20233 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20236 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20238 * common/config/arm/arm-common.c
20239 (arm_rewrite_mcpu): Handle multiple names.
20241 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20243 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20245 * gimple-builder.h (create_gimple_tmp): Delete.
20247 2014-01-27 Christian Bruel <christian.bruel@st.com>
20249 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20252 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20254 * config/pa/pa.md (call): Generate indirect long calls to non-local
20255 functions when outputing 32-bit code.
20256 (call_value): Likewise except for special call to buggy powf function.
20258 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20259 portable runtime and PIC indirect calls.
20260 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20261 and PIC call sequences. Use ldo instead of blr to set return register
20262 in PIC call sequence.
20264 2014-01-25 Walter Lee <walt@tilera.com>
20266 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20267 avoid clobbering a live register.
20269 2014-01-25 Walter Lee <walt@tilera.com>
20271 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20272 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20273 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20274 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20276 2014-01-25 Walter Lee <walt@tilera.com>
20278 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20279 arguments on even registers.
20280 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20282 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20283 (BIGGEST_ALIGNMENT): Ditto.
20284 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20286 2014-01-25 Walter Lee <walt@tilera.com>
20288 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20289 insns before bundling.
20290 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20292 2014-01-25 Walter Lee <walt@tilera.com>
20294 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20295 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20296 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20298 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20300 * config/mips/constraints.md (kl): Delete.
20301 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20302 define expands, using...
20303 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20304 instructions for MIPS16.
20305 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20306 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20308 2014-01-25 Walter Lee <walt@tilera.com>
20310 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20314 2014-01-25 Walter Lee <walt@tilera.com>
20316 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20317 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20319 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20321 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20324 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20326 * print-rtl.c (in_call_function_usage): New var.
20327 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20328 EXPR_LIST mode as mode and not as reg note name.
20330 PR middle-end/59561
20331 * cfgloopmanip.c (copy_loop_info): If
20332 loop->warned_aggressive_loop_optimizations, make sure
20333 the flag is set in target loop too.
20335 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20337 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20339 * builtins.def: Likewise.
20340 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20341 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20342 * ira.c (ira_setup_eliminable_regset): Likewise.
20343 * omp-low.c (gate_expand_omp): Likewise.
20344 (execute_lower_omp): Likewise.
20345 (diagnose_sb_0): Likewise.
20346 (gate_diagnose_omp_blocks): Likewise.
20347 (simd_clone_clauses_extract): Likewise.
20350 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20352 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20353 correction for little endian...
20354 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20357 2014-01-24 Jeff Law <law@redhat.com>
20359 PR tree-optimization/59919
20360 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20361 for non-returning calls.
20363 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20365 * common/config/aarch64/aarch64-common.c
20366 (aarch64_rewrite_mcpu): Handle multiple names.
20367 * config/aarch64/aarch64.h
20368 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20370 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20372 * input.c (add_file_to_cache_tab): Handle the case where fopen
20375 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20378 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20379 from push operand if code of push isn't PRE_DEC.
20381 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20384 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20385 -mquad-memory-atomic. Update -mquad-memory documentation to say
20386 it is only used for non-atomic loads/stores.
20388 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20389 -mquad-memory or -mquad-memory-atomic switches.
20391 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20392 -mquad-memory-atomic to ISA 2.07 support.
20394 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20395 to separate support of normal quad word memory operations (ldq, stq)
20396 from the atomic quad word memory operations.
20398 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20399 support to separate non-atomic quad word operations from atomic
20400 quad word operations. Disable non-atomic quad word operations in
20401 little endian mode so that we don't have to swap words after the
20402 load and before the store.
20403 (quad_load_store_p): Add comment about atomic quad word support.
20404 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20405 options printed with -mdebug=reg.
20407 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20408 -mquad-memory-atomic as the test for whether we have quad word
20409 atomic instructions.
20410 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20411 or -mp8-vector are used, allow byte/half-word atomic operations.
20413 * config/rs6000/sync.md (load_lockedti): Insure that the address
20414 is a proper indexed or indirect address for the lqarx instruction.
20415 On little endian systems, swap the hi/lo registers after the lqarx
20417 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20418 insure the address is valid for the lqarx instruction.
20419 (store_conditionalti): Insure that the address is a proper indexed
20420 or indirect address for the stqcrx. instruction. On little endian
20421 systems, swap the hi/lo registers before doing the stqcrx.
20423 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20424 insure the address is valid for the stqcrx. instruction.
20426 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20427 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20428 type of quad memory support is available.
20430 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20432 PR regression/59915
20433 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20434 there is a danger of looping.
20436 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20438 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20439 force flag_ira_loop_pressure if set via command line.
20441 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20443 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20444 (ashr_simd): New builtin handling DI mode.
20445 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20446 (aarch64_sshr_simddi): New match pattern.
20447 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20448 (vshrd_n_s64): Likewise.
20449 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20451 2014-01-23 Nick Clifton <nickc@redhat.com>
20453 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20454 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20455 favour of mcu specific scripts.
20456 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20459 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20460 Alex Velenko <Alex.Velenko@arm.com>
20462 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20463 (vaddv_s16): Likewise.
20464 (vaddv_s32): Likewise.
20465 (vaddv_u8): Likewise.
20466 (vaddv_u16): Likewise.
20467 (vaddv_u32): Likewise.
20468 (vaddvq_s8): Likewise.
20469 (vaddvq_s16): Likewise.
20470 (vaddvq_s32): Likewise.
20471 (vaddvq_s64): Likewise.
20472 (vaddvq_u8): Likewise.
20473 (vaddvq_u16): Likewise.
20474 (vaddvq_u32): Likewise.
20475 (vaddvq_u64): Likewise.
20476 (vaddv_f32): Likewise.
20477 (vaddvq_f32): Likewise.
20478 (vaddvq_f64): Likewise.
20479 (vmaxv_f32): Likewise.
20480 (vmaxv_s8): Likewise.
20481 (vmaxv_s16): Likewise.
20482 (vmaxv_s32): Likewise.
20483 (vmaxv_u8): Likewise.
20484 (vmaxv_u16): Likewise.
20485 (vmaxv_u32): Likewise.
20486 (vmaxvq_f32): Likewise.
20487 (vmaxvq_f64): Likewise.
20488 (vmaxvq_s8): Likewise.
20489 (vmaxvq_s16): Likewise.
20490 (vmaxvq_s32): Likewise.
20491 (vmaxvq_u8): Likewise.
20492 (vmaxvq_u16): Likewise.
20493 (vmaxvq_u32): Likewise.
20494 (vmaxnmv_f32): Likewise.
20495 (vmaxnmvq_f32): Likewise.
20496 (vmaxnmvq_f64): Likewise.
20497 (vminv_f32): Likewise.
20498 (vminv_s8): Likewise.
20499 (vminv_s16): Likewise.
20500 (vminv_s32): Likewise.
20501 (vminv_u8): Likewise.
20502 (vminv_u16): Likewise.
20503 (vminv_u32): Likewise.
20504 (vminvq_f32): Likewise.
20505 (vminvq_f64): Likewise.
20506 (vminvq_s8): Likewise.
20507 (vminvq_s16): Likewise.
20508 (vminvq_s32): Likewise.
20509 (vminvq_u8): Likewise.
20510 (vminvq_u16): Likewise.
20511 (vminvq_u32): Likewise.
20512 (vminnmv_f32): Likewise.
20513 (vminnmvq_f32): Likewise.
20514 (vminnmvq_f64): Likewise.
20516 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20518 * config/aarch64/aarch64-simd.md
20519 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20520 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20521 (*aarch64_mul3_elt<mode>): Likewise.
20522 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20523 (*aarch64_mul3_elt_to_64v2df): Likewise.
20524 (*aarch64_mla_elt<mode>): Likewise.
20525 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20526 (*aarch64_mls_elt<mode>): Likewise.
20527 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20528 (*aarch64_fma4_elt<mode>): Likewise.
20529 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20530 (*aarch64_fma4_elt_to_64v2df): Likewise.
20531 (*aarch64_fnma4_elt<mode>): Likewise.
20532 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20533 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20534 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20535 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20536 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20537 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20538 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20539 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20540 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20542 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20544 * config/aarch64/aarch64-simd.md
20545 (aarch64_be_checked_get_lane<mode>): New define_expand.
20546 * config/aarch64/aarch64-simd-builtins.def
20547 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20548 New builtin definition.
20549 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20550 Use new safe be builtin.
20552 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20554 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20556 (aarch64_be_st1<mode>): Likewise.
20557 (aarch_ld1<VALL:mode>): Define_expand modified.
20558 (aarch_st1<VALL:mode>): Likewise.
20559 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20560 (UNSPEC_ST1): Likewise.
20562 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20564 * config/microblaze/microblaze.md: Add trap insn and attribute
20566 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20568 PR preprocessor/58580
20569 * input.h (location_get_source_line): Take an additional line_size
20571 (void diagnostics_file_cache_fini): Declare new function.
20572 * input.c (struct fcache): New type.
20573 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20574 New static constants.
20575 (diagnostic_file_cache_init, total_lines_num)
20576 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20577 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20578 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20579 (get_next_line, read_next_line, goto_next_line, read_line_num):
20580 New static function definitions.
20581 (diagnostic_file_cache_fini): New function.
20582 (location_get_source_line): Take an additional output line_len
20583 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20585 * diagnostic.c (diagnostic_finish): Call
20586 diagnostic_file_cache_fini.
20587 (adjust_line): Take an additional input parameter for the length
20588 of the line, rather than calculating it with strlen.
20589 (diagnostic_show_locus): Adjust the use of
20590 location_get_source_line and adjust_line with respect to their new
20591 signature. While displaying a line now, do not stop at the first
20592 null byte. Rather, display the zero byte as a space and keep
20593 going until we reach the size of the line.
20594 * Makefile.in: Add vec.o to OBJS-libcommon
20596 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20597 Ilya Tocar <ilya.tocar@intel.com>
20599 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20600 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20601 (__builtin_ia32_kmov16): Ditto.
20602 * config/i386/i386.md (UNSPEC_KMOV): New.
20605 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20607 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20608 (_mm512_storeu_si512): Ditto.
20610 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20613 * rtl.h (get_referenced_operands): Declare.
20614 * recog.c (get_referenced_operands): New function.
20615 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20616 operands have been referenced when recording LO_SUM references.
20618 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20620 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20622 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20624 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20625 Enable for generic and recent AMD targets.
20627 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20629 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20630 ARG_SIZE note when adjustment was eliminated.
20632 2014-01-22 Jeff Law <law@redhat.com>
20634 PR tree-optimization/59597
20635 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20636 in file. Accept new argument REGISTERING and use it to modify
20637 dump output appropriately.
20638 (register_jump_thread): Corresponding changes.
20639 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20640 thread paths involving joiner blocks. Add code to dump cancelled
20641 jump threading paths.
20643 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20645 PR rtl-optimization/59477
20646 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20647 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20649 2014-01-22 Tom Tromey <tromey@redhat.com>
20651 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20653 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20655 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20657 PR rtl-optimization/59896
20658 * lra-constraints.c (process_alt_operands): Check unused note for
20659 matched operands of insn with no output reloads.
20661 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20663 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20664 (mips_move_from_gpr_cost): Likewise.
20666 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20668 PR rtl-optimization/59858
20669 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20670 ira_class_hard_regs_num.
20671 (process_alt_operands): Increase reject for dying matched operand.
20673 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20676 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20677 smaller than size, perform several stores or loads and stores
20678 at dst + count - size to store or copy all of size bytes, rather
20679 than just last modesize bytes.
20681 2014-01-20 DJ Delorie <dj@redhat.com>
20683 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20684 that CLOBBERs are REGs before propogating their values.
20686 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20688 PR middle-end/59789
20689 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20690 (cgraph_inline_failed_type): New function.
20691 * cgraph.h (DEFCIFCODE): Add type.
20692 (cgraph_inline_failed_type_t): New enum.
20693 (cgraph_inline_failed_type): New prototype.
20694 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20695 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20696 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20697 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20698 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20699 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20700 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20701 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20702 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20703 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20704 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20705 OPTIMIZATION_MISMATCH.
20706 * tree-inline.c (expand_call_inline): Emit errors during
20707 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20709 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20712 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20713 mode attribute in insn output.
20715 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20717 * output.h (output_constant): Delete.
20718 * varasm.c (output_constant): Make private.
20720 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20722 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20724 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20726 PR middle-end/59860
20727 * tree.h (fold_builtin_strcat): New prototype.
20728 * builtins.c (fold_builtin_strcat): No longer static. Add len
20729 argument, if non-NULL, don't call c_strlen. Optimize
20730 directly into __builtin_memcpy instead of __builtin_strcpy.
20731 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20732 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20734 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20736 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20737 for SImode_address_operand operands, having only a REG argument.
20739 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20741 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20742 loader name using mbig-endian.
20743 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20745 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20747 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20748 (-mtune): Likewise.
20751 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20753 * config/aarch64/aarch64-protos.h
20754 (aarch64_cannot_change_mode_class_ptr): Declare.
20755 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20756 aarch64_cannot_change_mode_class_ptr): New.
20757 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20758 backend hook aarch64_cannot_change_mode_class.
20760 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20762 * common/config/aarch64/aarch64-common.c
20763 (aarch64_handle_option): Don't handle any option order logic here.
20764 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20765 selected_cpu, warn on architecture version mismatch.
20766 (aarch64_override_options): Fix parsing order for option strings.
20768 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20769 Iain Sandoe <iain@codesourcery.com>
20772 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20773 warning. Amend comment to reflect current functionality.
20775 2014-01-20 Richard Biener <rguenther@suse.de>
20777 PR middle-end/59860
20778 * builtins.c (fold_builtin_strcat): Remove case better handled
20779 by tree-ssa-strlen.c.
20781 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20783 * config/aarch64/aarch64.opt
20784 (mcpu, march, mtune): Make case-insensitive.
20786 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20789 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20790 if operands[1] is a REG or ZERO_EXTEND of a REG.
20792 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20794 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20796 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20798 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20799 long non-pic millicode calls.
20801 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20803 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20805 2014-01-19 Kito Cheng <kito@0xlab.org>
20807 * builtins.c (expand_movstr): Check movstr expand done or fail.
20809 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20810 H.J. Lu <hongjiu.lu@intel.com>
20813 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20814 to DImode for zero-extended addresses.
20816 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20818 PR rtl-optimization/57763
20819 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20820 on the new indirect jump_insn and increment LABEL_NUSES (label).
20822 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20826 * config.gcc (x86_archs): New variable.
20827 (x86_64_archs): Likewise.
20828 (x86_cpus): Likewise.
20829 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20830 --with-arch/--with-cpu= options.
20831 Support --with-arch=/--with-cpu={nehalem,westmere,
20832 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20834 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20836 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20837 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20839 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20841 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20843 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20846 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20847 clear cpp_get_options (parse_in)->warn_unused_macros for
20848 ix86_target_macros_internal with cpp_define.
20850 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20852 * jump.c (delete_related_insns): Keep (use (insn))s.
20853 * reorg.c (redundant_insn): Check for barriers too.
20855 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20857 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20859 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20861 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20862 call to $$dyncall when TARGET_LONG_CALLS is true.
20864 2014-01-17 Jeff Law <law@redhat.com>
20866 * ree.c (combine_set_extension): Temporarily disable test for
20867 changing number of hard registers.
20869 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20871 PR middle-end/58125
20872 * ipa-inline-analysis.c (inline_free_summary):
20873 Do not free summary of aliases.
20875 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20877 PR middle-end/59706
20878 * gimplify.c (gimplify_expr): Use create_tmp_var
20879 instead of create_tmp_var_raw. If cond doesn't have
20880 integral type, don't add the IFN_ANNOTATE builtin at all.
20882 2014-01-17 Martin Jambor <mjambor@suse.cz>
20885 * ipa-cp.c (prev_edge_clone): New variable.
20886 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20887 Also resize prev_edge_clone vector.
20888 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20889 (ipcp_edge_removal_hook): New function.
20890 (ipcp_driver): Register ipcp_edge_removal_hook.
20892 2014-01-17 Andrew Pinski <apinski@cavium.com>
20893 Steve Ellcey <sellcey@mips.com>
20896 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20899 2014-01-17 Jeff Law <law@redhat.com>
20901 PR middle-end/57904
20902 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20903 so that pass_ccp runs first.
20905 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20907 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20908 (ix86_adjust_cost): Use !TARGET_XXX.
20909 (do_reorder_for_imul): Likewise.
20910 (swap_top_of_ready_list): Likewise.
20911 (ix86_sched_reorder): Likewise.
20913 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20915 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20916 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20917 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20918 (intel_memset): New. Duplicate slm_memset.
20919 (intel_cost): New. Duplicate slm_cost.
20920 (m_INTEL): New macro.
20921 (processor_target_table): Add "intel".
20922 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20923 with PROCESSOR_INTEL for "intel".
20924 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20925 PROCESSOR_SILVERMONT.
20926 (ix86_issue_rate): Likewise.
20927 (ix86_adjust_cost): Likewise.
20928 (ia32_multipass_dfa_lookahead): Likewise.
20929 (swap_top_of_ready_list): Likewise.
20930 (ix86_sched_reorder): Likewise.
20931 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20932 instead of TARGET_OPT_AGU.
20933 * config/i386/i386.h (TARGET_INTEL): New.
20934 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20935 (processor_type): Add PROCESSOR_INTEL.
20936 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20937 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20939 2014-01-17 Marek Polacek <polacek@redhat.com>
20942 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20945 2014-01-17 Richard Biener <rguenther@suse.de>
20947 PR tree-optimization/46590
20948 * opts.c (default_options_table): Add entries for
20949 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20950 all enabled at -O1 but not for -Og.
20951 * common.opt (fbranch-count-reg): Remove Init(1).
20952 (fmove-loop-invariants): Likewise.
20953 (ftree-pta): Likewise.
20955 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20957 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20958 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20959 decls to at least the GCC 4.8 used alignments.
20962 * tree-nested.c (convert_nonlocal_reference_stmt,
20963 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20964 of GIMPLE_BIND stmts, adjust associated decls.
20966 2014-01-17 Richard Biener <rguenther@suse.de>
20968 PR tree-optimization/46590
20969 * vec.h (vec<>::bseach): New member function implementing
20970 binary search according to C89 bsearch.
20971 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20972 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20973 bitmap pointer again. Make accesses_in_loop a flat array.
20974 (mem_ref_obstack): New global.
20975 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20976 (mark_ref_stored): Likewise.
20977 (ref_indep_loop_p_2): Likewise.
20978 (set_ref_stored_in_loop): New helper function.
20979 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20980 (memref_free): Adjust.
20981 (record_mem_ref_loc): Simplify.
20982 (gather_mem_refs_stmt): Adjust.
20983 (sort_locs_in_loop_postorder_cmp): New function.
20984 (analyze_memory_references): Sort accesses_in_loop after
20985 loop postorder number.
20986 (find_ref_loc_in_loop_cmp): New function.
20987 (for_all_locs_in_loop): Find relevant cluster of locs in
20988 accesses_in_loop and iterate without recursion.
20989 (execute_sm): Avoid uninit warning.
20990 (struct ref_always_accessed): Simplify.
20991 (ref_always_accessed::operator ()): Likewise.
20992 (ref_always_accessed_p): Likewise.
20993 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
20994 loop postorder numbers here.
20995 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
20998 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21001 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21002 on decls for which assemble_alias has been called.
21004 2014-01-17 Nick Clifton <nickc@redhat.com>
21006 * config/msp430/msp430.opt: (mcpu): New option.
21007 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21008 (msp430_option_override): Parse target_cpu. If the MCU name
21009 matches a generic string, clear target_mcu.
21010 (msp430_attr): Allow numeric interrupt values up to 63.
21011 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21012 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21014 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21016 * config/msp430/msp430.md (popm): Use %J rather than %I.
21017 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21018 (addhi_cy_i): Use immediate_operand for operand 2.
21019 * doc/invoke.texi: Document -mcpu option.
21021 2014-01-17 Richard Biener <rguenther@suse.de>
21023 PR rtl-optimization/38518
21024 * df.h (df_analyze_loop): Declare.
21025 * df-core.c: Include cfgloop.h.
21026 (df_analyze_1): Split out main part of df_analyze.
21027 (df_analyze): Adjust.
21028 (loop_inverted_post_order_compute): New function.
21029 (loop_post_order_compute): Likewise.
21030 (df_analyze_loop): New function avoiding whole-function
21031 postorder computes.
21032 * loop-invariant.c (find_defs): Use df_analyze_loop.
21033 (find_invariants): Adjust.
21034 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21036 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21038 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21039 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21041 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21043 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21044 traversal when removing references.
21046 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21049 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21051 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21053 PR middle-end/56791
21054 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21055 pushing a reload for an autoinc when we had previously reloaded an
21056 inner part of the address.
21058 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21060 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21062 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21063 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21064 when not giving up or versioning for alias only because of
21066 (vect_analyze_data_ref_dependences): Set to true.
21067 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21069 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21070 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21073 PR middle-end/58344
21074 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21077 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21078 operand 0 predicate for gathers, use a new pseudo as subtarget.
21080 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21082 PR middle-end/59609
21083 * lra-constraints.c (process_alt_operands): Add printing debug info.
21084 Check absence of input/output reloads for matched operands too.
21086 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21088 PR rtl-optimization/59835
21089 * ira.c (ira_init_register_move_cost): Increase cost for
21092 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21094 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21096 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21099 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21100 non-register objects. Use gen_(high/low)part more consistently.
21103 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21106 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21107 endian support, remove tests for WORDS_BIG_ENDIAN.
21108 (p8_mfvsrd_3_<mode>): Likewise.
21109 (reload_gpr_from_vsx<mode>): Likewise.
21110 (reload_gpr_from_vsxsf): Likewise.
21111 (p8_mfvsrd_4_disf): Likewise.
21113 2014-01-16 Richard Biener <rguenther@suse.de>
21115 PR rtl-optimization/46590
21116 * lcm.c (compute_antinout_edge): Use postorder iteration.
21117 (compute_laterin): Use inverted postorder iteration.
21119 2014-01-16 Nick Clifton <nickc@redhat.com>
21121 PR middle-end/28865
21122 * varasm.c (output_constant): Return the number of bytes actually
21124 (output_constructor_array_range): Update the field size with the
21125 number of bytes emitted by output_constant.
21126 (output_constructor_regular_field): Likewise. Also do not
21127 complain if the total number of bytes emitted is now greater
21128 than the expected fieldpos.
21129 * output.h (output_constant): Update prototype and descriptive comment.
21131 2014-01-16 Marek Polacek <polacek@redhat.com>
21133 PR middle-end/59827
21134 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21135 it is error_mark_node.
21137 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21139 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21140 VALID_AVX256_REG_OR_OI_MODE.
21142 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21144 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21145 current procedure should be profiled.
21147 2014-01-15 Andrew Pinski <apinski@cavium.com>
21149 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21150 of moving from/to the STACK_REG register class.
21152 2014-01-15 Richard Henderson <rth@redhat.com>
21155 * reginfo.c (global_regs_decl): Globalize.
21156 * rtl.h (global_regs_decl): Declare.
21157 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21158 reserved via global_regs.
21160 2014-01-15 Teresa Johnson <tejohnson@google.com>
21162 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21164 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21166 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21167 and vmulosh rather than call gen_vec_widen_smult_*.
21168 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21169 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21170 (vec_widen_smult_even_v16qi): Likewise.
21171 (vec_widen_umult_even_v8hi): Likewise.
21172 (vec_widen_smult_even_v8hi): Likewise.
21173 (vec_widen_umult_odd_v16qi): Likewise.
21174 (vec_widen_smult_odd_v16qi): Likewise.
21175 (vec_widen_umult_odd_v8hi): Likewise.
21176 (vec_widen_smult_odd_v8hi): Likewise.
21177 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21178 vmuloub rather than call gen_vec_widen_umult_*.
21179 (vec_widen_umult_lo_v16qi): Likewise.
21180 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21181 vmulosb rather than call gen_vec_widen_smult_*.
21182 (vec_widen_smult_lo_v16qi): Likewise.
21183 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21184 rather than call gen_vec_widen_umult_*.
21185 (vec_widen_umult_lo_v8hi): Likewise.
21186 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21187 rather than call gen_vec_widen_smult_*.
21188 (vec_widen_smult_lo_v8hi): Likewise.
21190 2014-01-15 Jeff Law <law@redhat.com>
21192 PR tree-optimization/59747
21193 * ree.c (find_and_remove_re): Properly handle case where a second
21194 eliminated extension requires widening a copy created for elimination
21195 of a prior extension.
21196 (combine_set_extension): Ensure that the number of hard regs needed
21197 for a destination register does not change when we widen it.
21199 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21201 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21202 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21203 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21204 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21205 (avr-*-rtems*): Likewise.
21206 (bfin*-rtems*): Likewise.
21207 (moxie-*-rtems*): Likewise.
21208 (h8300-*-rtems*): Likewise.
21209 (i[34567]86-*-rtems*): Likewise.
21210 (lm32-*-rtems*): Likewise.
21211 (m32r-*-rtems*): Likewise.
21212 (m68k-*-rtems*): Likewise.
21213 (microblaze*-*-rtems*): Likewise.
21214 (mips*-*-rtems*): Likewise.
21215 (powerpc-*-rtems*): Likewise.
21216 (sh-*-rtems*): Likewise.
21217 (sparc-*-rtems*): Likewise.
21218 (sparc64-*-rtems*): Likewise.
21219 (v850-*-rtems*): Likewise.
21220 (m32c-*-rtems*): Likewise.
21222 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21224 PR rtl-optimization/59511
21225 * ira.c (ira_init_register_move_cost): Use memory costs for some
21226 cases of register move cost calculations.
21227 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21228 instead of BB frequency.
21229 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21230 * lra-assigns.c (find_hard_regno_for): Ditto.
21232 2014-01-15 Richard Biener <rguenther@suse.de>
21234 PR tree-optimization/59822
21235 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21236 (vectorizable_load): Use it to hoist defs of uses of invariant
21237 loads out of the loop.
21239 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21240 Kugan Vivekanandarajah <kuganv@linaro.org>
21243 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21246 2014-01-15 Richard Biener <rguenther@suse.de>
21248 PR rtl-optimization/59802
21249 * lcm.c (compute_available): Use inverted postorder to seed
21250 the initial worklist.
21252 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21255 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21256 ADDR_REGS for invalid symrefs in non-PIC code.
21258 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21261 * builtins.c (determine_block_size): Initialize *probable_max_size
21262 even if len_rtx is CONST_INT.
21264 2014-01-14 Andrew Pinski <apinski@cavium.com>
21266 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21267 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21268 (cortexa53_tunings): Likewise.
21269 (aarch64_sched_issue_rate): New function.
21270 (TARGET_SCHED_ISSUE_RATE): Define.
21272 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21274 * ira-costs.c (find_costs_and_classes): Add missed
21275 ira_init_register_move_cost_if_necessary.
21277 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21280 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21282 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21285 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21286 to indicate if type is used for function return value. Warn ABI
21287 change if the vector mode isn't available for function return value.
21288 (ix86_function_arg_advance): Pass false to type_natural_mode.
21289 (ix86_function_arg): Likewise.
21290 (ix86_gimplify_va_arg): Likewise.
21291 (function_arg_32): Don't warn ABI change.
21292 (ix86_function_value): Pass true to type_natural_mode.
21293 (ix86_return_in_memory): Likewise.
21294 (ix86_struct_value_rtx): Removed.
21295 (TARGET_STRUCT_VALUE_RTX): Likewise.
21297 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21299 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21300 converting a conditional jump into a conditional return.
21302 2014-01-14 Richard Biener <rguenther@suse.de>
21304 PR tree-optimization/58921
21305 PR tree-optimization/59006
21306 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21307 hoisting invariant stmts.
21308 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21309 invariant loads on the preheader edge if possible.
21311 2014-01-14 Joey Ye <joey.ye@arm.com>
21313 * doc/plugin.texi (Building GCC plugins): Update to C++.
21315 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21317 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21318 (_mm_rcp28_round_ss): Ditto.
21319 (_mm_rsqrt28_round_sd): Ditto.
21320 (_mm_rsqrt28_round_ss): Ditto.
21321 (_mm_rcp28_sd): Ditto.
21322 (_mm_rcp28_ss): Ditto.
21323 (_mm_rsqrt28_sd): Ditto.
21324 (_mm_rsqrt28_ss): Ditto.
21325 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21326 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21327 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21328 (IX86_BUILTIN_RCP28SD): Ditto.
21329 (IX86_BUILTIN_RCP28SS): Ditto.
21330 (IX86_BUILTIN_RSQRT28SD): Ditto.
21331 (IX86_BUILTIN_RSQRT28SS): Ditto.
21332 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21333 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21334 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21335 (ix86_expand_special_args_builtin): Expand new FTYPE.
21336 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21337 (srcp14<mode>): Make insn unary.
21338 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21339 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21340 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21341 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21342 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21343 Fix rounding: make it SAE only.
21344 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21346 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21348 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21349 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21350 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21351 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21352 (round_saeonly_mask_scalar_operand4): Ditto.
21353 (round_saeonly_mask_scalar_op3): Ditto.
21354 (round_saeonly_mask_scalar_op4): Ditto.
21356 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21358 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21359 Implement -maltivec=be for vec_insert and vec_extract.
21361 2014-01-10 DJ Delorie <dj@redhat.com>
21363 * config/msp430/msp430.md (call_internal): Don't allow memory
21364 references with SP as the base register.
21365 (call_value_internal): Likewise.
21366 * config/msp430/constraints.md (Yc): New. For memory references
21367 that don't use SP as a base register.
21369 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21370 "an integer without a # prefix"
21371 * config/msp430/msp430.md (epilogue_helper): Use it.
21373 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21376 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21377 AVX512F gather builtins.
21378 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21379 on gather decls with INTEGER_TYPE masktype.
21380 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21381 directly into the builtin rather than hoisting it before loop.
21383 PR tree-optimization/59387
21384 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21385 (scev_const_prop): If folded_casts and type has undefined overflow,
21386 use force_gimple_operand instead of force_gimple_operand_gsi and
21387 for each added stmt if it is assign with
21388 arith_code_with_undefined_signed_overflow, call
21389 rewrite_to_defined_overflow.
21390 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21391 gimple-fold.h instead.
21392 (arith_code_with_undefined_signed_overflow,
21393 rewrite_to_defined_overflow): Moved to ...
21394 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21395 rewrite_to_defined_overflow): ... here. No longer static.
21396 Include gimplify-me.h.
21397 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21398 rewrite_to_defined_overflow): New prototypes.
21400 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21402 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21404 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21406 * builtins.c (get_object_alignment_2): Minor tweak.
21407 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21409 2014-01-13 Christian Bruel <christian.bruel@st.com>
21411 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21412 optimized non constant lengths.
21414 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21417 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21418 load as __atomic_load_N if possible.
21420 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21422 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21424 (rs6000_expand_builtin): Adjust call.
21426 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21429 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21430 * config/rs6000/rs6000.c: Include target-globals.h.
21431 (rs6000_set_current_function): Instead of doing target_reinit
21432 unconditionally, use save_target_globals_default_opts and
21433 restore_target_globals.
21435 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21437 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21438 (rs6000_expand_builtin): Handle mffs and mtfsf.
21439 (rs6000_init_builtins): Define mffs and mtfsf.
21440 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21441 (rs6000_mffs): New pattern.
21442 (rs6000_mtfsf): New pattern.
21444 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21446 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21447 Start narrowing with START. Apply candidate-use pair
21448 and check overall cost in narrowing.
21449 (iv_ca_prune): Pass new argument.
21451 2014-01-10 Jeff Law <law@redhat.com>
21453 PR middle-end/59743
21454 * ree.c (combine_reaching_defs): Ensure the defining statement
21455 occurs before the extension when optimizing extensions with
21456 different source and destination hard registers.
21458 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21461 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21462 vtables into the type inheritance graph.
21464 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21466 PR rtl-optimization/59754
21467 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21468 modes in the REGNO != REGNO case.
21470 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21472 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21474 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21476 PR tree-optimization/59745
21477 * tree-predcom.c (tree_predictive_commoning_loop): Call
21478 free_affine_expand_cache if giving up because components is NULL.
21480 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21481 GC in payload of target_globals struct instead of allocating them on
21482 the heap and the larger structs separately using GC.
21483 * target-globals.h (struct target_globals): Make regs, hard_regs,
21484 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21485 of GTY((skip)) and change type to void *.
21486 (reset_target_globals): Cast loads from those fields to corresponding
21489 2014-01-10 Steve Ellcey <sellcey@mips.com>
21492 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21493 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21494 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21496 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21499 * aarch64-modes.def (CC_Zmode): New flags mode.
21500 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21501 represents an equality.
21502 (aarch64_get_condition_code): Handle CC_Zmode.
21503 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21505 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21507 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21508 extraction in good case.
21510 2014-01-10 Richard Biener <rguenther@suse.de>
21512 PR tree-optimization/59374
21513 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21514 checking after SLP discovery. Mark stmts not participating
21515 in any SLP instance properly.
21517 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21519 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21520 when handling a SET rtx.
21522 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21524 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21525 (cortex-a57): Likewise.
21526 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21528 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21530 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21531 non-iwmmxt builtins.
21533 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21537 * ipa-devirt.c record_target_from_binfo): Take as argument
21538 stack of binfos and lookup matching one for virtual inheritance.
21539 (possible_polymorphic_call_targets_1): Update.
21541 2014-01-10 Huacai Chen <chenhc@lemote.com>
21543 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21544 kernel strings for Loongson-2E/2F/3A.
21546 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21548 PR middle-end/59670
21549 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21550 is_gimple_call before calling gimple_call_internal_p.
21552 2014-01-09 Steve Ellcey <sellcey@mips.com>
21554 * Makefile.in (TREE_FLOW_H): Remove.
21555 (TREE_SSA_H): Add file names from tree-flow.h.
21556 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21557 * tree.h: Remove tree-flow.h reference.
21558 * hash-table.h: Remove tree-flow.h reference.
21559 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21560 reference with tree-ssa-loop.h.
21562 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21564 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21565 default element-order behavior for -maltivec.
21566 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21567 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21568 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21569 when targeting big endian, at least for now.
21570 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21572 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21574 PR middle-end/47735
21575 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21576 var satisfies use_register_for_decl, just take into account type
21577 alignment, rather than decl alignment.
21579 PR tree-optimization/59622
21580 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21581 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21582 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21583 Don't devirtualize for inplace at all. For targets.length () == 1,
21584 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21586 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21588 * config/i386/i386.md (cpu): Remove the unused btver1.
21590 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21592 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21594 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21597 * tree-core.h (struct target_globals): New forward declaration.
21598 (struct tree_target_option): Add globals field.
21599 * tree.h (TREE_TARGET_GLOBALS): Define.
21600 (prepare_target_option_nodes_for_pch): New prototype.
21601 * target-globals.h (struct target_globals): Define even if
21602 !SWITCHABLE_TARGET.
21603 * tree.c (prepare_target_option_node_for_pch,
21604 prepare_target_option_nodes_for_pch): New functions.
21605 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21606 * config/i386/i386.c: Include target-globals.h.
21607 (ix86_set_current_function): Instead of doing target_reinit
21608 unconditionally, use save_target_globals_default_opts and
21609 restore_target_globals.
21611 2014-01-09 Richard Biener <rguenther@suse.de>
21613 PR tree-optimization/59715
21614 * tree-cfg.h (split_critical_edges): Declare.
21615 * tree-cfg.c (split_critical_edges): Export.
21616 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21618 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21620 * cfgexpand.c (expand_stack_vars): Optionally disable
21621 asan stack protection.
21622 (expand_used_vars): Likewise.
21623 (partition_stack_vars): Likewise.
21624 * asan.c (asan_emit_stack_protection): Optionally disable
21625 after return stack usage.
21626 (instrument_derefs): Optionally disable memory access instrumentation.
21627 (instrument_builtin_call): Likewise.
21628 (instrument_strlen_call): Likewise.
21629 (asan_protect_global): Optionally disable global variables protection.
21630 * doc/invoke.texi: Added doc for new options.
21631 * params.def: Added new options.
21632 * params.h: Likewise.
21634 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21636 PR rtl-optimization/59724
21637 * ifcvt.c (cond_exec_process_if_block): Don't call
21638 flow_find_head_matching_sequence with 0 longest_match.
21639 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21640 non-active insns if !stop_after.
21641 (try_head_merge_bb): Revert 2014-01-07 changes.
21643 2014-01-08 Jeff Law <law@redhat.com>
21645 * ree.c (get_sub_rtx): New function, extracted from...
21646 (merge_def_and_ext): Here.
21647 (combine_reaching_defs): Use get_sub_rtx.
21649 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21651 * cgraph.h (varpool_variable_node): Do not choke on null node.
21653 2014-01-08 Catherine Moore <clm@codesourcery.com>
21655 * config/mips/mips.md (simple_return): Attempt to use JRC
21657 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21659 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21661 PR rtl-optimization/59137
21662 * reorg.c (steal_delay_list_from_target): Call update_block for
21664 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21666 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21668 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21669 two duplicate entries.
21671 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21674 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21676 * config/mips/mips.c (mips_truncated_op_cost): New function.
21677 (mips_rtx_costs): Adjust test for BADDU.
21678 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21680 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21682 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21683 (*baddu_si): ...this new pattern.
21685 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21688 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21690 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21692 PR middle-end/57748
21693 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21695 (expand_expr, expand_normal): Adjust.
21696 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21697 inner_reference_p. Use inner_reference_p to expand inner references.
21698 (store_expr): Adjust.
21699 * cfgexpand.c (expand_call_stmt): Adjust.
21701 2014-01-08 Rong Xu <xur@google.com>
21703 * gcov-io.c (gcov_var): Move from gcov-io.h.
21704 (gcov_position): Ditto.
21705 (gcov_is_error): Ditto.
21706 (gcov_rewrite): Ditto.
21707 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21708 only part to libgcc/libgcov.h.
21710 2014-01-08 Marek Polacek <polacek@redhat.com>
21712 PR middle-end/59669
21713 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21715 2014-01-08 Marek Polacek <polacek@redhat.com>
21718 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21720 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21722 PR rtl-optimization/59649
21723 * stor-layout.c (get_mode_bounds): For BImode return
21724 0 and STORE_FLAG_VALUE.
21726 2014-01-08 Richard Biener <rguenther@suse.de>
21728 PR middle-end/59630
21729 * gimple.h (is_gimple_builtin_call): Remove.
21730 (gimple_builtin_call_types_compatible_p): New.
21731 (gimple_call_builtin_p): New overload.
21732 * gimple.c (is_gimple_builtin_call): Remove.
21733 (validate_call): Rename to ...
21734 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21735 check return types.
21736 (validate_type): New static function.
21737 (gimple_call_builtin_p): New overload and adjust.
21738 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21739 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21740 (gimple_fold_stmt_to_constant_1): Likewise.
21741 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21743 2014-01-08 Richard Biener <rguenther@suse.de>
21745 PR middle-end/59471
21746 * gimplify.c (gimplify_expr): Gimplify register-register type
21747 VIEW_CONVERT_EXPRs to separate stmts.
21749 2014-01-07 Jeff Law <law@redhat.com>
21751 PR middle-end/53623
21752 * ree.c (combine_set_extension): Handle case where source
21753 and destination registers in an extension insn are different.
21754 (combine_reaching_defs): Allow source and destination registers
21755 in extension to be different under limited circumstances.
21756 (add_removable_extension): Remove restriction that the
21757 source and destination registers in the extension are the same.
21758 (find_and_remove_re): Emit a copy from the extension's
21759 destination to its source after the defining insn if
21760 the source and destination registers are different.
21762 PR middle-end/59285
21763 * ifcvt.c (merge_if_block): If we are merging a block with more than
21764 one successor with a block with no successors, remove any BARRIER
21765 after the second block.
21767 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21769 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21771 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21774 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21775 for 14-bit register offsets when INT14_OK_STRICT is false.
21777 2014-01-07 Roland Stigge <stigge@antcom.de>
21778 Michael Meissner <meissner@linux.vnet.ibm.com>
21781 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21782 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21784 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21786 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21789 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21791 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21792 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21793 rtx is const0_rtx or not.
21795 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21798 * target-globals.c (save_target_globals): Remove this_fn_optab
21800 * toplev.c: Include optabs.h.
21801 (target_reinit): Temporarily restore the global options if another
21802 set of options are in force.
21804 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21806 PR rtl-optimization/58668
21807 * cfgcleanup.c (flow_find_cross_jump): Don't count
21808 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21809 to determine what is counted.
21810 (flow_find_head_matching_sequence): Use active_insn_p to determine
21812 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21814 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21815 determine what is counted.
21817 PR tree-optimization/59643
21818 * tree-predcom.c (split_data_refs_to_components): If one dr is
21819 read and one write, determine_offset fails and the write isn't
21820 in the bad component, just put the read into the bad component.
21822 2014-01-07 Mike Stump <mikestump@comcast.net>
21823 Jakub Jelinek <jakub@redhat.com>
21826 * tree-core.h (struct tree_optimization_option): Change optabs
21827 type from unsigned char * to void *.
21828 * optabs.c (init_tree_optimization_optabs): Adjust
21829 TREE_OPTIMIZATION_OPTABS initialization.
21831 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21834 * config/i386/i386.h (struct machine_function): Add
21835 no_drap_save_restore field.
21836 * config/i386/i386.c (ix86_save_reg): Use
21837 !cfun->machine->no_drap_save_restore instead of
21838 crtl->stack_realign_needed.
21839 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21840 this function clears frame_pointer_needed. Set
21841 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21842 and DRAP reg is needed.
21844 2014-01-06 Marek Polacek <polacek@redhat.com>
21847 * doc/implement-c.texi: Mention that other integer types are
21848 permitted as bit-field types in strictly conforming mode.
21850 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21852 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21853 is newly allocated.
21855 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21857 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21859 2014-01-06 Martin Jambor <mjambor@suse.cz>
21862 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21864 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21866 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21870 * var-tracking.c (add_stores): Preserve the value of the source even if
21871 we don't record the store.
21873 2014-01-06 Terry Guo <terry.guo@arm.com>
21875 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21877 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21880 * config/darwin.c (darwin_function_section): Adjust return values to
21881 correspond to optimisation changes made in r206070.
21883 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21885 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21886 from prefetch_block tune setting.
21887 (nocona_cost): Correct size of prefetch block to 64.
21889 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21891 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21892 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21893 used to save the static chain register in the computation of the offset
21894 from which the FP registers need to be restored.
21896 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21898 PR tree-optimization/59519
21899 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21900 ICE if get_current_def (current_new_name) is already non-NULL, as long
21901 as it is a phi result of some other phi in *new_exit_bb that has
21904 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21905 or vmovdqu* for misaligned_operand.
21906 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21907 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21908 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21909 aligned_mem for AVX512F masked aligned load and store builtins and for
21910 non-temporal moves.
21912 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21914 PR tree-optimization/59651
21915 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21916 Address range for negative step should be added by TYPE_SIZE_UNIT.
21918 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21920 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21921 overlapping registers also for registers other than the stack pointer.
21923 2014-01-03 Marek Polacek <polacek@redhat.com>
21926 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21929 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21932 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21935 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21936 (push splitter): Use <P:MODE_SIZE> instead of
21937 GET_MODE_SIZE (<P:MODE>mode).
21938 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21939 (mov -1, reg peephole2): Likewise.
21940 * config/i386/sse.md (*mov<mode>_internal,
21941 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21942 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21943 *<code><mode>3, *andnot<mode>3<mask_name>,
21944 <mask_codefor><code><mode>3<mask_name>): Likewise.
21945 * config/i386/subst.md (mask_mode512bit_condition,
21946 sd_mask_mode512bit_condition): Likewise.
21948 2014-01-02 Xinliang David Li <davidxl@google.com>
21950 PR tree-optimization/59303
21951 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21952 (dump_predicates): Better output format.
21953 (pred_equal_p): New function.
21954 (is_neq_relop_p): Ditto.
21955 (is_neq_zero_form_p): Ditto.
21956 (pred_expr_equal_p): Ditto.
21957 (pred_neg_p): Ditto.
21958 (simplify_pred): Ditto.
21959 (simplify_preds_2): Ditto.
21960 (simplify_preds_3): Ditto.
21961 (simplify_preds_4): Ditto.
21962 (simplify_preds): Ditto.
21963 (push_pred): Ditto.
21964 (push_to_worklist): Ditto.
21965 (get_pred_info_from_cmp): Ditto.
21966 (is_degenerated_phi): Ditto.
21967 (normalize_one_pred_1): Ditto.
21968 (normalize_one_pred): Ditto.
21969 (normalize_one_pred_chain): Ditto.
21970 (normalize_preds): Ditto.
21971 (normalize_cond_1): Remove function.
21972 (normalize_cond): Ditto.
21973 (is_gcond_subset_of): Ditto.
21974 (is_subset_of_any): Ditto.
21975 (is_or_set_subset_of): Ditto.
21976 (is_and_set_subset_of): Ditto.
21977 (is_norm_cond_subset_of): Ditto.
21978 (pred_chain_length_cmp): Ditto.
21979 (convert_control_dep_chain_into_preds): Type change.
21980 (find_predicates): Ditto.
21981 (find_def_preds): Ditto.
21982 (destroy_predicates_vecs): Ditto.
21983 (find_matching_predicates_in_rest_chains): Ditto.
21984 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21985 (is_pred_expr_subset): Ditto.
21986 (is_pred_chain_subset_of): Ditto.
21987 (is_included_in): Ditto.
21988 (is_superset_of): Ditto.
21990 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21992 Update copyright years.
21994 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21996 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
21997 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
21998 config/arc/arc.md, config/arc/arc.opt,
21999 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22000 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22001 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22002 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22003 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22004 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22005 vtable-verify.c, vtable-verify.h: Use the standard form for the
22008 2014-01-02 Tobias Burnus <burnus@net-b.de>
22010 * gcc.c (process_command): Update copyright notice dates.
22011 * gcov-dump.c: Ditto.
22013 * doc/cpp.texi: Bump @copying's copyright year.
22014 * doc/cppinternals.texi: Ditto.
22015 * doc/gcc.texi: Ditto.
22016 * doc/gccint.texi: Ditto.
22017 * doc/gcov.texi: Ditto.
22018 * doc/install.texi: Ditto.
22019 * doc/invoke.texi: Ditto.
22021 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22023 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22025 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22027 * config/i386/sse.md (*mov<mode>_internal): Guard
22028 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22030 PR rtl-optimization/59647
22031 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22032 new_rtx into UNSIGNED_FLOAT rtxes.
22034 Copyright (C) 2014 Free Software Foundation, Inc.
22036 Copying and distribution of this file, with or without modification,
22037 are permitted in any medium without royalty provided the copyright
22038 notice and this notice are preserved.