1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5 (struct mem_insn): Likewise for field "insn".
6 (reg_next_use): Strengthen from rtx * to rtx_insn **.
7 (reg_next_inc_use): Likewise.
8 (reg_next_def): Likewise.
9 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10 from rtx to rtx_insn *.
11 (move_insn_before): Likewise for param "next_insn" and local "insns".
12 (attempt_change): Likewise for local "mov_insn".
13 (try_merge): Likewise for param "last_insn".
14 (get_next_ref): Likewise for return type and local "insn".
15 Strengthen param "next_array" from rtx * to rtx_insn **.
16 (parse_add_or_inc): Strengthen param "insn" from rtx to
18 (find_inc): Likewise for locals "insn" and "other_insn" (three of
20 (merge_in_block): Likewise for locals "insn", "curr",
22 (pass_inc_dec::execute): Update allocations of the arrays to
23 reflect the stronger types.
25 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
28 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
29 from rtx to rtx_code_label *.
31 2014-08-21 David Malcolm <dmalcolm@redhat.com>
33 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
36 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
38 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
39 generated a warning and prevented bootstrapping the compiler.
41 2014-08-21 David Malcolm <dmalcolm@redhat.com>
43 * rtl.h (delete_related_insns): Strengthen return type from rtx to
46 * jump.c (delete_related_insns): Likewise, also for locals "next"
49 2014-08-21 David Malcolm <dmalcolm@redhat.com>
51 * genautomata.c (output_internal_insn_latency_func): When writing
52 the function "internal_insn_latency" to insn-automata.c,
53 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
54 allowing the optional guard function of (define_bypass) clauses to
55 expect a pair of rtx_insn *, rather than a pair of rtx.
56 (output_insn_latency_func): When writing the function
57 "insn_latency", add an "uncast_" prefix to params "insn" and
58 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
59 using checked casts from the params, thus enabling the above
60 change to the generated "internal_insn_latency" function.
62 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
64 PR tree-optimization/62091
65 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
66 handle correctly arrays.
67 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
69 (record_known_type): Walk into inner type.
70 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
71 condition on no type changes.
73 2014-08-21 David Malcolm <dmalcolm@redhat.com>
75 * genattrtab.c (write_attr_get): Within the generated get_attr_
76 functions, rename param "insn" to "uncast_insn" and reintroduce
77 "insn" as an local rtx_insn * using a checked cast, so that "insn"
78 is an rtx_insn * within insn-attrtab.c
80 2014-08-21 David Malcolm <dmalcolm@redhat.com>
82 * output.h (peephole): Strengthen return type from rtx to
84 * rtl.h (delete_for_peephole): Likewise for both params.
85 * genpeep.c (main): In generated "peephole" function, strengthen
86 return type and local "insn" from rtx to rtx_insn *. For now,
87 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
88 rtx_insn *, with a checked cast.
89 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
90 locals "insn", "next", "prev" from rtx to rtx_insn *.
92 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
94 PR tree-optimization/62112
95 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
96 * gimple-iterator.h (gsi_replace): Return bool.
97 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
98 moved from ref_may_alias_global_p.
99 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
101 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
102 (stmt_kills_ref_p_1): Rename...
103 (stmt_kills_ref_p): ... to this.
104 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
105 stmt_kills_ref_p): Declare.
106 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
107 Move the self-assignment case...
108 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
110 2014-08-21 David Malcolm <dmalcolm@redhat.com>
112 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
114 * emit-rtl.c (try_split): Likewise, also for locals "before" and
115 "after". For now, don't strengthen param "trial", which requires
116 adding checked casts when returning it.
118 2014-08-21 David Malcolm <dmalcolm@redhat.com>
120 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
121 "label" from rtx to rtx_code_label *. Strengthen param 1 of
122 "var_location" hook from rtx to rtx_insn *.
123 (debug_nothing_rtx): Delete in favor of...
124 (debug_nothing_rtx_code_label): New prototype.
125 (debug_nothing_rtx_rtx): Delete unused prototype.
126 (debug_nothing_rtx_insn): New prototype.
128 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
129 invoking debug_hooks->var_location (in two places, one in a NOTE
130 case of a switch statement, the other guarded by a CALL_P
131 conditional. Add checked cast to rtx_code_label * when invoking
132 debug_hooks->label (within CODE_LABEL case of switch statement).
134 * dbxout.c (dbx_debug_hooks): Update "label" hook from
135 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
136 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
137 (xcoff_debug_hooks): Likewise.
138 * debug.c (do_nothing_debug_hooks): Likewise.
139 (debug_nothing_rtx): Delete in favor of...
140 (debug_nothing_rtx_insn): New function.
141 (debug_nothing_rtx_rtx): Delete unused function.
142 (debug_nothing_rtx_code_label): New function.
143 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
144 debug_nothing_rtx to debug_nothing_rtx_code_label.
145 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
147 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
148 debug_nothing_rtx to debug_nothing_rtx_insn.
149 (sdbout_label): Strengthen param "insn" from rtx to
151 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
152 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
153 "var_location" hook from debug_nothing_rtx to
154 debug_nothing_rtx_insn.
156 2014-08-21 David Malcolm <dmalcolm@redhat.com>
158 * recog.h (insn_output_fn): Update this function typedef to match
159 the changes below to the generated output functions, strengthening
160 the 2nd param from rtx to rtx_insn *.
162 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
163 insn when invoking an output function, to match the new signature
164 of insn_output_fn with a stronger second param.
166 * genconditions.c (write_header): In the generated code for
167 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
168 to match the other changes in this patch.
170 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
171 the generated "gen_" functions from rtx to rtx_insn * within their
174 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
175 the subfunctions within the generated "recog_", "split", "peephole2"
176 function trees from rtx to rtx_insn *. For now, the top-level
177 generated functions ("recog", "split", "peephole2") continue to
178 take a plain rtx for "insn", to avoid introducing dependencies on
179 other patches. Rename this 2nd param from "insn" to
180 "uncast_insn", and reintroduce "insn" as a local variable of type
181 rtx_insn *, initialized at the top of the generated function with
182 a checked cast on "uncast_insn".
183 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
184 the generated "gen_" functions from rtx to rtx_insn * within their
187 * genoutput.c (process_template): Strengthen the 2nd param within
188 the generated "output_" functions "insn" from rtx to rtx_insn *.
190 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
192 * tree-profile.c (tree_profiling): Skip external functions
193 when doing coverage instrumentation.
194 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
196 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
198 * config/rs6000/altivec.h (vec_cpsgn): New #define.
199 (vec_mergee): Likewise.
200 (vec_mergeo): Likewise.
201 (vec_cntlz): Likewise.
202 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
203 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
204 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
206 * doc/extend.texi: Document various forms of vec_cpsgn,
207 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
208 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
209 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
210 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
211 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
213 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
215 * config/rs6000/rs6000.c (context.h): New include.
216 (tree-pass.h): Likewise.
217 (make_pass_analyze_swaps): New decl.
218 (rs6000_option_override): Register pass_analyze_swaps.
219 (swap_web_entry): New subsclass of web_entry_base (df.h).
220 (special_handling_values): New enum.
221 (union_defs): New function.
222 (union_uses): Likewise.
223 (insn_is_load_p): Likewise.
224 (insn_is_store_p): Likewise.
225 (insn_is_swap_p): Likewise.
226 (rtx_is_swappable_p): Likewise.
227 (insn_is_swappable_p): Likewise.
228 (chain_purpose): New enum.
229 (chain_contains_only_swaps): New function.
230 (mark_swaps_for_removal): Likewise.
231 (swap_const_vector_halves): Likewise.
232 (adjust_subreg_index): Likewise.
233 (permute_load): Likewise.
234 (permute_store): Likewise.
235 (handle_special_swappables): Likewise.
236 (replace_swap_with_copy): Likewise.
237 (dump_swap_insn_table): Likewise.
238 (rs6000_analyze_swaps): Likewise.
239 (pass_data_analyze_swaps): New pass_data.
240 (pass_analyze_swaps): New rtl_opt_pass.
241 (make_pass_analyze_swaps): New function.
242 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
244 2014-08-21 David Malcolm <dmalcolm@redhat.com>
246 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
247 type from rtx to rtx_insn *.
248 (create_copy_of_insn_rtx): Likewise.
249 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
250 (create_copy_of_insn_rtx): Likewise, also for local "res".
252 2014-08-21 David Malcolm <dmalcolm@redhat.com>
254 * rtl.h (find_first_parameter_load): Strengthen return type from
256 * rtlanal.c (find_first_parameter_load): Strengthen return type
257 from rtx to rtx_insn *. Add checked cast for now, to postpone
258 strengthening the params.
260 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
263 * diagnostic.c: Set default caret.
264 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
266 * diagnostic.h (struct diagnostic_context):
268 2014-08-21 David Malcolm <dmalcolm@redhat.com>
270 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
271 (sel_bb_head): Strengthen return type insn_t (currently just an
273 (sel_bb_end): Likewise.
275 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
276 (sel_bb_head): Strengthen return type and local "head" from
277 insn_t (currently just an rtx) to rtx_insn *.
278 (sel_bb_end): Likewise for return type.
279 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
282 2014-08-21 David Malcolm <dmalcolm@redhat.com>
284 * basic-block.h (get_last_bb_insn): Strengthen return type from
286 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
289 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
292 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
294 (diagnostic_report_diagnostic): ... from here.
295 * toplev.c (general_init): Move code to c-family.
297 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
299 * df.h (web_entry_base): Replace existing struct web_entry with a
300 new class web_entry_base with only the predecessor member.
301 (unionfind_root): Remove declaration and move to class member.
302 (unionfind_union): Remove declaration and move to friend
304 (union_defs): Remove declaration.
305 * web.c (web_entry_base::unionfind_root): Modify to be member
306 function and adjust accessors.
307 (unionfind_union): Modify to be friend function and adjust
309 (web_entry): New subclass of web_entry_base containing the reg
311 (union_match_dups): Modify for struct -> class changes.
312 (union_defs): Likewise.
313 (entry_register): Likewise.
314 (pass_web::execute): Likewise.
316 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
318 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
319 builtin define __VEC_ELEMENT_REG_ORDER__.
321 2014-08-20 Martin Jambor <mjambor@suse.cz>
322 Wei Mi <wmi@google.com>
326 * tree-ssa-operands.c (update_stmt_operands): Remove
327 MODIFIED_NORETURN_CALLS.
328 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
329 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
330 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
331 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
332 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
333 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
334 (gimple_call_set_ctrl_altering): New func.
335 (gimple_call_ctrl_altering_p): Ditto.
336 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
337 (make_blocks): Use gimple_call_initialize_ctrl_altering.
338 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
339 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
340 remove MODIFIED_NORETURN_CALLS.
342 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
344 * coverage.c (coverage_compute_profile_id): Return non-0;
345 also handle symbols with unique name.
346 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
348 2014-08-20 Steve Ellcey <sellcey@mips.com>
351 * doc/sourcebuild.texi (non_strict_align): New.
353 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
355 * cgraphunit.c (ipa_passes, compile): Reshedule
356 symtab_remove_unreachable_nodes passes; update comments.
357 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
358 TODO_remove_functions before the pass; the functions ought to be
360 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
361 TODO_remove_functions.
362 * passes.c (pass_data_early_local_passes): Do not schedule function
364 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
366 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
369 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
370 before setting the option.
371 * diagnostic.c (diagnostic_classify_diagnostic): Record
374 2014-08-20 Richard Biener <rguenther@suse.de>
377 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
378 to build uint{16,32,64}_type_node.
380 2014-08-20 Terry Guo <terry.guo@arm.com>
382 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
383 with immediate_operand.
385 2014-08-20 David Malcolm <dmalcolm@redhat.com>
387 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
388 "insn" from an as_a to a safe_as_a, for the case when "insn" is
391 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
393 PR preprocessor/51303
394 * incpath.c (remove_duplicates): Use cpp_warning.
396 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
400 * doc/options.texi (CPP): Document it.
401 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
402 * optc-gen.awk: Handle CPP.
403 * opth-gen.awk: Likewise.
405 2014-08-19 David Malcolm <dmalcolm@redhat.com>
407 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
409 (duplicate_insn_chain): Likewise.
410 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
411 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
412 checked cast for now (until we can strengthen the params in the
414 (duplicate_insn_chain): Likewise.
416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
418 * rtl.h (next_cc0_user): Strengthen return type from rtx to
420 (prev_cc0_setter): Likewise.
422 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
423 rtx_insn *, adding checked casts for now as necessary.
424 (prev_cc0_setter): Likewise.
426 2014-08-19 David Malcolm <dmalcolm@redhat.com>
428 * expr.h (emit_move_insn): Strengthen return type from rtx to
430 (emit_move_insn_1): Likewise.
431 (emit_move_complex_push): Likewise.
432 (emit_move_complex_parts): Likewise.
434 * expr.c (emit_move_via_integer): Strengthen return type from rtx
435 to rtx_insn *. Replace use of NULL_RTX with NULL when working
437 (emit_move_complex_push): Strengthen return type from rtx to
439 (emit_move_complex): Likewise, also for local "ret".
440 (emit_move_ccmode): Likewise.
441 (emit_move_multi_word): Likewise for return type and locals
443 (emit_move_insn_1): Likewise for return type and locals "result",
445 (emit_move_insn): Likewise for return type and local "last_insn".
446 (compress_float_constant): Likewise.
448 2014-08-19 David Malcolm <dmalcolm@redhat.com>
450 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
451 from rtx to rtx_insn *.
453 * rtl.h (emit_insn_before): Likewise.
454 (emit_insn_before_noloc): Likewise.
455 (emit_insn_before_setloc): Likewise.
456 (emit_jump_insn_before): Likewise.
457 (emit_jump_insn_before_noloc): Likewise.
458 (emit_jump_insn_before_setloc): Likewise.
459 (emit_call_insn_before): Likewise.
460 (emit_call_insn_before_noloc): Likewise.
461 (emit_call_insn_before_setloc): Likewise.
462 (emit_debug_insn_before): Likewise.
463 (emit_debug_insn_before_noloc): Likewise.
464 (emit_debug_insn_before_setloc): Likewise.
465 (emit_label_before): Likewise.
466 (emit_insn_after): Likewise.
467 (emit_insn_after_noloc): Likewise.
468 (emit_insn_after_setloc): Likewise.
469 (emit_jump_insn_after): Likewise.
470 (emit_jump_insn_after_noloc): Likewise.
471 (emit_jump_insn_after_setloc): Likewise.
472 (emit_call_insn_after): Likewise.
473 (emit_call_insn_after_noloc): Likewise.
474 (emit_call_insn_after_setloc): Likewise.
475 (emit_debug_insn_after): Likewise.
476 (emit_debug_insn_after_noloc): Likewise.
477 (emit_debug_insn_after_setloc): Likewise.
478 (emit_label_after): Likewise.
479 (emit_insn): Likewise.
480 (emit_debug_insn): Likewise.
481 (emit_jump_insn): Likewise.
482 (emit_call_insn): Likewise.
483 (emit_label): Likewise.
484 (gen_clobber): Likewise.
485 (emit_clobber): Likewise.
487 (emit_use): Likewise.
490 (emit_barrier_before): Strengthen return type from rtx to
492 (emit_barrier_after): Likewise.
493 (emit_barrier): Likewise.
495 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
496 from rtx to rtx_insn *. Add checked casts for now when converting
497 "last" from rtx to rtx_insn *.
498 (emit_insn_before_noloc): Likewise for return type.
499 (emit_jump_insn_before_noloc): Likewise.
500 (emit_call_insn_before_noloc): Likewise.
501 (emit_debug_insn_before_noloc): Likewise.
502 (emit_barrier_before): Strengthen return type and local "insn"
503 from rtx to rtx_barrier *.
504 (emit_label_before): Strengthen return type from rtx to
505 rtx_insn *. Add checked cast for now when returning param
506 (emit_pattern_after_noloc): Strengthen return type from rtx to
507 rtx_insn *. Add checked casts for now when converting "last" from
509 (emit_insn_after_noloc): Strengthen return type from rtx to
511 (emit_jump_insn_after_noloc): Likewise.
512 (emit_call_insn_after_noloc): Likewise.
513 (emit_debug_insn_after_noloc): Likewise.
514 (emit_barrier_after): Strengthen return type from rtx to
516 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
517 Add checked cast for now when converting "label" from rtx to
519 (emit_pattern_after_setloc): Strengthen return type from rtx to
520 rtx_insn *. Add checked casts for now when converting "last" from
522 (emit_pattern_after): Strengthen return type from rtx to
524 (emit_insn_after_setloc): Likewise.
525 (emit_insn_after): Likewise.
526 (emit_jump_insn_after_setloc): Likewise.
527 (emit_jump_insn_after): Likewise.
528 (emit_call_insn_after_setloc): Likewise.
529 (emit_call_insn_after): Likewise.
530 (emit_debug_insn_after_setloc): Likewise.
531 (emit_debug_insn_after): Likewise.
532 (emit_pattern_before_setloc): Likewise. Add checked casts for now
533 when converting "last" from rtx to rtx_insn *.
534 (emit_pattern_before): Strengthen return type from rtx to
536 (emit_insn_before_setloc): Likewise.
537 (emit_insn_before): Likewise.
538 (emit_jump_insn_before_setloc): Likewise.
539 (emit_jump_insn_before): Likewise.
540 (emit_call_insn_before_setloc): Likewise.
541 (emit_call_insn_before): Likewise.
542 (emit_debug_insn_before_setloc): Likewise.
543 (emit_debug_insn_before): Likewise.
544 (emit_insn): Strengthen return type and locals "last", "insn",
545 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
546 within cases where we know we have an insn.
547 (emit_debug_insn): Likewise.
548 (emit_jump_insn): Likewise.
549 (emit_call_insn): Strengthen return type and local "insn" from rtx
551 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
552 a checked cast to rtx_insn * for now on "label".
553 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
554 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
555 (emit_use): Likewise.
556 (gen_use): Likewise, also for local "seq".
557 (emit): Likewise for return type and local "insn".
558 (rtx_insn): Likewise for return type and local "new_rtx".
560 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
561 from rtx to rtx_barrier *.
563 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
564 changed return type from rtx to rtx_insn *, we must update
565 "emit_fn" type, and this in turn means updating...
566 (frame_insn): ...this. Strengthen return type from rtx to
567 rtx_insn *. Introduce a new local "insn" of the appropriate type.
569 2014-08-19 David Malcolm <dmalcolm@redhat.com>
571 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
572 rtx to rtx_jump_table_data *. Also for local.
573 * rtl.h (emit_jump_table_data): Likewise.
575 2014-08-19 David Malcolm <dmalcolm@redhat.com>
577 * basic-block.h (create_basic_block_structure): Strengthen third
578 param "bb_note" from rtx to rtx_note *.
579 * rtl.h (emit_note_before): Strengthen return type from rtx to
581 (emit_note_after): Likewise.
582 (emit_note): Likewise.
583 (emit_note_copy): Likewise. Also, strengthen param similarly.
584 * function.h (struct rtl_data): Strengthen field
585 "x_stack_check_probe_note" from rtx to rtx_note *.
587 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
588 from rtx to rtx_note *.
589 * cfgrtl.c (create_basic_block_structure): Strengthen third param
590 "bb_note" from rtx to rtx_note *.
591 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
592 when calling emit_note_copy.
593 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
595 (emit_note_after): Likewise.
596 (emit_note_before): Likewise.
597 (emit_note_copy): Likewise. Also, strengthen param similarly.
598 (emit_note): Likewise.
599 * except.c (emit_note_eh_region_end): Likewise for return type.
600 Strengthen local "next" from rtx to rtx_insn *.
601 (convert_to_eh_region_ranges): Strengthen local "note"
602 from rtx to rtx_note *.
603 * final.c (change_scope): Likewise.
604 (reemit_insn_block_notes): Likewise, for both locals named "note".
605 Also, strengthen local "insn" from rtx to rtx_insn *.
606 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
608 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
609 strengthen local "seq" from rtx to rtx_insn *.
610 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
612 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
614 (get_bb_note_from_pool): Strengthen return type from rtx to
616 (sel_create_basic_block): Strengthen local "new_bb_note" from
617 insn_t to rtx_note *.
618 * var-tracking.c (emit_note_insn_var_location): Strengthen local
619 "note" from rtx to rtx_note *.
620 (emit_notes_in_bb): Likewise.
622 2014-08-19 David Malcolm <dmalcolm@redhat.com>
624 * function.h (struct rtl_data): Strengthen field
625 "x_parm_birth_insn" from rtx to rtx_insn *.
626 * function.c (struct assign_parm_data_all): Strengthen fields
627 "first_conversion_insn" and "last_conversion_insn" from rtx to
630 2014-08-19 David Malcolm <dmalcolm@redhat.com>
632 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
633 to rtx_insn *; also for local "var_end_seq".
634 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
635 (maybe_cleanup_end_of_block): Likewise for param "last" and local
637 (expand_gimple_cond): Likewise for locals "last2" and "last".
638 (mark_transaction_restart_calls): Likewise for local "insn".
639 (expand_gimple_stmt): Likewise for return type and locals "last"
641 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
642 (avoid_complex_debug_insns): Likewise for param "insn".
643 (expand_debug_locations): Likewise for locals "insn", "last",
644 "prev_insn" and "insn2".
645 (expand_gimple_basic_block): Likewise for local "last".
646 (construct_exit_block): Likewise for locals "head", "end",
648 (pass_expand::execute): Likewise for locals "var_seq",
649 "var_ret_seq", "next".
651 2014-08-19 David Malcolm <dmalcolm@redhat.com>
653 * asan.h (asan_emit_stack_protection): Strengthen return type from
655 * asan.c (asan_emit_stack_protection): Likewise. Add local
656 "insns" to hold the return value.
658 2014-08-19 David Malcolm <dmalcolm@redhat.com>
660 * basic-block.h (bb_note): Strengthen return type from rtx to
662 * sched-int.h (bb_note): Likewise.
663 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
665 2014-08-19 David Malcolm <dmalcolm@redhat.com>
667 * rtl.h (make_insn_raw): Strengthen return type from rtx to
670 * emit-rtl.c (make_insn_raw): Strengthen return type and local
671 "insn" from rtx to rtx_insn *.
672 (make_debug_insn_raw): Strengthen return type from rtx to
673 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
674 (make_jump_insn_raw): Strengthen return type from rtx to
675 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
676 (make_call_insn_raw): Strengthen return type from rtx to
677 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
678 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
679 callback from rtx to rtx_insn *; likewise for local "insn" and
680 "next", adding a checked cast to rtx_insn in the relevant cases of
681 the switch statement.
682 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
683 callback from rtx to rtx_insn *.
684 (emit_pattern_after_setloc): Likewise.
685 (emit_pattern_after): Likewise.
686 (emit_pattern_before_setloc): Likewise.
687 (emit_pattern_before): Likewise.
689 2014-08-19 David Malcolm <dmalcolm@redhat.com>
691 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
693 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
694 accepting an rtx_insn *.
695 (last_call_insn): Strengthen return type from rtx to
698 2014-08-19 David Malcolm <dmalcolm@redhat.com>
700 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
701 "insns" from rtx to rtx_insn *.
702 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
703 locals "insn" and "prev".
705 2014-08-19 David Malcolm <dmalcolm@redhat.com>
707 * rtl.h (tablejump_p): Strengthen third param from rtx * to
708 rtx_jump_table_data **.
710 * cfgbuild.c (make_edges): Introduce local "table", using it in
711 place of "tmp" for jump table data.
712 (find_bb_boundaries): Strengthen local "table" from rtx to
713 rtx_jump_table_data *.
714 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
715 (outgoing_edges_match): Likewise for locals "table1" and "table2".
716 (try_crossjump_to_edge): Likewise.
717 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
719 (patch_jump_insn): Introduce local "table", using it in place of
720 "tmp" for jump table data.
721 (force_nonfallthru_and_redirect): Introduce local "table", so that
722 call to tablejump_p can receive an rtx_jump_table_data **. Update
723 logic around the call to overwrite "note" appropriately if
724 tablejump_p returns non-zero.
725 (get_last_bb_insn): Introduce local "table", using it in place of
726 "tmp" for jump table data.
727 * dwarf2cfi.c (create_trace_edges): Likewise.
729 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
730 from rtx to rtx_jump_table_data *.
731 (create_fix_barrier): Strengthen local "tmp" from rtx to
732 rtx_jump_table_data *.
733 (arm_reorg): Likewise for local "table".
735 * config/s390/s390.c (s390_chunkify_start): Likewise.
737 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
739 * jump.c (delete_related_insns): Strengthen local "lab_next" from
740 rtx to rtx_jump_table_data *.
742 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
743 rtx_jump_table_data **. Add a checked cast when writing through
744 the pointer: we know there that local "table" is non-NULL and that
745 JUMP_TABLE_DATA_P (table) holds.
746 (label_is_jump_target_p): Introduce local "table", using it in
747 place of "tmp" for jump table data.
749 2014-08-19 Marek Polacek <polacek@redhat.com>
752 * doc/invoke.texi: Document -Wbool-compare.
754 2014-08-19 David Malcolm <dmalcolm@redhat.com>
756 * rtl.h (entry_of_function): Strengthen return type from rtx to
758 * cfgrtl.c (entry_of_function): Likewise.
760 2014-08-19 David Malcolm <dmalcolm@redhat.com>
762 * emit-rtl.h (get_insns): Strengthen return type from rtx to
763 rtx_insn *, adding a checked cast for now.
764 (get_last_insn): Likewise.
766 2014-08-19 David Malcolm <dmalcolm@redhat.com>
768 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
771 * emit-rtl.c (gen_label_rtx): Likewise.
773 2014-08-19 David Malcolm <dmalcolm@redhat.com>
775 * rtl.h (previous_insn): Strengthen return type from rtx to
777 (next_insn): Likewise.
778 (prev_nonnote_insn): Likewise.
779 (prev_nonnote_insn_bb): Likewise.
780 (next_nonnote_insn): Likewise.
781 (next_nonnote_insn_bb): Likewise.
782 (prev_nondebug_insn): Likewise.
783 (next_nondebug_insn): Likewise.
784 (prev_nonnote_nondebug_insn): Likewise.
785 (next_nonnote_nondebug_insn): Likewise.
786 (prev_real_insn): Likewise.
787 (next_real_insn): Likewise.
788 (prev_active_insn): Likewise.
789 (next_active_insn): Likewise.
791 * emit-rtl.c (next_insn): Strengthen return type from rtx to
792 rtx_insn *, adding a checked cast.
793 (previous_insn): Likewise.
794 (next_nonnote_insn): Likewise.
795 (next_nonnote_insn_bb): Likewise.
796 (prev_nonnote_insn): Likewise.
797 (prev_nonnote_insn_bb): Likewise.
798 (next_nondebug_insn): Likewise.
799 (prev_nondebug_insn): Likewise.
800 (next_nonnote_nondebug_insn): Likewise.
801 (prev_nonnote_nondebug_insn): Likewise.
802 (next_real_insn): Likewise.
803 (prev_real_insn): Likewise.
804 (next_active_insn): Likewise.
805 (prev_active_insn): Likewise.
807 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
808 param "stepfunc" so that it returns an rtx_insn * rather than an
809 rtx, to track the change to prev_nonnote_insn_bb, which is the
810 only function this is called with.
811 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
813 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
815 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
820 * coretypes.h (class rtx_debug_insn): Add forward declaration.
821 (class rtx_nonjump_insn): Likewise.
822 (class rtx_jump_insn): Likewise.
823 (class rtx_call_insn): Likewise.
824 (class rtx_jump_table_data): Likewise.
825 (class rtx_barrier): Likewise.
826 (class rtx_code_label): Likewise.
827 (class rtx_note): Likewise.
829 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
830 adding the invariant DEBUG_INSN_P (X).
831 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
832 the invariant NONJUMP_INSN_P (X).
833 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
834 the invariant JUMP_P (X).
835 (class rtx_call_insn): New, a subclass of rtx_insn, adding
836 the invariant CALL_P (X).
837 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
838 invariant JUMP_TABLE_DATA_P (X).
839 (class rtx_barrier): New, a subclass of rtx_insn, adding the
840 invariant BARRIER_P (X).
841 (class rtx_code_label): New, a subclass of rtx_insn, adding
842 the invariant LABEL_P (X).
843 (class rtx_note): New, a subclass of rtx_insn, adding
844 the invariant NOTE_P(X).
845 (is_a_helper <rtx_debug_insn *>::test): New.
846 (is_a_helper <rtx_nonjump_insn *>::test): New.
847 (is_a_helper <rtx_jump_insn *>::test): New.
848 (is_a_helper <rtx_call_insn *>::test): New.
849 (is_a_helper <rtx_jump_table_data *>::test): New functions,
850 overloaded for both rtx and rtx_insn *.
851 (is_a_helper <rtx_barrier *>::test): New.
852 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
853 for both rtx and rtx_insn *.
854 (is_a_helper <rtx_note *>::test): New.
856 2014-08-19 Marek Polacek <polacek@redhat.com>
858 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
859 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
860 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
861 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
863 2014-08-19 David Malcolm <dmalcolm@redhat.com>
865 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
866 rtx_insn *. To help with transition, for now, convert from an
867 access macro into a pair of functions: BND_TO, returning an
869 (SET_BND_TO): New function, for use where BND_TO is used as an
872 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
874 (BND_TO): New function, adding a checked cast.
875 (SET_BND_TO): New function.
877 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
879 (compute_av_set_on_boundaries): Likewise.
881 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
883 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
884 destination if it is used in source.
885 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
886 (*popcount<mode>2_falsedep_1): Likewise.
888 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
891 * configure.ac: Set install_gold_as_default to no first.
892 * configure: Regenerated.
894 2014-08-19 David Malcolm <dmalcolm@redhat.com>
896 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
897 "note_list" field will eventually be an rtx_insn *. To help with
898 transition, for now, convert from an access macro into a pair of
899 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
900 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
903 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
904 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
906 * sel-sched-ir.c (init_bb): Likewise.
907 (sel_restore_notes): Likewise.
908 (move_bb_info): Likewise.
909 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
910 (SET_BB_NOTE_LIST): New function.
912 2014-08-19 David Malcolm <dmalcolm@redhat.com>
914 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
915 field will eventually be an rtx_insn *. To help with transition,
916 for now, convert from an access macro into a pair of functions:
917 VINSN_INSN_RTX, returning an rtx_insn *, and...
918 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
919 is used as an lvalue.
921 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
922 SET_VINSN_INSN_RTX where it's used as an lvalue.
923 (VINSN_INSN_RTX): New function.
924 (SET_VINSN_INSN_RTX): New function.
926 2014-08-19 David Malcolm <dmalcolm@redhat.com>
928 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
929 eventually be rtx_insn *, but to help with transition, for now,
930 convert from an access macro into a pair of functions: DEP_PRO
931 returning an rtx_insn * and...
932 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
933 lvalue, returning an rtx&.
934 (DEP_CON): Analogous changes to DEP_PRO above.
935 (SET_DEP_CON): Likewise.
937 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
938 an lvalue to SET_DEP_CON.
939 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
940 (sd_copy_back_deps): Likewise for DEP_CON.
941 (DEP_PRO): New function, adding a checked cast for now.
943 (SET_DEP_PRO): New function.
944 (SET_DEP_CON): Likewise.
946 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
948 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
949 (extra_options): Add i386/cygwin.opt.
950 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
951 (CPP_SPEC): Accept -pthread.
953 (GOMP_SELF_SPECS): Update comment.
954 * config/i386/cygwin.opt: New file for -pthread flag.
956 2014-08-19 David Malcolm <dmalcolm@redhat.com>
958 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
959 * df.h (DF_REF_INSN): Convert from a macro to a function, so
960 that we can return an rtx_insn *.
962 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
964 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
965 when building executables, not DLLs. Add --large-address-aware
966 under the same conditions.
967 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
968 when building executables, not DLLs. Add --large-address-aware
969 under the same conditions when using -m32.
971 * config/i386/cygwin-stdint.h: Throughout, make type
972 definitions dependent on target architecture, not host.
974 2014-08-19 David Malcolm <dmalcolm@redhat.com>
976 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
977 the return type from rtx to rtx_insn *, which will enable various
978 conversions in followup patches. For now this is is done by a
980 (NEXT_INSN): Likewise.
981 (SET_PREV_INSN): Convert to an inline function. This is intended
982 for use as an lvalue, and so returns an rtx& to allow in-place
984 (SET_NEXT_INSN): Likewise.
986 2014-07-08 Mark Wielaard <mjw@redhat.com>
989 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
991 2014-08-19 Marek Polacek <polacek@redhat.com>
994 * cgraphunit.c (handle_alias_pairs): Fix condition.
996 2014-08-19 Richard Biener <rguenther@suse.de>
998 * gimple-fold.c (fold_gimple_assign): Properly build a
999 null-pointer constant when devirtualizing addresses.
1001 2014-07-07 Mark Wielaard <mjw@redhat.com>
1003 * dwarf2out.c (decl_quals): New function.
1004 (modified_type_die): Take one cv_quals argument instead of two,
1005 one for const and one for volatile.
1006 (add_type_attribute): Likewise.
1007 (generic_parameter_die): Call add_type_attribute with one modifier
1009 (base_type_for_mode): Likewise.
1010 (add_bounds_info): Likewise.
1011 (add_subscript_info): Likewise.
1012 (gen_array_type_die): Likewise.
1013 (gen_descr_array_type_die): Likewise.
1014 (gen_entry_point_die): Likewise.
1015 (gen_enumeration_type_die): Likewise.
1016 (gen_formal_parameter_die): Likewise.
1017 (gen_subprogram_die): Likewise.
1018 (gen_variable_die): Likewise.
1019 (gen_const_die): Likewise.
1020 (gen_field_die): Likewise.
1021 (gen_pointer_type_die): Likewise.
1022 (gen_reference_type_die): Likewise.
1023 (gen_ptr_to_mbr_type_die): Likewise.
1024 (gen_inheritance_die): Likewise.
1025 (gen_subroutine_type_die): Likewise.
1026 (gen_typedef_die): Likewise.
1027 (force_type_die): Likewise.
1029 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1031 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1033 * configure: Regenerate.
1035 2014-08-19 Richard Biener <rguenther@suse.de>
1037 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1038 DECL_EXTERNALs in BLOCKs as non-references.
1039 * tree-streamer-out.c (streamer_write_chain): Likewise.
1041 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1042 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1043 Anna Tikhonova <anna.tikhonova@intel.com>
1044 Ilya Tocar <ilya.tocar@intel.com>
1045 Andrey Turetskiy <andrey.turetskiy@intel.com>
1046 Ilya Verbin <ilya.verbin@intel.com>
1047 Kirill Yukhin <kirill.yukhin@intel.com>
1048 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1050 * config/i386/sse.md
1051 (define_mode_iterator VI48_AVX512F): Delete.
1052 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1053 (define_mode_iterator VI2_AVX512VL): Ditto.
1054 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1057 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1059 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1060 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1061 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1062 with VI48_AVX512F_AVX512VL): New.
1063 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1064 with VI2_AVX512VL): Ditto.
1066 2014-08-19 Marek Polacek <polacek@redhat.com>
1068 * doc/invoke.texi: Document -Wc99-c11-compat.
1070 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1072 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1074 (SET_PREV_INSN): New macro, for use as an lvalue.
1075 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1077 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1078 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1079 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1080 (fixup_abnormal_edges): Likewise.
1081 (unlink_insn_chain): Likewise.
1082 (fixup_reorder_chain): Likewise.
1083 (cfg_layout_delete_block): Likewise.
1084 (cfg_layout_merge_blocks): Likewise.
1085 * combine.c (update_cfg_for_uncondjump): Likewise.
1086 * emit-rtl.c (link_insn_into_chain): Likewise.
1087 (remove_insn): Likewise.
1088 (delete_insns_since): Likewise.
1089 (reorder_insns_nobb): Likewise.
1090 (emit_insn_after_1): Likewise.
1091 * final.c (rest_of_clean_state): Likewise.
1092 (final_scan_insn): Likewise.
1093 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1094 * haifa-sched.c (concat_note_lists): Likewise.
1095 (remove_notes): Likewise.
1096 (restore_other_notes): Likewise.
1097 (move_insn): Likewise.
1098 (unlink_bb_notes): Likewise.
1099 (restore_bb_notes): Likewise.
1100 * jump.c (delete_for_peephole): Likewise.
1101 * optabs.c (emit_libcall_block_1): Likewise.
1102 * reorg.c (emit_delay_sequence): Likewise.
1103 (fill_simple_delay_slots): Likewise.
1104 * sel-sched-ir.c (sel_move_insn): Likewise.
1105 (sel_remove_insn): Likewise.
1106 (get_bb_note_from_pool): Likewise.
1107 * sel-sched.c (move_nop_to_previous_block): Likewise.
1109 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1110 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1111 (c6x_gen_bundles): Likewise.
1112 (hwloop_optimize): Likewise.
1113 * config/frv/frv.c (frv_function_prologue): Likewise.
1114 (frv_register_nop): Likewise.
1115 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1116 (ia64_reorg): Likewise.
1117 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1118 (mep_make_bundle): Likewise.
1119 (mep_bundle_insns): Likewise.
1120 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1121 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1122 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1124 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1126 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1127 return type from rtx to rtx_insn *.
1129 (BB_HEADER): Likewise.
1130 (BB_FOOTER): Likewise.
1131 (SET_BB_HEAD): Convert to a function.
1132 (SET_BB_END): Likewise.
1133 (SET_BB_HEADER): Likewise.
1134 (SET_BB_FOOTER): Likewise.
1136 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1137 Strengthen the return type from rtx to rtx_insn *. For now, this
1138 is done by adding a checked cast, but this will eventually
1139 become a field lookup.
1141 (BB_HEADER): Likewise.
1142 (BB_FOOTER): Likewise.
1143 (SET_BB_HEAD): New function, from macro of same name. This is
1144 intended for use as an lvalue, and so returns an rtx& to allow
1145 in-place modification.
1146 (SET_BB_END): Likewise.
1147 (SET_BB_HEADER): Likewise.
1148 (SET_BB_FOOTER): Likewise.
1150 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1152 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1154 (SET_BB_HEAD): New macro, for use as a lvalue.
1155 (BB_END, SET_BB_END): Likewise.
1156 (BB_HEADER, SET_BB_HEADER): Likewise.
1157 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1159 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1160 of BB_* macros into SET_BB_* macros.
1161 (fix_crossing_unconditional_branches): Likewise.
1162 * caller-save.c (save_call_clobbered_regs): Likewise.
1163 (insert_one_insn): Likewise.
1164 * cfgbuild.c (find_bb_boundaries): Likewise.
1165 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1166 (outgoing_edges_match): Likewise.
1167 (try_optimize_cfg): Likewise.
1168 * cfgexpand.c (expand_gimple_cond): Likewise.
1169 (expand_gimple_tailcall): Likewise.
1170 (expand_gimple_basic_block): Likewise.
1171 (construct_exit_block): Likewise.
1172 * cfgrtl.c (delete_insn): Likewise.
1173 (create_basic_block_structure): Likewise.
1174 (rtl_delete_block): Likewise.
1175 (rtl_split_block): Likewise.
1176 (emit_nop_for_unique_locus_between): Likewise.
1177 (rtl_merge_blocks): Likewise.
1178 (block_label): Likewise.
1179 (try_redirect_by_replacing_jump): Likewise.
1180 (emit_barrier_after_bb): Likewise.
1181 (fixup_abnormal_edges): Likewise.
1182 (record_effective_endpoints): Likewise.
1183 (relink_block_chain): Likewise.
1184 (fixup_reorder_chain): Likewise.
1185 (fixup_fallthru_exit_predecessor): Likewise.
1186 (cfg_layout_duplicate_bb): Likewise.
1187 (cfg_layout_split_block): Likewise.
1188 (cfg_layout_delete_block): Likewise.
1189 (cfg_layout_merge_blocks): Likewise.
1190 * combine.c (update_cfg_for_uncondjump): Likewise.
1191 * emit-rtl.c (add_insn_after): Likewise.
1192 (remove_insn): Likewise.
1193 (reorder_insns): Likewise.
1194 (emit_insn_after_1): Likewise.
1195 * haifa-sched.c (get_ebb_head_tail): Likewise.
1196 (restore_other_notes): Likewise.
1197 (move_insn): Likewise.
1198 (sched_extend_bb): Likewise.
1199 (fix_jump_move): Likewise.
1200 * ifcvt.c (noce_process_if_block): Likewise.
1201 (dead_or_predicable): Likewise.
1202 * ira.c (update_equiv_regs): Likewise.
1203 * reg-stack.c (change_stack): Likewise.
1204 * sel-sched-ir.c (sel_move_insn): Likewise.
1205 * sel-sched.c (move_nop_to_previous_block): Likewise.
1207 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1208 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1210 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1212 * rtl.h (for_each_rtx_in_insn): New function.
1213 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1215 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1217 * coretypes.h (class rtx_insn): Add forward declaration.
1219 * rtl.h: Include is-a.h.
1220 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1221 workaround to ensure gengtype knows inheritance is occurring,
1222 whilst continuing to use the pre-existing special-casing for
1224 (class rtx_insn): New subclass of rtx_def, adding the
1225 invariant that we're dealing with something we can sanely use
1226 INSN_UID, NEXT_INSN, PREV_INSN on.
1227 (is_a_helper <rtx_insn *>::test): New.
1228 (is_a_helper <const rtx_insn *>::test): New.
1230 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1232 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1234 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1236 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1239 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1241 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1242 to BUILT_IN_UNREACHABLE.
1244 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1247 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1249 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1250 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1251 (ffs<mode>2): Do not expand with tzcnt for
1252 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1253 (ffssi2_no_cmove): Ditto.
1254 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1255 (ctz<mode>2): New expander.
1256 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1257 (*ctz<mode>2_falsedep): New insn.
1258 (*ctz<mode>2): Rename from ctz<mode>2.
1259 (clz<mode>2_lzcnt): New expander.
1260 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1261 (*clz<mode>2_lzcnt_falsedep): New insn.
1262 (*clz<mode>2): Rename from ctz<mode>2.
1263 (popcount<mode>2): New expander.
1264 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1265 (*popcount<mode>2_falsedep): New insn.
1266 (*popcount<mode>2): Rename from ctz<mode>2.
1267 (*popcount<mode>2_cmp): Remove.
1268 (*popcountsi2_cmp_zext): Ditto.
1270 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1272 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1273 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1274 * config/microblaze/microblaze.h
1275 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1277 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1280 * configure.ac: Set install_gold_as_default to no for
1282 * configure: Regenerated.
1284 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1286 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1287 * config.in: Add undef of HAVE_isl.
1288 * configure: Regenerate.
1289 * configure.ac: Add definition of HAVE_isl.
1290 * graphite-blocking.c: Add checking of HAVE_isl.
1291 * graphite-dependences.c: Likewise.
1292 * graphite-interchange.c: Likewise.
1293 * graphite-isl-ast-to-gimple.c: Likewise.
1294 * graphite-optimize-isl.c: Likewise.
1295 * graphite-poly.c: Likewise.
1296 * graphite-scop-detection.c: Likewise.
1297 * graphite-sese-to-poly.c: Likewise.
1298 * graphite.c: Likewise.
1299 * toplev.c: Replace the checking of HAVE_cloog with the checking
1302 2014-08-18 Richard Biener <rguenther@suse.de>
1304 PR tree-optimization/62090
1305 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1306 (fold_builtin_3): Do not fold snprintf.
1307 (fold_builtin_4): Likewise.
1308 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1309 moved from builtins.c.
1310 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1311 (gimple_fold_builtin): Do not fold sprintf here.
1313 2014-08-18 Richard Biener <rguenther@suse.de>
1315 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1317 (maybe_canonicalize_mem_ref_addr): ... this function.
1318 (fold_stmt_1): Apply it here before all simplification.
1320 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1323 * cgraph.h (cgraph_node::create_indirect_edge): Add
1324 compute_indirect_info param.
1325 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1326 indirect_info only when it is required.
1327 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1328 indirect_info fore cloned indirect edge.
1330 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1331 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1332 Anna Tikhonova <anna.tikhonova@intel.com>
1333 Ilya Tocar <ilya.tocar@intel.com>
1334 Andrey Turetskiy <andrey.turetskiy@intel.com>
1335 Ilya Verbin <ilya.verbin@intel.com>
1336 Kirill Yukhin <kirill.yukhin@intel.com>
1337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1339 * config/i386/sse.md
1340 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1341 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1343 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1344 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1345 Anna Tikhonova <anna.tikhonova@intel.com>
1346 Ilya Tocar <ilya.tocar@intel.com>
1347 Andrey Turetskiy <andrey.turetskiy@intel.com>
1348 Ilya Verbin <ilya.verbin@intel.com>
1349 Kirill Yukhin <kirill.yukhin@intel.com>
1350 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1352 * config/i386/sse.md
1353 (define_mode_iterator VF1_AVX512VL): New.
1354 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1355 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1358 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1359 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1360 Anna Tikhonova <anna.tikhonova@intel.com>
1361 Ilya Tocar <ilya.tocar@intel.com>
1362 Andrey Turetskiy <andrey.turetskiy@intel.com>
1363 Ilya Verbin <ilya.verbin@intel.com>
1364 Kirill Yukhin <kirill.yukhin@intel.com>
1365 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1367 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1368 * config/i386/i386.md
1369 (define_code_iterator any_float): New.
1370 (define_code_attr floatsuffix): New.
1371 * config/i386/sse.md
1372 (define_mode_iterator VF1_128_256VL): New.
1373 (define_mode_iterator VF2_512_256VL): New.
1374 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1376 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1377 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1379 (define_mode_attr qq2pssuff): New.
1380 (define_mode_attr sselongvecmode): New.
1381 (define_mode_attr sselongvecmodelower): New.
1382 (define_mode_attr sseintvecmode3): New.
1383 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1385 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1386 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1387 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1388 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1390 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1391 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1392 Anna Tikhonova <anna.tikhonova@intel.com>
1393 Ilya Tocar <ilya.tocar@intel.com>
1394 Andrey Turetskiy <andrey.turetskiy@intel.com>
1395 Ilya Verbin <ilya.verbin@intel.com>
1396 Kirill Yukhin <kirill.yukhin@intel.com>
1397 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1399 * config/i386/sse.md
1400 (define_mode_iterator VF2_AVX512VL): New.
1401 (define_mode_attr sseintvecmode2): New.
1402 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1403 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1404 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1406 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1408 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1410 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1413 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1414 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1415 Anna Tikhonova <anna.tikhonova@intel.com>
1416 Ilya Tocar <ilya.tocar@intel.com>
1417 Andrey Turetskiy <andrey.turetskiy@intel.com>
1418 Ilya Verbin <ilya.verbin@intel.com>
1419 Kirill Yukhin <kirill.yukhin@intel.com>
1420 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1422 * config/i386/i386.md
1423 (define_insn "*movoi_internal_avx"): Add evex version.
1424 (define_insn "*movti_internal"): Ditto.
1426 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1427 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1428 Anna Tikhonova <anna.tikhonova@intel.com>
1429 Ilya Tocar <ilya.tocar@intel.com>
1430 Andrey Turetskiy <andrey.turetskiy@intel.com>
1431 Ilya Verbin <ilya.verbin@intel.com>
1432 Kirill Yukhin <kirill.yukhin@intel.com>
1433 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1435 * config/i386/i386.md
1436 (define_attr "isa"): Add avx512dq, noavx512dq.
1437 (define_attr "enabled"): Ditto.
1438 * config/i386/sse.md
1439 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1441 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1443 Anna Tikhonova <anna.tikhonova@intel.com>
1444 Ilya Tocar <ilya.tocar@intel.com>
1445 Andrey Turetskiy <andrey.turetskiy@intel.com>
1446 Ilya Verbin <ilya.verbin@intel.com>
1447 Kirill Yukhin <kirill.yukhin@intel.com>
1448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1450 * config/i386/i386.c
1451 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1452 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1453 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1454 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1455 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1456 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1457 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1458 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1459 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1460 * config/i386/sse.md
1461 (define_mode_iterator VMOVE): Allow V4TI mode.
1462 (define_mode_iterator V_AVX512VL): New.
1463 (define_mode_iterator V): New handling for AVX512VL.
1464 (define_insn "avx512f_load<mode>_mask"): Delete.
1465 (define_insn "<avx512>_load<mode>_mask"): New.
1466 (define_insn "avx512f_store<mode>_mask"): Delete.
1467 (define_insn "<avx512>_store<mode>_mask"): New.
1470 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1473 * asan.c (instrument_derefs): Fix bitfield check.
1475 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1477 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1478 * config/rs6000/htm.md (ttest): Remove clobber.
1479 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1480 (and_operand): Reformat.
1481 (and_2rld_operand): New predicate.
1482 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1484 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1485 parameter. Handle AND directly.
1486 (rs6000_split_logical_di): Remove last parameter.
1487 (rs6000_split_logical): Remove last parameter. Remove obsolete
1489 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1490 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1491 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1492 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1493 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1494 and 5 anonymous splitters): Delete.
1495 (and<mode>3): New expander.
1496 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1497 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1498 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1499 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1500 (floatdisf2_internal1): Remove clobbers.
1501 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1502 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1503 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1504 (and<mode>3 for BOOL_128): Remove clobber.
1505 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1506 rs6000_split_logical.
1507 (*bool<mode>3_internal for BOOL_128): Adjust call of
1508 rs6000_split_logical.
1509 (*boolc<mode>3_internal1 for BOOL_128,
1510 *boolc<mode>3_internal2 for BOOL_128,
1511 *boolcc<mode>3_internal1 for BOOL_128,
1512 *boolcc<mode>3_internal2 for BOOL_128,
1513 *eqv<mode>3_internal1 for BOOL_128,
1514 *eqv<mode>3_internal2 for BOOL_128,
1515 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1516 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1518 (*vec_reload_and_reg_<mptrsize>): Delete.
1520 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1522 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1523 and split, *boolccsi3_internal3 and split): Delete.
1524 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1525 *boolccdi3_internal3 and split): Delete.
1526 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1527 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1529 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1531 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1532 and split, *boolcsi3_internal3 and split): Delete.
1533 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1534 *boolcdi3_internal3 and split): Delete.
1535 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1537 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1539 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1540 <'u'>: Also support printing the low-order 16 bits.
1541 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1542 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1543 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1544 *booldi3_internal3 and split): Delete.
1545 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1546 *bool<mode>3_dot2): New.
1547 (two anonymous define_splits for non_logical_cint_operand): Merge.
1549 2014-08-17 Marek Polacek <polacek@redhat.com>
1550 Manuel López-Ibáñez <manu@gcc.gnu.org>
1553 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1554 (diagnostic_show_locus): Don't print caret diagnostic
1555 if a column is larger than the line_width.
1557 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1559 * common.opt: Make the ISL AST generator to be the main code generator
1562 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1564 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1566 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1569 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1571 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1572 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1573 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1575 * config/pa/pa.md (begin_brtab): Delete insn.
1576 (end_brtab): Likewise.
1578 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1580 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1582 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1584 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1585 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1586 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1587 (get_dynamic_type): Remove.
1588 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1589 (clear_speculation): Bring to ipa-deivrt.h
1590 (get_class_context): Rename to ...
1591 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1592 (contains_type_p): Update.
1593 (get_dynamic_type): Rename to ...
1594 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1595 (possible_polymorphic_call_targets): UPdate.
1596 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1597 * ipa-prop.c (ipa_analyze_call_uses): Update.
1599 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1601 * doc/invoke.texi (SH options): Document missing processor variant
1602 options. Remove references to Hitachi. Undocument deprecated mspace
1605 2014-08-15 Jason Merrill <jason@redhat.com>
1607 * tree.c (type_hash_canon): Uncomment assert.
1609 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1611 * input.h (in_system_header_at): Add comment.
1613 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1616 * diagnostic.c (build_message_string): Make it extern.
1617 * diagnostic.h (build_message_string): Make it extern.
1619 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1621 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1622 load/store from/to non-floating class pseudo.
1624 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1626 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1628 2014-08-15 Richard Biener <rguenther@suse.de>
1630 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1631 (get_constraint_for_ssa_var): Remove dead code.
1632 (get_constraint_for_1): Adjust.
1633 (find_what_var_points_to): Likewise.
1634 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1636 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1639 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1640 (_mm512_mask_cmpge_epu32_mask): Ditto.
1641 (_mm512_cmpge_epu32_mask): Ditto.
1642 (_mm512_mask_cmpge_epi64_mask): Ditto.
1643 (_mm512_cmpge_epi64_mask): Ditto.
1644 (_mm512_mask_cmpge_epu64_mask): Ditto.
1645 (_mm512_cmpge_epu64_mask): Ditto.
1646 (_mm512_mask_cmple_epi32_mask): Ditto.
1647 (_mm512_cmple_epi32_mask): Ditto.
1648 (_mm512_mask_cmple_epu32_mask): Ditto.
1649 (_mm512_cmple_epu32_mask): Ditto.
1650 (_mm512_mask_cmple_epi64_mask): Ditto.
1651 (_mm512_cmple_epi64_mask): Ditto.
1652 (_mm512_mask_cmple_epu64_mask): Ditto.
1653 (_mm512_cmple_epu64_mask): Ditto.
1654 (_mm512_mask_cmplt_epi32_mask): Ditto.
1655 (_mm512_cmplt_epi32_mask): Ditto.
1656 (_mm512_mask_cmplt_epu32_mask): Ditto.
1657 (_mm512_cmplt_epu32_mask): Ditto.
1658 (_mm512_mask_cmplt_epi64_mask): Ditto.
1659 (_mm512_cmplt_epi64_mask): Ditto.
1660 (_mm512_mask_cmplt_epu64_mask): Ditto.
1661 (_mm512_cmplt_epu64_mask): Ditto.
1662 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1663 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1664 (_mm512_cmpneq_epu32_mask): Ditto.
1665 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1666 (_mm512_cmpneq_epi64_mask): Ditto.
1667 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1668 (_mm512_cmpneq_epu64_mask): Ditto.
1669 (_mm512_castpd_ps): Ditto.
1670 (_mm512_castpd_si512): Ditto.
1671 (_mm512_castps_pd): Ditto.
1672 (_mm512_castps_si512): Ditto.
1673 (_mm512_castsi512_ps): Ditto.
1674 (_mm512_castsi512_pd): Ditto.
1675 (_mm512_castpd512_pd128): Ditto.
1676 (_mm512_castps512_ps128): Ditto.
1677 (_mm512_castsi512_si128): Ditto.
1678 (_mm512_castpd512_pd256): Ditto.
1679 (_mm512_castps512_ps256): Ditto.
1680 (_mm512_castsi512_si256): Ditto.
1681 (_mm512_castpd128_pd512): Ditto.
1682 (_mm512_castps128_ps512): Ditto.
1683 (_mm512_castsi128_si512): Ditto.
1684 (_mm512_castpd256_pd512): Ditto.
1685 (_mm512_castps256_ps512): Ditto.
1686 (_mm512_castsi256_si512): Ditto.
1687 (_mm512_cmpeq_epu32_mask): Ditto.
1688 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1689 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1690 (_mm512_cmpeq_epu64_mask): Ditto.
1691 (_mm512_cmpgt_epu32_mask): Ditto.
1692 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1693 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1694 (_mm512_cmpgt_epu64_mask): Ditto.
1695 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1696 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1697 * config/i386/i386.c (enum ix86_builtins): Add
1698 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1699 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1700 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1701 (bdesc_args): Add __builtin_ia32_si512_256si,
1702 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1703 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1704 __builtin_ia32_pd512_pd.
1705 (ix86_expand_args_builtin): Handle new FTYPEs.
1706 * config/i386/sse.md (castmode): Add 512-bit modes.
1707 (AVX512MODE2P): New.
1708 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1709 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1711 2014-08-15 Richard Biener <rguenther@suse.de>
1713 * fold-const.c (tree_swap_operands_p): Put all constants
1714 last, also strip sign-changing NOPs when considering further
1715 canonicalization. Canonicalize also when optimizing for size.
1717 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1719 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1720 one_match > zero_match case to just before simple_sequence.
1722 2014-08-15 Richard Biener <rguenther@suse.de>
1724 * data-streamer.h (streamer_string_index, string_for_index):
1726 * data-streamer-out.c (streamer_string_index): Make static.
1727 * data-streamer-in.c (string_for_index): Likewise.
1728 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1729 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1731 2014-08-15 Richard Biener <rguenther@suse.de>
1733 PR tree-optimization/62031
1734 * tree-data-ref.c (dr_analyze_indices): Do not set
1735 DR_UNCONSTRAINED_BASE.
1736 (dr_may_alias_p): All indirect accesses have to go the
1737 formerly DR_UNCONSTRAINED_BASE path.
1738 * tree-data-ref.h (struct indices): Remove
1739 unconstrained_base member.
1740 (DR_UNCONSTRAINED_BASE): Remove.
1742 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1745 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1746 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1747 in OMP_CLAUSE_MAP in some outer target region.
1749 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1751 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1752 name_expansion_cache.
1753 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1754 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1755 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1756 (difference_cannot_overflow_p): New parameter. Use affine
1757 expansion for equality check.
1758 (iv_elimination_compare_lt): Pass new argument.
1760 2014-08-14 DJ Delorie <dj@redhat.com>
1762 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1763 variables to the accumulator.
1765 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1766 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1767 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1770 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1771 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1772 (umulqihi3_virt): Likewise.
1773 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1774 (umulqihi3_real): Likewise.
1776 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1778 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1780 PR tree-optimization/62091
1781 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1782 function_entry_reached.
1783 (walk_aliased_vdefs): Clear it here.
1784 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1786 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1788 * ipa-utils.h (compare_virtual_tables): Declare.
1789 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1791 2014-08-14 Marek Polacek <polacek@redhat.com>
1794 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1795 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1797 2014-08-14 Tom de Vries <tom@codesourcery.com>
1799 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1801 2014-08-14 Tom de Vries <tom@codesourcery.com>
1803 PR rtl-optimization/62004
1804 PR rtl-optimization/62030
1805 * ifcvt.c (rtx_interchangeable_p): New function.
1806 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1807 * emit-rtl.h (mem_attrs_eq_p): Declare.
1809 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1811 * graphite-scop-detection.c:
1812 Add inclusion of cp-tree.h.
1813 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1814 in case they are pointers to object types
1816 2014-08-14 Richard Biener <rguenther@suse.de>
1818 * BASE-VER: Change to 5.0.0
1820 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1821 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1822 Anna Tikhonova <anna.tikhonova@intel.com>
1823 Ilya Tocar <ilya.tocar@intel.com>
1824 Andrey Turetskiy <andrey.turetskiy@intel.com>
1825 Ilya Verbin <ilya.verbin@intel.com>
1826 Kirill Yukhin <kirill.yukhin@intel.com>
1827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1829 * config/i386/sse.md (define_mode_attr avx512): New.
1830 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1832 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1833 (define_mode_attr ssse3_avx2): Ditto.
1834 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1835 (define_mode_attr avx2_avx512bw): New.
1836 (define_mode_attr ssedoublemodelower): New.
1837 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1839 (define_mode_attr ssebytemode): Allow V8DI modes.
1840 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1841 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1842 (define_mode_attr ssePSmode2): New.
1843 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1845 (define_mode_attr dbpsadbwmode): New.
1846 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1847 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1848 (vi8_sse4_1_avx2_avx512): New.
1849 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1851 (define_mode_attr blendbits): Move before its immediate use.
1853 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1855 Anna Tikhonova <anna.tikhonova@intel.com>
1856 Ilya Tocar <ilya.tocar@intel.com>
1857 Andrey Turetskiy <andrey.turetskiy@intel.com>
1858 Ilya Verbin <ilya.verbin@intel.com>
1859 Kirill Yukhin <kirill.yukhin@intel.com>
1860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1862 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1863 * config/i386/subst.md
1864 (define_mode_iterator SUBST_V): Update.
1865 (define_mode_iterator SUBST_A): Ditto.
1866 (define_subst_attr "mask_operand7"): New.
1867 (define_subst_attr "mask_operand10"): New.
1868 (define_subst_attr "mask_operand_arg34") : New.
1869 (define_subst_attr "mask_expand_op3"): New.
1870 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1871 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1872 (define_subst_attr "mask_avx512vl_condition"): New.
1873 (define_subst_attr "round_mask_operand4"): Ditto.
1874 (define_subst_attr "round_mask_scalar_op3"): Delete.
1875 (define_subst_attr "round_mask_op4"): New.
1876 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1878 (define_subst_attr "round_modev8sf_condition"): New.
1879 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1881 (define_subst_attr "round_saeonly_mask_operand4"): New.
1882 (define_subst_attr "round_saeonly_mask_op4"): New.
1883 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1884 V8DImode, V16SImode.
1885 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1886 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1887 (define_subst_attr "mask_expand4_args"): New.
1888 (define_subst "mask_expand4"): New.
1890 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1892 Anna Tikhonova <anna.tikhonova@intel.com>
1893 Ilya Tocar <ilya.tocar@intel.com>
1894 Andrey Turetskiy <andrey.turetskiy@intel.com>
1895 Ilya Verbin <ilya.verbin@intel.com>
1896 Kirill Yukhin <kirill.yukhin@intel.com>
1897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1899 * config/i386/i386.md
1900 (define_attr "isa"): Add avx512bw,noavx512bw.
1901 (define_attr "enabled"): Ditto.
1902 (define_split): Add 32/64-bit mask logic.
1903 (define_insn "*k<logic>qi"): New.
1904 (define_insn "*k<logic>hi"): New.
1905 (define_insn "*anddi_1"): Add mask version.
1906 (define_insn "*andsi_1"): Ditto.
1907 (define_insn "*<code><mode>_1"): Ditto.
1908 (define_insn "*<code>hi_1"): Ditto.
1909 (define_insn "kxnor<mode>"): New.
1910 (define_insn "kunpcksi"): New.
1911 (define_insn "kunpckdi"): New.
1912 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1913 (define_insn "*one_cmplhi2_1"): Ditto.
1915 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1916 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1917 Anna Tikhonova <anna.tikhonova@intel.com>
1918 Ilya Tocar <ilya.tocar@intel.com>
1919 Andrey Turetskiy <andrey.turetskiy@intel.com>
1920 Ilya Verbin <ilya.verbin@intel.com>
1921 Kirill Yukhin <kirill.yukhin@intel.com>
1922 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1924 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1927 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1928 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1929 Anna Tikhonova <anna.tikhonova@intel.com>
1930 Ilya Tocar <ilya.tocar@intel.com>
1931 Andrey Turetskiy <andrey.turetskiy@intel.com>
1932 Ilya Verbin <ilya.verbin@intel.com>
1933 Kirill Yukhin <kirill.yukhin@intel.com>
1934 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1936 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1938 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1939 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1940 xmm/ymm16+ when availble.
1941 * config/i386/i386.h
1942 (HARD_REGNO_NREGS): Add mask regs.
1943 (VALID_AVX512F_REG_MODE): Ditto.
1944 (VALID_AVX512F_REG_MODE) : Define.
1945 (VALID_MASK_AVX512BW_MODE): Ditto.
1946 (reg_class) (MASK_REG_P(X)): Define.
1947 * config/i386/i386.md: Do not split long moves with mask register,
1948 use kmovb if avx512bw is availible.
1949 (movdi_internal): Handle mask registers.
1951 2014-08-14 Richard Biener <rguenther@suse.de>
1953 PR tree-optimization/62081
1954 * tree-ssa-loop.c (pass_fix_loops): New pass.
1955 (pass_tree_loop::gate): Do not fixup loops here.
1956 * tree-pass.h (make_pass_fix_loops): Declare.
1957 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1959 2014-08-14 Richard Biener <rguenther@suse.de>
1961 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1962 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1964 2014-08-14 Richard Biener <rguenther@suse.de>
1966 PR tree-optimization/62090
1967 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1968 (fold_builtin_2): Do not fold sprintf.
1969 (fold_builtin_3): Likewise.
1970 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1971 moved from builtins.c.
1972 (gimple_fold_builtin): Fold sprintf.
1974 2014-08-14 Richard Biener <rguenther@suse.de>
1976 PR rtl-optimization/62079
1977 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1980 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1982 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1983 current_function_decl.
1985 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1987 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1988 cgraph_function_node to cgraph_node::function_symbol
1991 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1993 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1994 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1996 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1998 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2001 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2003 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2006 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2009 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2010 any registers that are used in mem_insn.
2012 2014-08-12 Steve Ellcey <sellcey@mips.com>
2014 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2016 2014-08-12 Steve Ellcey <sellcey@mips.com>
2018 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2019 (MULTILIB_DIRNAMES): Ditto.
2020 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2021 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2022 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2023 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2024 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2025 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2027 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2030 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2031 of __ARM_SIZEOF_WCHAR_T.
2033 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2036 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2037 Remove unnecessary attributes.
2039 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2041 * internal-fn.c (init_internal_fns): Fix off-by-one.
2043 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2044 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2045 Anna Tikhonova <anna.tikhonova@intel.com>
2046 Ilya Tocar <ilya.tocar@intel.com>
2047 Andrey Turetskiy <andrey.turetskiy@intel.com>
2048 Ilya Verbin <ilya.verbin@intel.com>
2049 Kirill Yukhin <kirill.yukhin@intel.com>
2050 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2052 * config/i386/i386.c (standard_sse_constant_opcode): Use
2053 vpxord/vpternlog if avx512 is availible.
2055 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2058 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2059 bitfields, that is when size doesn't match the size of type or the
2060 size of the constructor.
2062 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2064 * config/rs6000/constraints.md (wh constraint): New constraint,
2065 for FP registers if direct move is available.
2066 (wi constraint): New constraint, for VSX/FP registers that can
2067 handle 64-bit integers.
2068 (wj constraint): New constraint for VSX/FP registers that can
2069 handle 64-bit integers for direct moves.
2070 (wk constraint): New constraint for VSX/FP registers that can
2071 handle 64-bit doubles for direct moves.
2072 (wy constraint): Make documentation match implementation.
2074 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2075 scalar_in_vmx_p field to simplify tests of whether SFmode or
2076 DFmode can go in the Altivec registers.
2077 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2078 (rs6000_setup_reg_addr_masks): Likewise.
2079 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2080 field, and wh/wi/wj/wk constraints.
2081 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2082 the wh/wi/wj/wk constraints.
2083 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2084 upper registers, prefer VSX registers unless the operation is a
2085 memory operation with REG+OFFSET addressing.
2087 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2088 DImode. Change SFmode to use ww constraint instead of d to allow
2089 SF registers in the upper registers.
2092 (VSr5): Fix thinko in comment.
2093 (VSa): New mode attribute that is an alternative to wa, that
2094 returns the VSX register class that a mode can go in, but may not
2095 be the preferred register class.
2096 (VS_64dm): New mode attribute for appropriate register classes for
2097 referencing 64-bit elements of vectors for direct moves and normal
2099 (VS_64reg): Likewise.
2100 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2101 register allocator to only registers the data type can handle.
2102 (vsx_le_perm_load_<mode>): Likewise.
2103 (vsx_le_perm_store_<mode>): Likewise.
2104 (vsx_xxpermdi2_le_<mode>): Likewise.
2105 (vsx_xxpermdi4_le_<mode>): Likewise.
2106 (vsx_lxvd2x2_le_<mode>): Likewise.
2107 (vsx_lxvd2x4_le_<mode>): Likewise.
2108 (vsx_stxvd2x2_le_<mode>): Likewise.
2109 (vsx_add<mode>3): Likewise.
2110 (vsx_sub<mode>3): Likewise.
2111 (vsx_mul<mode>3): Likewise.
2112 (vsx_div<mode>3): Likewise.
2113 (vsx_tdiv<mode>3_internal): Likewise.
2114 (vsx_fre<mode>2): Likewise.
2115 (vsx_neg<mode>2): Likewise.
2116 (vsx_abs<mode>2): Likewise.
2117 (vsx_nabs<mode>2): Likewise.
2118 (vsx_smax<mode>3): Likewise.
2119 (vsx_smin<mode>3): Likewise.
2120 (vsx_sqrt<mode>2): Likewise.
2121 (vsx_rsqrte<mode>2): Likewise.
2122 (vsx_tsqrt<mode>2_internal): Likewise.
2123 (vsx_fms<mode>4): Likewise.
2124 (vsx_nfma<mode>4): Likewise.
2125 (vsx_eq<mode>): Likewise.
2126 (vsx_gt<mode>): Likewise.
2127 (vsx_ge<mode>): Likewise.
2128 (vsx_eq<mode>_p): Likewise.
2129 (vsx_gt<mode>_p): Likewise.
2130 (vsx_ge<mode>_p): Likewise.
2131 (vsx_xxsel<mode>): Likewise.
2132 (vsx_xxsel<mode>_uns): Likewise.
2133 (vsx_copysign<mode>3): Likewise.
2134 (vsx_float<VSi><mode>2): Likewise.
2135 (vsx_floatuns<VSi><mode>2): Likewise.
2136 (vsx_fix_trunc<mode><VSi>2): Likewise.
2137 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2138 (vsx_x<VSv>r<VSs>i): Likewise.
2139 (vsx_x<VSv>r<VSs>ic): Likewise.
2140 (vsx_btrunc<mode>2): Likewise.
2141 (vsx_b2trunc<mode>2): Likewise.
2142 (vsx_floor<mode>2): Likewise.
2143 (vsx_ceil<mode>2): Likewise.
2144 (vsx_<VS_spdp_insn>): Likewise.
2145 (vsx_xscvspdp): Likewise.
2146 (vsx_xvcvspuxds): Likewise.
2147 (vsx_float_fix_<mode>2): Likewise.
2148 (vsx_set_<mode>): Likewise.
2149 (vsx_extract_<mode>_internal1): Likewise.
2150 (vsx_extract_<mode>_internal2): Likewise.
2151 (vsx_extract_<mode>_load): Likewise.
2152 (vsx_extract_<mode>_store): Likewise.
2153 (vsx_splat_<mode>): Likewise.
2154 (vsx_xxspltw_<mode>): Likewise.
2155 (vsx_xxspltw_<mode>_direct): Likewise.
2156 (vsx_xxmrghw_<mode>): Likewise.
2157 (vsx_xxmrglw_<mode>): Likewise.
2158 (vsx_xxsldwi_<mode>): Likewise.
2159 (vsx_xscvdpspn): Tighten constraints to only use register classes
2161 (vsx_xscvspdpn): Likewise.
2162 (vsx_xscvdpspn_scalar): Likewise.
2164 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2165 wj, and wk constraints.
2166 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2167 general purpose registers.
2169 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2171 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2172 DImode instead of wm. Use wk constraint for direct move of DFmode
2174 (extendsidi2_lfiwax): Likewise.
2177 (movdi_internal64): Likewise.
2179 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2180 wk constraints. Make the wy constraint documentation match them
2183 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2185 Replacement of isl_int by isl_val
2186 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2187 (compute_bounds_for_param): use isl_val instead of isl_int
2188 (compute_bounds_for_loop): likewise
2189 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2190 (build_linearized_memory_access): use isl_val instead of isl_int
2191 (pdr_stride_in_loop): likewise
2192 * graphite-optimize-isl.c:
2193 (getPrevectorMap): use isl_val instead of isl_int
2195 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2196 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2197 (extern the_isl_ctx): declare
2198 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2199 (extract_affine_gmp): likewise
2201 (build_loop_iteration_domains): likewise
2202 (add_param_constraints): likewise
2204 2014-08-11 Richard Biener <rguenther@suse.de>
2206 PR tree-optimization/62075
2207 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2208 handle uses in patterns.
2210 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2211 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2212 Anna Tikhonova <anna.tikhonova@intel.com>
2213 Ilya Tocar <ilya.tocar@intel.com>
2214 Andrey Turetskiy <andrey.turetskiy@intel.com>
2215 Ilya Verbin <ilya.verbin@intel.com>
2216 Kirill Yukhin <kirill.yukhin@intel.com>
2217 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2219 * common/config/i386/i386-common.c
2220 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2221 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2222 (ix86_handle_option): Handle OPT_mavx512vl.
2223 * config/i386/cpuid.h (bit_AVX512VL): Define.
2224 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2225 set -mavx512vl accordingly.
2226 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2227 OPTION_MASK_ISA_AVX512VL.
2228 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2229 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2230 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2231 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2232 * config/i386/i386.h (TARGET_AVX512VL): Define.
2233 (TARGET_AVX512VL_P(x)): Ditto.
2234 * config/i386/i386.opt: Add mavx512vl.
2236 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2238 PR tree-optimization/62073
2239 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2242 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2244 Anna Tikhonova <anna.tikhonova@intel.com>
2245 Ilya Tocar <ilya.tocar@intel.com>
2246 Andrey Turetskiy <andrey.turetskiy@intel.com>
2247 Ilya Verbin <ilya.verbin@intel.com>
2248 Kirill Yukhin <kirill.yukhin@intel.com>
2249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2251 * common/config/i386/i386-common.c
2252 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2253 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2254 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2255 (ix86_handle_option): Handle OPT_mavx512bw.
2256 * config/i386/cpuid.h (bit_AVX512BW): Define.
2257 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2258 set -mavx512bw accordingly.
2259 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2260 OPTION_MASK_ISA_AVX512BW.
2261 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2262 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2263 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2264 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2265 * config/i386/i386.h (TARGET_AVX512BW): Define.
2266 (TARGET_AVX512BW_P(x)): Ditto.
2267 * config/i386/i386.opt: Add mavx512bw.
2269 2014-08-11 Richard Biener <rguenther@suse.de>
2271 PR tree-optimization/62070
2272 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2273 Remove SSA checking.
2275 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2277 * asan.c (asan_check_flags): New enum.
2278 (build_check_stmt_with_calls): Removed function.
2279 (build_check_stmt): Split inlining logic to
2280 asan_expand_check_ifn.
2281 (instrument_derefs): Rename parameter.
2282 (instrument_mem_region_access): Rename parameter.
2283 (instrument_strlen_call): Likewise.
2284 (asan_expand_check_ifn): New function.
2285 (asan_instrument): Remove old code.
2286 (pass_sanopt::execute): Change handling of
2287 asan-instrumentation-with-call-threshold.
2288 (asan_clear_shadow): Fix formatting.
2289 (asan_function_start): Likewise.
2290 (asan_emit_stack_protection): Likewise.
2291 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2293 * internal-fn.c (expand_ASAN_CHECK): New function.
2294 * internal-fn.def (ASAN_CHECK): New internal function.
2295 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2297 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2298 * tree.c: Small comment fix.
2300 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2302 * gimple.c (gimple_call_fnspec): Support internal functions.
2303 (gimple_call_return_flags): Use const.
2304 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2305 * internal-fn.def: Add fnspec information.
2306 * internal-fn.h (internal_fn_fnspec): New function.
2307 (init_internal_fns): Declare new function.
2308 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2309 (init_internal_fns): New function.
2310 * tree-core.h: Update macro call.
2311 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2313 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2315 * lto-streamer.h (struct output_block::symbol): Change from
2316 struct symtab_node to plain symtab_node.
2317 (referenced_from_this_partition_p): Change first parameter
2318 from struct symtab_node to plain symtab_node.
2320 2014-08-10 Marek Polacek <polacek@redhat.com>
2323 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2325 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2327 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2328 DECL correctly; do not give up on types in static storage.
2330 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2332 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2334 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2336 * graphite-isl-ast-to-gimple.c:
2337 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2339 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2341 2014-08-08 Guozhi Wei <carrot@google.com>
2343 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2345 2014-08-08 Cary Coutant <ccoutant@google.com>
2347 * dwarf2out.c (get_skeleton_type_unit): Remove.
2348 (output_skeleton_debug_sections): Remove skeleton type units.
2349 (output_comdat_type_unit): Likewise.
2350 (dwarf2out_finish): Likewise.
2352 2014-08-07 Yi Yang <ahyangyi@google.com>
2354 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2356 2014-08-08 Richard Biener <rguenther@suse.de>
2358 * lto-streamer.h (struct lto_input_block): Make it a class
2360 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2361 (struct lto_function_header, struct lto_simple_header,
2362 struct lto_simple_header_with_strings,
2363 struct lto_decl_header, struct lto_function_header): Make
2364 a simple inheritance hieararchy. Remove unused fields.
2365 (struct lto_asm_header): Remove.
2366 * lto-streamer-out.c (produce_asm): Adjust.
2367 (lto_output_toplevel_asms): Likewise.
2368 (produce_asm_for_decls): Likewise.
2369 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2370 * data-streamer-in.c (string_for_index): Likewise.
2371 * ipa-inline-analysis.c (inline_read_section): Likewise.
2372 * ipa-prop.c (ipa_prop_read_section): Likewise.
2373 (read_replacements_section): Likewise.
2374 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2375 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2376 (lto_destroy_simple_input_block): Likewise.
2377 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2378 (lto_input_toplevel_asms): Likewise.
2380 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2382 Anna Tikhonova <anna.tikhonova@intel.com>
2383 Ilya Tocar <ilya.tocar@intel.com>
2384 Andrey Turetskiy <andrey.turetskiy@intel.com>
2385 Ilya Verbin <ilya.verbin@intel.com>
2386 Kirill Yukhin <kirill.yukhin@intel.com>
2387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2389 * common/config/i386/i386-common.c
2390 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2391 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2392 (ix86_handle_option): Handle OPT_mavx512dq.
2393 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2394 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2395 set -mavx512dq accordingly.
2396 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2397 OPTION_MASK_ISA_AVX512DQ.
2398 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2399 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2400 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2401 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2402 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2403 (TARGET_AVX512DQ_P(x)): Ditto.
2404 * config/i386/i386.opt: Add mavx512dq.
2406 2014-08-08 Richard Biener <rguenther@suse.de>
2408 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2409 target_percent, target_percent_s): Export.
2410 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2411 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2412 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2413 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2414 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2415 Move to gimple-fold.c.
2416 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2418 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2419 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2420 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2421 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2422 (rewrite_call_expr_array): Remove.
2423 (fold_builtin_sprintf_chk): Likewise.
2424 (fold_builtin_snprintf_chk): Likewise.
2425 (fold_builtin_varargs): Remove handling of sprintf_chk,
2426 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2427 (gimple_fold_builtin_sprintf_chk): Remove.
2428 (gimple_fold_builtin_snprintf_chk): Likewise.
2429 (gimple_fold_builtin_varargs): Likewise.
2430 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2431 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2432 * gimple.c (gimple_seq_add_seq_without_update): New function.
2433 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2434 * gimple-fold.c: Include output.h.
2435 (gsi_replace_with_seq_vops): New function, split out from ...
2436 (gimplify_and_update_call_from_tree): ... here.
2437 (replace_call_with_value): New function.
2438 (replace_call_with_call_and_fold): Likewise.
2439 (var_decl_component_p): Moved from builtins.c.
2440 (gimple_fold_builtin_memory_op): Moved from builtins.c
2441 fold_builtin_memory_op and rewritten to GIMPLE.
2442 (gimple_fold_builtin_memset): Likewise.
2443 (gimple_fold_builtin_strcpy): Likewise.
2444 (gimple_fold_builtin_strncpy): Likewise.
2445 (gimple_fold_builtin_strcat): Likewise.
2446 (gimple_fold_builtin_fputs): Likewise.
2447 (gimple_fold_builtin_memory_chk): Likewise.
2448 (gimple_fold_builtin_stxcpy_chk): Likewise.
2449 (gimple_fold_builtin_stxncpy_chk): Likewise.
2450 (gimple_fold_builtin_snprintf_chk): Likewise.
2451 (gimple_fold_builtin_sprintf_chk): Likewise.
2452 (gimple_fold_builtin_strlen): New function.
2453 (gimple_fold_builtin_with_strlen): New function split out from
2454 gimple_fold_builtin.
2455 (gimple_fold_builtin): Change signature and handle
2456 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2457 here. Call gimple_fold_builtin_with_strlen.
2458 (gimple_fold_call): Adjust.
2460 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2462 * calls.c (precompute_arguments): Check
2463 promoted_for_signed_and_unsigned_p and set the promoted mode.
2464 (promoted_for_signed_and_unsigned_p): New function.
2465 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2466 and set the promoted mode.
2467 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2468 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2469 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2472 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2474 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2475 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2476 (expand_call): Likewise.
2477 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2478 to get promoted mode.
2479 * combine.c (record_promoted_value): Skip > 0 comparison with
2480 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2481 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2482 of SUBREG_PROMOTED_UNSIGNED_P.
2483 (convert_modes): Likewise.
2484 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2485 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2486 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2487 SUBREG_PROMOTED_UNSIGNED_SET.
2488 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2489 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2490 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2491 SUBREG_PROMOTED_SET.
2492 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2493 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2494 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2495 of SUBREG_PROMOTED_UNSIGNED_P.
2496 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2497 (SUBREG_PROMOTED_SET): New define.
2498 (SUBREG_PROMOTED_GET): Likewise.
2499 (SUBREG_PROMOTED_SIGN): Likewise.
2500 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2501 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2502 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2503 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2504 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2505 (nonzero_bits1): Skip > 0 comparison with the results as
2506 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2507 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2508 of !SUBREG_PROMOTED_UNSIGNED_P.
2509 * simplify-rtx.c (simplify_unary_operation_1): Use new
2510 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2511 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2512 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2513 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2515 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2517 * ipa-devirt.c: Include gimple-pretty-print.h
2518 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2520 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2521 (get_polymorphic_call_info): Fix return value
2522 (type_change_info): New sturcture based on ipa-prop
2524 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2525 based on ipa-prop variant.
2526 (extr_type_from_vtbl_ptr_store): New function
2527 based on ipa-prop variant.
2528 (record_known_type): New function.
2529 (check_stmt_for_type_change): New function.
2530 (get_dynamic_type): New function.
2531 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2532 * tree-ssa-pre.c: ipa-utils.h
2533 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2534 machinery; sanity check with ipa-prop devirtualization.
2535 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2538 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2540 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2541 * alias.c, cfgexpand.c, cgraphbuild.c,
2542 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2543 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2544 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2545 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2546 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2547 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2548 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2549 dse.c, except.c, gengtype.c, gimple-expr.c,
2550 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2551 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2552 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2553 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2554 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2555 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2557 * pointer-set.c: Remove file.
2558 * pointer-set.h: Remove file.
2560 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2562 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2563 * config/arm/types.md (f_sels, f_seld): Delete.
2565 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2567 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2568 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2569 (aarch64_movdi_<mode>high): Likewise.
2570 (aarch64_mov<mode>high_di): Likewise.
2571 (aarch64_movdi_<mode>low): Likewise.
2572 (aarch64_mov<mode>low_di): Likewise.
2573 (aarch64_movtilow_tilow): Likewise.
2574 Add comment explaining usage of fp,simd attributes and of
2575 TARGET_FLOAT and TARGET_SIMD.
2577 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2578 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2580 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2581 Use MOVN when one of the half-words is 0xffff.
2583 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2585 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2587 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2589 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2590 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2591 (rfs_str): String corresponding to RFS_* constants.
2592 (rank_for_schedule_stats_t): New typedef.
2593 (rank_for_schedule_stats): New static variable.
2594 (rfs_result): New static function.
2595 (rank_for_schedule): Track statistics for deciding heuristics.
2596 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2598 (ready_sort): Use them for debug printouts.
2599 (schedule_block): Init statistics state. Print statistics on
2600 rank_for_schedule decisions.
2602 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2604 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2606 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2608 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2611 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2613 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2614 function to not conflict.
2615 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2616 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2617 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2618 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2619 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2622 2014-08-07 Marek Polacek <polacek@redhat.com>
2624 * fold-const.c (fold_binary_loc): Add folding of
2625 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2627 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2629 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2630 instead of type size.
2631 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2633 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2635 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2636 (*thumb1_movqi_insn): Likewise.
2637 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2639 2014-08-07 Tom de Vries <tom@codesourcery.com>
2641 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2642 (glibc_2_11_or_earlier): Remove effective-target keywords.
2644 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2646 * config/arm/arm.c (bdesc_2arg): Fix typo.
2647 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2649 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2651 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2653 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2656 * haifa-sched.c (advance_one_cycle): Fix dump.
2657 (schedule_block): Don't advance cycle if we are already at the
2658 beginning of the cycle.
2660 2014-08-06 Martin Jambor <mjambor@suse.cz>
2663 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2665 2014-08-06 Richard Biener <rguenther@suse.de>
2668 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2670 (lto_input_tree): Pop SCCs here.
2672 2014-08-06 Richard Biener <rguenther@suse.de>
2674 PR tree-optimization/61320
2675 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2676 handle misaligned loads.
2678 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2680 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2681 (aarch64_expand_vec_perm_const): Check for dup before zip.
2683 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2685 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2686 CONST_INT_P instead of GET_CODE and compare.
2687 (aarch64_select_cc_mode): Likewise.
2688 (aarch64_print_operand): Likewise.
2689 (aarch64_rtx_costs): Likewise.
2690 (aarch64_simd_valid_immediate): Likewise.
2691 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2692 (aarch64_simd_emit_pair_result_insn): Likewise.
2694 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2696 * gdbhooks.py (find_gcc_source_dir): New helper function.
2697 (class PassNames): New class, locating and parsing passes.def.
2698 (class BreakOnPass): New command "break-on-pass".
2700 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2702 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2705 2014-08-05 Richard Biener <rguenther@suse.de>
2707 PR rtl-optimization/61672
2708 * emit-rtl.h (mem_attrs_eq_p): Declare.
2709 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2710 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2711 * cfgcleanup.c (merge_memattrs): Likewise.
2714 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2716 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2717 rather than singleton vectors.
2718 (vqdmlsls_lane_s32): Likewise.
2720 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2722 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2723 Use VSDQ_HSI mode iterator.
2724 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2725 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2726 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2727 Use BUILTIN_VDQHS macro.
2728 (sqrdmulh_laneq): Likewise.
2729 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2730 (vqdmlals_laneq_s32): Likewise.
2731 (vqdmlslh_laneq_s16): Likewise.
2732 (vqdmlsls_laneq_s32): Likewise.
2733 (vqdmulhh_laneq_s16): Likewise.
2734 (vqdmulhs_laneq_s32): Likewise.
2735 (vqrdmulhh_laneq_s16): Likewise.
2736 (vqrdmulhs_laneq_s32): Likewise.
2738 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2740 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2741 (vmuld_laneq_f64): Likewise.
2742 (vmuls_laneq_f32): Likewise.
2743 (vmul_n_f64): Likewise.
2744 (vmuld_lane_f64): Reimplement in C.
2745 (vmuls_lane_f32): Likewise.
2747 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2749 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2751 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2753 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2755 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2756 (rbitsi2): Likewise.
2757 (*arm_rev): Set predicable and predicable_short_it attributes.
2759 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2761 * convert.c (convert_to_integer): Guard transformation to lrint by
2764 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2766 * config/aarch64/aarch64-builtins.c
2767 (aarch64_simd_builtin_type_mode): Delete.
2768 (v8qi_UP): Remap to V8QImode.
2769 (v4hi_UP): Remap to V4HImode.
2770 (v2si_UP): Remap to V2SImode.
2771 (v2sf_UP): Remap to V2SFmode.
2772 (v1df_UP): Remap to V1DFmode.
2773 (di_UP): Remap to DImode.
2774 (df_UP): Remap to DFmode.
2775 (v16qi_UP):V16QImode.
2776 (v8hi_UP): Remap to V8HImode.
2777 (v4si_UP): Remap to V4SImode.
2778 (v4sf_UP): Remap to V4SFmode.
2779 (v2di_UP): Remap to V2DImode.
2780 (v2df_UP): Remap to V2DFmode.
2781 (ti_UP): Remap to TImode.
2782 (ei_UP): Remap to EImode.
2783 (oi_UP): Remap to OImode.
2784 (ci_UP): Map to CImode.
2785 (xi_UP): Remap to XImode.
2786 (si_UP): Remap to SImode.
2787 (sf_UP): Remap to SFmode.
2788 (hi_UP): Remap to HImode.
2789 (qi_UP): Remap to QImode.
2790 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2791 (VAR1): Build builtin name.
2792 (aarch64_init_simd_builtins): Remove dead code.
2794 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2796 * graphite-isl-ast-to-gimple.c:
2797 (set_options): New function.
2798 (scop_to_isl_ast): Add calling of set_options.
2800 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2802 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2803 (analyze_iv_to_split_insn): Don't initialize them.
2804 (get_ivts_expr): Removed.
2805 (allocate_basic_variable, insert_base_initialization): Use
2806 SET_SRC instead of *get_ivts_expr.
2807 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2809 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2811 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2812 (translate_isl_ast_for_loop): Add checking of the
2813 flag_loop_parallelize_all.
2814 (ast_build_before_for): New function.
2815 (scop_to_isl_ast): Add checking of the
2816 flag_loop_parallelize_all.
2817 * graphite-dependences.c: Move the defenition of the
2818 scop_get_dependences from graphite-optimize-isl.c to this file.
2819 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2820 (carries_deps): Add checking of the x's value.
2821 * graphite-optimize-isl.c: Move the defenition of the
2822 scop_get_dependences to graphite-dependences.c.
2823 * graphite-poly.h: Add declarations of scop_get_dependences
2826 2014-08-04 Rohit <rohitarulraj@freescale.com>
2829 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2831 (alt_reg_names): Likewise.
2832 (rs6000_dwarf_register_span): For SPE high registers, replace
2833 dwarf register numbers with GCC hard register numbers.
2834 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2835 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2836 register number for the corresponding GCC hard register number.
2837 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2838 newly added GCC hard register numbers for SPE high registers.
2839 (DWARF_FRAME_REGISTERS): Likewise.
2840 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2841 (DWARF_FRAME_REGNUM): Likewise.
2842 (FIXED_REGISTERS): Likewise.
2843 (CALL_USED_REGISTERS): Likewise.
2844 (CALL_REALLY_USED_REGISTERS): Likewise.
2845 (REG_ALLOC_ORDER): Likewise.
2846 (enum reg_class): Likewise.
2847 (REG_CLASS_NAMES): Likewise.
2848 (REG_CLASS_CONTENTS): Likewise.
2849 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2851 2014-08-04 Richard Biener <rguenther@suse.de>
2853 * gimple-fold.h (gimple_fold_builtin): Remove.
2854 * gimple-fold.c (gimple_fold_builtin): Make static.
2855 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2856 fold_stmt, not gimple_fold_builtin.
2858 2014-08-04 Martin Liska <mliska@suse.cz>
2860 * cgraph.h (csi_end_p): Removed.
2861 (csi_next): Likewise.
2862 (csi_node): Likewise.
2863 (csi_start): Likewise.
2864 (cgraph_node_in_set_p): Likewise.
2865 (cgraph_node_set_size): Likewise.
2866 (vsi_end_p): Likewise.
2867 (vsi_next): Likewise.
2868 (vsi_node): Likewise.
2869 (vsi_start): Likewise.
2870 (varpool_node_set_size): Likewise.
2871 (cgraph_node_set_nonempty_p): Likewise.
2872 (varpool_node_set_nonempty_p): Likewise.
2873 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2875 * ipa-inline-transform.c: Likewise.
2876 * ipa-utils.c (cgraph_node_set_new): Removed.
2877 (cgraph_node_set_add): Likewise.
2878 (cgraph_node_set_remove): Likewise.
2879 (cgraph_node_set_find): Likewise.
2880 (dump_cgraph_node_set): Likewise.
2881 (debug_cgraph_node_set): Likewise.
2882 (free_cgraph_node_set): Likewise.
2883 (varpool_node_set_new): Likewise.
2884 (varpool_node_set_add): Likewise.
2885 (varpool_node_set_remove): Likewise.
2886 (varpool_node_set_find): Likewise.
2887 (dump_varpool_node_set): Likewise.
2888 (free_varpool_node_set): Likewise.
2889 (debug_varpool_node_set): Likewise.
2890 * tree-emutls.c (struct tls_var_data):
2891 (emutls_index): Removed.
2892 (emutls_decl): Likewise.
2893 (gen_emutls_addr): Function implementation uses newly added
2894 hash_map<varpool_node *, tls_var_data>.
2895 (clear_access_vars): Likewise.
2896 (create_emultls_var): Likewise.
2897 (ipa_lower_emutls): Likewise.
2898 (reset_access): New function.
2900 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2902 * config/i386/i386.c (ix86_option_override_internal): Add
2903 PTA_RDRND and PTA_MOVBE for bdver4.
2905 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2906 James Greenhalgh <james.greenhalgh@arm.com>
2908 * doc/md.texi (clrsb): Document.
2909 (clz): Change reference to x into operand 1.
2911 (popcount): Likewise.
2913 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2916 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2917 move to subtarget in serial version if result is ignored.
2919 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2920 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2922 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2923 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2924 (sched_analyze_insn): Update use of try_group_insn to
2925 sched_macro_fuse_insns.
2926 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2927 arguments that are not conditional jumps.
2929 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2931 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2932 family information. Handle BTVER2 cpu with cpuid family value.
2934 2014-08-04 Tom de Vries <tom@codesourcery.com>
2936 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2937 (glibc_2_11_or_earlier): Document effective-target keywords.
2939 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2941 * ipa-devirt.c (odr_type_warn_count): Add type.
2942 (possible_polymorphic_call_targets): Set it.
2943 (ipa_devirt): Use it.
2945 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2947 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2949 * ipa-devirt.c: Include hash-map.h
2950 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2951 (clear_speculation): Break out of ...
2952 (get_class_context): ... here; speed up handling obviously useless
2954 (odr_type_warn_count, decl_warn_count): New structures.
2955 (final_warning_record): New structure.
2956 (final_warning_records): New static variable.
2957 (possible_polymorphic_call_targets): Cleanup handling of
2958 speculative info; do not build speculation when user do not care;
2959 record info about warnings when asked for.
2960 (add_decl_warning): New function.
2961 (type_warning_cmp): New function.
2962 (decl_warning_cmp): New function.
2963 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2964 (gate): Enable pass when warnings are requested.
2965 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2968 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2970 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2972 (hash_map::remove): New method.
2973 (hash_map::traverse): New method.
2974 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2975 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2976 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2977 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2978 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2979 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2982 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2984 * hash-set.h: new File.
2985 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2986 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2987 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2988 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2989 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2990 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2991 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2992 varpool.c: Use hash_set instead of pointer_set.
2994 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2996 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2998 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3000 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3001 for frame access when strict_p is false.
3003 2014-08-01 Renlin Li <renlin.li@arm.com>
3004 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3006 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3007 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3008 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3010 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3012 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3013 aarch64_mem_pair_offset.
3015 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3017 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3019 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3020 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3022 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3024 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3026 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3029 * cgraphunit.c (analyze_functions): Use get_create rather than get
3030 for decls which are clones of abstract functions.
3032 2014-08-01 Martin Liska <mliska@suse.cz>
3034 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3035 * ipa-prop.h (count_formal_params): Global function created from static.
3036 * ipa-prop.c (count_formal_params): Likewise.
3037 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3038 profiles for semantically equivalent functions.
3039 * passes.c (do_per_function): If we load body of a function
3040 during WPA, this condition should behave same.
3041 * varpool.c (ctor_for_folding): More tolerant assert for variable
3042 aliases created during WPA.
3044 2014-08-01 Martin Liska <mliska@suse.cz>
3046 * doc/invoke.texi (Options That Control Optimization): Documentation
3047 for -foptimize-strlen introduced. Optimization levels default options
3050 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3052 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3053 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3054 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3056 * stor-layout.h (min_align_of_type): New prototype.
3057 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3058 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3060 * ubsan.c: Include builtins.h.
3061 (ubsan_expand_bounds_ifn): Change return type to bool,
3063 (ubsan_expand_null_ifn): Change return type to bool, change
3064 argument to gimple_stmt_iterator *. Handle both null and alignment
3065 sanitization, take type from ckind argument's type rather than
3067 (instrument_member_call): Removed.
3068 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3069 Handle both null and alignment sanitization, don't say whole
3070 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3071 call instead of 2 argument.
3072 (instrument_null): Adjust instrument_mem_ref caller. Don't
3073 instrument calls here.
3074 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3076 * stor-layout.c (min_align_of_type): New function.
3077 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3078 Or it into SANITIZE_UNDEFINED.
3079 * doc/invoke.texi (-fsanitize=alignment): Document.
3081 2014-07-31 Andi Kleen <ak@linux.intel.com>
3083 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3085 2014-07-31 Andi Kleen <ak@linux.intel.com>
3087 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3089 (vn_reference_compute_hash): Dito.
3090 (vn_nary_op_compute_hash): Dito.
3091 (vn_phi_compute_hash): Dito.
3092 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3094 2014-07-31 Andi Kleen <ak@linux.intel.com>
3096 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3097 Rename to inchash:add_expr_commutative. Convert to inchash.
3098 (iterative_hash_hashable_expr): Rename to
3099 inchash:add_hashable_expr. Convert to inchash.
3100 (avail_expr_hash): Dito.
3102 2014-07-31 Andi Kleen <ak@linux.intel.com>
3104 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3107 2014-07-31 Andi Kleen <ak@linux.intel.com>
3109 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3111 2014-07-31 Andi Kleen <ak@linux.intel.com>
3113 * Makefile.in (OBJS): Add rtlhash.o
3114 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3115 (loc_checksum): Dito.
3116 (loc_checksum_ordered): Dito.
3117 (hash_loc_operands): Dito.
3119 (hash_loc_list): Dito.
3120 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3121 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3122 * rtlhash.c: New file.
3123 * rtlhash.h: New file.
3125 2014-07-31 Andi Kleen <ak@linux.intel.com>
3127 * inchash.h (inchash): Change inchash class to namespace.
3128 (class hash): ... Rename from inchash.
3129 (add_object): Move from macro to class template.
3130 * lto-streamer-out.c (hash_tree): Change inchash
3132 * tree.c (build_type_attribute_qual_variant): Dito.
3133 (type_hash_list): Dito.
3134 (attribute_hash_list): Dito.
3135 (iterative_hstate_expr): Rename to inchash::add_expr
3136 (build_range_type_1): Change inchash to inchash::hash
3137 and use hash::add_expr.
3138 (build_array_type_1): Dito.
3139 (build_function_type): Dito
3140 (build_method_type_directly): Dito.
3141 (build_offset_type): Dito.
3142 (build_complex_type): Dito.
3143 (make_vector_type): Dito.
3144 * tree.h (iterative_hash_expr): Dito.
3146 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3148 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3150 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3152 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3153 correct alphabetical position.
3154 (vpaddd_f64): Rewrite using builtins.
3155 (vpaddd_s64): Move to correct alphabetical position.
3158 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3161 * config/sh/sh.c (sh_legitimate_address_p,
3162 sh_legitimize_reload_address): Handle reg+reg address modes when
3163 ALLOW_INDEXED_ADDRESS is false.
3164 * config/sh/predicates.md (general_movsrc_operand,
3165 general_movdst_operand): Likewise.
3167 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3169 * config/aarch64/aarch64-builtins.c
3170 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3173 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3175 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3176 the generated mask based on BYTES_BIG_ENDIAN.
3177 (aarch64_simd_check_vect_par_cnst_half): New.
3178 * config/aarch64/aarch64-protos.h
3179 (aarch64_simd_check_vect_par_cnst_half): New.
3180 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3181 the check out to aarch64_simd_check_vect_par_cnst_half.
3182 (vect_par_cnst_lo_half): Likewise.
3183 * config/aarch64/aarch64-simd.md
3184 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3185 (move_hi_quad_<mode>): Always generate a low mask.
3187 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3189 * doc/invoke.texi (AVR Options): Add documentation about
3190 __AVR_DEVICE_NAME__ built-in macro.
3192 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3195 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3196 constraints are satisfied.
3197 (<shift>di3_neon): Likewise.
3199 2014-07-31 Richard Biener <rguenther@suse.de>
3201 PR tree-optimization/61964
3202 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3203 by structural equality.
3205 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3207 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3208 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3209 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3211 * gcc.c (sanitize_spec_function): Support new option.
3212 (SANITIZER_SPEC): Remove now redundant check.
3213 * opts.c (common_handle_option): Support new option.
3214 (finish_options): Check for incompatibilities.
3215 * toplev.c (process_options): Split userspace-specific checks.
3217 2014-07-31 Richard Biener <rguenther@suse.de>
3219 * lto-streamer.h (struct output_block): Remove global.
3220 (struct data_in): Remove labels, num_named_labels and
3222 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3223 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3225 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3228 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3229 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3230 (isolate_path): New argument to avoid inserting a trap.
3231 (find_implicit_erroneous_behaviour): Handle returning the address
3232 of a local variable.
3233 (find_explicit_erroneous_behaviour): Likewise.
3235 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3238 * toplev.c (init_random_seed): Move piece of code never called to
3240 (set_random_seed): see above.
3242 2014-07-31 Tom de Vries <tom@codesourcery.com>
3244 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3246 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3248 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3249 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3251 2014-07-31 Richard Biener <rguenther@suse.de>
3253 * data-streamer.h (streamer_write_data_stream): Declare here,
3255 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3256 * lto-cgraph.c (lto_output_node): Adjust.
3257 (lto_output_varpool_node): Likewise.
3258 * data-streamer-out.c (streamer_string_index): Likewise.
3259 (streamer_write_data_stream, lto_append_block): Move from ...
3260 * lto-section-out.c (lto_output_data_stream,
3261 lto_append_block): ... here.
3263 2014-07-30 Mike Stump <mikestump@comcast.net>
3265 * configure.ac: Also check for popen.
3266 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3267 * configure: Regenerate.
3268 * config.in: Regenerate.
3270 2014-07-30 Martin Jambor <mjambor@suse.cz>
3272 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3273 parameter to gimple.
3275 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3277 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3278 address as second parameter to __tpf_eh_return routine.
3280 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3282 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3285 2014-07-30 Tom Tromey <tromey@redhat.com>
3288 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3289 * doc/extend.texi (Type Attributes): Document designated_init
3292 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3294 * graphite-isl-ast-to-gimple.c:
3295 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3296 (gcc_expression_from_isl_expression): Pass type to
3297 gcc_expression_from_isl_ast_expr_id.
3299 2014-07-30 Richard Biener <rguenther@suse.de>
3301 * lto-streamer.h (lto_write_data): New function.
3302 * langhooks.c (lhd_append_data): Do not free block.
3303 * lto-section-out.c (lto_write_data): New function writing
3304 raw data to the current section.
3305 (lto_write_stream): Adjust for langhook semantic change.
3306 (lto_destroy_simple_output_block): Write header directly.
3307 * lto-opts.c (lto_write_options): Write options directly.
3308 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3309 (lto_output_toplevel_asms): Likewise.
3310 (copy_function_or_variable): Copy data directly.
3311 (write_global_references): Output index table directly.
3312 (lto_output_decl_state_refs): Likewise.
3313 (write_symbol): Write data directly.
3314 (produce_symtab): Adjust.
3315 (produce_asm_for_decls): Output header and refs directly.
3317 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3319 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3320 to speculative_targets
3321 (get_class_context): Fix handling of contextes without outer type;
3322 avoid matching non-polymorphic types in LTO.
3323 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3324 parameter to speculative_targetsp; handle speculation.
3325 (dump_possible_polymorphic_call_targets): Update dumping.
3327 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3329 * common.opt (Wodr): Enable by default.
3331 2014-07-29 Olivier Hainque <hainque@adacore.com>
3333 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3335 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3338 * gengtype.c (strtoken): New function.
3339 (create_user_defined_type): Replace strtok with strtoken.
3341 2014-07-29 Nathan Sidwell <nathan@acm.org>
3343 * gcov-io.c (gcov_var): Make hidden.
3344 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3345 (gcov_do_dump): Declare.
3346 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3348 2014-07-29 Martin Jambor <mjambor@suse.cz>
3350 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3351 parameter to gimple.
3352 (sra_modify_assign): Likewise.
3354 2014-07-29 Richard Biener <rguenther@suse.de>
3357 * expr.c (expand_expr_real_2): Revert last change.
3359 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3361 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3362 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3363 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3365 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3366 (contains_type_p): Forward declare.
3367 (polymorphic_call_target_hasher::hash): Hash speculative info.
3368 (polymorphic_call_target_hasher::equal): Compare speculative info.
3369 (get_class_context): Handle speuclation.
3370 (contains_type_p): Update.
3371 (get_polymorphic_call_info_for_decl): Update.
3372 (walk_ssa_copies): Break out from ...
3373 (get_polymorphic_call_info): ... here; set speculative context
3375 * ipa-prop.c (ipa_write_indirect_edge_info,
3376 ipa_read_indirect_edge_info): Stream speculative context.
3377 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3378 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3379 SPECULATIVE_MAYBE_DERIVED_TYPE).
3380 (possible_polymorphic_call_targets overriders): Update.
3381 (dump_possible_polymorphic_call_targets overriders): Update.
3382 (dump_possible_polymorphic_call_target_p overriders): Update.
3384 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3386 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3387 ipa-devirt path; fix thinko there.
3389 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3391 * config/i386/i386.c (ix86_return_in_memory): Replace one
3392 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3394 2014-07-28 Marek Polacek <polacek@redhat.com>
3396 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3398 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3400 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3401 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3402 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3403 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3404 (USE_LD_AS_NEEDED): Likewise.
3405 (ASM_APP_ON): Likewise.
3406 (ASM_APP_OFF): Likewise.
3407 (TARGET_POSIX_IO): Likewise.
3408 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3409 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3410 (USE_LD_AS_NEEDED): Likewise.
3411 (ASM_APP_ON): Likewise.
3412 (ASM_APP_OFF): Likewise.
3413 (TARGET_POSIX_IO): Likewise.
3415 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3418 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3419 operators other than the equality operators.
3421 2014-07-28 Richard Biener <rguenther@suse.de>
3424 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3425 sure to register SImode ones, not only >= word_mode ones.
3426 * expr.c (expand_expr_real_2): When expanding -ftrapv
3427 binops do not use OPTAB_LIB_WIDEN.
3429 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3432 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3433 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3434 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3435 inserting them in the insn stream.
3437 2014-07-28 Marek Polacek <polacek@redhat.com>
3440 * common.opt (Wodr): Add Var.
3442 2014-07-28 Richard Biener <rguenther@suse.de>
3444 PR tree-optimization/61921
3445 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3446 if there is a varpool node before dereferencing it.
3448 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3450 * graphite-sese-to-poly.c:
3451 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3452 id of the pbb), which contains pointer to the pbb1.
3454 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3456 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3458 * graphite-isl-ast-to-gimple.c:
3459 (graphite_create_new_guard): New function.
3460 (translate_isl_ast_node_if): New function.
3461 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3463 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3465 2014-07-27 Anthony Green <green@moxielogic.com>
3467 * config.gcc: Add moxie-*-moxiebox* configuration.
3468 * config/moxie/moxiebox.h: New file.
3470 2014-07-26 Andrew Pinski <apinski@cavium.com>
3472 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3473 from the read only register.
3475 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3477 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3478 as the allocation class if it isn't likely to be spilled.
3480 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3482 * rtl.h (tls_referenced_p): Declare.
3483 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3484 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3485 (mips_cannot_force_const_mem): Use tls_referenced_p.
3486 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3487 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3488 instead of pa_tls_referenced_p.
3489 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3490 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3491 (pa_legitimate_constant_p): Likewise.
3492 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3493 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3494 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3495 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3496 rs6000_tls_referenced_p.
3497 (rs6000_tls_symbol_ref_1): Delete.
3499 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3502 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3503 Optimize inverse of a VEC_CONCAT.
3505 2014-07-25 Xinliang David Li <davidxl@google.com>
3507 * params.def: New parameter.
3508 * coverage.c (get_coverage_counts): Check new flag.
3509 (coverage_compute_profile_id): Check new flag.
3510 (coverage_begin_function): Check new flag.
3511 (coverage_end_function): Check new flag.
3512 * value-prof.c (coverage_node_map_initialized_p): New function.
3513 (init_node_map): Populate map with all functions.
3514 * doc/invoke.texi: Document new parameter.
3516 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3517 Richard Biener <rguenther@suse.de>
3519 * lto-streamer-out.c (struct sccs): Turn to ...
3520 (class DFS): ... this one; refactor the DFS walk so it can
3521 be re-done on per-SCC basis.
3522 (DFS::DFS): New constructor.
3523 (DFS::~DFS): New destructor.
3524 (hash_tree): Add new MAP argument holding in-SCC hash values;
3525 remove POINTER_TYPE hashing hack.
3526 (scc_entry_compare): Rename to ...
3527 (DFS::scc_entry_compare): ... this one.
3528 (hash_scc): Rename to ...
3529 (DFS::hash_scc): ... this one; pass output_block instead
3530 of streamer_cache; work harder to get unique and stable SCC
3532 (DFS_write_tree): Rename to ...
3533 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3534 (lto_output_tree): Update.
3536 2014-07-25 Andi Kleen <ak@linux.intel.com>
3538 * lto-streamer-out.c (hash_tree): Convert to inchash.
3540 2014-07-25 Andi Kleen <ak@linux.intel.com>
3542 * tree.c (build_type_attribute_qual_variant): Use inchash.
3543 (type_hash_list): Dito.
3544 (attribute_hash_list): Dito
3545 (iterative_hstate_expr): Dito.
3546 (iterative_hash_expr): Dito.
3547 (build_range_type_1): Dito.
3548 (build_array_type_1): Dito.
3549 (build_function_type): Dito.
3550 (build_method_type_directly): Dito.
3551 (build_offset_type): Dito.
3552 (build_complex_type): Dito.
3553 (make_vector_type): Dito.
3554 * tree.h (iterative_hash_expr): Add compat wrapper.
3555 (iterative_hstate_expr): Add.
3557 2014-07-25 Andi Kleen <ak@linux.intel.com>
3559 * Makefile.in (OBJS): Add inchash.o.
3560 (PLUGIN_HEADERS): Add inchash.h.
3561 * ipa-devirt.c: Include inchash.h.
3562 * lto-streamer-out.c: Dito.
3563 * tree-ssa-dom.c: Dito.
3564 * tree-ssa-pre.c: Dito.
3565 * tree-ssa-sccvn.c: Dito.
3566 * tree-ssa-tail-merge.c: Dito.
3568 * tree.c (iterative_hash_hashval_t): Move to ...
3569 (iterative_hash_host_wide_int): Move to ...
3570 * inchash.c: Here. New file.
3571 * tree.h (iterative_hash_hashval_t): Move to ...
3572 (iterative_hash_host_wide_int): Move to ...
3573 * inchash.h: Here. New file.
3575 2014-07-25 Richard Biener <rguenther@suse.de>
3579 * fold-const.c (native_encode_int): Add and handle offset
3580 parameter to do partial encodings of expr.
3581 (native_encode_fixed): Likewise.
3582 (native_encode_real): Likewise.
3583 (native_encode_complex): Likewise.
3584 (native_encode_vector): Likewise.
3585 (native_encode_string): Likewise.
3586 (native_encode_expr): Likewise.
3587 * fold-const.c (native_encode_expr): Add offset parameter
3589 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3590 (fold_ctor_reference): Handle all reads from tcc_constant
3593 2014-07-25 Richard Biener <rguenther@suse.de>
3595 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3598 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3600 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3602 2014-07-24 Kyle McMartin <kyle@redhat.com>
3604 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3606 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3608 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3610 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3612 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3613 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3614 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3616 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3618 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3619 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3620 aggregate types. Instead, *all* aggregate types, except for single-
3621 element or homogeneous float/vector aggregates, are quadword-aligned
3622 if required by their type alignment. Issue -Wpsabi note when a type
3623 is now treated differently than before.
3625 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3627 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3628 does not fit fully into floating-point registers, and there is still
3629 space in the register parameter area, use GPRs to pass those parts
3630 of the argument. Issue -Wpsabi note if any parameter is now treated
3631 differently than before.
3632 (rs6000_arg_partial_bytes): Update.
3634 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3636 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3638 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3640 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3641 * toplev.c (initialize_rtl): Don't use it. Move previously
3642 "language-dependent" calls to...
3643 (backend_init): ...here.
3644 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3645 Assert that RTL initialization hasn't happend yet.
3647 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3649 PR rtl-optimization/61629
3650 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3651 they have already been initialized.
3653 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3656 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3657 DECL_INCOMING_RTL and entry_parm.
3658 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3659 * calls.c (load_register_parameters): Likewise argument values.
3660 (emit_library_call_value_1, store_one_arg): Likewise argument
3662 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3664 * explow.c (validize_mem): Modify the argument in-place.
3666 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3668 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3669 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3671 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3673 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3674 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3676 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3678 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3679 (aarch64_save_callee_saves): New parameter "skip_wb".
3680 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3682 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3684 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3686 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3688 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3690 * graphite-isl-ast-to-gimple.c:
3691 (graphite_create_new_loop): Add calling of isl_id_free to properly
3692 decrement reference counts.
3694 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3696 2014-07-24 Martin Liska <mliska@suse.cz>
3697 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3699 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3700 (rs6000_code_end): Likewise.
3702 2014-07-24 Martin Liska <mliska@suse.cz>
3704 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3705 symtab_node funtion used.
3706 (rs6000_xcoff_declare_object_name): Likewise.
3708 2014-07-24 Martin Liska <mliska@suse.cz>
3710 * cgraphunit.c (compile): Correct function used.
3712 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3714 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3717 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3720 * varasm.c (bss_initializer_p): Handle offlined ctors.
3721 (align_variable, get_variable_align): Likewise.
3722 (make_decl_one_only): Likewise.
3723 (default_binds_local_p_1): Likewise.
3724 (decl_binds_to_current_def_p): Likewise.
3725 (get_variable_section): Get constructor if it is offlined.
3726 (assemble_variable_contents): Sanity check that the caller
3727 streamed in the ctor in LTO.
3729 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3731 * graphite-isl-ast-to-gimple.c:
3732 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3733 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3734 isl_ast_op_pdiv_r to the different case.
3736 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3738 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3741 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3742 when flag_errno_math is on.
3744 2014-07-24 Martin Liska <mliska@suse.cz>
3746 * cgraph.h (varpool_node):
3747 (availability get_availability (void)):
3748 created from cgraph_variable_initializer_availability
3749 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3750 created from: cgraph_variable_initializer_availability
3751 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3752 (void finalize_named_section_flags (void)):
3753 created from varpool_finalize_named_section_flags
3754 (bool assemble_decl (void)): created from varpool_assemble_decl
3755 (void analyze (void)): created from varpool_analyze_node
3756 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3757 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3758 (void remove_initializer (void)): created from varpool_remove_initializer
3759 (tree get_constructor (void)): created from varpool_get_constructor
3760 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3761 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3762 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3763 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3764 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3765 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3766 (static bool output_variables (void)): created from varpool_output_variables
3767 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3768 created from varpool_extra_name_alias
3769 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3770 (static void dump_varpool (FILE *f)): created from dump_varpool
3771 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3772 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3773 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3774 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3775 (void assemble_aliases (void)): created from assemble_aliases
3777 2014-07-24 Martin Liska <mliska@suse.cz>
3779 * cgraph.h (symtab_node):
3780 (void register_symbol (void)): created from symtab_register_node
3781 (void remove (void)): created from symtab_remove_node
3782 (void dump (FILE *f)): created from dump_symtab_node
3783 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3784 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3785 (struct ipa_ref *add_reference (symtab_node *referred_node,
3786 enum ipa_ref_use use_type)): created from add_reference
3787 (struct ipa_ref *add_reference (symtab_node *referred_node,
3788 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3789 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3790 gimple stmt)): created from maybe_add_reference
3791 (bool semantically_equivalent_p (symtab_node *target)): created from
3792 symtab_semantically_equivalent_p
3793 (void remove_from_same_comdat_group (void)): created from
3794 remove_from_same_comdat_group
3795 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3796 symtab_add_to_same_comdat_group
3797 (void dissolve_same_comdat_group_list (void)): created from
3798 symtab_dissolve_same_comdat_group_list
3799 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3800 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3801 created from symtab_alias_ultimate_target
3802 (inline symtab_node *next_defined_symbol (void)): created from
3803 symtab_next_defined_symbol
3804 (bool resolve_alias (symtab_node *target)): created from
3805 symtab_resolve_alias
3806 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3807 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3808 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3809 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3810 (void set_section (const char *section)): created from set_section_1
3811 (enum availability get_availability (void)): created from symtab_node_availability
3812 (void make_decl_local (void)): created from symtab_make_decl_local
3813 (bool real_symbol_p (void)): created from symtab_read_node
3814 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3815 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3816 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3817 symtab_in_same_comdat_p;
3818 (bool address_taken_from_non_vtable_p (void)): created from
3819 address_taken_from_non_vtable_p
3820 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3821 (static void dump_table (FILE *)): created from dump_symtab
3822 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3823 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3824 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3825 symtab_used_from_object_file_p
3826 (void dump_base (FILE *)): created from dump_symtab_base
3827 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3828 (void unregister (void)): created from symtab_unregister_node
3829 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3830 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3831 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3832 symtab_nonoverwritable_alias_1
3833 * cgraph.h (cgraph_node):
3834 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3835 created from cgraph_remove_node_and_inline_clones
3836 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3837 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3838 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3839 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3840 created from cgraph_function_node
3841 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3842 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3843 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3844 created from cgraph_create_clone
3845 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3846 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3847 created from cgraph_create_virtual_clone
3848 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3849 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3850 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3851 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3852 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3853 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3854 created from cgraph_function_version_info
3855 (struct cgraph_function_version_info *insert_new_function_version (void)):
3856 created from insert_new_cgraph_node_version
3857 (struct cgraph_function_version_info *function_version (void)): created from
3858 get_cgraph_node_version
3859 (void analyze (void)): created from analyze_function
3860 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3861 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3862 tree real_alias) cgraph_add_thunk
3863 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3864 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3865 created from cgraph_function_or_thunk_node
3866 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3867 created from expand_thunk
3868 (void reset (void)): created from cgraph_reset_node
3869 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3870 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3871 (void remove (void)): created from cgraph_remove_node
3872 (void dump (FILE *f)): created from dump_cgraph_node
3873 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3874 (bool get_body (void)): created from cgraph_get_body
3875 (void release_body (void)): created from cgraph_release_function_body
3876 (void unnest (void)): created from cgraph_unnest_node
3877 (void make_local (void)): created from cgraph_make_node_local
3878 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3879 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3880 gcov_type count, int freq)): created from cgraph_create_edge
3881 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3882 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3883 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3884 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3885 created from cgraph_create_edge_including_clones
3886 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3887 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3888 (void remove_callers (void)): created from cgraph_node_remove_callers
3889 (void remove_callees (void)): created from cgraph_node_remove_callees
3890 (enum availability get_availability (void)): created from cgraph_function_body_availability
3891 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3892 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3893 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3894 (void call_duplication_hooks (cgraph_node *node2)): created from
3895 cgraph_call_node_duplication_hooks
3896 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3897 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3898 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3899 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3900 (void call_function_insertion_hooks (void)):
3901 created from cgraph_call_function_insertion_hooks
3902 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3903 (bool local_p (void)): created from cgraph_local_node
3904 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3905 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3906 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3907 (inline bool only_called_directly_or_aliased_p (void)):
3908 created from cgraph_only_called_directly_or_aliased_p
3909 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3910 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3911 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3912 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3913 (bool can_remove_if_no_direct_calls_p (void)):
3914 created from cgraph_can_remove_if_no_direct_calls_p
3915 (inline bool has_gimple_body_p (void)):
3916 created from cgraph_function_with_gimple_body_p
3917 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3918 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3919 (static inline void debug_cgraph (void)): created from debug_cgraph
3920 (static void record_function_versions (tree decl1, tree decl2)):
3921 created from record_function_versions
3922 (static void delete_function_version (tree decl)):
3923 created from delete_function_version
3924 (static void add_new_function (tree fndecl, bool lowered)):
3925 created from cgraph_add_new_function
3926 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3927 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3928 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3929 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3930 (static cgraph_node *get_for_asmname (tree asmname)):
3931 created from cgraph_node_for_asm
3932 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3933 created from cgraph_same_body_alias
3934 (static bool used_from_object_file_p_worker (cgraph_node *node,
3935 void *): new function
3936 (static bool non_local_p (cgraph_node *node, void *)):
3937 created from cgraph_non_local_node_p_1
3938 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3939 created from verify_cgraph
3940 (static bool make_local (cgraph_node *node, void *)):
3941 created from cgraph_make_node_local
3942 (static cgraph_node *create_alias (tree alias, tree target)):
3943 created from cgraph_create_function_alias
3944 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3945 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3946 created from cgraph_create_edge_1
3947 * cgraph.h (varpool_node):
3948 (void remove (void)): created from varpool_remove_node
3949 (void dump (FILE *f)): created from dump_varpool_node
3951 2014-07-24 Richard Biener <rguenther@suse.de>
3954 * tree-ssa-structalias.c (create_variable_info_for_1):
3955 Use varpool_get_constructor.
3956 (create_variable_info_for): Likewise.
3958 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3960 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3961 subtract outgoing area size when restoring stack_pointer_rtx.
3963 2014-07-24 Nick Clifton <nickc@redhat.com>
3965 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3966 that operations are taking place in parallel.
3967 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3969 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3971 * omp-low.c (extract_omp_for_data): Add missing break statement.
3973 2014-07-24 Richard Biener <rguenther@suse.de>
3975 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3976 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3977 and adjust MOVE_RATIO query accordingly.
3978 (estimate_num_insns): Adjust callers.
3979 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3980 * ipa-cp.c (gather_context_independent_values,
3981 estimate_local_effects): Likewise.
3982 * ipa-split.c (consider_split): Likewise.
3984 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3986 * config/i386/driver-i386.c: Remove names of unused arguments and
3987 unnecessary unused attributes.
3988 * config/i386/host-mingw32.c: Likewise.
3989 * config/i386/i386.c: Likewise.
3990 * config/i386/winnt-stubs.c: Likewise.
3991 * config/i386/winnt.c: Likewise.
3993 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3995 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3996 (aarch64_gen_loadwb_pair): New helper function.
3997 (aarch64_expand_epilogue): Simplify code using new helper functions.
3998 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4000 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4002 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4003 (aarch64_gen_storewb_pair): New helper function.
4004 (aarch64_expand_prologue): Simplify code using new helper functions.
4005 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4007 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4009 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4010 Rename to aarch64_save_callee_saves, remove restore code.
4011 (aarch64_restore_callee_saves): New function.
4013 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4015 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4016 (aarch64_save_callee_saves): New function to handle reg save
4017 for both core and vectore regs.
4019 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4021 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4022 (aarch64_gen_store_pair): New helper function.
4023 (aarch64_save_or_restore_callee_save_registers)
4024 (aarch64_save_or_restore_fprs): Use new helper functions.
4026 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4028 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4029 (aarch64_save_or_restore_callee_save_registers)
4030 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4032 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4034 * config/aarch64/aarch64.c
4035 (aarch64_save_or_restore_callee_save_registers)
4036 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4038 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4040 * config/aarch64/aarch64.c
4041 (aarch64_save_or_restore_callee_save_registers)
4042 (aarch64_save_or_restore_fprs): Remove 'increment'.
4044 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4046 * config/aarch64/aarch64.c
4047 (aarch64_save_or_restore_callee_save_registers)
4048 (aarch64_save_or_restore_fprs): Use register offset in
4049 cfun->machine->frame.reg_offset.
4051 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4053 * config/aarch64/aarch64.c
4054 (aarch64_save_or_restore_callee_save_registers)
4055 (aarch64_save_or_restore_fprs): Remove base_rtx.
4057 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4059 * config/aarch64/aarch64.c
4060 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4061 to 'start_offset'. Remove local variable 'start_offset'.
4063 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4065 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4066 type to HOST_WIDE_INT.
4068 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4070 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4071 (aarch64_save_or_restore_fprs)
4072 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4074 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4076 * config/arm/t-rtems-eabi: Add
4077 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4078 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4079 mbig-endian/mthumb/march=armv7-r, and
4080 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4083 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4084 Chris Johns <chrisj@rtems.org>
4085 Joel Sherrill <joel.sherrill@oarcorp.com>
4087 * config.gcc: Add nios2-*-rtems*.
4088 * config/nios2/rtems.h: New file.
4089 * gcc/config/nios2/t-rtems: New file.
4091 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4094 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4095 constant numbers, not general constants.
4096 (rs6000_expand_vector_init): Ditto.
4098 2014-07-23 Nathan Sidwell <nathan@acm.org>
4100 * gcov-tool.c (gcov_list): Declare here.
4101 (set_gcov_list): Remove.
4102 (gcov_output_files): Set gcov_list directly.
4104 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4106 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4108 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4110 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4111 callee-saved registers are available for padding purpose
4112 and r3 is not mandatory, then prefer use those callee-saved
4115 2014-07-23 Richard Biener <rguenther@suse.de>
4117 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4118 * combine.c: Include statistics.h and params.h.
4119 (combine_instructions): Guard three and four insn combines
4120 with max-combine-insns value. Record statistics for combines
4122 * doc/invoke.texi (max-combine-insns): Document new param.
4124 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4126 * graphite-isl-ast-to-gimple.c:
4127 (translate_isl_ast_node_block): New function.
4128 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4130 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4131 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4133 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4135 * graphite-isl-ast-to-gimple.c:
4136 (get_max_schedule_dimensions): New function.
4137 (extend_schedule): Likewise.
4138 (generate_isl_schedule): Add calling of extend_schedule and
4139 get_max_schedule_dimensions.
4141 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4143 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4144 (case UNSPEC): Handle UNSPEC_RBIT.
4146 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4148 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4149 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4151 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4153 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4155 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4157 * graphite-isl-ast-to-gimple.c:
4158 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4160 (build_iv_mapping): New function.
4161 (translate_isl_ast_node_user): Likewise.
4162 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4164 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4165 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4166 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4168 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4171 * config/arm/arm.md (setmem): New pattern.
4172 * config/arm/arm-protos.h (struct tune_params): New fields.
4173 (arm_gen_setmem): New prototype.
4174 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4175 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4176 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4177 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4178 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4179 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4180 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4181 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4182 (arm_const_inline_cost): New function.
4183 (arm_block_set_max_insns): New function.
4184 (arm_block_set_non_vect_profit_p): New function.
4185 (arm_block_set_vect_profit_p): New function.
4186 (arm_block_set_unaligned_vect): New function.
4187 (arm_block_set_aligned_vect): New function.
4188 (arm_block_set_unaligned_non_vect): New function.
4189 (arm_block_set_aligned_non_vect): New function.
4190 (arm_block_set_vect, arm_gen_setmem): New functions.
4192 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4194 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4196 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4199 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4200 out of #ifdef __OPTIMIZE__.
4202 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4204 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4205 different trapping status if -fnon-call-exceptions is enabled.
4207 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4209 * expr.c (store_field): Handle VOIDmode for calls that return values
4210 in multiple locations.
4212 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4214 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4215 (altivec_vsldoi_<mode>): Likewise.
4217 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4219 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4220 to the number of characters in the line.
4222 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4224 * graphite-isl-ast-to-gimple.c: Add using of
4225 build_nonstandard_integer_type instead of int128_integer_type_node.
4227 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4229 * toplev.c (output_stack_usage): Adjust the location of the warning.
4231 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4233 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4234 (*membar_storeload): Disable for LEON3.
4236 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4238 PR rtl-optimization/61461
4239 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4241 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4244 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4245 Fix instruction constraint.
4246 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4248 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4250 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4252 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4254 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4255 GNU coding standards.
4256 (nds32_register_move_cost): Likewise.
4257 (nds32_memory_move_cost): Likewise.
4258 (nds32_address_cost): Likewise.
4260 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4262 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4264 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4266 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4267 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4268 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4269 (HAVE_sync_compare_and_swapqi): Define.
4270 (HAVE_sync_compare_and_swaphi): Likewise.
4271 (HAVE_sync_compare_and_swapsi): Likewise.
4273 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4275 * config/mips/p5600.md: Add missing cpu tests.
4277 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4279 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4280 (vmla_f64): Likewise.
4281 (vfms_f64): Likewise.
4282 (vmls_f64): Likewise.
4284 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4286 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4287 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4289 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4291 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4292 (vmlal_high_lane_s32): Likewise.
4293 (vmlal_high_lane_u16): Likewise.
4294 (vmlal_high_lane_u32): Likewise.
4295 (vmlsl_high_lane_s16): Likewise.
4296 (vmlsl_high_lane_s32): Likewise.
4297 (vmlsl_high_lane_u16): Likewise.
4298 (vmlsl_high_lane_u32): Likewise.
4300 2014-07-17 Terry Guo <terry.guo@arm.com>
4302 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4303 (alus_reg): Renamed to alus_sreg.
4304 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4305 from alu_reg to alu_sreg. Change type of dsp instructions from
4306 alu_reg to alu_dsp_reg.
4307 * config/arm/thumb1.md: Likewise.
4308 * config/arm/thumb2.md: Likewise.
4309 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4310 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4311 with alu_sreg and alus_sreg.
4312 * config/arm/arm1026ejs.md (alu_op): Likewise.
4313 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4314 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4315 * config/arm/fa526.md (526_alu_op): Likewise.
4316 * config/arm/fa606te.md (606te_alu_op): Likewise.
4317 * config/arm/fa626te.md (626te_alu_op): Likewise.
4318 * config/arm/fa726te.md (726te_alu_op): Likewise.
4319 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4320 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4321 alu_sreg, alu_dsp_reg and alus_sreg.
4322 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4323 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4324 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4325 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4326 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4327 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4328 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4329 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4330 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4331 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4332 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4333 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4334 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4335 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4336 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4337 alus_reg to alus_sreg.
4339 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4341 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4344 2014-07-17 Richard Biener <rguenther@suse.de>
4346 PR rtl-optimization/61801
4347 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4348 don't set reg_pending_barrier if it appears in a debug-insn.
4350 2014-07-16 DJ Delorie <dj@redhat.com>
4352 * config/rx/rx.c (rx_option_override): Fix alignment values.
4353 (rx_align_for_label): Likewise.
4355 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4358 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4359 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4360 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4362 (cris_print_index, cris_print_operand, cris_constant_index_p)
4363 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4364 (cris_address_cost): Ditto last CONSTANT_P.
4365 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4366 callers changed. Yield cris_offsettable_symbol for non-PIC
4367 constant symbolic expressions including labels. Yield cris_unspec
4369 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4370 target to pic_offset_table_rtx for calls that will likely go
4371 through PLT, const0_rtx when they can't. All callers changed.
4372 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4373 symbolic expressions to be PICified. Remove second, redundant,
4374 assert on can_create_pseudo_p returning non-zero. Use
4375 replace_equiv_address_nv, not replace_equiv_address, for final
4377 * config/cris/cris.md ("movsi"): Move variable t to pattern
4378 toplevel. Adjust assert for new cris_symbol_type member. Use
4379 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4380 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4382 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4383 ("call", "call_value"): Use second incoming operand as a marker
4384 for pic-offset-table-register being used.
4385 ("*expanded_call_non_v32", "*expanded_call_v32")
4386 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4387 second incoming operand to CALL, match cris_call_type_marker.
4388 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4389 ("*expanded_call_side"): Ditto. Fix typo in comment.
4390 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4392 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4393 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4394 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4395 users changed. Add members cris_offsettable_symbol and cris_unspec.
4396 (cris_symbol_type): Rename from cris_pic_symbol_type.
4397 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4399 * config/cris/cris-protos.h (cris_symbol_type_of,
4400 cris_expand_pic_call_address): Adjust prototypes.
4401 (cris_legitimate_constant_p): New prototype.
4403 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4404 an existing tmake_file. Don't add t-slibgcc and t-linux.
4406 2014-07-17 Jason Merrill <jason@redhat.com>
4409 * symtab.c (symtab_remove_from_same_comdat_group): Also
4410 set_comdat_group to NULL_TREE.
4411 (verify_symtab): Fix diagnostic.
4413 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4416 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4418 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4420 Support location tracking for built-in macro tokens
4421 * input.h (is_location_from_builtin_token): New function declaration.
4422 * input.c (is_location_from_builtin_token): New function definition.
4423 * toplev.c (general_init): Tell libcpp what the pre-defined
4424 spelling location for built-in tokens is.
4426 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4428 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4429 on the FUNCTION_DECL.
4431 2014-07-16 Richard Biener <rguenther@suse.de>
4434 * doc/extend.texi (always_inline): Clarify.
4436 2014-07-15 Eric Christopher <echristo@gmail.com>
4438 * doc/invoke.texi (Link Options): Document -z option.
4440 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4442 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4443 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4445 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4447 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4449 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4451 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4452 varpool_assemble_decl.
4453 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4456 2014-07-15 Michael Matz <matz@suse.de>
4458 PR rtl-optimization/61772
4459 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4461 2014-07-15 Richard Biener <rguenther@suse.de>
4463 * opts.c (default_options_table): Disable bit-ccp at -Og.
4465 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4467 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4469 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4471 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4472 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4473 call langhook for unknown declaration.
4474 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4475 * tree.h (DECL_ARGUMENTS): Update.
4476 * print-tree.c (print_node): Update.
4477 * tree-core.h (tree_decl_non_common): Remove arguments.
4478 (tree_function_decl): Add arguments.
4480 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4482 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4484 2014-07-14 Richard Biener <rguenther@suse.de>
4486 PR tree-optimization/61779
4487 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4488 simplifying a condition.
4490 2014-07-14 Richard Biener <rguenther@suse.de>
4492 * builtins.c (c_strlen): Make only_value == 2 really only
4493 affect warning generation.
4495 2014-07-14 Richard Biener <rguenther@suse.de>
4497 PR tree-optimization/61757
4498 PR tree-optimization/61783
4499 PR tree-optimization/61787
4500 * tree-ssa-dom.c (record_equality): Revert canonicalization
4501 change and add comment.
4502 (propagate_rhs_into_lhs): Revert previous fix, removing
4503 loop depth restriction again.
4505 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4507 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4508 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4509 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4510 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4511 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4512 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4513 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4515 2014-07-14 Richard Biener <rguenther@suse.de>
4517 * cgraph.h (decl_in_symtab_p): Make inline.
4519 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4522 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4525 * config/i386/i386.c (classify_argument): Don't merge classes above
4528 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4530 * cgraph.h (symtab_node): Add nonzero_address.
4531 (decl_in_symtab_p): Break out from ...
4532 (symtab_get_node): ... here.
4533 * fold-const.c: Include cgraph.h
4534 (tree_single_nonzero_warnv_p): Use symtab to determine
4535 if symbol is non-zero.
4536 * symtab.c (symtab_node::nonzero_address): New method.
4538 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4540 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4541 forgotten in previous commit.
4543 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4545 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4547 * ipa-devirt.c: Include stor-layout.h and intl.h
4548 (odr_subtypes_equivalent_p): New function.
4549 (warn_odr): New function.
4550 (warn_type_mismatch): New function.
4551 (odr_types_equivalent_p): New function.
4552 (add_type_duplicate): Use it.
4553 * common.opt (Wodr): New flag.
4554 * doc/invoke.texi (Wodr): Document new warning.
4556 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4558 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4559 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4560 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4561 (varpool_get_constructor): Push CTORS_IN timevar.
4562 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4564 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4566 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4567 Remove VOID_FTYPE_PUSHORT.
4568 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4569 Change code to USHORT_FTYPE_VOID.
4570 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4571 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4572 (ix86_atomic_assign_expand_fenv): Update for
4573 __builtin_ia32_fnstsw changes.
4574 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4575 (fnstsw): Change operand 0 to nonimmediate operand.
4577 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4579 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4580 (varpool_get_constructor): New function.
4581 (varpool_ctor_useable_for_folding_p): Break out from ...
4582 (ctor_for_folding): ... here; use varpool_get_constructor.
4583 (varpool_assemble_decl): Likewise.
4584 * lto-streamer.h (struct output_block): Turn cgraph_node
4586 (lto_input_variable_constructor): Declare.
4587 * ipa-visibility.c (function_and_variable_visibility): Use
4588 varpool_get_constructor.
4589 * cgraph.h (varpool_get_constructor): Declare.
4590 (varpool_ctor_useable_for_folding_p): New function.
4591 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4592 parameter; return error_mark_node for non-trivial constructors.
4593 (lto_write_tree_1, DFS_write_tree): Update use of
4594 get_symbol_initial_value.
4595 (output_function): Update initialization of symbol.
4596 (output_constructor): New function.
4597 (copy_function): Rename to ..
4598 (copy_function_or_variable): ... this one; handle vars too.
4599 (lto_output): Output variable sections.
4600 * lto-streamer-in.c (input_constructor): New function.
4601 (lto_read_body): Rename from ...
4602 (lto_read_body_or_constructor): ... this one; handle vars too.
4603 (lto_input_variable_constructor): New function.
4604 * ipa-prop.c (ipa_prop_write_jump_functions,
4605 ipa_prop_write_all_agg_replacement): Update.
4606 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4607 (output_cgraph_opt_summary): Set symbol to NULL.
4609 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4611 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4612 non-polymorphic types.
4613 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4614 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4615 of types is not polymorphic.
4617 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4619 * lra-constraints.c (remove_inheritance_pseudos): Process
4620 destination pseudo too.
4622 2014-07-11 Rong Xu <xur@google.com>
4624 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4627 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4629 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4630 * config/avr/avr-devices.c (AVR_MCU): Same.
4631 (avr_mcu_types): add text start value to end of device list.
4632 * config/avr/avr-mcus.def: Add text section start for all devices.
4633 (ata5782): Add new avr5 device.
4635 * config/avr/avr-tables.opt: Regenerate.
4636 * config/avr/avr.h: Add declaration for text section start handler.
4637 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4639 (LINK_SPEC): Include text section start handler to linker spec.
4640 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4641 pass -Ttext option to linker if the text section start for the device
4643 * config/avr/t-multilib: Regenerate.
4644 * doc/avr-mmcu.texi: Regenerate.
4646 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4648 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4649 * config/rs6000/aix52.h (LINK_SPEC): Same.
4650 * config/rs6000/aix53.h (LINK_SPEC): Same.
4651 * config/rs6000/aix61.h (LINK_SPEC): Same.
4652 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4654 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4656 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4657 (graphite_verify): New function.
4658 (ivs_params_clear): New function.
4659 (gcc_expression_from_isl_ast_expr_id): New function.
4660 (gcc_expression_from_isl_expr_int): New function.
4661 (binary_op_to_tree): New function.
4662 (ternary_op_to_tree): New function.
4663 (unary_op_to_tree): New function.
4664 (nary_op_to_tree): New function.
4665 (gcc_expression_from_isl_expr_op): New function.
4666 (gcc_expression_from_isl_expression): New function.
4667 (graphite_create_new_loop): New function.
4668 (translate_isl_ast_for_loop): New function.
4669 (get_upper_bound): New function.
4670 (graphite_create_new_loop_guard): New function.
4671 (translate_isl_ast_node_for): New function.
4672 (translate_isl_ast): New function.
4673 (add_parameters_to_ivs_params): New function.
4674 (scop_to_isl_ast): New parameter ip.
4675 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4677 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4679 * config/xtensa/predicates.md (call expander): Update for
4680 DECL_SECTION_NAME being string.
4682 2014-07-11 Richard Biener <rguenther@suse.de>
4685 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4686 can be implemented with a single load followed by a single store.
4687 (c_strlen): Only warn when only_value is not 2.
4689 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4691 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4693 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4696 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4697 (*movhi_bytes): Likewise.
4698 (*arm_movqi_insn): Likewise.
4700 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4703 * config/alpha/alpha.c: Include tree-pass.h, context.h
4705 (pass_data_handle_trap_shadows): New pass.
4706 (pass_handle_trap_shadows::gate): New pass gate function.
4707 (make_pass_handle_trap_shadows): New function.
4708 (rest_of_handle_trap_shadows): Ditto.
4710 (alpha_align_insns_1): Rename from alpha_align_insns.
4711 (pass_data_align_insns): New pass.
4712 (pass_align_insns::gate): New pass gate function.
4713 (make_pass_aling_insns): New function.
4714 (rest_of_align_insns): Ditto.
4715 (alpha_align_insns): Ditto.
4717 (alpha_option_override): Declare handle_trap_shadows info
4718 and align_insns_info. Register handle_trap_shadows and align_insns
4720 (alpha_reorg): Do not call alpha_trap_shadows and
4721 alpha_align_insn from here.
4723 (alpha_pad_function_end): Do not skip BARRIERs.
4725 2014-07-10 Rong Xu <xur@google.com>
4727 Add gcov-tool: an offline gcda profile processing tool support.
4728 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4729 (gcov_is_error): Ditto.
4730 (gcov_read_string): Ditto.
4731 (gcov_read_sync): Ditto.
4732 * gcov-io.h: Move counter defines to gcov-counter.def.
4733 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4734 * coverage.c: Ditto.
4735 * gcov-tool.c: Offline gcda profile processing tool.
4736 (unlink_gcda_file): Remove one gcda file.
4737 (unlink_profile_dir): Remove gcda files from the profile path.
4738 (gcov_output_files): Output gcda files to an output dir.
4739 (profile_merge): Merge two profiles in directory.
4740 (print_merge_usage_message): Print merge usage.
4741 (merge_usage): Print merge usage and exit.
4742 (do_merge): Driver for profile merge sub-command.
4743 (profile_rewrite): Rewrite profile.
4744 (print_rewrite_usage_message): Print rewrite usage.
4745 (rewrite_usage): Print rewrite usage and exit.
4746 (do_rewrite): Driver for profile rewrite sub-command.
4747 (print_usage): Print gcov-info usage and exit.
4748 (print_version): Print gcov-info version.
4749 (process_args): Process arguments.
4750 (main): Main routine for gcov-tool.
4751 * Makefile.in: Build and install gcov-tool.
4752 * gcov-counter.def: New file split from gcov-io.h.
4753 * doc/gcc.texi: Include gcov-tool.texi.
4754 * doc/gcov-tool.texi: Document for gcov-tool.
4756 2014-07-10 Richard Biener <rguenther@suse.de>
4758 PR tree-optimization/61757
4759 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4760 (propagate_rhs_into_lhs): Revert part of last change.
4762 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4764 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4767 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4770 * function.c (allocate_struct_function): Revert r188667 change.
4772 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4774 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4776 * doc/install.texi: Remove links to defunct package providers for
4779 2014-07-09 Tom de Vries <tom@codesourcery.com>
4781 * final.c (get_call_fndecl): Declare.
4782 (self_recursive_call_p): New function.
4783 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4785 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4787 * ipa-devirt.c (record_node): Walk through aliases.
4789 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4791 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4793 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4796 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4798 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4800 * ipa-visibility.c (function_and_variable_visibility): Remove
4801 temporary hack disabling local aliases on AIX.
4803 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4805 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4806 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4808 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4810 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4811 * rs6000/rs6000.c: Inline output of .set instruction.
4812 (declare_alias_data): New struct.
4813 (rs6000_declare_alias): New function.
4814 (rs6000_xcoff_declare_function_name): Use it.
4815 (rs6000_xcoff_declare_object_name): New function.
4816 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4817 (ASM_OUTPUT_DEF): Turn to empty definition.
4819 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4822 * hash-table.h: use hash_table::value_type instead of
4823 Descriptor::value_type in the return types of several methods.
4825 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4827 * tree-pass.h (pass_data): Remove has_execute member.
4828 * passes.c (execute_one_pass): Don't check pass->has_execute.
4829 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4830 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4831 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4832 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4833 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4834 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4835 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4836 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4837 gimple-low.c, gimple-ssa-isolate-paths.c,
4838 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4839 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4840 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4841 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4842 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4843 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4844 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4845 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4846 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4847 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4848 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4849 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4850 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4851 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4852 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4853 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4854 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4855 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4856 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4857 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4858 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4859 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4860 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4861 web.c: Remove initializer for pass_data::has_execute.
4863 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4865 * graphite-htab.h: Use hash_map instead of hash_table.
4866 * graphite-clast-to-gimple.c: Adjust.
4867 * passes.c: Use hash_map instead of hash_table.
4869 * sese.h: Remove now unused code.
4871 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4874 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4877 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4879 PR rtl-optimization/61673
4880 * combine.c (simplify_comparison): Test just mode's sign bit
4881 in tmode rather than the sign bit and any bits above it.
4883 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4885 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4886 Add __isl_give to the declaration.
4887 (generate_isl_schedule): Likewise.
4888 (scop_to_isl_ast): Likewise.
4890 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4892 * config/arm/arm.c (cortexa5_extra_costs): New table.
4893 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4895 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4897 PR tree-optimization/61725
4898 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4899 range, use range_includes_zerop_p instead of integer_zerop on
4900 vr0->min, only use log2 of max if min is not negative.
4902 2014-07-08 Richard Biener <rguenther@suse.de>
4904 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4905 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4906 restriction on loop depth difference.
4907 (record_equality): Likewise.
4908 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4909 (loop_depth_of_name): Remove.
4910 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4911 restriction on loop depth difference.
4912 (init_copy_prop): Likewise.
4914 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4916 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4918 (walk_aliased_vdefs): Likewise.
4919 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4920 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4921 (detect_type_change_from_memory_writes): Check if entry was reached.
4923 2014-07-08 Richard Biener <rguenther@suse.de>
4925 PR tree-optimization/61681
4926 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4927 NONLOCAL inside ESCAPED.
4929 2014-07-08 Richard Biener <rguenther@suse.de>
4931 PR tree-optimization/61680
4932 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4933 Handle properly all read-write dependences with group accesses.
4935 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4937 PR tree-optimization/61576
4938 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4939 block containing reduction statement is predecessor of phi basi block.
4941 2014-07-08 Marek Polacek <polacek@redhat.com>
4944 * fold-const.c (round_up_loc): Change the parameter type.
4946 * fold-const.h (round_up_loc): Adjust declaration.
4947 * stor-layout.c (finalize_record_size): Check for too large types.
4949 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4951 * symtab.c: Include calls.h.
4952 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4954 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4956 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4957 little-endian code generation.
4958 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4959 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4960 (spe_evmergehilo): Rename to...
4961 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4962 (spe_evmergelo): Rename to...
4963 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4964 (spe_evmergelohi): Rename to...
4965 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4966 (spe_evmergehi, spe_evmergehilo): New expanders.
4967 (spe_evmergelo, spe_evmergelohi): Likewise.
4968 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4969 (*frob_tf_ti): Likewise.
4970 (*frob_<mode>_di_2): Likewise.
4971 (*frob_tf_di_8_2): Likewise.
4972 (*frob_di_<mode>): Likewise.
4973 (*frob_ti_tf): Likewise.
4974 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4975 (*frob_ti_<mode>_8_2): Likewise.
4976 (*frob_ti_tf_2): Likewise.
4977 (mov_si<mode>_e500_subreg0): Rename to...
4978 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4980 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4981 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4982 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4983 the big endianness only.
4984 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4985 (*mov_si<mode>_e500_subreg0_2): Rename to...
4986 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4987 big big endianness only.
4988 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4989 (*mov_si<mode>_e500_subreg4): Rename to...
4990 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4992 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4993 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4994 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4995 the big endianness only.
4996 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4998 (*mov_si<mode>_e500_subreg4_2): Rename to...
4999 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5001 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5002 (*mov_sitf_e500_subreg8): Rename to...
5003 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5005 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5006 (*mov_sitf_e500_subreg8_2): Rename to...
5007 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5009 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5010 (*mov_sitf_e500_subreg12): Rename to...
5011 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5013 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5014 (*mov_sitf_e500_subreg12_2): Rename to...
5015 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5017 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5019 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5021 * asan.c (instrument_strlen_call): Do not instrument first byte
5022 in strlen if already instrumented.
5024 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5026 * config/arm/arm.opt (mwords-little-endian): Delete.
5027 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5028 of TARGET_LITTLE_WORDS.
5029 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5030 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5032 * doc/invoke.texi: Remove references to -mwords-little-endian.
5034 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5036 * expmed.c (struct init_expmed_rtl): Change all fields but
5037 pow2 and cint from struct rtx_def to rtx.
5038 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5039 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5042 2014-07-06 Marek Polacek <polacek@redhat.com>
5045 * doc/invoke.texi: Document -Wsizeof-array-argument.
5047 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5049 * wide-int.h (wide_int_storage): Change declaration from struct
5052 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5054 * cgraph.c (cgraph_create_indirect_edge): Update call of
5055 get_polymorphic_call_info.
5056 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5057 (possible_polymorphic_call_targets): Add parameter call.
5058 (decl_maybe_in_construction_p): New predicate.
5059 (get_polymorphic_call_info): Add parameter call;
5060 use decl_maybe_in_construction_p.
5061 * gimple-fold.c (fold_gimple_assign): Update use of
5062 possible_polymorphic_call_targets.
5063 (gimple_fold_call): Likewise.
5064 * ipa-prop.c: Inlcude calls.h
5065 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5066 (param_type_may_change_p): New predicate.
5067 (detect_type_change_from_memory_writes): Break out from ...
5068 (detect_type_change): ... this one; use param_type_may_change_p.
5069 (detect_type_change_ssa): Use param_type_may_change_p.
5070 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5072 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5075 * config/arm/arm-protos.h (arm_legitimate_address_p,
5076 arm_is_constant_pool_ref): Add prototypes.
5077 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5078 (arm_is_constant_pool_ref) New function.
5079 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5080 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5081 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5082 operand. Remove pool_range and neg_pool_range attributes.
5083 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5084 pool_range and neg_pool_range attributes.
5085 * config/arm/constraints.md (Uh): New constraint.
5086 (Uq): Don't allow constant pool references.
5088 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5090 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5091 (move_lo_quad_internal_be_<mode>): Likewise.
5092 (move_lo_quad_<mode>): Convert to define_expand.
5093 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5094 (aarch64_simd_move_hi_quad_be_<mode>): New.
5095 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5096 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5097 (aarch64_combinez_be<mode>): New.
5098 (aarch64_combine<mode>): Convert to define_expand.
5099 (aarch64_combine_internal<mode>): New.
5100 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5102 2014-07-04 Tom de Vries <tom@codesourcery.com>
5104 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5105 combination of earlyclobber and read/write modifiers.
5107 2014-07-04 Tom de Vries <tom@codesourcery.com>
5109 * config/aarch64/aarch64-simd.md
5110 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5112 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5115 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5117 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5120 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5122 PR tree-optimization/61684
5123 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5124 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5126 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5127 Kito Cheng <kito@0xlab.org>
5128 Monk Chiang <sh.chiang04@gmail.com>
5130 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5131 (nds32_symbol_load_store_p): Move to ...
5132 (nds32_fp_as_gp_check_available): Move to ...
5133 * config/nds32/nds32-fp-as-gp.c: ... here.
5134 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5137 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5138 Kito Cheng <kito@0xlab.org>
5139 Monk Chiang <sh.chiang04@gmail.com>
5141 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5142 (nds32_expand_store_multiple): Move to ...
5143 (nds32_expand_movmemqi): Move to ...
5144 * config/nds32/nds32-memory-manipulation.c: ... here.
5146 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5147 Kito Cheng <kito@0xlab.org>
5148 Monk Chiang <sh.chiang04@gmail.com>
5150 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5151 (nds32_output_casesi_pc_relative): Move to ...
5152 (nds32_output_casesi): Move to ...
5153 (nds32_mem_format): Move to ...
5154 (nds32_output_16bit_store): Move to ...
5155 (nds32_output_16bit_load): Move to ...
5156 (nds32_output_32bit_store): Move to ...
5157 (nds32_output_32bit_load): Move to ...
5158 (nds32_output_32bit_load_s): Move to ...
5159 (nds32_output_stack_push): Move to ...
5160 (nds32_output_stack_pop): Move to ...
5161 * config/nds32/nds32-md-auxiliary.c: ... here.
5163 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5164 Ling-Hua Tseng <uranus@tinlans.org>
5166 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5167 the purpose of this file.
5169 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5170 Kito Cheng <kito@0xlab.org>
5171 Monk Chiang <sh.chiang04@gmail.com>
5173 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5174 (nds32_address_cost): Move implementation to ...
5175 * config/nds32/nds32-cost.c: ... here.
5176 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5177 (nds32_address_cost_impl): Declare.
5179 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5180 Kito Cheng <kito@0xlab.org>
5181 Monk Chiang <sh.chiang04@gmail.com>
5183 * config/nds32/nds32.c
5184 (nds32_consecutive_registers_load_store_p): Move to ...
5185 (nds32_valid_multiple_load_store): Move to ...
5186 (nds32_valid_stack_push_pop): Move to ...
5187 (nds32_can_use_bclr_p): Move to ...
5188 (nds32_can_use_bset_p): Move to ...
5189 (nds32_can_use_btgl_p): Move to ...
5190 (nds32_can_use_bitci_p): Move to ...
5191 * config/nds32/nds32-predicates.c: ... here.
5193 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5194 Kito Cheng <kito@0xlab.org>
5195 Monk Chiang <sh.chiang04@gmail.com>
5197 * config/nds32/nds32.c
5198 (nds32_expand_builtin_null_ftype_reg): Move to ...
5199 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5200 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5201 (nds32_init_builtins): Move implementation to ...
5202 (nds32_expand_builtin): Move implementation to ...
5203 * config/nds32/nds32-intrinsic.c: ... here.
5204 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5205 (nds32_expand_builtin_impl): Declare.
5207 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5208 Kito Cheng <kito@0xlab.org>
5209 Monk Chiang <sh.chiang04@gmail.com>
5211 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5212 (nds32_emit_section_tail_template): Move to ...
5213 (nds32_emit_isr_jmptbl_section): Move to ...
5214 (nds32_emit_isr_vector_section): Move to ...
5215 (nds32_emit_isr_reset_conten): Move to ...
5216 (nds32_check_isr_attrs_conflict): Move to ...
5217 (nds32_construct_isr_vectors_information): Move to ...
5218 (nds32_asm_file_start): Move implementation to ...
5219 (nds32_asm_file_end): Move implementation to ...
5220 * config/nds32/nds32-isr.c: ... here.
5221 * config/nds32/nds32-protos.h
5222 (nds32_check_isr_attrs_conflict): Declare.
5223 (nds32_construct_isr_vectors_information): Declare.
5224 (nds32_asm_file_start_for_isr): Declare.
5225 (nds32_asm_file_end_for_isr): Declare.
5227 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5228 Kito Cheng <kito@0xlab.org>
5229 Monk Chiang <sh.chiang04@gmail.com>
5231 * config.gcc (nds32*): Add new modules to extra_objs.
5232 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5233 (nds32be-*-*): Likewise.
5234 * config/nds32/nds32-cost.c: New file.
5235 * config/nds32/nds32-fp-as-gp.c: New file.
5236 * config/nds32/nds32-intrinsic.c: New file.
5237 * config/nds32/nds32-isr.c: New file.
5238 * config/nds32/nds32-md-auxiliary.c: New file.
5239 * config/nds32/nds32-memory-manipulation.c: New file.
5240 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5241 * config/nds32/nds32-predicates.c: New file.
5242 * config/nds32/t-nds32: New file.
5244 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5246 PR tree-optimization/61682
5247 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5248 using cases and when one of the operands is equal to 1.
5250 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5252 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5253 ashr<mode>3): Correct mode of operands[2].
5254 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5255 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5256 Correct mode of operands[2]. Fix split condition.
5258 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5260 * arm.md (arch): Add armv6_or_vfpv3.
5261 (arch_enabled): Add test for the above.
5262 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5264 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5266 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5268 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5269 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5270 HWI 1 and negate the unsigned value.
5271 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5272 use AND instead of shift.
5273 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5275 2014-07-03 Marek Polacek <polacek@redhat.com>
5277 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5278 (-fsanitize=float-divide-by-zero): Move to the table with
5279 -fsanitize=undefined suboptions.
5280 (-fsanitize=float-cast-overflow): Likewise.
5282 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5284 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5285 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5288 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5290 * loop-invariant.c (struct invariant): Add a new member: eqno;
5291 (find_identical_invariants): Update eqno;
5292 (create_new_invariant): Init eqno;
5293 (get_inv_cost): Compute comp_cost with eqno;
5295 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5297 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5298 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5299 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5300 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5301 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5303 2014-07-02 Christian Bruel <christian.bruel@st.com>
5307 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5308 (make_preds_opaque): Delete.
5309 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5310 (commit_mode_sets): New function.
5311 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5312 Process all modes at once.
5313 * basic-block.h (pre_edge_lcm_avs): Declare.
5314 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5315 Call clear_aux_for_edges. Fix comments.
5316 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5317 (pre_edge_rev_lcm): Idem.
5318 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5320 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5321 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5323 * config/i386/i386.c (x96_emit_mode_set): Idem.
5324 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5325 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5326 (fpscr_toggle) Disallow from delay slot.
5327 * target.def (emit_mode_set): Add prev_mode parameter.
5328 * doc/tm.texi: Regenerate.
5330 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5332 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5335 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5337 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5338 vtable_pointer_value_to_vtable): Constify.
5339 (contains_polymorphic_type_p): Declare.
5340 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5341 vtable_pointer_value_to_vtable): Constify.
5342 (contains_polymorphic_type_p): New predicate.
5343 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5345 (ipa_set_ancestor_jf): Likewise.
5346 (detect_type_change): Return false in easy cases.
5347 (compute_complex_assign_jump_func): Require type to contain
5349 (compute_known_type_jump_func): Likewise.
5351 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5353 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5355 (type_in_anonymous_namespace_p): Constify argument.
5356 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5357 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5358 (main_odr_variant): New function.
5359 (hash_type_name): Make static; update assert; do not ICE on
5361 (types_same_for_odr): Bring here from tree.c; simplify and remove
5362 old structural comparing code that doesn't work for templates.
5363 (odr_hasher::equal): Update assert.
5364 (add_type_duplicate): Return true when bases should be computed;
5365 replace incomplete loader by complete; do not output duplicated
5366 warnings; do not ICE on non-records; set odr_violated flag.
5367 (get_odr_type): Be ready to replace incomplete type by complete
5368 one; work on ODR variants instead of main variants; reorder item
5369 in array so bases have still smaller indexes.
5370 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5371 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5373 2014-07-01 Cary Coutant <ccoutant@google.com>
5375 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5377 (resolve_addr_in_expr): When replacing the rtx in a location list
5378 entry, get a new address table entry.
5379 (dwarf2out_finish): Call index_location_lists even if there are no
5380 addr_index_table entries yet.
5382 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5384 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5385 change for not being obvious.
5387 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5389 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5392 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5394 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5395 (vcagt_f64): Likewise.
5396 (vcale_f64): Likewise.
5397 (vcaled_f64): Likewise.
5398 (vcales_f32): Likewise.
5399 (vcalt_f64): Likewise.
5400 (vcaltd_f64): Likewise.
5401 (vcalts_f32): Likewise.
5403 2014-07-01 Marek Polacek <polacek@redhat.com>
5405 * doc/invoke.texi: Document -Wint-conversion.
5407 2014-07-01 Marek Polacek <polacek@redhat.com>
5410 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5412 2014-07-01 Martin Liska <mliska@suse.cz>
5414 IPA REF alias refactoring
5415 * cgraph.h (iterate_direct_aliases): New function.
5416 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5417 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5418 FOR_EACH_ALIAS added.
5419 (cgraph_for_node_and_aliases): Likewise.
5420 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5421 * ipa-inline.c (reset_edge_caches): Likewise.
5422 (update_caller_keys): Likewise.
5423 * trans-mem.c (ipa_tm_execute): Likewise.
5424 *varpool.c (varpool_analyze_node): Likewise.
5425 (varpool_for_node_and_aliases): Likewise.
5426 * ipa-ref.h (first_alias): New function.
5427 (last_alias): Likewise.
5428 (has_aliases_p): Likewise.
5429 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5430 is sensitive to IPA_REF_ALIASes.
5431 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5432 are put at the beginning of the list.
5433 (symtab_node::iterate_direct_aliases): New function.
5435 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5438 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5440 (write_ts_type_common_tree_pointers): Do not stream fields not set
5441 for incomplete types; do not stream duplicated fields for variants;
5442 sanity check that variant and type match.
5443 (write_ts_type_non_common_tree_pointers): Likewise.
5444 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5445 TYPE_SIZE whether type is complete.
5446 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5447 write_ts_type_common_tree_pointers
5448 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5450 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5452 * var-tracking.c (add_stores): Return instead of asserting if old
5453 and new values for conditional store are the same.
5455 2014-06-30 Richard Henderson <rth@redhat.com>
5459 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5460 the cfg if there were any changes.
5461 * passes.def: Revert move of peephole2 after reorder_blocks;
5462 move duplicate_computed_gotos before peephole2.
5464 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5466 * except.c (emit_note_eh_region_end): New helper function.
5467 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5468 emit EH_REGION_END note.
5469 * jump.c (cleanup_barriers): Do not split a call and its
5470 corresponding CALL_ARG_LOCATION note.
5472 2014-06-30 Jeff Law <law@redhat.com>
5474 PR tree-optimization/61607
5475 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5476 deeper into the SSA_NAME_VALUE chain.
5478 2014-06-30 Marek Polacek <polacek@redhat.com>
5480 * convert.c (convert_to_integer): Don't instrument conversions if the
5481 function has no_sanitize_undefined attribute.
5482 * ubsan.c: Don't run the ubsan pass if the function has
5483 no_sanitize_undefined attribute.
5485 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5487 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5488 -fsanitize=undefined suboptions.
5490 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5492 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5493 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5494 against bigendian and adjust indices.
5496 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5498 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5500 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5503 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5504 Add alternative; make early clobber. Adjust both split patterns
5505 to use operand 0 as the working register.
5507 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5509 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5510 as ira_object_id_map might be NULL, or 1.
5512 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5514 * loop-invariant.c (get_inv_cost): Handle register class.
5515 (gain_for_invariant): Check the register pressure of the inv
5516 and its overlapped register class, other than all.
5518 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5520 * doc/invoke.texi (Optimize Options): Fix descriptions of
5521 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5523 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5525 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5528 2014-06-29 Tobias Grosser <tobias@grosser.es>
5531 * graphite-isl-ast-to-gimple.c: Add missing guards.
5533 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5535 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5536 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5537 * flag-types.h: Add new enum fgraphite_generator.
5538 * graphite-isl-ast-to-gimple.c: New.
5539 * graphite-isl-ast-to-gimple.h: New.
5540 * graphite.c (graphite_transform_loops): Add choice of Graphite
5541 code generator, which depends on flag_graphite_code_gen.
5543 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5545 * graphite-dependences.c (subtract_commutative_associative_deps):
5546 Add NULL checking of the following variables: must_raw_no_source,
5547 may_raw_no_source, must_war_no_source, may_war_no_source,
5548 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5549 must_war, may_war, must_waw, may_waw.
5551 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5553 * graphite-clast-to-gimple.c: gloog is renamed to
5554 graphite_regenerate_ast_cloog. gloog_error is renamed to
5555 graphite_regenerate_error.
5556 * graphite-clast-to-gimple.h: The definition of the struct
5557 bb_pbb_def is moved to graphite-htab.h.
5558 Add inclusion of the hash-table.h.
5559 * graphite-htab.h: The declaration of the function gloog is moved
5560 to graphite-clast-to-gimple.h and renamed to
5561 graphite_regenerate_ast_cloog.
5562 * graphite.c (graphite_transform_loops): gloog is renamed
5563 to graphite_regenerate_ast_cloog.
5565 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5567 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5569 (write_ts_type_common_tree_pointers): Do not stream fields not set
5570 for incomplete types; do not stream duplicated fields for variants;
5571 sanity check that variant and type match.
5572 (write_ts_type_non_common_tree_pointers): Likewise.
5573 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5574 TYPE_SIZE whether type is complete.
5575 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5576 write_ts_type_common_tree_pointers
5577 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5579 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5581 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5583 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5585 * tree-inline.c (remap_type_1): Do not duplicate fields
5586 that are shared in between type and its main variant.
5588 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5590 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5592 (ipa_set_ancestor_jf) Likewise.
5593 (check_stmt_for_type_change): Check that we work on main variant.
5594 (detect_type_change): Look into main variant.
5595 (compute_known_type_jump_func): Check that main variant has BINFO.
5597 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5599 * ipa-devirt.c (set_type_binfo): New function.
5600 (add_type_duplicate): Use it.
5601 (get_odr_type): Sanity check that binfos points to main variants.
5602 (get_class_context): Be sure the context's outer_type is main variant.
5603 (contains_type_p): Walk main variant.
5604 (get_polymorphic_call_info_for_decl): Set outer_type to be
5606 (get_polymorphic_call_info): Likewise.
5607 (possible_polymorphic_call_targets): Sanity check that we operate
5610 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5612 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5614 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5616 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5617 accidental change due to wide-int branch merge.
5619 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5621 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5622 compressed debug support.
5623 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5624 * configure: Regenerate.
5625 * config.in: Regenerate.
5626 * common.opt (compressed_debug_sections): New enum.
5627 (gz, gz=): New options.
5628 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5629 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5630 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5631 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5632 LINK_COMPRESS_DEBUG_SPEC.
5633 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5634 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5635 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5636 (Debugging Options): Document -gz[=type].
5638 2014-06-27 Martin Jambor <mjambor@suse.cz>
5641 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5642 args_to_skip, use those from node instead. Copy args_to_skip and
5643 combined_args_to_skip from node to the new thunk.
5644 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5645 (cgraph_create_virtual_clone): Moved computation of
5646 combined_args_to_skip...
5647 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5649 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5651 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5652 redundant diagnostic machinary.
5654 2014-06-27 Richard Biener <rguenther@suse.de>
5656 * tree-ssa-math-opts.c (bswap_replace): Fix
5657 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5659 2014-06-27 Martin Liska <mliska@suse.cz>
5661 * gimple.h (gimple_location_safe): New function introduced.
5662 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5663 of gimple_location_safe replaces gimple_location.
5664 (gimple_fold_call): Likewise.
5665 * ipa-devirt.c (ipa_devirt): Likewise.
5666 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5667 * ipa.c (walk_polymorphic_call_targets): Likewise.
5668 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5670 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5672 PR tree-optimization/57233
5673 PR tree-optimization/61299
5674 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5676 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5677 would be lowered to scalar shifts, check if corresponding
5678 shifts and vector BIT_IOR_EXPR are supported and don't lower
5679 or lower just to narrower vector type in that case.
5680 * expmed.c (expand_shift_1): Fix up handling of vector
5683 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5686 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5688 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5690 * doc/invoke.texi (-fsemantic-interposition): Document.
5691 * common.opt (fsemantic-interposition): New flag.
5692 * varasm.c (decl_replaceable_p): Use it.
5694 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5697 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5698 extraction other than index 3.
5700 2014-06-26 Teresa Johnson <tejohnson@google.com>
5702 * doc/invoke.texi: Fix typo.
5703 * dumpfile.c: Add support for documented -fdump-* options
5704 optimized/missed/note/optall.
5706 2014-06-26 Martin Jambor <mjambor@suse.cz>
5708 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5709 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5710 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5711 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5712 * opts.c (default_options_optimization): Set
5713 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5714 * doc/invoke.texi (allow-load-data-races)
5715 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5716 (allow-store-data-races): Document the new default.
5718 2014-06-26 Martin Jambor <mjambor@suse.cz>
5720 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5721 renamed to ipa_impossible_devirt_target. Fix typo.
5722 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5723 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5724 ipa_impossible_devirt_target.
5726 2014-06-26 Richard Biener <rguenther@suse.de>
5728 PR tree-optimization/61607
5729 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5730 explaining why we restrict copies on loop depth.
5731 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5733 (record_equivalences_from_phis): Instead add it here.
5735 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5737 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5738 (LTO_WRAPPER_OBJS): New variable.
5739 (lto-wrapper$(exeext)): Use it.
5740 * collect2.c: Include "collect-utils.h".
5741 (verbose, debug): Remove variables.
5742 (at_file_supplied): No longer static.
5743 (tool_name): New variable.
5744 (do_wait, fork_execute, maybe_unlink): Don't declare.
5745 (tool_cleanup): No longer static.
5746 (notice): Remove function.
5747 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5749 (collect_wait, do_wait, collect_execute): Remove functions.
5750 (maybe_unlink): No longer static.
5751 * collect2.h (verbose, debug): Don't declare.
5752 (at_file_supplied): Declare.
5753 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5755 (collect_execute): Replace with implementation from collect2, plus a
5756 new arg use_atfile. All callers changed.
5757 (collect_wait): Replace with implementation from collect2.
5758 (maybe_unlink_file): Remove function.
5759 (fork_execute): Replace with implementation from collect2, plus a
5760 new arg use_atfile. All callers changed.
5761 (do_wait): Add call to utils_cleanup to the error path.
5762 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5763 (tool_cleanup): Adjust declarations.
5764 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5765 * tlink.c: Include "collect-utils.h".
5766 (tlink_execute): New arg use_atfile. All callers changed.
5767 (tlink_init, tlink_execute): Remove declarations.
5769 * collect-utils.c (save_temps): New variable.
5770 (do_wait): Use it instead of debug. Use fatal_error.
5771 * collect-utils.h (save_temps): Declare.
5772 * collect2.c (verbose): Rename from vflag. All uses changed.
5773 (tool_cleanup): New function, copied from collect_atexit.
5774 (collect_atexit, handler): Just call it.
5775 * collect2.h (verbose): Declaration renamed from vflag.
5776 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5779 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5780 (lto-wrapper$(exeext)): Link with collect-utils.o.
5781 * collect-utils.c: New file.
5782 * collect-utils.h: New file.
5783 * lto-wrapper.c: Include "collect-utils.h".
5784 (args_name): Delete variable.
5785 (tool_name): New variable.
5786 (tool_cleanup): New function.
5787 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5788 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5789 (fork_execute): Remove functions.
5791 2014-06-26 Nick Clifton <nickc@redhat.com>
5793 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5795 * doc/extend.texi (Function Attributes): Fix typo in description
5796 of RX vector attribute.
5798 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5800 * config.gcc (supported_defaults): Error when passing either
5801 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5803 2014-06-26 Richard Biener <rguenther@suse.de>
5805 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5806 propagating volatile pointers.
5808 2014-06-26 Richard Biener <rguenther@suse.de>
5810 PR tree-optimization/61607
5811 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5812 loop if we redirected its latch edge.
5813 (thread_block_1): Do not cancel loops prematurely.
5815 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5817 * toplev.c (backend_init_target): Move init_emit_regs and
5819 (backend_init) ... here; skip ira_init_once and backend_init_target.
5820 (target_reinit) ... and here; clear
5821 this_target_rtl->lang_dependent_initialized.
5822 (lang_dependent_init_target): Clear
5823 this_target_rtl->lang_dependent_initialized;
5824 break out rtl initialization to ...
5825 (initialize_rtl): ... here; call also backend_init_target
5827 * toplev.h (initialize_rtl): New function.
5828 * function.c: Include toplev.h
5829 (init_function_start): Call initialize_rtl.
5830 * rtl.h (target_rtl): Add target_specific_initialized,
5831 lang_dependent_initialized.
5833 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5834 Jakub Jelinek <jakub@redhat.com>
5836 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5838 2014-06-25 Tom de Vries <tom@codesourcery.com>
5840 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5842 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5844 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5845 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5846 Issue a strict overflow warning if appropriate.
5848 2014-06-25 Martin Liska <mliska@suse.cz>
5851 * Makefile.in: Removed header file (ipa-ref-inline.h).
5852 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5854 (cgraph_speculative_call_info): Likewise.
5855 (cgraph_for_node_thunks_and_aliases): Likewise.
5856 (cgraph_for_node_and_aliases): Likewise.
5857 (verify_cgraph_node): Likewise.
5858 * cgraph.h: Batch of IPA REF functions become member functions of
5859 symtab_node: add_reference, maybe_add_reference, clone_references,
5860 clone_referring, clone_reference, find_reference,
5861 remove_stmt_references, remove_all_references,
5862 remove_all_referring, dump_references, dump_referring,
5863 has_alias_p, iterate_reference, iterate_referring.
5864 * cgraphbuild.c (record_reference): New IPA REF function used.
5865 (record_type_list): Likewise.
5866 (record_eh_tables): Likewise.
5867 (mark_address): Likewise.
5868 (mark_load): Likewise.
5869 (mark_store): Likewise.
5870 (pass_build_cgraph_edges): Likewise.
5871 (rebuild_cgraph_edge): Likewise.
5872 (cgraph_rebuild_references): Likewise.
5873 (pass_remove_cgraph_callee_edges): Likewise.
5874 * cgraphclones.c (cgraph_clone_node): Likewise.
5875 (cgraph_create_virtual_clone): Likewise.
5876 (cgraph_materialize_clone): Likewise.
5877 (cgraph_materialize_all_clones): Likewise.
5878 * cgraphunit.c (cgraph_reset_node): Likewise.
5879 (cgraph_reset_node): Likewise.
5880 (analyze_function): Likewise.
5881 (assemble_thunks_and_aliases): Likewise.
5882 (expand_function): Likewise.
5883 * ipa-comdats.c (propagate_comdat_group): Likewise.
5884 (enqueue_references): Likewise.
5885 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5886 (create_specialized_node): Likewise.
5887 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5888 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5889 * ipa-inline.c (reset_edge_caches): Likewise.
5890 (update_caller_keys): Likewise.
5891 (execute): Likewise.
5892 * ipa-prop.c (remove_described_reference): Likewise.
5893 (propagate_controlled_uses): Likewise.
5894 (ipa_edge_duplication_hook): Likewise.
5895 (ipa_modify_call_arguments): Likewise.
5896 * ipa-pure-const.c (propagate_pure_const): Likewise.
5897 * ipa-ref-inline.h: Header file removed, functions moved
5898 to symtab_node class.
5899 * ipa-ref.c (remove_reference): New class member function.
5900 (cannot_lead_to_return): New class member function.
5901 (referring_ref_list): Likewise.
5902 (referred_ref_list): Likewise.
5903 Rest of functions moved to symtab_node class.
5904 * ipa-ref.h: New member functions remove_reference,
5905 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5907 ipa_ref_list class has new member functions: first_reference,
5908 first_referring, clear, nreferences.
5909 * ipa-reference.c (analyze_function): New IPA REF function used.
5910 (write_node_summary_p): Likewise.
5911 (ipa_reference_write_optimization_summary): Likewise.
5912 * ipa-split.c (split_function): Likewise.
5913 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5914 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5915 (function_and_variable_visibility): Likewise.
5916 * ipa.c (has_addr_references_p): Likewise.
5917 (process_references): Argument type changed.
5918 (symtab_remove_unreachable_nodes): New IPA REF function used.
5919 (process_references): Likewise.
5920 (set_writeonly_bit): Likewise.
5921 * lto-cgraph.c: Implementation of new symtab_node member functions
5922 that uses new IPA REF functions.
5923 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5925 * lto-streamer-out.c (output_symbol_p): Likewise.
5926 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5928 * symtab.c: Implementation of new IPA REF API.
5929 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5930 (ipa_tm_create_version): Likewise.
5931 (ipa_tm_execute): Likewise.
5932 * tree-emutls.c (gen_emutls_addr): Likewise.
5933 * tree-inline.c (copy_bb): Likewise.
5934 (delete_unreachable_blocks_update_callgraph): Likewise.
5935 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5936 (varpool_for_node_and_aliases): Likewise.
5938 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5940 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5942 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5945 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5946 tree_node * instead of tree_node *.
5948 (print_fold_checksum): Likewise.
5949 (fold_check_failed): Likewise.
5950 (debug_fold_checksum): Likewise.
5951 (fold_build1_stat_loc): Likewise.
5952 (fold_build2_stat_loc): Likewise.
5953 (fold_build3_stat_loc): Likewise.
5954 (fold_build_call_array_loc): Likewise.
5956 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5958 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5959 implementation with call to...
5960 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5962 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5965 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5967 PR tree-optimization/57742
5968 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5969 after replacing the statement.
5971 2014-06-25 Nick Clifton <nickc@redhat.com>
5973 * config/v850/v850.c (GHS_default_section_names): Change to const
5975 (GHS_current_section_names): Likewise.
5976 (v850_insert_attributes): Do not build strings, just assign the
5977 names directly. Change the type of 'chosen_section' to const
5979 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5980 directly to the array entry.
5981 * config/v850/v850.h (GHS_default_section_names): Change to const
5983 (GHS_current_section_names): Likewise.
5985 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5987 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5988 (LANG_HOOKS_DECLS): Add it.
5989 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5991 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5992 * langhooks.h (struct lang_hooks_for_decls): Add
5993 omp_clause_linear_ctor hook.
5994 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5995 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5996 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5997 combined simd loop use omp_clause_linear_ctor hook.
5999 2014-06-24 Cong Hou <congh@google.com>
6001 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6002 pattern recognition.
6003 (type_conversion_p): PROMOTION is true if it's a type promotion
6004 conversion, and false otherwise. Return true if the given expression
6005 is a type conversion one.
6006 * tree-vectorizer.h: Adjust the number of patterns.
6007 * tree.def: Add SAD_EXPR.
6008 * optabs.def: Add sad_optab.
6009 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6010 * expr.c (expand_expr_real_2): Likewise.
6011 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6012 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6013 * optabs.c (optab_for_tree_code): Likewise.
6014 * tree-cfg.c (estimate_operator_cost): Likewise.
6015 * tree-ssa-operands.c (get_expr_operands): Likewise.
6016 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6017 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6018 * doc/generic.texi: Add document for SAD_EXPR.
6019 * doc/md.texi: Add document for ssad and usad.
6021 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6023 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6024 qualification in cast.
6026 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6028 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6029 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6030 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6031 (tree_function_decl): ... here.
6032 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6033 streaming of vindex to ...
6034 (write_ts_function_decl_tree_pointers): ... here.
6035 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6036 Do not stream DECL_VINDEX.
6037 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6039 2014-06-24 Catherine Moore <clm@codesourcery.com>
6040 Sandra Loosemore <sandra@codesourcery.com>
6042 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6043 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6044 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6046 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6048 * doc/invoke.texi (Warning Options): Remove duplicated
6049 -Wmaybe-uninitialized.
6051 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6053 PR tree-optimization/57742
6054 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6055 (handle_builtin_malloc, handle_builtin_memset): New functions.
6056 (strlen_optimize_stmt): Call them.
6057 * passes.def: Move strlen after loop+dom but before vrp.
6059 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6062 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6063 model family 6 CPU with has_longmode never use a CPU without
6066 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6069 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6072 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6074 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6075 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6077 * hash-map.h: New file.
6078 * ipa-comdats.c: Use hash_map instead of pointer_map.
6080 * lto-section-out.c: Adjust.
6081 * lto-streamer.h: Replace pointer_map with hash_map.
6082 * symtab.c (verify_symtab): Likewise.
6083 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6084 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6085 * tree-streamer.h: Likewise.
6086 * tree-streamer.c: Adjust.
6087 * pointer-set.h: Remove pointer_map.
6089 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6091 * hash-table.h: Add a template arg to choose between storing values
6092 and storing pointers to values, and then provide partial
6093 specializations for both.
6094 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6095 should store, not the type values should point to.
6096 * tree-into-ssa.c (var_info_hasher): Likewise.
6097 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6098 * tree-complex.c: Adjust.
6099 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6100 table instead of int_tree_map *.
6101 * tree-parloops.c: Adjust.
6102 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6103 type is being stored.
6104 * tree-vectorizer.c: Adjust.
6106 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6108 * hash-table.h: Remove a layer of indirection from hash_table so that
6109 it contains the hash table's data instead of a pointer to the data.
6110 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6111 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6112 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6113 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6114 fold-const.c, gcse.c, ggc-common.c,
6115 gimple-ssa-strength-reduction.c, gimplify.c,
6116 graphite-clast-to-gimple.c, graphite-dependences.c,
6117 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6118 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6119 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6120 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6121 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6122 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6123 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6124 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6125 tree-ssa-live.c, tree-ssa-loop-im.c,
6126 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6127 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6128 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6129 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6130 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6131 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6132 vtable-verify.c, vtable-verify.h: Adjust.
6134 2014-06-24 Richard Biener <rguenther@suse.de>
6136 PR tree-optimization/61572
6137 * tree-ssa-sink.c (statement_sink_location): Do not sink
6138 loads from hard registers.
6140 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6142 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6143 not mentioned in clauses use private clause if the iterator is
6144 declared in #pragma omp for simd, and when adding lastprivate
6145 instead, add it to the outer #pragma omp for too. Diagnose
6146 if the variable is private in outer context. For simd collapse > 1
6147 loops, replace all iterators with temporaries.
6148 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6149 same even in collapse > 1 loops.
6151 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6152 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6154 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6155 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6157 (gimplify_adjust_omp_clauses): Likewise.
6158 * omp-low.c (lower_rec_simd_input_clauses,
6159 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6160 safelen the same as safelen(1).
6161 * tree-nested.c (convert_nonlocal_omp_clauses,
6162 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6163 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6164 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6165 Fixup handling of GIMPLE_OMP_TARGET.
6166 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6169 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6171 PR tree-optimization/61554
6172 * tree-ssa-propagate.c: Include "bitmap.h".
6173 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6174 properly update constructor/destructor.
6175 (substitute_and_fold_dom_walker::before_dom_children):
6176 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6177 need_eh_cleaup instead.
6178 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6181 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6183 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6184 * tree-pass.h (make_pass_ipa_single_use): New pass.
6185 * cgraph.h (used_by_single_function): New flag.
6186 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6188 * passes.def (pass_ipa_single_use): Scedule.
6189 * ipa.c (BOTTOM): New macro.
6190 (meet): New function
6191 (propagate_single_user): New function.
6192 (ipa_single_use): New function.
6193 (pass_data_ipa_single_use): New pass.
6194 (pass_ipa_single_use): New pass.
6195 (pass_ipa_single_use::gate): New gate.
6196 (make_pass_ipa_single_use): New function.
6198 2014-06-23 Kai Tietz <ktietz@redhat.com>
6201 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6202 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6204 2014-06-23 Richard Biener <rguenther@suse.de>
6206 * tree-ssa-loop.c (gate_loop): New function.
6207 (pass_tree_loop::gate): Call it.
6208 (pass_data_tree_no_loop, pass_tree_no_loop,
6209 make_pass_tree_no_loop): New.
6210 * tree-vectorizer.c: Include tree-scalar-evolution.c
6211 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6213 (pass_slp_vectorize::clone): New method.
6214 * timevar.def (TV_TREE_NOLOOP): New.
6215 * tree-pass.h (make_pass_tree_no_loop): Declare.
6216 * passes.def (pass_tree_no_loop): New pass group with
6219 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6222 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6223 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6225 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6227 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6230 2014-06-23 Alan Modra <amodra@gmail.com>
6233 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6234 to zero on debug statements.
6236 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6239 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6240 Ignore third operand if present by marking qualifier_internal.
6242 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6244 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6246 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6247 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6248 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6249 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6250 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6251 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6252 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6253 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6254 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6255 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6256 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6257 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6258 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6259 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6260 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6261 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6262 logic in GCC vector extensions
6264 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6265 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6266 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6267 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6268 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6269 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6270 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6271 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6272 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6273 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6275 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6277 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6280 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6281 (vget_low_s64): Use __GET_LOW macro.
6282 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6283 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6284 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6285 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6286 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6288 (vcombine_s64): Use GCC vector extensions; remove cast.
6289 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6290 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6291 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6292 Fix type signature; remove cast.
6294 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6297 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6299 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6302 (BUILTIN_VD_RE): Remove.
6303 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6304 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6305 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6307 (vreinterpretv1df*, vreinterpret*v1df): New.
6308 (vreinterpretdf*, vreinterpret*df): Remove.
6309 * config/aarch64/aarch64-simd.md (aarch64_create,
6310 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6311 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6313 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6314 (vcreate_f64): Remove cast, use v1df builtin.
6315 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6316 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6317 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6318 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6319 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6320 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6321 add range check using __builtin_aarch64_im_lane_boundsi.
6322 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6323 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6324 type signature, use gcc vector extensions.
6325 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6326 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6327 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6328 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6329 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6330 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6331 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6332 vreinterpret_u64_f64): Use v1df builtin not df.
6334 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6336 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6339 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6341 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6344 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6346 * loop-invariant.c (pre_check_invariant_p): New function.
6347 (find_invariant_insn): Call pre_check_invariant_p.
6349 2014-06-22 Richard Henderson <rth@redhat.com>
6352 * compare-elim.c (struct comparison): Add eh_note.
6353 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6354 a redundant comparison in a different EH region. Purge EH edges if
6357 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6359 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6360 (var_shift): Use it.
6361 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6362 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6363 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6364 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6365 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6366 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6367 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6368 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6369 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6370 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6371 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6372 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6373 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6374 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6375 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6376 *rotldi3_internal15be): Use the new attribute. Merge register and
6377 integer alternatives.
6379 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6381 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6382 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6383 split, *ashrdi3_internal3 and split): Delete, merge into...
6384 (ashr<mode>3): New expander.
6385 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6386 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6388 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6390 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6391 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6392 *rotldi3_internal3 and split): Delete, merge into...
6393 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6394 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6395 Use "rotlw" extended mnemonic.
6397 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6399 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6400 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6401 and split, *ashldi3_internal3 and split): Delete, merge into...
6402 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6403 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6405 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6407 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6408 (lshrsi3, two anonymous define_insns and define_splits,
6409 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6410 *lshrdi3_internal3 and split): Delete, merge into...
6411 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6412 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6414 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6416 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6417 Remove "O" alternative.
6419 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6421 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6422 (mips_move_from_gpr_cost): Likewise.
6423 (mips_register_move_cost): Update accordingly.
6424 (mips_secondary_reload_class): Remove name of in_p.
6426 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6429 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6430 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6432 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6434 * config/nios2/nios2.c: Include "builtins.h".
6436 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6438 * cgraph.h (tls_model_names): New variable.
6439 * print-tree.c (print_node): Simplify.
6440 * varpool.c (tls_model_names): New variable.
6441 (dump_varpool_node): Output tls model.
6443 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6445 * ipa-visibility.c (function_and_variable_visibility): Disable
6446 temporarily local aliases for some targets.
6448 2014-06-20 Marek Polacek <polacek@redhat.com>
6450 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6451 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6452 into SANITIZE_UNDEFINED.
6453 * doc/invoke.texi: Describe -fsanitize=bounds.
6454 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6455 functions created in the FEs.
6456 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6457 (expand_UBSAN_BOUNDS): New function.
6458 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6459 * internal-fn.h: Don't define internal functions here.
6460 * opts.c (common_handle_option): Add -fsanitize=bounds.
6461 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6462 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6463 * tree-core.h: Define internal functions here.
6464 (struct tree_base): Add ifn field.
6465 * tree-pretty-print.c: Include "internal-fn.h".
6466 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6467 * tree.c (get_callee_fndecl): Likewise.
6468 (build_call_expr_internal_loc): New function.
6469 * tree.def (CALL_EXPR): Update description.
6470 * tree.h (CALL_EXPR_IFN): Define.
6471 (build_call_expr_internal_loc): Declare.
6472 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6474 (ubsan_type_descriptor): Change bool parameter to enum
6475 ubsan_print_style. Adjust the code. Add handling of
6477 (ubsan_expand_bounds_ifn): New function.
6478 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6479 (ubsan_build_overflow_builtin): Likewise.
6480 (instrument_bool_enum_load): Likewise.
6481 (ubsan_instrument_float_cast): Likewise.
6482 * ubsan.h (enum ubsan_print_style): New enum.
6483 (ubsan_expand_bounds_ifn): Declare.
6484 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6486 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6488 * config/rs6000/rs6000.md: Append `DONE' to preparation
6489 statements of `bswap' pattern splitters.
6491 2014-06-20 Tom de Vries <tom@codesourcery.com>
6493 * target.def (call_fusage_contains_non_callee_clobbers): Update
6495 * doc/tm.texi: Regenerate.
6497 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6498 Max Ostapenko <m.ostapenko@partner.samsung.com>
6501 * asan.c (instrument_strlen_call): Fixed instrumentation of
6504 2014-06-20 Martin Jambor <mjambor@suse.cz>
6507 * ipa-prop.c (impossible_devirt_target): New function.
6508 (try_make_edge_direct_virtual_call): Use it, also instead of
6511 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6512 Max Ostapenko <m.ostapenko@partner.samsung.com>
6515 * asan.c (build_check_stmt): Add condition.
6517 2014-06-20 Martin Jambor <mjambor@suse.cz>
6520 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6523 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6525 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6527 (VCONQ): Make comment more helpful.
6529 * config/aarch64/aarch64-simd.md
6530 (aarch64_sqdmulh_lane<mode>):
6531 Use VCOND for operands 2. Update lane checking and flipping logic.
6532 (aarch64_sqrdmulh_lane<mode>): Likewise.
6533 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6534 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6535 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6536 attribute of operand 3 to VCOND.
6537 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6538 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6539 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6540 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6541 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6542 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6544 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6545 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6546 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6547 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6548 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6549 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6550 operand to VCOND. Update lane flipping and bounds checking logic.
6551 (aarch64_sqdmlal2_lane<mode>): Likewise.
6552 (aarch64_sqdmlsl_lane<mode>): Likewise.
6553 (aarch64_sqdmull_lane<mode>): Likewise.
6554 (aarch64_sqdmull2_lane<mode>): Likewise.
6555 (aarch64_sqdmlal_laneq<mode>):
6556 Replace VCON usage with VCONQ.
6557 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6558 (aarch64_sqdmlal2_laneq<mode>): Emit
6559 aarch64_sqdmlal2_laneq<mode>_internal insn.
6560 Replace VCON with VCONQ.
6561 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6562 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6563 (aarch64_sqdmull_laneq<mode>): Emit
6564 aarch64_sqdmull_laneq<mode>_internal insn.
6565 Replace VCON with VCONQ.
6566 (aarch64_sqdmull2_laneq<mode>): Emit
6567 aarch64_sqdmull2_laneq<mode>_internal insn.
6568 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6569 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6570 of 3rd argument to int16x4_t.
6571 (vqdmlalh_lane_s16): Likewise.
6572 (vqdmlslh_lane_s16): Likewise.
6573 (vqdmull_high_lane_s16): Likewise.
6574 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6575 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6576 (vqdmlsl_lane_s16): Likewise.
6577 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6578 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6579 (vqdmlals_lane_s32): Likewise.
6580 (vqdmlsls_lane_s32): Likewise.
6581 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6582 (vqdmulls_lane_s32): Likewise.
6583 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6584 (vqdmlsl_lane_s32): Likewise.
6585 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6586 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6587 (vqrdmulhh_lane_s16): Likewise.
6588 (vqdmlsl_high_lane_s16): Likewise.
6589 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6590 (vqdmlsl_high_lane_s32): Likewise.
6591 (vqrdmulhs_lane_s32): Likewise.
6593 2014-06-20 Tom de Vries <tom@codesourcery.com>
6595 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6596 get_call_reg_set_usage.
6598 2014-06-20 Tom de Vries <tom@codesourcery.com>
6600 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6601 it contains all call_used_regs.
6603 2014-06-20 Tom de Vries <tom@codesourcery.com>
6605 * final.c (collect_fn_hard_reg_usage): Add and use variable
6608 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6610 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6611 (set_init_priority, get_init_priority, set_fini_priority,
6612 get_fini_priority): New methods.
6613 * tree.c (init_priority_for_decl): Remove.
6614 (init_ttree): Do not initialize init priority.
6615 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6616 (decl_priority_info): Remove.
6617 (decl_init_priority_insert): Rewrite.
6618 (decl_fini_priority_insert): Rewrite.
6619 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6620 tree_priority_map_marked_p): Remove.
6621 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6622 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6623 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6624 not output priorities.
6625 (pack_ts_function_decl_value_fields): Likewise.
6626 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6627 not input priorities.
6628 (unpack_ts_function_decl_value_fields): Likewise.
6629 * symtab.c (symbol_priority_map): Declare.
6630 (init_priority_hash): Declare.
6631 (symtab_unregister_node): Unregister from priority hash, too.
6632 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6634 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6635 (symbol_priority_info): New function.
6636 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6638 * tree-core.h (tree_priority_map): Remove.
6640 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6642 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6643 0xff to uint64_t before shifting it up.
6645 2014-06-20 Julian Brown <julian@codesourcery.com>
6646 Chung-Lin Tang <cltang@codesourcery.com>
6648 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6649 TARGET_THUMB1_ONLY. Add comments.
6651 2014-06-19 Tom de Vries <tom@codesourcery.com>
6653 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6654 return type to void.
6655 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6657 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6659 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6660 as "move", from depends_on.
6662 2014-06-19 Terry Guo <terry.guo@arm.com>
6664 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6667 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6669 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6671 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6673 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6676 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6677 addresses here if reload in progress or completed.
6679 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6681 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6682 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6683 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6684 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6685 (mips_register_priority): New function that implements the target
6686 hook TARGET_REGISTER_PRIORITY.
6687 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6688 (mips_lra_p): Likewise for TARGET_LRA_P.
6689 (TARGET_REGISTER_PRIORITY): Define macro.
6690 (TARGET_SPILL_CLASS): Likewise.
6691 (TARGET_LRA_P): Likewise.
6692 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6694 (REG_CLASS_NAMES): Likewise.
6695 (REG_CLASS_CONTENTS): Likewise.
6696 (BASE_REG_CLASS): Use M16_SP_REGS.
6697 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6698 New set attribute to enable alternatives depending on the register
6700 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6701 (*lea64): Disable pattern for MIPS16.
6702 * config/mips/mips.opt (mlra): New option.
6704 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6706 * lra-constraints.c (base_to_reg): New function.
6707 (process_address): Use new function.
6709 2014-06-18 Tom de Vries <tom@codesourcery.com>
6711 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6712 * config/aarch64/aarch64.c
6713 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6714 (aarch64_emit_call_insn): New function.
6715 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6717 * config/aarch64/aarch64.md (define_expand "call_internal")
6718 (define_expand "call_value_internal", define_expand "sibcall_internal")
6719 (define_expand "sibcall_value_internal"): New.
6720 (define_expand "call", define_expand "call_value")
6721 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6722 expand variant and aarch64_emit_call_insn.
6724 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6725 Tom de Vries <tom@codesourcery.com>
6727 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6728 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6730 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6731 clobbers to CALL_INSN_FUNCTION_USAGE.
6732 (define_expand "sibcall_internal")
6733 (define_expand "sibcall_value_internal"): New.
6734 (define_expand "call", define_expand "call_value"): Add argument to
6736 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6737 (define_expand "sibcall_value"): Use sibcall_value_internal and
6740 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6742 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6744 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6746 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6749 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6751 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6752 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6753 annotations. Fix DWARF information.
6755 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6757 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6758 __udivmoddi4, and fixups for negative operands.
6760 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6762 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6764 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6766 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6769 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6771 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6774 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6776 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6777 describing register usage on function entry and exit.
6779 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6781 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6782 (__aeabi_ldivmod): Fix whitespace.
6784 2014-06-18 Andreas Schwab <schwab@suse.de>
6786 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6787 Remove blank line after @item.
6789 2014-06-18 Richard Henderson <rth@redhat.com>
6792 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6794 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6796 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6797 POST_MODIFY for neon loads and stores.
6798 (arm_print_operand): Output post-index register for neon loads and
6801 2014-06-18 Richard Biener <rguenther@suse.de>
6803 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6805 2014-06-18 Richard Biener <rguenther@suse.de>
6807 * tree-pass.h (make_pass_dce_loop): Remove.
6808 * passes.def: Replace pass_dce_loop with pass_dce.
6809 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6810 changed free niter estimates and reset the scev cache.
6811 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6812 make_pass_dce_loop): Remove.
6813 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6814 (fini_copy_prop): Return whether something changed. Always
6815 let substitute_and_fold perform DCE and free niter estimates
6816 and reset the scev cache if so.
6817 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6818 (pass_data_copy_prop): Do not unconditionally schedule
6819 cleanup-cfg or update-ssa.
6821 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6823 PR tree-optimization/61518
6824 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6825 reduction var is used in reduction stmt or phi-function only.
6827 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6829 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6831 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6833 PR tree-optimization/61517
6834 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6835 whose rhs's first tree is the source expression instead of the
6837 (find_bswap_or_nop): Likewise.
6838 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6839 gimple stmt whose rhs's first tree is the source. In the memory source
6840 case, move the stmt to be replaced close to one of the original load to
6841 avoid the problem of a store between the load and the stmt's original
6843 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6846 2014-06-18 Andreas Schwab <schwab@suse.de>
6848 PR rtl-optimization/54555
6849 * postreload.c (move2add_use_add2_insn): Substitute
6850 STRICT_LOW_PART only if it is cheaper.
6852 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6854 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6855 Do not use unspec as call operand. Use memory_operand instead of
6856 memory_nox32_operand and add "m" operand constraint. Disable
6857 pattern for TARGET_X32.
6858 (*sibcall_pop_memory): Ditto.
6859 (*sibcall_value_memory): Ditto.
6860 (*sibcall_value_pop_memory): Ditto.
6861 (sibcall peepholes): Merge SImode and DImode patterns using
6862 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6863 Disable pattern for TARGET_X32. Check if eliminated register is
6864 really dead after call insn. Generate call RTX without unspec operand.
6865 (sibcall_value peepholes): Ditto.
6866 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6867 instead of memory_nox32_operand. Check if eliminated register is
6868 really dead after call insn. Generate call RTX without unspec operand.
6869 (sibcall_value_pop peepholes): Ditto.
6870 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6872 2014-06-18 Terry Guo <terry.guo@arm.com>
6875 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6878 2014-06-18 Olivier Hainque <hainque@adacore.com>
6880 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6881 memorization of the end of block source location.
6882 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6883 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6884 end source location info we have on the block entry/exit code we
6887 2014-06-18 Richard Biener <rguenther@suse.de>
6889 * common.opt (fssa-phiopt): New option.
6890 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6892 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6893 * doc/invoke.texi (-fssa-phiopt): Document.
6895 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6897 * genattrtab.c (n_bypassed): New variable.
6898 (process_bypasses): Initialise n_bypassed.
6899 Count number of bypassed reservations.
6900 (make_automaton_attrs): Allocate space for bypassed reservations
6901 rather than number of bypasses.
6903 2014-06-18 Richard Biener <rguenther@suse.de>
6905 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6906 we propagated anything.
6907 (substitute_and_fold_dom_walker::before_dom_children): Something
6908 changed if we propagated into PHI arguments.
6909 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6912 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6914 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6916 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6917 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6918 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6919 Introduces alternative way of loads group permutaions.
6920 (vect_transform_grouped_load): Try alternative way of permutations.
6922 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6924 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6925 changed in ORT_TARGET region, don't jump to do_outer.
6926 (struct gimplify_adjust_omp_clauses_data): New type.
6927 (gimplify_adjust_omp_clauses_1): Adjust for data being
6928 a struct gimplify_adjust_omp_clauses_data pointer instead
6929 of tree *. Pass pre_p as a new argument to
6930 lang_hooks.decls.omp_finish_clause hook.
6931 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6932 splay_tree_foreach to pass both list_p and pre_p.
6933 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6934 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6935 gimplify_adjust_omp_clauses callers.
6936 * langhooks.c (lhd_omp_finish_clause): New function.
6937 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6938 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6939 * langhooks.h (struct lang_hooks_for_decls): Add a new
6940 gimple_seq * argument to omp_finish_clause hook.
6941 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6942 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6943 (scan_omp_parallel, lower_omp_for): When adding
6944 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6945 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6946 * tree-nested.c (convert_nonlocal_omp_clauses,
6947 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6948 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6950 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6952 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6953 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6955 2014-06-17 Xinliang David Li <davidxl@google.com>
6957 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6958 * passes.c (pass_init_dump_file): Do not set initialize
6959 flag to false unconditionally.
6961 2014-06-17 Richard Biener <rguenther@suse.de>
6963 * genopinit.c (main): Use vec<>::qsort method.
6964 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6966 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6968 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6970 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6971 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6972 (mips_move_to_gpr_cost): Remove ST_REGS case.
6973 (mips_move_from_gpr_cost): Likewise.
6974 (mips_register_move_cost): Likewise.
6975 (mips_secondary_reload_class): Likewise.
6977 2014-06-17 Richard Biener <rguenther@suse.de>
6979 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6980 (pass_all_optimizations): Move 3rd copy-prop pass from after
6981 fre to before ifcombine/phiopt.
6983 2014-06-17 Richard Biener <rguenther@suse.de>
6985 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6986 and allow all blocks to be forwarders.
6988 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6991 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6992 variable 'size'; calculate 'size' right in the front; use
6993 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6994 pcum->aapcs_stack_words.
6996 2014-06-17 Nick Clifton <nickc@redhat.com>
6998 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6999 (umulhi3, mulsidi3, umulsidi3): Likewise.
7001 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7004 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7005 check for section name.
7007 2014-06-17 Richard Biener <rguenther@suse.de>
7009 * tree-ssa-propagate.c: Include domwalk.h.
7010 (substitute_and_fold): Outline main worker into a domwalker ...
7011 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7012 Schedule stmts we can fully propagate for removal. Remove
7014 (substitute_and_fold): Apply a dominator walk to perform
7015 substitution. Process stmts scheduled for removal here.
7017 2014-06-17 Richard Biener <rguenther@suse.de>
7019 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7022 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7024 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7025 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7026 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7027 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7028 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7030 (get_fpscr) : Likewise.
7032 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7034 PR rtl-optimization/61325
7035 * lra-constraints.c (valid_address_p): Add forward declaration.
7036 (simplify_operand_subreg): Check address validity before and after
7037 alter_reg of memory subreg.
7039 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7041 * config/i386/i386.c (decide_alg): Correctly handle
7042 maximum size of stringop algorithm.
7044 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7046 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7048 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7050 PR rtl-optimization/61522
7051 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7053 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7056 * symtab.c (symtab_node::reset_section): New method.
7057 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7059 * cgraph.h (reset_section): Declare.
7060 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7061 do not consider comdat locals.
7062 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7064 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7065 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7066 reset sections of symbols dragged out of the comdats.
7067 (function_and_variable_visibility): Reset sections of
7070 2014-06-16 Richard Biener <rguenther@suse.de>
7072 PR tree-optimization/61482
7073 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7074 [-INF(OVF), +INF(OVF)] range.
7076 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7078 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7079 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7080 handling 32-bit multiplication.
7082 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7085 * lra-lives.c (process_bb_lives): Skip creating copy during
7086 insn scan when src/dest has constrained to same regno.
7088 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7090 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7091 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7093 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7095 * asan.c (check_func): New function.
7096 (maybe_create_ssa_name): Likewise.
7097 (build_check_stmt_with_calls): Likewise.
7098 (use_calls_p): Likewise.
7099 (report_error_func): Change interface.
7100 (build_check_stmt): Allow non-integer lengths; add support
7102 (asan_instrument): Likewise.
7103 (instrument_mem_region_access): Moved code to build_check_stmt.
7104 (instrument_derefs): Likewise.
7105 (instrument_strlen_call): Likewise.
7106 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7107 * doc/invoke.texi: Describe new parameter.
7108 * params.def: Define new parameter.
7109 * params.h: Likewise.
7110 * sanitizer.def: Describe new builtins.
7112 2014-06-16 Richard Biener <rguenther@suse.de>
7114 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7115 Make all defs available at the end.
7116 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7118 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7121 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7123 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7126 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7127 initialization. Replace remaining use of uid.
7129 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7131 * c-family/c-common.c (handle_tls_model_attribute): Use
7133 * c-family/c-common.c (handle_tls_model_attribute): Use
7135 * cgraph.h (struct varpool_node): Add tls_model.
7136 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7137 * tree.h (DECL_TLS_MODEL): Update.
7138 (DECL_THREAD_LOCAL_P): Check that variable is static.
7139 (decl_tls_model): Declare.
7140 (set_decl_tls_model): Declare.
7141 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7142 set symbol prorperties.
7143 (get_emutls_init_templ_addr): Cleanup.
7144 (new_emutls_decl): Update.
7145 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7146 (lto_input_varpool_node): Likewise.
7147 * lto-streamer-out.c (hash_tree): Likewise.
7148 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7149 not stream DECL_TLS_MODEL.
7150 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7151 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7153 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7155 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7157 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7159 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7160 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7162 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7163 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7164 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7165 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7166 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7167 (df_get_artificial_defs, df_get_artificial_uses)
7168 (df_single_def, df_single_use): Update accordingly.
7169 (df_refs_chain_dump): Take the first element in a linked list as
7170 parameter, rather than a pointer to an array of pointers.
7171 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7172 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7173 (df_chain_create_bb_process_use): Likewise.
7174 (df_md_bb_local_compute_process_def): Likewise.
7175 * fwprop.c (process_defs, process_uses): Likewise.
7176 (register_active_defs, update_uses): Likewise.
7177 (forward_propagate_asm): Update for new df_ref linking.
7178 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7179 (df_null_ref_rec, df_null_mw_rec): Likewise.
7180 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7182 (df_scan_free_bb_info): Remove check for null artificial_defs.
7183 (df_install_ref_incremental): Adjust for new df_ref linking.
7184 Use a single-element insertion rather than a full sort.
7185 (df_ref_chain_delete_du_chain): Take the first element
7186 in a linked list as parameter, rather than a pointer to an array of
7188 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7189 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7190 (df_insn_info_delete): Remove check for null defs and call to
7191 df_scan_free_mws_vec.
7192 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7193 null rather than df_null_*_rec.
7194 (df_insn_rescan_debug_internal): Likewise, and update null
7195 checks in the same way. Remove check for null defs.
7196 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7197 Move a single element rather doing a full sort.
7198 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7200 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7201 Initialize df_ref and df_mw_hardreg lists to null rather than
7203 (df_ref_compare): Take df_refs as parameter, transferring the
7205 (df_ref_ptr_compare): ...this new function.
7206 (df_sort_and_compress_refs): Update accordingly.
7207 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7209 (df_mw_ptr_compare): ...this new function.
7210 (df_sort_and_compress_mws): Update accordingly.
7211 (df_install_refs, df_install_mws): Return a linked list rather than
7212 an array of pointers.
7213 (df_refs_add_to_chains): Assert that old lists are empty rather
7215 (df_insn_refs_verify): Don't handle null defs speciailly.
7216 * web.c (union_match_dups): Update for new df_ref linking.
7218 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7220 * df.h (df_ref_create, df_ref_remove): Delete.
7221 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7222 (df_ref_remove): Likewise.
7224 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7226 * df.h (df_single_def, df_single_use): New functions.
7227 * ira.c (find_moveable_pseudos): Use them.
7229 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7231 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7232 * df-problems.c (df_note_bb_compute): Use it.
7233 * regstat.c (regstat_bb_compute_ri): Likewise.
7235 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7237 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7238 * cse.c (cse_extended_basic_block): Use them.
7239 * dce.c (mark_artificial_use): Likewise.
7240 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7241 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7242 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7243 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7244 (df_simulate_initialize_backwards): Likewise.
7245 (df_simulate_finalize_backwards): Likewise.
7246 (df_simulate_initialize_forwards): Likewise.
7247 (df_md_simulate_artificial_defs_at_top): Likewise.
7248 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7249 * regrename.c (init_rename_info): Likewise.
7250 * regstat.c (regstat_bb_compute_ri): Likewise.
7251 (regstat_bb_compute_calls_crossed): Likewise.
7253 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7255 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7256 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7257 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7258 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7259 * combine.c (create_log_links): Likewise.
7260 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7261 (try_eliminate_compare): Likewise.
7262 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7263 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7264 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7265 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7266 (word_dce_process_block, dce_process_block): Likewise.
7267 * ddg.c (def_has_ccmode_p): Likewise.
7268 * df-core.c (df_bb_regno_first_def_find): Likewise.
7269 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7270 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7271 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7272 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7273 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7274 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7275 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7276 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7277 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7278 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7279 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7280 * fwprop.c (local_ref_killed_between_p): Likewise.
7281 (all_uses_available_at, free_load_extend): Likewise.
7282 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7283 * hw-doloop.c (scan_loop): Likewise.
7284 * ifcvt.c (dead_or_predicable): Likewise.
7285 * init-regs.c (initialize_uninitialized_regs): Likewise.
7286 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7287 (process_bb_node_lives): Likewise.
7288 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7289 (find_moveable_pseudos): Likewise.
7290 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7291 * recog.c (peep2_find_free_register): Likewise.
7292 * ree.c (get_defs): Likewise.
7293 * regstat.c (regstat_bb_compute_ri): Likewise.
7294 (regstat_bb_compute_calls_crossed): Likewise.
7295 * sched-deps.c (find_inc, find_mem): Likewise.
7296 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7297 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7298 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7299 (prepare_shrink_wrap): Likewise.
7300 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7301 * web.c (union_defs, pass_web::execute): Likewise.
7302 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7303 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7305 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7307 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7308 to inheritance pseudos.
7309 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7311 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7314 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7315 (BU_MISC_2): Rename to ...
7316 (BU_LDBL128_2): ... this.
7317 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7318 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7319 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7321 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7322 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7323 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7324 (unpacktf_1): Likewise.
7325 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7326 (__builtin_longdouble_dw1): Likewise.
7327 * doc/sourcebuild.texi (longdouble128): Document.
7329 2014-06-13 Jeff Law <law@redhat.com>
7331 PR rtl-optimization/61094
7332 PR rtl-optimization/61446
7333 * ree.c (combine_reaching_defs): Get the mode for the copy from
7334 the extension insn rather than the defining insn.
7336 2014-06-13 Dehao Chen <dehao@google.com>
7338 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7340 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7342 * doc/install.texi (--enable-linker-plugin-configure-flags)
7343 (--enable-linker-plugin-flags): Document new flags.
7345 2014-06-13 Martin Jambor <mjambor@suse.cz>
7348 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7349 cache_token if returning early.
7351 2014-06-13 Nick Clifton <nickc@redhat.com>
7353 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7354 requested alignment is active.
7355 (LABEL_ALIGN): Likewise.
7356 (LOOP_ALIGN): Likewise.
7358 2014-06-13 Richard Biener <rguenther@suse.de>
7360 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7361 Rewrite to propagate the VN result into all uses where
7362 possible and to remove stmts becoming dead because of that.
7363 (eliminate): Generalize stmt removal handling, remove in
7364 reverse dominator order to support proper debug stmt
7365 generation. Update stmts before removing stmts.
7366 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7368 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7370 PR tree-optimization/61375
7371 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7372 symbolic number cannot be represented in an uint64_t.
7373 (find_bswap_or_nop_1): Likewise.
7375 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7377 * symtab.c (symtab_node::reset_section): New method.
7378 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7380 * cgraph.h (reset_section): Declare.
7381 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7382 do not consider comdat locals.
7383 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7385 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7386 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7387 reset sections of symbols dragged out of the comdats.
7388 (function_and_variable_visibility): Reset sections of
7391 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7393 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7394 to use symtab and decl_binds_to_current_def_p
7395 * tree-vectorizer.c (increase_alignment): Increase alignment
7396 of alias target, too.
7398 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7401 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7402 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7403 if outer combined construct is distribute.
7404 (gimplify_omp_for): For OMP_DISTRIBUTE set
7405 gimplify_omp_ctxp->distribute.
7406 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7407 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7408 mapping into decl map.
7410 2014-06-12 Jason Merrill <jason@redhat.com>
7412 * common.opt (fabi-version): Change default to 0.
7414 2014-06-12 Jason Merrill <jason@redhat.com>
7416 * toplev.c (process_options): Reject -fabi-version=1.
7418 2014-06-12 Jeff Law <law@redhat.com>
7420 PR tree-optimization/61009
7421 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7422 value when we stop processing a block due to problematic PHIs.
7424 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7426 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7427 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7428 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7429 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7430 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7431 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7432 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7433 are not in the spec.
7435 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7438 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7439 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7442 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7444 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7446 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7449 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7450 loading from address spaces.
7452 2014-06-12 Martin Liska <mliska@suse.cz>
7455 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7456 statement is reachable.
7458 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7460 * symtab.c (section_hash): New hash.
7461 (symtab_unregister_node): Clear section before freeing.
7462 (hash_section_hash_entry): New haser.
7463 (eq_sections): New function.
7464 (symtab_node::set_section_for_node): New method.
7465 (set_section_1): Update.
7466 (symtab_node::set_section): Take string instead of tree as parameter.
7467 (symtab_resolve_alias): Update.
7468 * cgraph.h (section_hash_entry_d): New structure.
7469 (section_hash_entry): New typedef.
7470 (cgraph_node): Change comdat_group_ to x_comdat_group,
7471 change section_ to x_section and turn into section_hash_entry;
7472 update accestors; put set_section_for_node offline.
7473 * tree.c (decl_section_name): Turn into string.
7474 (set_decl_section_name): Change parameter to be string.
7475 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7476 * sdbout.c (sdbout_one_type): Update.
7477 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7478 * varasm.c (IN_NAMED_SECTION, get_named_section,
7479 resolve_unique_section, hot_function_section, get_named_text_section,
7480 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7481 make_decl_rtl, default_unique_section): Update.
7482 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7483 (c6x_elf_unique_section): Update.
7484 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7485 * config/pa/pa.c (pa_function_section): Update.
7486 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7487 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7488 * config/arc/arc.c (arc_in_small_data_p): Update.
7489 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7490 * config/mcore/mcore.c (mcore_unique_section): Update.
7491 * config/mips/mips.c (mips16_build_function_stub): Update.
7492 (mips16_build_call_stub): Update.
7493 (mips_function_rodata_section): Update.
7494 (mips_in_small_data_p): Update.
7495 * config/score/score.c (score_in_small_data_p): Update.
7496 * config/rx/rx.c (rx_in_small_data): Update.
7497 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7498 (rs6000_xcoff_asm_named_section): Update.
7499 (rs6000_xcoff_unique_section): Update.
7500 * config/frv/frv.c (frv_string_begins_with): Update.
7501 (frv_in_small_data_p): Update.
7502 * config/v850/v850.c (v850_encode_data_area): Update.
7503 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7504 (bfin_handle_l1_data_attribute): Update.
7505 (bfin_handle_l2_attribute): Update.
7506 * config/mep/mep.c (mep_unique_section): Update.
7507 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7509 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7510 (h8300_handle_tiny_data_attribute): Update.
7511 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7512 (m32r_in_small_data_p): Update.
7513 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7514 * config/i386/i386.c (ix86_in_large_data_p): Update.
7515 * config/i386/winnt.c (i386_pe_unique_section): Update.
7516 * config/darwin.c (darwin_function_section): Update.
7517 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7518 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7519 (new_emutls_decl): Update.
7520 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7521 input_varpool_node): Update.
7522 (ead_string_cst): Turn to ...
7523 (read_string): ... this one.
7524 * dwarf2out.c (secname_for_decl): Update.
7525 * asan.c (asan_protect_global): Update.
7527 2014-06-11 DJ Delorie <dj@redhat.com>
7529 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7531 * config/rx/rx.c (rx_option_override): Likewise.
7532 (rx_align_for_label): Likewise.
7534 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7536 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7538 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7541 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7543 * common.md: New file.
7544 * doc/md.texi: Update description of generic, machine-independent
7546 * config/s390/constraints.md (e): Delete.
7547 * Makefile.in (md_file): Include common.md.
7548 * config/m32c/t-m32c (md_file): Likewise.
7549 * genpreds.c (general_mem): New array.
7550 (generic_constraint_letters): Remove constraints now defined by
7552 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7553 Allow the first character to be '<' or '>' as well.
7554 * genoutput.c (general_mem): New array.
7555 (indep_constraints): Remove constraints now defined by common.md.
7556 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7557 Remove special handling of 'm'.
7558 * ira-costs.c (record_reg_classes): Remove special handling of
7559 constraints now defined by common.md.
7560 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7561 * ira-lives.c (single_reg_class): Likewise.
7562 (ira_implicitly_set_insn_hard_regs): Likewise.
7563 * lra-constraints.c (reg_class_from_constraints): Likewise.
7564 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7565 * postreload.c (reload_cse_simplify_operands): Likewise.
7566 * reload.c (push_secondary_reload, scratch_reload_class)
7567 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7568 * reload1.c (maybe_fix_stack_asms): Likewise.
7569 * targhooks.c (default_secondary_reload): Likewise.
7570 * stmt.c (parse_output_constraint): Likewise.
7571 * recog.c (preprocess_constraints): Likewise.
7572 (constrain_operands, peep2_find_free_register): Likewise.
7573 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7574 must be handled specially.
7576 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7578 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7579 * genpreds.c (have_const_dbl_constraints): Delete.
7580 (add_constraint): Don't set it.
7581 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7582 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7583 constraints using the lookup_constraint logic.
7584 * ira-lives.c (single_reg_class): Likewise.
7585 * ira.c (ira_setup_alts): Likewise.
7586 * lra-constraints.c (process_alt_operands): Likewise.
7587 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7588 * reload.c (find_reloads): Likewise.
7590 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7592 * genpreds.c (const_int_start, const_int_end): New variables.
7593 (choose_enum_order): Output CONST_INT constraints before memory
7595 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7597 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7598 * ira.c (ira_setup_alts): Likewise.
7599 * lra-constraints.c (process_alt_operands): Likewise.
7600 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7601 * reload.c (find_reloads): Likewise.
7603 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7605 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7606 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7607 * recog.c (preprocess_constraints): Update accordingly.
7609 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7611 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7612 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7613 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7614 * genpreds.c (print_type_tree): New function.
7615 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7616 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7617 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7618 Write out enum constraint_type and get_constraint_type.
7619 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7620 constraint_num rather than a constraint string.
7621 (satisfies_address_constraint_p): Likewise.
7622 (reg_class_from_constraints): Avoid old constraint macros.
7623 (process_alt_operands, process_address_1): Likewise.
7624 (curr_insn_transform): Likewise.
7625 * ira-costs.c (record_reg_classes): Likewise.
7626 (record_operand_costs): Likewise.
7627 * ira-lives.c (single_reg_class): Likewise.
7628 (ira_implicitly_set_insn_hard_regs): Likewise.
7629 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7630 * postreload.c (reload_cse_simplify_operands): Likewise.
7631 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7632 (constrain_operands, peep2_find_free_register): Likewise.
7633 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7634 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7635 * reload1.c (maybe_fix_stack_asms): Likewise.
7636 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7637 * targhooks.c (default_secondary_reload): Likewise.
7638 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7639 to EXTRA_CONSTRAINT_STR.
7640 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7642 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7644 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7645 (write_constraint_satisfied_p_array): ...this new function.
7646 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7648 (write_insn_preds_c): Update accordingly.
7650 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7652 * genpreds.c (write_lookup_constraint): Rename to...
7653 (write_lookup_constraint_1): ...this.
7654 (write_lookup_constraint_array): New function.
7655 (write_tm_preds_h): Define lookup_constraint as an inline function
7656 that uses write_lookup_constraint_array where possible.
7657 (write_insn_preds_c): Update for the changes above.
7659 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7661 * doc/md.texi (regclass_for_constraint): Rename to...
7662 (reg_class_for_constraint): ...this.
7663 * genpreds.c (num_constraints, enum_order, register_start)
7664 (register_end, satisfied_start, memory_start, memory_end)
7665 (address_start, address_end): New variables.
7666 (add_constraint): Count the number of constraints.
7667 (choose_enum_order): New function.
7668 (write_enum_constraint_num): Iterate over enum_order.
7669 (write_regclass_for_constraint): Rename to...
7670 (write_reg_class_for_constraint_1): ...this and update output
7672 (write_constraint_satisfied_p): Rename to...
7673 (write_constraint_satisfied_p_1): ...this and update output
7674 accordingly. Do nothing if all extra constraints are register
7676 (write_insn_extra_memory_constraint): Delete.
7677 (write_insn_extra_address_constraint): Delete.
7678 (write_range_function): New function.
7679 (write_tm_preds_h): Define constraint_satisfied_p and
7680 reg_class_for_constraint as inline functions that do a range check
7681 before calling the out-of-line function. Use write_range_function
7682 to implement insn_extra_{register,memory,address}_constraint,
7683 the first of which is new.
7684 (write_insn_preds_c): Update after above changes to write_* functions.
7685 (main): Call choose_enum_order.
7687 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7689 PR tree-optimization/61306
7690 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7691 expression instead of its size.
7692 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7693 false to prevent optimization when the result is unpredictable due to
7694 arithmetic right shift of signed type with highest byte is set.
7695 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7696 (init_symbolic_number): Likewise.
7697 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7698 when the result is unpredictable due to sign extension.
7700 2014-06-11 Terry Guo <terry.guo@arm.com>
7702 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7703 (*thumb1_addsi3): Ditto.
7704 (*thumb_subdi3): Ditto.
7705 (thumb1_subsi3_insn): Ditto.
7706 (*thumb_mulsi3): Ditto.
7707 (*thumb_mulsi3_v6): Ditto.
7708 (*thumb1_andsi3_insn): Ditto.
7709 (thumb1_bicsi3): Ditto.
7710 (*thumb1_iorsi3_insn): Ditto.
7711 (*thumb1_xorsi3_insn): Ditto.
7712 (*thumb1_ashlsi3): Ditto.
7713 (*thumb1_ashrsi3): Ditto.
7714 (*thumb1_lshrsi3): Ditto.
7715 (*thumb1_rotrsi3): Ditto.
7716 (*thumb1_negdi2): Ditto.
7717 (*thumb1_negsi2): Ditto.
7718 (*thumb1_abssi2): Ditto.
7719 (*thumb1_neg_abssi2): Ditto.
7720 (*thumb1_one_cmplsi2): Ditto.
7721 (*thumb1_zero_extendhisi2): Ditto.
7722 (*thumb1_zero_extendqisi2): Ditto.
7723 (*thumb1_zero_extendqisi2_v6): Ditto.
7724 (thumb1_extendhisi2): Ditto.
7725 (thumb1_extendqisi2): Ditto.
7726 (*thumb1_movdi_insn): Ditto.
7727 (*thumb1_movsi_insn): Ditto.
7728 (*thumb1_movhi_insn): Ditto.
7729 (thumb_movhi_clobber): Ditto.
7730 (*thumb1_movqi_insn): Ditto.
7731 (*thumb1_movhf): Ditto.
7732 (*thumb1_movsf_insn): Ditto.
7733 (*thumb_movdf_insn): Ditto.
7736 (cbranchqi4): Ditto.
7737 (cbranchsi4_insn): Ditto.
7738 (cbranchsi4_scratch): Ditto.
7739 (*negated_cbranchsi4): Ditto.
7740 (*tbit_cbranch): Ditto.
7741 (*tlobits_cbranch): Ditto.
7742 (*tstsi3_cbranch): Ditto.
7743 (*cbranchne_decr1): Ditto.
7744 (*addsi3_cbranch): Ditto.
7745 (*addsi3_cbranch_scratch): Ditto.
7746 (*thumb_cmpdi_zero): Ditto.
7747 (cstoresi_eq0_thumb1): Ditto.
7748 (cstoresi_ne0_thumb1): Ditto.
7749 (*cstoresi_eq0_thumb1_insn): Ditto.
7750 (*cstoresi_ne0_thumb1_insn): Ditto.
7751 (cstoresi_nltu_thumb1): Ditto.
7752 (cstoresi_ltu_thumb1): Ditto.
7753 (thumb1_addsi3_addgeu): Ditto.
7754 (*thumb_jump): Ditto.
7755 (*call_reg_thumb1_v5): Ditto.
7756 (*call_reg_thumb1): Ditto.
7757 (*call_value_reg_thumb1_v5): Ditto.
7758 (*call_value_reg_thumb1): Ditto.
7759 (*call_insn): Ditto.
7760 (*call_value_insn): Ditto.
7761 (thumb1_casesi_internal_pic): Ditto.
7762 (thumb1_casesi_dispatch): Ditto.
7763 (*thumb1_indirect_jump): Ditto.
7764 (prologue_thumb1_interwork): Ditto.
7765 (*epilogue_insns): Ditto.
7766 (consttable_1): Ditto.
7767 (consttable_2): Ditto.
7769 (*thumb1_tablejump): Ditto.
7770 (thumb_eh_return): Ditto.
7771 (define_peephole2): Two of them are thumb1 only and got moved into
7773 (define_split): Six of them are thumb1 only and got moved into new
7775 * config/arm/thumb1.md: New file comprised of above thumb1 only
7778 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7780 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7781 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7783 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7784 (aarch64_crc_builtin_datum): New struct.
7785 (aarch64_crc_builtin_data): New.
7786 (aarch64_init_crc32_builtins): New function.
7787 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7788 (aarch64_crc32_expand_builtin): New.
7789 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7790 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7791 __ARM_FEATURE_CRC32 when appropriate.
7792 (TARGET_CRC32): Define.
7793 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7794 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7795 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7796 (aarch64_<crc_variant>): New pattern.
7797 * config/aarch64/arm_acle.h: New file.
7798 * config/aarch64/iterators.md (CRC): New int iterator.
7799 (crc_variant, crc_mode): New int attributes.
7800 * doc/aarch64-acle-intrinsics.texi: New file.
7801 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7802 Include aarch64-acle-intrinsics.texi.
7804 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7806 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7807 check for stores group of length 3.
7808 (vect_permute_store_chain): New permutations for stores group of
7810 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7811 of vec_perm_shuffle for the new permutations.
7813 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7815 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7816 table rewriting temporarily on targets not supporting ONE_ONLY.
7818 2014-06-11 Richard Biener <rguenther@suse.de>
7822 2014-06-04 Richard Biener <rguenther@suse.de>
7824 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7825 TREE_PUBLIC and DECL_EXTERNAL decls.
7827 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7829 * varasm.c (set_implicit_section): New function.
7830 (resolve_unique_section): Use it to set implicit section
7832 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7833 (default_function_section): Likewise.
7834 (decl_binds_to_current_def_p): Constify argument.
7835 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7836 * asan.c (asan_protect_global): Use
7837 symtab_get_node (decl)->implicit_section.
7838 * symtab.c (dump_symtab_base): Dump implicit sections.
7839 (verify_symtab_base): Verify sanity of sectoins and comdats.
7840 (symtab_resolve_alias): Alias share the section of its target.
7841 (set_section_1): New function.
7842 (symtab_node::set_section): Move here, recurse to aliases.
7843 (verify_symtab): Check for duplicated symtab lists.
7844 * tree-core.h (implicit_section_name_p): Remove.
7845 * tree-vect-data-refs.c: Include varasm.h.
7846 (vect_can_force_dr_alignment_p): Fix conditional on when
7847 decl bints to current definition; use
7848 symtab_get_node (decl)->implicit_section.
7849 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7850 * cgraph.h (struct symtab_node): Add implicit_section.
7851 (set_section): Rename to ...
7852 (set_section_for_node): ... this one.
7853 (set_section): Declare.
7854 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7855 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7856 input_overwrite_node, input_varpool_node): Stream implicit_section.
7857 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7858 removal; it will fail in LTO.
7860 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7862 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7863 Change second alternative type to f_mcr.
7864 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7865 and 12th alternatives' types to f_mcr and f_mrc.
7866 (*movdi_aarch64): Same for 12th and 13th alternatives.
7867 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7868 (aarch64_movtilow_tilow): Change type to fmov.
7870 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7872 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7873 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7875 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7877 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7879 (aarch64_sqrdmulh_lane<mode>): Likewise.
7880 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7881 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7882 (aarch64_sqdmulh_laneq<mode>): New expander.
7883 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7884 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7885 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7886 (aarch64_sqdmulh_lane<mode>): New expander.
7887 (aarch64_sqrdmulh_lane<mode>): Likewise.
7888 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7889 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7890 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7891 (aarch64_sqdmlal_laneq<mode>): Likewise.
7892 (aarch64_sqdmlsl_lane<mode>): Likewise.
7893 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7894 (aarch64_sqdmlal2_lane<mode>): Likewise.
7895 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7896 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7897 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7898 (aarch64_sqdmull_lane<mode>): Likewise.
7899 (aarch64_sqdmull_laneq<mode>): Likewise.
7900 (aarch64_sqdmull2_lane<mode>): Likewise.
7901 (aarch64_sqdmull2_laneq<mode>): Likewise.
7903 2014-06-10 Richard Biener <rguenther@suse.de>
7905 PR tree-optimization/61438
7906 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7907 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7908 insertion of IVs if running PRE.
7909 (eliminate): Adjust.
7910 (pass_pre::execute): Likewise.
7911 (pass_fre::execute): Likewise.
7913 2014-06-10 Richard Biener <rguenther@suse.de>
7916 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7917 Do not use the main variant for the type comparison.
7918 (ncr_compar): Likewise.
7919 (nonoverlapping_component_refs_p): Likewise.
7921 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7923 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7924 REG_CFA_RESTORE mode.
7926 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7928 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7929 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7930 expand_vec_perm_pblendv.
7932 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7934 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7936 Simplify description of __crc32d and __crc32cd intrinsics.
7937 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7940 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7943 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7944 * config.in: Regenerate.
7945 * configure: Likewise.
7947 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7949 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7951 (intersect_static_var_sets): Remove.
7952 (propagate): Do not prune local statics.
7954 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7957 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7958 Set lastprivate_firstprivate even if omp_private_outer_ref
7959 langhook returns true.
7960 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7961 langhook, call unshare_expr on new_var and call
7962 build_outer_var_ref to get the last argument.
7964 2014-06-10 Marek Polacek <polacek@redhat.com>
7967 * doc/extend.texi: Add cindex for transparent_union.
7969 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7971 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7972 init_symbolic_number ().
7974 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7977 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7978 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7979 (verify_rtl_sharing): Likewise.
7981 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7984 * tree.c (build_qualified_type): Use a canonical type for
7987 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7989 * config/arm/arm-modes.def: Remove XFmode.
7991 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7994 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7995 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7996 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7997 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7998 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7999 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8000 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8001 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8002 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8004 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8006 * tree-core.h (tree_decl_with_vis): Remove section_name.
8008 2014-06-09 Kito Cheng <kito@0xlab.org>
8010 * ira.c (ira): Don't call init_caller_save if LRA enabled
8011 since LRA use its own infrastructure to handle that.
8013 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8015 * symtab.c (dump_symtab_base): Update dumping.
8016 (symtab_make_decl_local): Clear only DECL_COMDAT.
8017 * tree-vect-data-refs.c (Check that variable is static before
8018 tampering with sections.
8019 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8020 (cgraph_create_virtual_clone): Likewise.
8021 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8022 (decl_section_name, set_decl_section_name): New accessors.
8023 (find_decls_types_r): Do not walk section name
8024 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8025 (decl_comdat_group, decl_comdat_group_id): Constify.
8026 (decl_section_name, set_decl_section_name): Update.
8027 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8028 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8029 (cgraph_make_node_local_1): Clear section and comdat group.
8030 * cgraph.h (set_comdat_group): Sanity check.
8031 (get_section, set_section): New.
8032 * ipa-comdats.c (ipa_comdats): Use get_section.
8033 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8034 * lto-streamer-out.c: Do not follow section names.
8035 * c-family/c-common.c (handle_section_attribute): Update.
8036 * lto-cgraph.c (lto_output_node): Output section.
8037 (lto_output_varpool_node): Likewise.
8038 (read_comdat_group): Rename to ...
8039 (read_identifier): ... this one.
8040 (read_string_cst): New function.
8041 (input_node, input_varpool_node): Input section names.
8042 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8043 (new_emutls_decl): Update.
8044 (secname_for_decl): Check section names only of static vars.
8045 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8046 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8047 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8048 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8049 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8050 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8051 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8052 * config/v850/v850.c (v850_insert_attributes): Likewise.
8053 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8055 (h8300_handle_tiny_data_attribute): Likewise.
8056 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8057 (bfin_handle_l2_attribute): Likewise.
8059 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8061 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8062 remove static initializer.
8064 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8066 * varasm.c (use_blocks_for_decl_p): Check symbol table
8067 instead of alias attribute.
8068 (place_block_symbol): Recurse on aliases.
8070 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8072 * ipa-visibility.c: Include varasm.h
8073 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8075 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8077 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8080 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8082 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8083 from test_insn into GGC space escape via SET_SRC.
8085 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8087 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8088 call statement, if any.
8089 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8090 statements, if any. Tidy up.
8092 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8095 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8096 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8097 handles swapping the two 64-bit double words on little endian
8098 systems. Include V1TImode and optionally TImode in VSX_LE so that
8099 these types are properly swapped. Change all of the insns and
8100 splits that do the 64-bit swaps to use VSX_LE.
8101 (vsx_le_perm_load_<mode>): Likewise.
8102 (vsx_le_perm_store_<mode>): Likewise.
8103 (splitters for little endian memory operations): Likewise.
8104 (vsx_xxpermdi2_le_<mode>): Likewise.
8105 (vsx_lxvd2x2_le_<mode>): Likewise.
8106 (vsx_stxvd2x2_le_<mode>): Likewise.
8108 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8111 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8112 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8113 and corresponding splitters. Zero extend general register
8114 or memory input operand to XMM temporary. Enable for
8115 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8116 (floatunssi<mode>2): Update expander predicate.
8118 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8120 PR rtl-optimization/61325
8121 * lra-constraints.c (process_address_1): Check scale equal to one
8122 to prevent transformation: base + scale * index => base + new_reg.
8124 2014-06-06 Richard Biener <rguenther@suse.de>
8126 PR tree-optimization/59299
8127 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8129 (nearest_common_dominator_of_uses): Likewise.
8130 (statement_sink_location): Adjust. Support sinking loads.
8132 2014-06-06 Martin Jambor <mjambor@suse.cz>
8134 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8135 (build_agg_jump_func_from_list): Likewise.
8136 (determine_known_aggregate_parts): Renamed to
8137 determine_locally_known_aggregate_parts. Moved some functionality
8138 to the two functions above, removed bound checks.
8140 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8142 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8143 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8144 (aarch64_progress_pointer): Likewise.
8145 (aarch64_copy_one_part_and_move_pointers): Likewise.
8146 (aarch64_expand_movmen): Likewise.
8147 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8148 * config/aarch64/aarch64.md (movmem<mode>): New.
8150 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8152 * targhooks.c (default_add_stmt_cost): Call target specific
8153 hook instead of default one.
8155 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8157 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8158 endianness instead of host endianness.
8159 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8162 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8165 * function.c (instantiate_decls): Process the saved static chain.
8166 (expand_function_start): If not optimizing, save the static chain
8168 * tree-nested.c (convert_all_function_calls): Always create the static
8169 chain for nested functions if not optimizing.
8171 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8173 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8175 2014-06-06 Richard Biener <rguenther@suse.de>
8177 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8178 (construct_init_block): Likewise.
8179 (construct_exit_block): Likewise.
8180 (pass_expand::execute): Likewise.
8181 * graphite.c (graphite_transforms): Replace check for current_loops
8182 with a check for > 1 loops.
8183 (pass_graphite_transforms::execute): Adjust.
8184 * ipa-split.c (split_function): Remove check for current_loops.
8185 * omp-low.c (expand_parallel_call): Likewise.
8186 (expand_omp_for_init_counts): Likewise.
8187 (extract_omp_for_update_vars): Likewise.
8188 (expand_omp_for_generic): Likewise.
8189 (expand_omp_sections): Likewise.
8190 (expand_omp_target): Likewise.
8191 * tracer.c (tail_duplicate): Likewise.
8192 (pass_tracer::execute): Likewise.
8193 * trans-mem.c (expand_transaction): Likewise.
8194 * tree-complex.c (expand_complex_div_wide): Likewise.
8195 * tree-eh.c (lower_resx): Likewise.
8196 (cleanup_empty_eh_merge_phis): Likewise.
8197 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8198 current_loops with a check for > 1 loops.
8199 (pass_predcom::execute): Adjust.
8200 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8201 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8202 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8203 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8204 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8205 * tree-switch-conversion.c (process_switch): Likewise.
8206 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8207 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8208 (execute_vrp): Likewise.
8209 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8211 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8213 * rtl.h (insn_location): Declare.
8214 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8215 with UNKNOWN_LOCATION.
8216 * emit-rtl.c (insn_location): New function.
8217 * final.c (notice_source_line): Check that the instruction has a
8218 location before retrieving it and use insn_location.
8219 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8220 * print-rtl.c (print_rtx): Likewise.
8222 2014-06-06 Richard Biener <rguenther@suse.de>
8224 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8226 2014-06-06 Christian Bruel <christian.bruel@st.com>
8228 PR tree-optimization/43934
8229 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8232 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8234 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8235 return NO_REGS for extra address and memory constraints. Handle
8236 operands that match (or are equivalent to something that matches)
8237 extra constant constraints. Ignore other non-register operands.
8239 2014-06-06 Alan Modra <amodra@gmail.com>
8242 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8243 * doc/tm.texi: Regenerate.
8244 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8245 Use throughout in place of REG_PARM_STACK_SPACE.
8246 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8247 "incoming" param. Pass to rs6000_function_parms_need_stack.
8248 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8249 prototype_p when incoming. Use function decl when incoming
8250 to handle K&R style functions.
8251 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8252 (INCOMING_REG_PARM_STACK_SPACE): Define.
8254 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8257 * cfgexpand.c (expand_debug_expr): Use address space of nested
8258 TREE_TYPE for ADDR_EXPR and MEM_REF.
8260 2014-06-05 Jeff Law <law@redhat.com>
8262 PR tree-optimization/61289
8263 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8264 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8265 looking for those which match LHS. All callers changed.
8266 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8267 parameters and code which manipulated them. All callers changed.
8268 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8269 and DST_MAP parameters. Simplify invalidation code by just calling
8270 invalidate_equivalences. All callers changed.
8271 (thread_across_edge): Simplify now that we don't need to maintain
8272 the map of equivalences to invalidate.
8274 2014-06-05 Kai Tietz <ktietz@redhat.com>
8275 Richard Henderson <rth@redhat.com>
8278 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8279 checking for !TARGET_X32.
8280 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8281 (sibcall_intern): New define_insn, plus required peepholes.
8282 (sibcall_pop_intern): Likewise.
8283 (sibcall_value_intern): Likewise.
8284 (sibcall_value_pop_intern): Likewise.
8286 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8288 * tree-inline.c (tree_function_versioning): Check DF info existence
8289 before accessing it.
8291 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8293 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8295 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8296 aarch64_frame hard_fp_offset and frame_size.
8297 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8298 frame_size; remove original_frame_size.
8299 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8300 (aarch64_initial_elimination_offset): Remove frame_size and
8301 offset. Use aarch64_frame frame_size.
8303 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8304 Jiong Wang <jiong.wang@arm.com>
8305 Renlin <renlin.li@arm.com>
8307 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8308 initialization of R30 offset. Update offset. Iterate core
8309 regisers upto X30. Remove X29, X30 specific code.
8311 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8312 Jiong Wang <jiong.wang@arm.com>
8314 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8315 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8316 (aarch64_register_saved_on_entry): Adjust test.
8318 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8320 * config/aarch64/aarch64.h (machine_function): Move
8321 saved_varargs_size from here...
8322 (aarch64_frame): ... to here.
8324 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8325 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8326 (aarch64_initial_elimination_offset)
8327 (aarch64_setup_incoming_varargs): Adjust location of
8330 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8332 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8335 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8336 Prachi Godbole <Prachi.Godbole@imgtec.com>
8338 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8339 mips32r5 entry to use PROCESSOR_P5600.
8340 * config/mips/mips-tables.opt: Regenerate.
8341 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8342 * config/mips/mips.c (mips_fmadd_bypass): New function.
8343 (mips_rtx_cost_data): Add costs for p5600.
8344 (mips_issue_rate): Add support for p5600.
8345 (mips_multipass_dfa_lookahead): Likewise.
8346 * config/mips/mips.h (TUNE_P5600): New define.
8347 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8348 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8349 * config/mips/mips.md: Include p5600.md.
8350 (processor): Add p5600.
8351 * config/mips/p5600.md: New file.
8353 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8355 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8356 * config/i386/predicates.md (palignr_operand): New.
8357 Indicates if permutation is suitable for palignr instruction.
8359 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8361 PR tree-optimization/61319
8362 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8363 stmt belongs to loop.
8365 2014-06-05 Richard Biener <rguenther@suse.de>
8367 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8368 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8369 (lookup_tmp_var): Adjust.
8370 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8372 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8374 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8376 2014-06-05 Marek Polacek <polacek@redhat.com>
8379 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8381 2014-06-04 Tom de Vries <tom@codesourcery.com>
8383 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8386 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8388 PR tree-optimization/61385
8389 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8391 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8393 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8394 changed to use fatal_error.
8395 (main): Ensure lto_wrapper_cleanup is run atexit.
8397 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8399 * lra-constraints.c (valid_address_p): Move earlier in file.
8400 (address_eliminator): New structure.
8401 (satisfies_memory_constraint_p): New function.
8402 (satisfies_address_constraint_p): Likewise.
8403 (process_alt_operands, process_address, curr_insn_transform): Use them.
8405 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8407 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8409 (target_lra_int, default_target_lra_int, this_target_lra_int)
8410 (op_alt_data): Delete.
8411 * lra.h (lra_init): Delete.
8412 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8413 (init_insn_code_data_once): Remove op_alt_data handling.
8414 (finish_insn_code_data_once): Likewise.
8415 (init_op_alt_data): Delete.
8416 (get_static_insn_data): Initialize operand_alternative to null.
8417 (free_insn_recog_data): Cast operand_alternative before freeing it.
8418 (setup_operand_alternative): Take the operand_alternative as
8419 parameter and assume it isn't already cached in the static
8421 (lra_set_insn_recog_data): Update accordingly.
8423 * ira.c (ira_init): Don't call lra_init.
8424 * target-globals.h (this_target_lra_int): Declare.
8425 (target_globals): Remove lra_int.
8426 (restore_target_globals): Update accordingly.
8427 * target-globals.c: Don't include lra-int.h.
8428 (default_target_globals, save_target_globals): Remove lra_int.
8430 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8432 * recog.h (operand_alternative): Convert reg_class, reject,
8433 matched and matches into bitfields.
8434 (preprocess_constraints): New overload.
8435 (preprocess_insn_constraints): New function.
8436 (preprocess_constraints): Take the insn as parameter.
8437 (recog_op_alt): Change into a pointer.
8438 (target_recog): Add x_op_alt.
8439 * recog.c (asm_op_alt): New variable.
8440 (recog_op_alt): Change into a pointer.
8441 (preprocess_constraints): New overload, replacing the old function
8442 definition with one that doesn't use global state.
8443 (preprocess_insn_constraints): New function.
8444 (preprocess_constraints): Use them. Take the insn as parameter.
8445 Use asm_op_alt for asms.
8446 (recog_init): Free existing x_op_alt entries.
8447 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8449 (make_early_clobber_and_input_conflicts): Likewise.
8450 (process_bb_node_lives): Pass the insn to process_constraints.
8451 * reg-stack.c (check_asm_stack_operands): Likewise.
8452 (subst_asm_stack_regs): Likewise.
8453 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8454 * regrename.c (build_def_use): Likewise.
8455 * sched-deps.c (sched_analyze_insn): Likewise.
8456 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8457 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8458 (note_invalid_constants): Likewise.
8459 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8460 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8463 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8465 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8466 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8468 (make_early_clobber_and_input_conflicts): Likewise.
8469 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8471 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8473 * recog.h (alternative_class): New function.
8474 (which_op_alt): Return a const recog_op_alt.
8475 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8476 (subst_asm_stack_regs): Likewise.
8477 * config/arm/arm.c (note_invalid_constants): Likewise.
8478 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8479 the operand_alternative; use alternative class instead.
8480 * sel-sched.c (get_reg_class): Likewise.
8481 * regrename.c (build_def_use): Likewise.
8482 (hide_operands, restore_operands, record_out_operands): Update type
8485 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8487 * recog.h (recog_op_alt): Convert to a flat array.
8488 (which_op_alt): New function.
8489 * recog.c (recog_op_alt): Convert to a flat array.
8490 (preprocess_constraints): Update accordingly, grouping all
8491 operands of the same alternative together, rather than the
8493 * ira-lives.c (check_and_make_def_conflict): Likewise.
8494 (make_early_clobber_and_input_conflicts): Likewise.
8495 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8496 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8497 (subst_asm_stack_regs): Likewise.
8498 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8499 * regrename.c (hide_operands, record_out_operands): Likewise.
8500 (build_def_use): Likewise.
8501 * sel-sched.c (get_reg_class): Likewise.
8502 * config/arm/arm.c (note_invalid_constants): Likewise.
8504 2014-06-04 Jason Merrill <jason@redhat.com>
8508 * gimplify.c (gimplify_arg): Non-static.
8509 * gimplify.h: Declare it.
8511 2014-06-04 Richard Biener <rguenther@suse.de>
8513 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8514 TREE_PUBLIC and DECL_EXTERNAL decls.
8516 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8518 * regcprop.c (copyprop_hardreg_forward_1): Account for
8519 HARD_REGNO_CALL_PART_CLOBBERED.
8521 2014-06-04 Richard Biener <rguenther@suse.de>
8523 * configure.ac: Check whether the underlying type of int64_t
8524 is long or long long.
8525 * configure: Regenerate.
8526 * config.in: Likewise.
8527 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8528 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8530 2014-06-04 Richard Biener <rguenther@suse.de>
8532 PR tree-optimization/60098
8533 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8535 (dse_optimize_stmt): Simplify, now that we found a kill
8538 2014-06-04 Richard Biener <rguenther@suse.de>
8540 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8541 of accesses with non-invariant address.
8543 2014-06-04 Martin Liska <mliska@suse.cz>
8545 * cgraph.h (cgraph_make_wrapper): New function introduced.
8546 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8547 * ipa-inline.h (inline_analyze_function): The function is global.
8548 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8550 2014-06-04 Martin Liska <mliska@suse.cz>
8552 * tree.h (private_lookup_attribute_starting): New function.
8553 (lookup_attribute_starting): Likewise.
8554 * tree.c (private_lookup_attribute_starting): Likewise.
8556 2014-06-04 Martin Liska <mliska@suse.cz>
8558 * cgraph.h (expand_thunk): New argument added.
8559 (address_taken_from_non_vtable_p): New global function.
8560 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8561 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8562 * cgraphunit.c (analyze_function): Likewise.
8563 (assemble_thunks_and_aliases): Argument added to call.
8564 (expand_thunk): New argument forces to produce GIMPLE thunk.
8566 2014-06-04 Martin Liska <mliska@suse.cz>
8568 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8569 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8570 * profile.c (branch_prob): Likewise.
8572 2014-06-04 Martin Jambor <mjambor@suse.cz>
8575 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8576 handler for switch on an ipa_ref_use enum.
8577 * ipa-reference.c (analyze_function): Likewise.
8579 2014-06-04 Kai Tietz <ktietz@redhat.com>
8581 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8582 from old call-instruction.
8584 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8586 * config/aarch64/aarch64.c (aarch64_classify_address)
8587 (aarch64_legitimize_reload_address): Support full addressing modes
8589 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8590 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8592 2014-06-03 Andrew Pinski <apinski@cavium.com>
8594 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8597 2014-06-03 Andrew Pinski <apinski@cavium.com>
8599 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8600 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8602 2014-06-03 Kai Tietz <ktietz@redhat.com>
8604 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8607 2014-06-03 Dehao Chen <dehao@google.com>
8609 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8612 2014-06-03 Marek Polacek <polacek@redhat.com>
8615 * doc/invoke.texi: Document -Wswitch-bool.
8616 * function.c (stack_protect_epilogue): Cast controlling expression of
8618 * gengtype.c (walk_type): Generate switch expression with its
8619 controlling expression cast to int.
8621 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8623 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8625 * config/avr/avr-tables.opt: Regenerate.
8626 * config/avr/t-multilib: Regenerate.
8627 * doc/avr-mmcu.texi: Regenerate.
8629 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8630 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8632 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8633 (ata6617c, ata664251): Add new avr35 devices.
8634 (ata6612c): Add new avr4 device.
8635 (ata6613c, ata6614q): Add new avr5 devices.
8636 * config/avr/avr-tables.opt: Regenerate.
8637 * config/avr/t-multilib: Regenerate.
8638 * doc/avr-mmcu.texi: Regenerate.
8640 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8642 * gcc/config/aarch64/aarch64-builtins.c
8643 (aarch64_types_binop_ssu_qualifiers): New static data.
8644 (TYPES_BINOP_SSU): Define.
8645 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8646 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8647 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8648 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8649 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8650 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8651 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8652 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8653 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8654 suffix to builtin function name, remove cast.
8655 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8656 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8657 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8659 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8661 * gcc/config/aarch64/aarch64-builtins.c
8662 (aarch64_types_binop_uus_qualifiers,
8663 aarch64_types_shift_to_unsigned_qualifiers,
8664 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8665 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8666 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8667 sqshlu_n, uqshl_n): Update qualifiers.
8668 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8669 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8670 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8671 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8672 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8673 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8674 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8675 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8676 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8677 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8678 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8679 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8680 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8681 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8682 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8683 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8684 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8685 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8686 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8687 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8688 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8689 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8690 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8691 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8692 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8693 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8694 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8696 2014-06-03 Teresa Johnson <tejohnson@google.com>
8698 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8700 2014-06-02 Jason Merrill <jason@redhat.com>
8703 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8705 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8707 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8710 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8712 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8714 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8715 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8716 * config/aarch64/iterators.md (REVERSE): New iterator.
8717 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8718 (rev_op): New int_attribute.
8719 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8720 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8721 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8722 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8723 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8724 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8725 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8726 Replace temporary __asm__ with __builtin_shuffle.
8728 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8730 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8732 * config/mips/mips-tables.opt: Regenerate.
8733 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8734 to use mips_isa_rev rather than ISA_MIPS32R2.
8735 * config/mips/mips.h (ISA_MIPS32R3): New define.
8736 (ISA_MIPS32R5): New define.
8737 (ISA_MIPS64R3): New define.
8738 (ISA_MIPS64R5): New define.
8739 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8740 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8741 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8743 (MIPS_ISA_SYNCI_SPEC): Likewise.
8744 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8745 (LINK_SPEC): Added mips32r3 and mips32r5.
8746 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8747 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8748 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8749 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8750 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8751 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8752 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8754 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8756 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8758 * config/mips/mips.opt (mxpa): New option.
8759 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8762 2014-06-03 Martin Jambor <mjambor@suse.cz>
8765 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8768 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8770 PR tree-optimization/61328
8771 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8772 initialization from find_bswap_or_nop_1.
8773 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8774 in source_expr2 before using the size value the function sets. Also
8775 make use of init_symbolic_number () in both the old place and
8776 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8777 doing recursion in the GIMPLE_BINARY_RHS case.
8779 2014-06-03 Richard Biener <rguenther@suse.de>
8781 PR tree-optimization/61383
8782 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8785 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8787 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8788 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8789 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8790 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8792 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8793 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8794 * system.h: ...here and make it unconditional.
8795 * target.def (conditional_register_usage): Mention
8796 define_register_constraint instead of old-style constraint macros.
8797 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8798 * doc/tm.texi: Regenerate.
8799 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8800 protected by !USE_MD_CONSTRAINTS.
8801 * config/frv/frv.md: Remove quote from old version of documentation.
8802 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8803 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8804 CONST_DOUBLE_OK_FOR_LETTER.
8805 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8807 2014-06-02 Andrew Pinski <apinski@cavium.com>
8809 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8810 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8811 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8812 file whose name depends on -mabi= and -mbig-endian.
8813 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8814 Handle LP64 better and handle ilp32 too.
8815 (MULTILIB_OPTIONS): Delete.
8816 (MULTILIB_DIRNAMES): Delete.
8818 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8820 * expr.h: Remove prototypes of functions defined in builtins.c.
8821 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8822 Remove prototypes of functions defined in builtins.c.
8823 * builtins.h: Update prototype list to include all exported functions.
8824 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8825 no_c99_libc_has_function): Move to targhooks.c
8826 (build_string_literal, build_call_expr_loc_array,
8827 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8829 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8830 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8831 no_c99_libc_has_function): Relocate from builtins.c.
8832 * tree.c: Include builtins.h.
8833 (build_call_expr_loc_array, build_call_expr_loc_vec,
8834 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8836 * fold-const.h (fold_fma): Move prototype to builtins.h.
8837 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8838 * asan.c: Include builtins.h.
8839 * cfgexpand.c: Likewise.
8840 * convert.c: Likewise.
8841 * emit-rtl.c: Likewise.
8842 * except.c: Likewise.
8844 * fold-const.c: Likewise.
8845 * gimple-fold.c: Likewise.
8846 * gimple-ssa-strength-reduction.c: Likewise.
8847 * gimplify.c: Likewise.
8848 * ipa-inline.c: Likewise.
8849 * ipa-prop.c: Likewise.
8850 * lto-streamer-out.c: Likewise.
8852 * tree-inline.c: Likewise.
8853 * tree-object-size.c: Likewise.
8854 * tree-sra.c: Likewise.
8855 * tree-ssa-ccp.c: Likewise.
8856 * tree-ssa-forwprop.c: Likewise.
8857 * tree-ssa-loop-ivcanon.c: Likewise.
8858 * tree-ssa-loop-ivopts.c: Likewise.
8859 * tree-ssa-math-opts.c: Likewise.
8860 * tree-ssa-reassoc.c: Likewise.
8861 * tree-ssa-threadedge.c: Likewise.
8862 * tree-streamer-in.c: Likewise.
8863 * tree-vect-data-refs.c: Likewise.
8864 * tree-vect-patterns.c: Likewise.
8865 * tree-vect-stmts.c: Likewise.
8866 * config/aarch64/aarch64.c: Likewise.
8867 * config/alpha/alpha.c: Likewise.
8868 * config/arc/arc.c: Likewise.
8869 * config/arm/arm.c: Likewise.
8870 * config/avr/avr.c: Likewise.
8871 * config/bfin/bfin.c: Likewise.
8872 * config/c6x/c6x.c: Likewise.
8873 * config/cr16/cr16.c: Likewise.
8874 * config/cris/cris.c: Likewise.
8875 * config/epiphany/epiphany.c: Likewise.
8876 * config/fr30/fr30.c: Likewise.
8877 * config/frv/frv.c: Likewise.
8878 * config/h8300/h8300.c: Likewise.
8879 * config/i386/i386.c: Likewise.
8880 * config/i386/winnt.c: Likewise.
8881 * config/ia64/ia64.c: Likewise.
8882 * config/iq2000/iq2000.c: Likewise.
8883 * config/lm32/lm32.c: Likewise.
8884 * config/m32c/m32c.c: Likewise.
8885 * config/m32r/m32r.c: Likewise.
8886 * config/m68k/m68k.c: Likewise.
8887 * config/mcore/mcore.c: Likewise.
8888 * config/mep/mep.c: Likewise.
8889 * config/microblaze/microblaze.c: Likewise.
8890 * config/mips/mips.c: Likewise.
8891 * config/mmix/mmix.c: Likewise.
8892 * config/mn10300/mn10300.c: Likewise.
8893 * config/moxie/moxie.c: Likewise.
8894 * config/msp430/msp430.c: Likewise.
8895 * config/nds32/nds32.c: Likewise.
8896 * config/pa/pa.c: Likewise.
8897 * config/pdp11/pdp11.c: Likewise.
8898 * config/picochip/picochip.c: Likewise.
8899 * config/rl78/rl78.c: Likewise.
8900 * config/rs6000/rs6000.c: Likewise.
8901 * config/rx/rx.c: Likewise.
8902 * config/s390/s390.c: Likewise.
8903 * config/score/score.c: Likewise.
8904 * config/sh/sh.c: Likewise.
8905 * config/sparc/sparc.c: Likewise.
8906 * config/spu/spu.c: Likewise.
8907 * config/stormy16/stormy16.c: Likewise.
8908 * config/tilegx/tilegx.c: Likewise.
8909 * config/tilepro/tilepro.c: Likewise.
8910 * config/v850/v850.c: Likewise.
8911 * config/vax/vax.c: Likewise.
8912 * config/xtensa/xtensa.c: Likewise.
8914 2014-06-02 Jeff Law <law@redhat.com>
8916 PR rtl-optimization/61094
8917 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8918 was marked as do_no_reextend. If a copy is needed to eliminate
8919 an extension, then mark it as do_not_reextend.
8921 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8923 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8925 2014-06-02 Richard Henderson <rth@redhat.com>
8928 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8929 addresses inside asms. Use output_operand_lossage instead of
8932 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8935 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8936 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8938 2014-06-02 Tom de Vries <tom@codesourcery.com>
8940 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8941 case that x has VOIDmode.
8943 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8945 * varasm.c (copy_constant): Delete function.
8946 (build_constant_desc): Don't call it.
8948 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8951 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8952 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8953 with immediate_operand.
8955 2014-06-02 Andreas Schwab <schwab@suse.de>
8957 * config/ia64/ia64.c
8958 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8959 pending_data_specs first.
8961 2014-06-02 Richard Biener <rguenther@suse.de>
8963 PR tree-optimization/61378
8964 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8967 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8969 * config/i386/constraints.md (Bw): Rename from 'w'.
8970 (Bz): Rename from 'z'.
8971 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8973 2014-06-01 Kai Tietz <ktietz@redhat.com>
8976 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8977 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8978 instead of m constraint.
8980 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8982 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8983 a separate alternative where the scratch operand 2 is marked as
8986 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8988 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8989 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8990 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8991 and __builtins_arm_get_fpscr.
8992 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8993 __builtins_arm_get_fpscr.
8994 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8995 __builtins_arm_ldfpscr.
8996 (arm_atomic_assign_expand_fenv): New function.
8997 * config/arm/vfp.md (set_fpscr): New pattern.
8998 (get_fpscr) : Likewise.
8999 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9001 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9002 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9004 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9006 * asan.c (report_error_func): Add SLOW_P argument, use
9007 BUILT_IN_ASAN_*_N if set.
9008 (build_check_stmt): Likewise.
9009 (instrument_derefs): If T has insufficient alignment,
9010 force same handling as for odd sizes.
9012 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9013 BUILT_IN_ASAN_REPORT_STORE_N): New.
9014 * asan.c (struct asan_mem_ref): Change access_size type to
9016 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9017 update_mem_ref_hash_table): Likewise.
9018 (asan_mem_ref_hasher::hash): Hash in a HWI.
9019 (report_error_func): Change size_in_bytes argument to HWI.
9020 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9022 (build_shadow_mem_access): New function.
9023 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9024 Handle size_in_bytes not power of two or larger than 16.
9025 (instrument_derefs): Don't give up if size_in_bytes is not
9026 power of two or is larger than 16.
9028 2014-05-30 Kai Tietz <ktietz@redhat.com>
9031 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9032 for sibling-tail-calls.
9033 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9035 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9036 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9038 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9040 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9041 * config/avr/avr-tables.opt: Regenerate.
9042 * config/avr/t-multilib: Regenerate.
9043 * doc/avr-mmcu.texi: Regenerate.
9045 2014-05-30 Ian Lance Taylor <iant@google.com>
9047 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9050 2014-05-30 Tom de Vries <tom@codesourcery.com>
9052 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9055 2014-05-30 Tom de Vries <tom@codesourcery.com>
9057 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9058 * lra.c (initialize_lra_reg_info_element): Add init of
9059 actual_call_used_reg_set field.
9060 (lra): Call lra_create_live_ranges before lra_inheritance for
9062 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9064 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9065 instead of call_used_reg_set for -fuse-caller-save.
9066 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9068 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9070 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9072 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9074 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9076 * ira.c (ira_get_dup_out_num): Check for output operands at
9077 the start of the loop. Handle cases where an included alternative
9078 follows an excluded one.
9080 2014-05-29 Mike Stump <mikestump@comcast.net>
9083 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9084 post ld passes when lto is used.
9086 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9088 PR rtl-optimization/61325
9089 * lra-constraints.c (process_address): Rename to process_address_1.
9090 (process_address): New function.
9092 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9094 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9095 TYPES_BINOPV): New static data.
9096 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9098 * config/aarch64/aarch64-simd.md (aarch64_ext,
9099 aarch64_im_lane_boundsi): New patterns.
9100 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9102 (aarch64_evpc_ext): New function.
9104 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9106 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9107 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9108 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9109 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9110 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9112 2014-05-29 Tom de Vries <tom@codesourcery.com>
9114 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9116 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9117 Richard Sandiford <rdsandiford@googlemail.com>
9119 * arm/iterators.md (shiftable_ops): New code iterator.
9120 (t2_binop0, arith_shift_insn): New code attributes.
9121 * arm/predicates.md (shift_nomul_operator): New predicate.
9122 * arm/arm.md (insn_enabled): Delete.
9123 (enabled): Remove insn_enabled test.
9124 (*arith_shiftsi): Delete. Replace with ...
9125 (*<arith_shift_insn>_multsi): ... new pattern.
9126 (*<arith_shift_insn>_shiftsi): ... new pattern.
9127 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9129 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9130 Tom de Vries <tom@codesourcery.com>
9132 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9133 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9135 (mips_split_call): Use POST_CALL_TMP_REG.
9136 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9138 2014-05-29 Tom de Vries <tom@codesourcery.com>
9140 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9141 with #ifdef STACK_REGS.
9143 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9145 * varasm.c (get_variable_section): Walk aliases.
9146 (place_block_symbol): Walk aliases.
9148 2014-05-28 Tom de Vries <tom@codesourcery.com>
9151 2014-05-28 Tom de Vries <tom@codesourcery.com>
9153 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9154 * lra.c (initialize_lra_reg_info_element): Add init of
9155 actual_call_used_reg_set field.
9156 (lra): Call lra_create_live_ranges before lra_inheritance for
9158 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9160 * lra-constraints.c (need_for_call_save_p): Use
9161 actual_call_used_reg_set instead of call_used_reg_set for
9163 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9165 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9167 * doc/md.texi: Document that the % constraint character must
9168 be at the beginning of the string.
9169 * genoutput.c (validate_insn_alternatives): Check that '=',
9170 '+' and '%' only appear at the beginning of a constraint.
9171 * ira.c (commutative_constraint_p): Delete.
9172 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9173 at the start of the string.
9174 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9176 * config/arm/neon.md (bicdi3_neon): Likewise.
9177 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9178 (slt_si, sltu_si): Likewise.
9179 * config/vax/vax.md (sbcdi3): Likewise.
9180 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9181 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9182 (mul64): Move '%' to beginning of constraint.
9183 * config/arm/arm.md (*xordi3_insn): Likewise.
9184 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9187 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9189 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9191 2014-05-28 Jason Merrill <jason@redhat.com>
9194 * cgraph.h (symtab_node::get_comdat_group_id): New.
9195 * cgraphunit.c (analyze_functions): Call it.
9196 * symtab.c (dump_symtab_node): Likewise.
9197 * tree.c (decl_comdat_group_id): New.
9198 * tree.h: Declare it.
9199 * lto-streamer-out.c (write_symbol): Use it.
9200 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9202 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9204 PR bootstrap/PR61146
9205 * wide-int.cc: Do not include longlong.h when compiling with clang.
9207 2014-05-28 Richard Biener <rguenther@suse.de>
9209 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9210 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9211 (vrp_visit_assignment_or_call): Print less vertical space.
9212 (vrp_visit_stmt): Likewise.
9213 (vrp_visit_phi_node): Likewise. For a PHI argument with
9214 VR_VARYING range consider recording it as copy.
9216 2014-05-28 Richard Biener <rguenther@suse.de>
9219 2014-05-28 Richard Biener <rguenther@suse.de>
9221 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9223 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9225 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9226 sufficiently aligned and an offset is used at the same time.
9227 (expand_expr_real_1): Likewise.
9229 2014-05-28 Richard Biener <rguenther@suse.de>
9232 * fold-const.c (fold_comparison): When folding
9233 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9234 the sign of the remaining constant operand stays the same.
9236 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9238 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9239 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9240 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9242 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9243 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9244 (m32bit-doubles) Likewise.
9245 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9246 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9249 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9251 * configure.ac ($gcc_cv_ld_clearcap): New test.
9252 * configure: Regenerate.
9253 * config.in: Regenerate.
9254 * config/sol2.opt (mclear-hwcap): New option.
9255 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9256 * config/sol2-clearcap.map: Moved here from
9257 testsuite/gcc.target/i386/clearcap.map.
9258 * config/sol2-clearcapv2.map: Move here from
9259 gcc.target/i386/clearcapv2.map.
9260 * config/t-sol2 (install): Depend on install-clearcap-map.
9261 (install-clearcap-map): New target.
9262 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9265 2014-05-28 Richard Biener <rguenther@suse.de>
9267 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9268 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9269 ... here and remove the rest.
9270 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9272 2014-05-28 Richard Biener <rguenther@suse.de>
9274 PR tree-optimization/61335
9275 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9276 new range fails, drop to varying.
9278 2014-05-28 Olivier Hainque <hainque@adacore.com>
9280 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9281 (CPP_SPEC): Add entry for -mcpu=8548.
9282 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9283 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9285 2014-05-28 Tom de Vries <tom@codesourcery.com>
9287 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9288 * lra.c (initialize_lra_reg_info_element): Add init of
9289 actual_call_used_reg_set field.
9290 (lra): Call lra_create_live_ranges before lra_inheritance for
9292 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9294 * lra-constraints.c (need_for_call_save_p): Use
9295 actual_call_used_reg_set instead of call_used_reg_set for
9297 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9299 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9300 Tom de Vries <tom@codesourcery.com>
9302 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9304 (@item -fuse-caller-save): New item.
9306 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9307 Tom de Vries <tom@codesourcery.com>
9309 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9310 OPT_fuse_caller_save.
9312 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9313 Tom de Vries <tom@codesourcery.com>
9315 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9316 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9317 get_call_reg_set_usage.
9318 * resource.c (mark_set_resources, mark_target_live_regs): Use
9319 get_call_reg_set_usage.
9320 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9322 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9323 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9324 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9325 * ira-build.c (ira_create_allocno): Init
9326 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9327 (create_cap_allocno, propagate_allocno_info)
9328 (propagate_some_info_from_allocno)
9329 (copy_info_to_removed_store_destinations): Handle
9330 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9331 * ira-costs.c (ira_tune_allocno_costs): Use
9332 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9334 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9335 Tom de Vries <tom@codesourcery.com>
9337 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9338 and function_used_regs_valid fields.
9339 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9340 find_all_hard_reg_sets.
9341 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9342 (get_call_reg_set_usage): New function.
9343 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9344 * regs.h (get_call_reg_set_usage): Declare.
9346 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9349 * config/dbx.h (License): Add Runtime Library Exception.
9350 * config/newlib-stdint.h (License): Same.
9351 * config/rtems.h (License): Same
9352 * config/initfini-array.h (License): Same
9353 * config/v850/v850.h (License): Same.
9354 * config/v850/v850-opts.h (License): Same
9355 * config/v850/rtems.h (License): Same.
9357 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9360 * doc/extend.texi (Local Labels): Note that label differences are
9361 not supported for AVR.
9363 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9364 Olivier Hainque <hainque@adacore.com>
9366 * rtl.h (set_for_reg_notes): Declare.
9367 * emit-rtl.c (set_for_reg_notes): New function.
9368 (set_unique_reg_note): Use it.
9369 * optabs.c (add_equal_note): Likewise
9371 2014-05-27 Andrew Pinski <apinski@cavium.com>
9373 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9374 Use <w> for the register in assembly template.
9375 (stack_protect_test): Use the mode of operands[0] for the result.
9376 (stack_protect_test_<mode>): Use <w> for the register
9377 in assembly template.
9379 2014-05-27 DJ Delorie <dj@redhat.com>
9381 * config/rx/rx.c (add_vector_labels): New.
9382 (rx_output_function_prologue): Call it.
9383 (rx_handle_func_attribute): Don't require empty arguments.
9384 (rx_handle_vector_attribute): New.
9385 (rx_attribute_table): Add "vector" attribute.
9386 * doc/extend.texi (interrupt, vector): Document new/changed
9387 RX-specific attributes.
9389 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9391 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9393 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9394 predicate to detect a negative quotient.
9396 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9398 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9399 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9400 Add X - Y CMP 0 to X CMP Y transformation.
9401 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9403 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9405 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9408 2014-05-27 Steve Ellcey <sellcey@mips.com>
9410 * config/mips/mips.c: Add include of cgraph.h.
9412 2014-05-27 Richard Biener <rguenther@suse.de>
9414 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9416 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9419 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9420 * config/arm/arm-cores.def (License): Same.
9421 * config/arm/arm-opts.h (License): Same.
9422 * config/arm/aout.h (License): Same.
9423 * config/arm/bpabi.h (License): Same.
9424 * config/arm/elf.h (License): Same.
9425 * config/arm/linux-elf.h (License): Same.
9426 * config/arm/linux-gas.h (License): Same.
9427 * config/arm/netbsd-elf.h (License): Same.
9428 * config/arm/uclinux-eabi.h (License): Same.
9429 * config/arm/uclinux-elf.h (License): Same.
9430 * config/arm/vxworks.h (License): Same.
9432 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9434 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9435 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9436 (arm_init_neon_builtins): Handle NEON_BSWAP.
9437 Define required type nodes.
9438 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9439 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9440 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9441 * config/arm/iterators.md (VDQHSD): New mode iterator.
9443 2014-05-27 Richard Biener <rguenther@suse.de>
9445 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9446 Try using literal operands when comparing value-ranges failed.
9448 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9450 * ira.c (commutative_operand): Adjust for change to recog_data.
9451 [Missing from previous commit.]
9453 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9455 * system.h (TEST_BIT): New macro.
9456 * recog.h (alternative_mask): New type.
9457 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9458 (recog_data_d): Replace alternative_enabled_p array with
9459 enabled_alternatives.
9460 (target_recog): New structure.
9461 (default_target_recog, this_target_recog): Declare.
9462 (get_enabled_alternatives, recog_init): Likewise.
9463 * recog.c (default_target_recog, this_target_recog): New variables.
9464 (get_enabled_alternatives): New function.
9465 (extract_insn): Use it.
9466 (recog_init): New function.
9467 (preprocess_constraints, constrain_operands): Adjust for change to
9469 * postreload.c (reload_cse_simplify_operands): Likewise.
9470 * reload.c (find_reloads): Likewise.
9471 * ira-costs.c (record_reg_classes): Likewise.
9472 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9473 all alternatives after a disabled one would be skipped.
9474 (ira_implicitly_set_insn_hard_regs): Likewise.
9475 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9476 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9477 with enabled_alternatives.
9478 * lra.c (free_insn_recog_data): Update accordingly.
9479 (lra_update_insn_recog_data): Likewise.
9480 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9481 * lra-constraints.c (process_alt_operands): Likewise. Handle
9482 only_alternative as part of the enabled mask.
9483 * target-globals.h (this_target_recog): Declare.
9484 (target_globals): Add a recog field.
9485 (restore_target_globals): Restore this_target_recog.
9486 * target-globals.c: Include recog.h.
9487 (default_target_globals): Initialize recog field.
9488 (save_target_globals): Likewise.
9489 * reginfo.c (reinit_regs): Call recog_init.
9490 * toplev.c (backend_init_target): Likewise.
9492 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9494 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9495 rather than any named insn's code.
9497 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9500 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9501 * config/arm/arm-cores.def (License): Same.
9503 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9505 * tree.h (decl_comdat_group): Declare.
9506 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9507 * tree.c (decl_comdat_group): Here.
9509 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9511 PR rtl-optimization/61222
9512 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9513 the shift, truncate the PLUS operand to the result mode.
9515 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9518 * config/i386/i386.c (ix86_rtx_costs)
9519 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9522 2014-05-26 Martin Jambor <mjambor@suse.cz>
9524 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9527 2014-05-26 Richard Biener <rguenther@suse.de>
9529 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9530 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9531 Provide specializations.
9532 (wi::int_traits <HOST_WIDE_INT>,
9533 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9535 2014-05-26 Alan Modra <amodra@gmail.com>
9538 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9539 params and return a bool. Remove dead code. Update comment.
9540 Assert we have a const_int source. Remove bogus code from
9541 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9542 handling of constants > 2G and reg_equal note, from..
9543 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9544 return value. Update comment. If we can, use a new pseudo
9545 for intermediate calculations.
9546 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9548 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9549 call to rs6000_emit_set_const in splitter.
9550 (movdi_internal64+2, +3): Likewise.
9552 2014-05-26 Richard Biener <rguenther@suse.de>
9554 * system.h: Define __STDC_FORMAT_MACROS before
9555 including inttypes.h.
9556 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9557 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9558 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9559 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9560 HOST_WIDEST_INT_C): Remove.
9561 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9562 if C99 inttypes.h is not available.
9563 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9564 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9565 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9566 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9567 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9568 (struct output_info): Likewise.
9569 (print_statistics): Adjust.
9570 (dump_bitmap_statistics): Likewise.
9571 * bt-load.c (migrate_btr_defs): Print with PRId64.
9572 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9573 (MAX_SAFE_MULTIPLIER): Adjust.
9574 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9575 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9576 dump_cgraph_node): Likewise.
9577 * final.c (dump_basic_block_info): Likewise.
9578 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9579 * gcov.c (format_gcov): Likewise.
9580 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9582 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9583 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9584 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9585 Use PRId64 for dumping.
9586 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9587 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9588 (add_allocno_hard_regs): Adjust.
9589 * loop-doloop.c (doloop_modify): Print using PRId64.
9590 * loop-iv.c (inverse): Compute in uint64_t.
9591 (determine_max_iter, iv_number_of_iterations): Likewise.
9592 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9594 * lto-streamer-out.c (write_symbol): Use uint64_t.
9595 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9596 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9597 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9598 * modulo-sched.c (const_iteration_count): Use int64_t.
9599 (sms_schedule): Dump using PRId64.
9600 * predict.c (dump_prediction): Likewise.
9601 * pretty-print.h (pp_widest_integer): Remove.
9602 * profile.c (get_working_sets, is_edge_inconsistent,
9603 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9604 * tree-pretty-print.c (pp_double_int): Remove case handling
9605 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9606 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9608 (pass_optimize_bswap::execute): Remove restriction on hosts.
9609 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9610 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9611 * tree.c (widest_int_cst_value): Remove.
9612 * tree.h (widest_int_cst_value): Likewise.
9613 * value-prof.c (dump_histogram_value): Print using PRId64.
9614 * gengtype.c (main): Also inject int64_t.
9615 * ggc-page.c (struct max_alignment): Use int64_t.
9616 * alloc-pool.c (struct allocation_object_def): Likewise.
9617 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9619 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9620 * doc/tm.texi: Regenerated.
9621 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9622 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9623 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9624 mmix_output_register_setting): Use [u]int64_t in prototypes.
9625 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9626 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9627 mmix_output_octa, mmix_output_shifted_value): Adjust.
9628 (mmix_intval): Adjust. Remove unreachable case.
9629 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9631 2014-05-26 Richard Biener <rguenther@suse.de>
9633 * configure.ac: Drop __int64 type check. Insist that we
9634 found uint64_t and int64_t.
9635 * hwint.h (HOST_BITS_PER___INT64): Remove.
9636 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9637 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9638 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9639 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9640 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9641 for dst_q_src_df_rms_cdt.
9642 * configure: Regenerate.
9643 * config.in: Likewise.
9645 2014-05-26 Michael Tautschnig <mt@debian.org>
9648 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9649 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9651 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9653 PR rtl-optimization/61278
9654 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9656 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9658 PR rtl-optimization/61220
9659 Part of PR rtl-optimization/61225
9660 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9661 insn; skip split_edge for a block with only one successor.
9663 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9665 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9668 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9670 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9671 (update_vtable_references): New function.
9672 (function_and_variable_visibility): Rewrite also vtable initializers.
9673 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9675 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9677 * ggc.h (ggc_grow): New function.
9678 * ggc-none.c (ggc_grow): New function.
9679 * ggc-page.c (ggc_grow): Likewise.
9681 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9683 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9684 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9685 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9686 varpool_externally_visible_p, can_replace_by_local_alias,
9687 update_visibility_by_resolution_info, function_and_variable_visibility,
9688 pass_data_ipa_function_and_variable_visibility,
9689 make_pass_ipa_function_and_variable_visibility,
9690 whole_program_function_and_variable_visibility,
9691 pass_data_ipa_whole_program_visibility,
9692 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9693 * cgraph.h (cgraph_local_node_p): Declare.
9694 * ipa-visibility.c: New file.
9695 * Makefile.in (OBJS): Add ipa-visiblity.o
9697 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9699 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9700 that var decl is available.
9702 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9704 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9705 symtab_node pointer.
9706 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9707 (find_decls_types_r): Do not walk COMDAT_GROUP.
9708 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9709 * varasm.c (make_decl_one_only): Use set_comdat_group;
9710 create node if needed.
9711 * ipa-inline-transform.c (save_inline_function_body): Update
9712 way we decl->symtab mapping.
9713 * symtab.c (symtab_hash, hash_node, eq_node
9714 symtab_insert_node_to_hashtable): Remove.
9715 (symtab_register_node): Update.
9716 (symtab_unregister_node): Update.
9717 (symtab_get_node): Reimplement as inline function.
9718 (symtab_add_to_same_comdat_group): Update.
9719 (symtab_dissolve_same_comdat_group_list): Update.
9720 (dump_symtab_base): Update.
9721 (verify_symtab_base): Update.
9722 (symtab_make_decl_local): Update.
9723 (fixup_same_cpp_alias_visibility): Update.
9724 (symtab_nonoverwritable_alias): Update.
9725 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9726 * ipa.c (update_visibility_by_resolution_info): UPdate.
9727 * bb-reorder.c: Include cgraph.h
9728 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9730 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9731 * cgraph.c (cgraph_get_create_node): Update.
9732 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9734 (symtab_get_node): Make inline.
9735 (symtab_insert_node_to_hashtable): Remove.
9736 (symtab_can_be_discarded): Update.
9737 (decl_comdat_group): New function.
9738 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9740 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9742 (read_comdat_group): New function.
9743 (input_node, input_varpool_node): Use it.
9744 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9746 * mips.c (mips_start_unique_function): Likewise.
9747 (ix86_code_end): Likewise.
9748 (rs6000_code_end): Likweise.
9749 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9751 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9753 * gengtype-state.c (fatal_reading_state): Bring offline.
9754 * optabs.c (widening_optab_handler): Bring offline.
9755 * optabs.h (widening_optab_handler): Likewise.
9756 * final.c (get_attr_length_1): Likewise.
9758 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9760 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9762 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9764 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9765 (ppc440-compare): Include shift with dot.
9766 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9767 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9769 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9771 (e6500_sfx2): Include it.
9772 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9773 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9774 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9775 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9776 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9777 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9778 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9779 *lshiftrt_internal1le, *lshiftrt_internal1be,
9780 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9781 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9782 *rotldi3_internal10le, *rotldi3_internal10be,
9783 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9784 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9785 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9786 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9787 define_insns): Use type "shift" in the appropriate alternatives.
9789 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9791 * config/rs6000/rs6000.md (type): Add "logical". Delete
9793 (dot): Adjust comment.
9794 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9795 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9796 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9797 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9798 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9799 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9800 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9801 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9803 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9804 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9805 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9806 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9807 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9808 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9809 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9810 * config/rs6000/8540.md (ppc8540_su): Adjust.
9811 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9812 cell-cmp-microcoded): Adjust.
9813 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9814 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9815 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9816 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9817 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9818 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9819 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9820 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9821 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9823 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9824 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9825 Adjust. Adjust comment.
9826 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9827 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9829 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9831 * config/rs6000/rs6000.md (type): Add "add".
9832 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9833 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9834 define_insns): Use it.
9835 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9837 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9838 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9839 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9840 * config/rs6000/601.md (ppc601-integer): Adjust.
9841 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9842 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9843 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9844 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9845 * config/rs6000/8540.md (ppc8540_su): Adjust.
9846 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9847 cell-cmp-microcoded): Adjust.
9848 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9849 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9850 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9851 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9852 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9853 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9854 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9855 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9856 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9858 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9859 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9860 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9861 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9863 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9865 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9866 "delayed_compare", "var_delayed_compare".
9867 (var_shift): New attribute.
9868 (cell_micro): Adjust.
9869 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9870 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9871 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9872 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9873 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9874 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9875 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9876 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9877 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9878 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9879 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9880 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9881 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9882 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9883 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9884 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9885 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9886 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9887 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9888 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9889 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9890 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9891 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9892 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9893 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9895 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9896 * config/rs6000/440.md (ppc440-integer): Adjust.
9897 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9898 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9899 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9900 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9901 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9902 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9903 * config/rs6000/8540.md (ppc8540_su): Adjust.
9904 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9905 cell-cmp-microcoded): Adjust.
9906 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9907 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9908 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9909 e500mc64_delayed): Adjust.
9910 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9911 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9912 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9913 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9914 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9915 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9916 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9917 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9918 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9920 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9921 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9923 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9925 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9926 (bits): New mode_attr.
9927 (idiv_ldiv): Delete mode_attr.
9928 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9929 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9930 rs6000_adjust_priority, is_nonpipeline_insn,
9931 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9933 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9934 * config/rs6000/440.md (ppc440-idiv): Adjust.
9935 * config/rs6000/476.md (ppc476-idiv): Adjust.
9936 * config/rs6000/601.md (ppc601-idiv): Adjust.
9937 * config/rs6000/603.md (ppc603-idiv): Adjust.
9938 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9939 ppc620-ldiv): Adjust.
9940 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9941 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9942 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9943 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9944 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9945 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9946 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9947 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9948 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9949 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9950 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9951 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9952 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9953 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9954 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9955 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9956 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9957 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9959 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9961 * config/rs6000/rs6000.md (type): Delete "insert_word",
9962 "insert_dword". Add "insert".
9963 (size): Update comment.
9964 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9965 insn_must_be_first_in_group): Adjust.
9966 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9967 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9968 *insvsi_internal6, insvdi_internal): Adjust.
9970 * config/rs6000/40x.md (ppc403-integer): Adjust.
9971 * config/rs6000/440.md (ppc440-integer): Adjust.
9972 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9973 * config/rs6000/601.md (ppc601-integer): Adjust.
9974 * config/rs6000/603.md (ppc603-integer): Adjust.
9975 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9976 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9977 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9978 * config/rs6000/8540.md (ppc8540_su): Adjust.
9979 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9980 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9981 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9982 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9983 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9984 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9985 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9986 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9987 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9988 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9989 * config/rs6000/power7.md (power7-integer): Adjust.
9990 * config/rs6000/power8.md (power8-1cyc): Adjust.
9991 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9992 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9994 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9996 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9997 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9998 (size): New attribute.
9999 (dot): New attribute.
10000 (cell_micro): Adjust.
10001 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10002 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10003 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10004 umuldi3_highpart): Adjust.
10005 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10006 rs6000_adjust_priority, is_nonpipeline_insn,
10007 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10009 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10010 ppc405-imul3): Adjust.
10011 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10012 * config/rs6000/476.md (ppc476-imul): Adjust.
10013 * config/rs6000/601.md (ppc601-imul): Adjust.
10014 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10015 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10016 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10017 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10018 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10020 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10021 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10022 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10023 cell-imul): Adjust.
10024 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10025 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10026 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10027 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10028 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10029 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10030 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10031 power4-lmul, power4-imul, power4-imul3): Adjust.
10032 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10033 power5-lmul, power5-imul, power5-imul3): Adjust.
10034 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10035 power6-lmul, power6-imul, power6-imul3): Adjust.
10036 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10037 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10039 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10040 rs64a-lmul): Adjust.
10041 * config/rs6000/titan.md (titan_imul): Adjust.
10043 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10045 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10046 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10047 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10048 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10049 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10050 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10051 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10052 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10053 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10054 * config/rs6000/titan.md: Delete nonsensical comment.
10055 (titan_imul): Add type imul3.
10056 (titan_mulhw): Remove type imul3; add type halfmul.
10058 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10060 * config/rs6000/rs6000.md (type): Reorder, reformat.
10062 2014-05-23 Martin Jambor <mjambor@suse.cz>
10064 PR tree-optimization/53787
10065 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10066 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10067 analysis_done, update all uses.
10068 * ipa-prop.c: Include domwalk.h
10069 (param_analysis_info): Removed.
10070 (param_aa_status): New type.
10071 (ipa_bb_info): Likewise.
10072 (func_body_info): Likewise.
10073 (ipa_get_bb_info): New function.
10074 (aa_overwalked): Likewise.
10075 (find_dominating_aa_status): Likewise.
10076 (parm_bb_aa_status_for_bb): Likewise.
10077 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10078 (load_from_unmodified_param): Accept func_body_info as a parameter
10079 instead of parms_ainfo.
10080 (parm_ref_data_preserved_p): Changed to use new param AA info.
10081 (parm_ref_data_pass_through_p): Likewise.
10082 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10083 (compute_complex_assign_jump_func): Changed to use new param AA info.
10084 (compute_complex_ancestor_jump_func): Likewise.
10085 (ipa_compute_jump_functions_for_edge): Likewise.
10086 (ipa_compute_jump_functions): Removed.
10087 (ipa_compute_jump_functions_for_bb): New function.
10088 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10090 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10091 and info, moved variable declarations down.
10092 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10094 (ipa_analyze_stmt_uses): Likewise.
10095 (ipa_analyze_params_uses): Removed.
10096 (ipa_analyze_params_uses_in_bb): New function.
10097 (ipa_analyze_controlled_uses): Likewise.
10098 (free_ipa_bb_info): Likewise.
10099 (analysis_dom_walker): New class.
10100 (ipa_analyze_node): Handle node-specific forbidden analysis,
10101 initialize and free func_body_info, use dominator walker.
10102 (ipcp_modif_dom_walker): New class.
10103 (ipcp_transform_function): Create and free func_body_info, use
10104 ipcp_modif_dom_walker, moved a lot of functionality there.
10106 2014-05-23 Marek Polacek <polacek@redhat.com>
10107 Jakub Jelinek <jakub@redhat.com>
10109 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10110 * gcc.c (sanitize_spec_function): Likewise.
10111 * convert.c (convert_to_integer): Include "ubsan.h". Add
10112 floating-point to integer instrumentation.
10113 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10114 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10115 SANITIZE_NONDEFAULT.
10116 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10117 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10118 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10119 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10120 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10121 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10122 float/double/long double.
10123 (ubsan_instrument_float_cast): New function.
10124 * ubsan.h (ubsan_instrument_float_cast): Declare.
10126 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10128 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10130 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10131 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10132 Adjust for tailcalling through registers.
10133 * config/aarch64/aarch64.h (enum reg_class): New caller save
10135 (REG_CLASS_NAMES): Likewise.
10136 (REG_CLASS_CONTENTS): Likewise.
10137 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10138 Allow tailcalling without decls.
10140 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10142 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10143 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10145 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10146 gsi, and variables v_* to v*.
10148 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10150 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10152 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10154 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10155 * omp-low.c: Update accordingly.
10157 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10158 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10159 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10160 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10161 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10162 GF_OMP_TARGET_KIND_UPDATE.
10164 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10165 Explicitly enumerate the expected region types.
10167 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10170 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10171 documentation; the old documentation didn't clearly state the
10172 constraints on the contents of the pointed-to storage.
10174 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10176 Fix bootstrap error on ia64
10177 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10178 Return default value.
10180 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10182 PR tree-optimization/54733
10183 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10185 (find_bswap_or_nop_load): New.
10186 (find_bswap_1): Renamed to ...
10187 (find_bswap_or_nop_1): This. Also add support for memory source.
10188 (find_bswap): Renamed to ...
10189 (find_bswap_or_nop): This. Also add support for memory source and
10190 detection of bitwise operations equivalent to load in target
10192 (execute_optimize_bswap): Likewise. Also move its leading comment back
10193 in place and split statement transformation into ...
10194 (bswap_replace): This.
10196 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10198 PR rtl-optimization/61215
10199 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10200 simplify_gen_subreg until final substitution.
10202 2014-05-23 Alan Modra <amodra@gmail.com>
10205 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10206 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10207 Use "Y" constraint rather than "m".
10209 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10211 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10213 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10214 New function declaration.
10215 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10216 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10217 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10218 (aarch64_init_builtins) : Initialize builtins
10219 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10220 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10221 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10222 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10223 and __builtins_aarch64_set_fpsr.
10224 (aarch64_atomic_assign_expand_fenv): New function.
10225 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10226 (get_fpcr) : Likewise.
10227 (set_fpsr) : Likewise.
10228 (get_fpsr) : Likewise.
10229 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10230 and UNSPECV_SET_FPSR.
10231 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10232 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10233 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10235 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10237 PR rtl-optimization/60969
10238 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10239 constraints. Set up mem cost for NO_REGS case.
10241 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10243 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10245 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10247 * config/darwin.c: Include "lto-section-names.h".
10248 (LTO_SEGMENT_NAME): Don't define.
10249 * config/i386/winnt.c: Include "lto-section-names.h".
10250 * lto-streamer.c: Include "lto-section-names.h".
10251 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10252 * lto-wrapper.c: Include "lto-section-names.h".
10253 (LTO_SECTION_NAME_PREFIX): Don't define.
10254 * lto-section-names.h: New file.
10255 * cgraphunit.c: Include "lto-section-names.h".
10257 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10259 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10261 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10264 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10266 2014-05-22 Nick Clifton <nickc@redhat.com>
10268 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10270 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10272 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10273 -> (T)A transformation to integer types.
10275 2014-05-22 Teresa Johnson <tejohnson@google.com>
10277 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10278 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10279 (gcov_rewrite): Use gcov_nonruntime_assert.
10280 (gcov_open): Ditto.
10281 (gcov_write_words): Ditto.
10282 (gcov_write_length): Ditto.
10283 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10284 gcc_assert from IN_LIBGCOV code.
10285 (gcov_read_summary): Use gcov_error to flag profile corruption.
10286 (gcov_sync): Use gcov_nonruntime_assert.
10287 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10288 (gcov_histo_index): Use gcov_nonruntime_assert.
10289 (static void gcov_histogram_merge): Ditto.
10290 (compute_working_sets): Ditto.
10291 * gcov-io.h (gcov_nonruntime_assert): Define.
10292 (gcov_error): Define for !IN_LIBGCOV
10294 2014-05-22 Richard Biener <rguenther@suse.de>
10296 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10297 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10298 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10299 and deallocation site.
10300 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10301 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10302 passing through the incoming points-to set.
10303 (handle_lhs_call): Use flags argument instead of recomputing it.
10304 (find_func_aliases_for_call): Call handle_lhs_call with proper
10307 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10309 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10310 all padding bits in REAL_VALUE_TYPE are cleared.
10312 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10314 Cleanup and improve multipass_dfa_lookahead_guard
10315 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10316 (core2i7_first_cycle_multipass_begin,)
10317 (core2i7_first_cycle_multipass_issue,)
10318 (core2i7_first_cycle_multipass_backtrack): Update signature.
10319 * config/ia64/ia64.c
10320 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10321 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10322 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10324 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10325 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10327 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10329 * doc/tm.texi: Regenerate.
10331 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10332 * haifa-sched.c (ready_try): Make signed to allow negative values.
10333 (rebug_ready_list_1): Update.
10334 (choose_ready): Simplify.
10335 (sched_extend_ready_list): Update.
10337 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10339 Remove IA64 speculation tweaking flags
10340 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10341 speculation tuning flags.
10342 (msched-prefer-non-data-spec-insns,)
10343 (msched-prefer-non-control-spec-insns): Obsolete options.
10344 * haifa-sched.c (choose_ready): Remove handling of
10345 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10346 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10347 and PREFER_NON_DATA_SPEC.
10348 * sel-sched.c (process_spec_exprs): Remove handling of
10349 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10351 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10353 Improve scheduling debug output
10354 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10355 (advance_one_cycle): Update.
10356 (schedule_insn, queue_to_ready): Add debug printouts.
10357 (debug_ready_list_1): New static function.
10358 (debug_ready_list): Update.
10359 (max_issue): Add debug printouts.
10360 (dump_insn_stream): New static function.
10361 (schedule_block): Use it. Also better indent printouts.
10363 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10365 Fix sched_insn debug counter
10366 * haifa-sched.c (schedule_insn): Update.
10367 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10368 (save_backtrack_point, restore_backtrack_point): Update.
10369 (first_nonscheduled_insn): New static function.
10370 (queue_to_ready, choose_ready): Use it.
10371 (schedule_block): Init nonscheduled_insns_begin.
10372 (sched_emit_insn): Update.
10375 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10377 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10379 (aarch64_secondary_reload) : LikeWise.
10380 (aarch64_class_max_nregs) : Remove CORE_REGS.
10381 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10382 (REG_CLASS_NAMES) : Likewise.
10383 (REG_CLASS_CONTENTS) : LikeWise.
10384 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10386 2014-05-21 Guozhi Wei <carrot@google.com>
10389 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10391 (vqdmulhq_n_s16): Likewise.
10393 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10395 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10397 2014-05-21 Marek Polacek <polacek@redhat.com>
10400 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10402 2014-05-21 Martin Jambor <mjambor@suse.cz>
10404 * doc/invoke.texi (Optimize Options): Document parameters
10405 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10406 ipa-cp-array-index-hint-bonus.
10408 2014-05-21 Mark Wielaard <mjw@redhat.com>
10411 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10412 version >= 3 or not strict DWARF.
10413 * langhooks.h (struct lang_hooks_for_types): Add
10414 enum_underlying_base_type.
10415 * langhooks.c (lhd_enum_underlying_base_type): New function.
10416 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10417 enum_underlying_base_type.
10418 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10419 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10420 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10422 2014-05-21 Richard Biener <rguenther@suse.de>
10424 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10426 2014-05-21 John Marino <gnugcc@marino.st>
10428 * config.gcc (*-*-dragonfly*): New target.
10429 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10430 * configure: Regenerate.
10431 * config/dragonfly-stdint.h: New.
10432 * config/dragonfly.h: New.
10433 * config/dragonfly.opt: New.
10434 * config/i386/dragonfly.h: New.
10435 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10437 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10439 * tree.def (VOID_CST): New.
10440 * tree-core.h (TI_VOID): New.
10441 * tree.h (void_node): New.
10442 * tree.c (tree_node_structure_for_code, tree_code_size)
10443 (iterative_hash_expr): Handle VOID_CST.
10444 (build_common_tree_nodes): Initialize void_node.
10446 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10448 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10450 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10452 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10455 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10456 flag_reorder_blocks_and_partition.
10457 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10459 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10462 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10464 (*addc_r_t): Add new insn_and_split.
10466 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10468 PR middle-end/61252
10469 * omp-low.c (handle_simd_reference): New function.
10470 (lower_rec_input_clauses): Use it. Defer adding reference
10471 initialization even for reduction without placeholder if in simd,
10472 handle it properly later on.
10474 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10476 PR tree-optimization/60899
10477 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10478 assume all static symbols will have definition wile parsing and
10479 check the do have definition later in compilation; check that
10480 variable referring symbol will be output before concluding that
10481 reference is safe; be conservative for referring local statics;
10482 be more precise about when comdat is output in other partition.
10484 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10487 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10489 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10490 (ipa_inline): Loop inline_to_all_callers until no more aliases
10493 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10495 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10496 set writeonly flag only for vars actually written to.
10498 2014-05-20 Dehao Chen <dehao@google.com>
10500 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10501 and callee count to get clone count.
10502 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10503 count in copy_body.
10505 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10507 PR rtl-optimization/61243
10508 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10510 2014-05-20 Xinliang David Li <davidxl@google.com>
10512 * cgraphunit.c (walk_polymorphic_call_targets): Add
10513 dbgcnt and fopt-info support.
10514 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10515 * ipa-devirt.c (ipa_devirt): Ditto.
10516 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10517 * ipa.c (walk_polymorphic_call_targets): Ditto.
10518 * gimple-fold.c (fold_gimple_assign): Ditto.
10519 (gimple_fold_call): Ditto.
10520 * dbgcnt.def: New counter.
10522 2014-05-20 DJ Delorie <dj@redhat.com>
10524 * config/msp430/msp430.md (split): Don't allow subregs when
10525 splitting SImode adds.
10526 (andneghi): Fix subtraction logic.
10527 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10529 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10531 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10533 * except.c (switch_to_exception_section, resolve_unique_section,
10534 get_named_text_section, default_function_rodata_section,
10535 align_variable, get_block_for_decl, default_section_type_flags):
10536 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10537 * symtab.c (symtab_add_to_same_comdat_group,
10538 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10539 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10541 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10542 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10543 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10544 (c6x_function_in_section_p): Likewise.
10545 * config/darwin.c (machopic_select_section): Likewise.
10546 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10547 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10548 * config/mep/mep.c (mep_select_section): LIkewise.
10549 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10551 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10553 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10554 EH region of calls to pure functions that can throw an exception.
10555 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10556 (copy_reference_ops_from_call): Also copy the EH region of the call if
10557 it can throw an exception.
10559 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10561 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10562 nested VEC_SELECTs that are inverses of each other.
10564 2014-05-20 Richard Biener <rguenther@suse.de>
10566 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10567 (extract_and_process_scc_for_name): not here.
10568 (cond_dom_walker::before_dom_children): Only process
10569 stmts that end the BB in interesting ways.
10570 (run_scc_vn): Mark param uses as visited.
10572 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10574 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10577 2014-05-20 Nick Clifton <nickc@redhat.com>
10579 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10580 (msp430_gimplify_va_arg_expr): New function.
10581 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10583 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10584 operand 0 in order to prevent confusion about the number of
10585 registers involved.
10587 2014-05-20 Richard Biener <rguenther@suse.de>
10589 PR tree-optimization/61221
10590 * tree-ssa-pre.c (el_to_update): Remove.
10591 (eliminate_dom_walker::before_dom_children): Handle released
10592 VDEFs by value-numbering them to the associated VUSE. Update
10593 stmt immediately for substituted call address.
10594 (eliminate): Remove delayed stmt updating code.
10595 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10596 possibly late re-numbered vuses.
10597 (vn_reference_lookup_2): Adjust.
10598 (vn_reference_lookup_pieces): Likewise.
10599 (vn_reference_lookup): Likewise.
10601 2014-05-20 Richard Biener <rguenther@suse.de>
10603 * config.gcc: Remove need_64bit_hwint.
10604 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10605 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10607 * config.in: Regenerate.
10608 * configure: Likewise.
10610 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10612 * doc/extend.texi: Create Label Attributes section,
10613 move all label attributes into it and reference it.
10615 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10617 * arm.c (thumb1_reorg): When scanning backwards skip anything
10618 that's not a proper insn.
10620 2014-05-19 Richard Biener <rguenther@suse.de>
10622 PR tree-optimization/61221
10623 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10624 Do nothing for unreachable blocks.
10625 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10626 Improve unreachability detection.
10628 2014-05-19 Richard Biener <rguenther@suse.de>
10630 PR tree-optimization/61209
10631 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10633 2014-05-19 Nick Clifton <nickc@redhat.com>
10635 * except.c (init_eh): Fix computation of builtin setjmp buffer
10636 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10638 2014-05-19 Richard Biener <rguenther@suse.de>
10640 PR tree-optimization/61184
10641 * tree-vrp.c (is_negative_overflow_infinity): Use
10642 TREE_OVERFLOW_P and do that check first.
10643 (is_positive_overflow_infinity): Likewise.
10644 (is_overflow_infinity): Likewise.
10645 (vrp_operand_equal_p): Properly treat operands with
10646 differing overflow as not equal.
10648 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10650 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10651 shift simplification where it was intended.
10653 2014-05-19 Christian Bruel <christian.bruel@st.com>
10656 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10658 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10661 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10664 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10666 * reg-notes.def (CROSSING_JUMP): Likewise.
10667 * rtl.h (rtx_def): Update comment for jump flag.
10668 (CROSSING_JUMP_P): Define.
10669 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10670 of a REG_CROSSING_JUMP note.
10671 * cfghooks.c (tidy_fallthru_edges): Likewise.
10672 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10673 * emit-rtl.c (try_split): Likewise.
10674 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10675 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10676 * jump.c (redirect_jump_2): Likewise.
10677 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10678 (relax_delay_slots): Likewise.
10679 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10680 (bbit_di): Likewise.
10681 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10682 * config/sh/sh.md (jump_compact): Likewise.
10683 * bb-reorder.c (rotate_loop): Likewise.
10684 (pass_duplicate_computed_gotos::execute): Likewise.
10685 (add_reg_crossing_jump_notes): Rename to...
10686 (update_crossing_jump_flags): ...this.
10687 (pass_partition_blocks::execute): Update accordingly.
10689 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10691 * tree.h: Remove extraneous template <>.
10693 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10695 * ipa.c (symtab_remove_unreachable_nodes): Remove
10696 symbol from comdat group if its body was eliminated.
10697 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10698 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10699 (symtab_unregister_node): ... this one.
10700 (verify_symtab_base): More strict checking of comdats.
10701 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10703 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10705 * tree-pass.h (make_pass_ipa_comdats): New pass.
10706 * timevar.def (TV_IPA_COMDATS): New timevar.
10707 * passes.def (pass_ipa_comdats): Add.
10708 * Makefile.in (OBJS): Add ipa-comdats.o
10709 * ipa-comdats.c: New file.
10711 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10713 * ipa.c (update_visibility_by_resolution_info): New function.
10714 (function_and_variable_visibility): Use it.
10716 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10718 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10720 (FOR_EACH_DEFINED_SYMBOL): New macro.
10721 (varpool_first_static_initializer, varpool_next_static_initializer,
10722 varpool_first_defined_variable, varpool_next_defined_variable):
10724 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10726 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10728 * ggc-page.c (ggc_handle_finalizers): Add comment.
10730 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10732 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10733 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10734 (ggc_internal_cleared_alloc): Likewise.
10735 * ggc-page.c (finalizer): New class.
10736 (vec_finalizer): Likewise.
10737 (globals::finalizers): New member.
10738 (globals::vec_finalizers): Likewise.
10739 (ggc_internal_alloc): Record the finalizer if any for the block being
10741 (ggc_handle_finalizers): New function.
10742 (ggc_collect): Call ggc_handle_finalizers.
10743 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10745 (ggc_internal_cleared_alloc): Likewise.
10746 (finalize): New function.
10747 (need_finalization_p): Likewise.
10748 (ggc_alloc): Install the type's destructor as the finalizer if it
10749 might do something.
10750 (ggc_cleared_alloc): Likewise.
10751 (ggc_vec_alloc): Likewise.
10752 (ggc_cleared_vec_alloc): Likewise.
10754 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10756 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10758 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10760 * alias.c (record_alias_subset): Adjust.
10761 * bitmap.c (bitmap_element_allocate): Likewise.
10762 (bitmap_gc_alloc_stat): Likewise.
10763 * cfg.c (init_flow): Likewise.
10764 (alloc_block): Likewise.
10765 (unchecked_make_edge): Likewise.
10766 * cfgloop.c (alloc_loop): Likewise.
10767 (flow_loops_find): Likewise.
10768 (rescan_loop_exit): Likewise.
10769 * cfgrtl.c (init_rtl_bb_info): Likewise.
10770 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10771 (cgraph_allocate_node): Likewise.
10772 (cgraph_create_edge_1): Likewise.
10773 (cgraph_allocate_init_indirect_info): Likewise.
10774 * cgraphclones.c (cgraph_clone_edge): Likewise.
10775 * cgraphunit.c (add_asm_node): Likewise.
10776 (init_lowered_empty_function): Likewise.
10777 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10778 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10779 (alpha_use_linkage): Likewise.
10780 * config/arc/arc.c (arc_init_machine_status): Likewise.
10781 * config/arm/arm.c (arm_init_machine_status): Likewise.
10782 * config/avr/avr.c (avr_init_machine_status): Likewise.
10783 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10784 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10785 * config/cris/cris.c (cris_init_machine_status): Likewise.
10786 * config/darwin.c (machopic_indirection_name): Likewise.
10787 (darwin_build_constant_cfstring): Likewise.
10788 (darwin_enter_string_into_cfstring_table): Likewise.
10789 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10790 * config/frv/frv.c (frv_init_machine_status): Likewise.
10791 * config/i386/i386.c (get_dllimport_decl): Likewise.
10792 (ix86_init_machine_status): Likewise.
10793 (assign_386_stack_local): Likewise.
10794 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10795 (i386_pe_maybe_record_exported_symbol): Likewise.
10796 (i386_pe_record_stub): Likewise.
10797 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10798 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10799 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10800 (m32c_note_pragma_address): Likewise.
10801 * config/mep/mep.c (mep_init_machine_status): Likewise.
10802 (mep_note_pragma_flag): Likewise.
10803 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10804 (mips16_local_alias): Likewise.
10805 (mips_init_machine_status): Likewise.
10806 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10807 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10808 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10809 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10810 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10811 * config/pa/pa.c (pa_init_machine_status): Likewise.
10812 (pa_get_deferred_plabel): Likewise.
10813 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10814 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10815 (rs6000_init_machine_status): Likewise.
10816 (output_toc): Likewise.
10817 * config/s390/s390.c (s390_init_machine_status): Likewise.
10818 * config/score/score.c (score_output_external): Likewise.
10819 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10820 * config/spu/spu.c (spu_init_machine_status): Likewise.
10821 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10822 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10823 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10824 * coverage.c (coverage_end_function): Likewise.
10825 * dbxout.c (dbxout_init): Likewise.
10826 * doc/gty.texi: Don't mention variable_size attribute.
10827 * dwarf2cfi.c (new_cfi): Adjust.
10828 (new_cfi_row): Likewise.
10829 (copy_cfi_row): Likewise.
10830 (create_cie_data): Likewise.
10831 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10832 (new_loc_descr): Likewise.
10833 (find_AT_string_in_table): Likewise.
10834 (add_addr_table_entry): Likewise.
10835 (new_die): Likewise.
10836 (add_var_loc_to_decl): Likewise.
10837 (clone_die): Likewise.
10838 (clone_as_declaration): Likewise.
10839 (break_out_comdat_types): Likewise.
10840 (new_loc_list): Likewise.
10841 (add_loc_descr_to_each): Likewise.
10842 (add_location_or_const_value_attribute): Likewise.
10843 (add_linkage_name): Likewise.
10844 (lookup_filename): Likewise.
10845 (dwarf2out_var_location): Likewise.
10846 (new_line_info_table): Likewise.
10847 (dwarf2out_init): Likewise.
10848 (mem_loc_descriptor): Likewise.
10849 (loc_descriptor): Likewise.
10850 (add_const_value_attribute): Likewise.
10851 (tree_add_const_value_attribute): Likewise.
10852 (comp_dir_string): Likewise.
10853 (dwarf2out_vms_debug_main_pointer): Likewise.
10854 (string_cst_pool_decl): Likewise.
10855 * emit-rtl.c (set_mem_attrs): Likewise.
10856 (get_reg_attrs): Likewise.
10857 (start_sequence): Likewise.
10858 (init_emit): Likewise.
10859 (init_emit_regs): Likewise.
10860 * except.c (init_eh_for_function): Likewise.
10861 (gen_eh_region): Likewise.
10862 (gen_eh_region_catch): Likewise.
10863 (gen_eh_landing_pad): Likewise.
10864 (add_call_site): Likewise.
10865 * function.c (add_frame_space): Likewise.
10866 (insert_temp_slot_address): Likewise.
10867 (assign_stack_temp_for_type): Likewise.
10868 (get_hard_reg_initial_val): Likewise.
10869 (allocate_struct_function): Likewise.
10870 (prepare_function_start): Likewise.
10871 (types_used_by_var_decl_insert): Likewise.
10872 * gengtype.c (variable_size_p): Remove function.
10873 (enum alloc_quantity): Remove enum.
10874 (write_typed_alloc_def): Remove function.
10875 (write_typed_struct_alloc_def): Likewise.
10876 (write_typed_typedef_alloc_def): Likewise.
10877 (write_typed_alloc_defns): Likewise.
10879 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10880 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10881 * ggc.h (ggc_alloc): new function.
10882 (ggc_cleared_alloc): Likewise.
10883 (ggc_vec_alloc): Template on type of vector element, and remove
10884 element size argument.
10885 (ggc_cleared_vec_alloc): Likewise.
10886 * gimple.c (gimple_build_omp_for): Adjust.
10887 (gimple_copy): Likewise.
10888 * ipa-cp.c (get_replacement_map): Likewise.
10889 (find_aggregate_values_for_callers_subset): Likewise.
10890 (known_aggs_to_agg_replacement_list): Likewise.
10891 * ipa-devirt.c (get_odr_type): Likewise.
10892 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10893 (read_agg_replacement_chain): Likewise.
10894 * loop-iv.c (get_simple_loop_desc): Likewise.
10895 * lto-cgraph.c (input_node_opt_summary): Likewise.
10896 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10897 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10898 (input_eh_region): Likewise.
10899 (input_eh_lp): Likewise.
10900 (input_cfg): Likewise.
10901 * optabs.c (set_optab_libfunc): Likewise.
10902 (init_tree_optimization_optabs): Likewise.
10903 (set_conv_libfunc): Likewise.
10904 * passes.c (do_per_function_toporder): Likewise.
10905 * rtl.h: Don't use variable_size gty attribute.
10906 * sese.c (if_region_set_false_region): Adjust.
10907 * stringpool.c (gt_pch_save_stringpool): Likewise.
10908 * target-globals.c (save_target_globals): Likewise.
10909 * toplev.c (general_init): Likewise.
10910 * trans-mem.c (record_tm_replacement): Likewise.
10911 (split_bb_make_tm_edge): Likewise.
10912 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10913 * tree-data-ref.h (lambda_vector_new): Likewise.
10914 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10915 * tree-iterator.c (tsi_link_before): Likewise.
10916 (tsi_link_after): Likewise.
10917 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10918 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10919 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10920 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10921 * tree-ssa.c (init_tree_ssa): Adjust.
10922 * tree-ssanames.c (set_range_info): Likewise.
10923 (get_ptr_info): Likewise.
10924 (duplicate_ssa_name_ptr_info): Likewise.
10925 (duplicate_ssa_name_range_info): Likewise.
10926 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10927 (unpack_ts_fixed_cst_value_fields): Likewise.
10928 * tree.c (build_fixed): Likewise.
10929 (build_real): Likewise.
10930 (build_string): Likewise.
10931 (decl_priority_info): Likewise.
10932 (decl_debug_expr_insert): Likewise.
10933 (decl_value_expr_insert): Likewise.
10934 (decl_debug_args_insert): Likewise.
10935 (type_hash_add): Likewise.
10936 (build_omp_clause): Likewise.
10937 * ubsan.c (decl_for_type_insert): Likewise.
10938 * varasm.c (get_unnamed_section): Likewise.
10939 (get_noswitch_section): Likewise.
10940 (get_section): Likewise.
10941 (get_block_for_section): Likewise.
10942 (create_block_symbol): Likewise.
10943 (build_constant_desc): Likewise.
10944 (create_constant_pool): Likewise.
10945 (force_const_mem): Likewise.
10946 (record_tm_clone_pair): Likewise.
10947 * varpool.c (varpool_create_empty_node): Likewise.
10949 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10951 * dwarf2out.c (tree_add_const_value_attribute): Call
10952 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10953 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10954 instead of ggc_internal_<x>alloc_stat.
10955 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10956 (ggc_realloc): Likewise.
10957 * ggc-none.c (ggc_internal_alloc): Likewise.
10958 (ggc_internal_cleared_alloc): Likewise.
10959 * ggc-page.c: Likewise.
10960 * ggc.h (ggc_internal_alloc_stat): Likewise.
10961 (ggc_internal_alloc): Remove macro.
10962 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10963 (ggc_internal_cleared_alloc): Remove macro.
10964 (GGC_RESIZEVEC): Adjust.
10965 (ggc_resizevar): Remove macro.
10966 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10967 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10968 (ggc_internal_vec_cleared_alloc): Remove macro.
10969 (ggc_alloc_atomic_stat): Drop _stat suffix.
10970 (ggc_alloc_atomic): Remove macro.
10971 (ggc_alloc_cleared_atomic): Remove macro.
10972 (ggc_alloc_string_stat): Drop _stat suffix.
10973 (ggc_alloc_string): Remove macro.
10974 (ggc_alloc_rtx_def_stat): Adjust.
10975 (ggc_alloc_tree_node_stat): Likewise.
10976 (ggc_alloc_cleared_tree_node_stat): Likewise.
10977 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10978 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10979 * gimple.c (gimple_build_omp_for): Likewise.
10980 (gimple_copy): Likewise.
10981 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10982 * toplev.c (realloc_for_line_map): Adjust.
10983 * tree-data-ref.h (lambda_vector_new): Likewise.
10984 * tree-phinodes.c (allocate_phi_node): Likewise.
10985 * tree.c (grow_tree_vec_stat): Likewise.
10986 * vec.h (va_gc::reserve): Adjust.
10988 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10990 * config/microblaze/microblaze.c (break_handler): New Declaration.
10991 (microblaze_break_function_p,microblaze_is_break_handler): New.
10992 (compute_frame_size): Use microblaze_break_function_p.
10993 Add the test of break_handler.
10994 (microblaze_function_prologue) : Add the test of variable
10995 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10996 (microblaze_function_epilogue) : Add the test of break_handler.
10997 (microblaze_globalize_label) : Add the test of break_handler.
10998 Check the name by BREAK_HANDLER_NAME.
11000 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11002 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11003 microblaze_is_break_handler test.
11004 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11005 Use SYMBOL_REF_DECL.
11007 * config/microblaze/microblaze-protos.h
11008 (microblaze_break_function_p,microblaze_is_break_handler):
11011 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11012 new MicroBlaze break_handler functions.
11014 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11016 * doc/extend.texi (Size of an asm): Move node text according
11017 to its @menu entry position.
11019 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11021 PR tree-optimization/61140
11022 PR tree-optimization/61150
11023 PR tree-optimization/61197
11024 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11026 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11028 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11030 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11032 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11033 __SIZEOF_INT128__ is defined.
11035 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11037 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11038 (rs6000_delegitimize_address): Use it.
11040 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11042 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11043 inplace argument. Store the new address in the original MEM when true.
11044 * emit-rtl.c (change_address_1): Likewise.
11045 (adjust_address_1, adjust_automodify_address_1, offset_address):
11046 Update accordingly.
11047 * rtl.h (plus_constant): Add an inplace argument.
11048 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11049 when true. Avoid generating (plus X (const_int 0)).
11050 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11051 in-place. Pass true to plus_constant.
11052 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11054 2014-05-16 Dehao Chen <dehao@google.com>
11056 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11058 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11061 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11063 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11065 2014-05-16 Dehao Chen <dehao@google.com>
11067 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11068 optimize_function_for_size_p.
11069 * regs.h (REG_FREQ_FROM_BB): Likewise.
11071 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11074 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11075 negt_reg_operand cases.
11076 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11078 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11080 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11082 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11085 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11088 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11090 * tree-cfg.c (dump_function_to_file): Dump the return type of
11091 functions, in a line to itself before the function body, mimicking
11092 the layout of a C function.
11094 2014-05-16 Dehao Chen <dehao@google.com>
11096 * cfghooks.c (make_forwarder_block): Use direct computation to
11097 get fall-through edge's count and frequency.
11099 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11101 * config/arc/arc.c (arc_init): Fix typo in error message.
11102 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11103 (split_stack_prologue_scratch_regno): Likewise.
11104 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11105 word from error message.
11107 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11109 * ira-costs.c: Fix typo in comment.
11111 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11113 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11115 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11117 * varpool.c (dump_varpool_node): Dump write-only flag.
11118 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11120 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11121 write-only variables.
11122 * ipa.c (process_references): New function.
11123 (set_readonly_bit): New function.
11124 (set_writeonly_bit): New function.
11125 (clear_addressable_bit): New function.
11126 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11127 fix handling of aliases.
11128 * cgraph.h (struct varpool_node): Add writeonly flag.
11130 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11132 PR rtl-optimization/60969
11133 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11134 Calculate costs for this case.
11136 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11138 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11139 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11141 2014-05-16 Richard Biener <rguenther@suse.de>
11143 PR tree-optimization/61194
11144 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11145 bool patterns ending in a COND_EXPR.
11147 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11149 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11151 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11153 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11154 where we were unable to cost an RTX.
11156 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11158 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11161 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11162 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11164 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11166 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11167 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11169 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11170 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11172 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11173 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11175 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11178 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11179 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11181 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11184 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11185 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11187 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11188 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11190 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11191 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11193 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11194 rotates and shifts.
11196 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11197 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11199 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11200 ZERO_EXTEND and SIGN_EXTEND better.
11202 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11203 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11205 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11206 logical operations.
11208 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11209 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11211 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11212 costs when costing loads and stores to memory.
11214 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11215 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11217 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11220 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11222 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11224 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11225 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11227 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11229 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11231 (aarch64_rtx_mult_cost): New.
11232 (aarch64_rtx_costs): Use it, refactor as appropriate.
11234 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11235 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11237 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11238 emit instructions, return number of instructions which would
11240 (aarch64_add_constant): Update call to aarch64_build_constant.
11241 (aarch64_output_mi_thunk): Likewise.
11242 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11245 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11247 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11248 (TARGET_RTX_COSTS): Call it.
11250 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11252 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11253 (cortexa57_vector_cost): Likewise.
11254 (cortexa57_tunings): Use them.
11256 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11258 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11259 (cpu_addrcost_table): Use it.
11260 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11261 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11264 2014-05-16 Richard Biener <rguenther@suse.de>
11266 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11267 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11268 (visit_phi): Ignore edges marked as not executable.
11269 (class cond_dom_walker): New.
11270 (cond_dom_walker::before_dom_children): Value-number
11271 control statements and mark successor edges as not
11272 executable if possible.
11273 (run_scc_vn): First walk all control statements in
11274 dominator order, marking edges as not executable.
11275 * tree-inline.c (copy_edges_for_bb): Be not confused
11276 about random edge flags.
11278 2014-05-16 Richard Biener <rguenther@suse.de>
11280 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11282 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11285 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11286 (__TM_simple_begin): Use it.
11287 (__TM_begin): Likewise.
11289 2014-05-15 Martin Jambor <mjambor@suse.cz>
11292 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11293 type_preserved flag when the indirect edge is polymorphic.
11295 2014-05-15 Martin Jambor <mjambor@suse.cz>
11297 PR tree-optimization/61090
11298 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11299 build_ref_for_model.
11301 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11303 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11304 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11306 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11308 PR tree-optimization/61158
11309 * fold-const.c (fold_binary_loc): If X is zero-extended and
11310 shiftc >= prec, make sure zerobits is all ones instead of
11311 invoking undefined behavior.
11313 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11315 * regcprop.h: New file.
11316 * regcprop.c (skip_debug_insn_p): New decl.
11317 (replace_oldest_value_reg): Check skip_debug_insn_p.
11318 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11319 * shrink-wrap.c: Include regcprop.h.
11320 (prepare_shrink_wrap): Call
11321 copyprop_hardreg_forward_bb_without_debug_insn.
11323 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11325 * shrink-wrap.h: Update comment.
11326 * shrink-wrap.c: Update comment.
11327 (next_block_for_reg): Rename to live_edge_for_reg.
11328 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11329 (move_insn_for_shrink_wrap): Split live_edge.
11330 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11332 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11334 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11336 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11337 * config/sparc/sparc.md (fptype_ut699): New attribute.
11338 (in_branch_delay): Return false if -mfix-ut699 is specified and
11339 fptype_ut699 is set to single.
11340 (truncdfsf2): Add fptype_ut699 attribute.
11341 (fix_truncdfsi2): Likewise.
11342 (floatsisf2): Change fptype attribute.
11343 (fix_truncsfsi2): Likewise.
11344 (negtf2_notv9): Delete.
11345 (negtf2_v9): Likewise.
11346 (negtf2_hq): New instruction.
11347 (negtf2): New instruction and splitter.
11348 (negdf2_notv9): Rewrite.
11349 (abstf2_notv9): Delete.
11350 (abstf2_hq_v9): Likewise.
11351 (abstf2_v9): Likewise.
11352 (abstf2_hq): New instruction.
11353 (abstf2): New instruction and splitter.
11354 (absdf2_notv9): Rewrite.
11356 2014-05-14 Cary Coutant <ccoutant@google.com>
11359 * opts.c (common_handle_option): Don't special-case "-g".
11360 (set_debug_level): Default to at least level 2 with "-g".
11362 2014-05-14 DJ Delorie <dj@redhat.com>
11364 * config/msp430/msp430.c (msp430_builtin): Add
11365 MSP430_BUILTIN_DELAY_CYCLES.
11366 (msp430_init_builtins): Register void __delay_cycles(long long).
11367 (msp430_builtin_decl): Add it.
11368 (cg_magic_constant): New.
11369 (msp430_expand_delay_cycles): New.
11370 (msp430_expand_builtin): Call it.
11371 (msp430_print_operand_raw): Change integer printing from "int" to
11373 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11374 (delay_cycles_start): New.
11375 (delay_cycles_end): New.
11376 (delay_cycles_32): New.
11377 (delay_cycles_32x): New.
11378 (delay_cycles_16): New.
11379 (delay_cycles_16x): New.
11380 (delay_cycles_2): New.
11381 (delay_cycles_1): New.
11382 * doc/extend.texi: Document __delay_cycles().
11384 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11386 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11387 length attribute computation.
11389 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11392 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11394 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11397 * config/sparc/sparc.md: Fix types of low and high in DI constant
11398 splitter. Use gen_int_mode in some other splitters.
11400 2014-05-14 Martin Jambor <mjambor@suse.cz>
11403 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11405 2014-05-14 James Norris <jnorris@codesourcery.com>
11407 * omp-low.c (expand_parallel_call): Remove shadow variable.
11408 (expand_omp_taskreg): Likewise.
11410 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11412 * common/config/i386/i386-common.c
11413 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11414 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11415 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11416 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11417 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11418 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11419 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11420 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11421 xsavecintrin.h, xsavesintrin.h.
11422 (x86_64-*-*): Ditto.
11423 * config/i386/clflushoptintrin.h: New.
11424 * config/i386/xsavecintrin.h: Ditto.
11425 * config/i386/xsavesintrin.h: Ditto.
11426 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11427 (bit_XSAVES): Ditto.
11428 (bit_XSAVES): Ditto.
11429 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11430 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11432 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11433 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11434 OPTION_MASK_ISA_XSAVES.
11435 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11436 -mxsavec, -mxsaves.
11437 (PTA_CLFLUSHOPT) Define.
11438 (PTA_XSAVEC): Ditto.
11439 (PTA_XSAVES): Ditto.
11440 (ix86_option_override_internal): Handle new options.
11441 (ix86_valid_target_attribute_inner_p): Ditto.
11442 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11443 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11444 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11445 (bdesc_special_args): Add __builtin_ia32_xsaves,
11446 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11447 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11448 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11449 (ix86_expand_builtin): Handle new builtins.
11450 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11451 (TARGET_CLFLUSHOPT_P): Ditto.
11452 (TARGET_XSAVEC): Ditto.
11453 (TARGET_XSAVEC_P): Ditto.
11454 (TARGET_XSAVES): Ditto.
11455 (TARGET_XSAVES_P): Ditto.
11456 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11457 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11458 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11460 (ANY_XRSTOR64): Ditto.
11462 (xrstor): Change into <xrstor>.
11463 (xrstor_rex64): Change into <xrstor>_rex64.
11464 (xrstor64): Change into <xrstor>64
11466 * config/i386/i386.opt (mclflushopt): New.
11469 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11471 * doc/invoke.texi: Document new options.
11473 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11475 PR rtl-optimization/60866
11476 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11477 Default it to -1. Pass it down to init_simplejump_data.
11478 (init_simplejump_data): New parameter old_seqno. Pass it down
11479 to get_seqno_for_a_jump.
11480 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11481 initializing new jump seqno as a last resort. Add comment.
11482 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11483 jump and pass it down to sel_init_new_insn.
11484 (sel_redirect_edge_and_branch_force): Likewise.
11486 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11488 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11489 shifted values to avoid build warning.
11491 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11493 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11494 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11495 (cfg_layout_merge_blocks): Likewise.
11496 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11498 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11500 PR rtl-optimization/60901
11501 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11502 bb predecessor belongs to the same scheduling region. Adjust comment.
11504 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11506 * doc/sourcebuild.texi: (dfp_hw): Document.
11507 (p8vector_hw): Likewise.
11508 (powerpc_eabi_ok): Likewise.
11509 (powerpc_elfv2): Likewise.
11510 (powerpc_htm_ok): Likewise.
11511 (ppc_recip_hw): Likewise.
11512 (vsx_hw): Likewise.
11514 2014-05-13 Cary Coutant <ccoutant@google.com>
11516 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11518 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11520 * gengtype-parse.c (require3): Eliminate in favor of...
11522 (require_template_declaration): Update to support optional single *
11525 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11526 (create_user_defined_type): Handle a single level of explicit
11527 pointerness within template arguments.
11528 (struct write_types_data): Add field "kind".
11529 (filter_type_name): Handle "*" character.
11530 (write_user_func_for_structure_ptr): Require a write_types_data
11531 rather than just a prefix string, so that we can look up the kind
11532 of the wtd and use it as an index into wrote_user_func_for_ptr,
11533 ensuring that such functions are written at most once. Support
11534 subclasses by invoking the marking function of the ultimate base class.
11535 (write_user_func_for_structure_body): Require a write_types_data
11536 rather than just a prefix string, so that we can pass this to
11537 write_user_func_for_structure_ptr.
11538 (write_func_for_structure): Likewise.
11539 (ggc_wtd): Add initializer of new "kind" field.
11540 (pch_wtd): Likewise.
11542 * gengtype.h (enum write_types_kinds): New.
11543 (struct type): Add field wrote_user_func_for_ptr to the "s"
11546 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11548 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11549 instead of const_binop.
11550 (fold_binary_loc): Likewise.
11552 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11554 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11555 calculation to match get_ref_base_and_extent.
11557 2014-05-13 Catherine Moore <clm@codesourcery.com>
11558 Sandra Loosemore <sandra@codesourcery.com>
11560 * configure.ac: Fix assembly for explicit JALR relocation check.
11561 * configure: Regenerate.
11563 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11565 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11566 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11567 Remove associated type declarations and initialisations.
11568 (arm_expand_neon_builtin): Likewise.
11569 (neon_emit_pair_result_insn): Delete.
11570 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11571 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11572 (neon_vzip<mode>): Likewise.
11573 (neon_vuzp<mode>): Likewise.
11575 2014-05-13 Richard Biener <rguenther@suse.de>
11578 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11579 it needs revisiting whether the call still may be tail-called.
11581 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11583 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11584 * rtl.h (block_symbol): Reduce number of fields to 2.
11585 (rtx_def): Add u2.symbol_ref_flags.
11586 (SYMBOL_REF_FLAGS): Use it.
11587 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11588 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11589 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11590 Lower index of SYMBOL_REF_DATA.
11591 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11592 Print SYMBOL_REF_FLAGS at the same time.
11593 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11595 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11597 * rtl.def (VAR_LOCATION): Remove "i" field.
11598 * rtl.h (rtx_def): Add u2.var_location_status.
11599 (PAT_VAR_LOCATION_STATUS): Use it.
11600 (gen_rtx_VAR_LOCATION): Declare.
11601 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11602 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11603 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11605 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11607 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11608 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11610 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11612 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11613 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11614 * rtl.h (rtx_def): Add insn_uid to u2 field.
11615 (RTX_FLAG_CHECK8): Delete in favor of...
11616 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11617 (INSN_DELETED_P): Update accordingly.
11618 (INSN_UID): Use u2.insn_uid.
11619 (INSN_CHAIN_CODE_P): Define.
11620 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11621 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11622 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11623 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11624 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11625 indices accordingly.
11626 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11627 Update indices for insn-chain rtxes.
11628 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11629 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11630 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11631 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11632 * combine.c (try_combine): Likewise.
11633 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11635 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11637 * rtl.def (REG): Remove middle field.
11638 * rtl.h (rtx_def): Add orignal_regno to u2.
11639 (ORIGINAL_REGNO): Use it instead of field 1.
11640 (REG_ATTRS): Lower field index accordingly.
11641 * gengtype.c (adjust_field_rtx_def): Remove handling of
11642 ORIGINAL_REGNO. Move REG_ATTRS index down.
11643 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11644 code that prints the REGNO.
11646 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11648 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11651 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11653 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11655 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11657 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11658 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11660 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11662 * config/aarch64/aarch64-protos.h
11663 (aarch64_hard_regno_caller_save_mode): New prototype.
11664 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11666 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11668 2014-05-13 Christian Bruel <christian.bruel@st.com>
11670 * target.def (mode_switching): New hook vector.
11671 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11672 (mode_exit, modepriority_to_mode): Likewise.
11673 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11674 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11675 * target.h: Include tm.h and hard-reg-set.h.
11676 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11677 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11678 * doc/tm.texi Regenerate.
11679 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11680 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11681 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11682 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11683 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11684 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11685 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11686 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11687 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11688 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11689 (ix86_emit_mode_set): Hookify.
11690 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11692 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11693 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11694 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11695 (epiphany_mode_priority_to_mode): Remove declaration.
11696 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11697 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11698 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11700 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11701 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11702 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11704 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11707 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11708 is const0_rtx, return immediately. Don't test count == 0 when
11711 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11713 * Makefile.in: add shrink-wrap.o.
11714 * config/i386/i386.c: include "shrink-wrap.h"
11715 * function.c: Likewise.
11716 (requires_stack_frame_p, next_block_for_reg,
11717 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11718 dup_block_and_redirect): Move to shrink-wrap.c
11719 (thread_prologue_and_epilogue_insns): Extract three code segments
11720 as functions in shrink-wrap.c
11721 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11723 * shrink-wrap.c: New file.
11724 * shrink-wrap.h: New file.
11726 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11728 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11729 reference to Solaris.
11731 2014-05-12 Mike Stump <mikestump@comcast.net>
11734 * genattrtab.c (filename): Add.
11735 (convert_set_attr_alternative): Improve error message.
11736 (check_defs): Restore read_md_filename for error messages.
11737 (gen_insn): Save filename.
11739 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11741 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11742 -fno-local-ivars and -fivar-visibility.
11743 * c-family/c.opt: Make -Wshadow also implicitly enable
11746 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11748 * doc/tm.texi: Remove reference to deleted macro.
11749 * doc/tm.texi.in: Likewise.
11751 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11754 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11757 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11760 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11761 * config/arm/aout.h (License): Same.
11762 * config/arm/bpabi.h (License): Same.
11763 * config/arm/elf.h (License): Same.
11764 * config/arm/linux-elf.h (License): Same.
11765 * config/arm/linux-gas.h (License): Same.
11766 * config/arm/netbsd-elf.h (License): Same.
11767 * config/arm/uclinux-eabi.h (License): Same.
11768 * config/arm/uclinux-elf.h (License): Same.
11769 * config/arm/vxworks.h (License): Same.
11771 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11773 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11774 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11775 number of operands to 3.
11776 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11777 * tree-nested.c (convert_nonlocal_omp_clauses,
11778 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11779 * gimplify.c (gimplify_scan_omp_clauses): Handle
11780 OMP_CLAUSE_LINEAR_STMT.
11781 * omp-low.c (lower_rec_input_clauses): Fix typo.
11782 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11783 cast between Fortran boolean_type_node and C _Bool if
11786 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11788 PR tree-optimization/61136
11789 * wide-int.h (multiple_of_p): Define a version that doesn't return
11791 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11792 integer_zerop/const_binop pair.
11793 (multiple_of_p): Likewise, converting both operands to widest_int
11796 2014-05-09 Teresa Johnson <tejohnson@google.com>
11798 * cgraphunit.c (analyze_functions): Use correct dump file.
11800 2014-05-09 Florian Weimer <fweimer@redhat.com>
11802 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11804 (stack_protect_return_slot_p): New function.
11805 (expand_used_vars): Call stack_protect_decl_p and
11806 stack_protect_return_slot_p for -fstack-protector-strong.
11808 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11809 Andrew Haley <aph@redhat.com>
11810 Richard Sandiford <rdsandiford@googlemail.com>
11812 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11815 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11817 PR middle-end/61111
11818 * fold-const.c (fold_binary_loc): Changed width of mask.
11820 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11822 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11823 unsigned int initializers for regno_in, regno_out.
11825 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11828 * config/avr/avr.md (cc): Add new attribute set_vzn.
11829 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11830 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11831 with INC, DEC or NEG.
11832 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11833 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11834 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11836 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11839 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11841 * wide-int.cc (UTItype): Define.
11842 (UDWtype): Define for appropriate W_TYPE_SIZE.
11844 2014-05-09 Richard Biener <rguenther@suse.de>
11846 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11847 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11848 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11849 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11850 ssa_propagate): Adjust.
11852 2014-05-08 Jeff Law <law@redhat.com>
11854 PR tree-optimization/61009
11855 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11856 tri-state rather than a boolean. When a block is too big to
11857 thread through, inform caller via negative return value.
11858 (thread_across_edge): If a block was too big for normal threading,
11859 then it's too big for a joiner too, so remove temporary equivalences
11860 and return immediately.
11862 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11863 Matthias Klose <doko@ubuntu.com>
11866 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11868 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11871 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11873 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11876 * config/alpha/alpha.c: Include gimple-iterator.h.
11877 (alpha_gimple_fold_builtin): New function. Move
11878 ALPHA_BUILTIN_UMULH folding from ...
11879 (alpha_fold_builtin): ... here.
11880 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11882 2014-05-08 Wei Mi <wmi@google.com>
11885 * config/i386/i386.c (ix86_compute_frame_layout): Update
11886 preferred_stack_boundary for call, expanded from tls descriptor.
11887 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11888 to depend on SP register.
11889 (*tls_local_dynamic_base_32_gnu): Ditto.
11890 (*tls_local_dynamic_32_once): Ditto.
11891 (tls_global_dynamic_64_<mode>): Set
11892 ix86_tls_descriptor_calls_expanded_in_cfun.
11893 (tls_local_dynamic_base_64_<mode>): Ditto.
11894 (tls_global_dynamic_32): Set
11895 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11896 to depend on SP register.
11897 (tls_local_dynamic_base_32): Ditto.
11899 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11901 * config/arm/arm_neon.h: Update comment.
11902 * config/arm/neon-docgen.ml: Delete.
11903 * config/arm/neon-gen.ml: Delete.
11904 * doc/arm-neon-intrinsics.texi: Update comment.
11906 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11908 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11910 (vand, vorr, veor, vorn, vbic): Remove.
11911 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11913 (neon_vsub_unspec): Likewise.
11914 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11916 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11918 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11919 (vadd_s16): Likewise.
11920 (vadd_s32): Likewise.
11921 (vadd_f32): Likewise.
11922 (vadd_u8): Likewise.
11923 (vadd_u16): Likewise.
11924 (vadd_u32): Likewise.
11925 (vadd_s64): Likewise.
11926 (vadd_u64): Likewise.
11927 (vaddq_s8): Likewise.
11928 (vaddq_s16): Likewise.
11929 (vaddq_s32): Likewise.
11930 (vaddq_s64): Likewise.
11931 (vaddq_f32): Likewise.
11932 (vaddq_u8): Likewise.
11933 (vaddq_u16): Likewise.
11934 (vaddq_u32): Likewise.
11935 (vaddq_u64): Likewise.
11936 (vmul_s8): Likewise.
11937 (vmul_s16): Likewise.
11938 (vmul_s32): Likewise.
11939 (vmul_f32): Likewise.
11940 (vmul_u8): Likewise.
11941 (vmul_u16): Likewise.
11942 (vmul_u32): Likewise.
11943 (vmul_p8): Likewise.
11944 (vmulq_s8): Likewise.
11945 (vmulq_s16): Likewise.
11946 (vmulq_s32): Likewise.
11947 (vmulq_f32): Likewise.
11948 (vmulq_u8): Likewise.
11949 (vmulq_u16): Likewise.
11950 (vmulq_u32): Likewise.
11951 (vsub_s8): Likewise.
11952 (vsub_s16): Likewise.
11953 (vsub_s32): Likewise.
11954 (vsub_f32): Likewise.
11955 (vsub_u8): Likewise.
11956 (vsub_u16): Likewise.
11957 (vsub_u32): Likewise.
11958 (vsub_s64): Likewise.
11959 (vsub_u64): Likewise.
11960 (vsubq_s8): Likewise.
11961 (vsubq_s16): Likewise.
11962 (vsubq_s32): Likewise.
11963 (vsubq_s64): Likewise.
11964 (vsubq_f32): Likewise.
11965 (vsubq_u8): Likewise.
11966 (vsubq_u16): Likewise.
11967 (vsubq_u32): Likewise.
11968 (vsubq_u64): Likewise.
11969 (vand_s8): Likewise.
11970 (vand_s16): Likewise.
11971 (vand_s32): Likewise.
11972 (vand_u8): Likewise.
11973 (vand_u16): Likewise.
11974 (vand_u32): Likewise.
11975 (vand_s64): Likewise.
11976 (vand_u64): Likewise.
11977 (vandq_s8): Likewise.
11978 (vandq_s16): Likewise.
11979 (vandq_s32): Likewise.
11980 (vandq_s64): Likewise.
11981 (vandq_u8): Likewise.
11982 (vandq_u16): Likewise.
11983 (vandq_u32): Likewise.
11984 (vandq_u64): Likewise.
11985 (vorr_s8): Likewise.
11986 (vorr_s16): Likewise.
11987 (vorr_s32): Likewise.
11988 (vorr_u8): Likewise.
11989 (vorr_u16): Likewise.
11990 (vorr_u32): Likewise.
11991 (vorr_s64): Likewise.
11992 (vorr_u64): Likewise.
11993 (vorrq_s8): Likewise.
11994 (vorrq_s16): Likewise.
11995 (vorrq_s32): Likewise.
11996 (vorrq_s64): Likewise.
11997 (vorrq_u8): Likewise.
11998 (vorrq_u16): Likewise.
11999 (vorrq_u32): Likewise.
12000 (vorrq_u64): Likewise.
12001 (veor_s8): Likewise.
12002 (veor_s16): Likewise.
12003 (veor_s32): Likewise.
12004 (veor_u8): Likewise.
12005 (veor_u16): Likewise.
12006 (veor_u32): Likewise.
12007 (veor_s64): Likewise.
12008 (veor_u64): Likewise.
12009 (veorq_s8): Likewise.
12010 (veorq_s16): Likewise.
12011 (veorq_s32): Likewise.
12012 (veorq_s64): Likewise.
12013 (veorq_u8): Likewise.
12014 (veorq_u16): Likewise.
12015 (veorq_u32): Likewise.
12016 (veorq_u64): Likewise.
12017 (vbic_s8): Likewise.
12018 (vbic_s16): Likewise.
12019 (vbic_s32): Likewise.
12020 (vbic_u8): Likewise.
12021 (vbic_u16): Likewise.
12022 (vbic_u32): Likewise.
12023 (vbic_s64): Likewise.
12024 (vbic_u64): Likewise.
12025 (vbicq_s8): Likewise.
12026 (vbicq_s16): Likewise.
12027 (vbicq_s32): Likewise.
12028 (vbicq_s64): Likewise.
12029 (vbicq_u8): Likewise.
12030 (vbicq_u16): Likewise.
12031 (vbicq_u32): Likewise.
12032 (vbicq_u64): Likewise.
12033 (vorn_s8): Likewise.
12034 (vorn_s16): Likewise.
12035 (vorn_s32): Likewise.
12036 (vorn_u8): Likewise.
12037 (vorn_u16): Likewise.
12038 (vorn_u32): Likewise.
12039 (vorn_s64): Likewise.
12040 (vorn_u64): Likewise.
12041 (vornq_s8): Likewise.
12042 (vornq_s16): Likewise.
12043 (vornq_s32): Likewise.
12044 (vornq_s64): Likewise.
12045 (vornq_u8): Likewise.
12046 (vornq_u16): Likewise.
12047 (vornq_u32): Likewise.
12048 (vornq_u64): Likewise.
12050 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12052 * wide-int.cc (UTItype): Define.
12053 (UDWtype): Define for appropriate W_TYPE_SIZE.
12055 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12057 PR tree-optimization/59100
12058 * tree-ssa-phiopt.c: Include tree-inline.h.
12059 (neutral_element_p, absorbing_element_p): New functions.
12060 (value_replacement): Handle conditional binary operations with a
12061 neutral or absorbing element.
12063 2014-05-08 Richard Biener <rguenther@suse.de>
12065 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12066 folding the expression.
12067 (valueize_expr): Remove.
12068 (visit_reference_op_load): Do not valueize the result of
12070 (simplify_binary_expression): Likewise.
12071 (simplify_unary_expression): Likewise.
12073 2014-05-08 Richard Biener <rguenther@suse.de>
12075 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12076 looking at TYPE_ARG_TYPES.
12078 2014-05-08 Richard Biener <rguenther@suse.de>
12080 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12081 pointer propagation special-case.
12083 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12085 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12086 core part of address expressions.
12088 2014-05-08 Alan Modra <amodra@gmail.com>
12091 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12092 loads and stores when -mno-strict-align at any alignment.
12093 (expand_block_clear): Similarly. Also correct calculation of
12096 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12098 PR middle-end/39246
12099 * tree-complex.c (expand_complex_move): Keep line info when expanding
12101 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12102 of complex expression. Use new argument to display correct location
12103 for values coming from phi statement.
12104 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12105 (warn_uninitialized_phi): Pass location of phi argument to
12107 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12108 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12110 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12112 * config/rs6000/predicates.md (indexed_address_mem): New.
12113 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12114 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12115 fpstore_ux, fpstore_u.
12116 (sign_extend, indexed, update): New.
12117 (cell_micro): Adjust.
12118 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12119 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12120 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12121 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12122 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12123 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12124 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12125 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12126 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12127 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12128 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12129 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12130 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12131 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12132 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12134 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12135 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12136 *vsx_extract_<mode>_store): Adjust.
12137 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12138 is_cracked_insn, insn_must_be_first_in_group,
12139 insn_must_be_last_in_group): Adjust.
12141 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12143 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12144 ppc440-fpstore): Adjust.
12145 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12146 ppc476-fpstore): Adjust.
12147 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12148 ppc601-fpstore): Adjust.
12149 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12151 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12153 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12154 ppc7450-fpstore): Adjust.
12155 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12156 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12157 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12159 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12160 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12161 cell-fpstore, cell-fpstore-update): Adjust.
12162 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12163 ppce300c3_store, ppce300c3_fpstore): Adjust.
12164 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12165 e500mc_fpstore): Adjust.
12166 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12167 e500mc64_store, e500mc64_fpstore): Adjust.
12168 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12169 e5500_fpstore): Adjust.
12170 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12171 e6500_fpstore): Adjust.
12172 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12174 * config/rs6000/power4.md (power4-load, power4-load-ext,
12175 power4-load-ext-update, power4-load-ext-update-indexed,
12176 power4-load-update-indexed, power4-load-update, power4-fpload,
12177 power4-fpload-update, power4-store, power4-store-update,
12178 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12180 * config/rs6000/power5.md (power5-load, power5-load-ext,
12181 power5-load-ext-update, power5-load-ext-update-indexed,
12182 power5-load-update-indexed, power5-load-update, power5-fpload,
12183 power5-fpload-update, power5-store, power5-store-update,
12184 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12186 * config/rs6000/power6.md (power6-load, power6-load-ext,
12187 power6-load-update, power6-load-update-indexed,
12188 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12189 power6-fpload-update, power6-store, power6-store-update,
12190 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12192 * config/rs6000/power7.md (power7-load, power7-load-ext,
12193 power7-load-update, power7-load-update-indexed,
12194 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12195 power7-fpload-update, power7-store, power7-store-update,
12196 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12198 * config/rs6000/power8.md (power8-load, power8-load-update,
12199 power8-load-ext, power8-load-ext-update, power8-fpload,
12200 power8-fpload-update, power8-store, power8-store-update-indexed,
12201 power8-fpstore, power8-fpstore-update): Adjust.
12202 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12204 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12205 titan_lsu_store, titan_lsu_fpstore): Adjust.
12206 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12208 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12211 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12212 unrolled byte insns. Emit address increments after move insns.
12214 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12216 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12217 const_gimple, rather than a gimple.
12218 (gimple_call_builtin_p): Likewise, for the three variants.
12220 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12221 (gimple_call_builtin_p): Likewise, for the three variants.
12223 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12225 PR tree-optimization/61095
12226 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12228 2014-05-07 Richard Biener <rguenther@suse.de>
12230 PR tree-optimization/61034
12231 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12232 (maybe_skip_until): Use translate to take into account
12233 lattices when trying to do disambiguations.
12234 (get_continuation_for_phi_1): Likewise.
12235 (get_continuation_for_phi): Adjust for added translate arguments.
12236 (walk_non_aliased_vuses): Likewise.
12237 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12238 (walk_non_aliased_vuses): Likewise.
12239 (call_may_clobber_ref_p_1): Declare.
12240 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12241 calls. Stop early if we are only supposed to disambiguate.
12242 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12244 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12246 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12247 Emit an error when the function has arguments.
12249 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12251 * cfgloop.h (unswitch_loops): Remove.
12252 * doc/passes.texi: Remove references to loop-unswitch.c
12253 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12255 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12257 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12258 check for loads group of length 3.
12259 (vect_permute_load_chain): New permutations for loads group of
12261 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12262 of vec_perm_shuffle for the new permutations.
12264 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12266 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12267 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12268 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12269 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12270 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12271 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12272 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12273 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12275 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12277 * loop-unswitch.c: Delete.
12279 2014-05-07 Richard Biener <rguenther@suse.de>
12281 * config.gcc: Always set need_64bit_hwint to yes.
12283 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12285 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12286 of using optimize_size.
12288 2014-05-06 Mike Stump <mikestump@comcast.net>
12290 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12292 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12294 * config/i386/sse.md (*mov<mode>_internal)
12295 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12296 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12297 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12298 (*<code><mode>3, *andnot<mode>3<mask_name>)
12299 (<mask_codefor><code><mode>3<mask_name>): Only consider
12300 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12302 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12305 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12307 * lra-constraints.c (valid_address_p): Move earlier in file.
12308 Add a constraint argument to the address_info version.
12309 (satisfies_memory_constraint_p): New function.
12310 (satisfies_address_constraint_p): Likewise.
12311 (process_alt_operands, curr_insn_transform): Use them.
12312 (process_address): Pass the constraint to valid_address_p when
12313 checking address operands.
12315 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12317 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12318 to their respective blocks. Fix inadvertent use of "node".
12320 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12322 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12324 (init_emit_once): ...here.
12325 * rtl.h (init_derived_machine_modes): Declare.
12326 * toplev.c (do_compile): Call it even if no_backend.
12328 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12329 Mike Stump <mikestump@comcast.net>
12330 Richard Sandiford <rdsandiford@googlemail.com>
12331 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12333 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12334 (rtx_equal_for_memref_p): Update comment.
12335 (adjust_offset_for_component_ref): Use wide-int interfaces.
12336 * builtins.c (get_object_alignment_2): Likewise.
12337 (c_readstr): Likewise.
12338 (target_char_cast): Add comment.
12339 (determine_block_size): Use wide-int interfaces.
12340 (expand_builtin_signbit): Likewise.
12341 (fold_builtin_int_roundingfn): Likewise.
12342 (fold_builtin_bitop): Likewise.
12343 (fold_builtin_bswap): Likewise.
12344 (fold_builtin_logarithm): Use signop.
12345 (fold_builtin_pow): Likewise.
12346 (fold_builtin_memory_op): Use wide-int interfaces.
12347 (fold_builtin_object_size): Likewise.
12348 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12349 nb_iterations_estimate.
12350 (record_niter_bound): Use wide-int interfaces.
12351 (get_estimated_loop_iterations_int): Likewise.
12352 (get_estimated_loop_iterations): Likewise.
12353 (get_max_loop_iterations): Likewise.
12354 * cfgloop.h: Include wide-int.h.
12355 (struct nb_iter_bound): Change bound to widest_int.
12356 (struct loop): Change nb_iterations_upper_bound and
12357 nb_iterations_estimate to widest_int.
12358 (record_niter_bound): Switch to use widest_int.
12359 (get_estimated_loop_iterations): Likewise.
12360 (get_max_loop_iterations): Likewise.
12361 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12362 update for wide-int.
12363 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12364 * combine.c (try_combine): Likewise.
12365 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12366 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12368 (aarch64_float_const_representable_p): Likewise.
12369 * config/arc/arc.c: Include wide-int.h.
12370 (arc_can_use_doloop_p): Use wide-int interfaces.
12371 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12372 (vfp3_const_double_index): Likewise.
12373 * config/avr/avr.c (avr_out_round): Likewise.
12374 (avr_fold_builtin): Likewise.
12375 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12376 (bfin_can_use_doloop_p): Likewise.
12377 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12378 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12379 * config/i386/i386.c: Include wide-int.h.
12380 (ix86_data_alignment): Use wide-int interfaces.
12381 (ix86_local_alignment): Likewise.
12382 (ix86_emit_swsqrtsf): Update real_from_integer.
12383 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12384 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12385 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12386 (zero_constant): Likewise.
12387 (input_operand): Likewise.
12388 (splat_input_operand): Likewise.
12389 (non_logical_cint_operand): Change const_double to const_wide_int.
12390 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12391 (easy_altivec_constant): Remove comment.
12392 (paired_expand_vector_init): Use CONSTANT_P.
12393 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12394 (rs6000_emit_move): Update checks.
12395 (rs6000_aggregate_candidate): Use wide-int interfaces.
12396 (rs6000_expand_ternop_builtin): Likewise.
12397 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12398 (rs6000_assemble_integer): Likewise.
12399 (rs6000_hash_constant): Likewise.
12400 (output_toc): Likewise.
12401 (rs6000_rtx_costs): Likewise.
12402 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12403 * config/rs6000/rs6000-c.c: Include wide-int.h.
12404 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12405 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12406 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12407 Handle CONST_WIDE_INT.
12408 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12409 Use tree_fits_uhwi_p.
12410 * config/sparc/sparc.c: Include wide-int.h.
12411 (sparc_fold_builtin): Use wide-int interfaces.
12412 * config/vax/vax.c: Include wide-int.h.
12413 (vax_float_literal): Use real_from_integer.
12414 * coretypes.h (struct hwivec_def): New.
12416 (const_hwivec): New.
12417 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12418 (equiv_constant): Handle CONST_WIDE_INT.
12419 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12420 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12421 * dbxout.c (stabstr_U): Use wide-int interfaces.
12422 (dbxout_type): Update to use cst_fits_shwi_p.
12423 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12424 (TARGET_SUPPORTS_WIDE_INT): Add default.
12425 * dfp.c: Include wide-int.h.
12426 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12427 decimal_real_to_integer.
12428 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12429 decimal_real_to_integer.
12430 * doc/generic.texi (Constant expressions): Update for wide_int.
12431 * doc/rtl.texi (const_double): Likewise.
12432 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12433 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12434 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12435 (REAL_VALUE_FROM_INT): Remove.
12436 (TARGET_SUPPORTS_WIDE_INT): New.
12437 * doc/tm.texi: Regenerate.
12438 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12439 * double-int.h: Include wide-int.h.
12440 (struct wi::int_traits): New.
12441 * dwarf2out.c (get_full_len): New.
12442 (dw_val_equal_p): Add case dw_val_class_wide_int.
12443 (size_of_loc_descr): Likewise.
12444 (output_loc_operands): Likewise.
12445 (insert_double): Remove.
12446 (insert_wide_int): New.
12447 (add_AT_wide): New.
12448 (print_die): Add case dw_val_class_wide_int.
12449 (attr_checksum): Likewise.
12450 (attr_checksum_ordered): Likewise.
12451 (same_dw_val_p): Likewise.
12452 (size_of_die): Likewise.
12453 (value_format): Likewise.
12454 (output_die): Likewise.
12455 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12457 (clz_loc_descriptor): Use wide-int interfaces.
12458 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12459 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12460 (round_up_to_align): Use wide-int interfaces.
12461 (field_byte_offset): Likewise.
12462 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12463 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12464 CONST_DOUBLE handling. Use wide-int interfaces.
12465 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12466 (gen_enumeration_type_die): Use add_AT_wide.
12467 (hash_loc_operands): Add case dw_val_class_wide_int.
12468 (compare_loc_operands): Likewise.
12469 * dwarf2out.h: Include wide-int.h.
12470 (wide_int_ptr): New.
12471 (enum dw_val_class): Add dw_val_class_wide_int.
12472 (struct dw_val_struct): Add val_wide.
12473 * emit-rtl.c (const_wide_int_htab): New.
12474 (const_wide_int_htab_hash): New.
12475 (const_wide_int_htab_eq): New.
12476 (lookup_const_wide_int): New.
12477 (const_double_htab_hash): Use wide-int interfaces.
12478 (const_double_htab_eq): Likewise.
12479 (rtx_to_double_int): Conditionally compile for wide-int.
12480 (immed_double_int_const): Rename to immed_wide_int_const and
12481 update for wide-int.
12482 (immed_double_const): Conditionally compile for wide-int.
12483 (init_emit_once): Use wide-int interfaces.
12484 * explow.c (plus_constant): Likewise.
12485 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12486 (lshift_value): Use wide-int interfaces.
12487 (expand_mult): Likewise.
12488 (choose_multiplier): Likewise.
12489 (expand_smod_pow2): Likewise.
12490 (make_tree): Likewise.
12491 * expr.c (convert_modes): Consolidate handling of constants.
12492 Use wide-int interfaces.
12493 (emit_group_load_1): Add note.
12494 (store_expr): Update comment.
12495 (get_inner_reference): Use wide-int interfaces.
12496 (expand_constructor): Update comment.
12497 (expand_expr_real_2): Use wide-int interfaces.
12498 (expand_expr_real_1): Likewise.
12499 (reduce_to_bit_field_precision): Likewise.
12500 (const_vector_from_tree): Likewise.
12501 * final.c: Include wide-int-print.h.
12502 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12503 * fixed-value.c: Include wide-int.h.
12504 (fixed_from_string): Use wide-int interfaces.
12505 (fixed_to_decimal): Likewise.
12506 (fixed_convert_from_real): Likewise.
12507 (real_convert_from_fixed): Likewise.
12508 * fold-const.h (mem_ref_offset): Return an offset_int.
12509 (div_if_zero_remainder): Remove code parameter.
12510 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12511 Use wide-int interfaces.
12512 (may_negate_without_overflow_p): Use wide-int interfaces.
12513 (negate_expr_p): Likewise.
12514 (fold_negate_expr): Likewise.
12515 (int_const_binop_1): Likewise.
12516 (const_binop): Likewise.
12517 (fold_convert_const_int_from_int): Likewise.
12518 (fold_convert_const_int_from_real): Likewise.
12519 (fold_convert_const_int_from_fixed): Likewise.
12520 (fold_convert_const_fixed_from_int): Likewise.
12521 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12522 (sign_bit_p): Use wide-int interfaces.
12523 (make_range_step): Likewise.
12524 (build_range_check): Likewise. Pass an integer of the correct type
12525 instead of using integer_one_node.
12526 (range_predecessor): Pass an integer of the correct type instead
12527 of using integer_one_node.
12528 (range_successor): Likewise.
12529 (merge_ranges): Likewise.
12530 (unextend): Use wide-int interfaces.
12531 (extract_muldiv_1): Likewise.
12532 (fold_div_compare): Likewise.
12533 (fold_single_bit_test): Likewise.
12534 (fold_sign_changed_comparison): Likewise.
12535 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12536 (fold_plusminus_mult_expr): Use wide-int interfaces.
12537 (native_encode_int): Likewise.
12538 (native_interpret_int): Likewise.
12539 (fold_unary_loc): Likewise.
12540 (pointer_may_wrap_p): Likewise.
12541 (size_low_cst): Likewise.
12542 (mask_with_tz): Likewise.
12543 (fold_binary_loc): Likewise.
12544 (fold_ternary_loc): Likewise.
12545 (multiple_of_p): Likewise.
12546 (tree_call_nonnegative_warnv_p): Update calls to
12547 tree_int_cst_min_precision and real_from_integer.
12548 (fold_negate_const): Use wide-int interfaces.
12549 (fold_abs_const): Likewise.
12550 (fold_relational_const): Use tree_int_cst_lt.
12551 (round_up_loc): Use wide-int interfaces.
12552 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12553 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12554 * gengtype.c: Remove include of double-int.h.
12555 (do_typedef): Use wide-int interfaces.
12556 (open_base_files): Add wide-int.h.
12557 (main): Add offset_int and widest_int typedefs.
12558 * gengtype-lex.l: Handle "^".
12559 (CXX_KEYWORD): Add "static".
12560 * gengtype-parse.c (require3): New.
12561 (require_template_declaration): Handle constant template arguments
12562 and nested templates.
12563 * gengtype-state.c: Don't include "double-int.h".
12564 * genpreds.c (write_one_predicate_function): Update comment.
12565 (write_tm_constrs_h): Add check for hval and lval use in
12567 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12568 (add_to_sequence): Likewise.
12569 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12570 and const_double_operand.
12571 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12573 * gimple-fold.c (get_base_constructor): Likewise.
12574 (fold_array_ctor_reference): Likewise.
12575 (fold_nonarray_ctor_reference): Likewise.
12576 (fold_const_aggregate_ref_1): Likewise.
12577 (gimple_val_nonnegative_real_p): Likewise.
12578 (gimple_fold_indirect_ref): Likewise.
12579 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12580 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12581 (struct slsr_cand_d): Change index to be widest_int.
12582 (struct incr_info_d): Change incr to be widest_int.
12583 (alloc_cand_and_find_basis): Use wide-int interfaces.
12584 (slsr_process_phi): Likewise.
12585 (backtrace_base_for_ref): Likewise. Return a widest_int.
12586 (restructure_reference): Take a widest_int instead of a double_int.
12587 (slsr_process_ref): Use wide-int interfaces.
12588 (create_mul_ssa_cand): Likewise.
12589 (create_mul_imm_cand): Likewise.
12590 (create_add_ssa_cand): Likewise.
12591 (create_add_imm_cand): Take a widest_int instead of a double_int.
12592 (slsr_process_add): Use wide-int interfaces.
12593 (slsr_process_cast): Likewise.
12594 (slsr_process_copy): Likewise.
12595 (dump_candidate): Likewise.
12596 (dump_incr_vec): Likewise.
12597 (replace_ref): Likewise.
12598 (cand_increment): Likewise. Return a widest_int.
12599 (cand_abs_increment): Likewise.
12600 (replace_mult_candidate): Take a widest_int instead of a double_int.
12601 (replace_unconditional_candidate): Use wide-int interfaces.
12602 (incr_vec_index): Take a widest_int instead of a double_int.
12603 (create_add_on_incoming_edge): Likewise.
12604 (create_phi_basis): Use wide-int interfaces.
12605 (replace_conditional_candidate): Likewise.
12606 (record_increment): Take a widest_int instead of a double_int.
12607 (record_phi_increments): Use wide-int interfaces.
12608 (phi_incr_cost): Take a widest_int instead of a double_int.
12609 (lowest_cost_path): Likewise.
12610 (total_savings): Likewise.
12611 (analyze_increments): Use wide-int interfaces.
12612 (ncd_with_phi): Take a widest_int instead of a double_int.
12613 (ncd_of_cand_and_phis): Likewise.
12614 (nearest_common_dominator_for_cands): Likewise.
12615 (insert_initializers): Use wide-int interfaces.
12616 (all_phi_incrs_profitable): Likewise.
12617 (replace_one_candidate): Likewise.
12618 (replace_profitable_candidates): Likewise.
12619 * godump.c: Include wide-int-print.h.
12620 (go_output_typedef): Use wide-int interfaces.
12621 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12622 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12623 (build_loop_iteration_domains): Likewise.
12624 * hooks.h: Include wide-int.h rather than double-int.h.
12625 (hook_bool_dint_dint_uint_bool_true): Delete.
12626 (hook_bool_wint_wint_uint_bool_true): Declare.
12627 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12628 (hook_bool_wint_wint_uint_bool_true): New.
12629 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12631 (ubsan_expand_si_overflow_mul_check): Likewise.
12632 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12633 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12634 (get_ancestor_addr_info): Likewise.
12635 (ipa_modify_call_arguments): Likewise.
12636 * loop-doloop.c (doloop_modify): Likewise.
12637 (doloop_optimize): Likewise.
12638 * loop-iv.c (iv_number_of_iterations): Likewise.
12639 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12640 (unroll_loop_constant_iterations): Likewise.
12641 (decide_unroll_runtime_iterations): Likewise.
12642 (unroll_loop_runtime_iterations): Likewise.
12643 (decide_peel_simple): Likewise.
12644 (decide_unroll_stupid): Likewise.
12645 * lto-streamer-in.c (streamer_read_wi): Add.
12646 (input_cfg): Use wide-int interfaces.
12647 (lto_input_tree_1): Likewise.
12648 * lto-streamer-out.c (streamer_write_wi): Add.
12649 (hash_tree): Use wide-int interfaces.
12650 (output_cfg): Likewise.
12651 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12652 (GTFILES): Add wide-int.h and signop.h.
12653 (TAGS): Look for .cc files too.
12654 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12655 * optabs.c (expand_subword_shift): Likewise.
12656 (expand_doubleword_shift): Likewise.
12657 (expand_absneg_bit): Likewise.
12658 (expand_copysign_absneg): Likewise.
12659 (expand_copysign_bit): Likewise.
12660 * postreload.c (reload_cse_simplify_set): Likewise.
12661 * predict.c (predict_iv_comparison): Likewise.
12662 * pretty-print.h: Include wide-int-print.h.
12664 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12665 * print-tree.c: Include wide-int-print.h.
12666 (print_node_brief): Use wide-int interfaces.
12667 (print_node): Likewise.
12668 * read-rtl.c (validate_const_wide_int): New.
12669 (read_rtx_code): Add CONST_WIDE_INT case.
12670 * real.c: Include wide-int.h.
12671 (real_to_integer2): Delete.
12672 (real_to_integer): New function, returning a wide_int.
12673 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12674 (ten_to_ptwo): Update call to real_from_integer.
12675 (real_digit): Likewise.
12676 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12677 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12678 (REAL_VALUE_TO_INT): Delete.
12679 (real_to_integer): Declare a wide-int form.
12680 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12681 * recog.c (const_int_operand): Improve comment.
12682 (const_scalar_int_operand): New.
12683 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12684 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12685 (split_double): Likewise.
12686 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12687 (rtx_size): Likewise.
12688 (rtx_alloc_stat_v): New.
12689 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12690 (cwi_output_hex): New.
12691 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12692 (cwi_check_failed_bounds): New.
12693 * rtl.def (CONST_WIDE_INT): New.
12694 * rtl.h: Include <utility> and wide-int.h.
12695 (struct hwivec_def): New.
12696 (CWI_GET_NUM_ELEM): New.
12697 (CWI_PUT_NUM_ELEM): New.
12698 (struct rtx_def): Add num_elem and hwiv.
12699 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12700 (CASE_CONST_UNIQUE): Likewise.
12701 (CASE_CONST_ANY): Likewise.
12702 (CONST_SCALAR_INT_P): Likewise.
12703 (CONST_WIDE_INT_P): New.
12705 (HWIVEC_CHECK): New.
12706 (cwi_check_failed_bounds): New.
12708 (HWIVEC_CHECK): New.
12709 (CONST_WIDE_INT_VEC) New.
12710 (CONST_WIDE_INT_NUNITS) New.
12711 (CONST_WIDE_INT_ELT) New.
12712 (rtx_mode_t): New type.
12713 (wi::int_traits <rtx_mode_t>): New.
12715 (wi::min_value): New.
12716 (wi::max_value): New.
12718 (const_wide_int_alloc): New.
12719 (immed_wide_int_const): New.
12720 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12721 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12722 * signop.h: New file.
12723 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12724 (simplify_const_unary_operation): Use wide-int interfaces.
12725 (simplify_binary_operation_1): Likewise.
12726 (simplify_const_binary_operation): Likewise.
12727 (simplify_const_relational_operation): Likewise.
12728 (simplify_immed_subreg): Likewise.
12729 * stmt.c (expand_case): Likewise.
12730 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12731 signop rather than a bool.
12732 * stor-layout.c (layout_type): Use wide-int interfaces.
12733 (initialize_sizetypes): Update calls to
12734 set_min_and_max_values_for_integral_type.
12735 (set_min_and_max_values_for_integral_type): Take a signop rather
12736 than a bool. Use wide-int interfaces.
12737 (fixup_signed_type): Update accordingly. Remove
12738 HOST_BITS_PER_DOUBLE_INT limit.
12739 (fixup_unsigned_type): Likewise.
12740 * system.h (STATIC_CONSTANT_P): New.
12741 (STATIC_ASSERT): New.
12742 * target.def (can_use_doloop_p): Take widest_ints rather than
12744 * target.h: Include wide-int.h rather than double-int.h.
12745 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12747 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12748 rather than INT_CST_LT_UNSIGNED.
12749 (can_use_doloop_if_innermost): Take widest_ints rather than
12751 * tree-affine.c: Include wide-int-print.h.
12752 (double_int_ext_for_comb): Delete.
12753 (wide_int_ext_for_comb): New.
12754 (aff_combination_zero): Use wide-int interfaces.
12755 (aff_combination_const): Take a widest_int instead of a double_int.
12756 (aff_combination_elt): Use wide-int interfaces.
12757 (aff_combination_scale): Take a widest_int instead of a double_int.
12758 (aff_combination_add_elt): Likewise.
12759 (aff_combination_add_cst): Likewise.
12760 (aff_combination_add): Use wide-int interfaces.
12761 (aff_combination_convert): Likewise.
12762 (tree_to_aff_combination): Likewise.
12763 (add_elt_to_tree): Take a widest_int instead of a double_int.
12764 (aff_combination_to_tree): Use wide-int interfaces.
12765 (aff_combination_remove_elt): Likewise.
12766 (aff_combination_add_product): Take a widest_int instead of
12768 (aff_combination_mult): Use wide-int interfaces.
12769 (aff_combination_expand): Likewise.
12770 (double_int_constant_multiple_p): Delete.
12771 (wide_int_constant_multiple_p): New.
12772 (aff_combination_constant_multiple_p): Take a widest_int pointer
12773 instead of a double_int pointer.
12774 (print_aff): Use wide-int interfaces.
12775 (get_inner_reference_aff): Take a widest_int pointer
12776 instead of a double_int pointer.
12777 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12778 * tree-affine.h: Include wide-int.h.
12779 (struct aff_comb_elt): Change type of coef to widest_int.
12780 (struct affine_tree_combination): Change type of offset to widest_int.
12781 (double_int_ext_for_comb): Delete.
12782 (wide_int_ext_for_comb): New.
12783 (aff_combination_const): Use widest_int instead of double_int.
12784 (aff_combination_scale): Likewise.
12785 (aff_combination_add_elt): Likewise.
12786 (aff_combination_constant_multiple_p): Likewise.
12787 (get_inner_reference_aff): Likewise.
12788 (aff_comb_cannot_overlap_p): Likewise.
12789 (aff_combination_zero_p): Use wide-int interfaces.
12790 * tree.c: Include tree.h.
12791 (init_ttree): Use make_int_cst.
12792 (tree_code_size): Removed code for INTEGER_CST case.
12793 (tree_size): Add INTEGER_CST case.
12794 (make_node_stat): Update comment.
12795 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12796 (build_int_cst_type): Use wide-int interfaces.
12797 (double_int_to_tree): Likewise.
12798 (double_int_fits_to_tree_p): Delete.
12799 (force_fit_type_double): Delete.
12800 (force_fit_type): New.
12801 (int_cst_hash_hash): Use wide-int interfaces.
12802 (int_cst_hash_eq): Likewise.
12803 (build_int_cst_wide): Delete.
12804 (wide_int_to_tree): New.
12805 (cache_integer_cst): Use wide-int interfaces.
12806 (build_low_bits_mask): Likewise.
12807 (cst_and_fits_in_hwi): Likewise.
12808 (real_value_from_int_cst): Likewise.
12809 (make_int_cst_stat): New.
12810 (integer_zerop): Use wide_int interfaces.
12811 (integer_onep): Likewise.
12812 (integer_all_onesp): Likewise.
12813 (integer_pow2p): Likewise.
12814 (integer_nonzerop): Likewise.
12815 (tree_log2): Likewise.
12816 (tree_floor_log2): Likewise.
12817 (tree_ctz): Likewise.
12818 (int_size_in_bytes): Likewise.
12819 (mem_ref_offset): Return an offset_int rather than a double_int.
12820 (build_type_attribute_qual_variant): Use wide_int interfaces.
12821 (type_hash_eq): Likewise
12822 (tree_int_cst_equal): Likewise.
12823 (tree_int_cst_lt): Delete.
12824 (tree_int_cst_compare): Likewise.
12825 (tree_fits_shwi_p): Use wide_int interfaces.
12826 (tree_fits_uhwi_p): Likewise.
12827 (tree_int_cst_sign_bit): Likewise.
12828 (tree_int_cst_sgn): Likewise.
12829 (tree_int_cst_min_precision): Take a signop rather than a bool.
12830 (simple_cst_equal): Use wide_int interfaces.
12831 (compare_tree_int): Likewise.
12832 (iterative_hash_expr): Likewise.
12833 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12835 (get_type_static_bounds): Use wide_int interfaces.
12836 (tree_int_cst_elt_check_failed): New.
12837 (build_common_tree_nodes): Reordered to set prec before filling in
12839 (int_cst_value): Check cst_and_fits_in_hwi.
12840 (widest_int_cst_value): Use wide_int interfaces.
12841 (upper_bound_in_type): Likewise.
12842 (lower_bound_in_type): Likewise.
12843 (num_ending_zeros): Likewise.
12844 (drop_tree_overflow): Likewise.
12845 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12846 (gen_conditions_for_pow_cst_base): Likewise.
12847 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12848 (group_case_labels_stmt): Use wide-int interfaces.
12849 (verify_gimple_assign_binary): Likewise.
12850 (print_loop): Likewise.
12851 * tree-chrec.c (tree_fold_binomial): Likewise.
12852 * tree-core.h (struct tree_base): Add int_length.
12853 (struct tree_int_cst): Change rep of value.
12854 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12855 (dr_may_alias_p): Likewise.
12856 (max_stmt_executions_tree): Likewise.
12857 * tree.def (INTEGER_CST): Update comment.
12858 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12859 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12860 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12861 (dequeue_and_dump): Use wide-int interfaces.
12862 * tree.h: Include wide-int.h.
12863 (NULL_TREE): Moved to earlier loc in file.
12864 (TREE_INT_CST_ELT_CHECK): New.
12865 (tree_int_cst_elt_check_failed): New.
12867 (TREE_INT_CST): Delete.
12868 (TREE_INT_CST_LOW): Use wide-int interfaces.
12869 (TREE_INT_CST_HIGH): Delete.
12870 (TREE_INT_CST_NUNITS): New.
12871 (TREE_INT_CST_EXT_NUNITS): Likewise.
12872 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12873 (TREE_INT_CST_ELT): Likewise.
12874 (INT_CST_LT): Delete.
12875 (tree_int_cst_elt_check): New (two forms).
12876 (type_code_size): Update comment.
12877 (make_int_cst_stat, make_int_cst): New.
12878 (tree_to_double_int): Delete.
12879 (double_int_fits_to_tree_p): Delete.
12880 (force_fit_type_double): Delete.
12881 (build_int_cstu): Replace with out-of-line function.
12882 (build_int_cst_wide): Delete.
12883 (tree_int_cst_lt): Define inline.
12884 (tree_int_cst_le): New.
12885 (tree_int_cst_compare): Define inline.
12886 (tree_int_cst_min_precision): Take a signop rather than a bool.
12887 (wi::int_traits <const_tree>): New.
12888 (wi::int_traits <tree>): New.
12889 (wi::extended_tree): New.
12890 (wi::int_traits <wi::extended_tree>): New.
12891 (wi::to_widest): New.
12892 (wi::to_offset): New.
12893 (wi::fits_to_tree_p): New.
12894 (wi::min_value): New.
12895 (wi::max_value): New.
12896 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12897 (copy_tree_body_r): Likewise.
12898 * tree-object-size.c (compute_object_offset): Likewise.
12899 (addr_object_size): Likewise.
12900 * tree-predcom.c: Include wide-int-print.h.
12901 (struct dref_d): Change type of offset to widest_int.
12902 (dump_dref): Call wide-int printer.
12903 (aff_combination_dr_offset): Use wide-int interfaces.
12904 (determine_offset): Take a widest_int pointer rather than a
12905 double_int pointer.
12906 (split_data_refs_to_components): Use wide-int interfaces.
12907 (suitable_component_p): Likewise.
12908 (order_drefs): Likewise.
12909 (add_ref_to_chain): Likewise.
12910 (valid_initializer_p): Likewise.
12911 (determine_roots_comp): Likewise.
12912 * tree-pretty-print.c: Include wide-int-print.h.
12913 (dump_generic_node): Use wide-int interfaces.
12914 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12915 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12916 (move_fixed_address_to_symbol): Likewise.
12917 (move_hint_to_base): Likewise.
12918 (move_pointer_to_base): Likewise.
12919 (move_variant_to_index): Likewise.
12920 (most_expensive_mult_to_index): Likewise.
12921 (addr_to_parts): Likewise.
12922 (copy_ref_info): Likewise.
12923 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12924 (indirect_refs_may_alias_p): Likewise.
12925 (stmt_kills_ref_p_1): Likewise.
12926 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12927 * tree-ssa-ccp.c: Update comment at top of file. Include
12929 (struct prop_value_d): Change type of mask to widest_int.
12930 (extend_mask): New function.
12931 (dump_lattice_value): Use wide-int interfaces.
12932 (get_default_value): Likewise.
12933 (set_constant_value): Likewise.
12934 (set_value_varying): Likewise.
12935 (valid_lattice_transition): Likewise.
12936 (set_lattice_value): Likewise.
12937 (value_to_double_int): Delete.
12938 (value_to_wide_int): New.
12939 (get_value_from_alignment): Use wide-int interfaces.
12940 (get_value_for_expr): Likewise.
12941 (do_dbg_cnt): Likewise.
12942 (ccp_finalize): Likewise.
12943 (ccp_lattice_meet): Likewise.
12944 (bit_value_unop_1): Use widest_ints rather than double_ints.
12945 (bit_value_binop_1): Likewise.
12946 (bit_value_unop): Use wide-int interfaces.
12947 (bit_value_binop): Likewise.
12948 (bit_value_assume_aligned): Likewise.
12949 (evaluate_stmt): Likewise.
12950 (ccp_fold_stmt): Likewise.
12951 (visit_cond_stmt): Likewise.
12952 (ccp_visit_stmt): Likewise.
12953 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12954 (constant_pointer_difference): Likewise.
12955 (associate_pointerplus): Likewise.
12956 (combine_conversions): Likewise.
12957 * tree-ssa-loop.h: Include wide-int.h.
12958 (struct tree_niter_desc): Change type of max to widest_int.
12959 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12960 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12961 (remove_redundant_iv_tests): Likewise.
12962 (canonicalize_loop_induction_variables): Likewise.
12963 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12964 (constant_multiple_of): Take a widest_int pointer instead of
12965 a double_int pointer.
12966 (get_computation_aff): Use wide-int interfaces.
12967 (ptr_difference_cost): Likewise.
12968 (difference_cost): Likewise.
12969 (get_loop_invariant_expr_id): Likewise.
12970 (get_computation_cost_at): Likewise.
12971 (iv_elimination_compare_lt): Likewise.
12972 (may_eliminate_iv): Likewise.
12973 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12974 instead of double_int.
12975 (max_loop_iterations): Likewise.
12976 (max_stmt_executions): Likewise.
12977 (estimated_stmt_executions): Likewise.
12978 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12979 (split_to_var_and_offset): Use wide-int interfaces.
12980 (determine_value_range): Likewise.
12981 (bound_difference_of_offsetted_base): Likewise.
12982 (bounds_add): Take a widest_int instead of a double_int.
12983 (number_of_iterations_ne_max): Use wide-int interfaces.
12984 (number_of_iterations_ne): Likewise.
12985 (number_of_iterations_lt_to_ne): Likewise.
12986 (assert_loop_rolls_lt): Likewise.
12987 (number_of_iterations_lt): Likewise.
12988 (number_of_iterations_le): Likewise.
12989 (number_of_iterations_cond): Likewise.
12990 (number_of_iterations_exit): Likewise.
12991 (finite_loop_p): Likewise.
12992 (derive_constant_upper_bound_assign): Likewise.
12993 (derive_constant_upper_bound): Return a widest_int.
12994 (derive_constant_upper_bound_ops): Likewise.
12995 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12996 (record_estimate): Take a widest_int rather than a double_int.
12997 (record_nonwrapping_iv): Use wide-int interfaces.
12998 (double_int_cmp): Delete.
12999 (wide_int_cmp): New.
13000 (bound_index): Take a widest_int rather than a double_int.
13001 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13002 (maybe_lower_iteration_bound): Likewise.
13003 (estimate_numbers_of_iterations_loop): Likewise.
13004 (estimated_loop_iterations): Take a widest_int pointer than than
13005 a double_int pointer.
13006 (estimated_loop_iterations_int): Use wide-int interfaces.
13007 (max_loop_iterations): Take a widest_int pointer than than
13008 a double_int pointer.
13009 (max_loop_iterations_int): Use wide-int interfaces.
13010 (max_stmt_executions): Take a widest_int pointer than than
13011 a double_int pointer.
13012 (estimated_stmt_executions): Likewise.
13013 (n_of_executions_at_most): Use wide-int interfaces.
13014 (scev_probably_wraps_p): Likewise.
13015 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13016 to real_to_integer.
13017 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13019 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13020 double_ints. Adjust for trailing_wide_ints <3> representation.
13021 (set_nonzero_bits): Likewise.
13022 (get_range_info): Return wide_ints rather than double_ints.
13023 Adjust for trailing_wide_ints <3> representation.
13024 (get_nonzero_bits): Likewise.
13025 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13027 * tree-ssanames.h (struct range_info_def): Replace min, max and
13028 nonzero_bits with a trailing_wide_ints <3>.
13029 (set_range_info): Use wide_int_refs rather than double_ints.
13030 (set_nonzero_bits): Likewise.
13031 (get_range_info): Return wide_ints rather than double_ints.
13032 (get_nonzero_bits): Likewise.
13033 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13034 * tree-ssa-pre.c (phi_translate_1): Likewise.
13035 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13036 (acceptable_pow_call): Likewise.
13037 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13039 (vn_reference_fold_indirect): Likewise.
13040 (vn_reference_maybe_forwprop_address): Likewise.
13041 (valueize_refs_1): Likewise.
13042 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13043 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13044 tree_int_cst_lt and tree_int_cst_le.
13045 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13047 (streamer_alloc_tree): Likewise.
13048 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13049 (streamer_write_tree_header): Likewise.
13050 (streamer_write_integer_cst): Likewise.
13051 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13052 (build_constructors): Likewise.
13053 (array_value_type): Likewise.
13054 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13055 (vect_check_gather): Likewise.
13056 * tree-vect-generic.c (build_replicated_const): Likewise.
13057 (expand_vector_divmod): Likewise.
13058 * tree-vect-loop.c (vect_transform_loop): Likewise.
13059 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13060 (vect_do_peeling_for_alignment): Likewise.
13061 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13062 * tree-vrp.c: Include wide-int.h.
13063 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13064 (extract_range_from_assert): Use wide-int interfaces.
13065 (vrp_int_const_binop): Likewise.
13066 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13067 double_int pointers.
13068 (ranges_from_anti_range): Use wide-int interfaces.
13069 (quad_int_cmp): Delete.
13070 (quad_int_pair_sort): Likewise.
13071 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13072 (extract_range_from_unary_expr_1): Likewise.
13073 (adjust_range_with_scev): Likewise.
13074 (masked_increment): Take and return wide_ints rather than double_ints.
13075 (register_edge_assert_for_2): Use wide-int interfaces.
13076 (check_array_ref): Likewise.
13077 (search_for_addr_array): Likewise.
13078 (maybe_set_nonzero_bits): Likewise.
13079 (union_ranges): Pass an integer of the correct type instead of
13080 using integer_one_node.
13081 (intersect_ranges): Likewise.
13082 (simplify_truth_ops_using_ranges): Likewise.
13083 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13084 (range_fits_type_p): Likewise.
13085 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13087 (simplify_conversion_using_ranges): Use wide-int interfaces.
13088 (simplify_float_conversion_using_ranges): Likewise.
13089 (vrp_finalize): Likewise.
13090 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13091 (gimple_stringops_transform): Likewise.
13092 * varasm.c (decode_addr_const): Likewise.
13093 (const_hash_1): Likewise.
13094 (const_rtx_hash_1): Likewise
13095 (output_constant): Likewise.
13096 (array_size_for_constructor): Likewise.
13097 (output_constructor_regular_field): Likewise.
13098 (output_constructor_bitfield): Likewise.
13099 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13100 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13102 * gencheck.c: Define BITS_PER_UNIT.
13103 * wide-int.cc: New.
13105 * wide-int-print.cc: New.
13106 * wide-int-print.h: New.
13108 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13110 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13112 2014-05-06 Richard Biener <rguenther@suse.de>
13114 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13115 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13116 (TODO_verify_all): Adjust.
13117 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13118 TODO_verify_stmts and TODO_verify_rtl_sharing.
13119 * bb-reorder.c: Likewise.
13120 * cfgexpand.c: Likewise.
13121 * cprop.c: Likewise.
13123 * function.c: Likewise.
13124 * fwprop.c: Likewise.
13125 * gcse.c: Likewise.
13126 * gimple-ssa-isolate-paths.c: Likewise.
13127 * gimple-ssa-strength-reduction.c: Likewise.
13128 * ipa-split.c: Likewise.
13129 * loop-init.c: Likewise.
13130 * loop-unroll.c: Likewise.
13131 * lower-subreg.c: Likewise.
13132 * modulo-sched.c: Likewise.
13133 * postreload-gcse.c: Likewise.
13134 * predict.c: Likewise.
13135 * recog.c: Likewise.
13136 * sched-rgn.c: Likewise.
13137 * store-motion.c: Likewise.
13138 * tracer.c: Likewise.
13139 * trans-mem.c: Likewise.
13140 * tree-call-cdce.c: Likewise.
13141 * tree-cfg.c: Likewise.
13142 * tree-cfgcleanup.c: Likewise.
13143 * tree-complex.c: Likewise.
13144 * tree-eh.c: Likewise.
13145 * tree-emutls.c: Likewise.
13146 * tree-if-conv.c: Likewise.
13147 * tree-into-ssa.c: Likewise.
13148 * tree-loop-distribution.c: Likewise.
13149 * tree-object-size.c: Likewise.
13150 * tree-parloops.c: Likewise.
13151 * tree-pass.h: Likewise.
13152 * tree-sra.c: Likewise.
13153 * tree-ssa-ccp.c: Likewise.
13154 * tree-ssa-copy.c: Likewise.
13155 * tree-ssa-copyrename.c: Likewise.
13156 * tree-ssa-dce.c: Likewise.
13157 * tree-ssa-dom.c: Likewise.
13158 * tree-ssa-dse.c: Likewise.
13159 * tree-ssa-forwprop.c: Likewise.
13160 * tree-ssa-ifcombine.c: Likewise.
13161 * tree-ssa-loop-ch.c: Likewise.
13162 * tree-ssa-loop-ivcanon.c: Likewise.
13163 * tree-ssa-loop.c: Likewise.
13164 * tree-ssa-math-opts.c: Likewise.
13165 * tree-ssa-phiopt.c: Likewise.
13166 * tree-ssa-phiprop.c: Likewise.
13167 * tree-ssa-pre.c: Likewise.
13168 * tree-ssa-reassoc.c: Likewise.
13169 * tree-ssa-sink.c: Likewise.
13170 * tree-ssa-strlen.c: Likewise.
13171 * tree-ssa-tail-merge.c: Likewise.
13172 * tree-ssa-uncprop.c: Likewise.
13173 * tree-switch-conversion.c: Likewise.
13174 * tree-tailcall.c: Likewise.
13175 * tree-vect-generic.c: Likewise.
13176 * tree-vectorizer.c: Likewise.
13177 * tree-vrp.c: Likewise.
13178 * tsan.c: Likewise.
13179 * var-tracking.c: Likewise.
13180 * bt-load.c: Likewise.
13181 * cfgcleanup.c: Likewise.
13182 * combine-stack-adj.c: Likewise.
13183 * combine.c: Likewise.
13184 * compare-elim.c: Likewise.
13185 * config/epiphany/resolve-sw-modes.c: Likewise.
13186 * config/i386/i386.c: Likewise.
13187 * config/mips/mips.c: Likewise.
13188 * config/s390/s390.c: Likewise.
13189 * config/sh/sh_treg_combine.cc: Likewise.
13190 * config/sparc/sparc.c: Likewise.
13193 * final.c: Likewise.
13194 * ifcvt.c: Likewise.
13195 * mode-switching.c: Likewise.
13196 * passes.c: Likewise.
13197 * postreload.c: Likewise.
13199 * reg-stack.c: Likewise.
13200 * regcprop.c: Likewise.
13201 * regrename.c: Likewise.
13204 2014-05-06 Richard Biener <rguenther@suse.de>
13206 PR middle-end/61070
13207 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13208 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13210 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13213 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13215 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13216 Tom de Vries <tom@codesourcery.com>
13218 * target.def (call_fusage_contains_non_callee_clobbers): New
13220 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13222 (@node Miscellaneous Register Hooks): New node.
13223 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13224 * doc/tm.texi: Regenerate.
13226 2014-05-05 Marek Polacek <polacek@redhat.com>
13229 * opts.c (common_handle_option): Call error_at instead of warning_at.
13231 2014-05-05 Richard Biener <rguenther@suse.de>
13233 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13234 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13235 under the TODO_verify_il umbrella.
13237 2014-05-05 Richard Biener <rguenther@suse.de>
13239 * passes.c (execute_function_todo): Move TODO_verify_flow under
13240 the TODO_verify_ul umbrella.
13242 2014-05-05 Richard Biener <rguenther@suse.de>
13244 PR middle-end/61010
13245 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13246 X & CST away from a CST that is the mask of a mode.
13248 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13250 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13251 int argument to enum machine_mode.
13252 (picochip_class_max_nregs): Ditto.
13253 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13254 (picochip_class_max_nregs): Ditto.
13256 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13258 * target.def: Add new target hook.
13259 * doc/tm.texi: Regenerate.
13260 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13261 * targhooks.c (default_keep_leaf_when_profiled): New function.
13263 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13264 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13266 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13268 PR tree-optimization/60363
13269 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13270 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13271 (update_destination_phis): New parameter.
13272 (create_edge_and_update_destination_phis): Ditto.
13273 (ssa_fix_duplicate_block_edges): Pass new arguments.
13274 (thread_single_edge): Ditto.
13276 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13278 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13279 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13280 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13281 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13282 Use RS6000_BTM_HARD_FLOAT.
13283 (BU_MISC_2): Likewise.
13284 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13285 RS6000_BTM_HARD_FLOAT.
13286 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13287 is explicitly used.
13288 (rs6000_invalid_builtin): Add hard floating builtin support.
13289 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13290 hard float builtins.
13291 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13293 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13295 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13296 Add missing function* argument.
13298 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13300 * lra-constraints.c (valid_address_p): Move earlier in file.
13301 Add a constraint argument to the address_info version.
13302 (satisfies_memory_constraint_p): New function.
13303 (satisfies_address_constraint_p): Likewise.
13304 (process_alt_operands, curr_insn_transform): Use them.
13305 (process_address): Pass the constraint to valid_address_p when
13306 checking address operands.
13308 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13310 * config/mips/mips.c (mips_isa_rev): New variable.
13311 (mips_set_architecture): Set it.
13312 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13314 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13315 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13316 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13317 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13318 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13319 conditions in terms of mips_isa_rev.
13320 (mips_isa_rev): Declare.
13322 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13324 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13325 (prob_unlikely, prob_likely): Make variables const.
13327 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13329 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13331 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13333 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13335 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13337 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13338 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13339 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13341 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13342 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13344 Replace usage of ROUND_REG with sh_round_reg.
13345 Use CEIL instead of ROUND_ADVANCE.
13347 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13350 * config/sh/sh.c: Include stdlib headers before everything else.
13352 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13354 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13355 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13356 (gimplify_adjust_omp_clauses): Simd region is never
13357 directly nested in combined parallel. Instead, for linear
13358 with copyin/copyout, if in combined for simd loop, make decl
13359 firstprivate/lastprivate on OMP_FOR.
13360 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13361 expand_omp_for_static_chunk): When setting endvar, also set
13362 fd->loop.v to the same value.
13364 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13366 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13368 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13370 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13373 2014-05-02 Marek Polacek <polacek@redhat.com>
13375 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13377 2014-05-02 Kito Cheng <kito@0xlab.org>
13379 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13380 to a C expression marco.
13381 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13382 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13383 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13384 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13385 HONOR_REG_ALLOC_ORDER.
13386 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13388 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13390 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13392 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13394 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13396 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13398 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13399 (convert_scalar_cond_reduction): Likewise.
13400 (predicate_scalar_phi): Add recognition and transformation
13401 of simple conditioanl reduction to be vectorizable.
13403 2014-05-01 Marek Polacek <polacek@redhat.com>
13406 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13408 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13410 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13411 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13412 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13413 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13414 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13415 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13416 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13417 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13419 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13421 * config/arc/arc.opt (mlra): Move comment above option name
13422 to avoid mis-parsing as language options.
13424 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13426 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13427 * config/sol2.h: ... here.
13428 * config/sol2-10.h: Remove.
13430 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13431 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13432 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13433 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13434 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13435 * config/sol2.h: ... here.
13436 (SECTION_NAME_FORMAT): Don't redefine.
13437 (STARTFILE_ARCH32_SPEC): Rename to ...
13438 (STARTFILE_ARCH_SPEC): ... this.
13439 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13440 * config/sparc/sol2.h: ... here.
13441 (SECTION_NAME_FORMAT): Don't undef.
13442 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13443 (SUBTARGET_EXTRA_SPECS): Remove.
13444 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13446 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13447 (MD_STARTFILE_PREFIX): Remove.
13448 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13449 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13450 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13451 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13452 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13453 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13454 * config/i386/sol2.h: ... here.
13455 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13456 * config/i386/sol2-bi.h: Remove.
13457 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13458 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13460 * config/i386/t-sol2-64: Rename to ...
13461 * config/i386/t-sol2: ... this.
13462 * config/sparc/t-sol2-64: Rename to ...
13463 * config/sparc/t-sol2: ... this.
13465 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13466 sol2_tm_file_head, sol2_tm_file_tail.
13467 Include ${cpu_type}/sol2.h before sol2.h.
13469 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13470 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13471 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13472 Reflect i386/t-sol2-64 renaming.
13473 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13474 Reflect sparc/t-sol2-64 renaming.
13476 2014-04-30 Richard Biener <rguenther@suse.de>
13478 * passes.c (execute_function_todo): Move TODO_verify_stmts
13479 and TODO_verify_ssa under the TODO_verify_il umbrella.
13480 * tree-ssa.h (verify_ssa): Adjust prototype.
13481 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13482 we should verify SSA operands.
13483 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13484 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13485 whether we should verify whether not throwing stmts have EH info.
13486 * graphite-scop-detection.c (create_sese_edges): Adjust.
13487 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13488 * tree-eh.c (lower_try_finally_switch): Do not add the
13489 default case label twice.
13491 2014-04-30 Marek Polacek <polacek@redhat.com>
13493 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13494 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13495 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13496 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13498 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13500 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13501 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13502 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13503 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13504 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13505 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13506 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13507 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13509 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13511 * tree-cfg.c (dump_function_to_file): Dump the return type of
13512 functions, in a line to itself before the function body, mimicking
13513 the layout of a C function.
13515 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13517 PR tree-optimization/60971
13518 * tree-tailcall.c (process_assignment): Reject conversions which
13521 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13523 * calls.c (initialize_argument_information): Always treat
13524 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13525 (expand_call): Likewise.
13526 (emit_library_call_calue_1): Likewise.
13527 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13528 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13531 2014-04-29 Nick Clifton <nickc@redhat.com>
13533 * config/msp430/msp430.md (umulsidi): Fix typo.
13534 (mulhisi3): Enable even inside interrupt handlers.
13535 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13536 bigger return address pushed in large mode.
13538 2014-04-29 Nick Clifton <nickc@redhat.com>
13540 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13541 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13543 * config/m32r/m32r.c (init_reg_tables): Likewise.
13544 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13545 enum to hold the modes.
13547 2014-04-29 Richard Biener <rguenther@suse.de>
13549 * dominance.c (free_dominance_info): Add overload with
13550 function parameter.
13551 (dom_info_state): Likewise.
13552 (dom_info_available_p): Likewise.
13553 * basic-block.h (free_dominance_info, dom_info_state,
13554 dom_info_available_p): Declare overloads.
13555 * passes.c (execute_function_todo): Verify that verifiers
13556 don't change dominator info state. Drop dominator info
13557 for IPA pass invocations.
13558 * cgraph.c (release_function_body): Restore asserts that
13559 dominator information is released.
13561 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13563 * doc/invoke.texi: Fix typo.
13564 * tree-vrp.c: Fix typos.
13565 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13567 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13569 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13571 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13573 * config/aarch64/aarch64-builtins.c
13574 (aarch64_types_storestruct_lane_qualifiers): New.
13575 (TYPES_STORESTRUCT_LANE): Likewise.
13576 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13577 (st3_lane): Likewise.
13578 (st4_lane): Likewise.
13579 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13580 (vec_store_lanesci_lane<mode>): Likewise.
13581 (vec_store_lanesxi_lane<mode>): Likewise.
13582 (aarch64_st2_lane<VQ:mode>): Likewise.
13583 (aarch64_st3_lane<VQ:mode>): Likewise.
13584 (aarch64_st4_lane<VQ:mode>): Likewise.
13585 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13586 * config/aarch64/arm_neon.h
13587 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13588 use new macro arguments.
13589 (__ST3_LANE_FUNC): Likewise.
13590 (__ST4_LANE_FUNC): Likewise.
13591 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13592 (V_THREE_ELEM): Likewise.
13593 (V_FOUR_ELEM): Likewise.
13595 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13597 * doc/gimple.texi: Replace the description of the now-defunct
13598 union gimple_statement_d with a diagram showing the
13599 gimple_statement_base class hierarchy and its relationships to
13600 the GSS_ and GIMPLE_ enums.
13602 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13604 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13605 * config/aarch64/aarch64.c
13606 (aarch64_cannot_change_mode_class): Weaken conditions.
13607 (aarch64_modes_tieable_p): New.
13608 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13610 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13612 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13613 (loadsync_<mode>): Change mode.
13614 (load_quadpti, store_quadpti): New.
13615 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13616 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13618 2014-04-28 Martin Jambor <mjambor@suse.cz>
13620 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13621 same alias type as the original statement.
13622 (subreplacement_assignment_data): New type.
13623 (handle_unscalarized_data_in_subtree): New type of parameter,
13624 generate new memory accesses with same alias type as the original
13626 (load_assign_lhs_subreplacements): Likewise.
13627 (sra_modify_constructor_assign): Generate new memory accesses with
13628 same alias type as the original statement.
13630 2014-04-28 Richard Biener <rguenther@suse.de>
13632 * tree-pass.h (TODO_verify_il): Define.
13633 (TODO_verify_all): Complete properly.
13634 * passes.c (execute_function_todo): Move existing loop-closed
13635 SSA verification under TODO_verify_il.
13636 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13637 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13638 Fix tree sharing issue.
13640 2014-04-28 Richard Biener <rguenther@suse.de>
13642 PR middle-end/60092
13643 * builtins.def (DEF_C11_BUILTIN): Add.
13644 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13645 * coretypes.h (enum function_class): Add function_c11_misc.
13646 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13647 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13648 (call_may_clobber_ref_p_1): Likewise.
13649 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13650 (mark_all_reaching_defs_necessary_1): Likewise.
13651 (propagate_necessity): Likewise.
13652 (eliminate_unnecessary_stmts): Likewise.
13653 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13655 2014-04-28 Richard Biener <rguenther@suse.de>
13657 * tree-vrp.c (vrp_var_may_overflow): Remove.
13658 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13659 with overflow immediately bump to one before that value and
13660 let iteration figure out overflow status.
13662 2014-04-28 Richard Biener <rguenther@suse.de>
13664 * configure.ac: Do valgrind header checks unconditionally.
13665 Add --enable-valgrind-annotations.
13666 * system.h: Guard valgrind header inclusion with
13667 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13668 * alloc-pool.c (pool_alloc, pool_free): Use
13669 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13670 to guard possibly dead code.
13671 * config.in: Regenerated.
13672 * configure: Likewise.
13674 2014-04-28 Jeff Law <law@redhat.com>
13676 PR tree-optimization/60902
13677 * tree-ssa-threadedge.c
13678 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13679 over real defs when invalidating outputs from statements that do not
13680 produce useful outputs for threading.
13682 2014-04-28 Richard Biener <rguenther@suse.de>
13684 PR tree-optimization/60979
13685 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13686 SCOPs that end in a block with a successor with abnormal
13689 2014-04-28 Richard Biener <rguenther@suse.de>
13691 * tree-pass.h (execute_pass_list): Adjust prototype.
13692 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13693 (do_per_function): Change callback signature, push all actual
13694 work to the callbals.
13695 (do_per_function_toporder): Likewise.
13696 (execute_function_dump): Adjust.
13697 (execute_function_todo): Likewise.
13698 (clear_last_verified): Likewise.
13699 (verify_curr_properties): Likewise.
13700 (update_properties_after_pass): Likewise.
13701 (execute_pass_list_1): Split out from ...
13702 (execute_pass_list): ... here. Adjust.
13703 (execute_ipa_pass_list): Likewise.
13704 * cgraphunit.c (cgraph_add_new_function): Adjust.
13705 (analyze_function): Likewise.
13706 (expand_function): Likewise.
13707 * cgraph.c (release_function_body): Free dominance info
13708 here instead of asserting it was magically freed elsewhere.
13710 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13712 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13713 * configure: Regenerate.
13714 * config/sparc/sparc.opt (muser-mode): New option.
13715 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13717 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13718 * doc/invoke.texi (SPARC options): Document -muser-mode.
13720 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13722 * cselib.c (find_slot_memmode): Delete.
13723 (cselib_hasher): Change compare_type to a struct.
13724 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13726 (preserve_constants_and_equivs): Adjust for new compare_type.
13727 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13728 (wrap_constant): Delete.
13729 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13731 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13733 * doc/install.texi (Building with profile feedback): Remove
13736 2014-04-26 Tom de Vries <tom@codesourcery.com>
13738 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13741 2014-04-25 Cary Coutant <ccoutant@google.com>
13744 * dwarf2out.c (should_move_die_to_comdat): A type definition
13745 can contain a subprogram definition, but don't move it to a
13747 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13748 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13750 (clone_tree_hash): Rename to...
13751 (clone_tree_partial): ...this; change callers. Copy
13752 DW_TAG_subprogram DIEs as declarations.
13753 (copy_decls_walk): Don't copy children of a declaration into a
13756 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13759 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13762 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13764 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13765 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13767 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13770 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13772 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13774 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13776 PR tree-optimization/60930
13777 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13778 creating a multiply candidate by folding two constant
13779 multiplicands when the result overflows.
13781 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13783 PR tree-optimization/60960
13784 * tree-vect-generic.c (expand_vector_operation): Only call
13785 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13787 2014-04-25 Tom de Vries <tom@codesourcery.com>
13789 * expr.c (clobber_reg_mode): New function.
13790 * expr.h (clobber_reg): New function.
13792 2014-04-25 Tom de Vries <tom@codesourcery.com>
13794 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13797 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13798 Tom de Vries <tom@codesourcery.com>
13800 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13802 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13803 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13804 new argument to find_all_hard_reg_sets call.
13806 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13808 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13809 Use HOST_WIDE_INT_C for mask literal.
13810 (aarch_rev16_shleft_mask_imm_p): Likewise.
13812 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13815 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13817 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13819 PR preprocessor/56540
13820 * config/i386/i386-c.c (ix86_target_macros): Define
13821 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13823 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13825 * configure.ac (tga_func): Remove.
13826 (LIB_TLS_SPEC): Remove.
13827 * configure: Regenerate.
13828 * config.in: Regenerate.
13829 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13831 2014-04-25 Richard Biener <rguenther@suse.de>
13834 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13835 call stmt use/clobber sets during stmt walk instead of
13836 walking the possibly incomplete set of caller edges.
13838 2014-04-25 Richard Biener <rguenther@suse.de>
13841 * passes.c (apply_ipa_transforms): Inline into only caller ...
13842 (execute_one_pass): ... here. Properly bring in function
13843 bodies for nodes we want to apply IPA transforms to.
13845 2014-04-24 Cong Hou <congh@google.com>
13847 PR tree-optimization/60896
13848 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13849 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13850 (vect_mark_pattern_stmts): Set the def type of all statements in
13851 PATTERN_DEF_SEQ as vect_internal_def.
13853 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13855 * doc/extend.texi (PowerPC Built-in Functions): Document new
13856 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13857 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13859 * config/rs6000/predicates.md (const_0_to_3_operand): New
13860 predicate to match 0..3 integer constants.
13862 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13863 to support adding miscellaneous builtin functions.
13864 (BU_DFP_MISC_2): Likewise.
13865 (BU_P7_MISC_1): Likewise.
13866 (BU_P7_MISC_2): Likewise.
13867 (BU_P8V_MISC_3): Likewise.
13868 (BU_MISC_1): Likewise.
13869 (BU_MISC_2): Likewise.
13870 (DIVWE): Add extended divide builtin functions.
13871 (DIVWEO): Likewise.
13872 (DIVWEU): Likewise.
13873 (DIVWEUO): Likewise.
13875 (DIVDEO): Likewise.
13876 (DIVDEU): Likewise.
13877 (DIVDEUO): Likewise.
13878 (DXEX): Add decimal floating-point builtin functions.
13880 (DDEDPD): Likewise.
13881 (DDEDPDQ): Likewise.
13882 (DENBCD): Likewise.
13883 (DENBCDQ): Likewise.
13887 (DSCLIQ): Likewise.
13889 (DSCRIQ): Likewise.
13890 (CDTBCD): Add new BCD builtin functions.
13891 (CBCDTD): Likewise.
13892 (ADDG6S): Likewise.
13893 (BCDADD): Likewise.
13894 (BCDADD_LT): Likewise.
13895 (BCDADD_EQ): Likewise.
13896 (BCDADD_GT): Likewise.
13897 (BCDADD_OV): Likewise.
13898 (BCDSUB): Likewise.
13899 (BCDSUB_LT): Likewise.
13900 (BCDSUB_EQ): Likewise.
13901 (BCDSUB_GT): Likewise.
13902 (BCDSUB_OV): Likewise.
13903 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13904 (UNPACK_TD): Likewise.
13905 (PACK_TF): Likewise.
13906 (UNPACK_TF): Likewise.
13907 (UNPACK_TF_0): Likewise.
13908 (UNPACK_TF_1): Likewise.
13909 (PACK_V1TI): Likewise.
13910 (UNPACK_V1TI): Likewise.
13912 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13913 support for decimal floating point builtin functions.
13914 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13915 functions that take constant arguments.
13916 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13917 (rs6000_init_builtins): Setup long double, _Decimal64, and
13918 _Decimal128 types for new builtin functions.
13919 (builtin_function_type): Set the unsigned flags appropriately for
13920 the new builtin functions.
13921 (rs6000_opt_masks): Add support for decimal floating point builtin
13924 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13925 floating point builtin functions.
13926 (RS6000_BTM_COMMON): Likewise.
13927 (RS6000_BTI_long_double): Likewise.
13928 (RS6000_BTI_dfloat64): Likewise.
13929 (RS6000_BTI_dfloat128): Likewise.
13930 (long_double_type_internal_node): Likewise.
13931 (dfloat64_type_internal_node): Likewise.
13932 (dfloat128_type_internal_node): Likewise.
13934 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13935 2.07 bcd arithmetic instructions.
13936 (UNSPEC_BCDSUB): Likewise.
13937 (UNSPEC_BCD_OVERFLOW): Likewise.
13938 (UNSPEC_BCD_ADD_SUB): Likewise.
13939 (bcd_add_sub): Likewise.
13940 (BCD_TEST): Likewise.
13941 (bcd<bcd_add_sub>): Likewise.
13942 (bcd<bcd_add_sub>_test): Likewise.
13943 (bcd<bcd_add_sub>_test2): Likewise.
13944 (bcd<bcd_add_sub>_<code>): Likewise.
13945 (peephole2 for combined bcd ops): Likewise.
13947 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13948 decimal floating point builtin functions.
13949 (UNSPEC_DENBCD): Likewise.
13950 (UNSPEC_DXEX): Likewise.
13951 (UNSPEC_DIEX): Likewise.
13952 (UNSPEC_DSCLI): Likewise.
13953 (UNSPEC_DSCRI): Likewise.
13954 (D64_D128): Likewise.
13955 (dfp_suffix): Likewise.
13956 (dfp_ddedpd_<mode>): Likewise.
13957 (dfp_denbcd_<mode>): Likewise.
13958 (dfp_dxex_<mode>): Likewise.
13959 (dfp_diex_<mode>): Likewise.
13960 (dfp_dscli_<mode>): Likewise.
13961 (dfp_dscri_<mode>): Likewise.
13963 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13965 (UNSPEC_CDTBCD): Likewise.
13966 (UNSPEC_CBCDTD): Likewise.
13967 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13968 (UNSPEC_DIVEO): Likewise.
13969 (UNSPEC_DIVEU): Likewise.
13970 (UNSPEC_DIVEUO): Likewise.
13971 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13972 pack/unpack 128-bit types.
13973 (UNSPEC_PACK_128BIT): Likewise.
13974 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13975 (udiv<mode>3): Use idiv_ldiv mode attribute.
13976 (div<mode>3): Likewise.
13977 (addg6s): Add new BCD builtin functions.
13978 (cdtbcd): Likewise.
13979 (cbcdtd): Likewise.
13980 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13981 (div_extend): Likewise.
13982 (div<div_extend>_<mode>"): Likewise.
13983 (FP128_64): Add support for new builtin functions to pack/unpack
13985 (unpack<mode>): Likewise.
13986 (unpacktf_0): Likewise.
13987 (unpacktf_1): Likewise.
13988 (unpack<mode>_dm): Likewise.
13989 (unpack<mode>_nodm): Likewise.
13990 (pack<mode>): Likewise.
13991 (unpackv1ti): Likewise.
13992 (packv1ti): Likewise.
13994 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13996 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13999 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14001 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14002 * gimplify.c (omp_is_private): Change last argument's type to int.
14003 Only diagnose lastprivate if the simd argument is 1, only diagnose
14004 linear if the simd argument is 2.
14005 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14006 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14007 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14008 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14009 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14010 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14011 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14012 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14013 * tree-nested.c (convert_nonlocal_omp_clauses,
14014 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14016 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14019 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14022 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14024 * flag-types.h (enum ivar_visibility): Add.
14026 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14028 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14029 function * argument.
14031 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14033 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14035 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14036 Tom de Vries <tom@codesourcery.com>
14038 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14039 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14041 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14042 * emit-rtl.c (try_split): Same.
14044 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14045 Tom de Vries <tom@codesourcery.com>
14047 * common.opt (fuse-caller-save): New option.
14049 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14051 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14052 elements for big-endian.
14054 2014-04-24 Richard Biener <rguenther@suse.de>
14056 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14057 during TER and instead use the sepops interface for expanding
14058 non-GIMPLE_SINGLE_RHS.
14060 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14062 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14063 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14065 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14067 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14068 assembler 64-bit option.
14069 * configure: Regenerate.
14071 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14073 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14074 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14075 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14076 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14077 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14079 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14081 * config/aarch64/aarch64-builtins.c
14082 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14083 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14084 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14085 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14087 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14088 (Vrevsuff): New mode attribute.
14090 2014-04-24 Terry Guo <terry.guo@arm.com>
14092 * config/arm/arm.h (machine_function): Define variable
14093 after_arm_reorg here.
14094 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14095 (arm_split_constant): Update the way to access variable
14097 (arm_reorg): Ditto.
14098 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14100 2014-04-23 Tom de Vries <tom@codesourcery.com>
14102 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14104 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14106 * is-a.h: Update comments to reflect the following changes to the
14107 "pointerness" of the API, making the template parameter match the
14108 return type, allowing use of is-a.h with typedefs of pointers.
14109 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14110 that the return type matches the parameter to the is_a_helper.
14112 (dyn_cast): Likewise.
14114 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14115 pointer from the is-a.h API.
14117 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14118 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14120 (is_a_helper <varpool_node>::test): Likewise, convert to...
14121 (is_a_helper <varpool_node *>::test): ...this.
14123 (varpool_first_variable): Update for removal of implicit pointer
14124 from the is-a.h API.
14125 (varpool_next_variable): Likewise.
14126 (varpool_first_static_initializer): Likewise.
14127 (varpool_next_static_initializer): Likewise.
14128 (varpool_first_defined_variable): Likewise.
14129 (varpool_next_defined_variable): Likewise.
14130 (cgraph_first_defined_function): Likewise.
14131 (cgraph_next_defined_function): Likewise.
14132 (cgraph_first_function): Likewise.
14133 (cgraph_next_function): Likewise.
14134 (cgraph_first_function_with_gimple_body): Likewise.
14135 (cgraph_next_function_with_gimple_body): Likewise.
14136 (cgraph_alias_target): Likewise.
14137 (varpool_alias_target): Likewise.
14138 (cgraph_function_or_thunk_node): Likewise.
14139 (varpool_variable_node): Likewise.
14140 (symtab_real_symbol_p): Likewise.
14141 * cgraphunit.c (referred_to_p): Likewise.
14142 (analyze_functions): Likewise.
14143 (handle_alias_pairs): Likewise.
14144 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14145 * gimple-ssa.h (gimple_vuse_op): Likewise.
14146 (gimple_vdef_op): Likewise.
14147 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14148 * gimple.c (gimple_build_asm_1): Likewise.
14149 (gimple_build_try): Likewise.
14150 (gimple_build_resx): Likewise.
14151 (gimple_build_eh_dispatch): Likewise.
14152 (gimple_build_omp_for): Likewise.
14153 (gimple_omp_for_set_clauses): Likewise.
14155 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14156 (is_a_helper <gimple_statement_asm *>::test): ...this.
14157 (is_a_helper <gimple_statement_bind>::test): Convert to...
14158 (is_a_helper <gimple_statement_bind *>::test): ...this.
14159 (is_a_helper <gimple_statement_call>::test): Convert to...
14160 (is_a_helper <gimple_statement_call *>::test): ...this.
14161 (is_a_helper <gimple_statement_catch>::test): Convert to...
14162 (is_a_helper <gimple_statement_catch *>::test): ...this.
14163 (is_a_helper <gimple_statement_resx>::test): Convert to...
14164 (is_a_helper <gimple_statement_resx *>::test): ...this.
14165 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14166 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14167 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14168 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14169 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14170 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14171 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14172 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14173 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14174 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14175 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14176 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14177 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14178 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14179 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14180 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14181 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14182 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14183 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14184 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14185 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14186 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14187 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14188 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14189 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14190 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14191 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14192 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14193 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14194 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14195 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14196 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14197 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14198 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14199 (is_a_helper <gimple_statement_phi>::test): Convert to...
14200 (is_a_helper <gimple_statement_phi *>::test): ...this.
14201 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14202 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14203 (is_a_helper <gimple_statement_try>::test): Convert to...
14204 (is_a_helper <gimple_statement_try *>::test): ...this.
14205 (is_a_helper <gimple_statement_wce>::test): Convert to...
14206 (is_a_helper <gimple_statement_wce *>::test): ...this.
14207 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14208 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14209 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14210 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14211 (is_a_helper <const gimple_statement_call>::test): Convert to...
14212 (is_a_helper <const gimple_statement_call *>::test): ...this.
14213 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14214 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14215 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14216 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14217 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14218 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14219 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14220 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14221 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14223 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14225 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14227 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14229 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14230 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14231 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14233 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14234 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14236 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14237 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14238 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14239 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14240 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14241 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14243 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14244 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14245 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14246 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14248 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14249 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14250 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14251 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14252 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14253 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14254 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14255 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14256 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14257 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14258 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14259 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14260 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14261 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14262 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14263 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14265 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14267 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14268 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14270 (gimple_use_ops): Update for removal of implicit pointer from the
14272 (gimple_set_use_ops): Likewise.
14273 (gimple_vuse): Likewise.
14274 (gimple_vdef): Likewise.
14275 (gimple_vuse_ptr): Likewise.
14276 (gimple_vdef_ptr): Likewise.
14277 (gimple_set_vuse): Likewise.
14278 (gimple_set_vdef): Likewise.
14279 (gimple_omp_return_set_lhs): Likewise.
14280 (gimple_omp_return_lhs): Likewise.
14281 (gimple_omp_return_lhs_ptr): Likewise.
14282 (gimple_call_fntype): Likewise.
14283 (gimple_call_set_fntype): Likewise.
14284 (gimple_call_set_internal_fn): Likewise.
14285 (gimple_call_use_set): Likewise.
14286 (gimple_call_clobber_set): Likewise.
14287 (gimple_bind_vars): Likewise.
14288 (gimple_bind_set_vars): Likewise.
14289 (gimple_bind_body_ptr): Likewise.
14290 (gimple_bind_set_body): Likewise.
14291 (gimple_bind_add_stmt): Likewise.
14292 (gimple_bind_block): Likewise.
14293 (gimple_bind_set_block): Likewise.
14294 (gimple_asm_ninputs): Likewise.
14295 (gimple_asm_noutputs): Likewise.
14296 (gimple_asm_nclobbers): Likewise.
14297 (gimple_asm_nlabels): Likewise.
14298 (gimple_asm_input_op): Likewise.
14299 (gimple_asm_input_op_ptr): Likewise.
14300 (gimple_asm_output_op): Likewise.
14301 (gimple_asm_output_op_ptr): Likewise.
14302 (gimple_asm_set_output_op): Likewise.
14303 (gimple_asm_clobber_op): Likewise.
14304 (gimple_asm_set_clobber_op): Likewise.
14305 (gimple_asm_label_op): Likewise.
14306 (gimple_asm_set_label_op): Likewise.
14307 (gimple_asm_string): Likewise.
14308 (gimple_catch_types): Likewise.
14309 (gimple_catch_types_ptr): Likewise.
14310 (gimple_catch_handler_ptr): Likewise.
14311 (gimple_catch_set_types): Likewise.
14312 (gimple_catch_set_handler): Likewise.
14313 (gimple_eh_filter_types): Likewise.
14314 (gimple_eh_filter_types_ptr): Likewise.
14315 (gimple_eh_filter_failure_ptr): Likewise.
14316 (gimple_eh_filter_set_types): Likewise.
14317 (gimple_eh_filter_set_failure): Likewise.
14318 (gimple_eh_must_not_throw_fndecl): Likewise.
14319 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14320 (gimple_eh_else_n_body_ptr): Likewise.
14321 (gimple_eh_else_e_body_ptr): Likewise.
14322 (gimple_eh_else_set_n_body): Likewise.
14323 (gimple_eh_else_set_e_body): Likewise.
14324 (gimple_try_eval_ptr): Likewise.
14325 (gimple_try_cleanup_ptr): Likewise.
14326 (gimple_try_set_eval): Likewise.
14327 (gimple_try_set_cleanup): Likewise.
14328 (gimple_wce_cleanup_ptr): Likewise.
14329 (gimple_wce_set_cleanup): Likewise.
14330 (gimple_phi_capacity): Likewise.
14331 (gimple_phi_num_args): Likewise.
14332 (gimple_phi_result): Likewise.
14333 (gimple_phi_result_ptr): Likewise.
14334 (gimple_phi_set_result): Likewise.
14335 (gimple_phi_arg): Likewise.
14336 (gimple_phi_set_arg): Likewise.
14337 (gimple_resx_region): Likewise.
14338 (gimple_resx_set_region): Likewise.
14339 (gimple_eh_dispatch_region): Likewise.
14340 (gimple_eh_dispatch_set_region): Likewise.
14341 (gimple_omp_critical_name): Likewise.
14342 (gimple_omp_critical_name_ptr): Likewise.
14343 (gimple_omp_critical_set_name): Likewise.
14344 (gimple_omp_for_clauses): Likewise.
14345 (gimple_omp_for_clauses_ptr): Likewise.
14346 (gimple_omp_for_set_clauses): Likewise.
14347 (gimple_omp_for_collapse): Likewise.
14348 (gimple_omp_for_index): Likewise.
14349 (gimple_omp_for_index_ptr): Likewise.
14350 (gimple_omp_for_set_index): Likewise.
14351 (gimple_omp_for_initial): Likewise.
14352 (gimple_omp_for_initial_ptr): Likewise.
14353 (gimple_omp_for_set_initial): Likewise.
14354 (gimple_omp_for_final): Likewise.
14355 (gimple_omp_for_final_ptr): Likewise.
14356 (gimple_omp_for_set_final): Likewise.
14357 (gimple_omp_for_incr): Likewise.
14358 (gimple_omp_for_incr_ptr): Likewise.
14359 (gimple_omp_for_set_incr): Likewise.
14360 (gimple_omp_for_pre_body_ptr): Likewise.
14361 (gimple_omp_for_set_pre_body): Likewise.
14362 (gimple_omp_parallel_clauses): Likewise.
14363 (gimple_omp_parallel_clauses_ptr): Likewise.
14364 (gimple_omp_parallel_set_clauses): Likewise.
14365 (gimple_omp_parallel_child_fn): Likewise.
14366 (gimple_omp_parallel_child_fn_ptr): Likewise.
14367 (gimple_omp_parallel_set_child_fn): Likewise.
14368 (gimple_omp_parallel_data_arg): Likewise.
14369 (gimple_omp_parallel_data_arg_ptr): Likewise.
14370 (gimple_omp_parallel_set_data_arg): Likewise.
14371 (gimple_omp_task_clauses): Likewise.
14372 (gimple_omp_task_clauses_ptr): Likewise.
14373 (gimple_omp_task_set_clauses): Likewise.
14374 (gimple_omp_task_child_fn): Likewise.
14375 (gimple_omp_task_child_fn_ptr): Likewise.
14376 (gimple_omp_task_set_child_fn): Likewise.
14377 (gimple_omp_task_data_arg): Likewise.
14378 (gimple_omp_task_data_arg_ptr): Likewise.
14379 (gimple_omp_task_set_data_arg): Likewise.
14380 (gimple_omp_taskreg_clauses): Likewise.
14381 (gimple_omp_taskreg_clauses_ptr): Likewise.
14382 (gimple_omp_taskreg_set_clauses): Likewise.
14383 (gimple_omp_taskreg_child_fn): Likewise.
14384 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14385 (gimple_omp_taskreg_set_child_fn): Likewise.
14386 (gimple_omp_taskreg_data_arg): Likewise.
14387 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14388 (gimple_omp_taskreg_set_data_arg): Likewise.
14389 (gimple_omp_task_copy_fn): Likewise.
14390 (gimple_omp_task_copy_fn_ptr): Likewise.
14391 (gimple_omp_task_set_copy_fn): Likewise.
14392 (gimple_omp_task_arg_size): Likewise.
14393 (gimple_omp_task_arg_size_ptr): Likewise.
14394 (gimple_omp_task_set_arg_size): Likewise.
14395 (gimple_omp_task_arg_align): Likewise.
14396 (gimple_omp_task_arg_align_ptr): Likewise.
14397 (gimple_omp_task_set_arg_align): Likewise.
14398 (gimple_omp_single_clauses): Likewise.
14399 (gimple_omp_single_clauses_ptr): Likewise.
14400 (gimple_omp_single_set_clauses): Likewise.
14401 (gimple_omp_target_clauses): Likewise.
14402 (gimple_omp_target_clauses_ptr): Likewise.
14403 (gimple_omp_target_set_clauses): Likewise.
14404 (gimple_omp_target_child_fn): Likewise.
14405 (gimple_omp_target_child_fn_ptr): Likewise.
14406 (gimple_omp_target_set_child_fn): Likewise.
14407 (gimple_omp_target_data_arg): Likewise.
14408 (gimple_omp_target_data_arg_ptr): Likewise.
14409 (gimple_omp_target_set_data_arg): Likewise.
14410 (gimple_omp_teams_clauses): Likewise.
14411 (gimple_omp_teams_clauses_ptr): Likewise.
14412 (gimple_omp_teams_set_clauses): Likewise.
14413 (gimple_omp_sections_clauses): Likewise.
14414 (gimple_omp_sections_clauses_ptr): Likewise.
14415 (gimple_omp_sections_set_clauses): Likewise.
14416 (gimple_omp_sections_control): Likewise.
14417 (gimple_omp_sections_control_ptr): Likewise.
14418 (gimple_omp_sections_set_control): Likewise.
14419 (gimple_omp_for_set_cond): Likewise.
14420 (gimple_omp_for_cond): Likewise.
14421 (gimple_omp_atomic_store_set_val): Likewise.
14422 (gimple_omp_atomic_store_val): Likewise.
14423 (gimple_omp_atomic_store_val_ptr): Likewise.
14424 (gimple_omp_atomic_load_set_lhs): Likewise.
14425 (gimple_omp_atomic_load_lhs): Likewise.
14426 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14427 (gimple_omp_atomic_load_set_rhs): Likewise.
14428 (gimple_omp_atomic_load_rhs): Likewise.
14429 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14430 (gimple_omp_continue_control_def): Likewise.
14431 (gimple_omp_continue_control_def_ptr): Likewise.
14432 (gimple_omp_continue_set_control_def): Likewise.
14433 (gimple_omp_continue_control_use): Likewise.
14434 (gimple_omp_continue_control_use_ptr): Likewise.
14435 (gimple_omp_continue_set_control_use): Likewise.
14436 (gimple_transaction_body_ptr): Likewise.
14437 (gimple_transaction_label): Likewise.
14438 (gimple_transaction_label_ptr): Likewise.
14439 (gimple_transaction_set_body): Likewise.
14440 (gimple_transaction_set_label): Likewise.
14442 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14443 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14444 * ipa-ref.c (ipa_record_reference): Likewise.
14445 * ipa-reference.c (analyze_function): Likewise.
14446 (ipa_reference_write_optimization_summary): Likewise.
14447 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14448 (address_taken_from_non_vtable_p): Likewise.
14449 (comdat_can_be_unshared_p_1): Likewise.
14450 * lto-cgraph.c (lto_output_ref): Likewise.
14451 (add_references): Likewise.
14452 (compute_ltrans_boundary): Likewise.
14453 (output_symtab): Likewise.
14454 (input_ref): Likewise.
14455 (input_cgraph_1): Likewise.
14456 (output_cgraph_opt_summary): Likewise.
14457 * lto-streamer-out.c (lto_output): Likewise.
14458 (output_symbol_p): Likewise.
14459 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14460 (lsei_start_function_in_partition): Likewise.
14461 (lsei_next_variable_in_partition): Likewise.
14462 (lsei_start_variable_in_partition): Likewise.
14463 * symtab.c (insert_to_assembler_name_hash): Likewise.
14464 (unlink_from_assembler_name_hash): Likewise.
14465 (symtab_unregister_node): Likewise.
14466 (symtab_remove_node): Likewise.
14467 (dump_symtab_node): Likewise.
14468 (verify_symtab_base): Likewise.
14469 (verify_symtab_node): Likewise.
14470 (symtab_make_decl_local): Likewise.
14471 (symtab_alias_ultimate_target): Likewise.
14472 (symtab_resolve_alias): Likewise.
14473 (symtab_get_symbol_partitioning_class): Likewise.
14474 * tree-phinodes.c (allocate_phi_node): Likewise.
14475 (reserve_phi_args_for_new_edge): Likewise.
14476 (remove_phi_args): Likewise.
14477 * varpool.c (varpool_node_for_asm): Likewise.
14478 (varpool_remove_unreferenced_decls): Likewise.
14480 2014-04-23 Jeff Law <law@redhat.com>
14482 PR tree-optimization/60902
14483 * tree-ssa-threadedge.c
14484 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14485 invalidate outputs from statements that do not produce useful
14486 outputs for threading.
14488 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14490 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14491 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14492 machine descriptions for Stack Smashing Protector.
14494 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14496 * aarch64.md (<optab>_rol<mode>3): New pattern.
14497 (<optab>_rolsi3_uxtw): Likewise.
14498 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14500 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14502 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14503 (arm_cortex_a12_tune): Likewise.
14505 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14507 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14509 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14511 * config/arm/arm.md (arm_rev16si2): New pattern.
14512 (arm_rev16si2_alt): Likewise.
14513 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14515 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14517 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14518 (rev16<mode>2_alt): Likewise.
14519 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14520 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14521 (aarch_rev16_shleft_mask_imm_p): Likewise.
14522 (aarch_rev16_p_1): Likewise.
14523 (aarch_rev16_p): Likewise.
14524 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14525 (aarch_rev16_shright_mask_imm_p): Likewise.
14526 (aarch_rev16_shleft_mask_imm_p): Likewise.
14528 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14530 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14531 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14533 (cortex_a53_extra_costs): Likewise.
14534 (cortex_a57_extra_costs): Likewise.
14535 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14536 (cortexa7_extra_costs): Likewise.
14537 (cortexa8_extra_costs): Likewise.
14538 (cortexa12_extra_costs): Likewise.
14539 (cortexa15_extra_costs): Likewise.
14540 (v7m_extra_costs): Likewise.
14541 (arm_new_rtx_costs): Handle BSWAP.
14543 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14545 * config/arm/arm.c (cortexa8_extra_costs): New table.
14546 (arm_cortex_a8_tune): New tuning struct.
14547 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14549 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14551 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14553 2014-04-23 Richard Biener <rguenther@suse.de>
14555 * Makefile.in (OBJS): Remove loop-unswitch.o.
14556 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14557 * passes.def (pass_rtl_unswitch): Likewise.
14558 * loop-init.c (gate_rtl_unswitch): Likewise.
14559 (rtl_unswitch): Likewise.
14560 (pass_data_rtl_unswitch): Likewise.
14561 (pass_rtl_unswitch): Likewise.
14562 (make_pass_rtl_unswitch): Likewise.
14563 * rtl.h (reversed_condition): Likewise.
14564 (compare_and_jump_seq): Likewise.
14565 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14567 * loop-unroll.c (compare_and_jump_seq): Likewise.
14569 2014-04-23 Richard Biener <rguenther@suse.de>
14571 PR tree-optimization/60903
14572 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14573 commented code block.
14574 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14575 loop flags to newly created BBs and edges.
14577 2014-04-23 Nick Clifton <nickc@redhat.com>
14579 * config/msp430/msp430.c (msp430_handle_option): Move function
14581 (msp430_option_override): Simplify mcu and mcpu option handling.
14582 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14583 support for -mhwmult command line option.
14584 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14585 -mhwmult command line option.
14586 (msp430_hwmult_enabled): Delete.
14587 (msp43o_output_labelref): Add support for -mhwmult command line option.
14588 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14589 (umulsidi3): Likewise.
14590 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14591 (mcpu, mlarge, msmall): Likewise.
14592 (mhwmult): New option.
14593 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14595 (msp430_is_f5_mcu): Remove prototype.
14596 (msp430_use_f5_series_hwmult): Add prototype.
14597 * config/msp430/msp430-opts.h: New file.
14598 * common/config/msp430: New directory.
14599 * common/config/msp430/msp430-common.c: New file.
14600 * config.gcc (msp430): Remove target_has_targetm_common.
14601 * doc/invoke.texi: Document -mhwmult command line option.
14603 2014-04-23 Nick Clifton <nickc@redhat.com>
14605 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14606 default-manifest.o if it can be found in the search path.
14607 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14609 2014-04-23 Terry Guo <terry.guo@arm.com>
14611 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14613 2014-04-23 Richard Biener <rguenther@suse.de>
14615 PR middle-end/60895
14616 * tree-inline.c (declare_return_variable): Use mark_addressable.
14618 2014-04-23 Richard Biener <rguenther@suse.de>
14620 PR middle-end/60891
14621 * loop-init.c (loop_optimizer_init): Make sure to apply
14622 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14624 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14627 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14629 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14630 if flag_sanitize_undefined_trap_on_error.
14631 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14632 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14633 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14634 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14635 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14636 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14637 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14638 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14639 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14640 * ubsan.c (ubsan_instrument_unreachable): Return
14641 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14642 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14643 if flag_sanitize_undefined_trap_on_error and
14644 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14645 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14646 instrument_bool_enum_load): Emit __builtin_trap () if
14647 flag_sanitize_undefined_trap_on_error and
14648 __builtin_handle_*_abort () if !flag_sanitize_recover.
14649 * doc/invoke.texi (-fsanitize-recover,
14650 -fsanitize-undefined-trap-on-error): Document.
14652 2014-04-22 Christian Bruel <christian.bruel@st.com>
14654 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14655 Force immediates to SImode.
14657 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14659 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14660 (lroundsfsi2): New.
14661 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14662 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14663 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14664 (nios2_fpu_insn): Add entry for round.
14665 (N2FPU_NO_ERRNO_P): Define.
14666 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14668 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14670 2014-04-22 Richard Henderson <rth@redhat.com>
14672 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14673 (add<GPI>3_compare0): Remove leading * from name.
14674 (add<GPI>3_carryin): Likewise.
14675 (sub<GPI>3_compare0): Likewise.
14676 (sub<GPI>3_carryin): Likewise.
14677 (<su_optab>mulditi3): New expander.
14678 (multi3): New expander.
14679 (madd<GPI>): Remove leading * from name.
14681 2014-04-22 Martin Jambor <mjambor@suse.cz>
14683 * cgraphclones.c (cgraph_function_versioning): Copy
14684 ipa_transforms_to_apply instead of asserting it is empty.
14686 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14689 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14690 on count_exp to get mode.
14692 2014-04-22 Andrew Pinski <apinski@cavium.com>
14694 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14695 Handle TLS for ILP32.
14696 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14697 (tlsie_small_<mode>): this and handle PTR.
14698 (tlsie_small_sidi): New pattern.
14699 (tlsle_small): Change to an expand to handle ILP32.
14700 (tlsle_small_<mode>): New pattern.
14701 (tlsdesc_small): Rename to ...
14702 (tlsdesc_small_<mode>): this and handle PTR.
14704 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14706 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14708 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14710 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14711 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14712 (aarch64_types_signed_poly_qualifiers): Likewise.
14713 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14714 (aarch64_types_poly_signed_qualifiers): Likewise.
14715 (TYPES_REINTERP_SS): Type macro added.
14716 (TYPES_REINTERP_SU): Likewise.
14717 (TYPES_REINTERP_SP): Likewise.
14718 (TYPES_REINTERP_US): Likewise.
14719 (TYPES_REINTERP_PS): Likewise.
14720 (aarch64_fold_builtin): New expression folding added.
14721 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14722 Declarations removed.
14723 (REINTERP_SS): Declarations added.
14724 (REINTERP_US): Likewise.
14725 (REINTERP_PS): Likewise.
14726 (REINTERP_SU): Likewise.
14727 (REINTERP_SP): Likewise.
14728 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14729 (vreinterpretq_p8_f64): Likewise.
14730 (vreinterpret_p16_f64): Likewise.
14731 (vreinterpretq_p16_f64): Likewise.
14732 (vreinterpret_f32_f64): Likewise.
14733 (vreinterpretq_f32_f64): Likewise.
14734 (vreinterpret_f64_f32): Likewise.
14735 (vreinterpret_f64_p8): Likewise.
14736 (vreinterpret_f64_p16): Likewise.
14737 (vreinterpret_f64_s8): Likewise.
14738 (vreinterpret_f64_s16): Likewise.
14739 (vreinterpret_f64_s32): Likewise.
14740 (vreinterpret_f64_s64): Likewise.
14741 (vreinterpret_f64_u8): Likewise.
14742 (vreinterpret_f64_u16): Likewise.
14743 (vreinterpret_f64_u32): Likewise.
14744 (vreinterpret_f64_u64): Likewise.
14745 (vreinterpretq_f64_f32): Likewise.
14746 (vreinterpretq_f64_p8): Likewise.
14747 (vreinterpretq_f64_p16): Likewise.
14748 (vreinterpretq_f64_s8): Likewise.
14749 (vreinterpretq_f64_s16): Likewise.
14750 (vreinterpretq_f64_s32): Likewise.
14751 (vreinterpretq_f64_s64): Likewise.
14752 (vreinterpretq_f64_u8): Likewise.
14753 (vreinterpretq_f64_u16): Likewise.
14754 (vreinterpretq_f64_u32): Likewise.
14755 (vreinterpretq_f64_u64): Likewise.
14756 (vreinterpret_s64_f64): Likewise.
14757 (vreinterpretq_s64_f64): Likewise.
14758 (vreinterpret_u64_f64): Likewise.
14759 (vreinterpretq_u64_f64): Likewise.
14760 (vreinterpret_s8_f64): Likewise.
14761 (vreinterpretq_s8_f64): Likewise.
14762 (vreinterpret_s16_f64): Likewise.
14763 (vreinterpretq_s16_f64): Likewise.
14764 (vreinterpret_s32_f64): Likewise.
14765 (vreinterpretq_s32_f64): Likewise.
14766 (vreinterpret_u8_f64): Likewise.
14767 (vreinterpretq_u8_f64): Likewise.
14768 (vreinterpret_u16_f64): Likewise.
14769 (vreinterpretq_u16_f64): Likewise.
14770 (vreinterpret_u32_f64): Likewise.
14771 (vreinterpretq_u32_f64): Likewise.
14773 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14775 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14776 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14777 (vreinterpret_p8_s8): Likewise.
14778 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14779 (vreinterpret_p8_s16): Likewise.
14780 (vreinterpret_p8_s32): Likewise.
14781 (vreinterpret_p8_s64): Likewise.
14782 (vreinterpret_p8_f32): Likewise.
14783 (vreinterpret_p8_u8): Likewise.
14784 (vreinterpret_p8_u16): Likewise.
14785 (vreinterpret_p8_u32): Likewise.
14786 (vreinterpret_p8_u64): Likewise.
14787 (vreinterpret_p8_p16): Likewise.
14788 (vreinterpretq_p8_s8): Likewise.
14789 (vreinterpretq_p8_s16): Likewise.
14790 (vreinterpretq_p8_s32): Likewise.
14791 (vreinterpretq_p8_s64): Likewise.
14792 (vreinterpretq_p8_f32): Likewise.
14793 (vreinterpretq_p8_u8): Likewise.
14794 (vreinterpretq_p8_u16): Likewise.
14795 (vreinterpretq_p8_u32): Likewise.
14796 (vreinterpretq_p8_u64): Likewise.
14797 (vreinterpretq_p8_p16): Likewise.
14798 (vreinterpret_p16_s8): Likewise.
14799 (vreinterpret_p16_s16): Likewise.
14800 (vreinterpret_p16_s32): Likewise.
14801 (vreinterpret_p16_s64): Likewise.
14802 (vreinterpret_p16_f32): Likewise.
14803 (vreinterpret_p16_u8): Likewise.
14804 (vreinterpret_p16_u16): Likewise.
14805 (vreinterpret_p16_u32): Likewise.
14806 (vreinterpret_p16_u64): Likewise.
14807 (vreinterpret_p16_p8): Likewise.
14808 (vreinterpretq_p16_s8): Likewise.
14809 (vreinterpretq_p16_s16): Likewise.
14810 (vreinterpretq_p16_s32): Likewise.
14811 (vreinterpretq_p16_s64): Likewise.
14812 (vreinterpretq_p16_f32): Likewise.
14813 (vreinterpretq_p16_u8): Likewise.
14814 (vreinterpretq_p16_u16): Likewise.
14815 (vreinterpretq_p16_u32): Likewise.
14816 (vreinterpretq_p16_u64): Likewise.
14817 (vreinterpretq_p16_p8): Likewise.
14818 (vreinterpret_f32_s8): Likewise.
14819 (vreinterpret_f32_s16): Likewise.
14820 (vreinterpret_f32_s32): Likewise.
14821 (vreinterpret_f32_s64): Likewise.
14822 (vreinterpret_f32_u8): Likewise.
14823 (vreinterpret_f32_u16): Likewise.
14824 (vreinterpret_f32_u32): Likewise.
14825 (vreinterpret_f32_u64): Likewise.
14826 (vreinterpret_f32_p8): Likewise.
14827 (vreinterpret_f32_p16): Likewise.
14828 (vreinterpretq_f32_s8): Likewise.
14829 (vreinterpretq_f32_s16): Likewise.
14830 (vreinterpretq_f32_s32): Likewise.
14831 (vreinterpretq_f32_s64): Likewise.
14832 (vreinterpretq_f32_u8): Likewise.
14833 (vreinterpretq_f32_u16): Likewise.
14834 (vreinterpretq_f32_u32): Likewise.
14835 (vreinterpretq_f32_u64): Likewise.
14836 (vreinterpretq_f32_p8): Likewise.
14837 (vreinterpretq_f32_p16): Likewise.
14838 (vreinterpret_s64_s8): Likewise.
14839 (vreinterpret_s64_s16): Likewise.
14840 (vreinterpret_s64_s32): Likewise.
14841 (vreinterpret_s64_f32): Likewise.
14842 (vreinterpret_s64_u8): Likewise.
14843 (vreinterpret_s64_u16): Likewise.
14844 (vreinterpret_s64_u32): Likewise.
14845 (vreinterpret_s64_u64): Likewise.
14846 (vreinterpret_s64_p8): Likewise.
14847 (vreinterpret_s64_p16): Likewise.
14848 (vreinterpretq_s64_s8): Likewise.
14849 (vreinterpretq_s64_s16): Likewise.
14850 (vreinterpretq_s64_s32): Likewise.
14851 (vreinterpretq_s64_f32): Likewise.
14852 (vreinterpretq_s64_u8): Likewise.
14853 (vreinterpretq_s64_u16): Likewise.
14854 (vreinterpretq_s64_u32): Likewise.
14855 (vreinterpretq_s64_u64): Likewise.
14856 (vreinterpretq_s64_p8): Likewise.
14857 (vreinterpretq_s64_p16): Likewise.
14858 (vreinterpret_u64_s8): Likewise.
14859 (vreinterpret_u64_s16): Likewise.
14860 (vreinterpret_u64_s32): Likewise.
14861 (vreinterpret_u64_s64): Likewise.
14862 (vreinterpret_u64_f32): Likewise.
14863 (vreinterpret_u64_u8): Likewise.
14864 (vreinterpret_u64_u16): Likewise.
14865 (vreinterpret_u64_u32): Likewise.
14866 (vreinterpret_u64_p8): Likewise.
14867 (vreinterpret_u64_p16): Likewise.
14868 (vreinterpretq_u64_s8): Likewise.
14869 (vreinterpretq_u64_s16): Likewise.
14870 (vreinterpretq_u64_s32): Likewise.
14871 (vreinterpretq_u64_s64): Likewise.
14872 (vreinterpretq_u64_f32): Likewise.
14873 (vreinterpretq_u64_u8): Likewise.
14874 (vreinterpretq_u64_u16): Likewise.
14875 (vreinterpretq_u64_u32): Likewise.
14876 (vreinterpretq_u64_p8): Likewise.
14877 (vreinterpretq_u64_p16): Likewise.
14878 (vreinterpret_s8_s16): Likewise.
14879 (vreinterpret_s8_s32): Likewise.
14880 (vreinterpret_s8_s64): Likewise.
14881 (vreinterpret_s8_f32): Likewise.
14882 (vreinterpret_s8_u8): Likewise.
14883 (vreinterpret_s8_u16): Likewise.
14884 (vreinterpret_s8_u32): Likewise.
14885 (vreinterpret_s8_u64): Likewise.
14886 (vreinterpret_s8_p8): Likewise.
14887 (vreinterpret_s8_p16): Likewise.
14888 (vreinterpretq_s8_s16): Likewise.
14889 (vreinterpretq_s8_s32): Likewise.
14890 (vreinterpretq_s8_s64): Likewise.
14891 (vreinterpretq_s8_f32): Likewise.
14892 (vreinterpretq_s8_u8): Likewise.
14893 (vreinterpretq_s8_u16): Likewise.
14894 (vreinterpretq_s8_u32): Likewise.
14895 (vreinterpretq_s8_u64): Likewise.
14896 (vreinterpretq_s8_p8): Likewise.
14897 (vreinterpretq_s8_p16): Likewise.
14898 (vreinterpret_s16_s8): Likewise.
14899 (vreinterpret_s16_s32): Likewise.
14900 (vreinterpret_s16_s64): Likewise.
14901 (vreinterpret_s16_f32): Likewise.
14902 (vreinterpret_s16_u8): Likewise.
14903 (vreinterpret_s16_u16): Likewise.
14904 (vreinterpret_s16_u32): Likewise.
14905 (vreinterpret_s16_u64): Likewise.
14906 (vreinterpret_s16_p8): Likewise.
14907 (vreinterpret_s16_p16): Likewise.
14908 (vreinterpretq_s16_s8): Likewise.
14909 (vreinterpretq_s16_s32): Likewise.
14910 (vreinterpretq_s16_s64): Likewise.
14911 (vreinterpretq_s16_f32): Likewise.
14912 (vreinterpretq_s16_u8): Likewise.
14913 (vreinterpretq_s16_u16): Likewise.
14914 (vreinterpretq_s16_u32): Likewise.
14915 (vreinterpretq_s16_u64): Likewise.
14916 (vreinterpretq_s16_p8): Likewise.
14917 (vreinterpretq_s16_p16): Likewise.
14918 (vreinterpret_s32_s8): Likewise.
14919 (vreinterpret_s32_s16): Likewise.
14920 (vreinterpret_s32_s64): Likewise.
14921 (vreinterpret_s32_f32): Likewise.
14922 (vreinterpret_s32_u8): Likewise.
14923 (vreinterpret_s32_u16): Likewise.
14924 (vreinterpret_s32_u32): Likewise.
14925 (vreinterpret_s32_u64): Likewise.
14926 (vreinterpret_s32_p8): Likewise.
14927 (vreinterpret_s32_p16): Likewise.
14928 (vreinterpretq_s32_s8): Likewise.
14929 (vreinterpretq_s32_s16): Likewise.
14930 (vreinterpretq_s32_s64): Likewise.
14931 (vreinterpretq_s32_f32): Likewise.
14932 (vreinterpretq_s32_u8): Likewise.
14933 (vreinterpretq_s32_u16): Likewise.
14934 (vreinterpretq_s32_u32): Likewise.
14935 (vreinterpretq_s32_u64): Likewise.
14936 (vreinterpretq_s32_p8): Likewise.
14937 (vreinterpretq_s32_p16): Likewise.
14938 (vreinterpret_u8_s8): Likewise.
14939 (vreinterpret_u8_s16): Likewise.
14940 (vreinterpret_u8_s32): Likewise.
14941 (vreinterpret_u8_s64): Likewise.
14942 (vreinterpret_u8_f32): Likewise.
14943 (vreinterpret_u8_u16): Likewise.
14944 (vreinterpret_u8_u32): Likewise.
14945 (vreinterpret_u8_u64): Likewise.
14946 (vreinterpret_u8_p8): Likewise.
14947 (vreinterpret_u8_p16): Likewise.
14948 (vreinterpretq_u8_s8): Likewise.
14949 (vreinterpretq_u8_s16): Likewise.
14950 (vreinterpretq_u8_s32): Likewise.
14951 (vreinterpretq_u8_s64): Likewise.
14952 (vreinterpretq_u8_f32): Likewise.
14953 (vreinterpretq_u8_u16): Likewise.
14954 (vreinterpretq_u8_u32): Likewise.
14955 (vreinterpretq_u8_u64): Likewise.
14956 (vreinterpretq_u8_p8): Likewise.
14957 (vreinterpretq_u8_p16): Likewise.
14958 (vreinterpret_u16_s8): Likewise.
14959 (vreinterpret_u16_s16): Likewise.
14960 (vreinterpret_u16_s32): Likewise.
14961 (vreinterpret_u16_s64): Likewise.
14962 (vreinterpret_u16_f32): Likewise.
14963 (vreinterpret_u16_u8): Likewise.
14964 (vreinterpret_u16_u32): Likewise.
14965 (vreinterpret_u16_u64): Likewise.
14966 (vreinterpret_u16_p8): Likewise.
14967 (vreinterpret_u16_p16): Likewise.
14968 (vreinterpretq_u16_s8): Likewise.
14969 (vreinterpretq_u16_s16): Likewise.
14970 (vreinterpretq_u16_s32): Likewise.
14971 (vreinterpretq_u16_s64): Likewise.
14972 (vreinterpretq_u16_f32): Likewise.
14973 (vreinterpretq_u16_u8): Likewise.
14974 (vreinterpretq_u16_u32): Likewise.
14975 (vreinterpretq_u16_u64): Likewise.
14976 (vreinterpretq_u16_p8): Likewise.
14977 (vreinterpretq_u16_p16): Likewise.
14978 (vreinterpret_u32_s8): Likewise.
14979 (vreinterpret_u32_s16): Likewise.
14980 (vreinterpret_u32_s32): Likewise.
14981 (vreinterpret_u32_s64): Likewise.
14982 (vreinterpret_u32_f32): Likewise.
14983 (vreinterpret_u32_u8): Likewise.
14984 (vreinterpret_u32_u16): Likewise.
14985 (vreinterpret_u32_u64): Likewise.
14986 (vreinterpret_u32_p8): Likewise.
14987 (vreinterpret_u32_p16): Likewise.
14988 (vreinterpretq_u32_s8): Likewise.
14989 (vreinterpretq_u32_s16): Likewise.
14990 (vreinterpretq_u32_s32): Likewise.
14991 (vreinterpretq_u32_s64): Likewise.
14992 (vreinterpretq_u32_f32): Likewise.
14993 (vreinterpretq_u32_u8): Likewise.
14994 (vreinterpretq_u32_u16): Likewise.
14995 (vreinterpretq_u32_u64): Likewise.
14996 (vreinterpretq_u32_p8): Likewise.
14997 (vreinterpretq_u32_p16): Likewise.
14999 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15001 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15003 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15005 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15006 (vqnegd_s64): Likewise.
15007 (vqabs_s64): Likewise.
15008 (vqabsd_s64): Likewise.
15010 2014-04-22 Richard Henderson <rth@redhat.com>
15012 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15013 computation to the top of the loop.
15015 2014-04-22 Renlin <renlin.li@arm.com>
15016 Jiong Wang <jiong.wang@arm.com>
15018 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15019 * config/aarch64/aarch64.c (aarch64_layout_frame)
15020 (aarch64_initial_elimination_offset): Likewise.
15022 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15024 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15027 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15029 * machmode.h (bitwise_mode_for_mode): Declare.
15030 * stor-layout.h (bitwise_type_for_mode): Likewise.
15031 * stor-layout.c (bitwise_mode_for_mode): New function.
15032 (bitwise_type_for_mode): Likewise.
15033 * builtins.c (fold_builtin_memory_op): Use it instead of
15034 int_mode_for_mode and build_nonstandard_integer_type.
15036 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15038 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15039 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15040 (*-*-solaris2*): Simplify.
15041 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15042 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15043 *-*-solaris2.9* handling.
15045 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15047 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15048 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15049 handling, simplify.
15050 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15051 * configure: Regenerate.
15053 * config/i386/sol2-9.h: Remove.
15055 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15056 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15057 Remove Solaris 9 references.
15059 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15061 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15062 (floatuns<GPI:mode><GPF:mode>2): Remove.
15063 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15064 and floatuns conversions.
15065 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15066 and floatuns conversions.
15067 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15068 (w1,w2): New mode attributes for inequal width conversions.
15070 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15072 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15073 the output asm format.
15075 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15077 * config/aarch64/aarch64-simd.md
15078 (aarch64_cm<optab>di): Always split.
15079 (*aarch64_cm<optab>di): New.
15080 (aarch64_cmtstdi): Always split.
15081 (*aarch64_cmtstdi): New.
15083 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15085 PR tree-optimization/60823
15086 * omp-low.c (ipa_simd_modify_function_body): Go through
15087 all SSA_NAMEs and for those refering to vector arguments
15088 which are going to be replaced adjust SSA_NAME_VAR and,
15089 if it is a default definition, change it into a non-default
15090 definition assigned at the beginning of function from new_decl.
15091 (ipa_simd_modify_stmt_ops): Rewritten.
15092 * tree-dfa.c (set_ssa_default_def): When removing default def,
15093 check for NULL loc instead of NULL *loc.
15095 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15097 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15098 restrictions on core registers for DImode values in Thumb2.
15100 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15102 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15103 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15105 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15107 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15108 (*iordi_notzesidi_di): Likewise.
15109 (*iordi_notsesidi_di): Likewise.
15111 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15113 * config/arm/arm-protos.h (tune_params): New struct members.
15114 * config/arm/arm.c: Initialise tune_params per processor.
15115 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15116 for speed, based on new tune_params.
15118 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15120 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15121 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15122 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15123 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15124 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15125 (vrnda_f64): Likewise.
15126 (vrndi_f64): Likewise.
15127 (vrndm_f64): Likewise.
15128 (vrndn_f64): Likewise.
15129 (vrndp_f64): Likewise.
15130 (vrndx_f64): Likewise.
15132 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15134 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15135 GET_MODE_SIZE argument is enum machine_mode.
15137 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15140 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15141 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15143 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15145 PR middle-end/60281
15146 * asan.c (asan_emit_stack_protection): Force the base to align to
15147 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15148 appropriate bits if STRICT_ALIGNMENT.
15149 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15151 (expand_used_vars): Leave a space in the stack frame for alignment
15152 if STRICT_ALIGNMENT.
15154 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15156 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15158 (gimple_store_p): Likewise.
15159 (gimple_assign_load_p): Likewise.
15160 (gimple_assign_cast_p): Likewise.
15161 (gimple_clobber_p): Likewise.
15163 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15164 rather than a gimple.
15165 (gimple_assign_cast_p): Likewise.
15167 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15170 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15171 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15173 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15174 more debug information for E500 if -mdebug=reg.
15176 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15179 * config/i386/i386.c (ix86_expand_builtin)
15180 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15181 register for target RTX.
15182 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15184 2014-04-18 Cong Hou <congh@google.com>
15186 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15187 the widen-mult pattern by handling two operands with different sizes,
15188 and operands whose size is smaller than half of the result type.
15190 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15192 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15193 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15194 (do_estimate_edge_time): Compute it.
15195 * ipa-inline.c (want_inline_small_function_p): Bypass
15196 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15198 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15200 * ipa-inline.c (spec_rem): New static variable.
15201 (dump_overall_stats): New function.
15202 (dump_inline_stats): New function.
15204 2014-04-18 Richard Henderson <rth@redhat.com>
15206 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15207 to GET_MODE_SIZE, not a reg_class_t.
15209 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15211 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15212 (vsx_xxmrglw_<mode>): Likewise.
15214 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15217 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15218 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15219 (rs6000_init_hard_regno_mode_ok): Likewise.
15221 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15223 * ipa-inline.c (inline_small_functions): Account only non-cold
15225 * doc/invoke.texi (inline-unit-growth): Update documentation.
15227 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15229 * config/rs6000/rs6000.md (addti3, subti3): New.
15231 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15234 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15235 comment. Check optimize_insn_for_size_p instead of
15236 optimize_insn_for_speed_p.
15238 2014-04-17 Martin Jambor <mjambor@suse.cz>
15240 * gimple-iterator.c (gsi_start_edge): New function.
15241 * gimple-iterator.h (gsi_start_edge): Declare.
15242 * tree-sra.c (single_non_eh_succ): New function.
15243 (disqualify_ops_if_throwing_stmt): Renamed to
15244 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15245 having one non-EH successor BB.
15246 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15247 generate loads into replacements.
15248 (sra_modify_assign): Likewise and and also use the simple path for
15250 (sra_modify_function_body): Commit statements on edges.
15252 2014-04-17 Richard Biener <rguenther@suse.de>
15254 PR middle-end/60849
15255 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15256 comparison results and add clarifying comment.
15258 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15260 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15261 (blank_mode): Initialize it.
15262 (emit_mode_size_inline, emit_mode_nunits_inline,
15263 emit_mode_inner_inline): New functions.
15264 (emit_insn_modes_h): Call them and surround their output with
15265 #if GCC_VERSION >= 4001 ... #endif.
15266 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15267 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15268 mode_* arrays if the argument is __builtin_constant_p.
15269 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15270 is enum machine_mode.
15272 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15274 * passes.c (opt_pass::execute): Adjust.
15275 (pass_manager::execute_pass_mode_switching): Likewise.
15276 (early_local_passes::execute): Likewise.
15277 (execute_one_pass): Pass cfun to the pass's execute method.
15278 * tree-pass.h (opt_pass::execute): Add function * argument.
15279 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15280 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15281 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15282 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15283 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15284 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15285 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15286 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15287 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15288 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15289 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15290 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15291 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15292 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15293 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15294 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15295 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15296 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15297 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15298 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15299 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15300 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15301 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15302 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15303 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15304 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15305 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15306 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15307 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15310 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15312 * passes.c (opt_pass::gate): Take function * argument.
15313 (gate_all_early_local_passes): Merge into
15314 (early_local_passes::gate): this.
15315 (gate_all_early_optimizations): Merge into
15316 (all_early_optimizations::gate): this.
15317 (gate_all_optimizations): Mege into
15318 (all_optimizations::gate): this.
15319 (gate_all_optimizations_g): Merge into
15320 (all_optimizations_g::gate): this.
15321 (gate_rest_of_compilation): Mege into
15322 (rest_of_compilation::gate): this.
15323 (gate_postreload): Merge into
15324 (postreload::gate): this.
15325 (dump_one_pass): Pass cfun to the pass's gate method.
15326 (execute_ipa_summary_passes): Likewise.
15327 (execute_one_pass): Likewise.
15328 (ipa_write_summaries_2): Likewise.
15329 (ipa_write_optimization_summaries_1): Likewise.
15330 (ipa_read_summaries_1): Likewise.
15331 (ipa_read_optimization_summaries_1): Likewise.
15332 (execute_ipa_stmt_fixups): Likewise.
15333 * tree-pass.h (opt_pass::gate): Add function * argument.
15334 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15335 combine-stack-adj.c, combine.c, compare-elim.c,
15336 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15337 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15338 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15339 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15340 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15341 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15342 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15343 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15344 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15345 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15346 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15347 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15348 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15349 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15350 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15351 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15352 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15353 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15354 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15355 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15356 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15357 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15358 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15359 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15360 var-tracking.c, vtable-verify.c, web.c: Adjust.
15362 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15364 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15365 * configure: Regenerate.
15367 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15369 * passes.c (dump_one_pass): don't check pass->has_gate.
15370 (execute_ipa_summary_passes): Likewise.
15371 (execute_one_pass): Likewise.
15372 (ipa_write_summaries_2): Likewise.
15373 (ipa_write_optimization_summaries_1): Likewise.
15374 (ipa_read_optimization_summaries_1): Likewise.
15375 (execute_ipa_stmt_fixups): Likewise.
15376 * tree-pass.h (pass_data::has_gate): Remove.
15377 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15378 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15379 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15380 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15381 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15382 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15383 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15384 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15385 gimple-low.c, gimple-ssa-isolate-paths.c,
15386 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15387 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15388 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15389 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15390 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15391 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15392 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15393 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15394 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15395 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15396 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15397 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15398 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15399 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15400 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15401 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15402 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15403 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15404 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15405 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15406 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15407 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15410 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15412 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15414 * passes.c (pass_manager::register_dump_files_1): Merge into
15415 (pass_manager::register_dump_files): this, and remove its handling of
15416 properties since the pass always has the properties anyway.
15417 (pass_manager::pass_manager): Adjust.
15419 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15421 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15422 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15423 dealing with properties.
15424 (pass_manager::register_dump_files): Adjust.
15426 2014-03-20 Mark Wielaard <mjw@redhat.com>
15428 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15429 then represent the bound as normal constant value.
15431 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15434 Forward port from 4.8 branch
15435 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15437 * config/i386/bmiintrin.h (_blsi_u32): New.
15438 (_blsi_u64): Ditto.
15439 (_blsr_u32): Ditto.
15440 (_blsr_u64): Ditto.
15441 (_blsmsk_u32): Ditto.
15442 (_blsmsk_u64): Ditto.
15443 (_tzcnt_u32): Ditto.
15444 (_tzcnt_u64): Ditto.
15446 2014-04-17 Kito Cheng <kito@0xlab.org>
15448 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15450 2014-04-17 Richard Biener <rguenther@suse.de>
15452 PR middle-end/60849
15453 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15454 boolean results for comparisons.
15456 2014-04-17 Richard Biener <rguenther@suse.de>
15458 PR tree-optimization/60836
15459 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15460 initial PHI args to be gimple values.
15462 2014-04-17 Richard Biener <rguenther@suse.de>
15464 PR tree-optimization/60841
15465 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15466 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15467 of stmts to SLP build.
15468 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15469 (vect_analyze_slp): Likewise.
15470 (vect_analyze_slp_instance): Likewise.
15471 (vect_build_slp_tree): Limit overall SLP tree growth.
15472 * tree-vectorizer.h (vect_analyze_data_refs,
15473 vect_analyze_slp): Adjust prototypes.
15475 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15477 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15480 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15482 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15483 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15484 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15485 for TARGET_SLOW_PSHUFB
15487 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15489 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15490 * config/i386/i386.c (intel_cost): Ditto.
15492 2014-04-17 Joey Ye <joey.ye@arm.com>
15494 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15496 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15498 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15499 with -fuse-profile.
15501 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15503 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15504 (type_all_derivations_known_p): New predicate.
15505 (type_all_ctors_visible_p): New predicate.
15506 (type_possibly_instantiated_p): New predicate.
15507 (get_odr_type): Compute all_derivations_known.
15508 (dump_odr_type): Dump the flag.
15509 (maybe_record_type): Cleanup.
15510 (record_target_from_binfo): Add bases_to_consider array;
15511 record bases for types w/o instances and skip CXX destructor.
15512 (possible_polymorphic_call_targets_1): Add bases_to_consider
15513 and consider_construction parameters; check if type may have instance.
15514 (get_polymorphic_call_info): Set maybe_in_construction to true
15515 when we know nothing.
15516 (record_targets_from_bases): Skip CXX destructors; they are
15517 never called for types in construction.
15518 (possible_polymorphic_call_targets): Do not record target when
15519 type may not have instance.
15521 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15524 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15525 external aliases alive, too.
15527 2014-04-16 Andrew Pinski <apinski@cavium.com>
15529 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15532 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15534 * final.c (compute_alignments): Do not apply loop alignment to a block
15535 falling through to the exit.
15537 2014-04-16 Catherine Moore <clm@codesourcery.com>
15539 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15540 Adjust constraints for microMIPS store patterns.
15542 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15544 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15546 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15548 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15549 (append_use): Run at -O0.
15550 (append_vdef): Likewise.
15551 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15552 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15554 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15556 PR tree-optimization/60844
15557 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15558 (propagate_op_to_single_use, remove_visited_stmt_chain,
15559 linearize_expr, repropagate_negates, reassociate_bb): Use it
15560 instead of gsi_remove.
15562 2014-04-16 Martin Jambor <mjambor@suse.cz>
15564 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15565 ipa_transforms_to_apply.
15566 (cgraph_function_versioning): Assert that old_node has empty
15567 ipa_transforms_to_apply.
15568 * trans-mem.c (ipa_tm_create_version): Likewise.
15569 * tree-inline.c (tree_function_versioning): Do not duplicate
15570 ipa_transforms_to_apply.
15572 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15575 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15577 Pass necessary as flags on 64-bit Solaris/x86.
15578 Use lowercase relocs for x86_64-*-*.
15579 * configure: Regenerate.
15581 2014-04-15 Jan Hubicka <jh@suse.cz>
15583 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15584 (maybe_record_node, likely_target_p): Use it.
15586 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15589 Revert following patch
15591 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15594 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15595 software floating point or no floating point registers, do not
15596 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15597 in GPRs that occurs after we tested for GPRs that would never be
15600 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15601 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15602 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15603 specifically allow DDmode, since that does not use the SPE SIMD
15606 2014-03-21 Mark Wielaard <mjw@redhat.com>
15608 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15609 as unsigned or int depending on type and value used.
15611 2014-04-15 Richard Biener <rguenther@suse.de>
15613 PR rtl-optimization/56965
15614 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15615 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15617 * alias.c (true_dependence_1): Do not call
15618 nonoverlapping_component_refs_p.
15619 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15620 nonoverlapping_component_refs_p.
15621 (indirect_refs_may_alias_p): Likewise.
15623 2014-04-15 Teresa Johnson <tejohnson@google.com>
15625 * cfg.c (dump_bb_info): Fix flags check.
15626 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15628 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15630 PR rtl-optimization/60663
15631 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15634 2014-04-15 Richard Biener <rguenther@suse.de>
15636 * lto-streamer.h (LTO_major_version): Bump to 4.
15638 2014-04-15 Richard Biener <rguenther@suse.de>
15640 * common.opt (lto_partition_model): New enum.
15641 (flto-partition=): Merge separate options with a single with argument,
15642 add -flto-partition=one support.
15643 * flag-types.h (enum lto_partition_model): Declare.
15644 * opts.c (finish_options): Remove duplicate -flto-partition=
15646 * lto-wrapper.c (run_gcc): Adjust.
15648 2014-04-15 Richard Biener <rguenther@suse.de>
15650 * alias.c (ncr_compar): New function.
15651 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15653 2014-04-15 Richard Biener <rguenther@suse.de>
15655 * alias.c (record_component_aliases): Do not walk BINFOs.
15657 2014-04-15 Richard Biener <rguenther@suse.de>
15659 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15660 Add struct function argument and adjust.
15661 (find_func_aliases_for_call): Likewise.
15662 (find_func_aliases): Likewise.
15663 (find_func_clobbers): Likewise.
15664 (intra_create_variable_infos): Likewise.
15665 (compute_points_to_sets): Likewise.
15666 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15668 2014-04-15 Richard Biener <rguenther@suse.de>
15670 * tree.c (iterative_hash_expr): Use enum tree_code_class
15671 to store TREE_CODE_CLASS.
15672 (tree_block): Likewise.
15673 (tree_set_block): Likewise.
15674 * tree.h (fold_build_pointer_plus_loc): Use
15675 convert_to_ptrofftype_loc.
15677 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15680 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15683 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15685 * cfgloop.h (struct loop): Move force_vectorize down.
15686 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15687 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15688 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15689 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15690 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15691 * tree-core.h (enum annot_expr_kind): Add new kind values.
15692 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15693 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15695 * tree.def (ANNOTATE_EXPR): Tweak comment.
15697 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15699 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15702 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15704 * tree.h (TYPE_IDENTIFIER): Declare.
15705 * tree.c (subrange_type_for_debug_p): Use it.
15706 * godump.c (go_format_type): Likewise.
15707 * dwarf2out.c (is_cxx_auto, modified_type_die,
15708 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15709 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15711 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15714 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15716 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15718 * config/i386/i386.c (examine_argument): Return bool. Return true if
15719 parameter should be passed in memory.
15720 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15721 (construct_container): Update calls to examine_argument.
15722 (function_arg_advance_64): Ditto.
15723 (return_in_memory_32): Merge with ix86_return_in_memory.
15724 (return_in_memory_64): Ditto.
15725 (return_in_memory_ms_64): Ditto.
15727 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15729 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15730 * coverage.c (coverage_compute_profile_id): Handle externally visible
15733 2014-04-14 Martin Jambor <mjambor@suse.cz>
15735 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15736 DECL_DISREGARD_INLINE_LIMITS functions.
15738 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15741 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15743 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15746 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15747 optimize_insn_for_speed_p instead of
15748 optimize_function_for_speed_p.
15750 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15752 * doc/invoke.texi (free): Document AArch64.
15754 2014-04-14 Richard Biener <rguenther@suse.de>
15756 PR tree-optimization/60042
15757 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15758 (insert_into_preds_of_block): Do not prevent PHI insertion
15759 for REFERENCE exprs here ...
15760 (eliminate_dom_walker::before_dom_children): ... but prevent
15761 their use here under similar conditions when applied to the
15762 IL after PRE optimizations.
15764 2014-04-14 Richard Biener <rguenther@suse.de>
15766 * passes.def: Move early points-to after early SRA.
15768 2014-04-14 Richard Biener <rguenther@suse.de>
15770 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15771 check for which sign-changes we allow when forwarding
15772 a converted value into a switch.
15774 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15776 * stor-layout.c (place_field): Finalize non-constant offset for the
15779 2014-04-14 Richard Biener <rguenther@suse.de>
15781 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15783 (expand_switch_using_bit_tests_p): Likewise.
15784 (process_switch): Compute and pass on speed_p based on the
15786 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15787 optimize_bb_for_speed_p.
15789 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15791 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15792 * function.h (struct function): Rename has_force_vect_loops into
15793 has_force_vectorize_loops.
15794 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15795 (input_struct_function_base): Likewise.
15796 * lto-streamer-out.c (output_cfg): Likewise.
15797 (output_struct_function_base): Likewise.
15798 * omp-low.c (expand_omp_simd): Likewise.
15799 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15800 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15801 (version_loop_for_if_conversion): Likewise.
15802 (tree_if_conversion): Likewise.
15803 (main_tree_if_conversion): Likewise.
15804 (gate_tree_if_conversion): Likewise.
15805 * tree-inline.c (copy_loops): Likewise.
15806 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15807 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15808 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15809 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15810 * tree-vectorizer.c (vectorize_loops): Likewise.
15811 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15813 2014-04-14 Richard Biener <rguenther@suse.de>
15816 * lto-streamer-out.c (wrap_refs): New function.
15817 (lto_output): Wrap symbol references in global initializes in
15818 type-preserving MEM_REFs.
15820 2014-04-14 Christian Bruel <christian.bruel@st.com>
15822 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15824 2014-04-14 Christian Bruel <christian.bruel@st.com>
15826 * config/sh/sh.md (setmemqi): New expand pattern.
15827 * config/sh/sh.h (CLEAR_RATIO): Define.
15828 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15829 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15831 2014-04-14 Richard Biener <rguenther@suse.de>
15833 PR middle-end/55022
15834 * fold-const.c (negate_expr_p): Don't negate directional rounding
15836 (fold_negate_expr): Likewise.
15838 2014-04-14 Richard Biener <rguenther@suse.de>
15840 PR tree-optimization/59817
15841 PR tree-optimization/60453
15842 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15843 recursion to catch all CHRECs in the scalar evolution and restrict
15844 the predicate for the remains appropriately.
15846 2014-04-12 Catherine Moore <clm@codesourcery.com>
15848 * config/mips/constraints.md: Add new register constraint "kb".
15849 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15850 (*movhi_internal): Likewise.
15851 (*movqi_internal): Likewise.
15852 * config/mips/mips.h (M16_STORE_REGS): New register class.
15853 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15854 (REG_CLASS_CONTENTS): Likewise.
15855 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15857 2014-04-11 Tobias Burnus <burnus@net-b.de>
15860 * doc/invoke.texi (-Wformat-signedness): Document it.
15861 (Wformat=2): Mention that this enables -Wformat-signedness.
15863 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15865 * common/config/epiphany/epiphany-common.c
15866 (epiphany_option_optimization_table): Enable section anchors by
15867 default at -O1 or higher.
15868 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15869 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15870 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15871 carries no extra cost.
15872 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15873 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15874 * config/epiphany/predicates.md (memclob_operand): New predicate.
15875 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15876 Use memclob_operand predicate and X constraint for operand 3.
15878 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15880 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15881 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15884 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15886 PR rtl-optimization/60651
15887 * mode-switching.c (optimize_mode_switching): Make sure to emit
15888 sets of a lower numbered entity before sets of a higher numbered
15889 entity to a mode of the same or lower priority.
15890 When creating a seginfo for a basic block that starts with a code
15891 label, move the insertion point past the code label.
15892 (new_seginfo): Document and enforce requirement that
15893 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15894 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15895 * doc/tm.texi: Regenerate.
15897 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15900 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15902 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15904 * BASE-VER: Set to 4.10.0.
15906 2014-04-11 Tobias Burnus <burnus@net-b.de>
15909 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15910 * doc/gcc.texi (Service): Update description in the @menu
15911 * doc/invoke.texi (Option Summary): Remove misplaced and
15914 2014-04-11 Steve Ellcey <sellcey@mips.com>
15915 Jakub Jelinek <jakub@redhat.com>
15917 PR middle-end/60556
15918 * expr.c (convert_move): Use emit_store_flag_force instead of
15919 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15922 2014-04-11 Richard Biener <rguenther@suse.de>
15924 PR middle-end/60797
15925 * varasm.c (assemble_alias): Avoid endless error reporting
15926 recursion by setting TREE_ASM_WRITTEN.
15928 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15930 * config/s390/s390.md: Add a splitter for NOT rtx.
15932 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15934 PR rtl-optimization/60663
15935 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15937 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15938 Jakub Jelinek <jakub@redhat.com>
15941 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15942 flag from decl_node to node.
15944 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15947 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15948 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15949 ameliorating the cases where it can be.
15951 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15954 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15956 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15957 (loadsync_<mode>): Change mode.
15958 (load_quadpti, store_quadpti): New.
15959 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15960 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15961 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15963 2014-04-09 Cong Hou <congh@google.com>
15966 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15969 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15971 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15972 instead of vnor to exploit possible fusion opportunity in the
15974 (altivec_expand_vec_perm_const_le): Likewise.
15976 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15978 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15979 (loadsync_<mode>): Change mode.
15980 (load_quadpti, store_quadpti): New.
15981 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15982 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15984 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15987 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15988 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15989 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15991 2014-04-08 Richard Biener <rguenther@suse.de>
15993 PR middle-end/60706
15994 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15995 a 64bit widest int print double-int similar to on HWI64 hosts.
15997 2014-04-08 Richard Biener <rguenther@suse.de>
15999 PR tree-optimization/60785
16000 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16001 default defs properly.
16003 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16005 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16006 (Weffc++): Likewise.
16008 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16010 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16011 set completep to false rather than true.
16013 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16016 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16017 ARM_TARGET2_DWARF_FORMAT.
16019 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16022 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16023 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16026 2014-04-07 Richard Biener <rguenther@suse.de>
16028 PR tree-optimization/60766
16029 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16030 (may_eliminate_iv): Convert cand_value_at result to desired type.
16032 2014-04-07 Jason Merrill <jason@redhat.com>
16035 * common.opt (-fno-gnu-unique): Add.
16036 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16038 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16040 * haifa-sched.c: Fix outdated function reference and minor
16041 grammar errors in introductory comment.
16043 2014-04-07 Richard Biener <rguenther@suse.de>
16045 PR middle-end/60750
16046 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16047 for noreturn calls.
16048 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16050 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16053 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16054 size accounting for thunks.
16055 (pa_asm_output_mi_thunk): Use final_start_function() and
16056 final_end_function() to output function start and end directives.
16058 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16060 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16061 device specific ISA/ feature information. Remove short_sp and
16062 errata_skip ds. Add avr_device_specific_features enum to have device
16064 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16065 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16066 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16067 updated device specific info.
16068 * config/avr/avr-mcus.def: Merge device specific details to
16069 dev_attribute field.
16070 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16072 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16073 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16074 assembler if RMW isa supported by current device.
16075 * config/avr/genmultilib.awk: Update as device info structure changed.
16076 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16078 2014-04-04 Cong Hou <congh@google.com>
16080 PR tree-optimization/60656
16081 * tree-vect-stmts.c (supportable_widening_operation):
16082 Fix a bug that elements in a vector with vect_used_by_reduction
16083 property are incorrectly reordered when the operation on it is not
16084 consistant with the one in reduction operation.
16086 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16088 PR rtl-optimization/60155
16089 * gcse.c (record_set_data): New function.
16090 (single_set_gcse): New function.
16091 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16092 (hoist_code): Likewise.
16093 (get_pressure_class_and_nregs): Likewise.
16095 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16097 * explow.c (probe_stack_range): Emit a final optimization blockage.
16099 2014-04-04 Anthony Green <green@moxielogic.com>
16101 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16104 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16107 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16108 flags are set only during streaming.
16109 * ipa.c (process_references, walk_polymorphic_call_targets,
16110 symtab_remove_unreachable_nodes): Drop bodies of always inline
16111 after early inlining.
16112 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16114 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16115 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16118 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16121 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16124 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16126 (cortex_a53_fdivd): Likewise.
16128 2014-04-04 Martin Jambor <mjambor@suse.cz>
16131 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16132 Adjust all callers.
16133 * cgraph.c (clone_of_p): Also return true if thunks match.
16134 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16135 cgraph_function_or_thunk_node and an obsolete comment.
16136 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16138 (build_function_decl_skip_args): Likewise.
16139 (set_new_clone_decl_and_node_flags): New function.
16140 (duplicate_thunk_for_node): Likewise.
16141 (redirect_edge_duplicating_thunks): Likewise.
16142 (cgraph_clone_node): New parameter args_to_skip, pass it to
16143 redirect_edge_duplicating_thunks which is called instead of
16144 cgraph_redirect_edge_callee.
16145 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16146 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16148 2014-04-04 Jeff Law <law@redhat.com>
16151 * config/arm/predicates.md (const_int_I_operand): New predicate.
16152 (const_int_M_operand): Similarly.
16153 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16155 (insv_t2, extv_reg, extzv_t2): Likewise.
16156 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16157 (pop_multiple_with_writeback_and_return): Likewise.
16158 (vfp_pop_multiple_with_writeback): Likewise
16160 2014-04-04 Richard Biener <rguenther@suse.de>
16163 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16164 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16166 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16167 * gimplify.c (gimple_add_tmp_var_fn): New function.
16168 * gimple-expr.h (create_tmp_reg_fn): Declare.
16169 * gimple-expr.c (create_tmp_reg_fn): New function.
16170 * gimple-low.c (record_vars_into): Don't change cfun.
16171 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16172 code generation without cfun.
16174 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16177 * Makefile.in (install-driver): Fix shell scripting.
16179 2014-04-03 Cong Hou <congh@google.com>
16181 PR tree-optimization/60505
16182 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16183 threshold of number of iterations below which no vectorization
16185 * tree-vect-loop.c (new_loop_vec_info):
16186 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16187 * tree-vect-loop.c (vect_analyze_loop_operations):
16188 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16189 * tree-vect-loop.c (vect_transform_loop):
16190 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16191 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16192 of iterations of the loop and see if we should build the epilogue.
16194 2014-04-03 Richard Biener <rguenther@suse.de>
16196 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16197 (streamer_tree_cache_create): Adjust.
16198 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16199 to allow optional nodes array.
16200 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16201 (streamer_tree_cache_append): Likewise.
16202 (streamer_tree_cache_create): Create nodes array optionally
16203 as specified by parameter.
16204 * lto-streamer-out.c (create_output_block): Avoid maintaining
16205 the node array in the writer cache.
16206 (DFS_write_tree): Remove assertion.
16207 (produce_asm_for_decls): Free the out decl state hash table early.
16208 * lto-streamer-in.c (lto_data_in_create): Adjust for
16209 streamer_tree_cache_create prototype change.
16211 2014-04-03 Richard Biener <rguenther@suse.de>
16213 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16214 set TREE_CHAIN to NULL_TREE.
16216 2014-04-03 Richard Biener <rguenther@suse.de>
16218 PR tree-optimization/60740
16219 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16220 over all GIMPLE_COND operands.
16222 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16224 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16225 (Weffc++): Remove Scott's numbering, merge lists and reference
16228 2014-04-03 Nick Clifton <nickc@redhat.com>
16230 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16233 2014-04-03 Martin Jambor <mjambor@suse.cz>
16235 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16236 mention gcc_unreachable before failing.
16237 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16240 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16243 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16244 inconsistent code and instead mark the context inconsistent.
16245 (possible_polymorphic_call_targets): For inconsistent contexts
16246 return empty complete list.
16248 2014-04-02 Anthony Green <green@moxielogic.com>
16250 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16251 (extendqisi2, extendhisi2): Define.
16252 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16253 (WCHAR_TYPE): Change to unsigned int.
16255 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16257 PR tree-optimization/60733
16258 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16259 insertion point for PHI candidates to be the end of the feeding
16260 block for the PHI argument.
16262 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16264 PR rtl-optimization/60650
16265 * lra-constraints.c (process_alt_operands): Decrease reject for
16266 earlyclobber matching.
16268 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16270 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16272 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16274 * config/spu/spu.c (pad_bb): Do not crash when the last
16275 insn is CODE_FOR_blockage.
16277 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16279 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16280 lies outside the target mode.
16282 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16285 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16286 software floating point or no floating point registers, do not
16287 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16288 in GPRs that occurs after we tested for GPRs that would never be
16291 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16292 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16293 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16294 specifically allow DDmode, since that does not use the SPE SIMD
16297 2014-04-02 Richard Biener <rguenther@suse.de>
16299 PR middle-end/60729
16300 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16301 MODE_INTs. Properly use negv_optab.
16302 (expand_abs): Likewise.
16304 2014-04-02 Richard Biener <rguenther@suse.de>
16307 * Makefile.in (install-driver): Guard extra installs with special
16310 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16312 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16313 Document vec_vgbbd.
16315 2014-04-01 Richard Henderson <rth@redhat.com>
16318 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16319 alternative enabled before register allocation.
16321 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16323 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16324 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16326 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16327 (nios2_got_address): Update nios2_large_got_address call site.
16328 (nios2_delegitimize_address): New function.
16329 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16330 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16331 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16333 2014-04-01 Martin Husemann <martin@duskware.de>
16335 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16338 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16340 PR rtl-optimization/60604
16341 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16342 check from register_operand.
16343 (register_operand): Redefine in terms of general_operand.
16344 (nonmemory_operand): Use register_operand for the non-constant cases.
16346 2014-04-01 Richard Biener <rguenther@suse.de>
16348 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16350 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16352 * doc/invoke.texi (mapp-regs): Clarify.
16354 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16356 * config/i386/avx512fintrin.h (__v32hi): Define type.
16357 (__v64qi): Likewise.
16358 (_mm512_set1_epi8): Define.
16359 (_mm512_set1_epi16): Define.
16360 (_mm512_set4_epi32): Define.
16361 (_mm512_set4_epi64): Define.
16362 (_mm512_set4_pd): Define.
16363 (_mm512_set4_ps): Define.
16364 (_mm512_setr4_epi64): Define.
16365 (_mm512_setr4_epi32): Define.
16366 (_mm512_setr4_pd): Define.
16367 (_mm512_setr4_ps): Define.
16368 (_mm512_setzero_epi32): Define.
16370 2014-03-31 Martin Jambor <mjambor@suse.cz>
16372 PR middle-end/60647
16373 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16374 callsite_arguments_match_p. Updated all callers. Also check types of
16375 corresponding formal parameters and actual arguments.
16376 (not_all_callers_have_enough_arguments_p) Renamed to
16377 some_callers_have_mismatched_arguments_p.
16379 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16381 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16383 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16386 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16389 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16391 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16392 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16394 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16395 Use FMAMODE_NOVF512 mode iterator.
16396 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16397 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16398 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16399 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16401 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16402 Use VF_128_256 mode iterator.
16403 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16406 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16408 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16409 static chain if needed.
16411 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16414 * lra-constraints.c (index_part_to_reg): New.
16415 (process_address): Use it.
16417 2014-03-27 Jeff Law <law@redhat.com>
16418 Jakub Jelinek <jakub@redhat.com>
16421 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16422 gen_rtx_{PLUS,MULT} to build up the address expression.
16424 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16425 creating non-canonical RTL.
16427 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16430 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16431 functions; reorganize to make cheap checks first.
16432 (inline_small_functions): Do not estimate growth when dumping;
16434 * ipa-inline.h (inline_summary): Add min_size.
16435 (growth_likely_positive): New function.
16436 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16437 (set_cond_stmt_execution_predicate): Cleanup.
16438 (estimate_edge_size_and_time): Compute min_size.
16439 (estimate_calls_size_and_time): Likewise.
16440 (estimate_node_size_and_time): Likewise.
16441 (inline_update_overall_summary): Update min_size.
16442 (do_estimate_edge_time): Likewise.
16443 (do_estimate_edge_size): Update.
16444 (do_estimate_edge_hints): Update.
16445 (growth_likely_positive): New function.
16447 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16450 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16451 also if addr has VOIDmode.
16453 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16455 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16456 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16458 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16459 instructions as well as AdvancedSIMD loads.
16461 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16463 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16464 Use crypto_aese type.
16465 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16466 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16467 crypto_aese, crypto_aesmc. Move to types.md.
16468 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16470 * config/arm/iterators.md (crypto_type): Likewise.
16472 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16474 * cgraph.c: Include expr.h and tree-dfa.h.
16475 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16478 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16481 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16482 regs from checking multi-reg pseudos.
16484 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16486 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16488 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16490 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16491 if it would clobber the stack pointer, even temporarily.
16493 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16495 * mode-switching.c: Make small adjustments to the top comment.
16497 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16499 * config/rs6000/constraints.md (wD constraint): New constraint to
16500 match the constant integer to get the top DImode/DFmode out of a
16501 vector in a VSX register.
16503 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16504 match the constant integer to get the top DImode/DFmode out of a
16505 vector in a VSX register.
16507 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16510 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16513 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16514 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16516 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16517 Optimize vec_extract of 64-bit values, where the value being
16518 extracted is in the top word, where we can use scalar
16519 instructions. Add direct move and store support. Combine the big
16520 endian/little endian vector select load support into a single insn.
16521 (vsx_extract_<mode>_internal1): Likewise.
16522 (vsx_extract_<mode>_internal2): Likewise.
16523 (vsx_extract_<mode>_load): Likewise.
16524 (vsx_extract_<mode>_store): Likewise.
16525 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16526 combined into vsx_extract_<mode>_load.
16527 (vsx_extract_<mode>_one_le): Likewise.
16529 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16530 define the top 64-bit vector element.
16532 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16535 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16536 Document vec_vbpermq builtin.
16539 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16540 enable use of xxsldwi and xxpermdi builtin functions.
16541 (vec_xxpermdi): Likewise.
16543 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16544 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16546 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16548 PR rtl-optimization/60650
16549 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16551 (find_spills_for): New.
16552 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16553 Spill all pseudos on the second iteration.
16555 2014-03-27 Marek Polacek <polacek@redhat.com>
16558 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16561 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16563 * config/s390/s390.c (s390_can_use_return_insn): Check for
16564 call-saved FPRs on 31 bit.
16566 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16568 PR middle-end/60682
16569 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16570 if they need regimplification, just drop them instead of
16571 calling gimple_regimplify_operands on them.
16573 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16576 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16577 (aarch64_frame_pointer_required): Adjust logic.
16578 (aarch64_can_eliminate): Adjust logic.
16579 (aarch64_override_options_after_change): Adjust logic.
16581 2014-03-27 Dehao Chen <dehao@google.com>
16583 * ipa-inline.c (early_inliner): Update node's inline info.
16585 2014-03-26 Dehao Chen <dehao@google.com>
16587 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16588 compiler inserted conditional jumps for NAN float check.
16590 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16592 * ubsan.h (ubsan_create_data): Change second argument's type
16593 to const location_t *.
16594 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16596 (ubsan_create_data): Change second argument to const location_t *PLOC.
16597 Create Loc field whenever PLOC is non-NULL.
16598 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16599 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16603 * real.c (real_to_integer2): Change type of low to UHWI.
16605 2014-03-26 Tobias Burnus <burnus@net-b.de>
16607 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16608 (CILK_SELF_SPECS): New define.
16609 (driver_self_specs): Use it.
16611 2014-03-26 Richard Biener <rguenther@suse.de>
16613 * tree-pretty-print.c (percent_K_format): Implement special
16614 case for LTO and its stripped down BLOCK tree.
16616 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16619 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16621 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16622 one range is range_int_cst_p, but not both, at least optimize
16623 addition/subtraction of 0 and multiplication by 0 or 1.
16624 * gimple-fold.c (gimple_fold_call): Fold
16625 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16626 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16627 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16629 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16631 PR rtl-optimization/60452
16632 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16633 <case REG>: Return 1 for invalid offsets from the frame pointer.
16635 2014-03-26 Marek Polacek <polacek@redhat.com>
16638 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16641 2014-03-26 Marek Polacek <polacek@redhat.com>
16644 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16647 2014-03-26 Marek Polacek <polacek@redhat.com>
16650 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16651 multiplication in unsigned type.
16653 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16655 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16657 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16659 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16661 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16664 * cif-code.def (UNREACHABLE) New code.
16665 * ipa-inline.c (inline_small_functions): Skip edges to
16666 __builtlin_unreachable.
16667 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16668 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16669 predicate to __bulitin_unreachable.
16670 (set_cond_stmt_execution_predicate): Fix issue when
16671 invert_tree_comparison returns ERROR_MARK.
16672 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16673 propagate to inline clones.
16674 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16676 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16677 * cgraphclones.c (cgraph_clone_node): If call destination is already
16678 ureachable, do not redirect it back.
16679 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16682 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16684 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16685 Do not modify inline clones.
16687 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16689 * config/i386/i386.md (general_sext_operand): New mode attr.
16690 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16691 don't generate (sign_extend (const_int)).
16692 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16693 operands[2]. Use We constraint instead of <i> and
16694 <general_sext_operand> predicate instead of <general_operand>.
16695 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16696 * config/i386/constraints.md (We): New constraint.
16697 * config/i386/predicates.md (x86_64_sext_operand,
16698 sext_operand): New predicates.
16700 2014-03-25 Martin Jambor <mjambor@suse.cz>
16703 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16704 inconsistent devirtualizations to __builtin_unreachable.
16706 2014-03-25 Marek Polacek <polacek@redhat.com>
16709 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16711 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16713 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16714 order of elements for big-endian.
16716 2014-03-25 Richard Biener <rguenther@suse.de>
16718 PR middle-end/60635
16719 * gimplify-me.c (gimple_regimplify_operands): Update the
16722 2014-03-25 Martin Jambor <mjambor@suse.cz>
16725 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16726 (lto_output_varpool_node): Likewise.
16727 (input_overwrite_node): Likewise.
16728 (input_varpool_node): Likewise.
16730 2014-03-25 Richard Biener <rguenther@suse.de>
16732 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16733 (run_gcc): Likewise.
16735 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16737 * combine.c (simplify_compare_const): Add MODE argument.
16738 Handle mode_width 0 as very large mode_width.
16739 (try_combine, simplify_comparison): Adjust callers.
16741 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16742 type to avoid signed integer overflow.
16743 * explow.c (plus_constant): Likewise.
16745 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16747 * doc/generic.texi: Correct typos.
16749 2014-03-24 Tobias Burnus <burnus@net-b.de>
16751 * doc/invoke.texi (-flto): Expand section about
16752 using static libraries with LTO.
16754 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16756 PR rtl-optimization/60501
16757 * optabs.def (addptr3_optab): New optab.
16758 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16759 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16760 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16762 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16764 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16766 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16768 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16771 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16772 (_mm256_undefined_ps): Define.
16773 (_mm256_undefined_pd): Define.
16774 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16775 (_mm_undefined_pd): Define.
16776 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16777 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16778 (_mm512_undefined_ps): Define.
16779 (_mm512_undefined_pd): Define.
16780 Use _mm*_undefined_*.
16781 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16783 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16785 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16786 (lshr_simd): DI mode added.
16787 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16788 (aarch64_ushr_simddi): Likewise.
16789 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16790 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16791 (vshrd_n_u64): Likewise.
16793 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16795 * Makefile.in (s-macro_list): Depend on cc1.
16797 2014-03-23 Teresa Johnson <tejohnson@google.com>
16799 * ipa-utils.c (ipa_print_order): Use specified dump file.
16801 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16803 PR rtl-optimization/60601
16804 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16806 * gcc.c (eval_spec_function): Initialize save_growing_value.
16808 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16811 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16812 code == MINUS_EXPR, never swap op0 with op1.
16814 * toplev.c (init_local_tick): Avoid signed integer multiplication
16816 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16817 shift by first operand's bitsize.
16819 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16822 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16823 redefine to 1 or 0.
16824 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16825 TARGET_ISA_64BIT_P(x).
16827 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16829 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16830 pattern for vector nor instead of subtract from splat(-1).
16831 (altivec_expand_vec_perm_const_le): Likewise.
16833 2014-03-21 Richard Henderson <rth@twiddle.net>
16836 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16837 related insns after epilogue_completed.
16839 2014-03-21 Martin Jambor <mjambor@suse.cz>
16842 * cgraph.h (symtab_node): New flag body_removed.
16843 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16844 when removing bodies.
16845 * symtab.c (dump_symtab_base): Dump body_removed flag.
16846 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16847 had their bodies removed.
16849 2014-03-21 Martin Jambor <mjambor@suse.cz>
16852 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16855 2014-03-21 Richard Biener <rguenther@suse.de>
16857 PR tree-optimization/60577
16858 * tree-core.h (struct tree_base): Document nothrow_flag use
16859 in DECL_NONALIASED.
16860 * tree.h (DECL_NONALIASED): New.
16861 (may_be_aliased): Adjust.
16862 * coverage.c (build_var): Set DECL_NONALIASED.
16864 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16866 * expr.c (expand_expr_real_1): Remove outdated comment.
16868 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16870 PR middle-end/60597
16871 * ira.c (adjust_cleared_regs): Call copy_rtx on
16872 *reg_equiv[REGNO (loc)].src_p before passing it to
16873 simplify_replace_fn_rtx.
16876 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16877 into CONST, put pic register as first operand of PLUS. Use
16878 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16880 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16882 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16884 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16886 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16887 around for store forwarding issue in the FPU on the UT699.
16888 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16889 loads and operations if -mfix-ut699 is specified.
16890 (divtf3_hq): Tweak attribute.
16891 (sqrttf2_hq): Likewise.
16893 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16895 * calls.c (store_one_arg): Remove incorrect const qualification on the
16896 type of the temporary.
16897 * cfgexpand.c (expand_return): Likewise.
16898 * expr.c (expand_constructor): Likewise.
16899 (expand_expr_real_1): Likewise.
16901 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16903 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16906 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16909 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16911 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16913 * config/arm/aarch-common-protos.h
16914 (alu_cost_table): Fix spelling of "extend".
16915 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16917 2014-03-19 Richard Biener <rguenther@suse.de>
16919 PR middle-end/60553
16920 * tree-core.h (tree_type_common): Re-order pointer members
16921 to reduce recursion depth during GC walks.
16923 2014-03-19 Marek Polacek <polacek@redhat.com>
16926 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16927 before accessing it.
16929 2014-03-19 Richard Biener <rguenther@suse.de>
16932 * lto-streamer-in.c (input_function): In WPA stage do not drop
16935 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16937 PR tree-optimization/60559
16938 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16939 with build_zero_cst assignment.
16941 2014-03-18 Kai Tietz <ktietz@redhat.com>
16943 PR rtl-optimization/56356
16944 * sdbout.c (sdbout_parms): Verify that parms'
16945 incoming argument is valid.
16946 (sdbout_reg_parms): Likewise.
16948 2014-03-18 Richard Henderson <rth@redhat.com>
16951 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16952 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16953 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16955 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16957 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16958 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16959 Italicize plugin event names in description. Explain that
16960 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16961 Remind that no GCC functions should be called after PLUGIN_FINISH.
16962 Explain what pragmas with expansion are.
16964 2014-03-18 Martin Liska <mliska@suse.cz>
16966 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16967 gimple call statement is update.
16968 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16969 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16971 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16974 * ubsan.c (ubsan_instrument_unreachable): Call
16975 initialize_sanitizer_builtins.
16976 (ubsan_pass): Likewise.
16979 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16980 varpool_finalize_decl instead of rest_of_decl_compilation.
16982 2014-03-18 Richard Biener <rguenther@suse.de>
16984 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16985 by using bitmap_and_compl instead of bitmap_and_compl_into.
16986 (df_rd_transfer_function): Likewise.
16988 2014-03-18 Richard Biener <rguenther@suse.de>
16990 * doc/lto.texi (fresolution): Fix typo.
16992 2014-03-18 Richard Biener <rguenther@suse.de>
16994 * doc/invoke.texi (flto): Update for changes in 4.9.
16996 2014-03-18 Richard Biener <rguenther@suse.de>
16998 * doc/loop.texi: Remove section on the removed lambda framework.
16999 Update loop docs with recent changes in preserving loop structure.
17001 2014-03-18 Richard Biener <rguenther@suse.de>
17003 * doc/lto.texi (-fresolution): Document.
17005 2014-03-18 Richard Biener <rguenther@suse.de>
17007 * doc/contrib.texi: Adjust my name.
17009 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17012 * internal-fn.c: Include diagnostic-core.h.
17013 (expand_BUILTIN_EXPECT): New function.
17014 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17015 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17016 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17017 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17018 IFN_BUILTIN_EXPECT.
17019 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17020 Revert 3 argument __builtin_expect code.
17021 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17022 * gimple-fold.c (gimple_fold_call): Likewise.
17023 * tree.h (fold_builtin_expect): New prototype.
17024 * builtins.c (build_builtin_expect_predicate): Add predictor
17025 argument, if non-NULL, create 3 argument __builtin_expect.
17026 (fold_builtin_expect): No longer static. Add ARG2 argument,
17027 pass it through to build_builtin_expect_predicate.
17028 (fold_builtin_2): Adjust caller.
17029 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17030 * internal-fn.def (BUILTIN_EXPECT): New.
17032 2014-03-18 Tobias Burnus <burnus@net-b.de>
17035 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17036 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17037 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17039 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17042 * predict.c (combine_predictions_for_bb): Fix up formatting.
17043 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17044 fill what it points to if non-NULL.
17045 (tree_predict_by_opcode): Adjust caller, use the predictor.
17046 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17048 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17050 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17051 proper constant for the store mode.
17053 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17055 * symtab.c (change_decl_assembler_name): Fix transparent alias
17056 chain construction.
17058 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17060 * config/aarch64/aarch64.c: Correct the comments about the
17061 aarch64 stack layout.
17063 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17065 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17066 check for GF_OMP_FOR_KIND_FOR.
17068 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17070 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17071 ymm and zmm register names.
17073 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17076 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17077 note creation for the 2010-08-31 changes.
17079 2014-03-17 Marek Polacek <polacek@redhat.com>
17081 PR middle-end/60534
17082 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17083 as -fno-tree-loop-vectorize.
17084 (expand_omp_simd): Likewise.
17086 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17088 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17089 (eligible_for_call_delay): New prototype.
17090 * config/sparc/sparc.c (tls_call_delay): Rename into...
17091 (eligible_for_call_delay): ...this. Return false if the instruction
17092 cannot be put in the delay slot of a branch.
17093 (eligible_for_restore_insn): Simplify.
17094 (eligible_for_return_delay): Return false if the instruction cannot be
17095 put in the delay slot of a branch and simplify.
17096 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17097 put in the delay slot of a branch.
17098 * config/sparc/sparc.md (fix_ut699): New attribute.
17099 (tls_call_delay): Delete.
17100 (in_call_delay): Reimplement.
17101 (eligible_for_sibcall_delay): Rename into...
17102 (in_sibcall_delay): ...this.
17103 (eligible_for_return_delay): Rename into...
17104 (in_return_delay): ...this.
17105 (in_branch_delay): Reimplement.
17106 (in_uncond_branch_delay): Delete.
17107 (in_annul_branch_delay): Delete.
17109 2014-03-14 Richard Henderson <rth@redhat.com>
17112 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17113 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17114 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17115 (floathi splitters): Remove.
17116 (float<SWI48x>xf2): New pattern.
17117 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17118 code that tried to handle DImode for 32-bit, but which was excluded
17119 by the pattern's condition. Drop allocation of stack temporary.
17120 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17121 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17122 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17123 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17124 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17125 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17126 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17127 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17128 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17129 (*float<SWI48x><X87MODEF>2_i387): Remove.
17130 (all float _with_temp splitters): Remove.
17131 (*float<SWI48x><MODEF>2_i387): New pattern.
17132 (*float<SWI48><MODEF>2_sse): New pattern.
17133 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17134 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17136 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17137 Marek Polacek <polacek@redhat.com>
17139 PR middle-end/60484
17140 * common.opt (dump_base_name_prefixed): New Variable.
17141 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17142 if x_dump_base_name_prefixed is already set, set it at the end.
17144 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17146 PR rtl-optimization/60508
17147 * lra-constraints.c (get_reload_reg): Add new parameter
17149 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17150 Pass the new parameter values.
17152 2014-03-14 Richard Biener <rguenther@suse.de>
17154 * common.opt: Revert unintented changes from r205065.
17155 * opts.c: Likewise.
17157 2014-03-14 Richard Biener <rguenther@suse.de>
17159 PR middle-end/60518
17160 * cfghooks.c (split_block): Properly adjust all loops the
17161 block was a latch of.
17163 2014-03-14 Martin Jambor <mjambor@suse.cz>
17166 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17169 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17172 * config/avr/avr.c (avr_set_current_function): Pass function name
17173 through default_strip_name_encoding before sanity checking instead
17174 of skipping the first char of the assembler name.
17176 2014-03-13 Richard Henderson <rth@redhat.com>
17179 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17180 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17181 * config/i386/i386-protos.h: Likewise.
17182 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17183 in the expander instead of a splitter.
17184 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17185 any possibility of requiring a memory.
17186 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17187 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17188 (fp branch splitters): Update for ix86_split_fp_branch.
17189 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17190 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17191 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17192 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17193 (*fop_<MODEF>_3_i387): Likewise.
17194 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17195 (splitters for the fop_* register patterns): Remove.
17196 (fscalexf4_i387): Rename from *fscalexf4_i387.
17197 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17199 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17201 PR tree-optimization/59779
17202 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17203 type for bitsize and maxsize instead of HOST_WIDE_INT.
17205 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17207 PR rtl-optimization/57320
17208 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17209 the CFG after thread_prologue_and_epilogue_insns.
17211 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17213 PR rtl-optimization/57189
17214 * lra-constraints.c (process_alt_operands): Disfavor spilling
17217 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17219 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17221 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17223 PR tree-optimization/59025
17224 PR middle-end/60418
17225 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17226 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17228 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17231 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17232 calls of avr_out_plus_1.
17234 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17236 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17237 BB's single pred and update the father loop's latch info later.
17239 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17241 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17245 (VEC_base): Likewise.
17246 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17247 registers, we need to swap double words in little endian mode.
17249 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17250 to be a container mode for 128-bit integer operations added in ISA
17251 2.07. Unlike TImode and PTImode, the preferred register set is
17252 the Altivec/VMX registers for the 128-bit operations.
17254 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17256 (rs6000_split_128bit_ok_p): Likewise.
17258 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17259 macros for creating ISA 2.07 normal and overloaded builtin
17260 functions with 3 arguments.
17261 (BU_P8V_OVERLOAD_3): Likewise.
17262 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17263 for use as overloaded functions.
17264 (VPERM_1TI_UNS): Likewise.
17265 (VSEL_1TI): Likewise.
17266 (VSEL_1TI_UNS): Likewise.
17267 (ST_INTERNAL_1ti): Likewise.
17268 (LD_INTERNAL_1ti): Likewise.
17269 (XXSEL_1TI): Likewise.
17270 (XXSEL_1TI_UNS): Likewise.
17271 (VPERM_1TI): Likewise.
17272 (VPERM_1TI_UNS): Likewise.
17273 (XXPERMDI_1TI): Likewise.
17274 (SET_1TI): Likewise.
17275 (LXVD2X_V1TI): Likewise.
17276 (STXVD2X_V1TI): Likewise.
17277 (VEC_INIT_V1TI): Likewise.
17278 (VEC_SET_V1TI): Likewise.
17279 (VEC_EXT_V1TI): Likewise.
17280 (EQV_V1TI): Likewise.
17281 (NAND_V1TI): Likewise.
17282 (ORC_V1TI): Likewise.
17283 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17284 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17285 overloaded builtin.
17286 (VADDUQM): Likewise.
17287 (VSUBCUQ): Likewise.
17288 (VADDEUQM): Likewise.
17289 (VADDECUQ): Likewise.
17290 (VSUBEUQM): Likewise.
17291 (VSUBECUQ): Likewise.
17293 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17294 __int128_t and __uint128_t types.
17295 (__uint128_type): Likewise.
17296 (altivec_categorize_keyword): Add support for vector __int128_t,
17297 vector __uint128_t, vector __int128, and vector unsigned __int128
17298 as a container type for TImode operations that need to be done in
17299 VSX/Altivec registers.
17300 (rs6000_macro_to_expand): Likewise.
17301 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17302 to support 128-bit integer instructions vaddcuq, vadduqm,
17303 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17304 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17306 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17307 for V1TImode, and set up preferences to use VSX/Altivec registers.
17308 Setup VSX reload handlers.
17309 (rs6000_debug_reg_global): Likewise.
17310 (rs6000_init_hard_regno_mode_ok): Likewise.
17311 (rs6000_preferred_simd_mode): Likewise.
17312 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17313 (easy_altivec_constant): Likewise.
17314 (output_vec_const_move): Likewise.
17315 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17317 (rs6000_expand_vector_extract): Likewise.
17318 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17320 (rs6000_const_vec): Add support for V1TImode.
17321 (rs6000_emit_le_vsx_load): Swap double words when loading or
17322 storing TImode/V1TImode.
17323 (rs6000_emit_le_vsx_store): Likewise.
17324 (rs6000_emit_le_vsx_move): Likewise.
17325 (rs6000_emit_move): Add support for V1TImode.
17326 (altivec_expand_ld_builtin): Likewise.
17327 (altivec_expand_st_builtin): Likewise.
17328 (altivec_expand_vec_init_builtin): Likewise.
17329 (altivec_expand_builtin): Likewise.
17330 (rs6000_init_builtins): Add support for V1TImode type. Add
17331 support for ISA 2.07 128-bit integer builtins. Define type names
17332 for the VSX/Altivec vector types.
17333 (altivec_init_builtins): Add support for overloaded vector
17334 functions with V1TImode type.
17335 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17336 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17338 (rs6000_split_128bit_ok_p): Likewise.
17339 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17340 __int128_t and vector __uint128_t.
17342 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17343 and mode attributes.
17345 (VSX_M2): Likewise.
17350 (VS_scalar): Likewise.
17351 (VS_double): Likewise.
17352 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17354 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17355 we support the ISA 2.07 128-bit integer arithmetic instructions.
17356 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17357 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17358 and TImode types for use with the builtin functions.
17359 (V1TI_type_node): Likewise.
17360 (unsigned_V1TI_type_node): Likewise.
17361 (intTI_type_internal_node): Likewise.
17362 (uintTI_type_internal_node): Likewise.
17364 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17365 128-bit builtin functions.
17366 (UNSPEC_VADDEUQM): Likewise.
17367 (UNSPEC_VADDECUQ): Likewise.
17368 (UNSPEC_VSUBCUQ): Likewise.
17369 (UNSPEC_VSUBEUQM): Likewise.
17370 (UNSPEC_VSUBECUQ): Likewise.
17371 (VM): Add V1TImode to vector mode iterators.
17373 (VI_unit): Likewise.
17374 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17375 (altivec_vaddcuq): Likewise.
17376 (altivec_vsubuqm): Likewise.
17377 (altivec_vsubcuq): Likewise.
17378 (altivec_vaddeuqm): Likewise.
17379 (altivec_vaddecuq): Likewise.
17380 (altivec_vsubeuqm): Likewise.
17381 (altivec_vsubecuq): Likewise.
17383 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17385 (BOOL_128): Likewise.
17386 (BOOL_REGS_OUTPUT): Likewise.
17387 (BOOL_REGS_OP1): Likewise.
17388 (BOOL_REGS_OP2): Likewise.
17389 (BOOL_REGS_UNARY): Likewise.
17390 (BOOL_REGS_AND_CR0): Likewise.
17392 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17393 128-bit integer builtin support.
17394 (vec_vadduqm): Likewise.
17395 (vec_vaddecuq): Likewise.
17396 (vec_vaddeuqm): Likewise.
17397 (vec_vsubecuq): Likewise.
17398 (vec_vsubeuqm): Likewise.
17399 (vec_vsubcuq): Likewise.
17400 (vec_vsubuqm): Likewise.
17402 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17403 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17404 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17405 128-bit integer add/subtract to ISA 2.07.
17407 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17409 * config/arc/arc.c (arc_predicate_delay_insns):
17410 Fix third argument passed to conditionalize_nonjump.
17412 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17414 * config/aarch64/aarch64-builtins.c
17415 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17416 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17417 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17418 instead of __builtin_lfloor.
17419 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17421 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17423 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17424 (tree_ssa_ifcombine_bb_1): New function.
17425 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17426 is an empty forwarder block to then_bb or vice versa and then_bb
17427 and else_bb are effectively swapped.
17429 2014-03-12 Christian Bruel <christian.bruel@st.com>
17432 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17433 REG_CFA_DEF_CFA note.
17434 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17435 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17437 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17439 PR tree-optimization/60454
17440 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17442 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17444 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17445 Do not define target_cpu_default2 to generic.
17446 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17447 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17448 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17450 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17451 Marc Glisse <marc.glisse@inria.fr>
17453 PR tree-optimization/60502
17454 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17455 instead of build_low_bits_mask.
17457 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17459 PR middle-end/60482
17460 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17461 if there are multiple uses, but op doesn't live on E edge.
17462 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17463 clobber stmts before __builtin_unreachable.
17465 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17467 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17468 hard_frame_pointer_rtx.
17469 * cse.c (cse_insn): Remove volatile check.
17470 * cselib.c (cselib_process_insn): Likewise.
17471 * dse.c (scan_insn): Likewise.
17473 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17475 * config/arc/arc.c (conditionalize_nonjump): New function,
17477 (arc_ifcvt): ... this.
17478 (arc_predicate_delay_insns): Use it.
17480 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17482 * config/arc/predicates.md (extend_operand): During/after reload,
17483 allow const_int_operand.
17484 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17485 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17486 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17488 (umulsi3_highpart_i): Likewise.
17490 2014-03-11 Richard Biener <rguenther@suse.de>
17492 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17493 Add asserts to guard possible wrong-code bugs.
17495 2014-03-11 Richard Biener <rguenther@suse.de>
17497 PR tree-optimization/60429
17498 PR tree-optimization/60485
17499 * tree-ssa-structalias.c (set_union_with_increment): Properly
17500 take into account all fields that overlap the shifted vars.
17501 (do_sd_constraint): Likewise.
17502 (do_ds_constraint): Likewise.
17503 (get_constraint_for_ptr_offset): Likewise.
17505 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17507 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17508 (nios2_compute_frame_layout):
17509 Add calculation of cfun->machine->fp_save_offset.
17510 (nios2_expand_prologue): Correct setting of frame pointer register
17512 (nios2_expand_epilogue): Update recovery of stack pointer from
17513 frame pointer accordingly.
17514 (nios2_initial_elimination_offset): Update calculation of offset
17515 for eliminating to HARD_FRAME_POINTER_REGNUM.
17517 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17520 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17521 cgraph_get_create_node on VAR_DECLs.
17523 2014-03-10 Richard Biener <rguenther@suse.de>
17525 PR middle-end/60474
17526 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17528 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17530 * config/vms/vms.opt (vms_float_format): New variable.
17532 2014-03-08 Tobias Burnus <burnus@net-b.de>
17534 * doc/invoke.texi (-fcilkplus): Update implementation status.
17536 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17537 Richard Biener <rguenther@suse.de>
17539 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17540 consistently accross all TUs.
17541 (run_gcc): Enable -fshort-double automatically at link at link-time
17542 and disallow override.
17544 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17547 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17548 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17549 if they can't be used.
17551 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17553 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17554 for Solaris 11/x86 ld.
17555 * configure: Regenerate.
17557 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17559 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17560 (LIB_TLS_SPEC): Save as ld_tls_libs.
17561 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17562 (HAVE_AS_IX86_TLSLDM): New test.
17563 * configure, config.in: Regenerate.
17564 * config/i386/i386.c (legitimize_tls_address): Fall back to
17565 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17566 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17567 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17568 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17570 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17572 * common.opt (fira-loop-pressure): Mark as optimization.
17574 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17576 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17577 an OpenMP mappable type.
17579 2014-03-06 Matthias Klose <doko@ubuntu.com>
17581 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17582 MULTILIB_OSDIRNAMES is not defined.
17584 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17585 Meador Inge <meadori@codesourcery.com>
17588 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17589 (arm_legitimize_address): Call legitimize_tls_address for any
17590 arm_tls_referenced_p expression, handle constant addend. Call it
17591 before testing for !TARGET_ARM.
17592 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17594 2014-03-06 Richard Biener <rguenther@suse.de>
17596 PR middle-end/60445
17600 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17602 * tree-streamer.c (record_common_node): Assert we don't record
17603 nodes with type double.
17604 (preload_common_node): Skip type double, complex double and double
17605 pointer since it is now frontend dependent due to fshort-double option.
17607 2014-03-06 Richard Biener <rguenther@suse.de>
17609 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17610 or -fno-lto is specified and the linker has full plugin support.
17611 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17612 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17613 * lto-wrapper.c (merge_and_complain): Merge compile-time
17614 optimization levels.
17615 (run_gcc): And pass it through to the link options.
17617 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17621 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17623 * cselib.c (remove_useless_values): Skip to avoid quadratic
17624 behavior if the condition moved from...
17625 (cselib_process_insn): ... here holds.
17627 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17630 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17631 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17634 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17635 (TM_H): Add x86-tune.def.
17637 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17639 * config/aarch64/aarch64.c (generic_tunings):
17640 Use cortexa57_extra_costs.
17642 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17645 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17646 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17647 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17650 2014-03-04 Heiher <r@hev.cc>
17652 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17653 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17655 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17657 * config/i386/predicates.md (const2356_operand): Change to ...
17658 (const2367_operand): ... this.
17659 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17661 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17662 (*avx512pf_scatterpf<mode>sf): Ditto.
17663 (avx512pf_scatterpf<mode>df): Ditto.
17664 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17665 (*avx512pf_scatterpf<mode>df): Ditto.
17666 * config/i386/i386.c (ix86_expand_builtin): Update
17667 incorrect hint operand error message.
17669 2014-03-04 Richard Biener <rguenther@suse.de>
17671 * lto-section-in.c (lto_get_section_data): Fix const cast.
17673 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17675 * tree-streamer.c (record_common_node): Assert we don't record
17676 nodes with type double.
17677 (preload_common_node): Skip type double, complex double and double
17678 pointer since it is now frontend dependent due to fshort-double option.
17680 2014-03-04 Richard Biener <rguenther@suse.de>
17683 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17684 (lto_input_toplevel_asms): Likewise.
17685 * lto-section-in.c (lto_get_section_data): Instead do it here
17688 2014-03-04 Richard Biener <rguenther@suse.de>
17690 PR tree-optimization/60382
17691 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17692 dead PHIs a reduction.
17694 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17696 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17698 (_mm_prefetch): Move out of GCC target("sse") pragma.
17699 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17700 GCC target("prfchw") pragma.
17701 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17703 * config/i386/i386.c (ix86_option_override_internal): Enable
17704 -mprfchw with -mprefetchwt1.
17706 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17708 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17711 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17713 * opts.h (CL_PCH_IGNORE): Define.
17714 * targhooks.c (option_affects_pch_p):
17715 Return false for options that have CL_PCH_IGNORE set.
17716 * opt-functions.awk: Process PchIgnore.
17717 * doc/options.texi: Document PchIgnore.
17719 * config/arc/arc.opt (misize): Add PchIgnore property.
17721 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17723 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17724 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17725 constraint on constants to permit them being loaded into
17726 GENERAL_REGS or BASE_REGS.
17728 2014-03-03 Nick Clifton <nickc@redhat.com>
17730 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17731 anti-cacnonical alternatives.
17732 (negandhi3_real): New pattern.
17733 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17735 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17737 * config/avr/avr-mcus.def: Remove atxmega16x1.
17738 * config/avr/avr-tables.opt: Regenerate.
17739 * config/avr/t-multilib: Regenerate.
17740 * doc/avr-mmcu.texi: Regenerate.
17742 2014-03-03 Tobias Grosser <tobias@grosser.es>
17743 Mircea Namolaru <mircea.namolaru@inria.fr>
17745 PR tree-optimization/58028
17746 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17749 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17751 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17752 not handled by recognizers.
17754 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17756 PR middle-end/60175
17757 * function.c (expand_function_end): Don't emit
17758 clobber_return_register sequence if clobber_after is a BARRIER.
17759 * cfgexpand.c (construct_exit_block): Append instructions before
17760 return_label to prev_bb.
17762 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17764 * config/rs6000/constraints.md: Document reserved use of "wc".
17766 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17769 * ipa.c (function_and_variable_visibility): When dissolving comdat
17770 group, also set all symbols to local.
17772 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17777 2013-12-14 Jan Hubicka <jh@suse.cz>
17778 PR middle-end/58477
17779 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17781 2014-03-02 Jon Beniston <jon@beniston.com>
17787 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17788 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17789 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17790 (simple_return, *simple_return): New patterns
17791 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17792 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17794 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17796 * dwarf2out.c (gen_subprogram_die): Tidy.
17798 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17801 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17802 (*mov_t_msb_neg_negc): ... this new insn.
17804 2014-02-28 Jason Merrill <jason@redhat.com>
17807 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17810 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17813 * dwarf2out.c (decltype_auto_die): New static.
17814 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17815 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17816 (is_cxx_auto): Likewise.
17818 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17820 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17821 we are not using general regs only.
17823 2014-02-28 Richard Biener <rguenther@suse.de>
17826 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17827 previous fix and only allow to remove trivial pre-headers
17828 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17829 (remove_forwarder_block): Properly update the latch of a loop.
17831 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17834 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17835 (cselib_preserved_hash_table): New.
17836 (preserve_constants_and_equivs): Move preserved vals to it.
17837 (cselib_find_slot): Look it up first.
17838 (cselib_init): Initialize it.
17839 (cselib_finish): Release it.
17840 (dump_cselib_table): Dump it.
17842 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17845 * cselib.c (remove_useless_values): Skip to avoid quadratic
17846 behavior if the condition moved from...
17847 (cselib_process_insn): ... here holds.
17849 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17852 * var-tracking.c (vt_initialize): Apply the same condition to
17853 preserve the CFA base value.
17855 2014-02-28 Joey Ye <joey.ye@arm.com>
17858 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17859 if reload in progress or completed.
17861 2014-02-28 Tobias Burnus <burnus@net-b.de>
17863 PR middle-end/60147
17864 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17867 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17869 * doc/tm.texi.in (Condition Code Status): Update documention for
17870 relative locations of cc0-setter and cc0-user.
17872 2014-02-27 Jeff Law <law@redhat.com>
17874 PR rtl-optimization/52714
17875 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17876 into two independent simple sets, if I3 is a jump, ensure the
17877 pattern we place into I3 is a (set (pc) ...).
17879 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17880 Jeff Law <law@redhat.com>
17882 PR rtl-optimization/49847
17883 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17884 are in different blocks.
17885 * doc/tm.texi (Condition Code Status): Update documention for
17886 relative locations of cc0-setter and cc0-user.
17888 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17891 * lra.c (lra_emit_add): Check SUBREG too.
17893 2014-02-27 Andreas Schwab <schwab@suse.de>
17895 * config/m68k/m68k.c (m68k_option_override): Disable
17896 -flive-range-shrinkage for classic m68k.
17897 (m68k_override_options_after_change): Likewise.
17899 2014-02-27 Marek Polacek <polacek@redhat.com>
17901 PR middle-end/59223
17902 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17903 -Wmaybe-uninitialized.
17905 2014-02-27 Alan Modra <amodra@gmail.com>
17908 * reload1.c (emit_input_reload_insns): When reload_override_in,
17909 set old to rl->in_reg when rl->in_reg is a subreg.
17911 2014-02-26 Richard Biener <rguenther@suse.de>
17914 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17916 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17918 * common/config/i386/predicates.md (const1256_operand): Remove.
17919 (const2356_operand): New.
17920 (const_1_to_2_operand): Remove.
17921 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17922 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17923 (*avx512pf_gatherpf<mode>sf): Ditto.
17924 (avx512pf_gatherpf<mode>df): Ditto.
17925 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17926 (*avx512pf_gatherpf<mode>df): Ditto.
17927 (avx512pf_scatterpf<mode>sf): Ditto.
17928 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17929 (*avx512pf_scatterpf<mode>sf): Ditto.
17930 (avx512pf_scatterpf<mode>df): Ditto.
17931 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17932 (*avx512pf_scatterpf<mode>df): Ditto.
17933 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17935 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17937 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17938 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17939 (_mm512_mask_testn_epi64_mask): Move to ...
17940 * config/i386/avx512cdintrin.h: Here.
17941 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17942 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17943 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17944 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17945 TARGET_AVX512F from TARGET_AVX512CD.
17947 2014-02-26 Richard Biener <rguenther@suse.de>
17950 * ipa.c (walk_polymorphic_call_targets): Properly guard
17951 call to inline_update_overall_summary.
17953 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17956 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17957 and latches only if requested. Fix latch if it is removed.
17958 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17959 LOOPS_HAVE_PREHEADERS.
17961 2014-02-25 Andrew Pinski <apinski@cavium.com>
17963 * builtins.c (expand_builtin_thread_pointer): Create a new target
17964 when the target is NULL.
17966 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17968 PR rtl-optimization/60317
17969 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17970 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17971 * lra-assigns.c: Include params.h.
17972 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17973 other reload pseudos considerations.
17975 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17977 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17978 to use canonical form for nor<mode>3.
17980 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17983 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17986 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17988 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17989 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17990 (ix86_handle_option): Handle OPT_mprefetchwt1.
17991 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17992 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17994 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17995 OPTION_MASK_ISA_PREFETCHWT1.
17996 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17997 (PTA_PREFETCHWT1): New.
17998 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17999 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18000 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18001 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18002 (*prefetch_avx512pf_<mode>_: Change into ...
18003 (*prefetch_prefetchwt1_<mode>: This.
18004 * config/i386/i386.opt (mprefetchwt1): New.
18005 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18006 (_mm_prefetch): Handle intent to write.
18007 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18009 2014-02-25 Richard Biener <rguenther@suse.de>
18011 PR middle-end/60291
18012 * emit-rtl.c (mem_attrs_htab): Remove.
18013 (mem_attrs_htab_hash): Likewise.
18014 (mem_attrs_htab_eq): Likewise.
18015 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18016 (init_emit_once): Do not allocate mem_attrs_htab.
18018 2014-02-25 Richard Biener <rguenther@suse.de>
18021 * lto-opts.c (lto_write_options): Output non-explicit conservative
18022 -fwrapv, -fno-trapv and -fno-strict-overflow.
18023 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18024 (run_gcc): And pass them through.
18026 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18028 * sel-sched.c (calculate_new_fences): New parameter ptime.
18029 Calculate it as a maximum over all fence cycles.
18030 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18031 Print the final schedule timing when sched_verbose.
18033 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18035 PR rtl-optimization/60292
18036 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18037 bit fot the fence instruction.
18039 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18041 * calls.h: Fix typo in comment.
18043 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18045 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18046 adjusting offsetable addresses.
18048 2014-02-24 Guozhi Wei <carrot@google.com>
18050 * sparseset.h (sparseset_pop): Fix the wrong index.
18052 2014-02-24 Walter Lee <walt@tilera.com>
18054 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18055 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18057 * common/config/tilegx/tilegx-common.c
18058 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18059 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18060 (LINK_SPEC): Ditto.
18061 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18062 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18063 (tilegx_gimplify_va_arg_expr): Handle big endian.
18064 (tilegx_expand_unaligned_load): Ditto.
18065 (tilegx_expand_unaligned_store): Ditto.
18066 (TARGET_RETURN_IN_MSB): New.
18067 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18068 (TARGET_ENDIAN_DEFAULT): New.
18069 (TARGET_BIG_ENDIAN): Handle big endian.
18070 (BYTES_BIG_ENDIAN): Ditto.
18071 (WORDS_BIG_ENDIAN): Ditto.
18072 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18073 (ENDIAN_SPEC): New.
18074 (EXTRA_SPECS): New.
18075 * config/tilegx/tilegx.md (extv): Handle big endian.
18077 (insn_st<n>): Ditto.
18078 (insn_st<n>_add<bitsuffix>): Ditto.
18079 (insn_stnt<n>): Ditto.
18080 (insn_stnt<n>_add<bitsuffix>):Ditto.
18081 (vec_interleave_highv8qi): Handle big endian.
18082 (vec_interleave_highv8qi_be): New.
18083 (vec_interleave_highv8qi_le): New.
18084 (insn_v1int_h): Handle big endian.
18085 (vec_interleave_lowv8qi): Handle big endian.
18086 (vec_interleave_lowv8qi_be): New.
18087 (vec_interleave_lowv8qi_le): New.
18088 (insn_v1int_l): Handle big endian.
18089 (vec_interleave_highv4hi): Handle big endian.
18090 (vec_interleave_highv4hi_be): New.
18091 (vec_interleave_highv4hi_le): New.
18092 (insn_v2int_h): Handle big endian.
18093 (vec_interleave_lowv4hi): Handle big endian.
18094 (vec_interleave_lowv4hi_be): New.
18095 (vec_interleave_lowv4hi_le): New.
18096 (insn_v2int_l): Handle big endian.
18097 (vec_interleave_highv2si): Handle big endian.
18098 (vec_interleave_highv2si_be): New.
18099 (vec_interleave_highv2si_le): New.
18100 (insn_v4int_h): Handle big endian.
18101 (vec_interleave_lowv2si): Handle big endian.
18102 (vec_interleave_lowv2si_be): New.
18103 (vec_interleave_lowv2si_le): New.
18104 (insn_v4int_l): Handle big endian.
18105 * config/tilegx/tilegx.opt (mbig-endian): New option.
18106 (mlittle-endian): New option.
18107 * doc/install.texi: Document tilegxbe-linux.
18108 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18110 2014-02-24 Martin Jambor <mjambor@suse.cz>
18113 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18114 there are no parameter descriptors.
18116 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18118 PR rtl-optimization/60268
18119 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18120 initialization to ...
18121 (sched_rgn_init): ... here.
18122 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18124 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18126 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18129 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18131 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18134 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18136 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18137 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18139 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18141 * config/microblaze/predicates.md: Add cmp_op predicate.
18142 * config/microblaze/microblaze.md: Add branch_compare instruction
18143 which uses cmp_op predicate and emits cmp insn before branch.
18144 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18145 to microblaze_expand_conditional_branch and consolidate logic.
18146 (microblaze_expand_conditional_branch): emit branch_compare
18147 insn instead of handling cmp op separate from branch insn.
18149 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18151 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18154 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18156 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18157 define_insn with define_expand and new define_insn
18158 *altivec_lve<VI_char>x_internal.
18159 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18160 and new define_insn *altivec_stve<VI_char>x_internal.
18161 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18163 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18165 (altivec_expand_stvex_be): New function.
18167 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18169 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18170 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18171 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18172 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18174 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18177 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18178 instead of emit_move_insn.
18180 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18182 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18183 vspltw with vsldoi.
18184 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18185 gen_altivec_vsumsws.
18187 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18189 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18190 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18191 (altivec_lvxl_<mode>): New define_expand incorporating
18192 -maltivec=be semantics where needed.
18193 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18194 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18195 semantics where needed.
18196 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18197 (altivec_stvx_<mode>): New define_expand incorporating
18198 -maltivec=be semantics where needed.
18199 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18200 VM2 iterator instead of V4SI.
18201 (altivec_stvxl_<mode>): New define_expand incorporating
18202 -maltivec=be semantics where needed.
18203 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18204 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18205 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18206 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18207 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18208 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18209 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18210 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18211 ALTIVEC_BUILTIN_STVXL.
18212 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18213 (altivec_expand_stvx_be): Likewise.
18214 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18215 (altivec_expand_lvx_be): Likewise.
18216 (altivec_expand_stvx_be): Likewise.
18217 (altivec_expand_builtin): Add cases for
18218 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18219 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18220 (altivec_init_builtins): Add definitions for
18221 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18222 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18224 2014-02-21 Catherine Moore <clm@codesourcery.com>
18226 * doc/invoke.texi (mvirt, mno-virt): Document.
18227 * config/mips/mips.opt (mvirt): New option.
18228 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18230 2014-02-21 Richard Biener <rguenther@suse.de>
18232 PR tree-optimization/60276
18233 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18234 (STMT_VINFO_MIN_NEG_DIST): New macro.
18235 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18236 STMT_VINFO_MIN_NEG_DIST.
18237 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18238 made for negative dependence distances still hold.
18240 2014-02-21 Richard Biener <rguenther@suse.de>
18242 PR middle-end/60291
18243 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18244 DECL_INITIAL for globals not in the current function context.
18246 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18248 PR tree-optimization/56490
18249 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18250 * tree-ssa-uninit.c: Include params.h.
18251 (compute_control_dep_chain): Add num_calls argument, return false
18252 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18253 num_calls to recursive call.
18254 (find_predicates): Change dep_chain into normal array,
18255 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18256 variable and adjust compute_control_dep_chain caller.
18257 (find_def_preds): Likewise.
18259 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18261 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18262 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18264 2014-02-21 Nick Clifton <nickc@redhat.com>
18266 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18267 (pushhi1): Likewise.
18268 (popqi1): Add mode to pre_dec.
18269 (pophi1): Likewise.
18271 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18273 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18274 mode for mask of V8SFmode permutation.
18276 2014-02-20 Richard Henderson <rth@redhat.com>
18279 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18280 a new pseudo for OLDVAL.
18282 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18285 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18286 gen_reg_rtx if d->testing_p.
18287 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18288 if d->testing_p and we will certainly return true.
18289 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18292 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18294 * emit-rtl.c (gen_reg_rtx): Assert that
18295 crtl->emit.regno_pointer_align_length is non-zero.
18297 2014-02-20 Richard Henderson <rth@redhat.com>
18300 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18301 on failure the store back into EXPECT.
18303 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18304 Sandra Loosemore <sandra@codesourcery.com>
18306 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18307 * config/nios2/nios2.c (nios2_function_profiler): Add
18308 -fPIC (flag_pic == 2) support.
18309 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18310 (nios2_large_offset_p): New function.
18311 (nios2_unspec_reloc_p): Move up position, update to use
18312 nios2_large_offset_p.
18313 (nios2_unspec_address): Remove function.
18314 (nios2_unspec_offset): New function.
18315 (nios2_large_got_address): New function.
18316 (nios2_got_address): Add large offset support.
18317 (nios2_legitimize_tls_address): Update usage of removed and new
18319 (nios2_symbol_binds_local_p): New function.
18320 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18321 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18322 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18323 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18324 processing for (const (unspec ...)).
18325 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18327 2014-02-20 Richard Biener <rguenther@suse.de>
18329 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18330 doing the substitution.
18331 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18333 2014-02-20 Martin Jambor <mjambor@suse.cz>
18336 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18337 info when checking whether lattices are bottom.
18339 2014-02-20 Richard Biener <rguenther@suse.de>
18341 PR middle-end/60221
18342 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18345 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18348 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18349 parameter specifying the scaling.
18350 (inline_call): Update.
18351 (want_inline_recursively): Guard division by zero.
18352 (recursive_inlining): Update.
18353 * ipa-inline.h (clone_inlined_nodes): Update.
18355 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18358 * config/i386/i386.c (classify_argument): Pass structures of size
18359 64 bytes or less in register.
18361 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18362 Kirill Yukhin <kirill.yukhin@intel.com>
18364 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18365 (_mm_rcp28_round_ss): Ditto.
18366 (_mm_rsqrt28_round_sd): Ditto.
18367 (_mm_rsqrt28_round_ss): Ditto.
18368 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18369 (_mm_rcp14_round_ss): Ditto.
18370 (_mm_rsqrt14_round_sd): Ditto.
18371 (_mm_rsqrt14_round_ss): Ditto.
18372 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18373 the first input operand, get rid of match_dup.
18374 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18376 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18378 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18379 operand as the first input operand, set type attribute.
18380 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18381 Set type attribute.
18382 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18383 operand as the first input operand, set type attribute.
18385 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18387 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18390 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18393 * config/i386/i386.c (construct_container): Remove TFmode check
18394 for X86_64_INTEGER_CLASS.
18396 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18399 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18400 only when -Wpsabi is enabled.
18402 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18405 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18406 passing arrays in registers are the same as for structs, so remove the
18407 special case for them.
18409 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18411 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18412 destination type, extract only the valid bits if the source type is not
18413 integral and has a different mode.
18415 2014-02-19 Richard Biener <rguenther@suse.de>
18418 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18421 2014-02-19 Richard Biener <rguenther@suse.de>
18424 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18425 (ipa_modify_call_arguments): Emit an argument load explicitely and
18426 preserve virtual SSA form there and for the replacement call.
18427 Do not update SSA form nor free dominance info.
18429 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18431 * ipa.c (function_and_variable_visibility): Also clear WEAK
18432 flag when disolving COMDAT_GROUP.
18434 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18436 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18437 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18438 not devirtualizing.
18439 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18440 do more sanity checks.
18441 (detect_type_change): Return true when giving up early.
18442 (compute_complex_assign_jump_func): Fix type parameter of
18443 ipa_set_ancestor_jf.
18444 (compute_complex_ancestor_jump_func): Likewise.
18445 (update_jump_functions_after_inlining): Fix updating of
18447 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18449 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18451 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18452 inline clones when edge disappears.
18454 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18457 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18458 Split 64-bit moves into 2 patterns. Do not allow the use of
18459 direct move for TDmode in little endian, since the decimal value
18460 has little endian bytes within a word, but the 64-bit pieces are
18461 ordered in a big endian fashion, and normal subreg's of TDmode are
18463 (mov<mode>_64bit_dm): Likewise.
18464 (movtd_64bit_nodm): Likewise.
18466 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18468 PR tree-optimization/60174
18469 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18470 statement of an SSA_NAME that occurs in an abnormal PHI node.
18472 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18475 * final.c (SEEN_BB): Remove.
18476 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18477 (final_scan_insn): Don't force_source_line on second
18478 NOTE_INSN_BASIC_BLOCK.
18480 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18483 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18484 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18485 (type_natural_mode): Warn ABI change when %zmm register is not
18486 available for AVX512F vector value passing.
18488 2014-02-18 Kai Tietz <ktietz@redhat.com>
18491 * config/i386/i386.c (ix86_expand_prologue): Use value in
18492 rax register as displacement when restoring %r10 or %rax.
18493 Fix wrong offset when restoring both registers.
18495 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18497 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18498 assertion with conditional return.
18500 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18501 Uros Bizjak <ubizjak@gmail.com>
18504 * config/i386/driver-i386.c (host_detect_local_cpu): If
18505 YMM state is not saved by the OS, also clear has_f16c. Move
18506 CPUID 0x80000001 handling before YMM state saving checking.
18508 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18510 PR rtl-optimization/58960
18511 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18512 factored out from ...
18513 (sched_init): ... here.
18514 (free_global_sched_pressure_data): New, factored out from ...
18515 (sched_finish): ... here.
18516 * sched-int.h (free_global_sched_pressure_data): Declare.
18517 * sched-rgn.c (nr_regions_initial): New static global.
18518 (haifa_find_rgns): Initialize it.
18519 (schedule_region): Disable sched-pressure for the newly
18522 2014-02-17 Richard Biener <rguenther@suse.de>
18524 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18525 release SSA defs of pattern stmts.
18527 2014-02-17 Richard Biener <rguenther@suse.de>
18529 * tree-inline.c (expand_call_inline): Release the virtual
18530 operand defined by the call we are about to inline.
18532 2014-02-17 Richard Biener <rguenther@suse.de>
18534 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18536 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18537 Ilya Tocar <ilya.tocar@intel.com>
18539 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18540 arguments order in builtin.
18541 (_mm512_permutexvar_epi64): Ditto.
18542 (_mm512_mask_permutexvar_epi64): Ditto
18543 (_mm512_maskz_permutexvar_epi32): Ditto
18544 (_mm512_permutexvar_epi32): Ditto
18545 (_mm512_mask_permutexvar_epi32): Ditto
18547 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18549 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18550 (p8_vmrgow): Likewise.
18552 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18554 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18557 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18560 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18561 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18562 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18563 using direct move instructions on ISA 2.07. Also adjust
18564 instruction length for 64-bit.
18565 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18566 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18568 2014-02-15 Alan Modra <amodra@gmail.com>
18572 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18573 find_replacement on parts of insn rtl that might be reloaded.
18575 2014-02-15 Richard Biener <rguenther@suse.de>
18577 PR tree-optimization/60183
18578 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18579 (tree_ssa_phiprop): Calculate and free post-dominators.
18581 2014-02-14 Jeff Law <law@redhat.com>
18583 PR rtl-optimization/60131
18584 * ree.c (get_extended_src_reg): New function.
18585 (combine_reaching_defs): Use it rather than assuming location of REG.
18586 (find_and_remove_re): Verify first operand of extension is
18587 a REG before adding the insns to the copy list.
18589 2014-02-14 Roland McGrath <mcgrathr@google.com>
18591 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18592 * configure: Regenerated.
18593 * config.in: Regenerated.
18594 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18595 instead of ASM_SHORT.
18597 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18598 Richard Earnshaw <rearnsha@arm.com>
18600 PR rtl-optimization/59535
18601 * lra-constraints.c (process_alt_operands): Encourage alternative
18602 when unassigned pseudo class is superset of the alternative class.
18603 (inherit_reload_reg): Don't inherit when optimizing for code size.
18604 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18605 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18606 modes not less than 4 for Thumb1.
18608 2014-02-14 Kyle McMartin <kyle@redhat.com>
18611 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18613 2014-02-14 Richard Biener <rguenther@suse.de>
18615 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18616 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18617 Do not strip INDIRECT_REFs.
18619 2014-02-14 Richard Biener <rguenther@suse.de>
18622 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18623 DECL_FUNCTION_SPECIFIC_TARGET.
18624 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18625 * tree-streamer-out.c (pack_ts_target_option): Remove.
18626 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18627 (write_ts_function_decl_tree_pointers): Do not stream
18628 DECL_FUNCTION_SPECIFIC_TARGET.
18629 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18630 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18631 (lto_input_ts_function_decl_tree_pointers): Do not stream
18632 DECL_FUNCTION_SPECIFIC_TARGET.
18634 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18636 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18637 (get_initial_def_for_induction, vectorizable_induction): Ignore
18638 debug stmts when looking for exit_phi.
18639 (vectorizable_live_operation): Fix up condition.
18641 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18643 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18644 nreverse() because it changes the content of original tree list.
18646 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18648 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18649 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18651 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18653 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18654 GNU coding standards.
18656 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18659 * dwarf2out.c (gen_subprogram_die): Don't call
18660 add_calling_convention_attribute if subr_die is old_die.
18662 2014-02-13 Sharad Singhai <singhai@google.com>
18664 * doc/optinfo.texi: Fix order of nodes.
18666 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18668 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18669 operands[2], not operands[3].
18671 2014-02-13 Richard Biener <rguenther@suse.de>
18674 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18675 mention the possibility of an in-tree build.
18676 (CLooG): Update recommended version to 0.18.1, mention the
18677 possibility of an in-tree build and clarify that the ISL
18678 bundled with CLooG does not work.
18680 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18683 * expr.c (compress_float_constant): If x is a hard register,
18684 extend into a pseudo and then move to x.
18686 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18688 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18689 caused by bad second argument to warning_at() with -mhotpatch and
18690 nested functions (e.g. with gfortran).
18692 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18694 * opts.c (option_name): Remove "enabled by default" rider.
18696 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18698 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18700 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18701 Uros Bizjak <ubizjak@gmail.com>
18704 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18705 * configure: Regenerated.
18707 2014-02-12 Richard Biener <rguenther@suse.de>
18709 * vec.c (vec_prefix::calculate_allocation): Move as
18710 inline variant to vec.h.
18711 (vec_prefix::calculate_allocation_1): New out-of-line version.
18712 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18713 (vec_prefix::m_has_auto_buf): Rename to ...
18714 (vec_prefix::m_using_auto_storage): ... this.
18715 (vec_prefix::calculate_allocation): Inline the easy cases
18716 and dispatch to calculate_allocation_1 which doesn't need the
18718 (va_heap::reserve): Use gcc_checking_assert.
18719 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18720 m_using_auto_storage.
18721 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18723 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18724 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18725 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18727 2014-02-12 Richard Biener <rguenther@suse.de>
18729 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18730 when we found a dependence.
18732 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18734 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18736 (maybe_fold_stmt): ... into this new function.
18737 * omp-low.c (lower_omp): Update comment.
18739 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18742 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18745 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18747 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18748 identifiers in comments.
18749 (cortexa53_extra_costs): Likewise.
18750 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18751 (cortexa7_extra_costs): Likewise.
18752 (cortexa12_extra_costs): Likewise.
18753 (cortexa15_extra_costs): Likewise.
18754 (v7m_extra_costs): Likewise.
18756 2014-02-12 Richard Biener <rguenther@suse.de>
18758 PR middle-end/60092
18759 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18760 of posix_memalign being successful.
18761 (lower_stmt): Restrict lowering of posix_memalign to when
18762 -ftree-bit-ccp is enabled.
18764 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18766 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18768 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18770 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18772 PR rtl-optimization/60116
18773 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18774 other_insn once the combination has been validated.
18776 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18779 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18781 * ipa-devirt.c: Include demangle.h
18782 (odr_violation_reported): New static variable.
18783 (add_type_duplicate): Update odr_violations.
18784 (maybe_record_node): Add completep parameter; update it.
18785 (record_target_from_binfo): Add COMPLETEP parameter;
18786 update it as needed.
18787 (possible_polymorphic_call_targets_1): Likewise.
18788 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18789 rename FINAL to COMPLETE.
18790 (record_targets_from_bases): Sanity check we found the binfo;
18791 fix COMPLETEP updating.
18792 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18793 parameter, fix computing of COMPLETEP.
18794 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18795 at LTO time do demangling.
18796 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18797 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18799 (gimple_get_virt_method_for_binfo): Likewise.
18800 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18801 gimple_get_virt_method_for_vtable): Update prototypes.
18803 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18806 * genautomata.c (add_presence_absence): Fix typo with
18807 {final_}presence_list.
18809 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18812 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18813 for VSX/Altivec vectors that land in GPR registers.
18815 2014-02-11 Richard Henderson <rth@redhat.com>
18816 Jakub Jelinek <jakub@redhat.com>
18819 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18820 around drhs if type conversion to lacc->type is not useless.
18822 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18824 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18826 (cortex-a57.cortex-a53): Likewise.
18827 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18829 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18831 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18834 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18836 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18837 add_options_for_arm_vfp3.
18839 2014-02-11 Jeff Law <law@redhat.com>
18841 PR middle-end/54041
18842 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18843 object with an undesirable mode.
18845 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18848 * config/i386/sol2-9.h: New file.
18849 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18850 *-*-solaris2.9*): Use it.
18852 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18854 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18855 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18857 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18859 * config/microblaze/microblaze.c: Extend mcpu version format
18861 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18863 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18865 2014-02-10 Richard Henderson <rth@redhat.com>
18868 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18869 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18870 ms-abi vs -mno-accumulate-outgoing-args.
18871 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18872 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18875 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18877 PR middle-end/60080
18878 * cfgexpand.c (expand_asm_operands): Attach source location to
18879 ASM_INPUT rtx objects.
18880 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18882 2014-02-10 Nick Clifton <nickc@redhat.com>
18884 * config/mn10300/mn10300.c (popcount): New function.
18885 (mn10300_expand_prologue): Include saved registers in stack usage
18888 2014-02-10 Jeff Law <law@redhat.com>
18890 PR middle-end/52306
18891 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18892 when changing the SET_DEST of a prior insn to avoid an input reload.
18894 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18896 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18897 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18898 -mcall-openbsd, or -mcall-linux.
18899 (CC1_ENDIAN_BIG_SPEC): Remove.
18900 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18901 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18902 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18903 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18904 and %cc1_endian_default.
18905 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18907 2014-02-10 Richard Biener <rguenther@suse.de>
18909 PR tree-optimization/60115
18910 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18911 MEM_REF handling. Properly verify that the accesses are not
18912 out of the objects bound.
18914 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18916 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18919 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18921 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18922 proper constants and fix formatting.
18923 (possible_polymorphic_call_targets): Fix formatting.
18925 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18926 Ilya Tocar <ilya.tocar@intel.com>
18928 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18929 (_mm512_loadu_epi32): Renamed into...
18930 (_mm512_loadu_si512): This.
18931 (_mm512_storeu_epi32): Renamed into...
18932 (_mm512_storeu_si512): This.
18933 (_mm512_maskz_ceil_ps): Removed.
18934 (_mm512_maskz_ceil_pd): Ditto.
18935 (_mm512_maskz_floor_ps): Ditto.
18936 (_mm512_maskz_floor_pd): Ditto.
18937 (_mm512_floor_round_ps): Ditto.
18938 (_mm512_floor_round_pd): Ditto.
18939 (_mm512_ceil_round_ps): Ditto.
18940 (_mm512_ceil_round_pd): Ditto.
18941 (_mm512_mask_floor_round_ps): Ditto.
18942 (_mm512_mask_floor_round_pd): Ditto.
18943 (_mm512_mask_ceil_round_ps): Ditto.
18944 (_mm512_mask_ceil_round_pd): Ditto.
18945 (_mm512_maskz_floor_round_ps): Ditto.
18946 (_mm512_maskz_floor_round_pd): Ditto.
18947 (_mm512_maskz_ceil_round_ps): Ditto.
18948 (_mm512_maskz_ceil_round_pd): Ditto.
18949 (_mm512_expand_pd): Ditto.
18950 (_mm512_expand_ps): Ditto.
18951 * config/i386/i386.c (ix86_builtins): Remove
18952 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18953 (bdesc_args): Ditto.
18954 * config/i386/predicates.md (const1256_operand): New.
18955 (const_1_to_2_operand): Ditto.
18956 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18957 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18958 (*avx512pf_gatherpf<mode>sf): Ditto.
18959 (avx512pf_gatherpf<mode>df): Ditto.
18960 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18961 (*avx512pf_gatherpf<mode>df): Ditto.
18962 (avx512pf_scatterpf<mode>sf): Ditto.
18963 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18964 (*avx512pf_scatterpf<mode>sf): Ditto.
18965 (avx512pf_scatterpf<mode>df): Ditto.
18966 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18967 (*avx512pf_scatterpf<mode>df): Ditto.
18968 (avx512f_expand<mode>): Removed.
18969 (<shift_insn><mode>3<mask_name>): Change predicate type.
18971 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18973 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18974 not at the end of datarefs vector use ordered_remove to avoid
18975 reordering datarefs vector.
18978 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18979 mark local addressable non-static vars as GOVD_PRIVATE
18980 instead of GOVD_LOCAL.
18981 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18982 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18985 PR middle-end/60092
18986 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18987 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18988 assume_aligned or alloc_align attributes.
18989 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18990 arguments. Handle also assume_aligned and alloc_align attributes.
18991 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18992 calls to functions with assume_aligned or alloc_align attributes.
18993 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18995 2014-02-08 Terry Guo <terry.guo@arm.com>
18997 * doc/invoke.texi: Document ARM -march=armv7e-m.
18999 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19001 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19002 flag on __cilkrts_rethrow builtin.
19005 * ipa-cp.c (determine_versionability): Fail at -O0
19006 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19007 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19010 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19013 * tree-inline.c (copy_forbidden): Fail for
19014 __attribute__((optimize (0))) functions.
19016 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19018 * varpool.c: Include pointer-set.h.
19019 (varpool_remove_unreferenced_decls): Variables in other partitions
19020 will not be output; be however careful to not lose information
19021 about partitioning.
19023 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19025 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19026 lookup in the vtable constructor.
19028 2014-02-07 Jeff Law <law@redhat.com>
19031 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19032 define_insn_and_split.
19034 * ipa-inline.c (inline_small_functions): Fix typos.
19036 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19038 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19039 (s390_can_use_return_insn): Declare.
19040 * config/s390/s390.h (EPILOGUE_USES): Define.
19041 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19043 (s390_chunkify_start): Handle return JUMP_LABELs.
19044 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19045 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19046 (s390_can_use_return_insn): New functions.
19047 (s390_fix_long_loop_prediction): Handle conditional returns.
19048 (TARGET_SET_UP_BY_PROLOGUE): Define.
19049 * config/s390/s390.md (ANY_RETURN): New code iterator.
19050 (*creturn, *csimple_return, return, simple_return): New patterns.
19052 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19054 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19055 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19056 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19057 REG_CFA_RESTORE list when deciding not to restore a register.
19059 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19061 * config/s390/s390.c: Include tree-pass.h and context.h.
19062 (s390_early_mach): New function, split out from...
19063 (s390_emit_prologue): ...here.
19064 (pass_data_s390_early_mach): New pass structure.
19065 (pass_s390_early_mach): New class.
19066 (s390_option_override): Create and register early_mach pass.
19067 Move to end of file.
19069 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19071 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19072 to match for the exit block.
19074 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19076 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19077 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19078 Reject misaligned operands.
19080 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19082 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19084 2014-02-07 Richard Biener <rguenther@suse.de>
19086 PR middle-end/60092
19087 * gimple-low.c (lower_builtin_posix_memalign): New function.
19088 (lower_stmt): Call it to lower posix_memalign in a way
19089 to make alignment info accessible.
19091 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19094 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19095 __builtin_setjmp_receiver.
19097 2014-02-07 Richard Biener <rguenther@suse.de>
19099 PR middle-end/60092
19100 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19101 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19102 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19103 Handle BUILT_IN_POSIX_MEMALIGN.
19104 (find_func_clobbers): Likewise.
19105 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19106 (call_may_clobber_ref_p_1): Likewise.
19108 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19111 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19114 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19117 * lto-cgraph.c (lto_output_node): Use
19118 symtab_get_symbol_partitioning_class.
19119 (lto_output_varpool_node): likewise.
19120 (symtab_get_symbol_partitioning_class): Move here from
19121 lto/lto-partition.c
19122 * cgraph.h (symbol_partitioning_class): Likewise.
19123 (symtab_get_symbol_partitioning_class): Declare.
19125 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19127 * ggc.h (ggc_internal_cleared_alloc): New macro.
19128 * vec.h (vec_safe_copy): Handle memory stats.
19129 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19130 * target-globals.c (save_target_globals): Likewise.
19132 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19135 * expr.c (emit_move_resolve_push): Export; be bit more selective
19136 on when to clear alias set.
19137 * expr.h (emit_move_resolve_push): Declare.
19138 * function.h (struct function): Add tail_call_marked.
19139 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19140 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19141 * config/i386/i386.md (TImode move expander): De not call
19143 (FP push expanders): Preserve memory attributes.
19144 * config/i386/sse.md (push<mode>1): Remove.
19145 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19146 (ix86_expand_push): Remove.
19147 * config/i386/mmx.md (push<mode>1): Remove.
19149 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19151 PR rtl-optimization/60030
19152 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19153 lopart with paradoxical subreg before shifting it up by hprec.
19155 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19157 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19158 Remove extra newline at end of file.
19159 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19160 (arm_issue_rate): Handle cortexa57.
19161 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19162 (cortex-a57.cortex-a53): Likewise.
19164 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19167 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19168 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19170 (arm_expand_prologue): Adjust all callers.
19171 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19172 info, registers also at the lowest numbered registers side. Use
19173 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19177 * var-tracking.c (adjust_mems): Before adding a SET to
19178 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19180 2014-02-06 Alan Modra <amodra@gmail.com>
19183 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19184 change SDmode to DDmode when lra_in_progress.
19186 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19188 PR middle-end/59150
19189 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19190 free_data_ref on the dr first, and before goto again also set dr
19191 to the next dr. For simd_lane_access, free old datarefs[i] before
19192 overwriting it. For get_vectype_for_scalar_type failure, don't
19193 free_data_ref if simd_lane_access.
19195 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19198 * tree.h (opts_for_fn): New inline function.
19199 (opt_for_fn): Define.
19200 * config/i386/i386.c (ix86_function_regparm): Use
19201 opt_for_fn (decl, optimize) instead of optimize.
19203 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19205 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19206 for SYMBOL_REF in large memory model.
19208 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19210 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19211 and crypto support.
19212 (cortex-a57): Likewise.
19213 (cortex-a57.cortex-a53): Likewise.
19215 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19216 Kugan Vivekanandarajah <kuganv@linaro.org>
19218 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19220 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19222 2014-02-06 Richard Biener <rguenther@suse.de>
19224 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19225 set_loop_copy and initialize_original_copy_tables.
19227 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19229 * config/aarch64/aarch64-simd.md
19230 (aarch64_ashr_simddi): Change QI to SI.
19232 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19233 Jakub Jelinek <jakub@redhat.com>
19235 PR middle-end/60013
19236 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19239 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19241 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19242 CODE_FOR_altivec_vpku[hw]um to
19243 CODE_FOR_altivec_vpku[hw]um_direct.
19244 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19245 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19246 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19247 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19249 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19251 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19252 generation for -maltivec=be.
19253 (altivec_vsumsws): Simplify redundant test.
19255 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19257 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19258 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19259 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19260 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19261 gen_altivec_vpkuwum.
19262 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19264 (altivec_vpks<VI_char>ss): Likewise.
19265 (altivec_vpks<VI_char>us): Likewise.
19266 (altivec_vpku<VI_char>us): Likewise.
19267 (altivec_vpku<VI_char>um): Likewise.
19268 (altivec_vpku<VI_char>um_direct): New (copy of
19269 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19271 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19272 target is little endian and -maltivec=be is not specified.
19273 (*altivec_vupkhs<VU_char>_direct): New (copy of
19274 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19275 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19276 target is little endian and -maltivec=be is not specified.
19277 (*altivec_vupkls<VU_char>_direct): New (copy of
19278 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19279 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19280 little endian and -maltivec=be is not specified.
19281 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19282 little endian and -maltivec=be is not specified.
19284 2014-02-05 Richard Henderson <rth@redhat.com>
19287 * combine-stack-adj.c: Revert r206943.
19288 * sched-int.h (struct deps_desc): Add last_args_size.
19289 * sched-deps.c (init_deps): Initialize it.
19290 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19291 contain REG_ARGS_SIZE notes.
19293 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19295 * lto-cgraph.c (asm_nodes_output): Make global.
19296 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19297 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19298 (driver_handle_option): Handle OPT_fwpa.
19300 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19303 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19304 a comment typo and formatting issue. If odr_hash hasn't been
19305 created, return vNULL and set *completep to false.
19307 PR middle-end/57499
19308 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19309 bb with no successors.
19311 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19314 * doc/invoke.texi (-march): Clarify documentation for ARM.
19315 (-mtune): Likewise.
19318 2014-02-05 Richard Biener <rguenther@suse.de>
19320 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19321 when not vectorizing because of too many alias checks.
19322 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19323 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19325 2014-02-05 Nick Clifton <nickc@redhat.com>
19327 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19328 accept extended registers in any mode when compiling for the MN10300.
19330 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19332 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19333 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19334 sanitization attributes.
19335 (can_inline_edge_p): Likewise.
19336 (sanitize_attrs_match_for_inline_p): New function.
19338 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19340 * ipa-prop.c (detect_type_change): Shor circuit testing of
19341 type changes on THIS pointer.
19343 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19346 * config/pa/pa.c (legitimize_tls_address): Return original address
19347 if not passed a SYMBOL_REF rtx.
19348 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19350 (pa_emit_move_sequence): Simplify TLS source operands.
19351 (pa_legitimate_constant_p): Reject all TLS constants.
19352 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19353 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19355 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19357 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19358 groups when we know they are controlled by LTO.
19359 * varasm.c (default_binds_local_p_1): If object is in other partition,
19360 it will be resolved locally.
19362 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19364 * config/host-linux.c (linux_gt_pch_use_address): Don't
19365 use SSIZE_MAX because it is not always defined.
19367 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19370 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19371 threshold for pseudo splitting.
19372 (update_ebb_live_info): Process call argument hard registers and
19373 hard registers from insn definition too.
19374 (max_small_class_regs_num): New constant.
19375 (inherit_in_ebb): Update live hard regs through EBBs. Update
19376 reloads_num only for small register classes. Don't split for
19379 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19382 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19385 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19387 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19388 visibility is safe.
19390 2014-02-04 Marek Polacek <polacek@redhat.com>
19392 * gdbinit.in (pel): Define.
19394 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19396 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19399 2014-02-04 Richard Biener <rguenther@suse.de>
19402 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19403 in function context local.
19404 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19405 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19406 similar to LTO_imported_decl_ref.
19408 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19410 PR tree-optimization/60002
19411 * cgraphclones.c (build_function_decl_skip_args): Clear
19412 DECL_LANG_SPECIFIC.
19414 PR tree-optimization/60023
19415 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19416 false to gsi_replace.
19417 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19418 has been in some EH region and vec_stmt could throw, add
19419 vec_stmt into the same EH region.
19420 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19421 has no lhs, ignore it.
19422 * internal-fn.c (expand_MASK_LOAD): Likewise.
19425 * tree-inline.c (copy_forbidden): Fail for
19426 __attribute__((optimize (0))) functions.
19429 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19430 is set, copy one less argument.
19431 (expand_simd_clones): Don't subtract clone_info->inbranch
19432 from simd_clone_struct_alloc argument.
19434 PR rtl-optimization/57915
19435 * recog.c (simplify_while_replacing): If all unary/binary/relational
19436 operation arguments are constant, attempt to simplify those.
19438 PR middle-end/59261
19439 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19440 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19442 2014-02-04 Richard Biener <rguenther@suse.de>
19444 PR tree-optimization/60012
19445 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19446 TBAA disambiguation to all DDRs.
19448 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19451 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19452 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19454 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19457 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19459 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19461 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19462 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19464 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19467 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19468 to figure out targets of polymorphic calls with known decl.
19469 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19470 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19471 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19472 (get_polymorphic_call_info): ... here.
19473 (get_polymorphic_call_info_from_invariant): New function.
19475 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19477 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19478 lookup via vtable pointer; check for type consistency
19479 and turn inconsitent facts into UNREACHABLE.
19480 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19481 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19482 type inconsistent querries; return UNREACHABLE instead.
19484 2014-02-03 Richard Henderson <rth@twiddle.net>
19487 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19488 already processed this node.
19489 (normalize_one_pred_1): Pass along mark_set.
19490 (normalize_one_pred): Create and destroy a pointer_set_t.
19491 (normalize_one_pred_chain): Likewise.
19493 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19495 PR gcov-profile/58602
19496 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19498 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19501 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19502 -fno-devirtualize; try to devirtualize by the knowledge of
19503 virtual table pointer given by aggregate propagation.
19504 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19505 (ipa_print_node_jump_functions): Dump also offset that
19506 is relevant for polymorphic calls.
19507 (determine_known_aggregate_parts): Add arg_type parameter; use it
19508 instead of determining the type from pointer type.
19509 (ipa_compute_jump_functions_for_edge): Update call of
19510 determine_known_aggregate_parts.
19511 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19512 (gimple_get_virt_method_for_binfo): ... here; simplify using
19513 vtable_pointer_value_to_vtable.
19514 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19515 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19516 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19517 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19519 (vtable_pointer_value_to_binfo): ... here.
19520 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19522 2014-02-03 Teresa Johnson <tejohnson@google.com>
19524 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19525 redef of outer loop index variable.
19527 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19531 * doc/extend.texi (Function Attributes): Typo.
19533 2014-02-03 Cong Hou <congh@google.com>
19535 PR tree-optimization/60000
19536 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19537 if the vectorized statement is a store. A store statement can only
19538 appear at the end of pattern statements.
19540 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19542 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19543 (ix86_option_override_internal): Default long double to 64-bit for
19544 32-bit Bionic and to 128-bit for 64-bit Bionic.
19546 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19547 TARGET_LONG_DOUBLE_128 is true.
19548 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19550 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19551 (mlong-double-64): Negate -mlong-double-128.
19552 (mlong-double-128): New option.
19554 * config/i386/i386-c.c (ix86_target_macros): Define
19555 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19557 * doc/invoke.texi: Document -mlong-double-128.
19559 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19561 PR rtl-optimization/60024
19562 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19564 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19566 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19568 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19570 PR rtl-optimization/57662
19571 * sel-sched.c (code_motion_path_driver): Do not mark already not
19572 existing blocks in the visiting bitmap.
19574 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19576 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19577 on the insn being emitted.
19579 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19580 Will Deacon <will.deacon@arm.com>
19582 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19584 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19586 * config/arm/arm-tables.opt: Regenerate.
19588 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19590 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19591 for vector types other than V16QImode.
19592 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19593 define_expand, and call altivec_expand_vec_perm_le when producing
19594 code with little endian element order.
19595 (*altivec_vperm_<mode>_internal): New insn having previous
19596 behavior of altivec_vperm_<mode>.
19597 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19598 altivec_expand_vec_perm_le when producing code with little endian
19600 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19601 behavior of altivec_vperm_<mode>_uns.
19603 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19605 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19606 (altivec_vsumsws): Add handling for -maltivec=be with a little
19608 (altivec_vsumsws_direct): New.
19609 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19610 gen_altivec_vsumsws.
19612 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19614 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19615 vtable_pointer_value_to_binfo): New functions.
19616 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19617 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19619 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19621 * config/nios2/nios2.md (load_got_register): Initialize GOT
19622 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19623 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19625 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19627 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19628 preserverd by passthrough, do not propagate the type.
19630 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19632 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19633 (mips_atomic_assign_expand_fenv): New function.
19634 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19636 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19638 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19639 (__builtin_mips_set_fcsr): Likewise.
19640 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19641 MIPS_USI_FTYPE_VOID.
19642 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19643 (mips16_expand_set_fcsr): Likewise.
19644 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19645 (mips16_set_fcsr_stub): Likewise.
19646 (mips16_get_fcsr_one_only_stub): New class.
19647 (mips16_set_fcsr_one_only_stub): Likewise.
19648 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19649 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19650 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19651 (hard_float): New availability predicate.
19652 (mips_builtins): Add get_fcsr and set_fcsr.
19653 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19654 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19655 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19656 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19657 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19660 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19662 * config/mips/mips.c (mips_one_only_stub): New class.
19663 (mips_need_mips16_rdhwr_p): Replace with...
19664 (mips16_rdhwr_stub): ...this new variable.
19665 (mips16_stub_call_address): New function.
19666 (mips16_rdhwr_one_only_stub): New class.
19667 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19668 (mips_output_mips16_rdhwr): Delete.
19669 (mips_finish_stub): New function.
19670 (mips_code_end): Use it to handle rdhwr stubs.
19672 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19675 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19676 when calculating size of integer atomic types.
19678 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19680 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19682 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19684 PR tree-optimization/60003
19685 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19686 * profile.c (branch_prob): Use gimple_call_builtin_p
19687 to check for BUILT_IN_SETJMP_RECEIVER.
19688 * tree-inline.c (copy_bb): Call notice_special_calls.
19690 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19693 * lra-constraints.c (process_alt_operands): Update reload_sum only
19696 2014-01-31 Richard Henderson <rth@redhat.com>
19698 PR middle-end/60004
19699 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19700 until after else_eh is processed.
19702 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19704 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19705 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19706 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19707 in smmintrin.h, remove them.
19708 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19709 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19710 * config/i386/i386.md (ROUND_SAE): Fix value.
19711 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19712 (const48_operand): New.
19713 * config/i386/subst.md (round), (round_expand): Use
19714 const_4_or_8_to_11_operand.
19715 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19717 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19719 * config/i386/constraints.md (Yk): Swap meaning with k.
19720 * config/i386/i386.md (movhi_internal): Change Yk to k.
19721 (movqi_internal): Ditto.
19722 (*k<logic><mode>): Ditto.
19725 (kandn<mode>): Ditto.
19726 (*<code>hi_1): Ditto.
19727 (*<code>qi_1): Ditto.
19728 (kxnor<mode>): Ditto.
19729 (kortestzhi): Ditto.
19730 (kortestchi): Ditto.
19732 (*one_cmplhi2_1): Ditto.
19733 (*one_cmplqi2_1): Ditto.
19734 * config/i386/sse.md (): Change k to Yk.
19735 (avx512f_load<mode>_mask): Ditto.
19736 (avx512f_blendm<mode>): Ditto.
19737 (avx512f_store<mode>_mask): Ditto.
19738 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19739 (avx512f_storedqu<mode>_mask): Ditto.
19740 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19742 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19743 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19744 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19745 (avx512f_maskcmp<mode>3): Ditto.
19746 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19747 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19748 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19749 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19750 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19751 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19752 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19753 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19754 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19755 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19756 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19757 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19758 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19759 (vec_extract_lo_<mode>_maskm): Ditto.
19760 (vec_extract_hi_<mode>_maskm): Ditto.
19761 (avx512f_vternlog<mode>_mask): Ditto.
19762 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19763 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19764 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19765 (avx512f_<code>v8div16qi2_mask): Ditto.
19766 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19767 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19768 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19769 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19770 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19771 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19772 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19773 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19774 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19775 (avx512cd_maskb_vec_dupv8di): Ditto.
19776 (avx512cd_maskw_vec_dupv16si): Ditto.
19777 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19778 (avx512f_vpermi2var<mode>3_mask): Ditto.
19779 (avx512f_vpermi2var<mode>3_mask): Ditto.
19780 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19781 (*avx512f_gathersi<mode>): Ditto.
19782 (*avx512f_gathersi<mode>_2): Ditto.
19783 (*avx512f_gatherdi<mode>): Ditto.
19784 (*avx512f_gatherdi<mode>_2): Ditto.
19785 (*avx512f_scattersi<mode>): Ditto.
19786 (*avx512f_scatterdi<mode>): Ditto.
19787 (avx512f_compress<mode>_mask): Ditto.
19788 (avx512f_compressstore<mode>_mask): Ditto.
19789 (avx512f_expand<mode>_mask): Ditto.
19790 * config/i386/subst.md (mask): Change k to Yk.
19791 (mask_scalar_merge): Ditto.
19794 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19796 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19798 2014-01-31 Richard Biener <rguenther@suse.de>
19800 PR middle-end/59990
19801 * builtins.c (fold_builtin_memory_op): Make sure to not
19802 use a floating-point mode or a boolean or enumeral type for
19803 the copy operation.
19805 2014-01-30 DJ Delorie <dj@redhat.com>
19807 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19808 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19809 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19810 whenever main() has an epilogue.
19812 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19814 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19815 unused variable "field".
19816 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19817 (vsx_mergeh_<mode>): Likewise.
19818 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19819 (altivec_vmrghh): Likewise.
19820 (altivec_vmrghw): Likewise.
19821 (altivec_vmrglb): Likewise.
19822 (altivec_vmrglh): Likewise.
19823 (altivec_vmrglw): Likewise.
19824 (altivec_vspltb): Add missing uses.
19825 (altivec_vsplth): Likewise.
19826 (altivec_vspltw): Likewise.
19827 (altivec_vspltsf): Likewise.
19829 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19832 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19833 frame related instructions.
19835 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19837 PR rtl-optimization/59959
19838 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19839 any reload of register whose subreg is invalid.
19841 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19843 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19844 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19845 Add missing return type - void.
19847 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19849 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19850 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19851 remove element index adjustment for endian (now handled in vsx.md
19853 (altivec_expand_vec_perm_const): Use
19854 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19855 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19856 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19857 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19858 define_expand and a new define_insn *altivec_vspltb_internal;
19859 adjust for -maltivec=be on a little endian target.
19860 (altivec_vspltb_direct): New.
19861 (altivec_vsplth): Divide into a define_expand and a new
19862 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19863 little endian target.
19864 (altivec_vsplth_direct): New.
19865 (altivec_vspltw): Divide into a define_expand and a new
19866 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19867 little endian target.
19868 (altivec_vspltw_direct): New.
19869 (altivec_vspltsf): Divide into a define_expand and a new
19870 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19871 a little endian target.
19873 2014-01-30 Richard Biener <rguenther@suse.de>
19875 PR tree-optimization/59993
19876 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19877 can propagate form the earlier stmt and avoid the transform
19878 when the intermediate result is needed.
19880 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19882 * README.Portability: Fix typo.
19884 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19886 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19887 comparison_operator with ordered_comparison_operator.
19889 2014-01-30 Nick Clifton <nickc@redhat.com>
19891 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19892 Rename to mn10300_store_multiple_regs.
19893 * config/mn10300/mn10300.c: Likewise.
19894 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19895 store_multiple_regs.
19896 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19897 Call mn10300_store_multiple_regs.
19899 2014-01-30 Nick Clifton <nickc@redhat.com>
19900 DJ Delorie <dj@redhat.com>
19902 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19903 %fp 2 to keep registers after it properly word-aligned.
19904 (rl78_alloc_physical_registers_umul): Handle the case where both
19905 input operands are the same.
19907 2014-01-30 Richard Biener <rguenther@suse.de>
19909 PR tree-optimization/59903
19910 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19913 2014-01-30 Jason Merrill <jason@redhat.com>
19916 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19919 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19921 2014-01-30 Richard Biener <rguenther@suse.de>
19923 PR tree-optimization/59951
19924 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19926 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19929 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19930 SFmode to DFmode case.
19932 2014-01-29 DJ Delorie <dj@redhat.com>
19934 * config/msp430/msp430.opt (-minrt): New.
19935 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19937 (ENDFILE_SPEC): Likewise.
19939 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19941 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19942 (estimate_function_body_sizes): Use it.
19944 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19947 * dwarf2out.c (is_cxx_auto): New.
19948 (is_base_type): Use it.
19949 (gen_type_die_with_usage): Likewise.
19951 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19953 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19954 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19955 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19956 -maltivec=be with LE targets.
19957 (vsx_mergeh_<mode>): Likewise.
19958 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19959 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19960 (altivec_vmrghb): Replace with define_expand and new
19961 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19962 (altivec_vmrghb_direct): New define_insn.
19963 (altivec_vmrghh): Replace with define_expand and new
19964 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19965 (altivec_vmrghh_direct): New define_insn.
19966 (altivec_vmrghw): Replace with define_expand and new
19967 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19968 (altivec_vmrghw_direct): New define_insn.
19969 (*altivec_vmrghsf): Adjust for endianness.
19970 (altivec_vmrglb): Replace with define_expand and new
19971 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19972 (altivec_vmrglb_direct): New define_insn.
19973 (altivec_vmrglh): Replace with define_expand and new
19974 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19975 (altivec_vmrglh_direct): New define_insn.
19976 (altivec_vmrglw): Replace with define_expand and new
19977 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19978 (altivec_vmrglw_direct): New define_insn.
19979 (*altivec_vmrglsf): Adjust for endianness.
19980 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19981 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19982 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19983 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19984 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19985 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19986 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19987 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19989 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19991 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19992 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19995 2014-01-29 Richard Biener <rguenther@suse.de>
19997 PR tree-optimization/58742
19998 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19999 associate_pointerplus_align.
20000 (associate_pointerplus_diff): New function.
20001 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20002 and associate_pointerplus_diff.
20004 2014-01-29 Richard Biener <rguenther@suse.de>
20006 * lto-streamer.h (LTO_major_version): Bump to 3.
20007 (LTO_minor_version): Reset to 0.
20009 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20011 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20012 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20013 (arm_file_start): Generate correct asm header for armv7ve.
20014 * config/arm/bpabi.h: Add multilib support for armv7ve.
20015 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20016 and cortex-a15 to armv7ve.
20017 * config/arm/t-aprofile: Add multilib support for armv7ve.
20018 * doc/invoke.texi: Document -march=armv7ve.
20020 2014-01-29 Richard Biener <rguenther@suse.de>
20022 PR tree-optimization/58742
20023 * tree-ssa-forwprop.c (associate_plusminus): Return true
20024 if we changed sth, defer EH cleanup to ...
20025 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20026 (simplify_mult): New function.
20028 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20030 PR middle-end/59917
20031 PR tree-optimization/59920
20032 * tree.c (build_common_builtin_nodes): Remove
20033 __builtin_setjmp_dispatcher initialization.
20034 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20035 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20036 instead of gsi_after_labels + manually skipping debug stmts.
20037 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20038 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20039 * tree-inline.c (copy_edges_for_bb): Remove
20040 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20041 argument. Ignore computed_goto_p stmts. Don't call
20042 make_abnormal_goto_edges. If a call might need abnormal edges
20043 for non-local gotos, see if it already has an edge to
20044 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20045 with true argument, don't do anything then, otherwise add
20046 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20047 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20049 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20050 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20051 (lower_stmt): Don't set data->calls_builtin_setjmp.
20052 (lower_builtin_setjmp): Adjust comment.
20053 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20054 * tree-cfg.c (found_computed_goto): Remove.
20055 (factor_computed_gotos): Remove.
20056 (make_goto_expr_edges): Return bool, true for computed gotos.
20057 Don't call make_abnormal_goto_edges.
20058 (build_gimple_cfg): Don't set found_computed_goto, don't call
20059 factor_computed_gotos.
20060 (computed_goto_p): No longer static.
20061 (make_blocks): Don't set found_computed_goto.
20062 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20063 (make_edges): If make_goto_expr_edges returns true, push bb
20064 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20065 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20066 vector. Record mapping between bbs and OpenMP regions if there
20067 are any, adjust make_gimple_omp_edges caller. Call
20068 handle_abnormal_edges.
20069 (make_abnormal_goto_edges): Remove.
20070 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20071 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20072 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20073 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20074 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20075 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20076 filling *region also set *region_idx to (*region)->entry->index.
20079 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20080 For REGs set ORIGINAL_REGNO.
20082 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20084 * doc/md.texi: Mention that a target shouldn't implement
20085 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20088 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20090 PR tree-optimization/59594
20091 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20092 a copy of the datarefs vector rather than the vector itself.
20094 2014-01-28 Jason Merrill <jason@redhat.com>
20097 * dwarf2out.c (auto_die): New static.
20098 (gen_type_die_with_usage): Handle C++1y 'auto'.
20099 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20102 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20105 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20106 (SPEC_X32): Likewise.
20107 (SPEC_64): Likewise.
20108 * config/i386/i386.c (ix86_option_override_internal): Turn off
20109 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20111 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20112 * config/i386/i386.h (TARGET_16BIT): New macro.
20113 (TARGET_16BIT_P): Likewise.
20114 * config/i386/i386.opt: Add m16.
20115 * doc/invoke.texi: Document -m16.
20117 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20119 PR preprocessor/59935
20120 * input.c (location_get_source_line): Bail out on when line number
20121 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20123 2014-01-28 Richard Biener <rguenther@suse.de>
20125 PR tree-optimization/58742
20126 * tree-ssa-forwprop.c (associate_plusminus): Handle
20127 pointer subtraction of the form (T)(P + A) - (T)P.
20129 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20131 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20134 2014-01-28 Richard Biener <rguenther@suse.de>
20137 2014-01-28 Richard Biener <rguenther@suse.de>
20139 PR rtl-optimization/45364
20140 PR rtl-optimization/59890
20141 * var-tracking.c (local_get_addr_clear_given_value): Handle
20142 already cleared slot.
20143 (val_reset): Handle not allocated local_get_addr_cache.
20144 (vt_find_locations): Use post-order on the inverted CFG.
20146 2014-01-28 Richard Biener <rguenther@suse.de>
20148 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20150 2014-01-28 Richard Biener <rguenther@suse.de>
20152 PR rtl-optimization/45364
20153 PR rtl-optimization/59890
20154 * var-tracking.c (local_get_addr_clear_given_value): Handle
20155 already cleared slot.
20156 (val_reset): Handle not allocated local_get_addr_cache.
20157 (vt_find_locations): Use post-order on the inverted CFG.
20159 2014-01-28 Alan Modra <amodra@gmail.com>
20161 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20162 * configure.ac <recursive call for build != host>: Define
20163 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20164 and LD_FOR_BUILD too.
20165 * configure: Regenerate.
20167 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20169 * config/i386/i386.c (get_builtin_code_for_version): Separate
20170 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20171 Broadwell from Haswell.
20173 2014-01-27 Steve Ellcey <sellcey@mips.com>
20175 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20176 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20177 * config/mips/mips.c (mips_option_override): Change setting
20179 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20180 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20181 Change from Mask to Var.
20183 2014-01-27 Jeff Law <law@redhat.com>
20185 * ipa-inline.c (inline_small_functions): Fix typo.
20187 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20189 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20190 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20191 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20192 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20193 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20194 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20195 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20196 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20197 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20198 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20199 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20200 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20201 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20202 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20203 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20204 (_mm512_storeu_epi64): Ditto.
20205 (_mm512_cmpge_epi32_mask): Ditto.
20206 (_mm512_cmpge_epu32_mask): Ditto.
20207 (_mm512_cmpge_epi64_mask): Ditto.
20208 (_mm512_cmpge_epu64_mask): Ditto.
20209 (_mm512_cmple_epi32_mask): Ditto.
20210 (_mm512_cmple_epu32_mask): Ditto.
20211 (_mm512_cmple_epi64_mask): Ditto.
20212 (_mm512_cmple_epu64_mask): Ditto.
20213 (_mm512_cmplt_epi32_mask): Ditto.
20214 (_mm512_cmplt_epu32_mask): Ditto.
20215 (_mm512_cmplt_epi64_mask): Ditto.
20216 (_mm512_cmplt_epu64_mask): Ditto.
20217 (_mm512_cmpneq_epi32_mask): Ditto.
20218 (_mm512_cmpneq_epu32_mask): Ditto.
20219 (_mm512_cmpneq_epi64_mask): Ditto.
20220 (_mm512_cmpneq_epu64_mask): Ditto.
20221 (_mm512_expand_pd): Ditto.
20222 (_mm512_expand_ps): Ditto.
20223 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20224 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20225 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20226 * config/i386/i386.c (ix86_builtins): Add
20227 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20228 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20229 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20230 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20231 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20232 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20233 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20234 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20235 IX86_BUILTIN_PMOVUSQW512_MEM.
20236 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20237 __builtin_ia32_pmovsqd512mem_mask,
20238 __builtin_ia32_pmovqd512mem_mask,
20239 __builtin_ia32_pmovusqw512mem_mask,
20240 __builtin_ia32_pmovsqw512mem_mask,
20241 __builtin_ia32_pmovqw512mem_mask,
20242 __builtin_ia32_pmovusdw512mem_mask,
20243 __builtin_ia32_pmovsdw512mem_mask,
20244 __builtin_ia32_pmovdw512mem_mask,
20245 __builtin_ia32_pmovqb512mem_mask,
20246 __builtin_ia32_pmovusqb512mem_mask,
20247 __builtin_ia32_pmovsqb512mem_mask,
20248 __builtin_ia32_pmovusdb512mem_mask,
20249 __builtin_ia32_pmovsdb512mem_mask,
20250 __builtin_ia32_pmovdb512mem_mask.
20251 (bdesc_args): Add __builtin_ia32_expanddf512,
20252 __builtin_ia32_expandsf512.
20253 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20254 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20255 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20256 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20257 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20258 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20259 (avx512f_<code>v8div16qi2_mask_store): This.
20260 (avx512f_expand<mode>): New.
20262 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20264 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20266 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20267 (_mm512_prefetch_i32scatter_pd): Ditto.
20268 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20269 (_mm512_prefetch_i64scatter_pd): Ditto.
20270 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20271 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20272 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20273 (_mm512_prefetch_i32scatter_ps): Ditto.
20274 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20275 (_mm512_prefetch_i64scatter_ps): Ditto.
20276 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20277 * config/i386/i386-builtin-types.def: Define
20278 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20279 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20280 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20281 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20282 IX86_BUILTIN_SCATTERPFQPD.
20283 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20284 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20285 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20286 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20287 __builtin_ia32_scatterpfqps.
20288 (ix86_expand_builtin): Expand new built-ins.
20289 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20290 fix memory access data type.
20291 (*avx512pf_gatherpf<mode>_mask): Ditto.
20292 (*avx512pf_gatherpf<mode>): Ditto.
20293 (avx512pf_scatterpf<mode>): Ditto.
20294 (*avx512pf_scatterpf<mode>_mask): Ditto.
20295 (*avx512pf_scatterpf<mode>): Ditto.
20296 (GATHER_SCATTER_SF_MEM_MODE): New.
20297 (avx512pf_gatherpf<mode>df): Ditto.
20298 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20299 (*avx512pf_scatterpf<mode>df): Ditto.
20301 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20304 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20305 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20308 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20310 * common/config/arm/arm-common.c
20311 (arm_rewrite_mcpu): Handle multiple names.
20313 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20315 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20317 * gimple-builder.h (create_gimple_tmp): Delete.
20319 2014-01-27 Christian Bruel <christian.bruel@st.com>
20321 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20324 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20326 * config/pa/pa.md (call): Generate indirect long calls to non-local
20327 functions when outputing 32-bit code.
20328 (call_value): Likewise except for special call to buggy powf function.
20330 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20331 portable runtime and PIC indirect calls.
20332 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20333 and PIC call sequences. Use ldo instead of blr to set return register
20334 in PIC call sequence.
20336 2014-01-25 Walter Lee <walt@tilera.com>
20338 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20339 avoid clobbering a live register.
20341 2014-01-25 Walter Lee <walt@tilera.com>
20343 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20344 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20345 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20346 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20348 2014-01-25 Walter Lee <walt@tilera.com>
20350 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20351 arguments on even registers.
20352 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20354 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20355 (BIGGEST_ALIGNMENT): Ditto.
20356 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20358 2014-01-25 Walter Lee <walt@tilera.com>
20360 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20361 insns before bundling.
20362 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20364 2014-01-25 Walter Lee <walt@tilera.com>
20366 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20367 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20368 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20370 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20372 * config/mips/constraints.md (kl): Delete.
20373 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20374 define expands, using...
20375 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20376 instructions for MIPS16.
20377 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20378 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20380 2014-01-25 Walter Lee <walt@tilera.com>
20382 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20386 2014-01-25 Walter Lee <walt@tilera.com>
20388 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20389 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20391 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20393 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20396 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20398 * print-rtl.c (in_call_function_usage): New var.
20399 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20400 EXPR_LIST mode as mode and not as reg note name.
20402 PR middle-end/59561
20403 * cfgloopmanip.c (copy_loop_info): If
20404 loop->warned_aggressive_loop_optimizations, make sure
20405 the flag is set in target loop too.
20407 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20409 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20411 * builtins.def: Likewise.
20412 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20413 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20414 * ira.c (ira_setup_eliminable_regset): Likewise.
20415 * omp-low.c (gate_expand_omp): Likewise.
20416 (execute_lower_omp): Likewise.
20417 (diagnose_sb_0): Likewise.
20418 (gate_diagnose_omp_blocks): Likewise.
20419 (simd_clone_clauses_extract): Likewise.
20422 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20424 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20425 correction for little endian...
20426 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20429 2014-01-24 Jeff Law <law@redhat.com>
20431 PR tree-optimization/59919
20432 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20433 for non-returning calls.
20435 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20437 * common/config/aarch64/aarch64-common.c
20438 (aarch64_rewrite_mcpu): Handle multiple names.
20439 * config/aarch64/aarch64.h
20440 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20442 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20444 * input.c (add_file_to_cache_tab): Handle the case where fopen
20447 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20450 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20451 from push operand if code of push isn't PRE_DEC.
20453 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20456 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20457 -mquad-memory-atomic. Update -mquad-memory documentation to say
20458 it is only used for non-atomic loads/stores.
20460 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20461 -mquad-memory or -mquad-memory-atomic switches.
20463 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20464 -mquad-memory-atomic to ISA 2.07 support.
20466 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20467 to separate support of normal quad word memory operations (ldq, stq)
20468 from the atomic quad word memory operations.
20470 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20471 support to separate non-atomic quad word operations from atomic
20472 quad word operations. Disable non-atomic quad word operations in
20473 little endian mode so that we don't have to swap words after the
20474 load and before the store.
20475 (quad_load_store_p): Add comment about atomic quad word support.
20476 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20477 options printed with -mdebug=reg.
20479 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20480 -mquad-memory-atomic as the test for whether we have quad word
20481 atomic instructions.
20482 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20483 or -mp8-vector are used, allow byte/half-word atomic operations.
20485 * config/rs6000/sync.md (load_lockedti): Insure that the address
20486 is a proper indexed or indirect address for the lqarx instruction.
20487 On little endian systems, swap the hi/lo registers after the lqarx
20489 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20490 insure the address is valid for the lqarx instruction.
20491 (store_conditionalti): Insure that the address is a proper indexed
20492 or indirect address for the stqcrx. instruction. On little endian
20493 systems, swap the hi/lo registers before doing the stqcrx.
20495 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20496 insure the address is valid for the stqcrx. instruction.
20498 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20499 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20500 type of quad memory support is available.
20502 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20504 PR regression/59915
20505 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20506 there is a danger of looping.
20508 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20510 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20511 force flag_ira_loop_pressure if set via command line.
20513 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20515 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20516 (ashr_simd): New builtin handling DI mode.
20517 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20518 (aarch64_sshr_simddi): New match pattern.
20519 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20520 (vshrd_n_s64): Likewise.
20521 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20523 2014-01-23 Nick Clifton <nickc@redhat.com>
20525 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20526 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20527 favour of mcu specific scripts.
20528 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20531 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20532 Alex Velenko <Alex.Velenko@arm.com>
20534 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20535 (vaddv_s16): Likewise.
20536 (vaddv_s32): Likewise.
20537 (vaddv_u8): Likewise.
20538 (vaddv_u16): Likewise.
20539 (vaddv_u32): Likewise.
20540 (vaddvq_s8): Likewise.
20541 (vaddvq_s16): Likewise.
20542 (vaddvq_s32): Likewise.
20543 (vaddvq_s64): Likewise.
20544 (vaddvq_u8): Likewise.
20545 (vaddvq_u16): Likewise.
20546 (vaddvq_u32): Likewise.
20547 (vaddvq_u64): Likewise.
20548 (vaddv_f32): Likewise.
20549 (vaddvq_f32): Likewise.
20550 (vaddvq_f64): Likewise.
20551 (vmaxv_f32): Likewise.
20552 (vmaxv_s8): Likewise.
20553 (vmaxv_s16): Likewise.
20554 (vmaxv_s32): Likewise.
20555 (vmaxv_u8): Likewise.
20556 (vmaxv_u16): Likewise.
20557 (vmaxv_u32): Likewise.
20558 (vmaxvq_f32): Likewise.
20559 (vmaxvq_f64): Likewise.
20560 (vmaxvq_s8): Likewise.
20561 (vmaxvq_s16): Likewise.
20562 (vmaxvq_s32): Likewise.
20563 (vmaxvq_u8): Likewise.
20564 (vmaxvq_u16): Likewise.
20565 (vmaxvq_u32): Likewise.
20566 (vmaxnmv_f32): Likewise.
20567 (vmaxnmvq_f32): Likewise.
20568 (vmaxnmvq_f64): Likewise.
20569 (vminv_f32): Likewise.
20570 (vminv_s8): Likewise.
20571 (vminv_s16): Likewise.
20572 (vminv_s32): Likewise.
20573 (vminv_u8): Likewise.
20574 (vminv_u16): Likewise.
20575 (vminv_u32): Likewise.
20576 (vminvq_f32): Likewise.
20577 (vminvq_f64): Likewise.
20578 (vminvq_s8): Likewise.
20579 (vminvq_s16): Likewise.
20580 (vminvq_s32): Likewise.
20581 (vminvq_u8): Likewise.
20582 (vminvq_u16): Likewise.
20583 (vminvq_u32): Likewise.
20584 (vminnmv_f32): Likewise.
20585 (vminnmvq_f32): Likewise.
20586 (vminnmvq_f64): Likewise.
20588 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20590 * config/aarch64/aarch64-simd.md
20591 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20592 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20593 (*aarch64_mul3_elt<mode>): Likewise.
20594 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20595 (*aarch64_mul3_elt_to_64v2df): Likewise.
20596 (*aarch64_mla_elt<mode>): Likewise.
20597 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20598 (*aarch64_mls_elt<mode>): Likewise.
20599 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20600 (*aarch64_fma4_elt<mode>): Likewise.
20601 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20602 (*aarch64_fma4_elt_to_64v2df): Likewise.
20603 (*aarch64_fnma4_elt<mode>): Likewise.
20604 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20605 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20606 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20607 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20608 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20609 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20610 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20611 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20612 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20614 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20616 * config/aarch64/aarch64-simd.md
20617 (aarch64_be_checked_get_lane<mode>): New define_expand.
20618 * config/aarch64/aarch64-simd-builtins.def
20619 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20620 New builtin definition.
20621 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20622 Use new safe be builtin.
20624 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20626 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20628 (aarch64_be_st1<mode>): Likewise.
20629 (aarch_ld1<VALL:mode>): Define_expand modified.
20630 (aarch_st1<VALL:mode>): Likewise.
20631 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20632 (UNSPEC_ST1): Likewise.
20634 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20636 * config/microblaze/microblaze.md: Add trap insn and attribute
20638 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20640 PR preprocessor/58580
20641 * input.h (location_get_source_line): Take an additional line_size
20643 (void diagnostics_file_cache_fini): Declare new function.
20644 * input.c (struct fcache): New type.
20645 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20646 New static constants.
20647 (diagnostic_file_cache_init, total_lines_num)
20648 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20649 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20650 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20651 (get_next_line, read_next_line, goto_next_line, read_line_num):
20652 New static function definitions.
20653 (diagnostic_file_cache_fini): New function.
20654 (location_get_source_line): Take an additional output line_len
20655 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20657 * diagnostic.c (diagnostic_finish): Call
20658 diagnostic_file_cache_fini.
20659 (adjust_line): Take an additional input parameter for the length
20660 of the line, rather than calculating it with strlen.
20661 (diagnostic_show_locus): Adjust the use of
20662 location_get_source_line and adjust_line with respect to their new
20663 signature. While displaying a line now, do not stop at the first
20664 null byte. Rather, display the zero byte as a space and keep
20665 going until we reach the size of the line.
20666 * Makefile.in: Add vec.o to OBJS-libcommon
20668 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20669 Ilya Tocar <ilya.tocar@intel.com>
20671 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20672 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20673 (__builtin_ia32_kmov16): Ditto.
20674 * config/i386/i386.md (UNSPEC_KMOV): New.
20677 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20679 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20680 (_mm512_storeu_si512): Ditto.
20682 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20685 * rtl.h (get_referenced_operands): Declare.
20686 * recog.c (get_referenced_operands): New function.
20687 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20688 operands have been referenced when recording LO_SUM references.
20690 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20692 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20694 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20696 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20697 Enable for generic and recent AMD targets.
20699 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20701 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20702 ARG_SIZE note when adjustment was eliminated.
20704 2014-01-22 Jeff Law <law@redhat.com>
20706 PR tree-optimization/59597
20707 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20708 in file. Accept new argument REGISTERING and use it to modify
20709 dump output appropriately.
20710 (register_jump_thread): Corresponding changes.
20711 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20712 thread paths involving joiner blocks. Add code to dump cancelled
20713 jump threading paths.
20715 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20717 PR rtl-optimization/59477
20718 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20719 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20721 2014-01-22 Tom Tromey <tromey@redhat.com>
20723 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20725 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20727 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20729 PR rtl-optimization/59896
20730 * lra-constraints.c (process_alt_operands): Check unused note for
20731 matched operands of insn with no output reloads.
20733 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20735 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20736 (mips_move_from_gpr_cost): Likewise.
20738 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20740 PR rtl-optimization/59858
20741 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20742 ira_class_hard_regs_num.
20743 (process_alt_operands): Increase reject for dying matched operand.
20745 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20748 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20749 smaller than size, perform several stores or loads and stores
20750 at dst + count - size to store or copy all of size bytes, rather
20751 than just last modesize bytes.
20753 2014-01-20 DJ Delorie <dj@redhat.com>
20755 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20756 that CLOBBERs are REGs before propogating their values.
20758 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20760 PR middle-end/59789
20761 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20762 (cgraph_inline_failed_type): New function.
20763 * cgraph.h (DEFCIFCODE): Add type.
20764 (cgraph_inline_failed_type_t): New enum.
20765 (cgraph_inline_failed_type): New prototype.
20766 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20767 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20768 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20769 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20770 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20771 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20772 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20773 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20774 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20775 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20776 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20777 OPTIMIZATION_MISMATCH.
20778 * tree-inline.c (expand_call_inline): Emit errors during
20779 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20781 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20784 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20785 mode attribute in insn output.
20787 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20789 * output.h (output_constant): Delete.
20790 * varasm.c (output_constant): Make private.
20792 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20794 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20796 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20798 PR middle-end/59860
20799 * tree.h (fold_builtin_strcat): New prototype.
20800 * builtins.c (fold_builtin_strcat): No longer static. Add len
20801 argument, if non-NULL, don't call c_strlen. Optimize
20802 directly into __builtin_memcpy instead of __builtin_strcpy.
20803 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20804 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20806 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20808 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20809 for SImode_address_operand operands, having only a REG argument.
20811 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20813 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20814 loader name using mbig-endian.
20815 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20817 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20819 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20820 (-mtune): Likewise.
20823 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20825 * config/aarch64/aarch64-protos.h
20826 (aarch64_cannot_change_mode_class_ptr): Declare.
20827 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20828 aarch64_cannot_change_mode_class_ptr): New.
20829 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20830 backend hook aarch64_cannot_change_mode_class.
20832 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20834 * common/config/aarch64/aarch64-common.c
20835 (aarch64_handle_option): Don't handle any option order logic here.
20836 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20837 selected_cpu, warn on architecture version mismatch.
20838 (aarch64_override_options): Fix parsing order for option strings.
20840 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20841 Iain Sandoe <iain@codesourcery.com>
20844 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20845 warning. Amend comment to reflect current functionality.
20847 2014-01-20 Richard Biener <rguenther@suse.de>
20849 PR middle-end/59860
20850 * builtins.c (fold_builtin_strcat): Remove case better handled
20851 by tree-ssa-strlen.c.
20853 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20855 * config/aarch64/aarch64.opt
20856 (mcpu, march, mtune): Make case-insensitive.
20858 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20861 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20862 if operands[1] is a REG or ZERO_EXTEND of a REG.
20864 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20866 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20868 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20870 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20871 long non-pic millicode calls.
20873 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20875 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20877 2014-01-19 Kito Cheng <kito@0xlab.org>
20879 * builtins.c (expand_movstr): Check movstr expand done or fail.
20881 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20882 H.J. Lu <hongjiu.lu@intel.com>
20885 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20886 to DImode for zero-extended addresses.
20888 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20890 PR rtl-optimization/57763
20891 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20892 on the new indirect jump_insn and increment LABEL_NUSES (label).
20894 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20898 * config.gcc (x86_archs): New variable.
20899 (x86_64_archs): Likewise.
20900 (x86_cpus): Likewise.
20901 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20902 --with-arch/--with-cpu= options.
20903 Support --with-arch=/--with-cpu={nehalem,westmere,
20904 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20906 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20908 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20909 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20911 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20913 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20915 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20918 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20919 clear cpp_get_options (parse_in)->warn_unused_macros for
20920 ix86_target_macros_internal with cpp_define.
20922 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20924 * jump.c (delete_related_insns): Keep (use (insn))s.
20925 * reorg.c (redundant_insn): Check for barriers too.
20927 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20929 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20931 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20933 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20934 call to $$dyncall when TARGET_LONG_CALLS is true.
20936 2014-01-17 Jeff Law <law@redhat.com>
20938 * ree.c (combine_set_extension): Temporarily disable test for
20939 changing number of hard registers.
20941 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20943 PR middle-end/58125
20944 * ipa-inline-analysis.c (inline_free_summary):
20945 Do not free summary of aliases.
20947 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20949 PR middle-end/59706
20950 * gimplify.c (gimplify_expr): Use create_tmp_var
20951 instead of create_tmp_var_raw. If cond doesn't have
20952 integral type, don't add the IFN_ANNOTATE builtin at all.
20954 2014-01-17 Martin Jambor <mjambor@suse.cz>
20957 * ipa-cp.c (prev_edge_clone): New variable.
20958 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20959 Also resize prev_edge_clone vector.
20960 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20961 (ipcp_edge_removal_hook): New function.
20962 (ipcp_driver): Register ipcp_edge_removal_hook.
20964 2014-01-17 Andrew Pinski <apinski@cavium.com>
20965 Steve Ellcey <sellcey@mips.com>
20968 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20971 2014-01-17 Jeff Law <law@redhat.com>
20973 PR middle-end/57904
20974 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20975 so that pass_ccp runs first.
20977 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20979 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20980 (ix86_adjust_cost): Use !TARGET_XXX.
20981 (do_reorder_for_imul): Likewise.
20982 (swap_top_of_ready_list): Likewise.
20983 (ix86_sched_reorder): Likewise.
20985 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20987 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20988 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20989 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20990 (intel_memset): New. Duplicate slm_memset.
20991 (intel_cost): New. Duplicate slm_cost.
20992 (m_INTEL): New macro.
20993 (processor_target_table): Add "intel".
20994 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20995 with PROCESSOR_INTEL for "intel".
20996 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20997 PROCESSOR_SILVERMONT.
20998 (ix86_issue_rate): Likewise.
20999 (ix86_adjust_cost): Likewise.
21000 (ia32_multipass_dfa_lookahead): Likewise.
21001 (swap_top_of_ready_list): Likewise.
21002 (ix86_sched_reorder): Likewise.
21003 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21004 instead of TARGET_OPT_AGU.
21005 * config/i386/i386.h (TARGET_INTEL): New.
21006 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21007 (processor_type): Add PROCESSOR_INTEL.
21008 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21009 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21011 2014-01-17 Marek Polacek <polacek@redhat.com>
21014 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21017 2014-01-17 Richard Biener <rguenther@suse.de>
21019 PR tree-optimization/46590
21020 * opts.c (default_options_table): Add entries for
21021 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21022 all enabled at -O1 but not for -Og.
21023 * common.opt (fbranch-count-reg): Remove Init(1).
21024 (fmove-loop-invariants): Likewise.
21025 (ftree-pta): Likewise.
21027 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21029 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21030 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21031 decls to at least the GCC 4.8 used alignments.
21034 * tree-nested.c (convert_nonlocal_reference_stmt,
21035 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21036 of GIMPLE_BIND stmts, adjust associated decls.
21038 2014-01-17 Richard Biener <rguenther@suse.de>
21040 PR tree-optimization/46590
21041 * vec.h (vec<>::bseach): New member function implementing
21042 binary search according to C89 bsearch.
21043 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21044 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21045 bitmap pointer again. Make accesses_in_loop a flat array.
21046 (mem_ref_obstack): New global.
21047 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21048 (mark_ref_stored): Likewise.
21049 (ref_indep_loop_p_2): Likewise.
21050 (set_ref_stored_in_loop): New helper function.
21051 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21052 (memref_free): Adjust.
21053 (record_mem_ref_loc): Simplify.
21054 (gather_mem_refs_stmt): Adjust.
21055 (sort_locs_in_loop_postorder_cmp): New function.
21056 (analyze_memory_references): Sort accesses_in_loop after
21057 loop postorder number.
21058 (find_ref_loc_in_loop_cmp): New function.
21059 (for_all_locs_in_loop): Find relevant cluster of locs in
21060 accesses_in_loop and iterate without recursion.
21061 (execute_sm): Avoid uninit warning.
21062 (struct ref_always_accessed): Simplify.
21063 (ref_always_accessed::operator ()): Likewise.
21064 (ref_always_accessed_p): Likewise.
21065 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21066 loop postorder numbers here.
21067 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21070 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21073 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21074 on decls for which assemble_alias has been called.
21076 2014-01-17 Nick Clifton <nickc@redhat.com>
21078 * config/msp430/msp430.opt: (mcpu): New option.
21079 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21080 (msp430_option_override): Parse target_cpu. If the MCU name
21081 matches a generic string, clear target_mcu.
21082 (msp430_attr): Allow numeric interrupt values up to 63.
21083 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21084 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21086 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21088 * config/msp430/msp430.md (popm): Use %J rather than %I.
21089 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21090 (addhi_cy_i): Use immediate_operand for operand 2.
21091 * doc/invoke.texi: Document -mcpu option.
21093 2014-01-17 Richard Biener <rguenther@suse.de>
21095 PR rtl-optimization/38518
21096 * df.h (df_analyze_loop): Declare.
21097 * df-core.c: Include cfgloop.h.
21098 (df_analyze_1): Split out main part of df_analyze.
21099 (df_analyze): Adjust.
21100 (loop_inverted_post_order_compute): New function.
21101 (loop_post_order_compute): Likewise.
21102 (df_analyze_loop): New function avoiding whole-function
21103 postorder computes.
21104 * loop-invariant.c (find_defs): Use df_analyze_loop.
21105 (find_invariants): Adjust.
21106 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21108 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21110 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21111 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21113 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21115 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21116 traversal when removing references.
21118 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21121 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21123 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21125 PR middle-end/56791
21126 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21127 pushing a reload for an autoinc when we had previously reloaded an
21128 inner part of the address.
21130 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21132 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21134 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21135 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21136 when not giving up or versioning for alias only because of
21138 (vect_analyze_data_ref_dependences): Set to true.
21139 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21141 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21142 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21145 PR middle-end/58344
21146 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21149 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21150 operand 0 predicate for gathers, use a new pseudo as subtarget.
21152 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21154 PR middle-end/59609
21155 * lra-constraints.c (process_alt_operands): Add printing debug info.
21156 Check absence of input/output reloads for matched operands too.
21158 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21160 PR rtl-optimization/59835
21161 * ira.c (ira_init_register_move_cost): Increase cost for
21164 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21166 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21168 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21171 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21172 non-register objects. Use gen_(high/low)part more consistently.
21175 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21178 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21179 endian support, remove tests for WORDS_BIG_ENDIAN.
21180 (p8_mfvsrd_3_<mode>): Likewise.
21181 (reload_gpr_from_vsx<mode>): Likewise.
21182 (reload_gpr_from_vsxsf): Likewise.
21183 (p8_mfvsrd_4_disf): Likewise.
21185 2014-01-16 Richard Biener <rguenther@suse.de>
21187 PR rtl-optimization/46590
21188 * lcm.c (compute_antinout_edge): Use postorder iteration.
21189 (compute_laterin): Use inverted postorder iteration.
21191 2014-01-16 Nick Clifton <nickc@redhat.com>
21193 PR middle-end/28865
21194 * varasm.c (output_constant): Return the number of bytes actually
21196 (output_constructor_array_range): Update the field size with the
21197 number of bytes emitted by output_constant.
21198 (output_constructor_regular_field): Likewise. Also do not
21199 complain if the total number of bytes emitted is now greater
21200 than the expected fieldpos.
21201 * output.h (output_constant): Update prototype and descriptive comment.
21203 2014-01-16 Marek Polacek <polacek@redhat.com>
21205 PR middle-end/59827
21206 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21207 it is error_mark_node.
21209 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21211 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21212 VALID_AVX256_REG_OR_OI_MODE.
21214 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21216 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21217 current procedure should be profiled.
21219 2014-01-15 Andrew Pinski <apinski@cavium.com>
21221 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21222 of moving from/to the STACK_REG register class.
21224 2014-01-15 Richard Henderson <rth@redhat.com>
21227 * reginfo.c (global_regs_decl): Globalize.
21228 * rtl.h (global_regs_decl): Declare.
21229 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21230 reserved via global_regs.
21232 2014-01-15 Teresa Johnson <tejohnson@google.com>
21234 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21236 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21238 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21239 and vmulosh rather than call gen_vec_widen_smult_*.
21240 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21241 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21242 (vec_widen_smult_even_v16qi): Likewise.
21243 (vec_widen_umult_even_v8hi): Likewise.
21244 (vec_widen_smult_even_v8hi): Likewise.
21245 (vec_widen_umult_odd_v16qi): Likewise.
21246 (vec_widen_smult_odd_v16qi): Likewise.
21247 (vec_widen_umult_odd_v8hi): Likewise.
21248 (vec_widen_smult_odd_v8hi): Likewise.
21249 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21250 vmuloub rather than call gen_vec_widen_umult_*.
21251 (vec_widen_umult_lo_v16qi): Likewise.
21252 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21253 vmulosb rather than call gen_vec_widen_smult_*.
21254 (vec_widen_smult_lo_v16qi): Likewise.
21255 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21256 rather than call gen_vec_widen_umult_*.
21257 (vec_widen_umult_lo_v8hi): Likewise.
21258 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21259 rather than call gen_vec_widen_smult_*.
21260 (vec_widen_smult_lo_v8hi): Likewise.
21262 2014-01-15 Jeff Law <law@redhat.com>
21264 PR tree-optimization/59747
21265 * ree.c (find_and_remove_re): Properly handle case where a second
21266 eliminated extension requires widening a copy created for elimination
21267 of a prior extension.
21268 (combine_set_extension): Ensure that the number of hard regs needed
21269 for a destination register does not change when we widen it.
21271 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21273 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21274 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21275 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21276 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21277 (avr-*-rtems*): Likewise.
21278 (bfin*-rtems*): Likewise.
21279 (moxie-*-rtems*): Likewise.
21280 (h8300-*-rtems*): Likewise.
21281 (i[34567]86-*-rtems*): Likewise.
21282 (lm32-*-rtems*): Likewise.
21283 (m32r-*-rtems*): Likewise.
21284 (m68k-*-rtems*): Likewise.
21285 (microblaze*-*-rtems*): Likewise.
21286 (mips*-*-rtems*): Likewise.
21287 (powerpc-*-rtems*): Likewise.
21288 (sh-*-rtems*): Likewise.
21289 (sparc-*-rtems*): Likewise.
21290 (sparc64-*-rtems*): Likewise.
21291 (v850-*-rtems*): Likewise.
21292 (m32c-*-rtems*): Likewise.
21294 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21296 PR rtl-optimization/59511
21297 * ira.c (ira_init_register_move_cost): Use memory costs for some
21298 cases of register move cost calculations.
21299 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21300 instead of BB frequency.
21301 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21302 * lra-assigns.c (find_hard_regno_for): Ditto.
21304 2014-01-15 Richard Biener <rguenther@suse.de>
21306 PR tree-optimization/59822
21307 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21308 (vectorizable_load): Use it to hoist defs of uses of invariant
21309 loads out of the loop.
21311 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21312 Kugan Vivekanandarajah <kuganv@linaro.org>
21315 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21318 2014-01-15 Richard Biener <rguenther@suse.de>
21320 PR rtl-optimization/59802
21321 * lcm.c (compute_available): Use inverted postorder to seed
21322 the initial worklist.
21324 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21327 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21328 ADDR_REGS for invalid symrefs in non-PIC code.
21330 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21333 * builtins.c (determine_block_size): Initialize *probable_max_size
21334 even if len_rtx is CONST_INT.
21336 2014-01-14 Andrew Pinski <apinski@cavium.com>
21338 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21339 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21340 (cortexa53_tunings): Likewise.
21341 (aarch64_sched_issue_rate): New function.
21342 (TARGET_SCHED_ISSUE_RATE): Define.
21344 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21346 * ira-costs.c (find_costs_and_classes): Add missed
21347 ira_init_register_move_cost_if_necessary.
21349 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21352 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21354 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21357 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21358 to indicate if type is used for function return value. Warn ABI
21359 change if the vector mode isn't available for function return value.
21360 (ix86_function_arg_advance): Pass false to type_natural_mode.
21361 (ix86_function_arg): Likewise.
21362 (ix86_gimplify_va_arg): Likewise.
21363 (function_arg_32): Don't warn ABI change.
21364 (ix86_function_value): Pass true to type_natural_mode.
21365 (ix86_return_in_memory): Likewise.
21366 (ix86_struct_value_rtx): Removed.
21367 (TARGET_STRUCT_VALUE_RTX): Likewise.
21369 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21371 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21372 converting a conditional jump into a conditional return.
21374 2014-01-14 Richard Biener <rguenther@suse.de>
21376 PR tree-optimization/58921
21377 PR tree-optimization/59006
21378 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21379 hoisting invariant stmts.
21380 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21381 invariant loads on the preheader edge if possible.
21383 2014-01-14 Joey Ye <joey.ye@arm.com>
21385 * doc/plugin.texi (Building GCC plugins): Update to C++.
21387 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21389 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21390 (_mm_rcp28_round_ss): Ditto.
21391 (_mm_rsqrt28_round_sd): Ditto.
21392 (_mm_rsqrt28_round_ss): Ditto.
21393 (_mm_rcp28_sd): Ditto.
21394 (_mm_rcp28_ss): Ditto.
21395 (_mm_rsqrt28_sd): Ditto.
21396 (_mm_rsqrt28_ss): Ditto.
21397 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21398 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21399 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21400 (IX86_BUILTIN_RCP28SD): Ditto.
21401 (IX86_BUILTIN_RCP28SS): Ditto.
21402 (IX86_BUILTIN_RSQRT28SD): Ditto.
21403 (IX86_BUILTIN_RSQRT28SS): Ditto.
21404 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21405 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21406 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21407 (ix86_expand_special_args_builtin): Expand new FTYPE.
21408 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21409 (srcp14<mode>): Make insn unary.
21410 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21411 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21412 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21413 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21414 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21415 Fix rounding: make it SAE only.
21416 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21418 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21420 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21421 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21422 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21423 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21424 (round_saeonly_mask_scalar_operand4): Ditto.
21425 (round_saeonly_mask_scalar_op3): Ditto.
21426 (round_saeonly_mask_scalar_op4): Ditto.
21428 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21430 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21431 Implement -maltivec=be for vec_insert and vec_extract.
21433 2014-01-10 DJ Delorie <dj@redhat.com>
21435 * config/msp430/msp430.md (call_internal): Don't allow memory
21436 references with SP as the base register.
21437 (call_value_internal): Likewise.
21438 * config/msp430/constraints.md (Yc): New. For memory references
21439 that don't use SP as a base register.
21441 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21442 "an integer without a # prefix"
21443 * config/msp430/msp430.md (epilogue_helper): Use it.
21445 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21448 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21449 AVX512F gather builtins.
21450 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21451 on gather decls with INTEGER_TYPE masktype.
21452 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21453 directly into the builtin rather than hoisting it before loop.
21455 PR tree-optimization/59387
21456 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21457 (scev_const_prop): If folded_casts and type has undefined overflow,
21458 use force_gimple_operand instead of force_gimple_operand_gsi and
21459 for each added stmt if it is assign with
21460 arith_code_with_undefined_signed_overflow, call
21461 rewrite_to_defined_overflow.
21462 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21463 gimple-fold.h instead.
21464 (arith_code_with_undefined_signed_overflow,
21465 rewrite_to_defined_overflow): Moved to ...
21466 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21467 rewrite_to_defined_overflow): ... here. No longer static.
21468 Include gimplify-me.h.
21469 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21470 rewrite_to_defined_overflow): New prototypes.
21472 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21474 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21476 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21478 * builtins.c (get_object_alignment_2): Minor tweak.
21479 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21481 2014-01-13 Christian Bruel <christian.bruel@st.com>
21483 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21484 optimized non constant lengths.
21486 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21489 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21490 load as __atomic_load_N if possible.
21492 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21494 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21496 (rs6000_expand_builtin): Adjust call.
21498 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21501 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21502 * config/rs6000/rs6000.c: Include target-globals.h.
21503 (rs6000_set_current_function): Instead of doing target_reinit
21504 unconditionally, use save_target_globals_default_opts and
21505 restore_target_globals.
21507 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21509 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21510 (rs6000_expand_builtin): Handle mffs and mtfsf.
21511 (rs6000_init_builtins): Define mffs and mtfsf.
21512 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21513 (rs6000_mffs): New pattern.
21514 (rs6000_mtfsf): New pattern.
21516 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21518 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21519 Start narrowing with START. Apply candidate-use pair
21520 and check overall cost in narrowing.
21521 (iv_ca_prune): Pass new argument.
21523 2014-01-10 Jeff Law <law@redhat.com>
21525 PR middle-end/59743
21526 * ree.c (combine_reaching_defs): Ensure the defining statement
21527 occurs before the extension when optimizing extensions with
21528 different source and destination hard registers.
21530 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21533 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21534 vtables into the type inheritance graph.
21536 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21538 PR rtl-optimization/59754
21539 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21540 modes in the REGNO != REGNO case.
21542 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21544 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21546 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21548 PR tree-optimization/59745
21549 * tree-predcom.c (tree_predictive_commoning_loop): Call
21550 free_affine_expand_cache if giving up because components is NULL.
21552 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21553 GC in payload of target_globals struct instead of allocating them on
21554 the heap and the larger structs separately using GC.
21555 * target-globals.h (struct target_globals): Make regs, hard_regs,
21556 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21557 of GTY((skip)) and change type to void *.
21558 (reset_target_globals): Cast loads from those fields to corresponding
21561 2014-01-10 Steve Ellcey <sellcey@mips.com>
21564 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21565 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21566 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21568 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21571 * aarch64-modes.def (CC_Zmode): New flags mode.
21572 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21573 represents an equality.
21574 (aarch64_get_condition_code): Handle CC_Zmode.
21575 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21577 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21579 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21580 extraction in good case.
21582 2014-01-10 Richard Biener <rguenther@suse.de>
21584 PR tree-optimization/59374
21585 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21586 checking after SLP discovery. Mark stmts not participating
21587 in any SLP instance properly.
21589 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21591 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21592 when handling a SET rtx.
21594 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21596 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21597 (cortex-a57): Likewise.
21598 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21600 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21602 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21603 non-iwmmxt builtins.
21605 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21609 * ipa-devirt.c record_target_from_binfo): Take as argument
21610 stack of binfos and lookup matching one for virtual inheritance.
21611 (possible_polymorphic_call_targets_1): Update.
21613 2014-01-10 Huacai Chen <chenhc@lemote.com>
21615 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21616 kernel strings for Loongson-2E/2F/3A.
21618 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21620 PR middle-end/59670
21621 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21622 is_gimple_call before calling gimple_call_internal_p.
21624 2014-01-09 Steve Ellcey <sellcey@mips.com>
21626 * Makefile.in (TREE_FLOW_H): Remove.
21627 (TREE_SSA_H): Add file names from tree-flow.h.
21628 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21629 * tree.h: Remove tree-flow.h reference.
21630 * hash-table.h: Remove tree-flow.h reference.
21631 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21632 reference with tree-ssa-loop.h.
21634 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21636 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21637 default element-order behavior for -maltivec.
21638 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21639 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21640 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21641 when targeting big endian, at least for now.
21642 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21644 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21646 PR middle-end/47735
21647 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21648 var satisfies use_register_for_decl, just take into account type
21649 alignment, rather than decl alignment.
21651 PR tree-optimization/59622
21652 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21653 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21654 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21655 Don't devirtualize for inplace at all. For targets.length () == 1,
21656 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21658 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21660 * config/i386/i386.md (cpu): Remove the unused btver1.
21662 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21664 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21666 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21669 * tree-core.h (struct target_globals): New forward declaration.
21670 (struct tree_target_option): Add globals field.
21671 * tree.h (TREE_TARGET_GLOBALS): Define.
21672 (prepare_target_option_nodes_for_pch): New prototype.
21673 * target-globals.h (struct target_globals): Define even if
21674 !SWITCHABLE_TARGET.
21675 * tree.c (prepare_target_option_node_for_pch,
21676 prepare_target_option_nodes_for_pch): New functions.
21677 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21678 * config/i386/i386.c: Include target-globals.h.
21679 (ix86_set_current_function): Instead of doing target_reinit
21680 unconditionally, use save_target_globals_default_opts and
21681 restore_target_globals.
21683 2014-01-09 Richard Biener <rguenther@suse.de>
21685 PR tree-optimization/59715
21686 * tree-cfg.h (split_critical_edges): Declare.
21687 * tree-cfg.c (split_critical_edges): Export.
21688 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21690 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21692 * cfgexpand.c (expand_stack_vars): Optionally disable
21693 asan stack protection.
21694 (expand_used_vars): Likewise.
21695 (partition_stack_vars): Likewise.
21696 * asan.c (asan_emit_stack_protection): Optionally disable
21697 after return stack usage.
21698 (instrument_derefs): Optionally disable memory access instrumentation.
21699 (instrument_builtin_call): Likewise.
21700 (instrument_strlen_call): Likewise.
21701 (asan_protect_global): Optionally disable global variables protection.
21702 * doc/invoke.texi: Added doc for new options.
21703 * params.def: Added new options.
21704 * params.h: Likewise.
21706 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21708 PR rtl-optimization/59724
21709 * ifcvt.c (cond_exec_process_if_block): Don't call
21710 flow_find_head_matching_sequence with 0 longest_match.
21711 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21712 non-active insns if !stop_after.
21713 (try_head_merge_bb): Revert 2014-01-07 changes.
21715 2014-01-08 Jeff Law <law@redhat.com>
21717 * ree.c (get_sub_rtx): New function, extracted from...
21718 (merge_def_and_ext): Here.
21719 (combine_reaching_defs): Use get_sub_rtx.
21721 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21723 * cgraph.h (varpool_variable_node): Do not choke on null node.
21725 2014-01-08 Catherine Moore <clm@codesourcery.com>
21727 * config/mips/mips.md (simple_return): Attempt to use JRC
21729 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21731 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21733 PR rtl-optimization/59137
21734 * reorg.c (steal_delay_list_from_target): Call update_block for
21736 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21738 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21740 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21741 two duplicate entries.
21743 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21746 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21748 * config/mips/mips.c (mips_truncated_op_cost): New function.
21749 (mips_rtx_costs): Adjust test for BADDU.
21750 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21752 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21754 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21755 (*baddu_si): ...this new pattern.
21757 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21760 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21762 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21764 PR middle-end/57748
21765 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21767 (expand_expr, expand_normal): Adjust.
21768 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21769 inner_reference_p. Use inner_reference_p to expand inner references.
21770 (store_expr): Adjust.
21771 * cfgexpand.c (expand_call_stmt): Adjust.
21773 2014-01-08 Rong Xu <xur@google.com>
21775 * gcov-io.c (gcov_var): Move from gcov-io.h.
21776 (gcov_position): Ditto.
21777 (gcov_is_error): Ditto.
21778 (gcov_rewrite): Ditto.
21779 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21780 only part to libgcc/libgcov.h.
21782 2014-01-08 Marek Polacek <polacek@redhat.com>
21784 PR middle-end/59669
21785 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21787 2014-01-08 Marek Polacek <polacek@redhat.com>
21790 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21792 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21794 PR rtl-optimization/59649
21795 * stor-layout.c (get_mode_bounds): For BImode return
21796 0 and STORE_FLAG_VALUE.
21798 2014-01-08 Richard Biener <rguenther@suse.de>
21800 PR middle-end/59630
21801 * gimple.h (is_gimple_builtin_call): Remove.
21802 (gimple_builtin_call_types_compatible_p): New.
21803 (gimple_call_builtin_p): New overload.
21804 * gimple.c (is_gimple_builtin_call): Remove.
21805 (validate_call): Rename to ...
21806 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21807 check return types.
21808 (validate_type): New static function.
21809 (gimple_call_builtin_p): New overload and adjust.
21810 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21811 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21812 (gimple_fold_stmt_to_constant_1): Likewise.
21813 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21815 2014-01-08 Richard Biener <rguenther@suse.de>
21817 PR middle-end/59471
21818 * gimplify.c (gimplify_expr): Gimplify register-register type
21819 VIEW_CONVERT_EXPRs to separate stmts.
21821 2014-01-07 Jeff Law <law@redhat.com>
21823 PR middle-end/53623
21824 * ree.c (combine_set_extension): Handle case where source
21825 and destination registers in an extension insn are different.
21826 (combine_reaching_defs): Allow source and destination registers
21827 in extension to be different under limited circumstances.
21828 (add_removable_extension): Remove restriction that the
21829 source and destination registers in the extension are the same.
21830 (find_and_remove_re): Emit a copy from the extension's
21831 destination to its source after the defining insn if
21832 the source and destination registers are different.
21834 PR middle-end/59285
21835 * ifcvt.c (merge_if_block): If we are merging a block with more than
21836 one successor with a block with no successors, remove any BARRIER
21837 after the second block.
21839 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21841 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21843 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21846 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21847 for 14-bit register offsets when INT14_OK_STRICT is false.
21849 2014-01-07 Roland Stigge <stigge@antcom.de>
21850 Michael Meissner <meissner@linux.vnet.ibm.com>
21853 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21854 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21856 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21858 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21861 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21863 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21864 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21865 rtx is const0_rtx or not.
21867 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21870 * target-globals.c (save_target_globals): Remove this_fn_optab
21872 * toplev.c: Include optabs.h.
21873 (target_reinit): Temporarily restore the global options if another
21874 set of options are in force.
21876 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21878 PR rtl-optimization/58668
21879 * cfgcleanup.c (flow_find_cross_jump): Don't count
21880 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21881 to determine what is counted.
21882 (flow_find_head_matching_sequence): Use active_insn_p to determine
21884 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21886 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21887 determine what is counted.
21889 PR tree-optimization/59643
21890 * tree-predcom.c (split_data_refs_to_components): If one dr is
21891 read and one write, determine_offset fails and the write isn't
21892 in the bad component, just put the read into the bad component.
21894 2014-01-07 Mike Stump <mikestump@comcast.net>
21895 Jakub Jelinek <jakub@redhat.com>
21898 * tree-core.h (struct tree_optimization_option): Change optabs
21899 type from unsigned char * to void *.
21900 * optabs.c (init_tree_optimization_optabs): Adjust
21901 TREE_OPTIMIZATION_OPTABS initialization.
21903 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21906 * config/i386/i386.h (struct machine_function): Add
21907 no_drap_save_restore field.
21908 * config/i386/i386.c (ix86_save_reg): Use
21909 !cfun->machine->no_drap_save_restore instead of
21910 crtl->stack_realign_needed.
21911 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21912 this function clears frame_pointer_needed. Set
21913 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21914 and DRAP reg is needed.
21916 2014-01-06 Marek Polacek <polacek@redhat.com>
21919 * doc/implement-c.texi: Mention that other integer types are
21920 permitted as bit-field types in strictly conforming mode.
21922 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21924 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21925 is newly allocated.
21927 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21929 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21931 2014-01-06 Martin Jambor <mjambor@suse.cz>
21934 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21936 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21938 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21942 * var-tracking.c (add_stores): Preserve the value of the source even if
21943 we don't record the store.
21945 2014-01-06 Terry Guo <terry.guo@arm.com>
21947 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21949 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21952 * config/darwin.c (darwin_function_section): Adjust return values to
21953 correspond to optimisation changes made in r206070.
21955 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21957 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21958 from prefetch_block tune setting.
21959 (nocona_cost): Correct size of prefetch block to 64.
21961 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21963 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21964 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21965 used to save the static chain register in the computation of the offset
21966 from which the FP registers need to be restored.
21968 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21970 PR tree-optimization/59519
21971 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21972 ICE if get_current_def (current_new_name) is already non-NULL, as long
21973 as it is a phi result of some other phi in *new_exit_bb that has
21976 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21977 or vmovdqu* for misaligned_operand.
21978 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21979 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21980 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21981 aligned_mem for AVX512F masked aligned load and store builtins and for
21982 non-temporal moves.
21984 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21986 PR tree-optimization/59651
21987 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21988 Address range for negative step should be added by TYPE_SIZE_UNIT.
21990 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21992 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21993 overlapping registers also for registers other than the stack pointer.
21995 2014-01-03 Marek Polacek <polacek@redhat.com>
21998 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22001 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22004 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22007 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22008 (push splitter): Use <P:MODE_SIZE> instead of
22009 GET_MODE_SIZE (<P:MODE>mode).
22010 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22011 (mov -1, reg peephole2): Likewise.
22012 * config/i386/sse.md (*mov<mode>_internal,
22013 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22014 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22015 *<code><mode>3, *andnot<mode>3<mask_name>,
22016 <mask_codefor><code><mode>3<mask_name>): Likewise.
22017 * config/i386/subst.md (mask_mode512bit_condition,
22018 sd_mask_mode512bit_condition): Likewise.
22020 2014-01-02 Xinliang David Li <davidxl@google.com>
22022 PR tree-optimization/59303
22023 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22024 (dump_predicates): Better output format.
22025 (pred_equal_p): New function.
22026 (is_neq_relop_p): Ditto.
22027 (is_neq_zero_form_p): Ditto.
22028 (pred_expr_equal_p): Ditto.
22029 (pred_neg_p): Ditto.
22030 (simplify_pred): Ditto.
22031 (simplify_preds_2): Ditto.
22032 (simplify_preds_3): Ditto.
22033 (simplify_preds_4): Ditto.
22034 (simplify_preds): Ditto.
22035 (push_pred): Ditto.
22036 (push_to_worklist): Ditto.
22037 (get_pred_info_from_cmp): Ditto.
22038 (is_degenerated_phi): Ditto.
22039 (normalize_one_pred_1): Ditto.
22040 (normalize_one_pred): Ditto.
22041 (normalize_one_pred_chain): Ditto.
22042 (normalize_preds): Ditto.
22043 (normalize_cond_1): Remove function.
22044 (normalize_cond): Ditto.
22045 (is_gcond_subset_of): Ditto.
22046 (is_subset_of_any): Ditto.
22047 (is_or_set_subset_of): Ditto.
22048 (is_and_set_subset_of): Ditto.
22049 (is_norm_cond_subset_of): Ditto.
22050 (pred_chain_length_cmp): Ditto.
22051 (convert_control_dep_chain_into_preds): Type change.
22052 (find_predicates): Ditto.
22053 (find_def_preds): Ditto.
22054 (destroy_predicates_vecs): Ditto.
22055 (find_matching_predicates_in_rest_chains): Ditto.
22056 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22057 (is_pred_expr_subset): Ditto.
22058 (is_pred_chain_subset_of): Ditto.
22059 (is_included_in): Ditto.
22060 (is_superset_of): Ditto.
22062 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22064 Update copyright years.
22066 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22068 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22069 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22070 config/arc/arc.md, config/arc/arc.opt,
22071 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22072 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22073 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22074 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22075 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22076 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22077 vtable-verify.c, vtable-verify.h: Use the standard form for the
22080 2014-01-02 Tobias Burnus <burnus@net-b.de>
22082 * gcc.c (process_command): Update copyright notice dates.
22083 * gcov-dump.c: Ditto.
22085 * doc/cpp.texi: Bump @copying's copyright year.
22086 * doc/cppinternals.texi: Ditto.
22087 * doc/gcc.texi: Ditto.
22088 * doc/gccint.texi: Ditto.
22089 * doc/gcov.texi: Ditto.
22090 * doc/install.texi: Ditto.
22091 * doc/invoke.texi: Ditto.
22093 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22095 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22097 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22099 * config/i386/sse.md (*mov<mode>_internal): Guard
22100 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22102 PR rtl-optimization/59647
22103 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22104 new_rtx into UNSIGNED_FLOAT rtxes.
22106 Copyright (C) 2014 Free Software Foundation, Inc.
22108 Copying and distribution of this file, with or without modification,
22109 are permitted in any medium without royalty provided the copyright
22110 notice and this notice are preserved.