1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3 * rtl.h (delete_related_insns): Strengthen return type from rtx to
6 * jump.c (delete_related_insns): Likewise, also for locals "next"
9 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11 * genautomata.c (output_internal_insn_latency_func): When writing
12 the function "internal_insn_latency" to insn-automata.c,
13 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14 allowing the optional guard function of (define_bypass) clauses to
15 expect a pair of rtx_insn *, rather than a pair of rtx.
16 (output_insn_latency_func): When writing the function
17 "insn_latency", add an "uncast_" prefix to params "insn" and
18 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
19 using checked casts from the params, thus enabling the above
20 change to the generated "internal_insn_latency" function.
22 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
24 PR tree-optimization/62091
25 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26 handle correctly arrays.
27 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
29 (record_known_type): Walk into inner type.
30 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
31 condition on no type changes.
33 2014-08-21 David Malcolm <dmalcolm@redhat.com>
35 * genattrtab.c (write_attr_get): Within the generated get_attr_
36 functions, rename param "insn" to "uncast_insn" and reintroduce
37 "insn" as an local rtx_insn * using a checked cast, so that "insn"
38 is an rtx_insn * within insn-attrtab.c
40 2014-08-21 David Malcolm <dmalcolm@redhat.com>
42 * output.h (peephole): Strengthen return type from rtx to
44 * rtl.h (delete_for_peephole): Likewise for both params.
45 * genpeep.c (main): In generated "peephole" function, strengthen
46 return type and local "insn" from rtx to rtx_insn *. For now,
47 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
48 rtx_insn *, with a checked cast.
49 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
50 locals "insn", "next", "prev" from rtx to rtx_insn *.
52 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
54 PR tree-optimization/62112
55 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
56 * gimple-iterator.h (gsi_replace): Return bool.
57 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
58 moved from ref_may_alias_global_p.
59 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
61 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
62 (stmt_kills_ref_p_1): Rename...
63 (stmt_kills_ref_p): ... to this.
64 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
65 stmt_kills_ref_p): Declare.
66 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
67 Move the self-assignment case...
68 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
70 2014-08-21 David Malcolm <dmalcolm@redhat.com>
72 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
74 * emit-rtl.c (try_split): Likewise, also for locals "before" and
75 "after". For now, don't strengthen param "trial", which requires
76 adding checked casts when returning it.
78 2014-08-21 David Malcolm <dmalcolm@redhat.com>
80 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
81 "label" from rtx to rtx_code_label *. Strengthen param 1 of
82 "var_location" hook from rtx to rtx_insn *.
83 (debug_nothing_rtx): Delete in favor of...
84 (debug_nothing_rtx_code_label): New prototype.
85 (debug_nothing_rtx_rtx): Delete unused prototype.
86 (debug_nothing_rtx_insn): New prototype.
88 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
89 invoking debug_hooks->var_location (in two places, one in a NOTE
90 case of a switch statement, the other guarded by a CALL_P
91 conditional. Add checked cast to rtx_code_label * when invoking
92 debug_hooks->label (within CODE_LABEL case of switch statement).
94 * dbxout.c (dbx_debug_hooks): Update "label" hook from
95 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
96 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
97 (xcoff_debug_hooks): Likewise.
98 * debug.c (do_nothing_debug_hooks): Likewise.
99 (debug_nothing_rtx): Delete in favor of...
100 (debug_nothing_rtx_insn): New function.
101 (debug_nothing_rtx_rtx): Delete unused function.
102 (debug_nothing_rtx_code_label): New function.
103 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
104 debug_nothing_rtx to debug_nothing_rtx_code_label.
105 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
107 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
108 debug_nothing_rtx to debug_nothing_rtx_insn.
109 (sdbout_label): Strengthen param "insn" from rtx to
111 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
112 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
113 "var_location" hook from debug_nothing_rtx to
114 debug_nothing_rtx_insn.
116 2014-08-21 David Malcolm <dmalcolm@redhat.com>
118 * recog.h (insn_output_fn): Update this function typedef to match
119 the changes below to the generated output functions, strengthening
120 the 2nd param from rtx to rtx_insn *.
122 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
123 insn when invoking an output function, to match the new signature
124 of insn_output_fn with a stronger second param.
126 * genconditions.c (write_header): In the generated code for
127 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
128 to match the other changes in this patch.
130 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
131 the generated "gen_" functions from rtx to rtx_insn * within their
134 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
135 the subfunctions within the generated "recog_", "split", "peephole2"
136 function trees from rtx to rtx_insn *. For now, the top-level
137 generated functions ("recog", "split", "peephole2") continue to
138 take a plain rtx for "insn", to avoid introducing dependencies on
139 other patches. Rename this 2nd param from "insn" to
140 "uncast_insn", and reintroduce "insn" as a local variable of type
141 rtx_insn *, initialized at the top of the generated function with
142 a checked cast on "uncast_insn".
143 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
144 the generated "gen_" functions from rtx to rtx_insn * within their
147 * genoutput.c (process_template): Strengthen the 2nd param within
148 the generated "output_" functions "insn" from rtx to rtx_insn *.
150 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
152 * tree-profile.c (tree_profiling): Skip external functions
153 when doing coverage instrumentation.
154 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
156 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
158 * config/rs6000/altivec.h (vec_cpsgn): New #define.
159 (vec_mergee): Likewise.
160 (vec_mergeo): Likewise.
161 (vec_cntlz): Likewise.
162 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
163 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
164 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
166 * doc/extend.texi: Document various forms of vec_cpsgn,
167 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
168 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
169 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
170 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
171 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
173 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
175 * config/rs6000/rs6000.c (context.h): New include.
176 (tree-pass.h): Likewise.
177 (make_pass_analyze_swaps): New decl.
178 (rs6000_option_override): Register pass_analyze_swaps.
179 (swap_web_entry): New subsclass of web_entry_base (df.h).
180 (special_handling_values): New enum.
181 (union_defs): New function.
182 (union_uses): Likewise.
183 (insn_is_load_p): Likewise.
184 (insn_is_store_p): Likewise.
185 (insn_is_swap_p): Likewise.
186 (rtx_is_swappable_p): Likewise.
187 (insn_is_swappable_p): Likewise.
188 (chain_purpose): New enum.
189 (chain_contains_only_swaps): New function.
190 (mark_swaps_for_removal): Likewise.
191 (swap_const_vector_halves): Likewise.
192 (adjust_subreg_index): Likewise.
193 (permute_load): Likewise.
194 (permute_store): Likewise.
195 (handle_special_swappables): Likewise.
196 (replace_swap_with_copy): Likewise.
197 (dump_swap_insn_table): Likewise.
198 (rs6000_analyze_swaps): Likewise.
199 (pass_data_analyze_swaps): New pass_data.
200 (pass_analyze_swaps): New rtl_opt_pass.
201 (make_pass_analyze_swaps): New function.
202 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
204 2014-08-21 David Malcolm <dmalcolm@redhat.com>
206 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
207 type from rtx to rtx_insn *.
208 (create_copy_of_insn_rtx): Likewise.
209 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
210 (create_copy_of_insn_rtx): Likewise, also for local "res".
212 2014-08-21 David Malcolm <dmalcolm@redhat.com>
214 * rtl.h (find_first_parameter_load): Strengthen return type from
216 * rtlanal.c (find_first_parameter_load): Strengthen return type
217 from rtx to rtx_insn *. Add checked cast for now, to postpone
218 strengthening the params.
220 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
223 * diagnostic.c: Set default caret.
224 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
226 * diagnostic.h (struct diagnostic_context):
228 2014-08-21 David Malcolm <dmalcolm@redhat.com>
230 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
231 (sel_bb_head): Strengthen return type insn_t (currently just an
233 (sel_bb_end): Likewise.
235 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
236 (sel_bb_head): Strengthen return type and local "head" from
237 insn_t (currently just an rtx) to rtx_insn *.
238 (sel_bb_end): Likewise for return type.
239 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
242 2014-08-21 David Malcolm <dmalcolm@redhat.com>
244 * basic-block.h (get_last_bb_insn): Strengthen return type from
246 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
249 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
252 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
254 (diagnostic_report_diagnostic): ... from here.
255 * toplev.c (general_init): Move code to c-family.
257 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
259 * df.h (web_entry_base): Replace existing struct web_entry with a
260 new class web_entry_base with only the predecessor member.
261 (unionfind_root): Remove declaration and move to class member.
262 (unionfind_union): Remove declaration and move to friend
264 (union_defs): Remove declaration.
265 * web.c (web_entry_base::unionfind_root): Modify to be member
266 function and adjust accessors.
267 (unionfind_union): Modify to be friend function and adjust
269 (web_entry): New subclass of web_entry_base containing the reg
271 (union_match_dups): Modify for struct -> class changes.
272 (union_defs): Likewise.
273 (entry_register): Likewise.
274 (pass_web::execute): Likewise.
276 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
278 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
279 builtin define __VEC_ELEMENT_REG_ORDER__.
281 2014-08-20 Martin Jambor <mjambor@suse.cz>
282 Wei Mi <wmi@google.com>
286 * tree-ssa-operands.c (update_stmt_operands): Remove
287 MODIFIED_NORETURN_CALLS.
288 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
289 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
290 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
291 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
292 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
293 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
294 (gimple_call_set_ctrl_altering): New func.
295 (gimple_call_ctrl_altering_p): Ditto.
296 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
297 (make_blocks): Use gimple_call_initialize_ctrl_altering.
298 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
299 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
300 remove MODIFIED_NORETURN_CALLS.
302 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
304 * coverage.c (coverage_compute_profile_id): Return non-0;
305 also handle symbols with unique name.
306 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
308 2014-08-20 Steve Ellcey <sellcey@mips.com>
311 * doc/sourcebuild.texi (non_strict_align): New.
313 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
315 * cgraphunit.c (ipa_passes, compile): Reshedule
316 symtab_remove_unreachable_nodes passes; update comments.
317 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
318 TODO_remove_functions before the pass; the functions ought to be
320 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
321 TODO_remove_functions.
322 * passes.c (pass_data_early_local_passes): Do not schedule function
324 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
326 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
329 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
330 before setting the option.
331 * diagnostic.c (diagnostic_classify_diagnostic): Record
334 2014-08-20 Richard Biener <rguenther@suse.de>
337 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
338 to build uint{16,32,64}_type_node.
340 2014-08-20 Terry Guo <terry.guo@arm.com>
342 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
343 with immediate_operand.
345 2014-08-20 David Malcolm <dmalcolm@redhat.com>
347 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
348 "insn" from an as_a to a safe_as_a, for the case when "insn" is
351 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
353 PR preprocessor/51303
354 * incpath.c (remove_duplicates): Use cpp_warning.
356 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
360 * doc/options.texi (CPP): Document it.
361 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
362 * optc-gen.awk: Handle CPP.
363 * opth-gen.awk: Likewise.
365 2014-08-19 David Malcolm <dmalcolm@redhat.com>
367 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
369 (duplicate_insn_chain): Likewise.
370 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
371 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
372 checked cast for now (until we can strengthen the params in the
374 (duplicate_insn_chain): Likewise.
376 2014-08-19 David Malcolm <dmalcolm@redhat.com>
378 * rtl.h (next_cc0_user): Strengthen return type from rtx to
380 (prev_cc0_setter): Likewise.
382 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
383 rtx_insn *, adding checked casts for now as necessary.
384 (prev_cc0_setter): Likewise.
386 2014-08-19 David Malcolm <dmalcolm@redhat.com>
388 * expr.h (emit_move_insn): Strengthen return type from rtx to
390 (emit_move_insn_1): Likewise.
391 (emit_move_complex_push): Likewise.
392 (emit_move_complex_parts): Likewise.
394 * expr.c (emit_move_via_integer): Strengthen return type from rtx
395 to rtx_insn *. Replace use of NULL_RTX with NULL when working
397 (emit_move_complex_push): Strengthen return type from rtx to
399 (emit_move_complex): Likewise, also for local "ret".
400 (emit_move_ccmode): Likewise.
401 (emit_move_multi_word): Likewise for return type and locals
403 (emit_move_insn_1): Likewise for return type and locals "result",
405 (emit_move_insn): Likewise for return type and local "last_insn".
406 (compress_float_constant): Likewise.
408 2014-08-19 David Malcolm <dmalcolm@redhat.com>
410 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
411 from rtx to rtx_insn *.
413 * rtl.h (emit_insn_before): Likewise.
414 (emit_insn_before_noloc): Likewise.
415 (emit_insn_before_setloc): Likewise.
416 (emit_jump_insn_before): Likewise.
417 (emit_jump_insn_before_noloc): Likewise.
418 (emit_jump_insn_before_setloc): Likewise.
419 (emit_call_insn_before): Likewise.
420 (emit_call_insn_before_noloc): Likewise.
421 (emit_call_insn_before_setloc): Likewise.
422 (emit_debug_insn_before): Likewise.
423 (emit_debug_insn_before_noloc): Likewise.
424 (emit_debug_insn_before_setloc): Likewise.
425 (emit_label_before): Likewise.
426 (emit_insn_after): Likewise.
427 (emit_insn_after_noloc): Likewise.
428 (emit_insn_after_setloc): Likewise.
429 (emit_jump_insn_after): Likewise.
430 (emit_jump_insn_after_noloc): Likewise.
431 (emit_jump_insn_after_setloc): Likewise.
432 (emit_call_insn_after): Likewise.
433 (emit_call_insn_after_noloc): Likewise.
434 (emit_call_insn_after_setloc): Likewise.
435 (emit_debug_insn_after): Likewise.
436 (emit_debug_insn_after_noloc): Likewise.
437 (emit_debug_insn_after_setloc): Likewise.
438 (emit_label_after): Likewise.
439 (emit_insn): Likewise.
440 (emit_debug_insn): Likewise.
441 (emit_jump_insn): Likewise.
442 (emit_call_insn): Likewise.
443 (emit_label): Likewise.
444 (gen_clobber): Likewise.
445 (emit_clobber): Likewise.
447 (emit_use): Likewise.
450 (emit_barrier_before): Strengthen return type from rtx to
452 (emit_barrier_after): Likewise.
453 (emit_barrier): Likewise.
455 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
456 from rtx to rtx_insn *. Add checked casts for now when converting
457 "last" from rtx to rtx_insn *.
458 (emit_insn_before_noloc): Likewise for return type.
459 (emit_jump_insn_before_noloc): Likewise.
460 (emit_call_insn_before_noloc): Likewise.
461 (emit_debug_insn_before_noloc): Likewise.
462 (emit_barrier_before): Strengthen return type and local "insn"
463 from rtx to rtx_barrier *.
464 (emit_label_before): Strengthen return type from rtx to
465 rtx_insn *. Add checked cast for now when returning param
466 (emit_pattern_after_noloc): Strengthen return type from rtx to
467 rtx_insn *. Add checked casts for now when converting "last" from
469 (emit_insn_after_noloc): Strengthen return type from rtx to
471 (emit_jump_insn_after_noloc): Likewise.
472 (emit_call_insn_after_noloc): Likewise.
473 (emit_debug_insn_after_noloc): Likewise.
474 (emit_barrier_after): Strengthen return type from rtx to
476 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
477 Add checked cast for now when converting "label" from rtx to
479 (emit_pattern_after_setloc): Strengthen return type from rtx to
480 rtx_insn *. Add checked casts for now when converting "last" from
482 (emit_pattern_after): Strengthen return type from rtx to
484 (emit_insn_after_setloc): Likewise.
485 (emit_insn_after): Likewise.
486 (emit_jump_insn_after_setloc): Likewise.
487 (emit_jump_insn_after): Likewise.
488 (emit_call_insn_after_setloc): Likewise.
489 (emit_call_insn_after): Likewise.
490 (emit_debug_insn_after_setloc): Likewise.
491 (emit_debug_insn_after): Likewise.
492 (emit_pattern_before_setloc): Likewise. Add checked casts for now
493 when converting "last" from rtx to rtx_insn *.
494 (emit_pattern_before): Strengthen return type from rtx to
496 (emit_insn_before_setloc): Likewise.
497 (emit_insn_before): Likewise.
498 (emit_jump_insn_before_setloc): Likewise.
499 (emit_jump_insn_before): Likewise.
500 (emit_call_insn_before_setloc): Likewise.
501 (emit_call_insn_before): Likewise.
502 (emit_debug_insn_before_setloc): Likewise.
503 (emit_debug_insn_before): Likewise.
504 (emit_insn): Strengthen return type and locals "last", "insn",
505 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
506 within cases where we know we have an insn.
507 (emit_debug_insn): Likewise.
508 (emit_jump_insn): Likewise.
509 (emit_call_insn): Strengthen return type and local "insn" from rtx
511 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
512 a checked cast to rtx_insn * for now on "label".
513 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
514 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
515 (emit_use): Likewise.
516 (gen_use): Likewise, also for local "seq".
517 (emit): Likewise for return type and local "insn".
518 (rtx_insn): Likewise for return type and local "new_rtx".
520 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
521 from rtx to rtx_barrier *.
523 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
524 changed return type from rtx to rtx_insn *, we must update
525 "emit_fn" type, and this in turn means updating...
526 (frame_insn): ...this. Strengthen return type from rtx to
527 rtx_insn *. Introduce a new local "insn" of the appropriate type.
529 2014-08-19 David Malcolm <dmalcolm@redhat.com>
531 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
532 rtx to rtx_jump_table_data *. Also for local.
533 * rtl.h (emit_jump_table_data): Likewise.
535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
537 * basic-block.h (create_basic_block_structure): Strengthen third
538 param "bb_note" from rtx to rtx_note *.
539 * rtl.h (emit_note_before): Strengthen return type from rtx to
541 (emit_note_after): Likewise.
542 (emit_note): Likewise.
543 (emit_note_copy): Likewise. Also, strengthen param similarly.
544 * function.h (struct rtl_data): Strengthen field
545 "x_stack_check_probe_note" from rtx to rtx_note *.
547 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
548 from rtx to rtx_note *.
549 * cfgrtl.c (create_basic_block_structure): Strengthen third param
550 "bb_note" from rtx to rtx_note *.
551 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
552 when calling emit_note_copy.
553 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
555 (emit_note_after): Likewise.
556 (emit_note_before): Likewise.
557 (emit_note_copy): Likewise. Also, strengthen param similarly.
558 (emit_note): Likewise.
559 * except.c (emit_note_eh_region_end): Likewise for return type.
560 Strengthen local "next" from rtx to rtx_insn *.
561 (convert_to_eh_region_ranges): Strengthen local "note"
562 from rtx to rtx_note *.
563 * final.c (change_scope): Likewise.
564 (reemit_insn_block_notes): Likewise, for both locals named "note".
565 Also, strengthen local "insn" from rtx to rtx_insn *.
566 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
568 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
569 strengthen local "seq" from rtx to rtx_insn *.
570 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
572 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
574 (get_bb_note_from_pool): Strengthen return type from rtx to
576 (sel_create_basic_block): Strengthen local "new_bb_note" from
577 insn_t to rtx_note *.
578 * var-tracking.c (emit_note_insn_var_location): Strengthen local
579 "note" from rtx to rtx_note *.
580 (emit_notes_in_bb): Likewise.
582 2014-08-19 David Malcolm <dmalcolm@redhat.com>
584 * function.h (struct rtl_data): Strengthen field
585 "x_parm_birth_insn" from rtx to rtx_insn *.
586 * function.c (struct assign_parm_data_all): Strengthen fields
587 "first_conversion_insn" and "last_conversion_insn" from rtx to
590 2014-08-19 David Malcolm <dmalcolm@redhat.com>
592 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
593 to rtx_insn *; also for local "var_end_seq".
594 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
595 (maybe_cleanup_end_of_block): Likewise for param "last" and local
597 (expand_gimple_cond): Likewise for locals "last2" and "last".
598 (mark_transaction_restart_calls): Likewise for local "insn".
599 (expand_gimple_stmt): Likewise for return type and locals "last"
601 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
602 (avoid_complex_debug_insns): Likewise for param "insn".
603 (expand_debug_locations): Likewise for locals "insn", "last",
604 "prev_insn" and "insn2".
605 (expand_gimple_basic_block): Likewise for local "last".
606 (construct_exit_block): Likewise for locals "head", "end",
608 (pass_expand::execute): Likewise for locals "var_seq",
609 "var_ret_seq", "next".
611 2014-08-19 David Malcolm <dmalcolm@redhat.com>
613 * asan.h (asan_emit_stack_protection): Strengthen return type from
615 * asan.c (asan_emit_stack_protection): Likewise. Add local
616 "insns" to hold the return value.
618 2014-08-19 David Malcolm <dmalcolm@redhat.com>
620 * basic-block.h (bb_note): Strengthen return type from rtx to
622 * sched-int.h (bb_note): Likewise.
623 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
625 2014-08-19 David Malcolm <dmalcolm@redhat.com>
627 * rtl.h (make_insn_raw): Strengthen return type from rtx to
630 * emit-rtl.c (make_insn_raw): Strengthen return type and local
631 "insn" from rtx to rtx_insn *.
632 (make_debug_insn_raw): Strengthen return type from rtx to
633 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
634 (make_jump_insn_raw): Strengthen return type from rtx to
635 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
636 (make_call_insn_raw): Strengthen return type from rtx to
637 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
638 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
639 callback from rtx to rtx_insn *; likewise for local "insn" and
640 "next", adding a checked cast to rtx_insn in the relevant cases of
641 the switch statement.
642 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
643 callback from rtx to rtx_insn *.
644 (emit_pattern_after_setloc): Likewise.
645 (emit_pattern_after): Likewise.
646 (emit_pattern_before_setloc): Likewise.
647 (emit_pattern_before): Likewise.
649 2014-08-19 David Malcolm <dmalcolm@redhat.com>
651 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
653 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
654 accepting an rtx_insn *.
655 (last_call_insn): Strengthen return type from rtx to
658 2014-08-19 David Malcolm <dmalcolm@redhat.com>
660 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
661 "insns" from rtx to rtx_insn *.
662 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
663 locals "insn" and "prev".
665 2014-08-19 David Malcolm <dmalcolm@redhat.com>
667 * rtl.h (tablejump_p): Strengthen third param from rtx * to
668 rtx_jump_table_data **.
670 * cfgbuild.c (make_edges): Introduce local "table", using it in
671 place of "tmp" for jump table data.
672 (find_bb_boundaries): Strengthen local "table" from rtx to
673 rtx_jump_table_data *.
674 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
675 (outgoing_edges_match): Likewise for locals "table1" and "table2".
676 (try_crossjump_to_edge): Likewise.
677 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
679 (patch_jump_insn): Introduce local "table", using it in place of
680 "tmp" for jump table data.
681 (force_nonfallthru_and_redirect): Introduce local "table", so that
682 call to tablejump_p can receive an rtx_jump_table_data **. Update
683 logic around the call to overwrite "note" appropriately if
684 tablejump_p returns non-zero.
685 (get_last_bb_insn): Introduce local "table", using it in place of
686 "tmp" for jump table data.
687 * dwarf2cfi.c (create_trace_edges): Likewise.
689 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
690 from rtx to rtx_jump_table_data *.
691 (create_fix_barrier): Strengthen local "tmp" from rtx to
692 rtx_jump_table_data *.
693 (arm_reorg): Likewise for local "table".
695 * config/s390/s390.c (s390_chunkify_start): Likewise.
697 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
699 * jump.c (delete_related_insns): Strengthen local "lab_next" from
700 rtx to rtx_jump_table_data *.
702 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
703 rtx_jump_table_data **. Add a checked cast when writing through
704 the pointer: we know there that local "table" is non-NULL and that
705 JUMP_TABLE_DATA_P (table) holds.
706 (label_is_jump_target_p): Introduce local "table", using it in
707 place of "tmp" for jump table data.
709 2014-08-19 Marek Polacek <polacek@redhat.com>
712 * doc/invoke.texi: Document -Wbool-compare.
714 2014-08-19 David Malcolm <dmalcolm@redhat.com>
716 * rtl.h (entry_of_function): Strengthen return type from rtx to
718 * cfgrtl.c (entry_of_function): Likewise.
720 2014-08-19 David Malcolm <dmalcolm@redhat.com>
722 * emit-rtl.h (get_insns): Strengthen return type from rtx to
723 rtx_insn *, adding a checked cast for now.
724 (get_last_insn): Likewise.
726 2014-08-19 David Malcolm <dmalcolm@redhat.com>
728 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
731 * emit-rtl.c (gen_label_rtx): Likewise.
733 2014-08-19 David Malcolm <dmalcolm@redhat.com>
735 * rtl.h (previous_insn): Strengthen return type from rtx to
737 (next_insn): Likewise.
738 (prev_nonnote_insn): Likewise.
739 (prev_nonnote_insn_bb): Likewise.
740 (next_nonnote_insn): Likewise.
741 (next_nonnote_insn_bb): Likewise.
742 (prev_nondebug_insn): Likewise.
743 (next_nondebug_insn): Likewise.
744 (prev_nonnote_nondebug_insn): Likewise.
745 (next_nonnote_nondebug_insn): Likewise.
746 (prev_real_insn): Likewise.
747 (next_real_insn): Likewise.
748 (prev_active_insn): Likewise.
749 (next_active_insn): Likewise.
751 * emit-rtl.c (next_insn): Strengthen return type from rtx to
752 rtx_insn *, adding a checked cast.
753 (previous_insn): Likewise.
754 (next_nonnote_insn): Likewise.
755 (next_nonnote_insn_bb): Likewise.
756 (prev_nonnote_insn): Likewise.
757 (prev_nonnote_insn_bb): Likewise.
758 (next_nondebug_insn): Likewise.
759 (prev_nondebug_insn): Likewise.
760 (next_nonnote_nondebug_insn): Likewise.
761 (prev_nonnote_nondebug_insn): Likewise.
762 (next_real_insn): Likewise.
763 (prev_real_insn): Likewise.
764 (next_active_insn): Likewise.
765 (prev_active_insn): Likewise.
767 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
768 param "stepfunc" so that it returns an rtx_insn * rather than an
769 rtx, to track the change to prev_nonnote_insn_bb, which is the
770 only function this is called with.
771 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
773 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
775 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
778 2014-08-19 David Malcolm <dmalcolm@redhat.com>
780 * coretypes.h (class rtx_debug_insn): Add forward declaration.
781 (class rtx_nonjump_insn): Likewise.
782 (class rtx_jump_insn): Likewise.
783 (class rtx_call_insn): Likewise.
784 (class rtx_jump_table_data): Likewise.
785 (class rtx_barrier): Likewise.
786 (class rtx_code_label): Likewise.
787 (class rtx_note): Likewise.
789 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
790 adding the invariant DEBUG_INSN_P (X).
791 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
792 the invariant NONJUMP_INSN_P (X).
793 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
794 the invariant JUMP_P (X).
795 (class rtx_call_insn): New, a subclass of rtx_insn, adding
796 the invariant CALL_P (X).
797 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
798 invariant JUMP_TABLE_DATA_P (X).
799 (class rtx_barrier): New, a subclass of rtx_insn, adding the
800 invariant BARRIER_P (X).
801 (class rtx_code_label): New, a subclass of rtx_insn, adding
802 the invariant LABEL_P (X).
803 (class rtx_note): New, a subclass of rtx_insn, adding
804 the invariant NOTE_P(X).
805 (is_a_helper <rtx_debug_insn *>::test): New.
806 (is_a_helper <rtx_nonjump_insn *>::test): New.
807 (is_a_helper <rtx_jump_insn *>::test): New.
808 (is_a_helper <rtx_call_insn *>::test): New.
809 (is_a_helper <rtx_jump_table_data *>::test): New functions,
810 overloaded for both rtx and rtx_insn *.
811 (is_a_helper <rtx_barrier *>::test): New.
812 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
813 for both rtx and rtx_insn *.
814 (is_a_helper <rtx_note *>::test): New.
816 2014-08-19 Marek Polacek <polacek@redhat.com>
818 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
819 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
820 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
821 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
823 2014-08-19 David Malcolm <dmalcolm@redhat.com>
825 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
826 rtx_insn *. To help with transition, for now, convert from an
827 access macro into a pair of functions: BND_TO, returning an
829 (SET_BND_TO): New function, for use where BND_TO is used as an
832 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
834 (BND_TO): New function, adding a checked cast.
835 (SET_BND_TO): New function.
837 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
839 (compute_av_set_on_boundaries): Likewise.
841 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
843 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
844 destination if it is used in source.
845 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
846 (*popcount<mode>2_falsedep_1): Likewise.
848 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
851 * configure.ac: Set install_gold_as_default to no first.
852 * configure: Regenerated.
854 2014-08-19 David Malcolm <dmalcolm@redhat.com>
856 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
857 "note_list" field will eventually be an rtx_insn *. To help with
858 transition, for now, convert from an access macro into a pair of
859 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
860 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
863 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
864 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
866 * sel-sched-ir.c (init_bb): Likewise.
867 (sel_restore_notes): Likewise.
868 (move_bb_info): Likewise.
869 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
870 (SET_BB_NOTE_LIST): New function.
872 2014-08-19 David Malcolm <dmalcolm@redhat.com>
874 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
875 field will eventually be an rtx_insn *. To help with transition,
876 for now, convert from an access macro into a pair of functions:
877 VINSN_INSN_RTX, returning an rtx_insn *, and...
878 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
879 is used as an lvalue.
881 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
882 SET_VINSN_INSN_RTX where it's used as an lvalue.
883 (VINSN_INSN_RTX): New function.
884 (SET_VINSN_INSN_RTX): New function.
886 2014-08-19 David Malcolm <dmalcolm@redhat.com>
888 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
889 eventually be rtx_insn *, but to help with transition, for now,
890 convert from an access macro into a pair of functions: DEP_PRO
891 returning an rtx_insn * and...
892 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
893 lvalue, returning an rtx&.
894 (DEP_CON): Analogous changes to DEP_PRO above.
895 (SET_DEP_CON): Likewise.
897 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
898 an lvalue to SET_DEP_CON.
899 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
900 (sd_copy_back_deps): Likewise for DEP_CON.
901 (DEP_PRO): New function, adding a checked cast for now.
903 (SET_DEP_PRO): New function.
904 (SET_DEP_CON): Likewise.
906 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
908 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
909 (extra_options): Add i386/cygwin.opt.
910 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
911 (CPP_SPEC): Accept -pthread.
913 (GOMP_SELF_SPECS): Update comment.
914 * config/i386/cygwin.opt: New file for -pthread flag.
916 2014-08-19 David Malcolm <dmalcolm@redhat.com>
918 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
919 * df.h (DF_REF_INSN): Convert from a macro to a function, so
920 that we can return an rtx_insn *.
922 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
924 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
925 when building executables, not DLLs. Add --large-address-aware
926 under the same conditions.
927 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
928 when building executables, not DLLs. Add --large-address-aware
929 under the same conditions when using -m32.
931 * config/i386/cygwin-stdint.h: Throughout, make type
932 definitions dependent on target architecture, not host.
934 2014-08-19 David Malcolm <dmalcolm@redhat.com>
936 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
937 the return type from rtx to rtx_insn *, which will enable various
938 conversions in followup patches. For now this is is done by a
940 (NEXT_INSN): Likewise.
941 (SET_PREV_INSN): Convert to an inline function. This is intended
942 for use as an lvalue, and so returns an rtx& to allow in-place
944 (SET_NEXT_INSN): Likewise.
946 2014-07-08 Mark Wielaard <mjw@redhat.com>
949 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
951 2014-08-19 Marek Polacek <polacek@redhat.com>
954 * cgraphunit.c (handle_alias_pairs): Fix condition.
956 2014-08-19 Richard Biener <rguenther@suse.de>
958 * gimple-fold.c (fold_gimple_assign): Properly build a
959 null-pointer constant when devirtualizing addresses.
961 2014-07-07 Mark Wielaard <mjw@redhat.com>
963 * dwarf2out.c (decl_quals): New function.
964 (modified_type_die): Take one cv_quals argument instead of two,
965 one for const and one for volatile.
966 (add_type_attribute): Likewise.
967 (generic_parameter_die): Call add_type_attribute with one modifier
969 (base_type_for_mode): Likewise.
970 (add_bounds_info): Likewise.
971 (add_subscript_info): Likewise.
972 (gen_array_type_die): Likewise.
973 (gen_descr_array_type_die): Likewise.
974 (gen_entry_point_die): Likewise.
975 (gen_enumeration_type_die): Likewise.
976 (gen_formal_parameter_die): Likewise.
977 (gen_subprogram_die): Likewise.
978 (gen_variable_die): Likewise.
979 (gen_const_die): Likewise.
980 (gen_field_die): Likewise.
981 (gen_pointer_type_die): Likewise.
982 (gen_reference_type_die): Likewise.
983 (gen_ptr_to_mbr_type_die): Likewise.
984 (gen_inheritance_die): Likewise.
985 (gen_subroutine_type_die): Likewise.
986 (gen_typedef_die): Likewise.
987 (force_type_die): Likewise.
989 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
991 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
993 * configure: Regenerate.
995 2014-08-19 Richard Biener <rguenther@suse.de>
997 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
998 DECL_EXTERNALs in BLOCKs as non-references.
999 * tree-streamer-out.c (streamer_write_chain): Likewise.
1001 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1003 Anna Tikhonova <anna.tikhonova@intel.com>
1004 Ilya Tocar <ilya.tocar@intel.com>
1005 Andrey Turetskiy <andrey.turetskiy@intel.com>
1006 Ilya Verbin <ilya.verbin@intel.com>
1007 Kirill Yukhin <kirill.yukhin@intel.com>
1008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1010 * config/i386/sse.md
1011 (define_mode_iterator VI48_AVX512F): Delete.
1012 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1013 (define_mode_iterator VI2_AVX512VL): Ditto.
1014 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1017 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1019 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1020 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1021 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1022 with VI48_AVX512F_AVX512VL): New.
1023 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1024 with VI2_AVX512VL): Ditto.
1026 2014-08-19 Marek Polacek <polacek@redhat.com>
1028 * doc/invoke.texi: Document -Wc99-c11-compat.
1030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1032 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1034 (SET_PREV_INSN): New macro, for use as an lvalue.
1035 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1037 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1038 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1039 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1040 (fixup_abnormal_edges): Likewise.
1041 (unlink_insn_chain): Likewise.
1042 (fixup_reorder_chain): Likewise.
1043 (cfg_layout_delete_block): Likewise.
1044 (cfg_layout_merge_blocks): Likewise.
1045 * combine.c (update_cfg_for_uncondjump): Likewise.
1046 * emit-rtl.c (link_insn_into_chain): Likewise.
1047 (remove_insn): Likewise.
1048 (delete_insns_since): Likewise.
1049 (reorder_insns_nobb): Likewise.
1050 (emit_insn_after_1): Likewise.
1051 * final.c (rest_of_clean_state): Likewise.
1052 (final_scan_insn): Likewise.
1053 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1054 * haifa-sched.c (concat_note_lists): Likewise.
1055 (remove_notes): Likewise.
1056 (restore_other_notes): Likewise.
1057 (move_insn): Likewise.
1058 (unlink_bb_notes): Likewise.
1059 (restore_bb_notes): Likewise.
1060 * jump.c (delete_for_peephole): Likewise.
1061 * optabs.c (emit_libcall_block_1): Likewise.
1062 * reorg.c (emit_delay_sequence): Likewise.
1063 (fill_simple_delay_slots): Likewise.
1064 * sel-sched-ir.c (sel_move_insn): Likewise.
1065 (sel_remove_insn): Likewise.
1066 (get_bb_note_from_pool): Likewise.
1067 * sel-sched.c (move_nop_to_previous_block): Likewise.
1069 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1070 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1071 (c6x_gen_bundles): Likewise.
1072 (hwloop_optimize): Likewise.
1073 * config/frv/frv.c (frv_function_prologue): Likewise.
1074 (frv_register_nop): Likewise.
1075 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1076 (ia64_reorg): Likewise.
1077 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1078 (mep_make_bundle): Likewise.
1079 (mep_bundle_insns): Likewise.
1080 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1081 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1082 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1084 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1086 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1087 return type from rtx to rtx_insn *.
1089 (BB_HEADER): Likewise.
1090 (BB_FOOTER): Likewise.
1091 (SET_BB_HEAD): Convert to a function.
1092 (SET_BB_END): Likewise.
1093 (SET_BB_HEADER): Likewise.
1094 (SET_BB_FOOTER): Likewise.
1096 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1097 Strengthen the return type from rtx to rtx_insn *. For now, this
1098 is done by adding a checked cast, but this will eventually
1099 become a field lookup.
1101 (BB_HEADER): Likewise.
1102 (BB_FOOTER): Likewise.
1103 (SET_BB_HEAD): New function, from macro of same name. This is
1104 intended for use as an lvalue, and so returns an rtx& to allow
1105 in-place modification.
1106 (SET_BB_END): Likewise.
1107 (SET_BB_HEADER): Likewise.
1108 (SET_BB_FOOTER): Likewise.
1110 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1112 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1114 (SET_BB_HEAD): New macro, for use as a lvalue.
1115 (BB_END, SET_BB_END): Likewise.
1116 (BB_HEADER, SET_BB_HEADER): Likewise.
1117 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1119 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1120 of BB_* macros into SET_BB_* macros.
1121 (fix_crossing_unconditional_branches): Likewise.
1122 * caller-save.c (save_call_clobbered_regs): Likewise.
1123 (insert_one_insn): Likewise.
1124 * cfgbuild.c (find_bb_boundaries): Likewise.
1125 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1126 (outgoing_edges_match): Likewise.
1127 (try_optimize_cfg): Likewise.
1128 * cfgexpand.c (expand_gimple_cond): Likewise.
1129 (expand_gimple_tailcall): Likewise.
1130 (expand_gimple_basic_block): Likewise.
1131 (construct_exit_block): Likewise.
1132 * cfgrtl.c (delete_insn): Likewise.
1133 (create_basic_block_structure): Likewise.
1134 (rtl_delete_block): Likewise.
1135 (rtl_split_block): Likewise.
1136 (emit_nop_for_unique_locus_between): Likewise.
1137 (rtl_merge_blocks): Likewise.
1138 (block_label): Likewise.
1139 (try_redirect_by_replacing_jump): Likewise.
1140 (emit_barrier_after_bb): Likewise.
1141 (fixup_abnormal_edges): Likewise.
1142 (record_effective_endpoints): Likewise.
1143 (relink_block_chain): Likewise.
1144 (fixup_reorder_chain): Likewise.
1145 (fixup_fallthru_exit_predecessor): Likewise.
1146 (cfg_layout_duplicate_bb): Likewise.
1147 (cfg_layout_split_block): Likewise.
1148 (cfg_layout_delete_block): Likewise.
1149 (cfg_layout_merge_blocks): Likewise.
1150 * combine.c (update_cfg_for_uncondjump): Likewise.
1151 * emit-rtl.c (add_insn_after): Likewise.
1152 (remove_insn): Likewise.
1153 (reorder_insns): Likewise.
1154 (emit_insn_after_1): Likewise.
1155 * haifa-sched.c (get_ebb_head_tail): Likewise.
1156 (restore_other_notes): Likewise.
1157 (move_insn): Likewise.
1158 (sched_extend_bb): Likewise.
1159 (fix_jump_move): Likewise.
1160 * ifcvt.c (noce_process_if_block): Likewise.
1161 (dead_or_predicable): Likewise.
1162 * ira.c (update_equiv_regs): Likewise.
1163 * reg-stack.c (change_stack): Likewise.
1164 * sel-sched-ir.c (sel_move_insn): Likewise.
1165 * sel-sched.c (move_nop_to_previous_block): Likewise.
1167 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1168 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1170 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1172 * rtl.h (for_each_rtx_in_insn): New function.
1173 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1175 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1177 * coretypes.h (class rtx_insn): Add forward declaration.
1179 * rtl.h: Include is-a.h.
1180 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1181 workaround to ensure gengtype knows inheritance is occurring,
1182 whilst continuing to use the pre-existing special-casing for
1184 (class rtx_insn): New subclass of rtx_def, adding the
1185 invariant that we're dealing with something we can sanely use
1186 INSN_UID, NEXT_INSN, PREV_INSN on.
1187 (is_a_helper <rtx_insn *>::test): New.
1188 (is_a_helper <const rtx_insn *>::test): New.
1190 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1192 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1194 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1196 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1199 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1201 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1202 to BUILT_IN_UNREACHABLE.
1204 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1207 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1209 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1210 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1211 (ffs<mode>2): Do not expand with tzcnt for
1212 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1213 (ffssi2_no_cmove): Ditto.
1214 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1215 (ctz<mode>2): New expander.
1216 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1217 (*ctz<mode>2_falsedep): New insn.
1218 (*ctz<mode>2): Rename from ctz<mode>2.
1219 (clz<mode>2_lzcnt): New expander.
1220 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1221 (*clz<mode>2_lzcnt_falsedep): New insn.
1222 (*clz<mode>2): Rename from ctz<mode>2.
1223 (popcount<mode>2): New expander.
1224 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1225 (*popcount<mode>2_falsedep): New insn.
1226 (*popcount<mode>2): Rename from ctz<mode>2.
1227 (*popcount<mode>2_cmp): Remove.
1228 (*popcountsi2_cmp_zext): Ditto.
1230 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1232 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1233 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1234 * config/microblaze/microblaze.h
1235 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1237 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1240 * configure.ac: Set install_gold_as_default to no for
1242 * configure: Regenerated.
1244 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1246 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1247 * config.in: Add undef of HAVE_isl.
1248 * configure: Regenerate.
1249 * configure.ac: Add definition of HAVE_isl.
1250 * graphite-blocking.c: Add checking of HAVE_isl.
1251 * graphite-dependences.c: Likewise.
1252 * graphite-interchange.c: Likewise.
1253 * graphite-isl-ast-to-gimple.c: Likewise.
1254 * graphite-optimize-isl.c: Likewise.
1255 * graphite-poly.c: Likewise.
1256 * graphite-scop-detection.c: Likewise.
1257 * graphite-sese-to-poly.c: Likewise.
1258 * graphite.c: Likewise.
1259 * toplev.c: Replace the checking of HAVE_cloog with the checking
1262 2014-08-18 Richard Biener <rguenther@suse.de>
1264 PR tree-optimization/62090
1265 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1266 (fold_builtin_3): Do not fold snprintf.
1267 (fold_builtin_4): Likewise.
1268 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1269 moved from builtins.c.
1270 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1271 (gimple_fold_builtin): Do not fold sprintf here.
1273 2014-08-18 Richard Biener <rguenther@suse.de>
1275 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1277 (maybe_canonicalize_mem_ref_addr): ... this function.
1278 (fold_stmt_1): Apply it here before all simplification.
1280 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1283 * cgraph.h (cgraph_node::create_indirect_edge): Add
1284 compute_indirect_info param.
1285 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1286 indirect_info only when it is required.
1287 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1288 indirect_info fore cloned indirect edge.
1290 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1291 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1292 Anna Tikhonova <anna.tikhonova@intel.com>
1293 Ilya Tocar <ilya.tocar@intel.com>
1294 Andrey Turetskiy <andrey.turetskiy@intel.com>
1295 Ilya Verbin <ilya.verbin@intel.com>
1296 Kirill Yukhin <kirill.yukhin@intel.com>
1297 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1299 * config/i386/sse.md
1300 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1301 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1303 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1304 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1305 Anna Tikhonova <anna.tikhonova@intel.com>
1306 Ilya Tocar <ilya.tocar@intel.com>
1307 Andrey Turetskiy <andrey.turetskiy@intel.com>
1308 Ilya Verbin <ilya.verbin@intel.com>
1309 Kirill Yukhin <kirill.yukhin@intel.com>
1310 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1312 * config/i386/sse.md
1313 (define_mode_iterator VF1_AVX512VL): New.
1314 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1315 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1318 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1320 Anna Tikhonova <anna.tikhonova@intel.com>
1321 Ilya Tocar <ilya.tocar@intel.com>
1322 Andrey Turetskiy <andrey.turetskiy@intel.com>
1323 Ilya Verbin <ilya.verbin@intel.com>
1324 Kirill Yukhin <kirill.yukhin@intel.com>
1325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1327 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1328 * config/i386/i386.md
1329 (define_code_iterator any_float): New.
1330 (define_code_attr floatsuffix): New.
1331 * config/i386/sse.md
1332 (define_mode_iterator VF1_128_256VL): New.
1333 (define_mode_iterator VF2_512_256VL): New.
1334 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1336 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1337 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1339 (define_mode_attr qq2pssuff): New.
1340 (define_mode_attr sselongvecmode): New.
1341 (define_mode_attr sselongvecmodelower): New.
1342 (define_mode_attr sseintvecmode3): New.
1343 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1345 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1346 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1347 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1348 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1350 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1351 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1352 Anna Tikhonova <anna.tikhonova@intel.com>
1353 Ilya Tocar <ilya.tocar@intel.com>
1354 Andrey Turetskiy <andrey.turetskiy@intel.com>
1355 Ilya Verbin <ilya.verbin@intel.com>
1356 Kirill Yukhin <kirill.yukhin@intel.com>
1357 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1359 * config/i386/sse.md
1360 (define_mode_iterator VF2_AVX512VL): New.
1361 (define_mode_attr sseintvecmode2): New.
1362 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1363 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1364 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1366 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1368 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1370 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1373 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1375 Anna Tikhonova <anna.tikhonova@intel.com>
1376 Ilya Tocar <ilya.tocar@intel.com>
1377 Andrey Turetskiy <andrey.turetskiy@intel.com>
1378 Ilya Verbin <ilya.verbin@intel.com>
1379 Kirill Yukhin <kirill.yukhin@intel.com>
1380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1382 * config/i386/i386.md
1383 (define_insn "*movoi_internal_avx"): Add evex version.
1384 (define_insn "*movti_internal"): Ditto.
1386 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1387 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1388 Anna Tikhonova <anna.tikhonova@intel.com>
1389 Ilya Tocar <ilya.tocar@intel.com>
1390 Andrey Turetskiy <andrey.turetskiy@intel.com>
1391 Ilya Verbin <ilya.verbin@intel.com>
1392 Kirill Yukhin <kirill.yukhin@intel.com>
1393 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1395 * config/i386/i386.md
1396 (define_attr "isa"): Add avx512dq, noavx512dq.
1397 (define_attr "enabled"): Ditto.
1398 * config/i386/sse.md
1399 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1401 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1402 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1403 Anna Tikhonova <anna.tikhonova@intel.com>
1404 Ilya Tocar <ilya.tocar@intel.com>
1405 Andrey Turetskiy <andrey.turetskiy@intel.com>
1406 Ilya Verbin <ilya.verbin@intel.com>
1407 Kirill Yukhin <kirill.yukhin@intel.com>
1408 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1410 * config/i386/i386.c
1411 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1412 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1413 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1414 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1415 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1416 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1417 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1418 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1419 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1420 * config/i386/sse.md
1421 (define_mode_iterator VMOVE): Allow V4TI mode.
1422 (define_mode_iterator V_AVX512VL): New.
1423 (define_mode_iterator V): New handling for AVX512VL.
1424 (define_insn "avx512f_load<mode>_mask"): Delete.
1425 (define_insn "<avx512>_load<mode>_mask"): New.
1426 (define_insn "avx512f_store<mode>_mask"): Delete.
1427 (define_insn "<avx512>_store<mode>_mask"): New.
1430 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1433 * asan.c (instrument_derefs): Fix bitfield check.
1435 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1437 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1438 * config/rs6000/htm.md (ttest): Remove clobber.
1439 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1440 (and_operand): Reformat.
1441 (and_2rld_operand): New predicate.
1442 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1444 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1445 parameter. Handle AND directly.
1446 (rs6000_split_logical_di): Remove last parameter.
1447 (rs6000_split_logical): Remove last parameter. Remove obsolete
1449 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1450 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1451 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1452 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1453 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1454 and 5 anonymous splitters): Delete.
1455 (and<mode>3): New expander.
1456 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1457 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1458 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1459 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1460 (floatdisf2_internal1): Remove clobbers.
1461 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1462 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1463 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1464 (and<mode>3 for BOOL_128): Remove clobber.
1465 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1466 rs6000_split_logical.
1467 (*bool<mode>3_internal for BOOL_128): Adjust call of
1468 rs6000_split_logical.
1469 (*boolc<mode>3_internal1 for BOOL_128,
1470 *boolc<mode>3_internal2 for BOOL_128,
1471 *boolcc<mode>3_internal1 for BOOL_128,
1472 *boolcc<mode>3_internal2 for BOOL_128,
1473 *eqv<mode>3_internal1 for BOOL_128,
1474 *eqv<mode>3_internal2 for BOOL_128,
1475 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1476 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1478 (*vec_reload_and_reg_<mptrsize>): Delete.
1480 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1482 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1483 and split, *boolccsi3_internal3 and split): Delete.
1484 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1485 *boolccdi3_internal3 and split): Delete.
1486 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1487 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1489 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1491 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1492 and split, *boolcsi3_internal3 and split): Delete.
1493 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1494 *boolcdi3_internal3 and split): Delete.
1495 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1497 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1499 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1500 <'u'>: Also support printing the low-order 16 bits.
1501 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1502 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1503 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1504 *booldi3_internal3 and split): Delete.
1505 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1506 *bool<mode>3_dot2): New.
1507 (two anonymous define_splits for non_logical_cint_operand): Merge.
1509 2014-08-17 Marek Polacek <polacek@redhat.com>
1510 Manuel López-Ibáñez <manu@gcc.gnu.org>
1513 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1514 (diagnostic_show_locus): Don't print caret diagnostic
1515 if a column is larger than the line_width.
1517 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1519 * common.opt: Make the ISL AST generator to be the main code generator
1522 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1524 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1526 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1529 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1531 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1532 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1533 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1535 * config/pa/pa.md (begin_brtab): Delete insn.
1536 (end_brtab): Likewise.
1538 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1540 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1542 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1544 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1545 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1546 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1547 (get_dynamic_type): Remove.
1548 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1549 (clear_speculation): Bring to ipa-deivrt.h
1550 (get_class_context): Rename to ...
1551 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1552 (contains_type_p): Update.
1553 (get_dynamic_type): Rename to ...
1554 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1555 (possible_polymorphic_call_targets): UPdate.
1556 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1557 * ipa-prop.c (ipa_analyze_call_uses): Update.
1559 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1561 * doc/invoke.texi (SH options): Document missing processor variant
1562 options. Remove references to Hitachi. Undocument deprecated mspace
1565 2014-08-15 Jason Merrill <jason@redhat.com>
1567 * tree.c (type_hash_canon): Uncomment assert.
1569 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1571 * input.h (in_system_header_at): Add comment.
1573 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1576 * diagnostic.c (build_message_string): Make it extern.
1577 * diagnostic.h (build_message_string): Make it extern.
1579 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1581 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1582 load/store from/to non-floating class pseudo.
1584 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1586 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1588 2014-08-15 Richard Biener <rguenther@suse.de>
1590 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1591 (get_constraint_for_ssa_var): Remove dead code.
1592 (get_constraint_for_1): Adjust.
1593 (find_what_var_points_to): Likewise.
1594 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1596 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1599 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1600 (_mm512_mask_cmpge_epu32_mask): Ditto.
1601 (_mm512_cmpge_epu32_mask): Ditto.
1602 (_mm512_mask_cmpge_epi64_mask): Ditto.
1603 (_mm512_cmpge_epi64_mask): Ditto.
1604 (_mm512_mask_cmpge_epu64_mask): Ditto.
1605 (_mm512_cmpge_epu64_mask): Ditto.
1606 (_mm512_mask_cmple_epi32_mask): Ditto.
1607 (_mm512_cmple_epi32_mask): Ditto.
1608 (_mm512_mask_cmple_epu32_mask): Ditto.
1609 (_mm512_cmple_epu32_mask): Ditto.
1610 (_mm512_mask_cmple_epi64_mask): Ditto.
1611 (_mm512_cmple_epi64_mask): Ditto.
1612 (_mm512_mask_cmple_epu64_mask): Ditto.
1613 (_mm512_cmple_epu64_mask): Ditto.
1614 (_mm512_mask_cmplt_epi32_mask): Ditto.
1615 (_mm512_cmplt_epi32_mask): Ditto.
1616 (_mm512_mask_cmplt_epu32_mask): Ditto.
1617 (_mm512_cmplt_epu32_mask): Ditto.
1618 (_mm512_mask_cmplt_epi64_mask): Ditto.
1619 (_mm512_cmplt_epi64_mask): Ditto.
1620 (_mm512_mask_cmplt_epu64_mask): Ditto.
1621 (_mm512_cmplt_epu64_mask): Ditto.
1622 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1623 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1624 (_mm512_cmpneq_epu32_mask): Ditto.
1625 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1626 (_mm512_cmpneq_epi64_mask): Ditto.
1627 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1628 (_mm512_cmpneq_epu64_mask): Ditto.
1629 (_mm512_castpd_ps): Ditto.
1630 (_mm512_castpd_si512): Ditto.
1631 (_mm512_castps_pd): Ditto.
1632 (_mm512_castps_si512): Ditto.
1633 (_mm512_castsi512_ps): Ditto.
1634 (_mm512_castsi512_pd): Ditto.
1635 (_mm512_castpd512_pd128): Ditto.
1636 (_mm512_castps512_ps128): Ditto.
1637 (_mm512_castsi512_si128): Ditto.
1638 (_mm512_castpd512_pd256): Ditto.
1639 (_mm512_castps512_ps256): Ditto.
1640 (_mm512_castsi512_si256): Ditto.
1641 (_mm512_castpd128_pd512): Ditto.
1642 (_mm512_castps128_ps512): Ditto.
1643 (_mm512_castsi128_si512): Ditto.
1644 (_mm512_castpd256_pd512): Ditto.
1645 (_mm512_castps256_ps512): Ditto.
1646 (_mm512_castsi256_si512): Ditto.
1647 (_mm512_cmpeq_epu32_mask): Ditto.
1648 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1649 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1650 (_mm512_cmpeq_epu64_mask): Ditto.
1651 (_mm512_cmpgt_epu32_mask): Ditto.
1652 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1653 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1654 (_mm512_cmpgt_epu64_mask): Ditto.
1655 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1656 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1657 * config/i386/i386.c (enum ix86_builtins): Add
1658 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1659 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1660 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1661 (bdesc_args): Add __builtin_ia32_si512_256si,
1662 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1663 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1664 __builtin_ia32_pd512_pd.
1665 (ix86_expand_args_builtin): Handle new FTYPEs.
1666 * config/i386/sse.md (castmode): Add 512-bit modes.
1667 (AVX512MODE2P): New.
1668 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1669 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1671 2014-08-15 Richard Biener <rguenther@suse.de>
1673 * fold-const.c (tree_swap_operands_p): Put all constants
1674 last, also strip sign-changing NOPs when considering further
1675 canonicalization. Canonicalize also when optimizing for size.
1677 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1679 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1680 one_match > zero_match case to just before simple_sequence.
1682 2014-08-15 Richard Biener <rguenther@suse.de>
1684 * data-streamer.h (streamer_string_index, string_for_index):
1686 * data-streamer-out.c (streamer_string_index): Make static.
1687 * data-streamer-in.c (string_for_index): Likewise.
1688 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1689 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1691 2014-08-15 Richard Biener <rguenther@suse.de>
1693 PR tree-optimization/62031
1694 * tree-data-ref.c (dr_analyze_indices): Do not set
1695 DR_UNCONSTRAINED_BASE.
1696 (dr_may_alias_p): All indirect accesses have to go the
1697 formerly DR_UNCONSTRAINED_BASE path.
1698 * tree-data-ref.h (struct indices): Remove
1699 unconstrained_base member.
1700 (DR_UNCONSTRAINED_BASE): Remove.
1702 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1705 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1706 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1707 in OMP_CLAUSE_MAP in some outer target region.
1709 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1711 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1712 name_expansion_cache.
1713 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1714 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1715 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1716 (difference_cannot_overflow_p): New parameter. Use affine
1717 expansion for equality check.
1718 (iv_elimination_compare_lt): Pass new argument.
1720 2014-08-14 DJ Delorie <dj@redhat.com>
1722 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1723 variables to the accumulator.
1725 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1726 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1727 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1730 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1731 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1732 (umulqihi3_virt): Likewise.
1733 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1734 (umulqihi3_real): Likewise.
1736 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1738 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1740 PR tree-optimization/62091
1741 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1742 function_entry_reached.
1743 (walk_aliased_vdefs): Clear it here.
1744 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1746 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1748 * ipa-utils.h (compare_virtual_tables): Declare.
1749 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1751 2014-08-14 Marek Polacek <polacek@redhat.com>
1754 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1755 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1757 2014-08-14 Tom de Vries <tom@codesourcery.com>
1759 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1761 2014-08-14 Tom de Vries <tom@codesourcery.com>
1763 PR rtl-optimization/62004
1764 PR rtl-optimization/62030
1765 * ifcvt.c (rtx_interchangeable_p): New function.
1766 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1767 * emit-rtl.h (mem_attrs_eq_p): Declare.
1769 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1771 * graphite-scop-detection.c:
1772 Add inclusion of cp-tree.h.
1773 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1774 in case they are pointers to object types
1776 2014-08-14 Richard Biener <rguenther@suse.de>
1778 * BASE-VER: Change to 5.0.0
1780 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1781 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1782 Anna Tikhonova <anna.tikhonova@intel.com>
1783 Ilya Tocar <ilya.tocar@intel.com>
1784 Andrey Turetskiy <andrey.turetskiy@intel.com>
1785 Ilya Verbin <ilya.verbin@intel.com>
1786 Kirill Yukhin <kirill.yukhin@intel.com>
1787 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1789 * config/i386/sse.md (define_mode_attr avx512): New.
1790 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1792 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1793 (define_mode_attr ssse3_avx2): Ditto.
1794 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1795 (define_mode_attr avx2_avx512bw): New.
1796 (define_mode_attr ssedoublemodelower): New.
1797 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1799 (define_mode_attr ssebytemode): Allow V8DI modes.
1800 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1801 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1802 (define_mode_attr ssePSmode2): New.
1803 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1805 (define_mode_attr dbpsadbwmode): New.
1806 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1807 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1808 (vi8_sse4_1_avx2_avx512): New.
1809 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1811 (define_mode_attr blendbits): Move before its immediate use.
1813 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1814 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1815 Anna Tikhonova <anna.tikhonova@intel.com>
1816 Ilya Tocar <ilya.tocar@intel.com>
1817 Andrey Turetskiy <andrey.turetskiy@intel.com>
1818 Ilya Verbin <ilya.verbin@intel.com>
1819 Kirill Yukhin <kirill.yukhin@intel.com>
1820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1822 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1823 * config/i386/subst.md
1824 (define_mode_iterator SUBST_V): Update.
1825 (define_mode_iterator SUBST_A): Ditto.
1826 (define_subst_attr "mask_operand7"): New.
1827 (define_subst_attr "mask_operand10"): New.
1828 (define_subst_attr "mask_operand_arg34") : New.
1829 (define_subst_attr "mask_expand_op3"): New.
1830 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1831 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1832 (define_subst_attr "mask_avx512vl_condition"): New.
1833 (define_subst_attr "round_mask_operand4"): Ditto.
1834 (define_subst_attr "round_mask_scalar_op3"): Delete.
1835 (define_subst_attr "round_mask_op4"): New.
1836 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1838 (define_subst_attr "round_modev8sf_condition"): New.
1839 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1841 (define_subst_attr "round_saeonly_mask_operand4"): New.
1842 (define_subst_attr "round_saeonly_mask_op4"): New.
1843 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1844 V8DImode, V16SImode.
1845 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1846 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1847 (define_subst_attr "mask_expand4_args"): New.
1848 (define_subst "mask_expand4"): New.
1850 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1852 Anna Tikhonova <anna.tikhonova@intel.com>
1853 Ilya Tocar <ilya.tocar@intel.com>
1854 Andrey Turetskiy <andrey.turetskiy@intel.com>
1855 Ilya Verbin <ilya.verbin@intel.com>
1856 Kirill Yukhin <kirill.yukhin@intel.com>
1857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1859 * config/i386/i386.md
1860 (define_attr "isa"): Add avx512bw,noavx512bw.
1861 (define_attr "enabled"): Ditto.
1862 (define_split): Add 32/64-bit mask logic.
1863 (define_insn "*k<logic>qi"): New.
1864 (define_insn "*k<logic>hi"): New.
1865 (define_insn "*anddi_1"): Add mask version.
1866 (define_insn "*andsi_1"): Ditto.
1867 (define_insn "*<code><mode>_1"): Ditto.
1868 (define_insn "*<code>hi_1"): Ditto.
1869 (define_insn "kxnor<mode>"): New.
1870 (define_insn "kunpcksi"): New.
1871 (define_insn "kunpckdi"): New.
1872 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1873 (define_insn "*one_cmplhi2_1"): Ditto.
1875 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1876 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1877 Anna Tikhonova <anna.tikhonova@intel.com>
1878 Ilya Tocar <ilya.tocar@intel.com>
1879 Andrey Turetskiy <andrey.turetskiy@intel.com>
1880 Ilya Verbin <ilya.verbin@intel.com>
1881 Kirill Yukhin <kirill.yukhin@intel.com>
1882 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1884 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1887 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1889 Anna Tikhonova <anna.tikhonova@intel.com>
1890 Ilya Tocar <ilya.tocar@intel.com>
1891 Andrey Turetskiy <andrey.turetskiy@intel.com>
1892 Ilya Verbin <ilya.verbin@intel.com>
1893 Kirill Yukhin <kirill.yukhin@intel.com>
1894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1896 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1898 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1899 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1900 xmm/ymm16+ when availble.
1901 * config/i386/i386.h
1902 (HARD_REGNO_NREGS): Add mask regs.
1903 (VALID_AVX512F_REG_MODE): Ditto.
1904 (VALID_AVX512F_REG_MODE) : Define.
1905 (VALID_MASK_AVX512BW_MODE): Ditto.
1906 (reg_class) (MASK_REG_P(X)): Define.
1907 * config/i386/i386.md: Do not split long moves with mask register,
1908 use kmovb if avx512bw is availible.
1909 (movdi_internal): Handle mask registers.
1911 2014-08-14 Richard Biener <rguenther@suse.de>
1913 PR tree-optimization/62081
1914 * tree-ssa-loop.c (pass_fix_loops): New pass.
1915 (pass_tree_loop::gate): Do not fixup loops here.
1916 * tree-pass.h (make_pass_fix_loops): Declare.
1917 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1919 2014-08-14 Richard Biener <rguenther@suse.de>
1921 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1922 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1924 2014-08-14 Richard Biener <rguenther@suse.de>
1926 PR tree-optimization/62090
1927 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1928 (fold_builtin_2): Do not fold sprintf.
1929 (fold_builtin_3): Likewise.
1930 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1931 moved from builtins.c.
1932 (gimple_fold_builtin): Fold sprintf.
1934 2014-08-14 Richard Biener <rguenther@suse.de>
1936 PR rtl-optimization/62079
1937 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1940 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1942 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1943 current_function_decl.
1945 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1947 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1948 cgraph_function_node to cgraph_node::function_symbol
1951 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1953 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1954 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1956 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1958 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1961 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1963 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1966 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1969 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1970 any registers that are used in mem_insn.
1972 2014-08-12 Steve Ellcey <sellcey@mips.com>
1974 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1976 2014-08-12 Steve Ellcey <sellcey@mips.com>
1978 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1979 (MULTILIB_DIRNAMES): Ditto.
1980 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1981 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1982 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1983 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1984 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1985 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1987 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1990 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1991 of __ARM_SIZEOF_WCHAR_T.
1993 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1996 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1997 Remove unnecessary attributes.
1999 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2001 * internal-fn.c (init_internal_fns): Fix off-by-one.
2003 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2005 Anna Tikhonova <anna.tikhonova@intel.com>
2006 Ilya Tocar <ilya.tocar@intel.com>
2007 Andrey Turetskiy <andrey.turetskiy@intel.com>
2008 Ilya Verbin <ilya.verbin@intel.com>
2009 Kirill Yukhin <kirill.yukhin@intel.com>
2010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2012 * config/i386/i386.c (standard_sse_constant_opcode): Use
2013 vpxord/vpternlog if avx512 is availible.
2015 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2018 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2019 bitfields, that is when size doesn't match the size of type or the
2020 size of the constructor.
2022 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2024 * config/rs6000/constraints.md (wh constraint): New constraint,
2025 for FP registers if direct move is available.
2026 (wi constraint): New constraint, for VSX/FP registers that can
2027 handle 64-bit integers.
2028 (wj constraint): New constraint for VSX/FP registers that can
2029 handle 64-bit integers for direct moves.
2030 (wk constraint): New constraint for VSX/FP registers that can
2031 handle 64-bit doubles for direct moves.
2032 (wy constraint): Make documentation match implementation.
2034 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2035 scalar_in_vmx_p field to simplify tests of whether SFmode or
2036 DFmode can go in the Altivec registers.
2037 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2038 (rs6000_setup_reg_addr_masks): Likewise.
2039 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2040 field, and wh/wi/wj/wk constraints.
2041 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2042 the wh/wi/wj/wk constraints.
2043 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2044 upper registers, prefer VSX registers unless the operation is a
2045 memory operation with REG+OFFSET addressing.
2047 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2048 DImode. Change SFmode to use ww constraint instead of d to allow
2049 SF registers in the upper registers.
2052 (VSr5): Fix thinko in comment.
2053 (VSa): New mode attribute that is an alternative to wa, that
2054 returns the VSX register class that a mode can go in, but may not
2055 be the preferred register class.
2056 (VS_64dm): New mode attribute for appropriate register classes for
2057 referencing 64-bit elements of vectors for direct moves and normal
2059 (VS_64reg): Likewise.
2060 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2061 register allocator to only registers the data type can handle.
2062 (vsx_le_perm_load_<mode>): Likewise.
2063 (vsx_le_perm_store_<mode>): Likewise.
2064 (vsx_xxpermdi2_le_<mode>): Likewise.
2065 (vsx_xxpermdi4_le_<mode>): Likewise.
2066 (vsx_lxvd2x2_le_<mode>): Likewise.
2067 (vsx_lxvd2x4_le_<mode>): Likewise.
2068 (vsx_stxvd2x2_le_<mode>): Likewise.
2069 (vsx_add<mode>3): Likewise.
2070 (vsx_sub<mode>3): Likewise.
2071 (vsx_mul<mode>3): Likewise.
2072 (vsx_div<mode>3): Likewise.
2073 (vsx_tdiv<mode>3_internal): Likewise.
2074 (vsx_fre<mode>2): Likewise.
2075 (vsx_neg<mode>2): Likewise.
2076 (vsx_abs<mode>2): Likewise.
2077 (vsx_nabs<mode>2): Likewise.
2078 (vsx_smax<mode>3): Likewise.
2079 (vsx_smin<mode>3): Likewise.
2080 (vsx_sqrt<mode>2): Likewise.
2081 (vsx_rsqrte<mode>2): Likewise.
2082 (vsx_tsqrt<mode>2_internal): Likewise.
2083 (vsx_fms<mode>4): Likewise.
2084 (vsx_nfma<mode>4): Likewise.
2085 (vsx_eq<mode>): Likewise.
2086 (vsx_gt<mode>): Likewise.
2087 (vsx_ge<mode>): Likewise.
2088 (vsx_eq<mode>_p): Likewise.
2089 (vsx_gt<mode>_p): Likewise.
2090 (vsx_ge<mode>_p): Likewise.
2091 (vsx_xxsel<mode>): Likewise.
2092 (vsx_xxsel<mode>_uns): Likewise.
2093 (vsx_copysign<mode>3): Likewise.
2094 (vsx_float<VSi><mode>2): Likewise.
2095 (vsx_floatuns<VSi><mode>2): Likewise.
2096 (vsx_fix_trunc<mode><VSi>2): Likewise.
2097 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2098 (vsx_x<VSv>r<VSs>i): Likewise.
2099 (vsx_x<VSv>r<VSs>ic): Likewise.
2100 (vsx_btrunc<mode>2): Likewise.
2101 (vsx_b2trunc<mode>2): Likewise.
2102 (vsx_floor<mode>2): Likewise.
2103 (vsx_ceil<mode>2): Likewise.
2104 (vsx_<VS_spdp_insn>): Likewise.
2105 (vsx_xscvspdp): Likewise.
2106 (vsx_xvcvspuxds): Likewise.
2107 (vsx_float_fix_<mode>2): Likewise.
2108 (vsx_set_<mode>): Likewise.
2109 (vsx_extract_<mode>_internal1): Likewise.
2110 (vsx_extract_<mode>_internal2): Likewise.
2111 (vsx_extract_<mode>_load): Likewise.
2112 (vsx_extract_<mode>_store): Likewise.
2113 (vsx_splat_<mode>): Likewise.
2114 (vsx_xxspltw_<mode>): Likewise.
2115 (vsx_xxspltw_<mode>_direct): Likewise.
2116 (vsx_xxmrghw_<mode>): Likewise.
2117 (vsx_xxmrglw_<mode>): Likewise.
2118 (vsx_xxsldwi_<mode>): Likewise.
2119 (vsx_xscvdpspn): Tighten constraints to only use register classes
2121 (vsx_xscvspdpn): Likewise.
2122 (vsx_xscvdpspn_scalar): Likewise.
2124 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2125 wj, and wk constraints.
2126 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2127 general purpose registers.
2129 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2131 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2132 DImode instead of wm. Use wk constraint for direct move of DFmode
2134 (extendsidi2_lfiwax): Likewise.
2137 (movdi_internal64): Likewise.
2139 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2140 wk constraints. Make the wy constraint documentation match them
2143 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2145 Replacement of isl_int by isl_val
2146 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2147 (compute_bounds_for_param): use isl_val instead of isl_int
2148 (compute_bounds_for_loop): likewise
2149 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2150 (build_linearized_memory_access): use isl_val instead of isl_int
2151 (pdr_stride_in_loop): likewise
2152 * graphite-optimize-isl.c:
2153 (getPrevectorMap): use isl_val instead of isl_int
2155 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2156 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2157 (extern the_isl_ctx): declare
2158 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2159 (extract_affine_gmp): likewise
2161 (build_loop_iteration_domains): likewise
2162 (add_param_constraints): likewise
2164 2014-08-11 Richard Biener <rguenther@suse.de>
2166 PR tree-optimization/62075
2167 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2168 handle uses in patterns.
2170 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2172 Anna Tikhonova <anna.tikhonova@intel.com>
2173 Ilya Tocar <ilya.tocar@intel.com>
2174 Andrey Turetskiy <andrey.turetskiy@intel.com>
2175 Ilya Verbin <ilya.verbin@intel.com>
2176 Kirill Yukhin <kirill.yukhin@intel.com>
2177 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2179 * common/config/i386/i386-common.c
2180 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2181 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2182 (ix86_handle_option): Handle OPT_mavx512vl.
2183 * config/i386/cpuid.h (bit_AVX512VL): Define.
2184 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2185 set -mavx512vl accordingly.
2186 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2187 OPTION_MASK_ISA_AVX512VL.
2188 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2189 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2190 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2191 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2192 * config/i386/i386.h (TARGET_AVX512VL): Define.
2193 (TARGET_AVX512VL_P(x)): Ditto.
2194 * config/i386/i386.opt: Add mavx512vl.
2196 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2198 PR tree-optimization/62073
2199 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2202 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2203 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2204 Anna Tikhonova <anna.tikhonova@intel.com>
2205 Ilya Tocar <ilya.tocar@intel.com>
2206 Andrey Turetskiy <andrey.turetskiy@intel.com>
2207 Ilya Verbin <ilya.verbin@intel.com>
2208 Kirill Yukhin <kirill.yukhin@intel.com>
2209 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2211 * common/config/i386/i386-common.c
2212 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2213 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2214 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2215 (ix86_handle_option): Handle OPT_mavx512bw.
2216 * config/i386/cpuid.h (bit_AVX512BW): Define.
2217 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2218 set -mavx512bw accordingly.
2219 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2220 OPTION_MASK_ISA_AVX512BW.
2221 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2222 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2223 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2224 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2225 * config/i386/i386.h (TARGET_AVX512BW): Define.
2226 (TARGET_AVX512BW_P(x)): Ditto.
2227 * config/i386/i386.opt: Add mavx512bw.
2229 2014-08-11 Richard Biener <rguenther@suse.de>
2231 PR tree-optimization/62070
2232 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2233 Remove SSA checking.
2235 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2237 * asan.c (asan_check_flags): New enum.
2238 (build_check_stmt_with_calls): Removed function.
2239 (build_check_stmt): Split inlining logic to
2240 asan_expand_check_ifn.
2241 (instrument_derefs): Rename parameter.
2242 (instrument_mem_region_access): Rename parameter.
2243 (instrument_strlen_call): Likewise.
2244 (asan_expand_check_ifn): New function.
2245 (asan_instrument): Remove old code.
2246 (pass_sanopt::execute): Change handling of
2247 asan-instrumentation-with-call-threshold.
2248 (asan_clear_shadow): Fix formatting.
2249 (asan_function_start): Likewise.
2250 (asan_emit_stack_protection): Likewise.
2251 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2253 * internal-fn.c (expand_ASAN_CHECK): New function.
2254 * internal-fn.def (ASAN_CHECK): New internal function.
2255 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2257 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2258 * tree.c: Small comment fix.
2260 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2262 * gimple.c (gimple_call_fnspec): Support internal functions.
2263 (gimple_call_return_flags): Use const.
2264 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2265 * internal-fn.def: Add fnspec information.
2266 * internal-fn.h (internal_fn_fnspec): New function.
2267 (init_internal_fns): Declare new function.
2268 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2269 (init_internal_fns): New function.
2270 * tree-core.h: Update macro call.
2271 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2273 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2275 * lto-streamer.h (struct output_block::symbol): Change from
2276 struct symtab_node to plain symtab_node.
2277 (referenced_from_this_partition_p): Change first parameter
2278 from struct symtab_node to plain symtab_node.
2280 2014-08-10 Marek Polacek <polacek@redhat.com>
2283 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2285 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2287 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2288 DECL correctly; do not give up on types in static storage.
2290 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2292 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2294 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2296 * graphite-isl-ast-to-gimple.c:
2297 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2299 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2301 2014-08-08 Guozhi Wei <carrot@google.com>
2303 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2305 2014-08-08 Cary Coutant <ccoutant@google.com>
2307 * dwarf2out.c (get_skeleton_type_unit): Remove.
2308 (output_skeleton_debug_sections): Remove skeleton type units.
2309 (output_comdat_type_unit): Likewise.
2310 (dwarf2out_finish): Likewise.
2312 2014-08-07 Yi Yang <ahyangyi@google.com>
2314 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2316 2014-08-08 Richard Biener <rguenther@suse.de>
2318 * lto-streamer.h (struct lto_input_block): Make it a class
2320 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2321 (struct lto_function_header, struct lto_simple_header,
2322 struct lto_simple_header_with_strings,
2323 struct lto_decl_header, struct lto_function_header): Make
2324 a simple inheritance hieararchy. Remove unused fields.
2325 (struct lto_asm_header): Remove.
2326 * lto-streamer-out.c (produce_asm): Adjust.
2327 (lto_output_toplevel_asms): Likewise.
2328 (produce_asm_for_decls): Likewise.
2329 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2330 * data-streamer-in.c (string_for_index): Likewise.
2331 * ipa-inline-analysis.c (inline_read_section): Likewise.
2332 * ipa-prop.c (ipa_prop_read_section): Likewise.
2333 (read_replacements_section): Likewise.
2334 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2335 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2336 (lto_destroy_simple_input_block): Likewise.
2337 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2338 (lto_input_toplevel_asms): Likewise.
2340 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2342 Anna Tikhonova <anna.tikhonova@intel.com>
2343 Ilya Tocar <ilya.tocar@intel.com>
2344 Andrey Turetskiy <andrey.turetskiy@intel.com>
2345 Ilya Verbin <ilya.verbin@intel.com>
2346 Kirill Yukhin <kirill.yukhin@intel.com>
2347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2349 * common/config/i386/i386-common.c
2350 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2351 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2352 (ix86_handle_option): Handle OPT_mavx512dq.
2353 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2354 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2355 set -mavx512dq accordingly.
2356 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2357 OPTION_MASK_ISA_AVX512DQ.
2358 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2359 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2360 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2361 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2362 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2363 (TARGET_AVX512DQ_P(x)): Ditto.
2364 * config/i386/i386.opt: Add mavx512dq.
2366 2014-08-08 Richard Biener <rguenther@suse.de>
2368 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2369 target_percent, target_percent_s): Export.
2370 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2371 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2372 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2373 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2374 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2375 Move to gimple-fold.c.
2376 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2378 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2379 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2380 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2381 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2382 (rewrite_call_expr_array): Remove.
2383 (fold_builtin_sprintf_chk): Likewise.
2384 (fold_builtin_snprintf_chk): Likewise.
2385 (fold_builtin_varargs): Remove handling of sprintf_chk,
2386 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2387 (gimple_fold_builtin_sprintf_chk): Remove.
2388 (gimple_fold_builtin_snprintf_chk): Likewise.
2389 (gimple_fold_builtin_varargs): Likewise.
2390 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2391 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2392 * gimple.c (gimple_seq_add_seq_without_update): New function.
2393 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2394 * gimple-fold.c: Include output.h.
2395 (gsi_replace_with_seq_vops): New function, split out from ...
2396 (gimplify_and_update_call_from_tree): ... here.
2397 (replace_call_with_value): New function.
2398 (replace_call_with_call_and_fold): Likewise.
2399 (var_decl_component_p): Moved from builtins.c.
2400 (gimple_fold_builtin_memory_op): Moved from builtins.c
2401 fold_builtin_memory_op and rewritten to GIMPLE.
2402 (gimple_fold_builtin_memset): Likewise.
2403 (gimple_fold_builtin_strcpy): Likewise.
2404 (gimple_fold_builtin_strncpy): Likewise.
2405 (gimple_fold_builtin_strcat): Likewise.
2406 (gimple_fold_builtin_fputs): Likewise.
2407 (gimple_fold_builtin_memory_chk): Likewise.
2408 (gimple_fold_builtin_stxcpy_chk): Likewise.
2409 (gimple_fold_builtin_stxncpy_chk): Likewise.
2410 (gimple_fold_builtin_snprintf_chk): Likewise.
2411 (gimple_fold_builtin_sprintf_chk): Likewise.
2412 (gimple_fold_builtin_strlen): New function.
2413 (gimple_fold_builtin_with_strlen): New function split out from
2414 gimple_fold_builtin.
2415 (gimple_fold_builtin): Change signature and handle
2416 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2417 here. Call gimple_fold_builtin_with_strlen.
2418 (gimple_fold_call): Adjust.
2420 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2422 * calls.c (precompute_arguments): Check
2423 promoted_for_signed_and_unsigned_p and set the promoted mode.
2424 (promoted_for_signed_and_unsigned_p): New function.
2425 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2426 and set the promoted mode.
2427 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2428 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2429 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2432 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2434 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2435 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2436 (expand_call): Likewise.
2437 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2438 to get promoted mode.
2439 * combine.c (record_promoted_value): Skip > 0 comparison with
2440 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2441 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2442 of SUBREG_PROMOTED_UNSIGNED_P.
2443 (convert_modes): Likewise.
2444 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2445 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2446 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2447 SUBREG_PROMOTED_UNSIGNED_SET.
2448 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2449 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2450 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2451 SUBREG_PROMOTED_SET.
2452 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2453 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2454 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2455 of SUBREG_PROMOTED_UNSIGNED_P.
2456 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2457 (SUBREG_PROMOTED_SET): New define.
2458 (SUBREG_PROMOTED_GET): Likewise.
2459 (SUBREG_PROMOTED_SIGN): Likewise.
2460 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2461 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2462 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2463 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2464 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2465 (nonzero_bits1): Skip > 0 comparison with the results as
2466 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2467 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2468 of !SUBREG_PROMOTED_UNSIGNED_P.
2469 * simplify-rtx.c (simplify_unary_operation_1): Use new
2470 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2471 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2472 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2473 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2475 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2477 * ipa-devirt.c: Include gimple-pretty-print.h
2478 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2480 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2481 (get_polymorphic_call_info): Fix return value
2482 (type_change_info): New sturcture based on ipa-prop
2484 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2485 based on ipa-prop variant.
2486 (extr_type_from_vtbl_ptr_store): New function
2487 based on ipa-prop variant.
2488 (record_known_type): New function.
2489 (check_stmt_for_type_change): New function.
2490 (get_dynamic_type): New function.
2491 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2492 * tree-ssa-pre.c: ipa-utils.h
2493 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2494 machinery; sanity check with ipa-prop devirtualization.
2495 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2498 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2500 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2501 * alias.c, cfgexpand.c, cgraphbuild.c,
2502 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2503 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2504 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2505 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2506 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2507 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2508 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2509 dse.c, except.c, gengtype.c, gimple-expr.c,
2510 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2511 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2512 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2513 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2514 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2515 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2517 * pointer-set.c: Remove file.
2518 * pointer-set.h: Remove file.
2520 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2522 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2523 * config/arm/types.md (f_sels, f_seld): Delete.
2525 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2527 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2528 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2529 (aarch64_movdi_<mode>high): Likewise.
2530 (aarch64_mov<mode>high_di): Likewise.
2531 (aarch64_movdi_<mode>low): Likewise.
2532 (aarch64_mov<mode>low_di): Likewise.
2533 (aarch64_movtilow_tilow): Likewise.
2534 Add comment explaining usage of fp,simd attributes and of
2535 TARGET_FLOAT and TARGET_SIMD.
2537 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2538 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2540 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2541 Use MOVN when one of the half-words is 0xffff.
2543 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2545 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2547 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2549 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2550 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2551 (rfs_str): String corresponding to RFS_* constants.
2552 (rank_for_schedule_stats_t): New typedef.
2553 (rank_for_schedule_stats): New static variable.
2554 (rfs_result): New static function.
2555 (rank_for_schedule): Track statistics for deciding heuristics.
2556 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2558 (ready_sort): Use them for debug printouts.
2559 (schedule_block): Init statistics state. Print statistics on
2560 rank_for_schedule decisions.
2562 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2564 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2566 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2568 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2571 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2573 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2574 function to not conflict.
2575 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2576 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2577 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2578 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2579 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2582 2014-08-07 Marek Polacek <polacek@redhat.com>
2584 * fold-const.c (fold_binary_loc): Add folding of
2585 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2587 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2589 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2590 instead of type size.
2591 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2593 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2595 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2596 (*thumb1_movqi_insn): Likewise.
2597 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2599 2014-08-07 Tom de Vries <tom@codesourcery.com>
2601 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2602 (glibc_2_11_or_earlier): Remove effective-target keywords.
2604 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2606 * config/arm/arm.c (bdesc_2arg): Fix typo.
2607 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2609 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2611 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2613 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2616 * haifa-sched.c (advance_one_cycle): Fix dump.
2617 (schedule_block): Don't advance cycle if we are already at the
2618 beginning of the cycle.
2620 2014-08-06 Martin Jambor <mjambor@suse.cz>
2623 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2625 2014-08-06 Richard Biener <rguenther@suse.de>
2628 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2630 (lto_input_tree): Pop SCCs here.
2632 2014-08-06 Richard Biener <rguenther@suse.de>
2634 PR tree-optimization/61320
2635 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2636 handle misaligned loads.
2638 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2640 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2641 (aarch64_expand_vec_perm_const): Check for dup before zip.
2643 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2645 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2646 CONST_INT_P instead of GET_CODE and compare.
2647 (aarch64_select_cc_mode): Likewise.
2648 (aarch64_print_operand): Likewise.
2649 (aarch64_rtx_costs): Likewise.
2650 (aarch64_simd_valid_immediate): Likewise.
2651 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2652 (aarch64_simd_emit_pair_result_insn): Likewise.
2654 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2656 * gdbhooks.py (find_gcc_source_dir): New helper function.
2657 (class PassNames): New class, locating and parsing passes.def.
2658 (class BreakOnPass): New command "break-on-pass".
2660 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2662 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2665 2014-08-05 Richard Biener <rguenther@suse.de>
2667 PR rtl-optimization/61672
2668 * emit-rtl.h (mem_attrs_eq_p): Declare.
2669 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2670 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2671 * cfgcleanup.c (merge_memattrs): Likewise.
2674 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2676 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2677 rather than singleton vectors.
2678 (vqdmlsls_lane_s32): Likewise.
2680 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2682 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2683 Use VSDQ_HSI mode iterator.
2684 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2685 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2686 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2687 Use BUILTIN_VDQHS macro.
2688 (sqrdmulh_laneq): Likewise.
2689 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2690 (vqdmlals_laneq_s32): Likewise.
2691 (vqdmlslh_laneq_s16): Likewise.
2692 (vqdmlsls_laneq_s32): Likewise.
2693 (vqdmulhh_laneq_s16): Likewise.
2694 (vqdmulhs_laneq_s32): Likewise.
2695 (vqrdmulhh_laneq_s16): Likewise.
2696 (vqrdmulhs_laneq_s32): Likewise.
2698 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2700 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2701 (vmuld_laneq_f64): Likewise.
2702 (vmuls_laneq_f32): Likewise.
2703 (vmul_n_f64): Likewise.
2704 (vmuld_lane_f64): Reimplement in C.
2705 (vmuls_lane_f32): Likewise.
2707 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2709 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2711 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2713 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2715 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2716 (rbitsi2): Likewise.
2717 (*arm_rev): Set predicable and predicable_short_it attributes.
2719 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2721 * convert.c (convert_to_integer): Guard transformation to lrint by
2724 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2726 * config/aarch64/aarch64-builtins.c
2727 (aarch64_simd_builtin_type_mode): Delete.
2728 (v8qi_UP): Remap to V8QImode.
2729 (v4hi_UP): Remap to V4HImode.
2730 (v2si_UP): Remap to V2SImode.
2731 (v2sf_UP): Remap to V2SFmode.
2732 (v1df_UP): Remap to V1DFmode.
2733 (di_UP): Remap to DImode.
2734 (df_UP): Remap to DFmode.
2735 (v16qi_UP):V16QImode.
2736 (v8hi_UP): Remap to V8HImode.
2737 (v4si_UP): Remap to V4SImode.
2738 (v4sf_UP): Remap to V4SFmode.
2739 (v2di_UP): Remap to V2DImode.
2740 (v2df_UP): Remap to V2DFmode.
2741 (ti_UP): Remap to TImode.
2742 (ei_UP): Remap to EImode.
2743 (oi_UP): Remap to OImode.
2744 (ci_UP): Map to CImode.
2745 (xi_UP): Remap to XImode.
2746 (si_UP): Remap to SImode.
2747 (sf_UP): Remap to SFmode.
2748 (hi_UP): Remap to HImode.
2749 (qi_UP): Remap to QImode.
2750 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2751 (VAR1): Build builtin name.
2752 (aarch64_init_simd_builtins): Remove dead code.
2754 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2756 * graphite-isl-ast-to-gimple.c:
2757 (set_options): New function.
2758 (scop_to_isl_ast): Add calling of set_options.
2760 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2762 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2763 (analyze_iv_to_split_insn): Don't initialize them.
2764 (get_ivts_expr): Removed.
2765 (allocate_basic_variable, insert_base_initialization): Use
2766 SET_SRC instead of *get_ivts_expr.
2767 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2769 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2771 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2772 (translate_isl_ast_for_loop): Add checking of the
2773 flag_loop_parallelize_all.
2774 (ast_build_before_for): New function.
2775 (scop_to_isl_ast): Add checking of the
2776 flag_loop_parallelize_all.
2777 * graphite-dependences.c: Move the defenition of the
2778 scop_get_dependences from graphite-optimize-isl.c to this file.
2779 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2780 (carries_deps): Add checking of the x's value.
2781 * graphite-optimize-isl.c: Move the defenition of the
2782 scop_get_dependences to graphite-dependences.c.
2783 * graphite-poly.h: Add declarations of scop_get_dependences
2786 2014-08-04 Rohit <rohitarulraj@freescale.com>
2789 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2791 (alt_reg_names): Likewise.
2792 (rs6000_dwarf_register_span): For SPE high registers, replace
2793 dwarf register numbers with GCC hard register numbers.
2794 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2795 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2796 register number for the corresponding GCC hard register number.
2797 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2798 newly added GCC hard register numbers for SPE high registers.
2799 (DWARF_FRAME_REGISTERS): Likewise.
2800 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2801 (DWARF_FRAME_REGNUM): Likewise.
2802 (FIXED_REGISTERS): Likewise.
2803 (CALL_USED_REGISTERS): Likewise.
2804 (CALL_REALLY_USED_REGISTERS): Likewise.
2805 (REG_ALLOC_ORDER): Likewise.
2806 (enum reg_class): Likewise.
2807 (REG_CLASS_NAMES): Likewise.
2808 (REG_CLASS_CONTENTS): Likewise.
2809 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2811 2014-08-04 Richard Biener <rguenther@suse.de>
2813 * gimple-fold.h (gimple_fold_builtin): Remove.
2814 * gimple-fold.c (gimple_fold_builtin): Make static.
2815 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2816 fold_stmt, not gimple_fold_builtin.
2818 2014-08-04 Martin Liska <mliska@suse.cz>
2820 * cgraph.h (csi_end_p): Removed.
2821 (csi_next): Likewise.
2822 (csi_node): Likewise.
2823 (csi_start): Likewise.
2824 (cgraph_node_in_set_p): Likewise.
2825 (cgraph_node_set_size): Likewise.
2826 (vsi_end_p): Likewise.
2827 (vsi_next): Likewise.
2828 (vsi_node): Likewise.
2829 (vsi_start): Likewise.
2830 (varpool_node_set_size): Likewise.
2831 (cgraph_node_set_nonempty_p): Likewise.
2832 (varpool_node_set_nonempty_p): Likewise.
2833 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2835 * ipa-inline-transform.c: Likewise.
2836 * ipa-utils.c (cgraph_node_set_new): Removed.
2837 (cgraph_node_set_add): Likewise.
2838 (cgraph_node_set_remove): Likewise.
2839 (cgraph_node_set_find): Likewise.
2840 (dump_cgraph_node_set): Likewise.
2841 (debug_cgraph_node_set): Likewise.
2842 (free_cgraph_node_set): Likewise.
2843 (varpool_node_set_new): Likewise.
2844 (varpool_node_set_add): Likewise.
2845 (varpool_node_set_remove): Likewise.
2846 (varpool_node_set_find): Likewise.
2847 (dump_varpool_node_set): Likewise.
2848 (free_varpool_node_set): Likewise.
2849 (debug_varpool_node_set): Likewise.
2850 * tree-emutls.c (struct tls_var_data):
2851 (emutls_index): Removed.
2852 (emutls_decl): Likewise.
2853 (gen_emutls_addr): Function implementation uses newly added
2854 hash_map<varpool_node *, tls_var_data>.
2855 (clear_access_vars): Likewise.
2856 (create_emultls_var): Likewise.
2857 (ipa_lower_emutls): Likewise.
2858 (reset_access): New function.
2860 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2862 * config/i386/i386.c (ix86_option_override_internal): Add
2863 PTA_RDRND and PTA_MOVBE for bdver4.
2865 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2866 James Greenhalgh <james.greenhalgh@arm.com>
2868 * doc/md.texi (clrsb): Document.
2869 (clz): Change reference to x into operand 1.
2871 (popcount): Likewise.
2873 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2876 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2877 move to subtarget in serial version if result is ignored.
2879 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2880 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2882 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2883 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2884 (sched_analyze_insn): Update use of try_group_insn to
2885 sched_macro_fuse_insns.
2886 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2887 arguments that are not conditional jumps.
2889 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2891 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2892 family information. Handle BTVER2 cpu with cpuid family value.
2894 2014-08-04 Tom de Vries <tom@codesourcery.com>
2896 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2897 (glibc_2_11_or_earlier): Document effective-target keywords.
2899 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2901 * ipa-devirt.c (odr_type_warn_count): Add type.
2902 (possible_polymorphic_call_targets): Set it.
2903 (ipa_devirt): Use it.
2905 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2907 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2909 * ipa-devirt.c: Include hash-map.h
2910 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2911 (clear_speculation): Break out of ...
2912 (get_class_context): ... here; speed up handling obviously useless
2914 (odr_type_warn_count, decl_warn_count): New structures.
2915 (final_warning_record): New structure.
2916 (final_warning_records): New static variable.
2917 (possible_polymorphic_call_targets): Cleanup handling of
2918 speculative info; do not build speculation when user do not care;
2919 record info about warnings when asked for.
2920 (add_decl_warning): New function.
2921 (type_warning_cmp): New function.
2922 (decl_warning_cmp): New function.
2923 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2924 (gate): Enable pass when warnings are requested.
2925 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2928 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2930 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2932 (hash_map::remove): New method.
2933 (hash_map::traverse): New method.
2934 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2935 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2936 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2937 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2938 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2939 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2942 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2944 * hash-set.h: new File.
2945 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2946 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2947 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2948 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2949 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2950 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2951 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2952 varpool.c: Use hash_set instead of pointer_set.
2954 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2956 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2958 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2960 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2961 for frame access when strict_p is false.
2963 2014-08-01 Renlin Li <renlin.li@arm.com>
2964 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2966 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2967 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2968 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2970 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2972 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2973 aarch64_mem_pair_offset.
2975 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2977 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2979 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2980 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2982 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2984 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2986 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2989 * cgraphunit.c (analyze_functions): Use get_create rather than get
2990 for decls which are clones of abstract functions.
2992 2014-08-01 Martin Liska <mliska@suse.cz>
2994 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2995 * ipa-prop.h (count_formal_params): Global function created from static.
2996 * ipa-prop.c (count_formal_params): Likewise.
2997 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2998 profiles for semantically equivalent functions.
2999 * passes.c (do_per_function): If we load body of a function
3000 during WPA, this condition should behave same.
3001 * varpool.c (ctor_for_folding): More tolerant assert for variable
3002 aliases created during WPA.
3004 2014-08-01 Martin Liska <mliska@suse.cz>
3006 * doc/invoke.texi (Options That Control Optimization): Documentation
3007 for -foptimize-strlen introduced. Optimization levels default options
3010 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3012 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3013 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3014 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3016 * stor-layout.h (min_align_of_type): New prototype.
3017 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3018 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3020 * ubsan.c: Include builtins.h.
3021 (ubsan_expand_bounds_ifn): Change return type to bool,
3023 (ubsan_expand_null_ifn): Change return type to bool, change
3024 argument to gimple_stmt_iterator *. Handle both null and alignment
3025 sanitization, take type from ckind argument's type rather than
3027 (instrument_member_call): Removed.
3028 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3029 Handle both null and alignment sanitization, don't say whole
3030 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3031 call instead of 2 argument.
3032 (instrument_null): Adjust instrument_mem_ref caller. Don't
3033 instrument calls here.
3034 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3036 * stor-layout.c (min_align_of_type): New function.
3037 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3038 Or it into SANITIZE_UNDEFINED.
3039 * doc/invoke.texi (-fsanitize=alignment): Document.
3041 2014-07-31 Andi Kleen <ak@linux.intel.com>
3043 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3045 2014-07-31 Andi Kleen <ak@linux.intel.com>
3047 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3049 (vn_reference_compute_hash): Dito.
3050 (vn_nary_op_compute_hash): Dito.
3051 (vn_phi_compute_hash): Dito.
3052 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3054 2014-07-31 Andi Kleen <ak@linux.intel.com>
3056 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3057 Rename to inchash:add_expr_commutative. Convert to inchash.
3058 (iterative_hash_hashable_expr): Rename to
3059 inchash:add_hashable_expr. Convert to inchash.
3060 (avail_expr_hash): Dito.
3062 2014-07-31 Andi Kleen <ak@linux.intel.com>
3064 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3067 2014-07-31 Andi Kleen <ak@linux.intel.com>
3069 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3071 2014-07-31 Andi Kleen <ak@linux.intel.com>
3073 * Makefile.in (OBJS): Add rtlhash.o
3074 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3075 (loc_checksum): Dito.
3076 (loc_checksum_ordered): Dito.
3077 (hash_loc_operands): Dito.
3079 (hash_loc_list): Dito.
3080 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3081 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3082 * rtlhash.c: New file.
3083 * rtlhash.h: New file.
3085 2014-07-31 Andi Kleen <ak@linux.intel.com>
3087 * inchash.h (inchash): Change inchash class to namespace.
3088 (class hash): ... Rename from inchash.
3089 (add_object): Move from macro to class template.
3090 * lto-streamer-out.c (hash_tree): Change inchash
3092 * tree.c (build_type_attribute_qual_variant): Dito.
3093 (type_hash_list): Dito.
3094 (attribute_hash_list): Dito.
3095 (iterative_hstate_expr): Rename to inchash::add_expr
3096 (build_range_type_1): Change inchash to inchash::hash
3097 and use hash::add_expr.
3098 (build_array_type_1): Dito.
3099 (build_function_type): Dito
3100 (build_method_type_directly): Dito.
3101 (build_offset_type): Dito.
3102 (build_complex_type): Dito.
3103 (make_vector_type): Dito.
3104 * tree.h (iterative_hash_expr): Dito.
3106 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3108 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3110 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3112 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3113 correct alphabetical position.
3114 (vpaddd_f64): Rewrite using builtins.
3115 (vpaddd_s64): Move to correct alphabetical position.
3118 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3121 * config/sh/sh.c (sh_legitimate_address_p,
3122 sh_legitimize_reload_address): Handle reg+reg address modes when
3123 ALLOW_INDEXED_ADDRESS is false.
3124 * config/sh/predicates.md (general_movsrc_operand,
3125 general_movdst_operand): Likewise.
3127 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3129 * config/aarch64/aarch64-builtins.c
3130 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3133 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3135 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3136 the generated mask based on BYTES_BIG_ENDIAN.
3137 (aarch64_simd_check_vect_par_cnst_half): New.
3138 * config/aarch64/aarch64-protos.h
3139 (aarch64_simd_check_vect_par_cnst_half): New.
3140 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3141 the check out to aarch64_simd_check_vect_par_cnst_half.
3142 (vect_par_cnst_lo_half): Likewise.
3143 * config/aarch64/aarch64-simd.md
3144 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3145 (move_hi_quad_<mode>): Always generate a low mask.
3147 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3149 * doc/invoke.texi (AVR Options): Add documentation about
3150 __AVR_DEVICE_NAME__ built-in macro.
3152 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3155 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3156 constraints are satisfied.
3157 (<shift>di3_neon): Likewise.
3159 2014-07-31 Richard Biener <rguenther@suse.de>
3161 PR tree-optimization/61964
3162 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3163 by structural equality.
3165 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3167 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3168 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3169 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3171 * gcc.c (sanitize_spec_function): Support new option.
3172 (SANITIZER_SPEC): Remove now redundant check.
3173 * opts.c (common_handle_option): Support new option.
3174 (finish_options): Check for incompatibilities.
3175 * toplev.c (process_options): Split userspace-specific checks.
3177 2014-07-31 Richard Biener <rguenther@suse.de>
3179 * lto-streamer.h (struct output_block): Remove global.
3180 (struct data_in): Remove labels, num_named_labels and
3182 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3183 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3185 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3188 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3189 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3190 (isolate_path): New argument to avoid inserting a trap.
3191 (find_implicit_erroneous_behaviour): Handle returning the address
3192 of a local variable.
3193 (find_explicit_erroneous_behaviour): Likewise.
3195 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3198 * toplev.c (init_random_seed): Move piece of code never called to
3200 (set_random_seed): see above.
3202 2014-07-31 Tom de Vries <tom@codesourcery.com>
3204 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3206 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3208 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3209 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3211 2014-07-31 Richard Biener <rguenther@suse.de>
3213 * data-streamer.h (streamer_write_data_stream): Declare here,
3215 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3216 * lto-cgraph.c (lto_output_node): Adjust.
3217 (lto_output_varpool_node): Likewise.
3218 * data-streamer-out.c (streamer_string_index): Likewise.
3219 (streamer_write_data_stream, lto_append_block): Move from ...
3220 * lto-section-out.c (lto_output_data_stream,
3221 lto_append_block): ... here.
3223 2014-07-30 Mike Stump <mikestump@comcast.net>
3225 * configure.ac: Also check for popen.
3226 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3227 * configure: Regenerate.
3228 * config.in: Regenerate.
3230 2014-07-30 Martin Jambor <mjambor@suse.cz>
3232 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3233 parameter to gimple.
3235 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3237 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3238 address as second parameter to __tpf_eh_return routine.
3240 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3242 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3245 2014-07-30 Tom Tromey <tromey@redhat.com>
3248 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3249 * doc/extend.texi (Type Attributes): Document designated_init
3252 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3254 * graphite-isl-ast-to-gimple.c:
3255 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3256 (gcc_expression_from_isl_expression): Pass type to
3257 gcc_expression_from_isl_ast_expr_id.
3259 2014-07-30 Richard Biener <rguenther@suse.de>
3261 * lto-streamer.h (lto_write_data): New function.
3262 * langhooks.c (lhd_append_data): Do not free block.
3263 * lto-section-out.c (lto_write_data): New function writing
3264 raw data to the current section.
3265 (lto_write_stream): Adjust for langhook semantic change.
3266 (lto_destroy_simple_output_block): Write header directly.
3267 * lto-opts.c (lto_write_options): Write options directly.
3268 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3269 (lto_output_toplevel_asms): Likewise.
3270 (copy_function_or_variable): Copy data directly.
3271 (write_global_references): Output index table directly.
3272 (lto_output_decl_state_refs): Likewise.
3273 (write_symbol): Write data directly.
3274 (produce_symtab): Adjust.
3275 (produce_asm_for_decls): Output header and refs directly.
3277 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3279 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3280 to speculative_targets
3281 (get_class_context): Fix handling of contextes without outer type;
3282 avoid matching non-polymorphic types in LTO.
3283 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3284 parameter to speculative_targetsp; handle speculation.
3285 (dump_possible_polymorphic_call_targets): Update dumping.
3287 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3289 * common.opt (Wodr): Enable by default.
3291 2014-07-29 Olivier Hainque <hainque@adacore.com>
3293 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3295 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3298 * gengtype.c (strtoken): New function.
3299 (create_user_defined_type): Replace strtok with strtoken.
3301 2014-07-29 Nathan Sidwell <nathan@acm.org>
3303 * gcov-io.c (gcov_var): Make hidden.
3304 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3305 (gcov_do_dump): Declare.
3306 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3308 2014-07-29 Martin Jambor <mjambor@suse.cz>
3310 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3311 parameter to gimple.
3312 (sra_modify_assign): Likewise.
3314 2014-07-29 Richard Biener <rguenther@suse.de>
3317 * expr.c (expand_expr_real_2): Revert last change.
3319 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3321 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3322 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3323 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3325 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3326 (contains_type_p): Forward declare.
3327 (polymorphic_call_target_hasher::hash): Hash speculative info.
3328 (polymorphic_call_target_hasher::equal): Compare speculative info.
3329 (get_class_context): Handle speuclation.
3330 (contains_type_p): Update.
3331 (get_polymorphic_call_info_for_decl): Update.
3332 (walk_ssa_copies): Break out from ...
3333 (get_polymorphic_call_info): ... here; set speculative context
3335 * ipa-prop.c (ipa_write_indirect_edge_info,
3336 ipa_read_indirect_edge_info): Stream speculative context.
3337 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3338 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3339 SPECULATIVE_MAYBE_DERIVED_TYPE).
3340 (possible_polymorphic_call_targets overriders): Update.
3341 (dump_possible_polymorphic_call_targets overriders): Update.
3342 (dump_possible_polymorphic_call_target_p overriders): Update.
3344 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3346 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3347 ipa-devirt path; fix thinko there.
3349 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3351 * config/i386/i386.c (ix86_return_in_memory): Replace one
3352 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3354 2014-07-28 Marek Polacek <polacek@redhat.com>
3356 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3358 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3360 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3361 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3362 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3363 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3364 (USE_LD_AS_NEEDED): Likewise.
3365 (ASM_APP_ON): Likewise.
3366 (ASM_APP_OFF): Likewise.
3367 (TARGET_POSIX_IO): Likewise.
3368 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3369 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3370 (USE_LD_AS_NEEDED): Likewise.
3371 (ASM_APP_ON): Likewise.
3372 (ASM_APP_OFF): Likewise.
3373 (TARGET_POSIX_IO): Likewise.
3375 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3378 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3379 operators other than the equality operators.
3381 2014-07-28 Richard Biener <rguenther@suse.de>
3384 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3385 sure to register SImode ones, not only >= word_mode ones.
3386 * expr.c (expand_expr_real_2): When expanding -ftrapv
3387 binops do not use OPTAB_LIB_WIDEN.
3389 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3392 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3393 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3394 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3395 inserting them in the insn stream.
3397 2014-07-28 Marek Polacek <polacek@redhat.com>
3400 * common.opt (Wodr): Add Var.
3402 2014-07-28 Richard Biener <rguenther@suse.de>
3404 PR tree-optimization/61921
3405 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3406 if there is a varpool node before dereferencing it.
3408 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3410 * graphite-sese-to-poly.c:
3411 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3412 id of the pbb), which contains pointer to the pbb1.
3414 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3416 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3418 * graphite-isl-ast-to-gimple.c:
3419 (graphite_create_new_guard): New function.
3420 (translate_isl_ast_node_if): New function.
3421 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3423 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3425 2014-07-27 Anthony Green <green@moxielogic.com>
3427 * config.gcc: Add moxie-*-moxiebox* configuration.
3428 * config/moxie/moxiebox.h: New file.
3430 2014-07-26 Andrew Pinski <apinski@cavium.com>
3432 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3433 from the read only register.
3435 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3437 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3438 as the allocation class if it isn't likely to be spilled.
3440 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3442 * rtl.h (tls_referenced_p): Declare.
3443 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3444 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3445 (mips_cannot_force_const_mem): Use tls_referenced_p.
3446 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3447 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3448 instead of pa_tls_referenced_p.
3449 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3450 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3451 (pa_legitimate_constant_p): Likewise.
3452 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3453 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3454 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3455 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3456 rs6000_tls_referenced_p.
3457 (rs6000_tls_symbol_ref_1): Delete.
3459 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3462 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3463 Optimize inverse of a VEC_CONCAT.
3465 2014-07-25 Xinliang David Li <davidxl@google.com>
3467 * params.def: New parameter.
3468 * coverage.c (get_coverage_counts): Check new flag.
3469 (coverage_compute_profile_id): Check new flag.
3470 (coverage_begin_function): Check new flag.
3471 (coverage_end_function): Check new flag.
3472 * value-prof.c (coverage_node_map_initialized_p): New function.
3473 (init_node_map): Populate map with all functions.
3474 * doc/invoke.texi: Document new parameter.
3476 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3477 Richard Biener <rguenther@suse.de>
3479 * lto-streamer-out.c (struct sccs): Turn to ...
3480 (class DFS): ... this one; refactor the DFS walk so it can
3481 be re-done on per-SCC basis.
3482 (DFS::DFS): New constructor.
3483 (DFS::~DFS): New destructor.
3484 (hash_tree): Add new MAP argument holding in-SCC hash values;
3485 remove POINTER_TYPE hashing hack.
3486 (scc_entry_compare): Rename to ...
3487 (DFS::scc_entry_compare): ... this one.
3488 (hash_scc): Rename to ...
3489 (DFS::hash_scc): ... this one; pass output_block instead
3490 of streamer_cache; work harder to get unique and stable SCC
3492 (DFS_write_tree): Rename to ...
3493 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3494 (lto_output_tree): Update.
3496 2014-07-25 Andi Kleen <ak@linux.intel.com>
3498 * lto-streamer-out.c (hash_tree): Convert to inchash.
3500 2014-07-25 Andi Kleen <ak@linux.intel.com>
3502 * tree.c (build_type_attribute_qual_variant): Use inchash.
3503 (type_hash_list): Dito.
3504 (attribute_hash_list): Dito
3505 (iterative_hstate_expr): Dito.
3506 (iterative_hash_expr): Dito.
3507 (build_range_type_1): Dito.
3508 (build_array_type_1): Dito.
3509 (build_function_type): Dito.
3510 (build_method_type_directly): Dito.
3511 (build_offset_type): Dito.
3512 (build_complex_type): Dito.
3513 (make_vector_type): Dito.
3514 * tree.h (iterative_hash_expr): Add compat wrapper.
3515 (iterative_hstate_expr): Add.
3517 2014-07-25 Andi Kleen <ak@linux.intel.com>
3519 * Makefile.in (OBJS): Add inchash.o.
3520 (PLUGIN_HEADERS): Add inchash.h.
3521 * ipa-devirt.c: Include inchash.h.
3522 * lto-streamer-out.c: Dito.
3523 * tree-ssa-dom.c: Dito.
3524 * tree-ssa-pre.c: Dito.
3525 * tree-ssa-sccvn.c: Dito.
3526 * tree-ssa-tail-merge.c: Dito.
3528 * tree.c (iterative_hash_hashval_t): Move to ...
3529 (iterative_hash_host_wide_int): Move to ...
3530 * inchash.c: Here. New file.
3531 * tree.h (iterative_hash_hashval_t): Move to ...
3532 (iterative_hash_host_wide_int): Move to ...
3533 * inchash.h: Here. New file.
3535 2014-07-25 Richard Biener <rguenther@suse.de>
3539 * fold-const.c (native_encode_int): Add and handle offset
3540 parameter to do partial encodings of expr.
3541 (native_encode_fixed): Likewise.
3542 (native_encode_real): Likewise.
3543 (native_encode_complex): Likewise.
3544 (native_encode_vector): Likewise.
3545 (native_encode_string): Likewise.
3546 (native_encode_expr): Likewise.
3547 * fold-const.c (native_encode_expr): Add offset parameter
3549 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3550 (fold_ctor_reference): Handle all reads from tcc_constant
3553 2014-07-25 Richard Biener <rguenther@suse.de>
3555 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3558 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3560 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3562 2014-07-24 Kyle McMartin <kyle@redhat.com>
3564 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3566 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3568 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3570 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3572 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3573 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3574 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3576 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3578 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3579 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3580 aggregate types. Instead, *all* aggregate types, except for single-
3581 element or homogeneous float/vector aggregates, are quadword-aligned
3582 if required by their type alignment. Issue -Wpsabi note when a type
3583 is now treated differently than before.
3585 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3587 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3588 does not fit fully into floating-point registers, and there is still
3589 space in the register parameter area, use GPRs to pass those parts
3590 of the argument. Issue -Wpsabi note if any parameter is now treated
3591 differently than before.
3592 (rs6000_arg_partial_bytes): Update.
3594 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3596 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3598 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3600 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3601 * toplev.c (initialize_rtl): Don't use it. Move previously
3602 "language-dependent" calls to...
3603 (backend_init): ...here.
3604 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3605 Assert that RTL initialization hasn't happend yet.
3607 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3609 PR rtl-optimization/61629
3610 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3611 they have already been initialized.
3613 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3616 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3617 DECL_INCOMING_RTL and entry_parm.
3618 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3619 * calls.c (load_register_parameters): Likewise argument values.
3620 (emit_library_call_value_1, store_one_arg): Likewise argument
3622 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3624 * explow.c (validize_mem): Modify the argument in-place.
3626 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3628 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3629 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3631 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3633 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3634 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3636 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3638 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3639 (aarch64_save_callee_saves): New parameter "skip_wb".
3640 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3642 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3644 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3646 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3648 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3650 * graphite-isl-ast-to-gimple.c:
3651 (graphite_create_new_loop): Add calling of isl_id_free to properly
3652 decrement reference counts.
3654 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3656 2014-07-24 Martin Liska <mliska@suse.cz>
3657 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3659 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3660 (rs6000_code_end): Likewise.
3662 2014-07-24 Martin Liska <mliska@suse.cz>
3664 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3665 symtab_node funtion used.
3666 (rs6000_xcoff_declare_object_name): Likewise.
3668 2014-07-24 Martin Liska <mliska@suse.cz>
3670 * cgraphunit.c (compile): Correct function used.
3672 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3674 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3677 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3680 * varasm.c (bss_initializer_p): Handle offlined ctors.
3681 (align_variable, get_variable_align): Likewise.
3682 (make_decl_one_only): Likewise.
3683 (default_binds_local_p_1): Likewise.
3684 (decl_binds_to_current_def_p): Likewise.
3685 (get_variable_section): Get constructor if it is offlined.
3686 (assemble_variable_contents): Sanity check that the caller
3687 streamed in the ctor in LTO.
3689 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3691 * graphite-isl-ast-to-gimple.c:
3692 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3693 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3694 isl_ast_op_pdiv_r to the different case.
3696 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3698 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3701 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3702 when flag_errno_math is on.
3704 2014-07-24 Martin Liska <mliska@suse.cz>
3706 * cgraph.h (varpool_node):
3707 (availability get_availability (void)):
3708 created from cgraph_variable_initializer_availability
3709 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3710 created from: cgraph_variable_initializer_availability
3711 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3712 (void finalize_named_section_flags (void)):
3713 created from varpool_finalize_named_section_flags
3714 (bool assemble_decl (void)): created from varpool_assemble_decl
3715 (void analyze (void)): created from varpool_analyze_node
3716 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3717 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3718 (void remove_initializer (void)): created from varpool_remove_initializer
3719 (tree get_constructor (void)): created from varpool_get_constructor
3720 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3721 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3722 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3723 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3724 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3725 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3726 (static bool output_variables (void)): created from varpool_output_variables
3727 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3728 created from varpool_extra_name_alias
3729 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3730 (static void dump_varpool (FILE *f)): created from dump_varpool
3731 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3732 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3733 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3734 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3735 (void assemble_aliases (void)): created from assemble_aliases
3737 2014-07-24 Martin Liska <mliska@suse.cz>
3739 * cgraph.h (symtab_node):
3740 (void register_symbol (void)): created from symtab_register_node
3741 (void remove (void)): created from symtab_remove_node
3742 (void dump (FILE *f)): created from dump_symtab_node
3743 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3744 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3745 (struct ipa_ref *add_reference (symtab_node *referred_node,
3746 enum ipa_ref_use use_type)): created from add_reference
3747 (struct ipa_ref *add_reference (symtab_node *referred_node,
3748 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3749 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3750 gimple stmt)): created from maybe_add_reference
3751 (bool semantically_equivalent_p (symtab_node *target)): created from
3752 symtab_semantically_equivalent_p
3753 (void remove_from_same_comdat_group (void)): created from
3754 remove_from_same_comdat_group
3755 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3756 symtab_add_to_same_comdat_group
3757 (void dissolve_same_comdat_group_list (void)): created from
3758 symtab_dissolve_same_comdat_group_list
3759 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3760 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3761 created from symtab_alias_ultimate_target
3762 (inline symtab_node *next_defined_symbol (void)): created from
3763 symtab_next_defined_symbol
3764 (bool resolve_alias (symtab_node *target)): created from
3765 symtab_resolve_alias
3766 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3767 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3768 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3769 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3770 (void set_section (const char *section)): created from set_section_1
3771 (enum availability get_availability (void)): created from symtab_node_availability
3772 (void make_decl_local (void)): created from symtab_make_decl_local
3773 (bool real_symbol_p (void)): created from symtab_read_node
3774 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3775 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3776 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3777 symtab_in_same_comdat_p;
3778 (bool address_taken_from_non_vtable_p (void)): created from
3779 address_taken_from_non_vtable_p
3780 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3781 (static void dump_table (FILE *)): created from dump_symtab
3782 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3783 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3784 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3785 symtab_used_from_object_file_p
3786 (void dump_base (FILE *)): created from dump_symtab_base
3787 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3788 (void unregister (void)): created from symtab_unregister_node
3789 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3790 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3791 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3792 symtab_nonoverwritable_alias_1
3793 * cgraph.h (cgraph_node):
3794 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3795 created from cgraph_remove_node_and_inline_clones
3796 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3797 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3798 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3799 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3800 created from cgraph_function_node
3801 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3802 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3803 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3804 created from cgraph_create_clone
3805 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3806 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3807 created from cgraph_create_virtual_clone
3808 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3809 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3810 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3811 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3812 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3813 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3814 created from cgraph_function_version_info
3815 (struct cgraph_function_version_info *insert_new_function_version (void)):
3816 created from insert_new_cgraph_node_version
3817 (struct cgraph_function_version_info *function_version (void)): created from
3818 get_cgraph_node_version
3819 (void analyze (void)): created from analyze_function
3820 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3821 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3822 tree real_alias) cgraph_add_thunk
3823 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3824 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3825 created from cgraph_function_or_thunk_node
3826 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3827 created from expand_thunk
3828 (void reset (void)): created from cgraph_reset_node
3829 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3830 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3831 (void remove (void)): created from cgraph_remove_node
3832 (void dump (FILE *f)): created from dump_cgraph_node
3833 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3834 (bool get_body (void)): created from cgraph_get_body
3835 (void release_body (void)): created from cgraph_release_function_body
3836 (void unnest (void)): created from cgraph_unnest_node
3837 (void make_local (void)): created from cgraph_make_node_local
3838 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3839 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3840 gcov_type count, int freq)): created from cgraph_create_edge
3841 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3842 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3843 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3844 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3845 created from cgraph_create_edge_including_clones
3846 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3847 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3848 (void remove_callers (void)): created from cgraph_node_remove_callers
3849 (void remove_callees (void)): created from cgraph_node_remove_callees
3850 (enum availability get_availability (void)): created from cgraph_function_body_availability
3851 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3852 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3853 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3854 (void call_duplication_hooks (cgraph_node *node2)): created from
3855 cgraph_call_node_duplication_hooks
3856 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3857 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3858 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3859 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3860 (void call_function_insertion_hooks (void)):
3861 created from cgraph_call_function_insertion_hooks
3862 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3863 (bool local_p (void)): created from cgraph_local_node
3864 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3865 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3866 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3867 (inline bool only_called_directly_or_aliased_p (void)):
3868 created from cgraph_only_called_directly_or_aliased_p
3869 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3870 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3871 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3872 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3873 (bool can_remove_if_no_direct_calls_p (void)):
3874 created from cgraph_can_remove_if_no_direct_calls_p
3875 (inline bool has_gimple_body_p (void)):
3876 created from cgraph_function_with_gimple_body_p
3877 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3878 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3879 (static inline void debug_cgraph (void)): created from debug_cgraph
3880 (static void record_function_versions (tree decl1, tree decl2)):
3881 created from record_function_versions
3882 (static void delete_function_version (tree decl)):
3883 created from delete_function_version
3884 (static void add_new_function (tree fndecl, bool lowered)):
3885 created from cgraph_add_new_function
3886 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3887 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3888 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3889 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3890 (static cgraph_node *get_for_asmname (tree asmname)):
3891 created from cgraph_node_for_asm
3892 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3893 created from cgraph_same_body_alias
3894 (static bool used_from_object_file_p_worker (cgraph_node *node,
3895 void *): new function
3896 (static bool non_local_p (cgraph_node *node, void *)):
3897 created from cgraph_non_local_node_p_1
3898 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3899 created from verify_cgraph
3900 (static bool make_local (cgraph_node *node, void *)):
3901 created from cgraph_make_node_local
3902 (static cgraph_node *create_alias (tree alias, tree target)):
3903 created from cgraph_create_function_alias
3904 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3905 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3906 created from cgraph_create_edge_1
3907 * cgraph.h (varpool_node):
3908 (void remove (void)): created from varpool_remove_node
3909 (void dump (FILE *f)): created from dump_varpool_node
3911 2014-07-24 Richard Biener <rguenther@suse.de>
3914 * tree-ssa-structalias.c (create_variable_info_for_1):
3915 Use varpool_get_constructor.
3916 (create_variable_info_for): Likewise.
3918 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3920 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3921 subtract outgoing area size when restoring stack_pointer_rtx.
3923 2014-07-24 Nick Clifton <nickc@redhat.com>
3925 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3926 that operations are taking place in parallel.
3927 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3929 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3931 * omp-low.c (extract_omp_for_data): Add missing break statement.
3933 2014-07-24 Richard Biener <rguenther@suse.de>
3935 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3936 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3937 and adjust MOVE_RATIO query accordingly.
3938 (estimate_num_insns): Adjust callers.
3939 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3940 * ipa-cp.c (gather_context_independent_values,
3941 estimate_local_effects): Likewise.
3942 * ipa-split.c (consider_split): Likewise.
3944 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3946 * config/i386/driver-i386.c: Remove names of unused arguments and
3947 unnecessary unused attributes.
3948 * config/i386/host-mingw32.c: Likewise.
3949 * config/i386/i386.c: Likewise.
3950 * config/i386/winnt-stubs.c: Likewise.
3951 * config/i386/winnt.c: Likewise.
3953 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3955 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3956 (aarch64_gen_loadwb_pair): New helper function.
3957 (aarch64_expand_epilogue): Simplify code using new helper functions.
3958 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3960 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3962 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3963 (aarch64_gen_storewb_pair): New helper function.
3964 (aarch64_expand_prologue): Simplify code using new helper functions.
3965 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3967 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3969 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3970 Rename to aarch64_save_callee_saves, remove restore code.
3971 (aarch64_restore_callee_saves): New function.
3973 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3975 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3976 (aarch64_save_callee_saves): New function to handle reg save
3977 for both core and vectore regs.
3979 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3981 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3982 (aarch64_gen_store_pair): New helper function.
3983 (aarch64_save_or_restore_callee_save_registers)
3984 (aarch64_save_or_restore_fprs): Use new helper functions.
3986 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3988 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3989 (aarch64_save_or_restore_callee_save_registers)
3990 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3992 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3994 * config/aarch64/aarch64.c
3995 (aarch64_save_or_restore_callee_save_registers)
3996 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3998 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4000 * config/aarch64/aarch64.c
4001 (aarch64_save_or_restore_callee_save_registers)
4002 (aarch64_save_or_restore_fprs): Remove 'increment'.
4004 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4006 * config/aarch64/aarch64.c
4007 (aarch64_save_or_restore_callee_save_registers)
4008 (aarch64_save_or_restore_fprs): Use register offset in
4009 cfun->machine->frame.reg_offset.
4011 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4013 * config/aarch64/aarch64.c
4014 (aarch64_save_or_restore_callee_save_registers)
4015 (aarch64_save_or_restore_fprs): Remove base_rtx.
4017 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4019 * config/aarch64/aarch64.c
4020 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4021 to 'start_offset'. Remove local variable 'start_offset'.
4023 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4025 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4026 type to HOST_WIDE_INT.
4028 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4030 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4031 (aarch64_save_or_restore_fprs)
4032 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4034 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4036 * config/arm/t-rtems-eabi: Add
4037 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4038 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4039 mbig-endian/mthumb/march=armv7-r, and
4040 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4043 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4044 Chris Johns <chrisj@rtems.org>
4045 Joel Sherrill <joel.sherrill@oarcorp.com>
4047 * config.gcc: Add nios2-*-rtems*.
4048 * config/nios2/rtems.h: New file.
4049 * gcc/config/nios2/t-rtems: New file.
4051 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4054 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4055 constant numbers, not general constants.
4056 (rs6000_expand_vector_init): Ditto.
4058 2014-07-23 Nathan Sidwell <nathan@acm.org>
4060 * gcov-tool.c (gcov_list): Declare here.
4061 (set_gcov_list): Remove.
4062 (gcov_output_files): Set gcov_list directly.
4064 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4066 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4068 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4070 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4071 callee-saved registers are available for padding purpose
4072 and r3 is not mandatory, then prefer use those callee-saved
4075 2014-07-23 Richard Biener <rguenther@suse.de>
4077 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4078 * combine.c: Include statistics.h and params.h.
4079 (combine_instructions): Guard three and four insn combines
4080 with max-combine-insns value. Record statistics for combines
4082 * doc/invoke.texi (max-combine-insns): Document new param.
4084 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4086 * graphite-isl-ast-to-gimple.c:
4087 (translate_isl_ast_node_block): New function.
4088 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4090 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4091 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4093 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4095 * graphite-isl-ast-to-gimple.c:
4096 (get_max_schedule_dimensions): New function.
4097 (extend_schedule): Likewise.
4098 (generate_isl_schedule): Add calling of extend_schedule and
4099 get_max_schedule_dimensions.
4101 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4104 (case UNSPEC): Handle UNSPEC_RBIT.
4106 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4108 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4109 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4111 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4113 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4115 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4117 * graphite-isl-ast-to-gimple.c:
4118 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4120 (build_iv_mapping): New function.
4121 (translate_isl_ast_node_user): Likewise.
4122 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4124 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4125 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4126 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4128 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4131 * config/arm/arm.md (setmem): New pattern.
4132 * config/arm/arm-protos.h (struct tune_params): New fields.
4133 (arm_gen_setmem): New prototype.
4134 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4135 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4136 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4137 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4138 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4139 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4140 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4141 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4142 (arm_const_inline_cost): New function.
4143 (arm_block_set_max_insns): New function.
4144 (arm_block_set_non_vect_profit_p): New function.
4145 (arm_block_set_vect_profit_p): New function.
4146 (arm_block_set_unaligned_vect): New function.
4147 (arm_block_set_aligned_vect): New function.
4148 (arm_block_set_unaligned_non_vect): New function.
4149 (arm_block_set_aligned_non_vect): New function.
4150 (arm_block_set_vect, arm_gen_setmem): New functions.
4152 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4154 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4156 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4159 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4160 out of #ifdef __OPTIMIZE__.
4162 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4164 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4165 different trapping status if -fnon-call-exceptions is enabled.
4167 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4169 * expr.c (store_field): Handle VOIDmode for calls that return values
4170 in multiple locations.
4172 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4174 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4175 (altivec_vsldoi_<mode>): Likewise.
4177 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4179 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4180 to the number of characters in the line.
4182 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4184 * graphite-isl-ast-to-gimple.c: Add using of
4185 build_nonstandard_integer_type instead of int128_integer_type_node.
4187 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4189 * toplev.c (output_stack_usage): Adjust the location of the warning.
4191 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4193 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4194 (*membar_storeload): Disable for LEON3.
4196 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4198 PR rtl-optimization/61461
4199 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4201 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4204 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4205 Fix instruction constraint.
4206 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4208 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4210 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4212 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4214 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4215 GNU coding standards.
4216 (nds32_register_move_cost): Likewise.
4217 (nds32_memory_move_cost): Likewise.
4218 (nds32_address_cost): Likewise.
4220 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4222 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4224 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4226 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4227 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4228 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4229 (HAVE_sync_compare_and_swapqi): Define.
4230 (HAVE_sync_compare_and_swaphi): Likewise.
4231 (HAVE_sync_compare_and_swapsi): Likewise.
4233 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4235 * config/mips/p5600.md: Add missing cpu tests.
4237 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4239 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4240 (vmla_f64): Likewise.
4241 (vfms_f64): Likewise.
4242 (vmls_f64): Likewise.
4244 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4246 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4247 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4249 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4251 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4252 (vmlal_high_lane_s32): Likewise.
4253 (vmlal_high_lane_u16): Likewise.
4254 (vmlal_high_lane_u32): Likewise.
4255 (vmlsl_high_lane_s16): Likewise.
4256 (vmlsl_high_lane_s32): Likewise.
4257 (vmlsl_high_lane_u16): Likewise.
4258 (vmlsl_high_lane_u32): Likewise.
4260 2014-07-17 Terry Guo <terry.guo@arm.com>
4262 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4263 (alus_reg): Renamed to alus_sreg.
4264 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4265 from alu_reg to alu_sreg. Change type of dsp instructions from
4266 alu_reg to alu_dsp_reg.
4267 * config/arm/thumb1.md: Likewise.
4268 * config/arm/thumb2.md: Likewise.
4269 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4270 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4271 with alu_sreg and alus_sreg.
4272 * config/arm/arm1026ejs.md (alu_op): Likewise.
4273 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4274 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4275 * config/arm/fa526.md (526_alu_op): Likewise.
4276 * config/arm/fa606te.md (606te_alu_op): Likewise.
4277 * config/arm/fa626te.md (626te_alu_op): Likewise.
4278 * config/arm/fa726te.md (726te_alu_op): Likewise.
4279 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4280 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4281 alu_sreg, alu_dsp_reg and alus_sreg.
4282 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4283 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4284 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4285 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4286 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4287 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4288 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4289 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4290 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4291 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4292 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4293 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4294 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4295 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4296 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4297 alus_reg to alus_sreg.
4299 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4301 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4304 2014-07-17 Richard Biener <rguenther@suse.de>
4306 PR rtl-optimization/61801
4307 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4308 don't set reg_pending_barrier if it appears in a debug-insn.
4310 2014-07-16 DJ Delorie <dj@redhat.com>
4312 * config/rx/rx.c (rx_option_override): Fix alignment values.
4313 (rx_align_for_label): Likewise.
4315 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4318 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4319 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4320 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4322 (cris_print_index, cris_print_operand, cris_constant_index_p)
4323 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4324 (cris_address_cost): Ditto last CONSTANT_P.
4325 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4326 callers changed. Yield cris_offsettable_symbol for non-PIC
4327 constant symbolic expressions including labels. Yield cris_unspec
4329 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4330 target to pic_offset_table_rtx for calls that will likely go
4331 through PLT, const0_rtx when they can't. All callers changed.
4332 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4333 symbolic expressions to be PICified. Remove second, redundant,
4334 assert on can_create_pseudo_p returning non-zero. Use
4335 replace_equiv_address_nv, not replace_equiv_address, for final
4337 * config/cris/cris.md ("movsi"): Move variable t to pattern
4338 toplevel. Adjust assert for new cris_symbol_type member. Use
4339 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4340 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4342 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4343 ("call", "call_value"): Use second incoming operand as a marker
4344 for pic-offset-table-register being used.
4345 ("*expanded_call_non_v32", "*expanded_call_v32")
4346 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4347 second incoming operand to CALL, match cris_call_type_marker.
4348 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4349 ("*expanded_call_side"): Ditto. Fix typo in comment.
4350 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4352 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4353 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4354 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4355 users changed. Add members cris_offsettable_symbol and cris_unspec.
4356 (cris_symbol_type): Rename from cris_pic_symbol_type.
4357 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4359 * config/cris/cris-protos.h (cris_symbol_type_of,
4360 cris_expand_pic_call_address): Adjust prototypes.
4361 (cris_legitimate_constant_p): New prototype.
4363 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4364 an existing tmake_file. Don't add t-slibgcc and t-linux.
4366 2014-07-17 Jason Merrill <jason@redhat.com>
4369 * symtab.c (symtab_remove_from_same_comdat_group): Also
4370 set_comdat_group to NULL_TREE.
4371 (verify_symtab): Fix diagnostic.
4373 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4376 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4378 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4380 Support location tracking for built-in macro tokens
4381 * input.h (is_location_from_builtin_token): New function declaration.
4382 * input.c (is_location_from_builtin_token): New function definition.
4383 * toplev.c (general_init): Tell libcpp what the pre-defined
4384 spelling location for built-in tokens is.
4386 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4388 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4389 on the FUNCTION_DECL.
4391 2014-07-16 Richard Biener <rguenther@suse.de>
4394 * doc/extend.texi (always_inline): Clarify.
4396 2014-07-15 Eric Christopher <echristo@gmail.com>
4398 * doc/invoke.texi (Link Options): Document -z option.
4400 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4402 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4403 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4405 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4407 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4409 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4411 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4412 varpool_assemble_decl.
4413 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4416 2014-07-15 Michael Matz <matz@suse.de>
4418 PR rtl-optimization/61772
4419 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4421 2014-07-15 Richard Biener <rguenther@suse.de>
4423 * opts.c (default_options_table): Disable bit-ccp at -Og.
4425 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4427 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4429 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4431 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4432 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4433 call langhook for unknown declaration.
4434 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4435 * tree.h (DECL_ARGUMENTS): Update.
4436 * print-tree.c (print_node): Update.
4437 * tree-core.h (tree_decl_non_common): Remove arguments.
4438 (tree_function_decl): Add arguments.
4440 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4442 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4444 2014-07-14 Richard Biener <rguenther@suse.de>
4446 PR tree-optimization/61779
4447 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4448 simplifying a condition.
4450 2014-07-14 Richard Biener <rguenther@suse.de>
4452 * builtins.c (c_strlen): Make only_value == 2 really only
4453 affect warning generation.
4455 2014-07-14 Richard Biener <rguenther@suse.de>
4457 PR tree-optimization/61757
4458 PR tree-optimization/61783
4459 PR tree-optimization/61787
4460 * tree-ssa-dom.c (record_equality): Revert canonicalization
4461 change and add comment.
4462 (propagate_rhs_into_lhs): Revert previous fix, removing
4463 loop depth restriction again.
4465 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4467 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4468 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4469 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4470 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4471 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4472 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4473 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4475 2014-07-14 Richard Biener <rguenther@suse.de>
4477 * cgraph.h (decl_in_symtab_p): Make inline.
4479 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4482 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4485 * config/i386/i386.c (classify_argument): Don't merge classes above
4488 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4490 * cgraph.h (symtab_node): Add nonzero_address.
4491 (decl_in_symtab_p): Break out from ...
4492 (symtab_get_node): ... here.
4493 * fold-const.c: Include cgraph.h
4494 (tree_single_nonzero_warnv_p): Use symtab to determine
4495 if symbol is non-zero.
4496 * symtab.c (symtab_node::nonzero_address): New method.
4498 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4500 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4501 forgotten in previous commit.
4503 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4505 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4507 * ipa-devirt.c: Include stor-layout.h and intl.h
4508 (odr_subtypes_equivalent_p): New function.
4509 (warn_odr): New function.
4510 (warn_type_mismatch): New function.
4511 (odr_types_equivalent_p): New function.
4512 (add_type_duplicate): Use it.
4513 * common.opt (Wodr): New flag.
4514 * doc/invoke.texi (Wodr): Document new warning.
4516 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4518 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4519 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4520 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4521 (varpool_get_constructor): Push CTORS_IN timevar.
4522 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4524 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4526 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4527 Remove VOID_FTYPE_PUSHORT.
4528 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4529 Change code to USHORT_FTYPE_VOID.
4530 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4531 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4532 (ix86_atomic_assign_expand_fenv): Update for
4533 __builtin_ia32_fnstsw changes.
4534 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4535 (fnstsw): Change operand 0 to nonimmediate operand.
4537 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4539 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4540 (varpool_get_constructor): New function.
4541 (varpool_ctor_useable_for_folding_p): Break out from ...
4542 (ctor_for_folding): ... here; use varpool_get_constructor.
4543 (varpool_assemble_decl): Likewise.
4544 * lto-streamer.h (struct output_block): Turn cgraph_node
4546 (lto_input_variable_constructor): Declare.
4547 * ipa-visibility.c (function_and_variable_visibility): Use
4548 varpool_get_constructor.
4549 * cgraph.h (varpool_get_constructor): Declare.
4550 (varpool_ctor_useable_for_folding_p): New function.
4551 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4552 parameter; return error_mark_node for non-trivial constructors.
4553 (lto_write_tree_1, DFS_write_tree): Update use of
4554 get_symbol_initial_value.
4555 (output_function): Update initialization of symbol.
4556 (output_constructor): New function.
4557 (copy_function): Rename to ..
4558 (copy_function_or_variable): ... this one; handle vars too.
4559 (lto_output): Output variable sections.
4560 * lto-streamer-in.c (input_constructor): New function.
4561 (lto_read_body): Rename from ...
4562 (lto_read_body_or_constructor): ... this one; handle vars too.
4563 (lto_input_variable_constructor): New function.
4564 * ipa-prop.c (ipa_prop_write_jump_functions,
4565 ipa_prop_write_all_agg_replacement): Update.
4566 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4567 (output_cgraph_opt_summary): Set symbol to NULL.
4569 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4571 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4572 non-polymorphic types.
4573 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4574 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4575 of types is not polymorphic.
4577 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4579 * lra-constraints.c (remove_inheritance_pseudos): Process
4580 destination pseudo too.
4582 2014-07-11 Rong Xu <xur@google.com>
4584 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4587 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4589 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4590 * config/avr/avr-devices.c (AVR_MCU): Same.
4591 (avr_mcu_types): add text start value to end of device list.
4592 * config/avr/avr-mcus.def: Add text section start for all devices.
4593 (ata5782): Add new avr5 device.
4595 * config/avr/avr-tables.opt: Regenerate.
4596 * config/avr/avr.h: Add declaration for text section start handler.
4597 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4599 (LINK_SPEC): Include text section start handler to linker spec.
4600 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4601 pass -Ttext option to linker if the text section start for the device
4603 * config/avr/t-multilib: Regenerate.
4604 * doc/avr-mmcu.texi: Regenerate.
4606 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4608 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4609 * config/rs6000/aix52.h (LINK_SPEC): Same.
4610 * config/rs6000/aix53.h (LINK_SPEC): Same.
4611 * config/rs6000/aix61.h (LINK_SPEC): Same.
4612 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4614 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4616 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4617 (graphite_verify): New function.
4618 (ivs_params_clear): New function.
4619 (gcc_expression_from_isl_ast_expr_id): New function.
4620 (gcc_expression_from_isl_expr_int): New function.
4621 (binary_op_to_tree): New function.
4622 (ternary_op_to_tree): New function.
4623 (unary_op_to_tree): New function.
4624 (nary_op_to_tree): New function.
4625 (gcc_expression_from_isl_expr_op): New function.
4626 (gcc_expression_from_isl_expression): New function.
4627 (graphite_create_new_loop): New function.
4628 (translate_isl_ast_for_loop): New function.
4629 (get_upper_bound): New function.
4630 (graphite_create_new_loop_guard): New function.
4631 (translate_isl_ast_node_for): New function.
4632 (translate_isl_ast): New function.
4633 (add_parameters_to_ivs_params): New function.
4634 (scop_to_isl_ast): New parameter ip.
4635 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4637 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4639 * config/xtensa/predicates.md (call expander): Update for
4640 DECL_SECTION_NAME being string.
4642 2014-07-11 Richard Biener <rguenther@suse.de>
4645 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4646 can be implemented with a single load followed by a single store.
4647 (c_strlen): Only warn when only_value is not 2.
4649 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4651 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4653 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4656 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4657 (*movhi_bytes): Likewise.
4658 (*arm_movqi_insn): Likewise.
4660 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4663 * config/alpha/alpha.c: Include tree-pass.h, context.h
4665 (pass_data_handle_trap_shadows): New pass.
4666 (pass_handle_trap_shadows::gate): New pass gate function.
4667 (make_pass_handle_trap_shadows): New function.
4668 (rest_of_handle_trap_shadows): Ditto.
4670 (alpha_align_insns_1): Rename from alpha_align_insns.
4671 (pass_data_align_insns): New pass.
4672 (pass_align_insns::gate): New pass gate function.
4673 (make_pass_aling_insns): New function.
4674 (rest_of_align_insns): Ditto.
4675 (alpha_align_insns): Ditto.
4677 (alpha_option_override): Declare handle_trap_shadows info
4678 and align_insns_info. Register handle_trap_shadows and align_insns
4680 (alpha_reorg): Do not call alpha_trap_shadows and
4681 alpha_align_insn from here.
4683 (alpha_pad_function_end): Do not skip BARRIERs.
4685 2014-07-10 Rong Xu <xur@google.com>
4687 Add gcov-tool: an offline gcda profile processing tool support.
4688 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4689 (gcov_is_error): Ditto.
4690 (gcov_read_string): Ditto.
4691 (gcov_read_sync): Ditto.
4692 * gcov-io.h: Move counter defines to gcov-counter.def.
4693 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4694 * coverage.c: Ditto.
4695 * gcov-tool.c: Offline gcda profile processing tool.
4696 (unlink_gcda_file): Remove one gcda file.
4697 (unlink_profile_dir): Remove gcda files from the profile path.
4698 (gcov_output_files): Output gcda files to an output dir.
4699 (profile_merge): Merge two profiles in directory.
4700 (print_merge_usage_message): Print merge usage.
4701 (merge_usage): Print merge usage and exit.
4702 (do_merge): Driver for profile merge sub-command.
4703 (profile_rewrite): Rewrite profile.
4704 (print_rewrite_usage_message): Print rewrite usage.
4705 (rewrite_usage): Print rewrite usage and exit.
4706 (do_rewrite): Driver for profile rewrite sub-command.
4707 (print_usage): Print gcov-info usage and exit.
4708 (print_version): Print gcov-info version.
4709 (process_args): Process arguments.
4710 (main): Main routine for gcov-tool.
4711 * Makefile.in: Build and install gcov-tool.
4712 * gcov-counter.def: New file split from gcov-io.h.
4713 * doc/gcc.texi: Include gcov-tool.texi.
4714 * doc/gcov-tool.texi: Document for gcov-tool.
4716 2014-07-10 Richard Biener <rguenther@suse.de>
4718 PR tree-optimization/61757
4719 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4720 (propagate_rhs_into_lhs): Revert part of last change.
4722 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4724 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4727 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4730 * function.c (allocate_struct_function): Revert r188667 change.
4732 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4734 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4736 * doc/install.texi: Remove links to defunct package providers for
4739 2014-07-09 Tom de Vries <tom@codesourcery.com>
4741 * final.c (get_call_fndecl): Declare.
4742 (self_recursive_call_p): New function.
4743 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4745 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4747 * ipa-devirt.c (record_node): Walk through aliases.
4749 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4751 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4753 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4756 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4758 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4760 * ipa-visibility.c (function_and_variable_visibility): Remove
4761 temporary hack disabling local aliases on AIX.
4763 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4765 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4766 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4768 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4770 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4771 * rs6000/rs6000.c: Inline output of .set instruction.
4772 (declare_alias_data): New struct.
4773 (rs6000_declare_alias): New function.
4774 (rs6000_xcoff_declare_function_name): Use it.
4775 (rs6000_xcoff_declare_object_name): New function.
4776 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4777 (ASM_OUTPUT_DEF): Turn to empty definition.
4779 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4782 * hash-table.h: use hash_table::value_type instead of
4783 Descriptor::value_type in the return types of several methods.
4785 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4787 * tree-pass.h (pass_data): Remove has_execute member.
4788 * passes.c (execute_one_pass): Don't check pass->has_execute.
4789 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4790 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4791 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4792 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4793 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4794 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4795 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4796 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4797 gimple-low.c, gimple-ssa-isolate-paths.c,
4798 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4799 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4800 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4801 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4802 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4803 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4804 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4805 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4806 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4807 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4808 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4809 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4810 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4811 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4812 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4813 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4814 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4815 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4816 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4817 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4818 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4819 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4820 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4821 web.c: Remove initializer for pass_data::has_execute.
4823 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4825 * graphite-htab.h: Use hash_map instead of hash_table.
4826 * graphite-clast-to-gimple.c: Adjust.
4827 * passes.c: Use hash_map instead of hash_table.
4829 * sese.h: Remove now unused code.
4831 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4834 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4837 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4839 PR rtl-optimization/61673
4840 * combine.c (simplify_comparison): Test just mode's sign bit
4841 in tmode rather than the sign bit and any bits above it.
4843 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4845 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4846 Add __isl_give to the declaration.
4847 (generate_isl_schedule): Likewise.
4848 (scop_to_isl_ast): Likewise.
4850 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4852 * config/arm/arm.c (cortexa5_extra_costs): New table.
4853 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4855 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4857 PR tree-optimization/61725
4858 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4859 range, use range_includes_zerop_p instead of integer_zerop on
4860 vr0->min, only use log2 of max if min is not negative.
4862 2014-07-08 Richard Biener <rguenther@suse.de>
4864 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4865 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4866 restriction on loop depth difference.
4867 (record_equality): Likewise.
4868 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4869 (loop_depth_of_name): Remove.
4870 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4871 restriction on loop depth difference.
4872 (init_copy_prop): Likewise.
4874 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4876 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4878 (walk_aliased_vdefs): Likewise.
4879 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4880 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4881 (detect_type_change_from_memory_writes): Check if entry was reached.
4883 2014-07-08 Richard Biener <rguenther@suse.de>
4885 PR tree-optimization/61681
4886 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4887 NONLOCAL inside ESCAPED.
4889 2014-07-08 Richard Biener <rguenther@suse.de>
4891 PR tree-optimization/61680
4892 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4893 Handle properly all read-write dependences with group accesses.
4895 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4897 PR tree-optimization/61576
4898 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4899 block containing reduction statement is predecessor of phi basi block.
4901 2014-07-08 Marek Polacek <polacek@redhat.com>
4904 * fold-const.c (round_up_loc): Change the parameter type.
4906 * fold-const.h (round_up_loc): Adjust declaration.
4907 * stor-layout.c (finalize_record_size): Check for too large types.
4909 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4911 * symtab.c: Include calls.h.
4912 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4914 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4916 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4917 little-endian code generation.
4918 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4919 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4920 (spe_evmergehilo): Rename to...
4921 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4922 (spe_evmergelo): Rename to...
4923 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4924 (spe_evmergelohi): Rename to...
4925 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4926 (spe_evmergehi, spe_evmergehilo): New expanders.
4927 (spe_evmergelo, spe_evmergelohi): Likewise.
4928 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4929 (*frob_tf_ti): Likewise.
4930 (*frob_<mode>_di_2): Likewise.
4931 (*frob_tf_di_8_2): Likewise.
4932 (*frob_di_<mode>): Likewise.
4933 (*frob_ti_tf): Likewise.
4934 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4935 (*frob_ti_<mode>_8_2): Likewise.
4936 (*frob_ti_tf_2): Likewise.
4937 (mov_si<mode>_e500_subreg0): Rename to...
4938 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4940 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4941 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4942 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4943 the big endianness only.
4944 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4945 (*mov_si<mode>_e500_subreg0_2): Rename to...
4946 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4947 big big endianness only.
4948 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4949 (*mov_si<mode>_e500_subreg4): Rename to...
4950 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4952 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4953 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4954 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4955 the big endianness only.
4956 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4958 (*mov_si<mode>_e500_subreg4_2): Rename to...
4959 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4961 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4962 (*mov_sitf_e500_subreg8): Rename to...
4963 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4965 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4966 (*mov_sitf_e500_subreg8_2): Rename to...
4967 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4969 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4970 (*mov_sitf_e500_subreg12): Rename to...
4971 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4973 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4974 (*mov_sitf_e500_subreg12_2): Rename to...
4975 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4977 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4979 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4981 * asan.c (instrument_strlen_call): Do not instrument first byte
4982 in strlen if already instrumented.
4984 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4986 * config/arm/arm.opt (mwords-little-endian): Delete.
4987 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4988 of TARGET_LITTLE_WORDS.
4989 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4990 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4992 * doc/invoke.texi: Remove references to -mwords-little-endian.
4994 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4996 * expmed.c (struct init_expmed_rtl): Change all fields but
4997 pow2 and cint from struct rtx_def to rtx.
4998 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4999 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5002 2014-07-06 Marek Polacek <polacek@redhat.com>
5005 * doc/invoke.texi: Document -Wsizeof-array-argument.
5007 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5009 * wide-int.h (wide_int_storage): Change declaration from struct
5012 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5014 * cgraph.c (cgraph_create_indirect_edge): Update call of
5015 get_polymorphic_call_info.
5016 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5017 (possible_polymorphic_call_targets): Add parameter call.
5018 (decl_maybe_in_construction_p): New predicate.
5019 (get_polymorphic_call_info): Add parameter call;
5020 use decl_maybe_in_construction_p.
5021 * gimple-fold.c (fold_gimple_assign): Update use of
5022 possible_polymorphic_call_targets.
5023 (gimple_fold_call): Likewise.
5024 * ipa-prop.c: Inlcude calls.h
5025 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5026 (param_type_may_change_p): New predicate.
5027 (detect_type_change_from_memory_writes): Break out from ...
5028 (detect_type_change): ... this one; use param_type_may_change_p.
5029 (detect_type_change_ssa): Use param_type_may_change_p.
5030 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5032 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5035 * config/arm/arm-protos.h (arm_legitimate_address_p,
5036 arm_is_constant_pool_ref): Add prototypes.
5037 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5038 (arm_is_constant_pool_ref) New function.
5039 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5040 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5041 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5042 operand. Remove pool_range and neg_pool_range attributes.
5043 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5044 pool_range and neg_pool_range attributes.
5045 * config/arm/constraints.md (Uh): New constraint.
5046 (Uq): Don't allow constant pool references.
5048 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5050 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5051 (move_lo_quad_internal_be_<mode>): Likewise.
5052 (move_lo_quad_<mode>): Convert to define_expand.
5053 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5054 (aarch64_simd_move_hi_quad_be_<mode>): New.
5055 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5056 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5057 (aarch64_combinez_be<mode>): New.
5058 (aarch64_combine<mode>): Convert to define_expand.
5059 (aarch64_combine_internal<mode>): New.
5060 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5062 2014-07-04 Tom de Vries <tom@codesourcery.com>
5064 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5065 combination of earlyclobber and read/write modifiers.
5067 2014-07-04 Tom de Vries <tom@codesourcery.com>
5069 * config/aarch64/aarch64-simd.md
5070 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5072 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5075 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5077 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5080 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5082 PR tree-optimization/61684
5083 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5084 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5086 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5087 Kito Cheng <kito@0xlab.org>
5088 Monk Chiang <sh.chiang04@gmail.com>
5090 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5091 (nds32_symbol_load_store_p): Move to ...
5092 (nds32_fp_as_gp_check_available): Move to ...
5093 * config/nds32/nds32-fp-as-gp.c: ... here.
5094 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5097 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5098 Kito Cheng <kito@0xlab.org>
5099 Monk Chiang <sh.chiang04@gmail.com>
5101 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5102 (nds32_expand_store_multiple): Move to ...
5103 (nds32_expand_movmemqi): Move to ...
5104 * config/nds32/nds32-memory-manipulation.c: ... here.
5106 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5107 Kito Cheng <kito@0xlab.org>
5108 Monk Chiang <sh.chiang04@gmail.com>
5110 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5111 (nds32_output_casesi_pc_relative): Move to ...
5112 (nds32_output_casesi): Move to ...
5113 (nds32_mem_format): Move to ...
5114 (nds32_output_16bit_store): Move to ...
5115 (nds32_output_16bit_load): Move to ...
5116 (nds32_output_32bit_store): Move to ...
5117 (nds32_output_32bit_load): Move to ...
5118 (nds32_output_32bit_load_s): Move to ...
5119 (nds32_output_stack_push): Move to ...
5120 (nds32_output_stack_pop): Move to ...
5121 * config/nds32/nds32-md-auxiliary.c: ... here.
5123 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5124 Ling-Hua Tseng <uranus@tinlans.org>
5126 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5127 the purpose of this file.
5129 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5130 Kito Cheng <kito@0xlab.org>
5131 Monk Chiang <sh.chiang04@gmail.com>
5133 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5134 (nds32_address_cost): Move implementation to ...
5135 * config/nds32/nds32-cost.c: ... here.
5136 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5137 (nds32_address_cost_impl): Declare.
5139 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5140 Kito Cheng <kito@0xlab.org>
5141 Monk Chiang <sh.chiang04@gmail.com>
5143 * config/nds32/nds32.c
5144 (nds32_consecutive_registers_load_store_p): Move to ...
5145 (nds32_valid_multiple_load_store): Move to ...
5146 (nds32_valid_stack_push_pop): Move to ...
5147 (nds32_can_use_bclr_p): Move to ...
5148 (nds32_can_use_bset_p): Move to ...
5149 (nds32_can_use_btgl_p): Move to ...
5150 (nds32_can_use_bitci_p): Move to ...
5151 * config/nds32/nds32-predicates.c: ... here.
5153 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5154 Kito Cheng <kito@0xlab.org>
5155 Monk Chiang <sh.chiang04@gmail.com>
5157 * config/nds32/nds32.c
5158 (nds32_expand_builtin_null_ftype_reg): Move to ...
5159 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5160 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5161 (nds32_init_builtins): Move implementation to ...
5162 (nds32_expand_builtin): Move implementation to ...
5163 * config/nds32/nds32-intrinsic.c: ... here.
5164 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5165 (nds32_expand_builtin_impl): Declare.
5167 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5168 Kito Cheng <kito@0xlab.org>
5169 Monk Chiang <sh.chiang04@gmail.com>
5171 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5172 (nds32_emit_section_tail_template): Move to ...
5173 (nds32_emit_isr_jmptbl_section): Move to ...
5174 (nds32_emit_isr_vector_section): Move to ...
5175 (nds32_emit_isr_reset_conten): Move to ...
5176 (nds32_check_isr_attrs_conflict): Move to ...
5177 (nds32_construct_isr_vectors_information): Move to ...
5178 (nds32_asm_file_start): Move implementation to ...
5179 (nds32_asm_file_end): Move implementation to ...
5180 * config/nds32/nds32-isr.c: ... here.
5181 * config/nds32/nds32-protos.h
5182 (nds32_check_isr_attrs_conflict): Declare.
5183 (nds32_construct_isr_vectors_information): Declare.
5184 (nds32_asm_file_start_for_isr): Declare.
5185 (nds32_asm_file_end_for_isr): Declare.
5187 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5188 Kito Cheng <kito@0xlab.org>
5189 Monk Chiang <sh.chiang04@gmail.com>
5191 * config.gcc (nds32*): Add new modules to extra_objs.
5192 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5193 (nds32be-*-*): Likewise.
5194 * config/nds32/nds32-cost.c: New file.
5195 * config/nds32/nds32-fp-as-gp.c: New file.
5196 * config/nds32/nds32-intrinsic.c: New file.
5197 * config/nds32/nds32-isr.c: New file.
5198 * config/nds32/nds32-md-auxiliary.c: New file.
5199 * config/nds32/nds32-memory-manipulation.c: New file.
5200 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5201 * config/nds32/nds32-predicates.c: New file.
5202 * config/nds32/t-nds32: New file.
5204 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5206 PR tree-optimization/61682
5207 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5208 using cases and when one of the operands is equal to 1.
5210 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5212 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5213 ashr<mode>3): Correct mode of operands[2].
5214 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5215 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5216 Correct mode of operands[2]. Fix split condition.
5218 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5220 * arm.md (arch): Add armv6_or_vfpv3.
5221 (arch_enabled): Add test for the above.
5222 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5224 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5226 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5228 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5229 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5230 HWI 1 and negate the unsigned value.
5231 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5232 use AND instead of shift.
5233 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5235 2014-07-03 Marek Polacek <polacek@redhat.com>
5237 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5238 (-fsanitize=float-divide-by-zero): Move to the table with
5239 -fsanitize=undefined suboptions.
5240 (-fsanitize=float-cast-overflow): Likewise.
5242 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5244 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5245 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5248 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5250 * loop-invariant.c (struct invariant): Add a new member: eqno;
5251 (find_identical_invariants): Update eqno;
5252 (create_new_invariant): Init eqno;
5253 (get_inv_cost): Compute comp_cost with eqno;
5255 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5257 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5258 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5259 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5260 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5261 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5263 2014-07-02 Christian Bruel <christian.bruel@st.com>
5267 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5268 (make_preds_opaque): Delete.
5269 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5270 (commit_mode_sets): New function.
5271 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5272 Process all modes at once.
5273 * basic-block.h (pre_edge_lcm_avs): Declare.
5274 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5275 Call clear_aux_for_edges. Fix comments.
5276 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5277 (pre_edge_rev_lcm): Idem.
5278 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5280 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5281 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5283 * config/i386/i386.c (x96_emit_mode_set): Idem.
5284 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5285 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5286 (fpscr_toggle) Disallow from delay slot.
5287 * target.def (emit_mode_set): Add prev_mode parameter.
5288 * doc/tm.texi: Regenerate.
5290 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5292 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5295 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5297 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5298 vtable_pointer_value_to_vtable): Constify.
5299 (contains_polymorphic_type_p): Declare.
5300 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5301 vtable_pointer_value_to_vtable): Constify.
5302 (contains_polymorphic_type_p): New predicate.
5303 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5305 (ipa_set_ancestor_jf): Likewise.
5306 (detect_type_change): Return false in easy cases.
5307 (compute_complex_assign_jump_func): Require type to contain
5309 (compute_known_type_jump_func): Likewise.
5311 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5313 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5315 (type_in_anonymous_namespace_p): Constify argument.
5316 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5317 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5318 (main_odr_variant): New function.
5319 (hash_type_name): Make static; update assert; do not ICE on
5321 (types_same_for_odr): Bring here from tree.c; simplify and remove
5322 old structural comparing code that doesn't work for templates.
5323 (odr_hasher::equal): Update assert.
5324 (add_type_duplicate): Return true when bases should be computed;
5325 replace incomplete loader by complete; do not output duplicated
5326 warnings; do not ICE on non-records; set odr_violated flag.
5327 (get_odr_type): Be ready to replace incomplete type by complete
5328 one; work on ODR variants instead of main variants; reorder item
5329 in array so bases have still smaller indexes.
5330 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5331 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5333 2014-07-01 Cary Coutant <ccoutant@google.com>
5335 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5337 (resolve_addr_in_expr): When replacing the rtx in a location list
5338 entry, get a new address table entry.
5339 (dwarf2out_finish): Call index_location_lists even if there are no
5340 addr_index_table entries yet.
5342 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5344 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5345 change for not being obvious.
5347 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5349 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5352 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5354 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5355 (vcagt_f64): Likewise.
5356 (vcale_f64): Likewise.
5357 (vcaled_f64): Likewise.
5358 (vcales_f32): Likewise.
5359 (vcalt_f64): Likewise.
5360 (vcaltd_f64): Likewise.
5361 (vcalts_f32): Likewise.
5363 2014-07-01 Marek Polacek <polacek@redhat.com>
5365 * doc/invoke.texi: Document -Wint-conversion.
5367 2014-07-01 Marek Polacek <polacek@redhat.com>
5370 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5372 2014-07-01 Martin Liska <mliska@suse.cz>
5374 IPA REF alias refactoring
5375 * cgraph.h (iterate_direct_aliases): New function.
5376 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5377 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5378 FOR_EACH_ALIAS added.
5379 (cgraph_for_node_and_aliases): Likewise.
5380 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5381 * ipa-inline.c (reset_edge_caches): Likewise.
5382 (update_caller_keys): Likewise.
5383 * trans-mem.c (ipa_tm_execute): Likewise.
5384 *varpool.c (varpool_analyze_node): Likewise.
5385 (varpool_for_node_and_aliases): Likewise.
5386 * ipa-ref.h (first_alias): New function.
5387 (last_alias): Likewise.
5388 (has_aliases_p): Likewise.
5389 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5390 is sensitive to IPA_REF_ALIASes.
5391 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5392 are put at the beginning of the list.
5393 (symtab_node::iterate_direct_aliases): New function.
5395 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5398 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5400 (write_ts_type_common_tree_pointers): Do not stream fields not set
5401 for incomplete types; do not stream duplicated fields for variants;
5402 sanity check that variant and type match.
5403 (write_ts_type_non_common_tree_pointers): Likewise.
5404 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5405 TYPE_SIZE whether type is complete.
5406 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5407 write_ts_type_common_tree_pointers
5408 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5410 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5412 * var-tracking.c (add_stores): Return instead of asserting if old
5413 and new values for conditional store are the same.
5415 2014-06-30 Richard Henderson <rth@redhat.com>
5419 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5420 the cfg if there were any changes.
5421 * passes.def: Revert move of peephole2 after reorder_blocks;
5422 move duplicate_computed_gotos before peephole2.
5424 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5426 * except.c (emit_note_eh_region_end): New helper function.
5427 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5428 emit EH_REGION_END note.
5429 * jump.c (cleanup_barriers): Do not split a call and its
5430 corresponding CALL_ARG_LOCATION note.
5432 2014-06-30 Jeff Law <law@redhat.com>
5434 PR tree-optimization/61607
5435 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5436 deeper into the SSA_NAME_VALUE chain.
5438 2014-06-30 Marek Polacek <polacek@redhat.com>
5440 * convert.c (convert_to_integer): Don't instrument conversions if the
5441 function has no_sanitize_undefined attribute.
5442 * ubsan.c: Don't run the ubsan pass if the function has
5443 no_sanitize_undefined attribute.
5445 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5447 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5448 -fsanitize=undefined suboptions.
5450 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5452 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5453 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5454 against bigendian and adjust indices.
5456 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5458 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5460 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5463 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5464 Add alternative; make early clobber. Adjust both split patterns
5465 to use operand 0 as the working register.
5467 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5469 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5470 as ira_object_id_map might be NULL, or 1.
5472 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5474 * loop-invariant.c (get_inv_cost): Handle register class.
5475 (gain_for_invariant): Check the register pressure of the inv
5476 and its overlapped register class, other than all.
5478 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5480 * doc/invoke.texi (Optimize Options): Fix descriptions of
5481 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5483 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5485 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5488 2014-06-29 Tobias Grosser <tobias@grosser.es>
5491 * graphite-isl-ast-to-gimple.c: Add missing guards.
5493 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5495 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5496 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5497 * flag-types.h: Add new enum fgraphite_generator.
5498 * graphite-isl-ast-to-gimple.c: New.
5499 * graphite-isl-ast-to-gimple.h: New.
5500 * graphite.c (graphite_transform_loops): Add choice of Graphite
5501 code generator, which depends on flag_graphite_code_gen.
5503 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5505 * graphite-dependences.c (subtract_commutative_associative_deps):
5506 Add NULL checking of the following variables: must_raw_no_source,
5507 may_raw_no_source, must_war_no_source, may_war_no_source,
5508 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5509 must_war, may_war, must_waw, may_waw.
5511 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5513 * graphite-clast-to-gimple.c: gloog is renamed to
5514 graphite_regenerate_ast_cloog. gloog_error is renamed to
5515 graphite_regenerate_error.
5516 * graphite-clast-to-gimple.h: The definition of the struct
5517 bb_pbb_def is moved to graphite-htab.h.
5518 Add inclusion of the hash-table.h.
5519 * graphite-htab.h: The declaration of the function gloog is moved
5520 to graphite-clast-to-gimple.h and renamed to
5521 graphite_regenerate_ast_cloog.
5522 * graphite.c (graphite_transform_loops): gloog is renamed
5523 to graphite_regenerate_ast_cloog.
5525 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5527 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5529 (write_ts_type_common_tree_pointers): Do not stream fields not set
5530 for incomplete types; do not stream duplicated fields for variants;
5531 sanity check that variant and type match.
5532 (write_ts_type_non_common_tree_pointers): Likewise.
5533 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5534 TYPE_SIZE whether type is complete.
5535 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5536 write_ts_type_common_tree_pointers
5537 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5539 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5541 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5543 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5545 * tree-inline.c (remap_type_1): Do not duplicate fields
5546 that are shared in between type and its main variant.
5548 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5550 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5552 (ipa_set_ancestor_jf) Likewise.
5553 (check_stmt_for_type_change): Check that we work on main variant.
5554 (detect_type_change): Look into main variant.
5555 (compute_known_type_jump_func): Check that main variant has BINFO.
5557 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5559 * ipa-devirt.c (set_type_binfo): New function.
5560 (add_type_duplicate): Use it.
5561 (get_odr_type): Sanity check that binfos points to main variants.
5562 (get_class_context): Be sure the context's outer_type is main variant.
5563 (contains_type_p): Walk main variant.
5564 (get_polymorphic_call_info_for_decl): Set outer_type to be
5566 (get_polymorphic_call_info): Likewise.
5567 (possible_polymorphic_call_targets): Sanity check that we operate
5570 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5572 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5574 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5576 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5577 accidental change due to wide-int branch merge.
5579 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5581 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5582 compressed debug support.
5583 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5584 * configure: Regenerate.
5585 * config.in: Regenerate.
5586 * common.opt (compressed_debug_sections): New enum.
5587 (gz, gz=): New options.
5588 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5589 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5590 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5591 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5592 LINK_COMPRESS_DEBUG_SPEC.
5593 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5594 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5595 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5596 (Debugging Options): Document -gz[=type].
5598 2014-06-27 Martin Jambor <mjambor@suse.cz>
5601 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5602 args_to_skip, use those from node instead. Copy args_to_skip and
5603 combined_args_to_skip from node to the new thunk.
5604 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5605 (cgraph_create_virtual_clone): Moved computation of
5606 combined_args_to_skip...
5607 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5609 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5611 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5612 redundant diagnostic machinary.
5614 2014-06-27 Richard Biener <rguenther@suse.de>
5616 * tree-ssa-math-opts.c (bswap_replace): Fix
5617 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5619 2014-06-27 Martin Liska <mliska@suse.cz>
5621 * gimple.h (gimple_location_safe): New function introduced.
5622 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5623 of gimple_location_safe replaces gimple_location.
5624 (gimple_fold_call): Likewise.
5625 * ipa-devirt.c (ipa_devirt): Likewise.
5626 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5627 * ipa.c (walk_polymorphic_call_targets): Likewise.
5628 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5630 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5632 PR tree-optimization/57233
5633 PR tree-optimization/61299
5634 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5636 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5637 would be lowered to scalar shifts, check if corresponding
5638 shifts and vector BIT_IOR_EXPR are supported and don't lower
5639 or lower just to narrower vector type in that case.
5640 * expmed.c (expand_shift_1): Fix up handling of vector
5643 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5646 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5648 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5650 * doc/invoke.texi (-fsemantic-interposition): Document.
5651 * common.opt (fsemantic-interposition): New flag.
5652 * varasm.c (decl_replaceable_p): Use it.
5654 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5657 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5658 extraction other than index 3.
5660 2014-06-26 Teresa Johnson <tejohnson@google.com>
5662 * doc/invoke.texi: Fix typo.
5663 * dumpfile.c: Add support for documented -fdump-* options
5664 optimized/missed/note/optall.
5666 2014-06-26 Martin Jambor <mjambor@suse.cz>
5668 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5669 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5670 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5671 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5672 * opts.c (default_options_optimization): Set
5673 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5674 * doc/invoke.texi (allow-load-data-races)
5675 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5676 (allow-store-data-races): Document the new default.
5678 2014-06-26 Martin Jambor <mjambor@suse.cz>
5680 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5681 renamed to ipa_impossible_devirt_target. Fix typo.
5682 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5683 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5684 ipa_impossible_devirt_target.
5686 2014-06-26 Richard Biener <rguenther@suse.de>
5688 PR tree-optimization/61607
5689 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5690 explaining why we restrict copies on loop depth.
5691 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5693 (record_equivalences_from_phis): Instead add it here.
5695 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5697 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5698 (LTO_WRAPPER_OBJS): New variable.
5699 (lto-wrapper$(exeext)): Use it.
5700 * collect2.c: Include "collect-utils.h".
5701 (verbose, debug): Remove variables.
5702 (at_file_supplied): No longer static.
5703 (tool_name): New variable.
5704 (do_wait, fork_execute, maybe_unlink): Don't declare.
5705 (tool_cleanup): No longer static.
5706 (notice): Remove function.
5707 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5709 (collect_wait, do_wait, collect_execute): Remove functions.
5710 (maybe_unlink): No longer static.
5711 * collect2.h (verbose, debug): Don't declare.
5712 (at_file_supplied): Declare.
5713 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5715 (collect_execute): Replace with implementation from collect2, plus a
5716 new arg use_atfile. All callers changed.
5717 (collect_wait): Replace with implementation from collect2.
5718 (maybe_unlink_file): Remove function.
5719 (fork_execute): Replace with implementation from collect2, plus a
5720 new arg use_atfile. All callers changed.
5721 (do_wait): Add call to utils_cleanup to the error path.
5722 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5723 (tool_cleanup): Adjust declarations.
5724 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5725 * tlink.c: Include "collect-utils.h".
5726 (tlink_execute): New arg use_atfile. All callers changed.
5727 (tlink_init, tlink_execute): Remove declarations.
5729 * collect-utils.c (save_temps): New variable.
5730 (do_wait): Use it instead of debug. Use fatal_error.
5731 * collect-utils.h (save_temps): Declare.
5732 * collect2.c (verbose): Rename from vflag. All uses changed.
5733 (tool_cleanup): New function, copied from collect_atexit.
5734 (collect_atexit, handler): Just call it.
5735 * collect2.h (verbose): Declaration renamed from vflag.
5736 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5739 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5740 (lto-wrapper$(exeext)): Link with collect-utils.o.
5741 * collect-utils.c: New file.
5742 * collect-utils.h: New file.
5743 * lto-wrapper.c: Include "collect-utils.h".
5744 (args_name): Delete variable.
5745 (tool_name): New variable.
5746 (tool_cleanup): New function.
5747 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5748 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5749 (fork_execute): Remove functions.
5751 2014-06-26 Nick Clifton <nickc@redhat.com>
5753 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5755 * doc/extend.texi (Function Attributes): Fix typo in description
5756 of RX vector attribute.
5758 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5760 * config.gcc (supported_defaults): Error when passing either
5761 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5763 2014-06-26 Richard Biener <rguenther@suse.de>
5765 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5766 propagating volatile pointers.
5768 2014-06-26 Richard Biener <rguenther@suse.de>
5770 PR tree-optimization/61607
5771 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5772 loop if we redirected its latch edge.
5773 (thread_block_1): Do not cancel loops prematurely.
5775 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5777 * toplev.c (backend_init_target): Move init_emit_regs and
5779 (backend_init) ... here; skip ira_init_once and backend_init_target.
5780 (target_reinit) ... and here; clear
5781 this_target_rtl->lang_dependent_initialized.
5782 (lang_dependent_init_target): Clear
5783 this_target_rtl->lang_dependent_initialized;
5784 break out rtl initialization to ...
5785 (initialize_rtl): ... here; call also backend_init_target
5787 * toplev.h (initialize_rtl): New function.
5788 * function.c: Include toplev.h
5789 (init_function_start): Call initialize_rtl.
5790 * rtl.h (target_rtl): Add target_specific_initialized,
5791 lang_dependent_initialized.
5793 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5794 Jakub Jelinek <jakub@redhat.com>
5796 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5798 2014-06-25 Tom de Vries <tom@codesourcery.com>
5800 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5802 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5804 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5805 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5806 Issue a strict overflow warning if appropriate.
5808 2014-06-25 Martin Liska <mliska@suse.cz>
5811 * Makefile.in: Removed header file (ipa-ref-inline.h).
5812 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5814 (cgraph_speculative_call_info): Likewise.
5815 (cgraph_for_node_thunks_and_aliases): Likewise.
5816 (cgraph_for_node_and_aliases): Likewise.
5817 (verify_cgraph_node): Likewise.
5818 * cgraph.h: Batch of IPA REF functions become member functions of
5819 symtab_node: add_reference, maybe_add_reference, clone_references,
5820 clone_referring, clone_reference, find_reference,
5821 remove_stmt_references, remove_all_references,
5822 remove_all_referring, dump_references, dump_referring,
5823 has_alias_p, iterate_reference, iterate_referring.
5824 * cgraphbuild.c (record_reference): New IPA REF function used.
5825 (record_type_list): Likewise.
5826 (record_eh_tables): Likewise.
5827 (mark_address): Likewise.
5828 (mark_load): Likewise.
5829 (mark_store): Likewise.
5830 (pass_build_cgraph_edges): Likewise.
5831 (rebuild_cgraph_edge): Likewise.
5832 (cgraph_rebuild_references): Likewise.
5833 (pass_remove_cgraph_callee_edges): Likewise.
5834 * cgraphclones.c (cgraph_clone_node): Likewise.
5835 (cgraph_create_virtual_clone): Likewise.
5836 (cgraph_materialize_clone): Likewise.
5837 (cgraph_materialize_all_clones): Likewise.
5838 * cgraphunit.c (cgraph_reset_node): Likewise.
5839 (cgraph_reset_node): Likewise.
5840 (analyze_function): Likewise.
5841 (assemble_thunks_and_aliases): Likewise.
5842 (expand_function): Likewise.
5843 * ipa-comdats.c (propagate_comdat_group): Likewise.
5844 (enqueue_references): Likewise.
5845 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5846 (create_specialized_node): Likewise.
5847 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5848 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5849 * ipa-inline.c (reset_edge_caches): Likewise.
5850 (update_caller_keys): Likewise.
5851 (execute): Likewise.
5852 * ipa-prop.c (remove_described_reference): Likewise.
5853 (propagate_controlled_uses): Likewise.
5854 (ipa_edge_duplication_hook): Likewise.
5855 (ipa_modify_call_arguments): Likewise.
5856 * ipa-pure-const.c (propagate_pure_const): Likewise.
5857 * ipa-ref-inline.h: Header file removed, functions moved
5858 to symtab_node class.
5859 * ipa-ref.c (remove_reference): New class member function.
5860 (cannot_lead_to_return): New class member function.
5861 (referring_ref_list): Likewise.
5862 (referred_ref_list): Likewise.
5863 Rest of functions moved to symtab_node class.
5864 * ipa-ref.h: New member functions remove_reference,
5865 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5867 ipa_ref_list class has new member functions: first_reference,
5868 first_referring, clear, nreferences.
5869 * ipa-reference.c (analyze_function): New IPA REF function used.
5870 (write_node_summary_p): Likewise.
5871 (ipa_reference_write_optimization_summary): Likewise.
5872 * ipa-split.c (split_function): Likewise.
5873 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5874 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5875 (function_and_variable_visibility): Likewise.
5876 * ipa.c (has_addr_references_p): Likewise.
5877 (process_references): Argument type changed.
5878 (symtab_remove_unreachable_nodes): New IPA REF function used.
5879 (process_references): Likewise.
5880 (set_writeonly_bit): Likewise.
5881 * lto-cgraph.c: Implementation of new symtab_node member functions
5882 that uses new IPA REF functions.
5883 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5885 * lto-streamer-out.c (output_symbol_p): Likewise.
5886 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5888 * symtab.c: Implementation of new IPA REF API.
5889 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5890 (ipa_tm_create_version): Likewise.
5891 (ipa_tm_execute): Likewise.
5892 * tree-emutls.c (gen_emutls_addr): Likewise.
5893 * tree-inline.c (copy_bb): Likewise.
5894 (delete_unreachable_blocks_update_callgraph): Likewise.
5895 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5896 (varpool_for_node_and_aliases): Likewise.
5898 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5900 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5902 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5905 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5906 tree_node * instead of tree_node *.
5908 (print_fold_checksum): Likewise.
5909 (fold_check_failed): Likewise.
5910 (debug_fold_checksum): Likewise.
5911 (fold_build1_stat_loc): Likewise.
5912 (fold_build2_stat_loc): Likewise.
5913 (fold_build3_stat_loc): Likewise.
5914 (fold_build_call_array_loc): Likewise.
5916 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5918 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5919 implementation with call to...
5920 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5922 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5925 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5927 PR tree-optimization/57742
5928 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5929 after replacing the statement.
5931 2014-06-25 Nick Clifton <nickc@redhat.com>
5933 * config/v850/v850.c (GHS_default_section_names): Change to const
5935 (GHS_current_section_names): Likewise.
5936 (v850_insert_attributes): Do not build strings, just assign the
5937 names directly. Change the type of 'chosen_section' to const
5939 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5940 directly to the array entry.
5941 * config/v850/v850.h (GHS_default_section_names): Change to const
5943 (GHS_current_section_names): Likewise.
5945 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5947 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5948 (LANG_HOOKS_DECLS): Add it.
5949 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5951 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5952 * langhooks.h (struct lang_hooks_for_decls): Add
5953 omp_clause_linear_ctor hook.
5954 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5955 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5956 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5957 combined simd loop use omp_clause_linear_ctor hook.
5959 2014-06-24 Cong Hou <congh@google.com>
5961 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5962 pattern recognition.
5963 (type_conversion_p): PROMOTION is true if it's a type promotion
5964 conversion, and false otherwise. Return true if the given expression
5965 is a type conversion one.
5966 * tree-vectorizer.h: Adjust the number of patterns.
5967 * tree.def: Add SAD_EXPR.
5968 * optabs.def: Add sad_optab.
5969 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5970 * expr.c (expand_expr_real_2): Likewise.
5971 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5972 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5973 * optabs.c (optab_for_tree_code): Likewise.
5974 * tree-cfg.c (estimate_operator_cost): Likewise.
5975 * tree-ssa-operands.c (get_expr_operands): Likewise.
5976 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5977 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5978 * doc/generic.texi: Add document for SAD_EXPR.
5979 * doc/md.texi: Add document for ssad and usad.
5981 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5983 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5984 qualification in cast.
5986 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5988 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5989 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5990 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5991 (tree_function_decl): ... here.
5992 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5993 streaming of vindex to ...
5994 (write_ts_function_decl_tree_pointers): ... here.
5995 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5996 Do not stream DECL_VINDEX.
5997 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5999 2014-06-24 Catherine Moore <clm@codesourcery.com>
6000 Sandra Loosemore <sandra@codesourcery.com>
6002 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6003 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6004 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6006 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6008 * doc/invoke.texi (Warning Options): Remove duplicated
6009 -Wmaybe-uninitialized.
6011 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6013 PR tree-optimization/57742
6014 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6015 (handle_builtin_malloc, handle_builtin_memset): New functions.
6016 (strlen_optimize_stmt): Call them.
6017 * passes.def: Move strlen after loop+dom but before vrp.
6019 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6022 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6023 model family 6 CPU with has_longmode never use a CPU without
6026 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6029 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6032 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6034 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6035 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6037 * hash-map.h: New file.
6038 * ipa-comdats.c: Use hash_map instead of pointer_map.
6040 * lto-section-out.c: Adjust.
6041 * lto-streamer.h: Replace pointer_map with hash_map.
6042 * symtab.c (verify_symtab): Likewise.
6043 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6044 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6045 * tree-streamer.h: Likewise.
6046 * tree-streamer.c: Adjust.
6047 * pointer-set.h: Remove pointer_map.
6049 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6051 * hash-table.h: Add a template arg to choose between storing values
6052 and storing pointers to values, and then provide partial
6053 specializations for both.
6054 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6055 should store, not the type values should point to.
6056 * tree-into-ssa.c (var_info_hasher): Likewise.
6057 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6058 * tree-complex.c: Adjust.
6059 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6060 table instead of int_tree_map *.
6061 * tree-parloops.c: Adjust.
6062 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6063 type is being stored.
6064 * tree-vectorizer.c: Adjust.
6066 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6068 * hash-table.h: Remove a layer of indirection from hash_table so that
6069 it contains the hash table's data instead of a pointer to the data.
6070 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6071 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6072 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6073 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6074 fold-const.c, gcse.c, ggc-common.c,
6075 gimple-ssa-strength-reduction.c, gimplify.c,
6076 graphite-clast-to-gimple.c, graphite-dependences.c,
6077 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6078 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6079 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6080 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6081 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6082 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6083 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6084 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6085 tree-ssa-live.c, tree-ssa-loop-im.c,
6086 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6087 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6088 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6089 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6090 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6091 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6092 vtable-verify.c, vtable-verify.h: Adjust.
6094 2014-06-24 Richard Biener <rguenther@suse.de>
6096 PR tree-optimization/61572
6097 * tree-ssa-sink.c (statement_sink_location): Do not sink
6098 loads from hard registers.
6100 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6102 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6103 not mentioned in clauses use private clause if the iterator is
6104 declared in #pragma omp for simd, and when adding lastprivate
6105 instead, add it to the outer #pragma omp for too. Diagnose
6106 if the variable is private in outer context. For simd collapse > 1
6107 loops, replace all iterators with temporaries.
6108 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6109 same even in collapse > 1 loops.
6111 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6112 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6114 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6115 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6117 (gimplify_adjust_omp_clauses): Likewise.
6118 * omp-low.c (lower_rec_simd_input_clauses,
6119 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6120 safelen the same as safelen(1).
6121 * tree-nested.c (convert_nonlocal_omp_clauses,
6122 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6123 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6124 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6125 Fixup handling of GIMPLE_OMP_TARGET.
6126 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6129 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6131 PR tree-optimization/61554
6132 * tree-ssa-propagate.c: Include "bitmap.h".
6133 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6134 properly update constructor/destructor.
6135 (substitute_and_fold_dom_walker::before_dom_children):
6136 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6137 need_eh_cleaup instead.
6138 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6141 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6143 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6144 * tree-pass.h (make_pass_ipa_single_use): New pass.
6145 * cgraph.h (used_by_single_function): New flag.
6146 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6148 * passes.def (pass_ipa_single_use): Scedule.
6149 * ipa.c (BOTTOM): New macro.
6150 (meet): New function
6151 (propagate_single_user): New function.
6152 (ipa_single_use): New function.
6153 (pass_data_ipa_single_use): New pass.
6154 (pass_ipa_single_use): New pass.
6155 (pass_ipa_single_use::gate): New gate.
6156 (make_pass_ipa_single_use): New function.
6158 2014-06-23 Kai Tietz <ktietz@redhat.com>
6161 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6162 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6164 2014-06-23 Richard Biener <rguenther@suse.de>
6166 * tree-ssa-loop.c (gate_loop): New function.
6167 (pass_tree_loop::gate): Call it.
6168 (pass_data_tree_no_loop, pass_tree_no_loop,
6169 make_pass_tree_no_loop): New.
6170 * tree-vectorizer.c: Include tree-scalar-evolution.c
6171 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6173 (pass_slp_vectorize::clone): New method.
6174 * timevar.def (TV_TREE_NOLOOP): New.
6175 * tree-pass.h (make_pass_tree_no_loop): Declare.
6176 * passes.def (pass_tree_no_loop): New pass group with
6179 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6182 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6183 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6185 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6187 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6190 2014-06-23 Alan Modra <amodra@gmail.com>
6193 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6194 to zero on debug statements.
6196 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6199 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6200 Ignore third operand if present by marking qualifier_internal.
6202 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6204 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6206 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6207 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6208 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6209 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6210 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6211 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6212 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6213 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6214 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6215 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6216 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6217 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6218 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6219 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6220 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6221 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6222 logic in GCC vector extensions
6224 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6225 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6226 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6227 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6228 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6229 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6230 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6231 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6232 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6233 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6235 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6237 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6240 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6241 (vget_low_s64): Use __GET_LOW macro.
6242 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6243 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6244 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6245 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6246 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6248 (vcombine_s64): Use GCC vector extensions; remove cast.
6249 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6250 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6251 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6252 Fix type signature; remove cast.
6254 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6257 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6259 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6262 (BUILTIN_VD_RE): Remove.
6263 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6264 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6265 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6267 (vreinterpretv1df*, vreinterpret*v1df): New.
6268 (vreinterpretdf*, vreinterpret*df): Remove.
6269 * config/aarch64/aarch64-simd.md (aarch64_create,
6270 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6271 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6273 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6274 (vcreate_f64): Remove cast, use v1df builtin.
6275 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6276 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6277 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6278 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6279 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6280 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6281 add range check using __builtin_aarch64_im_lane_boundsi.
6282 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6283 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6284 type signature, use gcc vector extensions.
6285 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6286 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6287 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6288 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6289 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6290 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6291 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6292 vreinterpret_u64_f64): Use v1df builtin not df.
6294 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6296 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6299 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6301 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6304 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6306 * loop-invariant.c (pre_check_invariant_p): New function.
6307 (find_invariant_insn): Call pre_check_invariant_p.
6309 2014-06-22 Richard Henderson <rth@redhat.com>
6312 * compare-elim.c (struct comparison): Add eh_note.
6313 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6314 a redundant comparison in a different EH region. Purge EH edges if
6317 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6319 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6320 (var_shift): Use it.
6321 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6322 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6323 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6324 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6325 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6326 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6327 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6328 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6329 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6330 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6331 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6332 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6333 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6334 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6335 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6336 *rotldi3_internal15be): Use the new attribute. Merge register and
6337 integer alternatives.
6339 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6341 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6342 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6343 split, *ashrdi3_internal3 and split): Delete, merge into...
6344 (ashr<mode>3): New expander.
6345 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6346 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6348 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6350 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6351 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6352 *rotldi3_internal3 and split): Delete, merge into...
6353 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6354 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6355 Use "rotlw" extended mnemonic.
6357 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6359 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6360 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6361 and split, *ashldi3_internal3 and split): Delete, merge into...
6362 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6363 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6365 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6367 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6368 (lshrsi3, two anonymous define_insns and define_splits,
6369 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6370 *lshrdi3_internal3 and split): Delete, merge into...
6371 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6372 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6374 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6376 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6377 Remove "O" alternative.
6379 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6381 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6382 (mips_move_from_gpr_cost): Likewise.
6383 (mips_register_move_cost): Update accordingly.
6384 (mips_secondary_reload_class): Remove name of in_p.
6386 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6389 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6390 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6392 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6394 * config/nios2/nios2.c: Include "builtins.h".
6396 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6398 * cgraph.h (tls_model_names): New variable.
6399 * print-tree.c (print_node): Simplify.
6400 * varpool.c (tls_model_names): New variable.
6401 (dump_varpool_node): Output tls model.
6403 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6405 * ipa-visibility.c (function_and_variable_visibility): Disable
6406 temporarily local aliases for some targets.
6408 2014-06-20 Marek Polacek <polacek@redhat.com>
6410 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6411 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6412 into SANITIZE_UNDEFINED.
6413 * doc/invoke.texi: Describe -fsanitize=bounds.
6414 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6415 functions created in the FEs.
6416 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6417 (expand_UBSAN_BOUNDS): New function.
6418 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6419 * internal-fn.h: Don't define internal functions here.
6420 * opts.c (common_handle_option): Add -fsanitize=bounds.
6421 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6422 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6423 * tree-core.h: Define internal functions here.
6424 (struct tree_base): Add ifn field.
6425 * tree-pretty-print.c: Include "internal-fn.h".
6426 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6427 * tree.c (get_callee_fndecl): Likewise.
6428 (build_call_expr_internal_loc): New function.
6429 * tree.def (CALL_EXPR): Update description.
6430 * tree.h (CALL_EXPR_IFN): Define.
6431 (build_call_expr_internal_loc): Declare.
6432 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6434 (ubsan_type_descriptor): Change bool parameter to enum
6435 ubsan_print_style. Adjust the code. Add handling of
6437 (ubsan_expand_bounds_ifn): New function.
6438 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6439 (ubsan_build_overflow_builtin): Likewise.
6440 (instrument_bool_enum_load): Likewise.
6441 (ubsan_instrument_float_cast): Likewise.
6442 * ubsan.h (enum ubsan_print_style): New enum.
6443 (ubsan_expand_bounds_ifn): Declare.
6444 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6446 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6448 * config/rs6000/rs6000.md: Append `DONE' to preparation
6449 statements of `bswap' pattern splitters.
6451 2014-06-20 Tom de Vries <tom@codesourcery.com>
6453 * target.def (call_fusage_contains_non_callee_clobbers): Update
6455 * doc/tm.texi: Regenerate.
6457 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6458 Max Ostapenko <m.ostapenko@partner.samsung.com>
6461 * asan.c (instrument_strlen_call): Fixed instrumentation of
6464 2014-06-20 Martin Jambor <mjambor@suse.cz>
6467 * ipa-prop.c (impossible_devirt_target): New function.
6468 (try_make_edge_direct_virtual_call): Use it, also instead of
6471 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6472 Max Ostapenko <m.ostapenko@partner.samsung.com>
6475 * asan.c (build_check_stmt): Add condition.
6477 2014-06-20 Martin Jambor <mjambor@suse.cz>
6480 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6483 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6485 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6487 (VCONQ): Make comment more helpful.
6489 * config/aarch64/aarch64-simd.md
6490 (aarch64_sqdmulh_lane<mode>):
6491 Use VCOND for operands 2. Update lane checking and flipping logic.
6492 (aarch64_sqrdmulh_lane<mode>): Likewise.
6493 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6494 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6495 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6496 attribute of operand 3 to VCOND.
6497 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6498 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6499 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6500 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6501 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6502 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6504 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6505 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6506 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6507 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6508 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6509 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6510 operand to VCOND. Update lane flipping and bounds checking logic.
6511 (aarch64_sqdmlal2_lane<mode>): Likewise.
6512 (aarch64_sqdmlsl_lane<mode>): Likewise.
6513 (aarch64_sqdmull_lane<mode>): Likewise.
6514 (aarch64_sqdmull2_lane<mode>): Likewise.
6515 (aarch64_sqdmlal_laneq<mode>):
6516 Replace VCON usage with VCONQ.
6517 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6518 (aarch64_sqdmlal2_laneq<mode>): Emit
6519 aarch64_sqdmlal2_laneq<mode>_internal insn.
6520 Replace VCON with VCONQ.
6521 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6522 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6523 (aarch64_sqdmull_laneq<mode>): Emit
6524 aarch64_sqdmull_laneq<mode>_internal insn.
6525 Replace VCON with VCONQ.
6526 (aarch64_sqdmull2_laneq<mode>): Emit
6527 aarch64_sqdmull2_laneq<mode>_internal insn.
6528 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6529 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6530 of 3rd argument to int16x4_t.
6531 (vqdmlalh_lane_s16): Likewise.
6532 (vqdmlslh_lane_s16): Likewise.
6533 (vqdmull_high_lane_s16): Likewise.
6534 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6535 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6536 (vqdmlsl_lane_s16): Likewise.
6537 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6538 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6539 (vqdmlals_lane_s32): Likewise.
6540 (vqdmlsls_lane_s32): Likewise.
6541 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6542 (vqdmulls_lane_s32): Likewise.
6543 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6544 (vqdmlsl_lane_s32): Likewise.
6545 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6546 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6547 (vqrdmulhh_lane_s16): Likewise.
6548 (vqdmlsl_high_lane_s16): Likewise.
6549 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6550 (vqdmlsl_high_lane_s32): Likewise.
6551 (vqrdmulhs_lane_s32): Likewise.
6553 2014-06-20 Tom de Vries <tom@codesourcery.com>
6555 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6556 get_call_reg_set_usage.
6558 2014-06-20 Tom de Vries <tom@codesourcery.com>
6560 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6561 it contains all call_used_regs.
6563 2014-06-20 Tom de Vries <tom@codesourcery.com>
6565 * final.c (collect_fn_hard_reg_usage): Add and use variable
6568 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6570 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6571 (set_init_priority, get_init_priority, set_fini_priority,
6572 get_fini_priority): New methods.
6573 * tree.c (init_priority_for_decl): Remove.
6574 (init_ttree): Do not initialize init priority.
6575 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6576 (decl_priority_info): Remove.
6577 (decl_init_priority_insert): Rewrite.
6578 (decl_fini_priority_insert): Rewrite.
6579 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6580 tree_priority_map_marked_p): Remove.
6581 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6582 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6583 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6584 not output priorities.
6585 (pack_ts_function_decl_value_fields): Likewise.
6586 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6587 not input priorities.
6588 (unpack_ts_function_decl_value_fields): Likewise.
6589 * symtab.c (symbol_priority_map): Declare.
6590 (init_priority_hash): Declare.
6591 (symtab_unregister_node): Unregister from priority hash, too.
6592 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6594 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6595 (symbol_priority_info): New function.
6596 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6598 * tree-core.h (tree_priority_map): Remove.
6600 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6602 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6603 0xff to uint64_t before shifting it up.
6605 2014-06-20 Julian Brown <julian@codesourcery.com>
6606 Chung-Lin Tang <cltang@codesourcery.com>
6608 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6609 TARGET_THUMB1_ONLY. Add comments.
6611 2014-06-19 Tom de Vries <tom@codesourcery.com>
6613 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6614 return type to void.
6615 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6617 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6619 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6620 as "move", from depends_on.
6622 2014-06-19 Terry Guo <terry.guo@arm.com>
6624 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6627 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6629 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6631 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6633 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6636 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6637 addresses here if reload in progress or completed.
6639 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6641 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6642 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6643 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6644 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6645 (mips_register_priority): New function that implements the target
6646 hook TARGET_REGISTER_PRIORITY.
6647 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6648 (mips_lra_p): Likewise for TARGET_LRA_P.
6649 (TARGET_REGISTER_PRIORITY): Define macro.
6650 (TARGET_SPILL_CLASS): Likewise.
6651 (TARGET_LRA_P): Likewise.
6652 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6654 (REG_CLASS_NAMES): Likewise.
6655 (REG_CLASS_CONTENTS): Likewise.
6656 (BASE_REG_CLASS): Use M16_SP_REGS.
6657 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6658 New set attribute to enable alternatives depending on the register
6660 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6661 (*lea64): Disable pattern for MIPS16.
6662 * config/mips/mips.opt (mlra): New option.
6664 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6666 * lra-constraints.c (base_to_reg): New function.
6667 (process_address): Use new function.
6669 2014-06-18 Tom de Vries <tom@codesourcery.com>
6671 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6672 * config/aarch64/aarch64.c
6673 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6674 (aarch64_emit_call_insn): New function.
6675 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6677 * config/aarch64/aarch64.md (define_expand "call_internal")
6678 (define_expand "call_value_internal", define_expand "sibcall_internal")
6679 (define_expand "sibcall_value_internal"): New.
6680 (define_expand "call", define_expand "call_value")
6681 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6682 expand variant and aarch64_emit_call_insn.
6684 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6685 Tom de Vries <tom@codesourcery.com>
6687 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6688 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6690 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6691 clobbers to CALL_INSN_FUNCTION_USAGE.
6692 (define_expand "sibcall_internal")
6693 (define_expand "sibcall_value_internal"): New.
6694 (define_expand "call", define_expand "call_value"): Add argument to
6696 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6697 (define_expand "sibcall_value"): Use sibcall_value_internal and
6700 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6702 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6704 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6706 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6709 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6711 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6712 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6713 annotations. Fix DWARF information.
6715 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6717 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6718 __udivmoddi4, and fixups for negative operands.
6720 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6722 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6724 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6726 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6729 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6731 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6734 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6736 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6737 describing register usage on function entry and exit.
6739 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6741 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6742 (__aeabi_ldivmod): Fix whitespace.
6744 2014-06-18 Andreas Schwab <schwab@suse.de>
6746 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6747 Remove blank line after @item.
6749 2014-06-18 Richard Henderson <rth@redhat.com>
6752 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6754 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6756 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6757 POST_MODIFY for neon loads and stores.
6758 (arm_print_operand): Output post-index register for neon loads and
6761 2014-06-18 Richard Biener <rguenther@suse.de>
6763 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6765 2014-06-18 Richard Biener <rguenther@suse.de>
6767 * tree-pass.h (make_pass_dce_loop): Remove.
6768 * passes.def: Replace pass_dce_loop with pass_dce.
6769 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6770 changed free niter estimates and reset the scev cache.
6771 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6772 make_pass_dce_loop): Remove.
6773 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6774 (fini_copy_prop): Return whether something changed. Always
6775 let substitute_and_fold perform DCE and free niter estimates
6776 and reset the scev cache if so.
6777 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6778 (pass_data_copy_prop): Do not unconditionally schedule
6779 cleanup-cfg or update-ssa.
6781 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6783 PR tree-optimization/61518
6784 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6785 reduction var is used in reduction stmt or phi-function only.
6787 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6789 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6791 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6793 PR tree-optimization/61517
6794 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6795 whose rhs's first tree is the source expression instead of the
6797 (find_bswap_or_nop): Likewise.
6798 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6799 gimple stmt whose rhs's first tree is the source. In the memory source
6800 case, move the stmt to be replaced close to one of the original load to
6801 avoid the problem of a store between the load and the stmt's original
6803 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6806 2014-06-18 Andreas Schwab <schwab@suse.de>
6808 PR rtl-optimization/54555
6809 * postreload.c (move2add_use_add2_insn): Substitute
6810 STRICT_LOW_PART only if it is cheaper.
6812 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6814 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6815 Do not use unspec as call operand. Use memory_operand instead of
6816 memory_nox32_operand and add "m" operand constraint. Disable
6817 pattern for TARGET_X32.
6818 (*sibcall_pop_memory): Ditto.
6819 (*sibcall_value_memory): Ditto.
6820 (*sibcall_value_pop_memory): Ditto.
6821 (sibcall peepholes): Merge SImode and DImode patterns using
6822 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6823 Disable pattern for TARGET_X32. Check if eliminated register is
6824 really dead after call insn. Generate call RTX without unspec operand.
6825 (sibcall_value peepholes): Ditto.
6826 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6827 instead of memory_nox32_operand. Check if eliminated register is
6828 really dead after call insn. Generate call RTX without unspec operand.
6829 (sibcall_value_pop peepholes): Ditto.
6830 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6832 2014-06-18 Terry Guo <terry.guo@arm.com>
6835 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6838 2014-06-18 Olivier Hainque <hainque@adacore.com>
6840 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6841 memorization of the end of block source location.
6842 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6843 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6844 end source location info we have on the block entry/exit code we
6847 2014-06-18 Richard Biener <rguenther@suse.de>
6849 * common.opt (fssa-phiopt): New option.
6850 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6852 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6853 * doc/invoke.texi (-fssa-phiopt): Document.
6855 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6857 * genattrtab.c (n_bypassed): New variable.
6858 (process_bypasses): Initialise n_bypassed.
6859 Count number of bypassed reservations.
6860 (make_automaton_attrs): Allocate space for bypassed reservations
6861 rather than number of bypasses.
6863 2014-06-18 Richard Biener <rguenther@suse.de>
6865 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6866 we propagated anything.
6867 (substitute_and_fold_dom_walker::before_dom_children): Something
6868 changed if we propagated into PHI arguments.
6869 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6872 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6874 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6876 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6877 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6878 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6879 Introduces alternative way of loads group permutaions.
6880 (vect_transform_grouped_load): Try alternative way of permutations.
6882 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6884 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6885 changed in ORT_TARGET region, don't jump to do_outer.
6886 (struct gimplify_adjust_omp_clauses_data): New type.
6887 (gimplify_adjust_omp_clauses_1): Adjust for data being
6888 a struct gimplify_adjust_omp_clauses_data pointer instead
6889 of tree *. Pass pre_p as a new argument to
6890 lang_hooks.decls.omp_finish_clause hook.
6891 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6892 splay_tree_foreach to pass both list_p and pre_p.
6893 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6894 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6895 gimplify_adjust_omp_clauses callers.
6896 * langhooks.c (lhd_omp_finish_clause): New function.
6897 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6898 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6899 * langhooks.h (struct lang_hooks_for_decls): Add a new
6900 gimple_seq * argument to omp_finish_clause hook.
6901 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6902 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6903 (scan_omp_parallel, lower_omp_for): When adding
6904 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6905 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6906 * tree-nested.c (convert_nonlocal_omp_clauses,
6907 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6908 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6910 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6912 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6913 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6915 2014-06-17 Xinliang David Li <davidxl@google.com>
6917 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6918 * passes.c (pass_init_dump_file): Do not set initialize
6919 flag to false unconditionally.
6921 2014-06-17 Richard Biener <rguenther@suse.de>
6923 * genopinit.c (main): Use vec<>::qsort method.
6924 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6926 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6928 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6930 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6931 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6932 (mips_move_to_gpr_cost): Remove ST_REGS case.
6933 (mips_move_from_gpr_cost): Likewise.
6934 (mips_register_move_cost): Likewise.
6935 (mips_secondary_reload_class): Likewise.
6937 2014-06-17 Richard Biener <rguenther@suse.de>
6939 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6940 (pass_all_optimizations): Move 3rd copy-prop pass from after
6941 fre to before ifcombine/phiopt.
6943 2014-06-17 Richard Biener <rguenther@suse.de>
6945 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6946 and allow all blocks to be forwarders.
6948 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6951 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6952 variable 'size'; calculate 'size' right in the front; use
6953 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6954 pcum->aapcs_stack_words.
6956 2014-06-17 Nick Clifton <nickc@redhat.com>
6958 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6959 (umulhi3, mulsidi3, umulsidi3): Likewise.
6961 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6964 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6965 check for section name.
6967 2014-06-17 Richard Biener <rguenther@suse.de>
6969 * tree-ssa-propagate.c: Include domwalk.h.
6970 (substitute_and_fold): Outline main worker into a domwalker ...
6971 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6972 Schedule stmts we can fully propagate for removal. Remove
6974 (substitute_and_fold): Apply a dominator walk to perform
6975 substitution. Process stmts scheduled for removal here.
6977 2014-06-17 Richard Biener <rguenther@suse.de>
6979 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6982 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6984 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6985 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6986 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6987 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6988 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6990 (get_fpscr) : Likewise.
6992 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6994 PR rtl-optimization/61325
6995 * lra-constraints.c (valid_address_p): Add forward declaration.
6996 (simplify_operand_subreg): Check address validity before and after
6997 alter_reg of memory subreg.
6999 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7001 * config/i386/i386.c (decide_alg): Correctly handle
7002 maximum size of stringop algorithm.
7004 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7006 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7008 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7010 PR rtl-optimization/61522
7011 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7013 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7016 * symtab.c (symtab_node::reset_section): New method.
7017 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7019 * cgraph.h (reset_section): Declare.
7020 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7021 do not consider comdat locals.
7022 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7024 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7025 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7026 reset sections of symbols dragged out of the comdats.
7027 (function_and_variable_visibility): Reset sections of
7030 2014-06-16 Richard Biener <rguenther@suse.de>
7032 PR tree-optimization/61482
7033 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7034 [-INF(OVF), +INF(OVF)] range.
7036 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7038 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7039 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7040 handling 32-bit multiplication.
7042 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7045 * lra-lives.c (process_bb_lives): Skip creating copy during
7046 insn scan when src/dest has constrained to same regno.
7048 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7050 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7051 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7053 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7055 * asan.c (check_func): New function.
7056 (maybe_create_ssa_name): Likewise.
7057 (build_check_stmt_with_calls): Likewise.
7058 (use_calls_p): Likewise.
7059 (report_error_func): Change interface.
7060 (build_check_stmt): Allow non-integer lengths; add support
7062 (asan_instrument): Likewise.
7063 (instrument_mem_region_access): Moved code to build_check_stmt.
7064 (instrument_derefs): Likewise.
7065 (instrument_strlen_call): Likewise.
7066 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7067 * doc/invoke.texi: Describe new parameter.
7068 * params.def: Define new parameter.
7069 * params.h: Likewise.
7070 * sanitizer.def: Describe new builtins.
7072 2014-06-16 Richard Biener <rguenther@suse.de>
7074 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7075 Make all defs available at the end.
7076 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7078 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7081 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7083 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7086 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7087 initialization. Replace remaining use of uid.
7089 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7091 * c-family/c-common.c (handle_tls_model_attribute): Use
7093 * c-family/c-common.c (handle_tls_model_attribute): Use
7095 * cgraph.h (struct varpool_node): Add tls_model.
7096 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7097 * tree.h (DECL_TLS_MODEL): Update.
7098 (DECL_THREAD_LOCAL_P): Check that variable is static.
7099 (decl_tls_model): Declare.
7100 (set_decl_tls_model): Declare.
7101 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7102 set symbol prorperties.
7103 (get_emutls_init_templ_addr): Cleanup.
7104 (new_emutls_decl): Update.
7105 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7106 (lto_input_varpool_node): Likewise.
7107 * lto-streamer-out.c (hash_tree): Likewise.
7108 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7109 not stream DECL_TLS_MODEL.
7110 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7111 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7113 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7115 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7117 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7119 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7120 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7122 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7123 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7124 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7125 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7126 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7127 (df_get_artificial_defs, df_get_artificial_uses)
7128 (df_single_def, df_single_use): Update accordingly.
7129 (df_refs_chain_dump): Take the first element in a linked list as
7130 parameter, rather than a pointer to an array of pointers.
7131 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7132 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7133 (df_chain_create_bb_process_use): Likewise.
7134 (df_md_bb_local_compute_process_def): Likewise.
7135 * fwprop.c (process_defs, process_uses): Likewise.
7136 (register_active_defs, update_uses): Likewise.
7137 (forward_propagate_asm): Update for new df_ref linking.
7138 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7139 (df_null_ref_rec, df_null_mw_rec): Likewise.
7140 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7142 (df_scan_free_bb_info): Remove check for null artificial_defs.
7143 (df_install_ref_incremental): Adjust for new df_ref linking.
7144 Use a single-element insertion rather than a full sort.
7145 (df_ref_chain_delete_du_chain): Take the first element
7146 in a linked list as parameter, rather than a pointer to an array of
7148 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7149 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7150 (df_insn_info_delete): Remove check for null defs and call to
7151 df_scan_free_mws_vec.
7152 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7153 null rather than df_null_*_rec.
7154 (df_insn_rescan_debug_internal): Likewise, and update null
7155 checks in the same way. Remove check for null defs.
7156 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7157 Move a single element rather doing a full sort.
7158 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7160 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7161 Initialize df_ref and df_mw_hardreg lists to null rather than
7163 (df_ref_compare): Take df_refs as parameter, transferring the
7165 (df_ref_ptr_compare): ...this new function.
7166 (df_sort_and_compress_refs): Update accordingly.
7167 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7169 (df_mw_ptr_compare): ...this new function.
7170 (df_sort_and_compress_mws): Update accordingly.
7171 (df_install_refs, df_install_mws): Return a linked list rather than
7172 an array of pointers.
7173 (df_refs_add_to_chains): Assert that old lists are empty rather
7175 (df_insn_refs_verify): Don't handle null defs speciailly.
7176 * web.c (union_match_dups): Update for new df_ref linking.
7178 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7180 * df.h (df_ref_create, df_ref_remove): Delete.
7181 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7182 (df_ref_remove): Likewise.
7184 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7186 * df.h (df_single_def, df_single_use): New functions.
7187 * ira.c (find_moveable_pseudos): Use them.
7189 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7191 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7192 * df-problems.c (df_note_bb_compute): Use it.
7193 * regstat.c (regstat_bb_compute_ri): Likewise.
7195 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7197 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7198 * cse.c (cse_extended_basic_block): Use them.
7199 * dce.c (mark_artificial_use): Likewise.
7200 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7201 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7202 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7203 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7204 (df_simulate_initialize_backwards): Likewise.
7205 (df_simulate_finalize_backwards): Likewise.
7206 (df_simulate_initialize_forwards): Likewise.
7207 (df_md_simulate_artificial_defs_at_top): Likewise.
7208 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7209 * regrename.c (init_rename_info): Likewise.
7210 * regstat.c (regstat_bb_compute_ri): Likewise.
7211 (regstat_bb_compute_calls_crossed): Likewise.
7213 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7215 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7216 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7217 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7218 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7219 * combine.c (create_log_links): Likewise.
7220 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7221 (try_eliminate_compare): Likewise.
7222 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7223 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7224 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7225 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7226 (word_dce_process_block, dce_process_block): Likewise.
7227 * ddg.c (def_has_ccmode_p): Likewise.
7228 * df-core.c (df_bb_regno_first_def_find): Likewise.
7229 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7230 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7231 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7232 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7233 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7234 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7235 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7236 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7237 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7238 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7239 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7240 * fwprop.c (local_ref_killed_between_p): Likewise.
7241 (all_uses_available_at, free_load_extend): Likewise.
7242 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7243 * hw-doloop.c (scan_loop): Likewise.
7244 * ifcvt.c (dead_or_predicable): Likewise.
7245 * init-regs.c (initialize_uninitialized_regs): Likewise.
7246 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7247 (process_bb_node_lives): Likewise.
7248 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7249 (find_moveable_pseudos): Likewise.
7250 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7251 * recog.c (peep2_find_free_register): Likewise.
7252 * ree.c (get_defs): Likewise.
7253 * regstat.c (regstat_bb_compute_ri): Likewise.
7254 (regstat_bb_compute_calls_crossed): Likewise.
7255 * sched-deps.c (find_inc, find_mem): Likewise.
7256 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7257 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7258 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7259 (prepare_shrink_wrap): Likewise.
7260 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7261 * web.c (union_defs, pass_web::execute): Likewise.
7262 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7263 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7265 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7267 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7268 to inheritance pseudos.
7269 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7271 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7274 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7275 (BU_MISC_2): Rename to ...
7276 (BU_LDBL128_2): ... this.
7277 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7278 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7279 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7281 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7282 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7283 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7284 (unpacktf_1): Likewise.
7285 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7286 (__builtin_longdouble_dw1): Likewise.
7287 * doc/sourcebuild.texi (longdouble128): Document.
7289 2014-06-13 Jeff Law <law@redhat.com>
7291 PR rtl-optimization/61094
7292 PR rtl-optimization/61446
7293 * ree.c (combine_reaching_defs): Get the mode for the copy from
7294 the extension insn rather than the defining insn.
7296 2014-06-13 Dehao Chen <dehao@google.com>
7298 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7300 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7302 * doc/install.texi (--enable-linker-plugin-configure-flags)
7303 (--enable-linker-plugin-flags): Document new flags.
7305 2014-06-13 Martin Jambor <mjambor@suse.cz>
7308 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7309 cache_token if returning early.
7311 2014-06-13 Nick Clifton <nickc@redhat.com>
7313 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7314 requested alignment is active.
7315 (LABEL_ALIGN): Likewise.
7316 (LOOP_ALIGN): Likewise.
7318 2014-06-13 Richard Biener <rguenther@suse.de>
7320 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7321 Rewrite to propagate the VN result into all uses where
7322 possible and to remove stmts becoming dead because of that.
7323 (eliminate): Generalize stmt removal handling, remove in
7324 reverse dominator order to support proper debug stmt
7325 generation. Update stmts before removing stmts.
7326 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7328 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7330 PR tree-optimization/61375
7331 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7332 symbolic number cannot be represented in an uint64_t.
7333 (find_bswap_or_nop_1): Likewise.
7335 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7337 * symtab.c (symtab_node::reset_section): New method.
7338 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7340 * cgraph.h (reset_section): Declare.
7341 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7342 do not consider comdat locals.
7343 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7345 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7346 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7347 reset sections of symbols dragged out of the comdats.
7348 (function_and_variable_visibility): Reset sections of
7351 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7353 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7354 to use symtab and decl_binds_to_current_def_p
7355 * tree-vectorizer.c (increase_alignment): Increase alignment
7356 of alias target, too.
7358 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7361 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7362 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7363 if outer combined construct is distribute.
7364 (gimplify_omp_for): For OMP_DISTRIBUTE set
7365 gimplify_omp_ctxp->distribute.
7366 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7367 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7368 mapping into decl map.
7370 2014-06-12 Jason Merrill <jason@redhat.com>
7372 * common.opt (fabi-version): Change default to 0.
7374 2014-06-12 Jason Merrill <jason@redhat.com>
7376 * toplev.c (process_options): Reject -fabi-version=1.
7378 2014-06-12 Jeff Law <law@redhat.com>
7380 PR tree-optimization/61009
7381 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7382 value when we stop processing a block due to problematic PHIs.
7384 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7386 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7387 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7388 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7389 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7390 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7391 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7392 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7393 are not in the spec.
7395 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7398 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7399 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7402 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7404 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7406 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7409 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7410 loading from address spaces.
7412 2014-06-12 Martin Liska <mliska@suse.cz>
7415 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7416 statement is reachable.
7418 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7420 * symtab.c (section_hash): New hash.
7421 (symtab_unregister_node): Clear section before freeing.
7422 (hash_section_hash_entry): New haser.
7423 (eq_sections): New function.
7424 (symtab_node::set_section_for_node): New method.
7425 (set_section_1): Update.
7426 (symtab_node::set_section): Take string instead of tree as parameter.
7427 (symtab_resolve_alias): Update.
7428 * cgraph.h (section_hash_entry_d): New structure.
7429 (section_hash_entry): New typedef.
7430 (cgraph_node): Change comdat_group_ to x_comdat_group,
7431 change section_ to x_section and turn into section_hash_entry;
7432 update accestors; put set_section_for_node offline.
7433 * tree.c (decl_section_name): Turn into string.
7434 (set_decl_section_name): Change parameter to be string.
7435 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7436 * sdbout.c (sdbout_one_type): Update.
7437 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7438 * varasm.c (IN_NAMED_SECTION, get_named_section,
7439 resolve_unique_section, hot_function_section, get_named_text_section,
7440 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7441 make_decl_rtl, default_unique_section): Update.
7442 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7443 (c6x_elf_unique_section): Update.
7444 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7445 * config/pa/pa.c (pa_function_section): Update.
7446 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7447 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7448 * config/arc/arc.c (arc_in_small_data_p): Update.
7449 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7450 * config/mcore/mcore.c (mcore_unique_section): Update.
7451 * config/mips/mips.c (mips16_build_function_stub): Update.
7452 (mips16_build_call_stub): Update.
7453 (mips_function_rodata_section): Update.
7454 (mips_in_small_data_p): Update.
7455 * config/score/score.c (score_in_small_data_p): Update.
7456 * config/rx/rx.c (rx_in_small_data): Update.
7457 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7458 (rs6000_xcoff_asm_named_section): Update.
7459 (rs6000_xcoff_unique_section): Update.
7460 * config/frv/frv.c (frv_string_begins_with): Update.
7461 (frv_in_small_data_p): Update.
7462 * config/v850/v850.c (v850_encode_data_area): Update.
7463 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7464 (bfin_handle_l1_data_attribute): Update.
7465 (bfin_handle_l2_attribute): Update.
7466 * config/mep/mep.c (mep_unique_section): Update.
7467 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7469 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7470 (h8300_handle_tiny_data_attribute): Update.
7471 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7472 (m32r_in_small_data_p): Update.
7473 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7474 * config/i386/i386.c (ix86_in_large_data_p): Update.
7475 * config/i386/winnt.c (i386_pe_unique_section): Update.
7476 * config/darwin.c (darwin_function_section): Update.
7477 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7478 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7479 (new_emutls_decl): Update.
7480 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7481 input_varpool_node): Update.
7482 (ead_string_cst): Turn to ...
7483 (read_string): ... this one.
7484 * dwarf2out.c (secname_for_decl): Update.
7485 * asan.c (asan_protect_global): Update.
7487 2014-06-11 DJ Delorie <dj@redhat.com>
7489 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7491 * config/rx/rx.c (rx_option_override): Likewise.
7492 (rx_align_for_label): Likewise.
7494 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7496 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7498 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7501 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7503 * common.md: New file.
7504 * doc/md.texi: Update description of generic, machine-independent
7506 * config/s390/constraints.md (e): Delete.
7507 * Makefile.in (md_file): Include common.md.
7508 * config/m32c/t-m32c (md_file): Likewise.
7509 * genpreds.c (general_mem): New array.
7510 (generic_constraint_letters): Remove constraints now defined by
7512 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7513 Allow the first character to be '<' or '>' as well.
7514 * genoutput.c (general_mem): New array.
7515 (indep_constraints): Remove constraints now defined by common.md.
7516 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7517 Remove special handling of 'm'.
7518 * ira-costs.c (record_reg_classes): Remove special handling of
7519 constraints now defined by common.md.
7520 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7521 * ira-lives.c (single_reg_class): Likewise.
7522 (ira_implicitly_set_insn_hard_regs): Likewise.
7523 * lra-constraints.c (reg_class_from_constraints): Likewise.
7524 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7525 * postreload.c (reload_cse_simplify_operands): Likewise.
7526 * reload.c (push_secondary_reload, scratch_reload_class)
7527 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7528 * reload1.c (maybe_fix_stack_asms): Likewise.
7529 * targhooks.c (default_secondary_reload): Likewise.
7530 * stmt.c (parse_output_constraint): Likewise.
7531 * recog.c (preprocess_constraints): Likewise.
7532 (constrain_operands, peep2_find_free_register): Likewise.
7533 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7534 must be handled specially.
7536 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7538 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7539 * genpreds.c (have_const_dbl_constraints): Delete.
7540 (add_constraint): Don't set it.
7541 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7542 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7543 constraints using the lookup_constraint logic.
7544 * ira-lives.c (single_reg_class): Likewise.
7545 * ira.c (ira_setup_alts): Likewise.
7546 * lra-constraints.c (process_alt_operands): Likewise.
7547 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7548 * reload.c (find_reloads): Likewise.
7550 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7552 * genpreds.c (const_int_start, const_int_end): New variables.
7553 (choose_enum_order): Output CONST_INT constraints before memory
7555 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7557 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7558 * ira.c (ira_setup_alts): Likewise.
7559 * lra-constraints.c (process_alt_operands): Likewise.
7560 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7561 * reload.c (find_reloads): Likewise.
7563 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7565 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7566 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7567 * recog.c (preprocess_constraints): Update accordingly.
7569 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7571 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7572 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7573 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7574 * genpreds.c (print_type_tree): New function.
7575 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7576 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7577 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7578 Write out enum constraint_type and get_constraint_type.
7579 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7580 constraint_num rather than a constraint string.
7581 (satisfies_address_constraint_p): Likewise.
7582 (reg_class_from_constraints): Avoid old constraint macros.
7583 (process_alt_operands, process_address_1): Likewise.
7584 (curr_insn_transform): Likewise.
7585 * ira-costs.c (record_reg_classes): Likewise.
7586 (record_operand_costs): Likewise.
7587 * ira-lives.c (single_reg_class): Likewise.
7588 (ira_implicitly_set_insn_hard_regs): Likewise.
7589 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7590 * postreload.c (reload_cse_simplify_operands): Likewise.
7591 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7592 (constrain_operands, peep2_find_free_register): Likewise.
7593 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7594 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7595 * reload1.c (maybe_fix_stack_asms): Likewise.
7596 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7597 * targhooks.c (default_secondary_reload): Likewise.
7598 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7599 to EXTRA_CONSTRAINT_STR.
7600 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7602 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7604 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7605 (write_constraint_satisfied_p_array): ...this new function.
7606 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7608 (write_insn_preds_c): Update accordingly.
7610 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7612 * genpreds.c (write_lookup_constraint): Rename to...
7613 (write_lookup_constraint_1): ...this.
7614 (write_lookup_constraint_array): New function.
7615 (write_tm_preds_h): Define lookup_constraint as an inline function
7616 that uses write_lookup_constraint_array where possible.
7617 (write_insn_preds_c): Update for the changes above.
7619 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7621 * doc/md.texi (regclass_for_constraint): Rename to...
7622 (reg_class_for_constraint): ...this.
7623 * genpreds.c (num_constraints, enum_order, register_start)
7624 (register_end, satisfied_start, memory_start, memory_end)
7625 (address_start, address_end): New variables.
7626 (add_constraint): Count the number of constraints.
7627 (choose_enum_order): New function.
7628 (write_enum_constraint_num): Iterate over enum_order.
7629 (write_regclass_for_constraint): Rename to...
7630 (write_reg_class_for_constraint_1): ...this and update output
7632 (write_constraint_satisfied_p): Rename to...
7633 (write_constraint_satisfied_p_1): ...this and update output
7634 accordingly. Do nothing if all extra constraints are register
7636 (write_insn_extra_memory_constraint): Delete.
7637 (write_insn_extra_address_constraint): Delete.
7638 (write_range_function): New function.
7639 (write_tm_preds_h): Define constraint_satisfied_p and
7640 reg_class_for_constraint as inline functions that do a range check
7641 before calling the out-of-line function. Use write_range_function
7642 to implement insn_extra_{register,memory,address}_constraint,
7643 the first of which is new.
7644 (write_insn_preds_c): Update after above changes to write_* functions.
7645 (main): Call choose_enum_order.
7647 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7649 PR tree-optimization/61306
7650 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7651 expression instead of its size.
7652 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7653 false to prevent optimization when the result is unpredictable due to
7654 arithmetic right shift of signed type with highest byte is set.
7655 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7656 (init_symbolic_number): Likewise.
7657 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7658 when the result is unpredictable due to sign extension.
7660 2014-06-11 Terry Guo <terry.guo@arm.com>
7662 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7663 (*thumb1_addsi3): Ditto.
7664 (*thumb_subdi3): Ditto.
7665 (thumb1_subsi3_insn): Ditto.
7666 (*thumb_mulsi3): Ditto.
7667 (*thumb_mulsi3_v6): Ditto.
7668 (*thumb1_andsi3_insn): Ditto.
7669 (thumb1_bicsi3): Ditto.
7670 (*thumb1_iorsi3_insn): Ditto.
7671 (*thumb1_xorsi3_insn): Ditto.
7672 (*thumb1_ashlsi3): Ditto.
7673 (*thumb1_ashrsi3): Ditto.
7674 (*thumb1_lshrsi3): Ditto.
7675 (*thumb1_rotrsi3): Ditto.
7676 (*thumb1_negdi2): Ditto.
7677 (*thumb1_negsi2): Ditto.
7678 (*thumb1_abssi2): Ditto.
7679 (*thumb1_neg_abssi2): Ditto.
7680 (*thumb1_one_cmplsi2): Ditto.
7681 (*thumb1_zero_extendhisi2): Ditto.
7682 (*thumb1_zero_extendqisi2): Ditto.
7683 (*thumb1_zero_extendqisi2_v6): Ditto.
7684 (thumb1_extendhisi2): Ditto.
7685 (thumb1_extendqisi2): Ditto.
7686 (*thumb1_movdi_insn): Ditto.
7687 (*thumb1_movsi_insn): Ditto.
7688 (*thumb1_movhi_insn): Ditto.
7689 (thumb_movhi_clobber): Ditto.
7690 (*thumb1_movqi_insn): Ditto.
7691 (*thumb1_movhf): Ditto.
7692 (*thumb1_movsf_insn): Ditto.
7693 (*thumb_movdf_insn): Ditto.
7696 (cbranchqi4): Ditto.
7697 (cbranchsi4_insn): Ditto.
7698 (cbranchsi4_scratch): Ditto.
7699 (*negated_cbranchsi4): Ditto.
7700 (*tbit_cbranch): Ditto.
7701 (*tlobits_cbranch): Ditto.
7702 (*tstsi3_cbranch): Ditto.
7703 (*cbranchne_decr1): Ditto.
7704 (*addsi3_cbranch): Ditto.
7705 (*addsi3_cbranch_scratch): Ditto.
7706 (*thumb_cmpdi_zero): Ditto.
7707 (cstoresi_eq0_thumb1): Ditto.
7708 (cstoresi_ne0_thumb1): Ditto.
7709 (*cstoresi_eq0_thumb1_insn): Ditto.
7710 (*cstoresi_ne0_thumb1_insn): Ditto.
7711 (cstoresi_nltu_thumb1): Ditto.
7712 (cstoresi_ltu_thumb1): Ditto.
7713 (thumb1_addsi3_addgeu): Ditto.
7714 (*thumb_jump): Ditto.
7715 (*call_reg_thumb1_v5): Ditto.
7716 (*call_reg_thumb1): Ditto.
7717 (*call_value_reg_thumb1_v5): Ditto.
7718 (*call_value_reg_thumb1): Ditto.
7719 (*call_insn): Ditto.
7720 (*call_value_insn): Ditto.
7721 (thumb1_casesi_internal_pic): Ditto.
7722 (thumb1_casesi_dispatch): Ditto.
7723 (*thumb1_indirect_jump): Ditto.
7724 (prologue_thumb1_interwork): Ditto.
7725 (*epilogue_insns): Ditto.
7726 (consttable_1): Ditto.
7727 (consttable_2): Ditto.
7729 (*thumb1_tablejump): Ditto.
7730 (thumb_eh_return): Ditto.
7731 (define_peephole2): Two of them are thumb1 only and got moved into
7733 (define_split): Six of them are thumb1 only and got moved into new
7735 * config/arm/thumb1.md: New file comprised of above thumb1 only
7738 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7740 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7741 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7743 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7744 (aarch64_crc_builtin_datum): New struct.
7745 (aarch64_crc_builtin_data): New.
7746 (aarch64_init_crc32_builtins): New function.
7747 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7748 (aarch64_crc32_expand_builtin): New.
7749 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7750 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7751 __ARM_FEATURE_CRC32 when appropriate.
7752 (TARGET_CRC32): Define.
7753 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7754 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7755 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7756 (aarch64_<crc_variant>): New pattern.
7757 * config/aarch64/arm_acle.h: New file.
7758 * config/aarch64/iterators.md (CRC): New int iterator.
7759 (crc_variant, crc_mode): New int attributes.
7760 * doc/aarch64-acle-intrinsics.texi: New file.
7761 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7762 Include aarch64-acle-intrinsics.texi.
7764 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7766 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7767 check for stores group of length 3.
7768 (vect_permute_store_chain): New permutations for stores group of
7770 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7771 of vec_perm_shuffle for the new permutations.
7773 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7775 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7776 table rewriting temporarily on targets not supporting ONE_ONLY.
7778 2014-06-11 Richard Biener <rguenther@suse.de>
7782 2014-06-04 Richard Biener <rguenther@suse.de>
7784 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7785 TREE_PUBLIC and DECL_EXTERNAL decls.
7787 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7789 * varasm.c (set_implicit_section): New function.
7790 (resolve_unique_section): Use it to set implicit section
7792 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7793 (default_function_section): Likewise.
7794 (decl_binds_to_current_def_p): Constify argument.
7795 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7796 * asan.c (asan_protect_global): Use
7797 symtab_get_node (decl)->implicit_section.
7798 * symtab.c (dump_symtab_base): Dump implicit sections.
7799 (verify_symtab_base): Verify sanity of sectoins and comdats.
7800 (symtab_resolve_alias): Alias share the section of its target.
7801 (set_section_1): New function.
7802 (symtab_node::set_section): Move here, recurse to aliases.
7803 (verify_symtab): Check for duplicated symtab lists.
7804 * tree-core.h (implicit_section_name_p): Remove.
7805 * tree-vect-data-refs.c: Include varasm.h.
7806 (vect_can_force_dr_alignment_p): Fix conditional on when
7807 decl bints to current definition; use
7808 symtab_get_node (decl)->implicit_section.
7809 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7810 * cgraph.h (struct symtab_node): Add implicit_section.
7811 (set_section): Rename to ...
7812 (set_section_for_node): ... this one.
7813 (set_section): Declare.
7814 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7815 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7816 input_overwrite_node, input_varpool_node): Stream implicit_section.
7817 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7818 removal; it will fail in LTO.
7820 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7822 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7823 Change second alternative type to f_mcr.
7824 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7825 and 12th alternatives' types to f_mcr and f_mrc.
7826 (*movdi_aarch64): Same for 12th and 13th alternatives.
7827 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7828 (aarch64_movtilow_tilow): Change type to fmov.
7830 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7832 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7833 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7835 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7837 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7839 (aarch64_sqrdmulh_lane<mode>): Likewise.
7840 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7841 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7842 (aarch64_sqdmulh_laneq<mode>): New expander.
7843 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7844 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7845 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7846 (aarch64_sqdmulh_lane<mode>): New expander.
7847 (aarch64_sqrdmulh_lane<mode>): Likewise.
7848 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7849 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7850 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7851 (aarch64_sqdmlal_laneq<mode>): Likewise.
7852 (aarch64_sqdmlsl_lane<mode>): Likewise.
7853 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7854 (aarch64_sqdmlal2_lane<mode>): Likewise.
7855 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7856 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7857 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7858 (aarch64_sqdmull_lane<mode>): Likewise.
7859 (aarch64_sqdmull_laneq<mode>): Likewise.
7860 (aarch64_sqdmull2_lane<mode>): Likewise.
7861 (aarch64_sqdmull2_laneq<mode>): Likewise.
7863 2014-06-10 Richard Biener <rguenther@suse.de>
7865 PR tree-optimization/61438
7866 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7867 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7868 insertion of IVs if running PRE.
7869 (eliminate): Adjust.
7870 (pass_pre::execute): Likewise.
7871 (pass_fre::execute): Likewise.
7873 2014-06-10 Richard Biener <rguenther@suse.de>
7876 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7877 Do not use the main variant for the type comparison.
7878 (ncr_compar): Likewise.
7879 (nonoverlapping_component_refs_p): Likewise.
7881 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7883 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7884 REG_CFA_RESTORE mode.
7886 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7888 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7889 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7890 expand_vec_perm_pblendv.
7892 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7894 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7896 Simplify description of __crc32d and __crc32cd intrinsics.
7897 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7900 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7903 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7904 * config.in: Regenerate.
7905 * configure: Likewise.
7907 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7909 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7911 (intersect_static_var_sets): Remove.
7912 (propagate): Do not prune local statics.
7914 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7917 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7918 Set lastprivate_firstprivate even if omp_private_outer_ref
7919 langhook returns true.
7920 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7921 langhook, call unshare_expr on new_var and call
7922 build_outer_var_ref to get the last argument.
7924 2014-06-10 Marek Polacek <polacek@redhat.com>
7927 * doc/extend.texi: Add cindex for transparent_union.
7929 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7931 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7932 init_symbolic_number ().
7934 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7937 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7938 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7939 (verify_rtl_sharing): Likewise.
7941 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7944 * tree.c (build_qualified_type): Use a canonical type for
7947 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7949 * config/arm/arm-modes.def: Remove XFmode.
7951 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7954 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7955 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7956 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7957 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7958 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7959 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7960 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7961 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7962 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7964 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7966 * tree-core.h (tree_decl_with_vis): Remove section_name.
7968 2014-06-09 Kito Cheng <kito@0xlab.org>
7970 * ira.c (ira): Don't call init_caller_save if LRA enabled
7971 since LRA use its own infrastructure to handle that.
7973 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7975 * symtab.c (dump_symtab_base): Update dumping.
7976 (symtab_make_decl_local): Clear only DECL_COMDAT.
7977 * tree-vect-data-refs.c (Check that variable is static before
7978 tampering with sections.
7979 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7980 (cgraph_create_virtual_clone): Likewise.
7981 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7982 (decl_section_name, set_decl_section_name): New accessors.
7983 (find_decls_types_r): Do not walk section name
7984 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7985 (decl_comdat_group, decl_comdat_group_id): Constify.
7986 (decl_section_name, set_decl_section_name): Update.
7987 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7988 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7989 (cgraph_make_node_local_1): Clear section and comdat group.
7990 * cgraph.h (set_comdat_group): Sanity check.
7991 (get_section, set_section): New.
7992 * ipa-comdats.c (ipa_comdats): Use get_section.
7993 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7994 * lto-streamer-out.c: Do not follow section names.
7995 * c-family/c-common.c (handle_section_attribute): Update.
7996 * lto-cgraph.c (lto_output_node): Output section.
7997 (lto_output_varpool_node): Likewise.
7998 (read_comdat_group): Rename to ...
7999 (read_identifier): ... this one.
8000 (read_string_cst): New function.
8001 (input_node, input_varpool_node): Input section names.
8002 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8003 (new_emutls_decl): Update.
8004 (secname_for_decl): Check section names only of static vars.
8005 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8006 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8007 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8008 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8009 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8010 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8011 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8012 * config/v850/v850.c (v850_insert_attributes): Likewise.
8013 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8015 (h8300_handle_tiny_data_attribute): Likewise.
8016 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8017 (bfin_handle_l2_attribute): Likewise.
8019 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8021 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8022 remove static initializer.
8024 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8026 * varasm.c (use_blocks_for_decl_p): Check symbol table
8027 instead of alias attribute.
8028 (place_block_symbol): Recurse on aliases.
8030 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8032 * ipa-visibility.c: Include varasm.h
8033 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8035 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8037 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8040 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8042 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8043 from test_insn into GGC space escape via SET_SRC.
8045 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8047 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8048 call statement, if any.
8049 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8050 statements, if any. Tidy up.
8052 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8055 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8056 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8057 handles swapping the two 64-bit double words on little endian
8058 systems. Include V1TImode and optionally TImode in VSX_LE so that
8059 these types are properly swapped. Change all of the insns and
8060 splits that do the 64-bit swaps to use VSX_LE.
8061 (vsx_le_perm_load_<mode>): Likewise.
8062 (vsx_le_perm_store_<mode>): Likewise.
8063 (splitters for little endian memory operations): Likewise.
8064 (vsx_xxpermdi2_le_<mode>): Likewise.
8065 (vsx_lxvd2x2_le_<mode>): Likewise.
8066 (vsx_stxvd2x2_le_<mode>): Likewise.
8068 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8071 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8072 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8073 and corresponding splitters. Zero extend general register
8074 or memory input operand to XMM temporary. Enable for
8075 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8076 (floatunssi<mode>2): Update expander predicate.
8078 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8080 PR rtl-optimization/61325
8081 * lra-constraints.c (process_address_1): Check scale equal to one
8082 to prevent transformation: base + scale * index => base + new_reg.
8084 2014-06-06 Richard Biener <rguenther@suse.de>
8086 PR tree-optimization/59299
8087 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8089 (nearest_common_dominator_of_uses): Likewise.
8090 (statement_sink_location): Adjust. Support sinking loads.
8092 2014-06-06 Martin Jambor <mjambor@suse.cz>
8094 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8095 (build_agg_jump_func_from_list): Likewise.
8096 (determine_known_aggregate_parts): Renamed to
8097 determine_locally_known_aggregate_parts. Moved some functionality
8098 to the two functions above, removed bound checks.
8100 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8102 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8103 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8104 (aarch64_progress_pointer): Likewise.
8105 (aarch64_copy_one_part_and_move_pointers): Likewise.
8106 (aarch64_expand_movmen): Likewise.
8107 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8108 * config/aarch64/aarch64.md (movmem<mode>): New.
8110 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8112 * targhooks.c (default_add_stmt_cost): Call target specific
8113 hook instead of default one.
8115 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8117 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8118 endianness instead of host endianness.
8119 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8122 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8125 * function.c (instantiate_decls): Process the saved static chain.
8126 (expand_function_start): If not optimizing, save the static chain
8128 * tree-nested.c (convert_all_function_calls): Always create the static
8129 chain for nested functions if not optimizing.
8131 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8133 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8135 2014-06-06 Richard Biener <rguenther@suse.de>
8137 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8138 (construct_init_block): Likewise.
8139 (construct_exit_block): Likewise.
8140 (pass_expand::execute): Likewise.
8141 * graphite.c (graphite_transforms): Replace check for current_loops
8142 with a check for > 1 loops.
8143 (pass_graphite_transforms::execute): Adjust.
8144 * ipa-split.c (split_function): Remove check for current_loops.
8145 * omp-low.c (expand_parallel_call): Likewise.
8146 (expand_omp_for_init_counts): Likewise.
8147 (extract_omp_for_update_vars): Likewise.
8148 (expand_omp_for_generic): Likewise.
8149 (expand_omp_sections): Likewise.
8150 (expand_omp_target): Likewise.
8151 * tracer.c (tail_duplicate): Likewise.
8152 (pass_tracer::execute): Likewise.
8153 * trans-mem.c (expand_transaction): Likewise.
8154 * tree-complex.c (expand_complex_div_wide): Likewise.
8155 * tree-eh.c (lower_resx): Likewise.
8156 (cleanup_empty_eh_merge_phis): Likewise.
8157 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8158 current_loops with a check for > 1 loops.
8159 (pass_predcom::execute): Adjust.
8160 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8161 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8162 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8163 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8164 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8165 * tree-switch-conversion.c (process_switch): Likewise.
8166 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8167 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8168 (execute_vrp): Likewise.
8169 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8171 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8173 * rtl.h (insn_location): Declare.
8174 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8175 with UNKNOWN_LOCATION.
8176 * emit-rtl.c (insn_location): New function.
8177 * final.c (notice_source_line): Check that the instruction has a
8178 location before retrieving it and use insn_location.
8179 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8180 * print-rtl.c (print_rtx): Likewise.
8182 2014-06-06 Richard Biener <rguenther@suse.de>
8184 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8186 2014-06-06 Christian Bruel <christian.bruel@st.com>
8188 PR tree-optimization/43934
8189 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8192 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8194 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8195 return NO_REGS for extra address and memory constraints. Handle
8196 operands that match (or are equivalent to something that matches)
8197 extra constant constraints. Ignore other non-register operands.
8199 2014-06-06 Alan Modra <amodra@gmail.com>
8202 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8203 * doc/tm.texi: Regenerate.
8204 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8205 Use throughout in place of REG_PARM_STACK_SPACE.
8206 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8207 "incoming" param. Pass to rs6000_function_parms_need_stack.
8208 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8209 prototype_p when incoming. Use function decl when incoming
8210 to handle K&R style functions.
8211 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8212 (INCOMING_REG_PARM_STACK_SPACE): Define.
8214 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8217 * cfgexpand.c (expand_debug_expr): Use address space of nested
8218 TREE_TYPE for ADDR_EXPR and MEM_REF.
8220 2014-06-05 Jeff Law <law@redhat.com>
8222 PR tree-optimization/61289
8223 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8224 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8225 looking for those which match LHS. All callers changed.
8226 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8227 parameters and code which manipulated them. All callers changed.
8228 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8229 and DST_MAP parameters. Simplify invalidation code by just calling
8230 invalidate_equivalences. All callers changed.
8231 (thread_across_edge): Simplify now that we don't need to maintain
8232 the map of equivalences to invalidate.
8234 2014-06-05 Kai Tietz <ktietz@redhat.com>
8235 Richard Henderson <rth@redhat.com>
8238 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8239 checking for !TARGET_X32.
8240 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8241 (sibcall_intern): New define_insn, plus required peepholes.
8242 (sibcall_pop_intern): Likewise.
8243 (sibcall_value_intern): Likewise.
8244 (sibcall_value_pop_intern): Likewise.
8246 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8248 * tree-inline.c (tree_function_versioning): Check DF info existence
8249 before accessing it.
8251 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8253 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8255 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8256 aarch64_frame hard_fp_offset and frame_size.
8257 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8258 frame_size; remove original_frame_size.
8259 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8260 (aarch64_initial_elimination_offset): Remove frame_size and
8261 offset. Use aarch64_frame frame_size.
8263 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8264 Jiong Wang <jiong.wang@arm.com>
8265 Renlin <renlin.li@arm.com>
8267 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8268 initialization of R30 offset. Update offset. Iterate core
8269 regisers upto X30. Remove X29, X30 specific code.
8271 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8272 Jiong Wang <jiong.wang@arm.com>
8274 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8275 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8276 (aarch64_register_saved_on_entry): Adjust test.
8278 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8280 * config/aarch64/aarch64.h (machine_function): Move
8281 saved_varargs_size from here...
8282 (aarch64_frame): ... to here.
8284 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8285 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8286 (aarch64_initial_elimination_offset)
8287 (aarch64_setup_incoming_varargs): Adjust location of
8290 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8292 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8295 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8296 Prachi Godbole <Prachi.Godbole@imgtec.com>
8298 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8299 mips32r5 entry to use PROCESSOR_P5600.
8300 * config/mips/mips-tables.opt: Regenerate.
8301 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8302 * config/mips/mips.c (mips_fmadd_bypass): New function.
8303 (mips_rtx_cost_data): Add costs for p5600.
8304 (mips_issue_rate): Add support for p5600.
8305 (mips_multipass_dfa_lookahead): Likewise.
8306 * config/mips/mips.h (TUNE_P5600): New define.
8307 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8308 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8309 * config/mips/mips.md: Include p5600.md.
8310 (processor): Add p5600.
8311 * config/mips/p5600.md: New file.
8313 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8315 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8316 * config/i386/predicates.md (palignr_operand): New.
8317 Indicates if permutation is suitable for palignr instruction.
8319 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8321 PR tree-optimization/61319
8322 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8323 stmt belongs to loop.
8325 2014-06-05 Richard Biener <rguenther@suse.de>
8327 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8328 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8329 (lookup_tmp_var): Adjust.
8330 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8332 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8334 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8336 2014-06-05 Marek Polacek <polacek@redhat.com>
8339 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8341 2014-06-04 Tom de Vries <tom@codesourcery.com>
8343 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8346 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8348 PR tree-optimization/61385
8349 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8351 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8353 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8354 changed to use fatal_error.
8355 (main): Ensure lto_wrapper_cleanup is run atexit.
8357 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8359 * lra-constraints.c (valid_address_p): Move earlier in file.
8360 (address_eliminator): New structure.
8361 (satisfies_memory_constraint_p): New function.
8362 (satisfies_address_constraint_p): Likewise.
8363 (process_alt_operands, process_address, curr_insn_transform): Use them.
8365 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8367 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8369 (target_lra_int, default_target_lra_int, this_target_lra_int)
8370 (op_alt_data): Delete.
8371 * lra.h (lra_init): Delete.
8372 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8373 (init_insn_code_data_once): Remove op_alt_data handling.
8374 (finish_insn_code_data_once): Likewise.
8375 (init_op_alt_data): Delete.
8376 (get_static_insn_data): Initialize operand_alternative to null.
8377 (free_insn_recog_data): Cast operand_alternative before freeing it.
8378 (setup_operand_alternative): Take the operand_alternative as
8379 parameter and assume it isn't already cached in the static
8381 (lra_set_insn_recog_data): Update accordingly.
8383 * ira.c (ira_init): Don't call lra_init.
8384 * target-globals.h (this_target_lra_int): Declare.
8385 (target_globals): Remove lra_int.
8386 (restore_target_globals): Update accordingly.
8387 * target-globals.c: Don't include lra-int.h.
8388 (default_target_globals, save_target_globals): Remove lra_int.
8390 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8392 * recog.h (operand_alternative): Convert reg_class, reject,
8393 matched and matches into bitfields.
8394 (preprocess_constraints): New overload.
8395 (preprocess_insn_constraints): New function.
8396 (preprocess_constraints): Take the insn as parameter.
8397 (recog_op_alt): Change into a pointer.
8398 (target_recog): Add x_op_alt.
8399 * recog.c (asm_op_alt): New variable.
8400 (recog_op_alt): Change into a pointer.
8401 (preprocess_constraints): New overload, replacing the old function
8402 definition with one that doesn't use global state.
8403 (preprocess_insn_constraints): New function.
8404 (preprocess_constraints): Use them. Take the insn as parameter.
8405 Use asm_op_alt for asms.
8406 (recog_init): Free existing x_op_alt entries.
8407 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8409 (make_early_clobber_and_input_conflicts): Likewise.
8410 (process_bb_node_lives): Pass the insn to process_constraints.
8411 * reg-stack.c (check_asm_stack_operands): Likewise.
8412 (subst_asm_stack_regs): Likewise.
8413 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8414 * regrename.c (build_def_use): Likewise.
8415 * sched-deps.c (sched_analyze_insn): Likewise.
8416 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8417 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8418 (note_invalid_constants): Likewise.
8419 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8420 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8423 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8425 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8426 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8428 (make_early_clobber_and_input_conflicts): Likewise.
8429 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8431 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8433 * recog.h (alternative_class): New function.
8434 (which_op_alt): Return a const recog_op_alt.
8435 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8436 (subst_asm_stack_regs): Likewise.
8437 * config/arm/arm.c (note_invalid_constants): Likewise.
8438 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8439 the operand_alternative; use alternative class instead.
8440 * sel-sched.c (get_reg_class): Likewise.
8441 * regrename.c (build_def_use): Likewise.
8442 (hide_operands, restore_operands, record_out_operands): Update type
8445 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8447 * recog.h (recog_op_alt): Convert to a flat array.
8448 (which_op_alt): New function.
8449 * recog.c (recog_op_alt): Convert to a flat array.
8450 (preprocess_constraints): Update accordingly, grouping all
8451 operands of the same alternative together, rather than the
8453 * ira-lives.c (check_and_make_def_conflict): Likewise.
8454 (make_early_clobber_and_input_conflicts): Likewise.
8455 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8456 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8457 (subst_asm_stack_regs): Likewise.
8458 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8459 * regrename.c (hide_operands, record_out_operands): Likewise.
8460 (build_def_use): Likewise.
8461 * sel-sched.c (get_reg_class): Likewise.
8462 * config/arm/arm.c (note_invalid_constants): Likewise.
8464 2014-06-04 Jason Merrill <jason@redhat.com>
8468 * gimplify.c (gimplify_arg): Non-static.
8469 * gimplify.h: Declare it.
8471 2014-06-04 Richard Biener <rguenther@suse.de>
8473 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8474 TREE_PUBLIC and DECL_EXTERNAL decls.
8476 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8478 * regcprop.c (copyprop_hardreg_forward_1): Account for
8479 HARD_REGNO_CALL_PART_CLOBBERED.
8481 2014-06-04 Richard Biener <rguenther@suse.de>
8483 * configure.ac: Check whether the underlying type of int64_t
8484 is long or long long.
8485 * configure: Regenerate.
8486 * config.in: Likewise.
8487 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8488 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8490 2014-06-04 Richard Biener <rguenther@suse.de>
8492 PR tree-optimization/60098
8493 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8495 (dse_optimize_stmt): Simplify, now that we found a kill
8498 2014-06-04 Richard Biener <rguenther@suse.de>
8500 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8501 of accesses with non-invariant address.
8503 2014-06-04 Martin Liska <mliska@suse.cz>
8505 * cgraph.h (cgraph_make_wrapper): New function introduced.
8506 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8507 * ipa-inline.h (inline_analyze_function): The function is global.
8508 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8510 2014-06-04 Martin Liska <mliska@suse.cz>
8512 * tree.h (private_lookup_attribute_starting): New function.
8513 (lookup_attribute_starting): Likewise.
8514 * tree.c (private_lookup_attribute_starting): Likewise.
8516 2014-06-04 Martin Liska <mliska@suse.cz>
8518 * cgraph.h (expand_thunk): New argument added.
8519 (address_taken_from_non_vtable_p): New global function.
8520 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8521 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8522 * cgraphunit.c (analyze_function): Likewise.
8523 (assemble_thunks_and_aliases): Argument added to call.
8524 (expand_thunk): New argument forces to produce GIMPLE thunk.
8526 2014-06-04 Martin Liska <mliska@suse.cz>
8528 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8529 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8530 * profile.c (branch_prob): Likewise.
8532 2014-06-04 Martin Jambor <mjambor@suse.cz>
8535 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8536 handler for switch on an ipa_ref_use enum.
8537 * ipa-reference.c (analyze_function): Likewise.
8539 2014-06-04 Kai Tietz <ktietz@redhat.com>
8541 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8542 from old call-instruction.
8544 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8546 * config/aarch64/aarch64.c (aarch64_classify_address)
8547 (aarch64_legitimize_reload_address): Support full addressing modes
8549 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8550 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8552 2014-06-03 Andrew Pinski <apinski@cavium.com>
8554 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8557 2014-06-03 Andrew Pinski <apinski@cavium.com>
8559 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8560 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8562 2014-06-03 Kai Tietz <ktietz@redhat.com>
8564 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8567 2014-06-03 Dehao Chen <dehao@google.com>
8569 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8572 2014-06-03 Marek Polacek <polacek@redhat.com>
8575 * doc/invoke.texi: Document -Wswitch-bool.
8576 * function.c (stack_protect_epilogue): Cast controlling expression of
8578 * gengtype.c (walk_type): Generate switch expression with its
8579 controlling expression cast to int.
8581 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8583 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8585 * config/avr/avr-tables.opt: Regenerate.
8586 * config/avr/t-multilib: Regenerate.
8587 * doc/avr-mmcu.texi: Regenerate.
8589 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8590 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8592 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8593 (ata6617c, ata664251): Add new avr35 devices.
8594 (ata6612c): Add new avr4 device.
8595 (ata6613c, ata6614q): Add new avr5 devices.
8596 * config/avr/avr-tables.opt: Regenerate.
8597 * config/avr/t-multilib: Regenerate.
8598 * doc/avr-mmcu.texi: Regenerate.
8600 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8602 * gcc/config/aarch64/aarch64-builtins.c
8603 (aarch64_types_binop_ssu_qualifiers): New static data.
8604 (TYPES_BINOP_SSU): Define.
8605 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8606 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8607 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8608 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8609 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8610 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8611 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8612 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8613 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8614 suffix to builtin function name, remove cast.
8615 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8616 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8617 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8619 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8621 * gcc/config/aarch64/aarch64-builtins.c
8622 (aarch64_types_binop_uus_qualifiers,
8623 aarch64_types_shift_to_unsigned_qualifiers,
8624 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8625 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8626 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8627 sqshlu_n, uqshl_n): Update qualifiers.
8628 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8629 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8630 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8631 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8632 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8633 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8634 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8635 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8636 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8637 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8638 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8639 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8640 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8641 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8642 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8643 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8644 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8645 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8646 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8647 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8648 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8649 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8650 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8651 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8652 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8653 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8654 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8656 2014-06-03 Teresa Johnson <tejohnson@google.com>
8658 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8660 2014-06-02 Jason Merrill <jason@redhat.com>
8663 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8665 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8667 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8670 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8672 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8674 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8675 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8676 * config/aarch64/iterators.md (REVERSE): New iterator.
8677 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8678 (rev_op): New int_attribute.
8679 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8680 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8681 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8682 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8683 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8684 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8685 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8686 Replace temporary __asm__ with __builtin_shuffle.
8688 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8690 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8692 * config/mips/mips-tables.opt: Regenerate.
8693 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8694 to use mips_isa_rev rather than ISA_MIPS32R2.
8695 * config/mips/mips.h (ISA_MIPS32R3): New define.
8696 (ISA_MIPS32R5): New define.
8697 (ISA_MIPS64R3): New define.
8698 (ISA_MIPS64R5): New define.
8699 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8700 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8701 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8703 (MIPS_ISA_SYNCI_SPEC): Likewise.
8704 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8705 (LINK_SPEC): Added mips32r3 and mips32r5.
8706 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8707 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8708 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8709 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8710 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8711 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8712 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8714 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8716 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8718 * config/mips/mips.opt (mxpa): New option.
8719 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8722 2014-06-03 Martin Jambor <mjambor@suse.cz>
8725 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8728 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8730 PR tree-optimization/61328
8731 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8732 initialization from find_bswap_or_nop_1.
8733 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8734 in source_expr2 before using the size value the function sets. Also
8735 make use of init_symbolic_number () in both the old place and
8736 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8737 doing recursion in the GIMPLE_BINARY_RHS case.
8739 2014-06-03 Richard Biener <rguenther@suse.de>
8741 PR tree-optimization/61383
8742 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8745 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8747 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8748 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8749 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8750 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8752 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8753 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8754 * system.h: ...here and make it unconditional.
8755 * target.def (conditional_register_usage): Mention
8756 define_register_constraint instead of old-style constraint macros.
8757 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8758 * doc/tm.texi: Regenerate.
8759 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8760 protected by !USE_MD_CONSTRAINTS.
8761 * config/frv/frv.md: Remove quote from old version of documentation.
8762 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8763 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8764 CONST_DOUBLE_OK_FOR_LETTER.
8765 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8767 2014-06-02 Andrew Pinski <apinski@cavium.com>
8769 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8770 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8771 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8772 file whose name depends on -mabi= and -mbig-endian.
8773 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8774 Handle LP64 better and handle ilp32 too.
8775 (MULTILIB_OPTIONS): Delete.
8776 (MULTILIB_DIRNAMES): Delete.
8778 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8780 * expr.h: Remove prototypes of functions defined in builtins.c.
8781 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8782 Remove prototypes of functions defined in builtins.c.
8783 * builtins.h: Update prototype list to include all exported functions.
8784 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8785 no_c99_libc_has_function): Move to targhooks.c
8786 (build_string_literal, build_call_expr_loc_array,
8787 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8789 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8790 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8791 no_c99_libc_has_function): Relocate from builtins.c.
8792 * tree.c: Include builtins.h.
8793 (build_call_expr_loc_array, build_call_expr_loc_vec,
8794 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8796 * fold-const.h (fold_fma): Move prototype to builtins.h.
8797 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8798 * asan.c: Include builtins.h.
8799 * cfgexpand.c: Likewise.
8800 * convert.c: Likewise.
8801 * emit-rtl.c: Likewise.
8802 * except.c: Likewise.
8804 * fold-const.c: Likewise.
8805 * gimple-fold.c: Likewise.
8806 * gimple-ssa-strength-reduction.c: Likewise.
8807 * gimplify.c: Likewise.
8808 * ipa-inline.c: Likewise.
8809 * ipa-prop.c: Likewise.
8810 * lto-streamer-out.c: Likewise.
8812 * tree-inline.c: Likewise.
8813 * tree-object-size.c: Likewise.
8814 * tree-sra.c: Likewise.
8815 * tree-ssa-ccp.c: Likewise.
8816 * tree-ssa-forwprop.c: Likewise.
8817 * tree-ssa-loop-ivcanon.c: Likewise.
8818 * tree-ssa-loop-ivopts.c: Likewise.
8819 * tree-ssa-math-opts.c: Likewise.
8820 * tree-ssa-reassoc.c: Likewise.
8821 * tree-ssa-threadedge.c: Likewise.
8822 * tree-streamer-in.c: Likewise.
8823 * tree-vect-data-refs.c: Likewise.
8824 * tree-vect-patterns.c: Likewise.
8825 * tree-vect-stmts.c: Likewise.
8826 * config/aarch64/aarch64.c: Likewise.
8827 * config/alpha/alpha.c: Likewise.
8828 * config/arc/arc.c: Likewise.
8829 * config/arm/arm.c: Likewise.
8830 * config/avr/avr.c: Likewise.
8831 * config/bfin/bfin.c: Likewise.
8832 * config/c6x/c6x.c: Likewise.
8833 * config/cr16/cr16.c: Likewise.
8834 * config/cris/cris.c: Likewise.
8835 * config/epiphany/epiphany.c: Likewise.
8836 * config/fr30/fr30.c: Likewise.
8837 * config/frv/frv.c: Likewise.
8838 * config/h8300/h8300.c: Likewise.
8839 * config/i386/i386.c: Likewise.
8840 * config/i386/winnt.c: Likewise.
8841 * config/ia64/ia64.c: Likewise.
8842 * config/iq2000/iq2000.c: Likewise.
8843 * config/lm32/lm32.c: Likewise.
8844 * config/m32c/m32c.c: Likewise.
8845 * config/m32r/m32r.c: Likewise.
8846 * config/m68k/m68k.c: Likewise.
8847 * config/mcore/mcore.c: Likewise.
8848 * config/mep/mep.c: Likewise.
8849 * config/microblaze/microblaze.c: Likewise.
8850 * config/mips/mips.c: Likewise.
8851 * config/mmix/mmix.c: Likewise.
8852 * config/mn10300/mn10300.c: Likewise.
8853 * config/moxie/moxie.c: Likewise.
8854 * config/msp430/msp430.c: Likewise.
8855 * config/nds32/nds32.c: Likewise.
8856 * config/pa/pa.c: Likewise.
8857 * config/pdp11/pdp11.c: Likewise.
8858 * config/picochip/picochip.c: Likewise.
8859 * config/rl78/rl78.c: Likewise.
8860 * config/rs6000/rs6000.c: Likewise.
8861 * config/rx/rx.c: Likewise.
8862 * config/s390/s390.c: Likewise.
8863 * config/score/score.c: Likewise.
8864 * config/sh/sh.c: Likewise.
8865 * config/sparc/sparc.c: Likewise.
8866 * config/spu/spu.c: Likewise.
8867 * config/stormy16/stormy16.c: Likewise.
8868 * config/tilegx/tilegx.c: Likewise.
8869 * config/tilepro/tilepro.c: Likewise.
8870 * config/v850/v850.c: Likewise.
8871 * config/vax/vax.c: Likewise.
8872 * config/xtensa/xtensa.c: Likewise.
8874 2014-06-02 Jeff Law <law@redhat.com>
8876 PR rtl-optimization/61094
8877 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8878 was marked as do_no_reextend. If a copy is needed to eliminate
8879 an extension, then mark it as do_not_reextend.
8881 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8883 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8885 2014-06-02 Richard Henderson <rth@redhat.com>
8888 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8889 addresses inside asms. Use output_operand_lossage instead of
8892 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8895 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8896 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8898 2014-06-02 Tom de Vries <tom@codesourcery.com>
8900 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8901 case that x has VOIDmode.
8903 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8905 * varasm.c (copy_constant): Delete function.
8906 (build_constant_desc): Don't call it.
8908 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8911 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8912 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8913 with immediate_operand.
8915 2014-06-02 Andreas Schwab <schwab@suse.de>
8917 * config/ia64/ia64.c
8918 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8919 pending_data_specs first.
8921 2014-06-02 Richard Biener <rguenther@suse.de>
8923 PR tree-optimization/61378
8924 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8927 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8929 * config/i386/constraints.md (Bw): Rename from 'w'.
8930 (Bz): Rename from 'z'.
8931 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8933 2014-06-01 Kai Tietz <ktietz@redhat.com>
8936 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8937 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8938 instead of m constraint.
8940 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8942 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8943 a separate alternative where the scratch operand 2 is marked as
8946 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8948 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8949 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8950 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8951 and __builtins_arm_get_fpscr.
8952 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8953 __builtins_arm_get_fpscr.
8954 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8955 __builtins_arm_ldfpscr.
8956 (arm_atomic_assign_expand_fenv): New function.
8957 * config/arm/vfp.md (set_fpscr): New pattern.
8958 (get_fpscr) : Likewise.
8959 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8961 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8962 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8964 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8966 * asan.c (report_error_func): Add SLOW_P argument, use
8967 BUILT_IN_ASAN_*_N if set.
8968 (build_check_stmt): Likewise.
8969 (instrument_derefs): If T has insufficient alignment,
8970 force same handling as for odd sizes.
8972 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8973 BUILT_IN_ASAN_REPORT_STORE_N): New.
8974 * asan.c (struct asan_mem_ref): Change access_size type to
8976 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8977 update_mem_ref_hash_table): Likewise.
8978 (asan_mem_ref_hasher::hash): Hash in a HWI.
8979 (report_error_func): Change size_in_bytes argument to HWI.
8980 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8982 (build_shadow_mem_access): New function.
8983 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8984 Handle size_in_bytes not power of two or larger than 16.
8985 (instrument_derefs): Don't give up if size_in_bytes is not
8986 power of two or is larger than 16.
8988 2014-05-30 Kai Tietz <ktietz@redhat.com>
8991 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8992 for sibling-tail-calls.
8993 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8995 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8996 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8998 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9000 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9001 * config/avr/avr-tables.opt: Regenerate.
9002 * config/avr/t-multilib: Regenerate.
9003 * doc/avr-mmcu.texi: Regenerate.
9005 2014-05-30 Ian Lance Taylor <iant@google.com>
9007 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9010 2014-05-30 Tom de Vries <tom@codesourcery.com>
9012 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9015 2014-05-30 Tom de Vries <tom@codesourcery.com>
9017 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9018 * lra.c (initialize_lra_reg_info_element): Add init of
9019 actual_call_used_reg_set field.
9020 (lra): Call lra_create_live_ranges before lra_inheritance for
9022 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9024 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9025 instead of call_used_reg_set for -fuse-caller-save.
9026 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9028 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9030 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9032 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9034 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9036 * ira.c (ira_get_dup_out_num): Check for output operands at
9037 the start of the loop. Handle cases where an included alternative
9038 follows an excluded one.
9040 2014-05-29 Mike Stump <mikestump@comcast.net>
9043 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9044 post ld passes when lto is used.
9046 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9048 PR rtl-optimization/61325
9049 * lra-constraints.c (process_address): Rename to process_address_1.
9050 (process_address): New function.
9052 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9054 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9055 TYPES_BINOPV): New static data.
9056 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9058 * config/aarch64/aarch64-simd.md (aarch64_ext,
9059 aarch64_im_lane_boundsi): New patterns.
9060 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9062 (aarch64_evpc_ext): New function.
9064 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9066 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9067 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9068 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9069 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9070 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9072 2014-05-29 Tom de Vries <tom@codesourcery.com>
9074 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9076 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9077 Richard Sandiford <rdsandiford@googlemail.com>
9079 * arm/iterators.md (shiftable_ops): New code iterator.
9080 (t2_binop0, arith_shift_insn): New code attributes.
9081 * arm/predicates.md (shift_nomul_operator): New predicate.
9082 * arm/arm.md (insn_enabled): Delete.
9083 (enabled): Remove insn_enabled test.
9084 (*arith_shiftsi): Delete. Replace with ...
9085 (*<arith_shift_insn>_multsi): ... new pattern.
9086 (*<arith_shift_insn>_shiftsi): ... new pattern.
9087 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9089 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9090 Tom de Vries <tom@codesourcery.com>
9092 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9093 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9095 (mips_split_call): Use POST_CALL_TMP_REG.
9096 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9098 2014-05-29 Tom de Vries <tom@codesourcery.com>
9100 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9101 with #ifdef STACK_REGS.
9103 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9105 * varasm.c (get_variable_section): Walk aliases.
9106 (place_block_symbol): Walk aliases.
9108 2014-05-28 Tom de Vries <tom@codesourcery.com>
9111 2014-05-28 Tom de Vries <tom@codesourcery.com>
9113 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9114 * lra.c (initialize_lra_reg_info_element): Add init of
9115 actual_call_used_reg_set field.
9116 (lra): Call lra_create_live_ranges before lra_inheritance for
9118 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9120 * lra-constraints.c (need_for_call_save_p): Use
9121 actual_call_used_reg_set instead of call_used_reg_set for
9123 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9125 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9127 * doc/md.texi: Document that the % constraint character must
9128 be at the beginning of the string.
9129 * genoutput.c (validate_insn_alternatives): Check that '=',
9130 '+' and '%' only appear at the beginning of a constraint.
9131 * ira.c (commutative_constraint_p): Delete.
9132 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9133 at the start of the string.
9134 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9136 * config/arm/neon.md (bicdi3_neon): Likewise.
9137 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9138 (slt_si, sltu_si): Likewise.
9139 * config/vax/vax.md (sbcdi3): Likewise.
9140 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9141 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9142 (mul64): Move '%' to beginning of constraint.
9143 * config/arm/arm.md (*xordi3_insn): Likewise.
9144 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9147 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9149 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9151 2014-05-28 Jason Merrill <jason@redhat.com>
9154 * cgraph.h (symtab_node::get_comdat_group_id): New.
9155 * cgraphunit.c (analyze_functions): Call it.
9156 * symtab.c (dump_symtab_node): Likewise.
9157 * tree.c (decl_comdat_group_id): New.
9158 * tree.h: Declare it.
9159 * lto-streamer-out.c (write_symbol): Use it.
9160 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9162 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9164 PR bootstrap/PR61146
9165 * wide-int.cc: Do not include longlong.h when compiling with clang.
9167 2014-05-28 Richard Biener <rguenther@suse.de>
9169 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9170 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9171 (vrp_visit_assignment_or_call): Print less vertical space.
9172 (vrp_visit_stmt): Likewise.
9173 (vrp_visit_phi_node): Likewise. For a PHI argument with
9174 VR_VARYING range consider recording it as copy.
9176 2014-05-28 Richard Biener <rguenther@suse.de>
9179 2014-05-28 Richard Biener <rguenther@suse.de>
9181 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9183 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9185 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9186 sufficiently aligned and an offset is used at the same time.
9187 (expand_expr_real_1): Likewise.
9189 2014-05-28 Richard Biener <rguenther@suse.de>
9192 * fold-const.c (fold_comparison): When folding
9193 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9194 the sign of the remaining constant operand stays the same.
9196 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9198 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9199 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9200 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9202 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9203 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9204 (m32bit-doubles) Likewise.
9205 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9206 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9209 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9211 * configure.ac ($gcc_cv_ld_clearcap): New test.
9212 * configure: Regenerate.
9213 * config.in: Regenerate.
9214 * config/sol2.opt (mclear-hwcap): New option.
9215 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9216 * config/sol2-clearcap.map: Moved here from
9217 testsuite/gcc.target/i386/clearcap.map.
9218 * config/sol2-clearcapv2.map: Move here from
9219 gcc.target/i386/clearcapv2.map.
9220 * config/t-sol2 (install): Depend on install-clearcap-map.
9221 (install-clearcap-map): New target.
9222 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9225 2014-05-28 Richard Biener <rguenther@suse.de>
9227 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9228 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9229 ... here and remove the rest.
9230 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9232 2014-05-28 Richard Biener <rguenther@suse.de>
9234 PR tree-optimization/61335
9235 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9236 new range fails, drop to varying.
9238 2014-05-28 Olivier Hainque <hainque@adacore.com>
9240 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9241 (CPP_SPEC): Add entry for -mcpu=8548.
9242 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9243 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9245 2014-05-28 Tom de Vries <tom@codesourcery.com>
9247 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9248 * lra.c (initialize_lra_reg_info_element): Add init of
9249 actual_call_used_reg_set field.
9250 (lra): Call lra_create_live_ranges before lra_inheritance for
9252 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9254 * lra-constraints.c (need_for_call_save_p): Use
9255 actual_call_used_reg_set instead of call_used_reg_set for
9257 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9259 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9260 Tom de Vries <tom@codesourcery.com>
9262 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9264 (@item -fuse-caller-save): New item.
9266 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9267 Tom de Vries <tom@codesourcery.com>
9269 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9270 OPT_fuse_caller_save.
9272 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9273 Tom de Vries <tom@codesourcery.com>
9275 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9276 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9277 get_call_reg_set_usage.
9278 * resource.c (mark_set_resources, mark_target_live_regs): Use
9279 get_call_reg_set_usage.
9280 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9282 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9283 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9284 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9285 * ira-build.c (ira_create_allocno): Init
9286 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9287 (create_cap_allocno, propagate_allocno_info)
9288 (propagate_some_info_from_allocno)
9289 (copy_info_to_removed_store_destinations): Handle
9290 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9291 * ira-costs.c (ira_tune_allocno_costs): Use
9292 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9294 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9295 Tom de Vries <tom@codesourcery.com>
9297 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9298 and function_used_regs_valid fields.
9299 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9300 find_all_hard_reg_sets.
9301 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9302 (get_call_reg_set_usage): New function.
9303 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9304 * regs.h (get_call_reg_set_usage): Declare.
9306 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9309 * config/dbx.h (License): Add Runtime Library Exception.
9310 * config/newlib-stdint.h (License): Same.
9311 * config/rtems.h (License): Same
9312 * config/initfini-array.h (License): Same
9313 * config/v850/v850.h (License): Same.
9314 * config/v850/v850-opts.h (License): Same
9315 * config/v850/rtems.h (License): Same.
9317 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9320 * doc/extend.texi (Local Labels): Note that label differences are
9321 not supported for AVR.
9323 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9324 Olivier Hainque <hainque@adacore.com>
9326 * rtl.h (set_for_reg_notes): Declare.
9327 * emit-rtl.c (set_for_reg_notes): New function.
9328 (set_unique_reg_note): Use it.
9329 * optabs.c (add_equal_note): Likewise
9331 2014-05-27 Andrew Pinski <apinski@cavium.com>
9333 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9334 Use <w> for the register in assembly template.
9335 (stack_protect_test): Use the mode of operands[0] for the result.
9336 (stack_protect_test_<mode>): Use <w> for the register
9337 in assembly template.
9339 2014-05-27 DJ Delorie <dj@redhat.com>
9341 * config/rx/rx.c (add_vector_labels): New.
9342 (rx_output_function_prologue): Call it.
9343 (rx_handle_func_attribute): Don't require empty arguments.
9344 (rx_handle_vector_attribute): New.
9345 (rx_attribute_table): Add "vector" attribute.
9346 * doc/extend.texi (interrupt, vector): Document new/changed
9347 RX-specific attributes.
9349 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9351 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9353 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9354 predicate to detect a negative quotient.
9356 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9358 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9359 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9360 Add X - Y CMP 0 to X CMP Y transformation.
9361 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9363 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9365 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9368 2014-05-27 Steve Ellcey <sellcey@mips.com>
9370 * config/mips/mips.c: Add include of cgraph.h.
9372 2014-05-27 Richard Biener <rguenther@suse.de>
9374 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9376 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9379 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9380 * config/arm/arm-cores.def (License): Same.
9381 * config/arm/arm-opts.h (License): Same.
9382 * config/arm/aout.h (License): Same.
9383 * config/arm/bpabi.h (License): Same.
9384 * config/arm/elf.h (License): Same.
9385 * config/arm/linux-elf.h (License): Same.
9386 * config/arm/linux-gas.h (License): Same.
9387 * config/arm/netbsd-elf.h (License): Same.
9388 * config/arm/uclinux-eabi.h (License): Same.
9389 * config/arm/uclinux-elf.h (License): Same.
9390 * config/arm/vxworks.h (License): Same.
9392 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9394 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9395 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9396 (arm_init_neon_builtins): Handle NEON_BSWAP.
9397 Define required type nodes.
9398 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9399 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9400 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9401 * config/arm/iterators.md (VDQHSD): New mode iterator.
9403 2014-05-27 Richard Biener <rguenther@suse.de>
9405 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9406 Try using literal operands when comparing value-ranges failed.
9408 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9410 * ira.c (commutative_operand): Adjust for change to recog_data.
9411 [Missing from previous commit.]
9413 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9415 * system.h (TEST_BIT): New macro.
9416 * recog.h (alternative_mask): New type.
9417 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9418 (recog_data_d): Replace alternative_enabled_p array with
9419 enabled_alternatives.
9420 (target_recog): New structure.
9421 (default_target_recog, this_target_recog): Declare.
9422 (get_enabled_alternatives, recog_init): Likewise.
9423 * recog.c (default_target_recog, this_target_recog): New variables.
9424 (get_enabled_alternatives): New function.
9425 (extract_insn): Use it.
9426 (recog_init): New function.
9427 (preprocess_constraints, constrain_operands): Adjust for change to
9429 * postreload.c (reload_cse_simplify_operands): Likewise.
9430 * reload.c (find_reloads): Likewise.
9431 * ira-costs.c (record_reg_classes): Likewise.
9432 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9433 all alternatives after a disabled one would be skipped.
9434 (ira_implicitly_set_insn_hard_regs): Likewise.
9435 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9436 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9437 with enabled_alternatives.
9438 * lra.c (free_insn_recog_data): Update accordingly.
9439 (lra_update_insn_recog_data): Likewise.
9440 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9441 * lra-constraints.c (process_alt_operands): Likewise. Handle
9442 only_alternative as part of the enabled mask.
9443 * target-globals.h (this_target_recog): Declare.
9444 (target_globals): Add a recog field.
9445 (restore_target_globals): Restore this_target_recog.
9446 * target-globals.c: Include recog.h.
9447 (default_target_globals): Initialize recog field.
9448 (save_target_globals): Likewise.
9449 * reginfo.c (reinit_regs): Call recog_init.
9450 * toplev.c (backend_init_target): Likewise.
9452 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9454 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9455 rather than any named insn's code.
9457 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9460 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9461 * config/arm/arm-cores.def (License): Same.
9463 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9465 * tree.h (decl_comdat_group): Declare.
9466 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9467 * tree.c (decl_comdat_group): Here.
9469 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9471 PR rtl-optimization/61222
9472 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9473 the shift, truncate the PLUS operand to the result mode.
9475 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9478 * config/i386/i386.c (ix86_rtx_costs)
9479 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9482 2014-05-26 Martin Jambor <mjambor@suse.cz>
9484 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9487 2014-05-26 Richard Biener <rguenther@suse.de>
9489 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9490 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9491 Provide specializations.
9492 (wi::int_traits <HOST_WIDE_INT>,
9493 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9495 2014-05-26 Alan Modra <amodra@gmail.com>
9498 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9499 params and return a bool. Remove dead code. Update comment.
9500 Assert we have a const_int source. Remove bogus code from
9501 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9502 handling of constants > 2G and reg_equal note, from..
9503 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9504 return value. Update comment. If we can, use a new pseudo
9505 for intermediate calculations.
9506 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9508 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9509 call to rs6000_emit_set_const in splitter.
9510 (movdi_internal64+2, +3): Likewise.
9512 2014-05-26 Richard Biener <rguenther@suse.de>
9514 * system.h: Define __STDC_FORMAT_MACROS before
9515 including inttypes.h.
9516 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9517 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9518 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9519 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9520 HOST_WIDEST_INT_C): Remove.
9521 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9522 if C99 inttypes.h is not available.
9523 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9524 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9525 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9526 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9527 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9528 (struct output_info): Likewise.
9529 (print_statistics): Adjust.
9530 (dump_bitmap_statistics): Likewise.
9531 * bt-load.c (migrate_btr_defs): Print with PRId64.
9532 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9533 (MAX_SAFE_MULTIPLIER): Adjust.
9534 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9535 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9536 dump_cgraph_node): Likewise.
9537 * final.c (dump_basic_block_info): Likewise.
9538 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9539 * gcov.c (format_gcov): Likewise.
9540 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9542 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9543 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9544 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9545 Use PRId64 for dumping.
9546 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9547 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9548 (add_allocno_hard_regs): Adjust.
9549 * loop-doloop.c (doloop_modify): Print using PRId64.
9550 * loop-iv.c (inverse): Compute in uint64_t.
9551 (determine_max_iter, iv_number_of_iterations): Likewise.
9552 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9554 * lto-streamer-out.c (write_symbol): Use uint64_t.
9555 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9556 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9557 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9558 * modulo-sched.c (const_iteration_count): Use int64_t.
9559 (sms_schedule): Dump using PRId64.
9560 * predict.c (dump_prediction): Likewise.
9561 * pretty-print.h (pp_widest_integer): Remove.
9562 * profile.c (get_working_sets, is_edge_inconsistent,
9563 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9564 * tree-pretty-print.c (pp_double_int): Remove case handling
9565 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9566 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9568 (pass_optimize_bswap::execute): Remove restriction on hosts.
9569 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9570 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9571 * tree.c (widest_int_cst_value): Remove.
9572 * tree.h (widest_int_cst_value): Likewise.
9573 * value-prof.c (dump_histogram_value): Print using PRId64.
9574 * gengtype.c (main): Also inject int64_t.
9575 * ggc-page.c (struct max_alignment): Use int64_t.
9576 * alloc-pool.c (struct allocation_object_def): Likewise.
9577 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9579 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9580 * doc/tm.texi: Regenerated.
9581 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9582 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9583 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9584 mmix_output_register_setting): Use [u]int64_t in prototypes.
9585 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9586 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9587 mmix_output_octa, mmix_output_shifted_value): Adjust.
9588 (mmix_intval): Adjust. Remove unreachable case.
9589 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9591 2014-05-26 Richard Biener <rguenther@suse.de>
9593 * configure.ac: Drop __int64 type check. Insist that we
9594 found uint64_t and int64_t.
9595 * hwint.h (HOST_BITS_PER___INT64): Remove.
9596 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9597 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9598 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9599 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9600 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9601 for dst_q_src_df_rms_cdt.
9602 * configure: Regenerate.
9603 * config.in: Likewise.
9605 2014-05-26 Michael Tautschnig <mt@debian.org>
9608 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9609 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9611 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9613 PR rtl-optimization/61278
9614 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9616 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9618 PR rtl-optimization/61220
9619 Part of PR rtl-optimization/61225
9620 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9621 insn; skip split_edge for a block with only one successor.
9623 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9625 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9628 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9630 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9631 (update_vtable_references): New function.
9632 (function_and_variable_visibility): Rewrite also vtable initializers.
9633 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9635 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9637 * ggc.h (ggc_grow): New function.
9638 * ggc-none.c (ggc_grow): New function.
9639 * ggc-page.c (ggc_grow): Likewise.
9641 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9643 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9644 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9645 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9646 varpool_externally_visible_p, can_replace_by_local_alias,
9647 update_visibility_by_resolution_info, function_and_variable_visibility,
9648 pass_data_ipa_function_and_variable_visibility,
9649 make_pass_ipa_function_and_variable_visibility,
9650 whole_program_function_and_variable_visibility,
9651 pass_data_ipa_whole_program_visibility,
9652 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9653 * cgraph.h (cgraph_local_node_p): Declare.
9654 * ipa-visibility.c: New file.
9655 * Makefile.in (OBJS): Add ipa-visiblity.o
9657 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9659 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9660 that var decl is available.
9662 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9664 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9665 symtab_node pointer.
9666 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9667 (find_decls_types_r): Do not walk COMDAT_GROUP.
9668 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9669 * varasm.c (make_decl_one_only): Use set_comdat_group;
9670 create node if needed.
9671 * ipa-inline-transform.c (save_inline_function_body): Update
9672 way we decl->symtab mapping.
9673 * symtab.c (symtab_hash, hash_node, eq_node
9674 symtab_insert_node_to_hashtable): Remove.
9675 (symtab_register_node): Update.
9676 (symtab_unregister_node): Update.
9677 (symtab_get_node): Reimplement as inline function.
9678 (symtab_add_to_same_comdat_group): Update.
9679 (symtab_dissolve_same_comdat_group_list): Update.
9680 (dump_symtab_base): Update.
9681 (verify_symtab_base): Update.
9682 (symtab_make_decl_local): Update.
9683 (fixup_same_cpp_alias_visibility): Update.
9684 (symtab_nonoverwritable_alias): Update.
9685 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9686 * ipa.c (update_visibility_by_resolution_info): UPdate.
9687 * bb-reorder.c: Include cgraph.h
9688 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9690 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9691 * cgraph.c (cgraph_get_create_node): Update.
9692 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9694 (symtab_get_node): Make inline.
9695 (symtab_insert_node_to_hashtable): Remove.
9696 (symtab_can_be_discarded): Update.
9697 (decl_comdat_group): New function.
9698 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9700 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9702 (read_comdat_group): New function.
9703 (input_node, input_varpool_node): Use it.
9704 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9706 * mips.c (mips_start_unique_function): Likewise.
9707 (ix86_code_end): Likewise.
9708 (rs6000_code_end): Likweise.
9709 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9711 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9713 * gengtype-state.c (fatal_reading_state): Bring offline.
9714 * optabs.c (widening_optab_handler): Bring offline.
9715 * optabs.h (widening_optab_handler): Likewise.
9716 * final.c (get_attr_length_1): Likewise.
9718 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9720 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9722 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9724 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9725 (ppc440-compare): Include shift with dot.
9726 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9727 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9729 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9731 (e6500_sfx2): Include it.
9732 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9733 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9734 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9735 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9736 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9737 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9738 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9739 *lshiftrt_internal1le, *lshiftrt_internal1be,
9740 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9741 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9742 *rotldi3_internal10le, *rotldi3_internal10be,
9743 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9744 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9745 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9746 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9747 define_insns): Use type "shift" in the appropriate alternatives.
9749 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9751 * config/rs6000/rs6000.md (type): Add "logical". Delete
9753 (dot): Adjust comment.
9754 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9755 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9756 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9757 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9758 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9759 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9760 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9761 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9763 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9764 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9765 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9766 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9767 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9768 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9769 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9770 * config/rs6000/8540.md (ppc8540_su): Adjust.
9771 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9772 cell-cmp-microcoded): Adjust.
9773 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9774 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9775 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9776 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9777 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9778 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9779 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9780 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9781 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9783 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9784 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9785 Adjust. Adjust comment.
9786 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9787 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9789 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9791 * config/rs6000/rs6000.md (type): Add "add".
9792 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9793 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9794 define_insns): Use it.
9795 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9797 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9798 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9799 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9800 * config/rs6000/601.md (ppc601-integer): Adjust.
9801 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9802 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9803 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9804 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9805 * config/rs6000/8540.md (ppc8540_su): Adjust.
9806 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9807 cell-cmp-microcoded): Adjust.
9808 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9809 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9810 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9811 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9812 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9813 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9814 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9815 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9816 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9818 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9819 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9820 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9821 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9823 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9825 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9826 "delayed_compare", "var_delayed_compare".
9827 (var_shift): New attribute.
9828 (cell_micro): Adjust.
9829 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9830 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9831 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9832 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9833 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9834 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9835 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9836 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9837 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9838 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9839 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9840 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9841 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9842 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9843 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9844 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9845 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9846 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9847 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9848 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9849 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9850 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9851 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9852 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9853 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9855 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9856 * config/rs6000/440.md (ppc440-integer): Adjust.
9857 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9858 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9859 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9860 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9861 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9862 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9863 * config/rs6000/8540.md (ppc8540_su): Adjust.
9864 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9865 cell-cmp-microcoded): Adjust.
9866 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9867 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9868 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9869 e500mc64_delayed): Adjust.
9870 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9871 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9872 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9873 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9874 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9875 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9876 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9877 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9878 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9880 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9881 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9883 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9885 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9886 (bits): New mode_attr.
9887 (idiv_ldiv): Delete mode_attr.
9888 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9889 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9890 rs6000_adjust_priority, is_nonpipeline_insn,
9891 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9893 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9894 * config/rs6000/440.md (ppc440-idiv): Adjust.
9895 * config/rs6000/476.md (ppc476-idiv): Adjust.
9896 * config/rs6000/601.md (ppc601-idiv): Adjust.
9897 * config/rs6000/603.md (ppc603-idiv): Adjust.
9898 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9899 ppc620-ldiv): Adjust.
9900 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9901 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9902 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9903 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9904 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9905 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9906 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9907 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9908 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9909 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9910 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9911 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9912 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9913 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9914 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9915 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9916 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9917 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9919 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9921 * config/rs6000/rs6000.md (type): Delete "insert_word",
9922 "insert_dword". Add "insert".
9923 (size): Update comment.
9924 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9925 insn_must_be_first_in_group): Adjust.
9926 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9927 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9928 *insvsi_internal6, insvdi_internal): Adjust.
9930 * config/rs6000/40x.md (ppc403-integer): Adjust.
9931 * config/rs6000/440.md (ppc440-integer): Adjust.
9932 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9933 * config/rs6000/601.md (ppc601-integer): Adjust.
9934 * config/rs6000/603.md (ppc603-integer): Adjust.
9935 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9936 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9937 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9938 * config/rs6000/8540.md (ppc8540_su): Adjust.
9939 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9940 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9941 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9942 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9943 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9944 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9945 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9946 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9947 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9948 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9949 * config/rs6000/power7.md (power7-integer): Adjust.
9950 * config/rs6000/power8.md (power8-1cyc): Adjust.
9951 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9952 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9954 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9956 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9957 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9958 (size): New attribute.
9959 (dot): New attribute.
9960 (cell_micro): Adjust.
9961 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9962 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9963 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9964 umuldi3_highpart): Adjust.
9965 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9966 rs6000_adjust_priority, is_nonpipeline_insn,
9967 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9969 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9970 ppc405-imul3): Adjust.
9971 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9972 * config/rs6000/476.md (ppc476-imul): Adjust.
9973 * config/rs6000/601.md (ppc601-imul): Adjust.
9974 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9975 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9976 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9977 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9978 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9980 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9981 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9982 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9984 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9985 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9986 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9987 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9988 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9989 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9990 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9991 power4-lmul, power4-imul, power4-imul3): Adjust.
9992 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9993 power5-lmul, power5-imul, power5-imul3): Adjust.
9994 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9995 power6-lmul, power6-imul, power6-imul3): Adjust.
9996 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9997 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9999 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10000 rs64a-lmul): Adjust.
10001 * config/rs6000/titan.md (titan_imul): Adjust.
10003 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10005 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10006 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10007 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10008 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10009 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10010 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10011 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10012 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10013 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10014 * config/rs6000/titan.md: Delete nonsensical comment.
10015 (titan_imul): Add type imul3.
10016 (titan_mulhw): Remove type imul3; add type halfmul.
10018 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10020 * config/rs6000/rs6000.md (type): Reorder, reformat.
10022 2014-05-23 Martin Jambor <mjambor@suse.cz>
10024 PR tree-optimization/53787
10025 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10026 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10027 analysis_done, update all uses.
10028 * ipa-prop.c: Include domwalk.h
10029 (param_analysis_info): Removed.
10030 (param_aa_status): New type.
10031 (ipa_bb_info): Likewise.
10032 (func_body_info): Likewise.
10033 (ipa_get_bb_info): New function.
10034 (aa_overwalked): Likewise.
10035 (find_dominating_aa_status): Likewise.
10036 (parm_bb_aa_status_for_bb): Likewise.
10037 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10038 (load_from_unmodified_param): Accept func_body_info as a parameter
10039 instead of parms_ainfo.
10040 (parm_ref_data_preserved_p): Changed to use new param AA info.
10041 (parm_ref_data_pass_through_p): Likewise.
10042 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10043 (compute_complex_assign_jump_func): Changed to use new param AA info.
10044 (compute_complex_ancestor_jump_func): Likewise.
10045 (ipa_compute_jump_functions_for_edge): Likewise.
10046 (ipa_compute_jump_functions): Removed.
10047 (ipa_compute_jump_functions_for_bb): New function.
10048 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10050 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10051 and info, moved variable declarations down.
10052 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10054 (ipa_analyze_stmt_uses): Likewise.
10055 (ipa_analyze_params_uses): Removed.
10056 (ipa_analyze_params_uses_in_bb): New function.
10057 (ipa_analyze_controlled_uses): Likewise.
10058 (free_ipa_bb_info): Likewise.
10059 (analysis_dom_walker): New class.
10060 (ipa_analyze_node): Handle node-specific forbidden analysis,
10061 initialize and free func_body_info, use dominator walker.
10062 (ipcp_modif_dom_walker): New class.
10063 (ipcp_transform_function): Create and free func_body_info, use
10064 ipcp_modif_dom_walker, moved a lot of functionality there.
10066 2014-05-23 Marek Polacek <polacek@redhat.com>
10067 Jakub Jelinek <jakub@redhat.com>
10069 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10070 * gcc.c (sanitize_spec_function): Likewise.
10071 * convert.c (convert_to_integer): Include "ubsan.h". Add
10072 floating-point to integer instrumentation.
10073 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10074 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10075 SANITIZE_NONDEFAULT.
10076 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10077 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10078 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10079 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10080 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10081 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10082 float/double/long double.
10083 (ubsan_instrument_float_cast): New function.
10084 * ubsan.h (ubsan_instrument_float_cast): Declare.
10086 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10088 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10090 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10091 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10092 Adjust for tailcalling through registers.
10093 * config/aarch64/aarch64.h (enum reg_class): New caller save
10095 (REG_CLASS_NAMES): Likewise.
10096 (REG_CLASS_CONTENTS): Likewise.
10097 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10098 Allow tailcalling without decls.
10100 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10102 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10103 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10105 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10106 gsi, and variables v_* to v*.
10108 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10110 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10112 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10114 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10115 * omp-low.c: Update accordingly.
10117 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10118 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10119 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10120 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10121 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10122 GF_OMP_TARGET_KIND_UPDATE.
10124 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10125 Explicitly enumerate the expected region types.
10127 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10130 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10131 documentation; the old documentation didn't clearly state the
10132 constraints on the contents of the pointed-to storage.
10134 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10136 Fix bootstrap error on ia64
10137 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10138 Return default value.
10140 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10142 PR tree-optimization/54733
10143 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10145 (find_bswap_or_nop_load): New.
10146 (find_bswap_1): Renamed to ...
10147 (find_bswap_or_nop_1): This. Also add support for memory source.
10148 (find_bswap): Renamed to ...
10149 (find_bswap_or_nop): This. Also add support for memory source and
10150 detection of bitwise operations equivalent to load in target
10152 (execute_optimize_bswap): Likewise. Also move its leading comment back
10153 in place and split statement transformation into ...
10154 (bswap_replace): This.
10156 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10158 PR rtl-optimization/61215
10159 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10160 simplify_gen_subreg until final substitution.
10162 2014-05-23 Alan Modra <amodra@gmail.com>
10165 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10166 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10167 Use "Y" constraint rather than "m".
10169 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10171 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10173 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10174 New function declaration.
10175 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10176 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10177 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10178 (aarch64_init_builtins) : Initialize builtins
10179 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10180 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10181 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10182 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10183 and __builtins_aarch64_set_fpsr.
10184 (aarch64_atomic_assign_expand_fenv): New function.
10185 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10186 (get_fpcr) : Likewise.
10187 (set_fpsr) : Likewise.
10188 (get_fpsr) : Likewise.
10189 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10190 and UNSPECV_SET_FPSR.
10191 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10192 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10193 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10195 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10197 PR rtl-optimization/60969
10198 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10199 constraints. Set up mem cost for NO_REGS case.
10201 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10203 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10205 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10207 * config/darwin.c: Include "lto-section-names.h".
10208 (LTO_SEGMENT_NAME): Don't define.
10209 * config/i386/winnt.c: Include "lto-section-names.h".
10210 * lto-streamer.c: Include "lto-section-names.h".
10211 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10212 * lto-wrapper.c: Include "lto-section-names.h".
10213 (LTO_SECTION_NAME_PREFIX): Don't define.
10214 * lto-section-names.h: New file.
10215 * cgraphunit.c: Include "lto-section-names.h".
10217 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10219 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10221 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10224 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10226 2014-05-22 Nick Clifton <nickc@redhat.com>
10228 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10230 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10232 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10233 -> (T)A transformation to integer types.
10235 2014-05-22 Teresa Johnson <tejohnson@google.com>
10237 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10238 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10239 (gcov_rewrite): Use gcov_nonruntime_assert.
10240 (gcov_open): Ditto.
10241 (gcov_write_words): Ditto.
10242 (gcov_write_length): Ditto.
10243 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10244 gcc_assert from IN_LIBGCOV code.
10245 (gcov_read_summary): Use gcov_error to flag profile corruption.
10246 (gcov_sync): Use gcov_nonruntime_assert.
10247 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10248 (gcov_histo_index): Use gcov_nonruntime_assert.
10249 (static void gcov_histogram_merge): Ditto.
10250 (compute_working_sets): Ditto.
10251 * gcov-io.h (gcov_nonruntime_assert): Define.
10252 (gcov_error): Define for !IN_LIBGCOV
10254 2014-05-22 Richard Biener <rguenther@suse.de>
10256 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10257 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10258 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10259 and deallocation site.
10260 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10261 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10262 passing through the incoming points-to set.
10263 (handle_lhs_call): Use flags argument instead of recomputing it.
10264 (find_func_aliases_for_call): Call handle_lhs_call with proper
10267 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10269 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10270 all padding bits in REAL_VALUE_TYPE are cleared.
10272 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10274 Cleanup and improve multipass_dfa_lookahead_guard
10275 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10276 (core2i7_first_cycle_multipass_begin,)
10277 (core2i7_first_cycle_multipass_issue,)
10278 (core2i7_first_cycle_multipass_backtrack): Update signature.
10279 * config/ia64/ia64.c
10280 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10281 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10282 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10284 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10285 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10287 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10289 * doc/tm.texi: Regenerate.
10291 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10292 * haifa-sched.c (ready_try): Make signed to allow negative values.
10293 (rebug_ready_list_1): Update.
10294 (choose_ready): Simplify.
10295 (sched_extend_ready_list): Update.
10297 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10299 Remove IA64 speculation tweaking flags
10300 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10301 speculation tuning flags.
10302 (msched-prefer-non-data-spec-insns,)
10303 (msched-prefer-non-control-spec-insns): Obsolete options.
10304 * haifa-sched.c (choose_ready): Remove handling of
10305 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10306 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10307 and PREFER_NON_DATA_SPEC.
10308 * sel-sched.c (process_spec_exprs): Remove handling of
10309 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10311 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10313 Improve scheduling debug output
10314 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10315 (advance_one_cycle): Update.
10316 (schedule_insn, queue_to_ready): Add debug printouts.
10317 (debug_ready_list_1): New static function.
10318 (debug_ready_list): Update.
10319 (max_issue): Add debug printouts.
10320 (dump_insn_stream): New static function.
10321 (schedule_block): Use it. Also better indent printouts.
10323 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10325 Fix sched_insn debug counter
10326 * haifa-sched.c (schedule_insn): Update.
10327 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10328 (save_backtrack_point, restore_backtrack_point): Update.
10329 (first_nonscheduled_insn): New static function.
10330 (queue_to_ready, choose_ready): Use it.
10331 (schedule_block): Init nonscheduled_insns_begin.
10332 (sched_emit_insn): Update.
10335 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10337 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10339 (aarch64_secondary_reload) : LikeWise.
10340 (aarch64_class_max_nregs) : Remove CORE_REGS.
10341 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10342 (REG_CLASS_NAMES) : Likewise.
10343 (REG_CLASS_CONTENTS) : LikeWise.
10344 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10346 2014-05-21 Guozhi Wei <carrot@google.com>
10349 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10351 (vqdmulhq_n_s16): Likewise.
10353 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10355 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10357 2014-05-21 Marek Polacek <polacek@redhat.com>
10360 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10362 2014-05-21 Martin Jambor <mjambor@suse.cz>
10364 * doc/invoke.texi (Optimize Options): Document parameters
10365 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10366 ipa-cp-array-index-hint-bonus.
10368 2014-05-21 Mark Wielaard <mjw@redhat.com>
10371 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10372 version >= 3 or not strict DWARF.
10373 * langhooks.h (struct lang_hooks_for_types): Add
10374 enum_underlying_base_type.
10375 * langhooks.c (lhd_enum_underlying_base_type): New function.
10376 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10377 enum_underlying_base_type.
10378 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10379 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10380 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10382 2014-05-21 Richard Biener <rguenther@suse.de>
10384 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10386 2014-05-21 John Marino <gnugcc@marino.st>
10388 * config.gcc (*-*-dragonfly*): New target.
10389 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10390 * configure: Regenerate.
10391 * config/dragonfly-stdint.h: New.
10392 * config/dragonfly.h: New.
10393 * config/dragonfly.opt: New.
10394 * config/i386/dragonfly.h: New.
10395 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10397 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10399 * tree.def (VOID_CST): New.
10400 * tree-core.h (TI_VOID): New.
10401 * tree.h (void_node): New.
10402 * tree.c (tree_node_structure_for_code, tree_code_size)
10403 (iterative_hash_expr): Handle VOID_CST.
10404 (build_common_tree_nodes): Initialize void_node.
10406 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10408 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10410 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10412 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10415 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10416 flag_reorder_blocks_and_partition.
10417 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10419 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10422 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10424 (*addc_r_t): Add new insn_and_split.
10426 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10428 PR middle-end/61252
10429 * omp-low.c (handle_simd_reference): New function.
10430 (lower_rec_input_clauses): Use it. Defer adding reference
10431 initialization even for reduction without placeholder if in simd,
10432 handle it properly later on.
10434 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10436 PR tree-optimization/60899
10437 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10438 assume all static symbols will have definition wile parsing and
10439 check the do have definition later in compilation; check that
10440 variable referring symbol will be output before concluding that
10441 reference is safe; be conservative for referring local statics;
10442 be more precise about when comdat is output in other partition.
10444 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10447 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10449 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10450 (ipa_inline): Loop inline_to_all_callers until no more aliases
10453 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10455 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10456 set writeonly flag only for vars actually written to.
10458 2014-05-20 Dehao Chen <dehao@google.com>
10460 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10461 and callee count to get clone count.
10462 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10463 count in copy_body.
10465 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10467 PR rtl-optimization/61243
10468 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10470 2014-05-20 Xinliang David Li <davidxl@google.com>
10472 * cgraphunit.c (walk_polymorphic_call_targets): Add
10473 dbgcnt and fopt-info support.
10474 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10475 * ipa-devirt.c (ipa_devirt): Ditto.
10476 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10477 * ipa.c (walk_polymorphic_call_targets): Ditto.
10478 * gimple-fold.c (fold_gimple_assign): Ditto.
10479 (gimple_fold_call): Ditto.
10480 * dbgcnt.def: New counter.
10482 2014-05-20 DJ Delorie <dj@redhat.com>
10484 * config/msp430/msp430.md (split): Don't allow subregs when
10485 splitting SImode adds.
10486 (andneghi): Fix subtraction logic.
10487 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10489 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10491 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10493 * except.c (switch_to_exception_section, resolve_unique_section,
10494 get_named_text_section, default_function_rodata_section,
10495 align_variable, get_block_for_decl, default_section_type_flags):
10496 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10497 * symtab.c (symtab_add_to_same_comdat_group,
10498 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10499 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10501 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10502 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10503 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10504 (c6x_function_in_section_p): Likewise.
10505 * config/darwin.c (machopic_select_section): Likewise.
10506 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10507 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10508 * config/mep/mep.c (mep_select_section): LIkewise.
10509 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10511 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10513 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10514 EH region of calls to pure functions that can throw an exception.
10515 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10516 (copy_reference_ops_from_call): Also copy the EH region of the call if
10517 it can throw an exception.
10519 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10521 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10522 nested VEC_SELECTs that are inverses of each other.
10524 2014-05-20 Richard Biener <rguenther@suse.de>
10526 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10527 (extract_and_process_scc_for_name): not here.
10528 (cond_dom_walker::before_dom_children): Only process
10529 stmts that end the BB in interesting ways.
10530 (run_scc_vn): Mark param uses as visited.
10532 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10534 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10537 2014-05-20 Nick Clifton <nickc@redhat.com>
10539 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10540 (msp430_gimplify_va_arg_expr): New function.
10541 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10543 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10544 operand 0 in order to prevent confusion about the number of
10545 registers involved.
10547 2014-05-20 Richard Biener <rguenther@suse.de>
10549 PR tree-optimization/61221
10550 * tree-ssa-pre.c (el_to_update): Remove.
10551 (eliminate_dom_walker::before_dom_children): Handle released
10552 VDEFs by value-numbering them to the associated VUSE. Update
10553 stmt immediately for substituted call address.
10554 (eliminate): Remove delayed stmt updating code.
10555 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10556 possibly late re-numbered vuses.
10557 (vn_reference_lookup_2): Adjust.
10558 (vn_reference_lookup_pieces): Likewise.
10559 (vn_reference_lookup): Likewise.
10561 2014-05-20 Richard Biener <rguenther@suse.de>
10563 * config.gcc: Remove need_64bit_hwint.
10564 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10565 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10567 * config.in: Regenerate.
10568 * configure: Likewise.
10570 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10572 * doc/extend.texi: Create Label Attributes section,
10573 move all label attributes into it and reference it.
10575 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10577 * arm.c (thumb1_reorg): When scanning backwards skip anything
10578 that's not a proper insn.
10580 2014-05-19 Richard Biener <rguenther@suse.de>
10582 PR tree-optimization/61221
10583 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10584 Do nothing for unreachable blocks.
10585 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10586 Improve unreachability detection.
10588 2014-05-19 Richard Biener <rguenther@suse.de>
10590 PR tree-optimization/61209
10591 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10593 2014-05-19 Nick Clifton <nickc@redhat.com>
10595 * except.c (init_eh): Fix computation of builtin setjmp buffer
10596 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10598 2014-05-19 Richard Biener <rguenther@suse.de>
10600 PR tree-optimization/61184
10601 * tree-vrp.c (is_negative_overflow_infinity): Use
10602 TREE_OVERFLOW_P and do that check first.
10603 (is_positive_overflow_infinity): Likewise.
10604 (is_overflow_infinity): Likewise.
10605 (vrp_operand_equal_p): Properly treat operands with
10606 differing overflow as not equal.
10608 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10610 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10611 shift simplification where it was intended.
10613 2014-05-19 Christian Bruel <christian.bruel@st.com>
10616 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10618 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10621 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10624 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10626 * reg-notes.def (CROSSING_JUMP): Likewise.
10627 * rtl.h (rtx_def): Update comment for jump flag.
10628 (CROSSING_JUMP_P): Define.
10629 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10630 of a REG_CROSSING_JUMP note.
10631 * cfghooks.c (tidy_fallthru_edges): Likewise.
10632 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10633 * emit-rtl.c (try_split): Likewise.
10634 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10635 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10636 * jump.c (redirect_jump_2): Likewise.
10637 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10638 (relax_delay_slots): Likewise.
10639 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10640 (bbit_di): Likewise.
10641 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10642 * config/sh/sh.md (jump_compact): Likewise.
10643 * bb-reorder.c (rotate_loop): Likewise.
10644 (pass_duplicate_computed_gotos::execute): Likewise.
10645 (add_reg_crossing_jump_notes): Rename to...
10646 (update_crossing_jump_flags): ...this.
10647 (pass_partition_blocks::execute): Update accordingly.
10649 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10651 * tree.h: Remove extraneous template <>.
10653 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10655 * ipa.c (symtab_remove_unreachable_nodes): Remove
10656 symbol from comdat group if its body was eliminated.
10657 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10658 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10659 (symtab_unregister_node): ... this one.
10660 (verify_symtab_base): More strict checking of comdats.
10661 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10663 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10665 * tree-pass.h (make_pass_ipa_comdats): New pass.
10666 * timevar.def (TV_IPA_COMDATS): New timevar.
10667 * passes.def (pass_ipa_comdats): Add.
10668 * Makefile.in (OBJS): Add ipa-comdats.o
10669 * ipa-comdats.c: New file.
10671 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10673 * ipa.c (update_visibility_by_resolution_info): New function.
10674 (function_and_variable_visibility): Use it.
10676 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10678 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10680 (FOR_EACH_DEFINED_SYMBOL): New macro.
10681 (varpool_first_static_initializer, varpool_next_static_initializer,
10682 varpool_first_defined_variable, varpool_next_defined_variable):
10684 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10686 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10688 * ggc-page.c (ggc_handle_finalizers): Add comment.
10690 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10692 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10693 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10694 (ggc_internal_cleared_alloc): Likewise.
10695 * ggc-page.c (finalizer): New class.
10696 (vec_finalizer): Likewise.
10697 (globals::finalizers): New member.
10698 (globals::vec_finalizers): Likewise.
10699 (ggc_internal_alloc): Record the finalizer if any for the block being
10701 (ggc_handle_finalizers): New function.
10702 (ggc_collect): Call ggc_handle_finalizers.
10703 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10705 (ggc_internal_cleared_alloc): Likewise.
10706 (finalize): New function.
10707 (need_finalization_p): Likewise.
10708 (ggc_alloc): Install the type's destructor as the finalizer if it
10709 might do something.
10710 (ggc_cleared_alloc): Likewise.
10711 (ggc_vec_alloc): Likewise.
10712 (ggc_cleared_vec_alloc): Likewise.
10714 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10716 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10718 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10720 * alias.c (record_alias_subset): Adjust.
10721 * bitmap.c (bitmap_element_allocate): Likewise.
10722 (bitmap_gc_alloc_stat): Likewise.
10723 * cfg.c (init_flow): Likewise.
10724 (alloc_block): Likewise.
10725 (unchecked_make_edge): Likewise.
10726 * cfgloop.c (alloc_loop): Likewise.
10727 (flow_loops_find): Likewise.
10728 (rescan_loop_exit): Likewise.
10729 * cfgrtl.c (init_rtl_bb_info): Likewise.
10730 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10731 (cgraph_allocate_node): Likewise.
10732 (cgraph_create_edge_1): Likewise.
10733 (cgraph_allocate_init_indirect_info): Likewise.
10734 * cgraphclones.c (cgraph_clone_edge): Likewise.
10735 * cgraphunit.c (add_asm_node): Likewise.
10736 (init_lowered_empty_function): Likewise.
10737 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10738 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10739 (alpha_use_linkage): Likewise.
10740 * config/arc/arc.c (arc_init_machine_status): Likewise.
10741 * config/arm/arm.c (arm_init_machine_status): Likewise.
10742 * config/avr/avr.c (avr_init_machine_status): Likewise.
10743 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10744 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10745 * config/cris/cris.c (cris_init_machine_status): Likewise.
10746 * config/darwin.c (machopic_indirection_name): Likewise.
10747 (darwin_build_constant_cfstring): Likewise.
10748 (darwin_enter_string_into_cfstring_table): Likewise.
10749 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10750 * config/frv/frv.c (frv_init_machine_status): Likewise.
10751 * config/i386/i386.c (get_dllimport_decl): Likewise.
10752 (ix86_init_machine_status): Likewise.
10753 (assign_386_stack_local): Likewise.
10754 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10755 (i386_pe_maybe_record_exported_symbol): Likewise.
10756 (i386_pe_record_stub): Likewise.
10757 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10758 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10759 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10760 (m32c_note_pragma_address): Likewise.
10761 * config/mep/mep.c (mep_init_machine_status): Likewise.
10762 (mep_note_pragma_flag): Likewise.
10763 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10764 (mips16_local_alias): Likewise.
10765 (mips_init_machine_status): Likewise.
10766 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10767 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10768 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10769 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10770 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10771 * config/pa/pa.c (pa_init_machine_status): Likewise.
10772 (pa_get_deferred_plabel): Likewise.
10773 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10774 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10775 (rs6000_init_machine_status): Likewise.
10776 (output_toc): Likewise.
10777 * config/s390/s390.c (s390_init_machine_status): Likewise.
10778 * config/score/score.c (score_output_external): Likewise.
10779 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10780 * config/spu/spu.c (spu_init_machine_status): Likewise.
10781 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10782 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10783 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10784 * coverage.c (coverage_end_function): Likewise.
10785 * dbxout.c (dbxout_init): Likewise.
10786 * doc/gty.texi: Don't mention variable_size attribute.
10787 * dwarf2cfi.c (new_cfi): Adjust.
10788 (new_cfi_row): Likewise.
10789 (copy_cfi_row): Likewise.
10790 (create_cie_data): Likewise.
10791 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10792 (new_loc_descr): Likewise.
10793 (find_AT_string_in_table): Likewise.
10794 (add_addr_table_entry): Likewise.
10795 (new_die): Likewise.
10796 (add_var_loc_to_decl): Likewise.
10797 (clone_die): Likewise.
10798 (clone_as_declaration): Likewise.
10799 (break_out_comdat_types): Likewise.
10800 (new_loc_list): Likewise.
10801 (add_loc_descr_to_each): Likewise.
10802 (add_location_or_const_value_attribute): Likewise.
10803 (add_linkage_name): Likewise.
10804 (lookup_filename): Likewise.
10805 (dwarf2out_var_location): Likewise.
10806 (new_line_info_table): Likewise.
10807 (dwarf2out_init): Likewise.
10808 (mem_loc_descriptor): Likewise.
10809 (loc_descriptor): Likewise.
10810 (add_const_value_attribute): Likewise.
10811 (tree_add_const_value_attribute): Likewise.
10812 (comp_dir_string): Likewise.
10813 (dwarf2out_vms_debug_main_pointer): Likewise.
10814 (string_cst_pool_decl): Likewise.
10815 * emit-rtl.c (set_mem_attrs): Likewise.
10816 (get_reg_attrs): Likewise.
10817 (start_sequence): Likewise.
10818 (init_emit): Likewise.
10819 (init_emit_regs): Likewise.
10820 * except.c (init_eh_for_function): Likewise.
10821 (gen_eh_region): Likewise.
10822 (gen_eh_region_catch): Likewise.
10823 (gen_eh_landing_pad): Likewise.
10824 (add_call_site): Likewise.
10825 * function.c (add_frame_space): Likewise.
10826 (insert_temp_slot_address): Likewise.
10827 (assign_stack_temp_for_type): Likewise.
10828 (get_hard_reg_initial_val): Likewise.
10829 (allocate_struct_function): Likewise.
10830 (prepare_function_start): Likewise.
10831 (types_used_by_var_decl_insert): Likewise.
10832 * gengtype.c (variable_size_p): Remove function.
10833 (enum alloc_quantity): Remove enum.
10834 (write_typed_alloc_def): Remove function.
10835 (write_typed_struct_alloc_def): Likewise.
10836 (write_typed_typedef_alloc_def): Likewise.
10837 (write_typed_alloc_defns): Likewise.
10839 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10840 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10841 * ggc.h (ggc_alloc): new function.
10842 (ggc_cleared_alloc): Likewise.
10843 (ggc_vec_alloc): Template on type of vector element, and remove
10844 element size argument.
10845 (ggc_cleared_vec_alloc): Likewise.
10846 * gimple.c (gimple_build_omp_for): Adjust.
10847 (gimple_copy): Likewise.
10848 * ipa-cp.c (get_replacement_map): Likewise.
10849 (find_aggregate_values_for_callers_subset): Likewise.
10850 (known_aggs_to_agg_replacement_list): Likewise.
10851 * ipa-devirt.c (get_odr_type): Likewise.
10852 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10853 (read_agg_replacement_chain): Likewise.
10854 * loop-iv.c (get_simple_loop_desc): Likewise.
10855 * lto-cgraph.c (input_node_opt_summary): Likewise.
10856 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10857 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10858 (input_eh_region): Likewise.
10859 (input_eh_lp): Likewise.
10860 (input_cfg): Likewise.
10861 * optabs.c (set_optab_libfunc): Likewise.
10862 (init_tree_optimization_optabs): Likewise.
10863 (set_conv_libfunc): Likewise.
10864 * passes.c (do_per_function_toporder): Likewise.
10865 * rtl.h: Don't use variable_size gty attribute.
10866 * sese.c (if_region_set_false_region): Adjust.
10867 * stringpool.c (gt_pch_save_stringpool): Likewise.
10868 * target-globals.c (save_target_globals): Likewise.
10869 * toplev.c (general_init): Likewise.
10870 * trans-mem.c (record_tm_replacement): Likewise.
10871 (split_bb_make_tm_edge): Likewise.
10872 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10873 * tree-data-ref.h (lambda_vector_new): Likewise.
10874 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10875 * tree-iterator.c (tsi_link_before): Likewise.
10876 (tsi_link_after): Likewise.
10877 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10878 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10879 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10880 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10881 * tree-ssa.c (init_tree_ssa): Adjust.
10882 * tree-ssanames.c (set_range_info): Likewise.
10883 (get_ptr_info): Likewise.
10884 (duplicate_ssa_name_ptr_info): Likewise.
10885 (duplicate_ssa_name_range_info): Likewise.
10886 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10887 (unpack_ts_fixed_cst_value_fields): Likewise.
10888 * tree.c (build_fixed): Likewise.
10889 (build_real): Likewise.
10890 (build_string): Likewise.
10891 (decl_priority_info): Likewise.
10892 (decl_debug_expr_insert): Likewise.
10893 (decl_value_expr_insert): Likewise.
10894 (decl_debug_args_insert): Likewise.
10895 (type_hash_add): Likewise.
10896 (build_omp_clause): Likewise.
10897 * ubsan.c (decl_for_type_insert): Likewise.
10898 * varasm.c (get_unnamed_section): Likewise.
10899 (get_noswitch_section): Likewise.
10900 (get_section): Likewise.
10901 (get_block_for_section): Likewise.
10902 (create_block_symbol): Likewise.
10903 (build_constant_desc): Likewise.
10904 (create_constant_pool): Likewise.
10905 (force_const_mem): Likewise.
10906 (record_tm_clone_pair): Likewise.
10907 * varpool.c (varpool_create_empty_node): Likewise.
10909 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10911 * dwarf2out.c (tree_add_const_value_attribute): Call
10912 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10913 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10914 instead of ggc_internal_<x>alloc_stat.
10915 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10916 (ggc_realloc): Likewise.
10917 * ggc-none.c (ggc_internal_alloc): Likewise.
10918 (ggc_internal_cleared_alloc): Likewise.
10919 * ggc-page.c: Likewise.
10920 * ggc.h (ggc_internal_alloc_stat): Likewise.
10921 (ggc_internal_alloc): Remove macro.
10922 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10923 (ggc_internal_cleared_alloc): Remove macro.
10924 (GGC_RESIZEVEC): Adjust.
10925 (ggc_resizevar): Remove macro.
10926 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10927 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10928 (ggc_internal_vec_cleared_alloc): Remove macro.
10929 (ggc_alloc_atomic_stat): Drop _stat suffix.
10930 (ggc_alloc_atomic): Remove macro.
10931 (ggc_alloc_cleared_atomic): Remove macro.
10932 (ggc_alloc_string_stat): Drop _stat suffix.
10933 (ggc_alloc_string): Remove macro.
10934 (ggc_alloc_rtx_def_stat): Adjust.
10935 (ggc_alloc_tree_node_stat): Likewise.
10936 (ggc_alloc_cleared_tree_node_stat): Likewise.
10937 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10938 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10939 * gimple.c (gimple_build_omp_for): Likewise.
10940 (gimple_copy): Likewise.
10941 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10942 * toplev.c (realloc_for_line_map): Adjust.
10943 * tree-data-ref.h (lambda_vector_new): Likewise.
10944 * tree-phinodes.c (allocate_phi_node): Likewise.
10945 * tree.c (grow_tree_vec_stat): Likewise.
10946 * vec.h (va_gc::reserve): Adjust.
10948 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10950 * config/microblaze/microblaze.c (break_handler): New Declaration.
10951 (microblaze_break_function_p,microblaze_is_break_handler): New.
10952 (compute_frame_size): Use microblaze_break_function_p.
10953 Add the test of break_handler.
10954 (microblaze_function_prologue) : Add the test of variable
10955 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10956 (microblaze_function_epilogue) : Add the test of break_handler.
10957 (microblaze_globalize_label) : Add the test of break_handler.
10958 Check the name by BREAK_HANDLER_NAME.
10960 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10962 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10963 microblaze_is_break_handler test.
10964 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10965 Use SYMBOL_REF_DECL.
10967 * config/microblaze/microblaze-protos.h
10968 (microblaze_break_function_p,microblaze_is_break_handler):
10971 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10972 new MicroBlaze break_handler functions.
10974 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10976 * doc/extend.texi (Size of an asm): Move node text according
10977 to its @menu entry position.
10979 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10981 PR tree-optimization/61140
10982 PR tree-optimization/61150
10983 PR tree-optimization/61197
10984 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10986 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10988 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10990 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10992 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10993 __SIZEOF_INT128__ is defined.
10995 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10997 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10998 (rs6000_delegitimize_address): Use it.
11000 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11002 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11003 inplace argument. Store the new address in the original MEM when true.
11004 * emit-rtl.c (change_address_1): Likewise.
11005 (adjust_address_1, adjust_automodify_address_1, offset_address):
11006 Update accordingly.
11007 * rtl.h (plus_constant): Add an inplace argument.
11008 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11009 when true. Avoid generating (plus X (const_int 0)).
11010 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11011 in-place. Pass true to plus_constant.
11012 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11014 2014-05-16 Dehao Chen <dehao@google.com>
11016 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11018 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11021 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11023 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11025 2014-05-16 Dehao Chen <dehao@google.com>
11027 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11028 optimize_function_for_size_p.
11029 * regs.h (REG_FREQ_FROM_BB): Likewise.
11031 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11034 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11035 negt_reg_operand cases.
11036 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11038 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11040 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11042 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11045 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11048 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11050 * tree-cfg.c (dump_function_to_file): Dump the return type of
11051 functions, in a line to itself before the function body, mimicking
11052 the layout of a C function.
11054 2014-05-16 Dehao Chen <dehao@google.com>
11056 * cfghooks.c (make_forwarder_block): Use direct computation to
11057 get fall-through edge's count and frequency.
11059 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11061 * config/arc/arc.c (arc_init): Fix typo in error message.
11062 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11063 (split_stack_prologue_scratch_regno): Likewise.
11064 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11065 word from error message.
11067 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11069 * ira-costs.c: Fix typo in comment.
11071 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11073 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11075 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11077 * varpool.c (dump_varpool_node): Dump write-only flag.
11078 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11080 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11081 write-only variables.
11082 * ipa.c (process_references): New function.
11083 (set_readonly_bit): New function.
11084 (set_writeonly_bit): New function.
11085 (clear_addressable_bit): New function.
11086 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11087 fix handling of aliases.
11088 * cgraph.h (struct varpool_node): Add writeonly flag.
11090 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11092 PR rtl-optimization/60969
11093 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11094 Calculate costs for this case.
11096 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11098 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11099 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11101 2014-05-16 Richard Biener <rguenther@suse.de>
11103 PR tree-optimization/61194
11104 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11105 bool patterns ending in a COND_EXPR.
11107 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11109 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11113 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11114 where we were unable to cost an RTX.
11116 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11118 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11122 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11124 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11126 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11127 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11129 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11130 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11132 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11133 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11135 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11138 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11139 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11141 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11144 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11145 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11147 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11148 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11150 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11151 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11153 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11154 rotates and shifts.
11156 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11157 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11159 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11160 ZERO_EXTEND and SIGN_EXTEND better.
11162 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11163 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11165 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11166 logical operations.
11168 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11169 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11171 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11172 costs when costing loads and stores to memory.
11174 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11175 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11177 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11180 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11182 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11184 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11185 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11187 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11189 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11191 (aarch64_rtx_mult_cost): New.
11192 (aarch64_rtx_costs): Use it, refactor as appropriate.
11194 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11195 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11197 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11198 emit instructions, return number of instructions which would
11200 (aarch64_add_constant): Update call to aarch64_build_constant.
11201 (aarch64_output_mi_thunk): Likewise.
11202 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11205 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11207 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11208 (TARGET_RTX_COSTS): Call it.
11210 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11212 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11213 (cortexa57_vector_cost): Likewise.
11214 (cortexa57_tunings): Use them.
11216 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11218 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11219 (cpu_addrcost_table): Use it.
11220 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11221 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11224 2014-05-16 Richard Biener <rguenther@suse.de>
11226 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11227 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11228 (visit_phi): Ignore edges marked as not executable.
11229 (class cond_dom_walker): New.
11230 (cond_dom_walker::before_dom_children): Value-number
11231 control statements and mark successor edges as not
11232 executable if possible.
11233 (run_scc_vn): First walk all control statements in
11234 dominator order, marking edges as not executable.
11235 * tree-inline.c (copy_edges_for_bb): Be not confused
11236 about random edge flags.
11238 2014-05-16 Richard Biener <rguenther@suse.de>
11240 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11242 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11245 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11246 (__TM_simple_begin): Use it.
11247 (__TM_begin): Likewise.
11249 2014-05-15 Martin Jambor <mjambor@suse.cz>
11252 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11253 type_preserved flag when the indirect edge is polymorphic.
11255 2014-05-15 Martin Jambor <mjambor@suse.cz>
11257 PR tree-optimization/61090
11258 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11259 build_ref_for_model.
11261 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11263 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11264 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11266 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11268 PR tree-optimization/61158
11269 * fold-const.c (fold_binary_loc): If X is zero-extended and
11270 shiftc >= prec, make sure zerobits is all ones instead of
11271 invoking undefined behavior.
11273 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11275 * regcprop.h: New file.
11276 * regcprop.c (skip_debug_insn_p): New decl.
11277 (replace_oldest_value_reg): Check skip_debug_insn_p.
11278 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11279 * shrink-wrap.c: Include regcprop.h.
11280 (prepare_shrink_wrap): Call
11281 copyprop_hardreg_forward_bb_without_debug_insn.
11283 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11285 * shrink-wrap.h: Update comment.
11286 * shrink-wrap.c: Update comment.
11287 (next_block_for_reg): Rename to live_edge_for_reg.
11288 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11289 (move_insn_for_shrink_wrap): Split live_edge.
11290 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11292 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11294 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11296 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11297 * config/sparc/sparc.md (fptype_ut699): New attribute.
11298 (in_branch_delay): Return false if -mfix-ut699 is specified and
11299 fptype_ut699 is set to single.
11300 (truncdfsf2): Add fptype_ut699 attribute.
11301 (fix_truncdfsi2): Likewise.
11302 (floatsisf2): Change fptype attribute.
11303 (fix_truncsfsi2): Likewise.
11304 (negtf2_notv9): Delete.
11305 (negtf2_v9): Likewise.
11306 (negtf2_hq): New instruction.
11307 (negtf2): New instruction and splitter.
11308 (negdf2_notv9): Rewrite.
11309 (abstf2_notv9): Delete.
11310 (abstf2_hq_v9): Likewise.
11311 (abstf2_v9): Likewise.
11312 (abstf2_hq): New instruction.
11313 (abstf2): New instruction and splitter.
11314 (absdf2_notv9): Rewrite.
11316 2014-05-14 Cary Coutant <ccoutant@google.com>
11319 * opts.c (common_handle_option): Don't special-case "-g".
11320 (set_debug_level): Default to at least level 2 with "-g".
11322 2014-05-14 DJ Delorie <dj@redhat.com>
11324 * config/msp430/msp430.c (msp430_builtin): Add
11325 MSP430_BUILTIN_DELAY_CYCLES.
11326 (msp430_init_builtins): Register void __delay_cycles(long long).
11327 (msp430_builtin_decl): Add it.
11328 (cg_magic_constant): New.
11329 (msp430_expand_delay_cycles): New.
11330 (msp430_expand_builtin): Call it.
11331 (msp430_print_operand_raw): Change integer printing from "int" to
11333 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11334 (delay_cycles_start): New.
11335 (delay_cycles_end): New.
11336 (delay_cycles_32): New.
11337 (delay_cycles_32x): New.
11338 (delay_cycles_16): New.
11339 (delay_cycles_16x): New.
11340 (delay_cycles_2): New.
11341 (delay_cycles_1): New.
11342 * doc/extend.texi: Document __delay_cycles().
11344 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11346 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11347 length attribute computation.
11349 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11352 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11354 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11357 * config/sparc/sparc.md: Fix types of low and high in DI constant
11358 splitter. Use gen_int_mode in some other splitters.
11360 2014-05-14 Martin Jambor <mjambor@suse.cz>
11363 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11365 2014-05-14 James Norris <jnorris@codesourcery.com>
11367 * omp-low.c (expand_parallel_call): Remove shadow variable.
11368 (expand_omp_taskreg): Likewise.
11370 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11372 * common/config/i386/i386-common.c
11373 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11374 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11375 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11376 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11377 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11378 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11379 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11380 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11381 xsavecintrin.h, xsavesintrin.h.
11382 (x86_64-*-*): Ditto.
11383 * config/i386/clflushoptintrin.h: New.
11384 * config/i386/xsavecintrin.h: Ditto.
11385 * config/i386/xsavesintrin.h: Ditto.
11386 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11387 (bit_XSAVES): Ditto.
11388 (bit_XSAVES): Ditto.
11389 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11390 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11392 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11393 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11394 OPTION_MASK_ISA_XSAVES.
11395 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11396 -mxsavec, -mxsaves.
11397 (PTA_CLFLUSHOPT) Define.
11398 (PTA_XSAVEC): Ditto.
11399 (PTA_XSAVES): Ditto.
11400 (ix86_option_override_internal): Handle new options.
11401 (ix86_valid_target_attribute_inner_p): Ditto.
11402 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11403 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11404 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11405 (bdesc_special_args): Add __builtin_ia32_xsaves,
11406 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11407 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11408 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11409 (ix86_expand_builtin): Handle new builtins.
11410 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11411 (TARGET_CLFLUSHOPT_P): Ditto.
11412 (TARGET_XSAVEC): Ditto.
11413 (TARGET_XSAVEC_P): Ditto.
11414 (TARGET_XSAVES): Ditto.
11415 (TARGET_XSAVES_P): Ditto.
11416 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11417 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11418 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11420 (ANY_XRSTOR64): Ditto.
11422 (xrstor): Change into <xrstor>.
11423 (xrstor_rex64): Change into <xrstor>_rex64.
11424 (xrstor64): Change into <xrstor>64
11426 * config/i386/i386.opt (mclflushopt): New.
11429 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11431 * doc/invoke.texi: Document new options.
11433 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11435 PR rtl-optimization/60866
11436 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11437 Default it to -1. Pass it down to init_simplejump_data.
11438 (init_simplejump_data): New parameter old_seqno. Pass it down
11439 to get_seqno_for_a_jump.
11440 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11441 initializing new jump seqno as a last resort. Add comment.
11442 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11443 jump and pass it down to sel_init_new_insn.
11444 (sel_redirect_edge_and_branch_force): Likewise.
11446 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11448 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11449 shifted values to avoid build warning.
11451 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11453 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11454 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11455 (cfg_layout_merge_blocks): Likewise.
11456 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11458 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11460 PR rtl-optimization/60901
11461 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11462 bb predecessor belongs to the same scheduling region. Adjust comment.
11464 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11466 * doc/sourcebuild.texi: (dfp_hw): Document.
11467 (p8vector_hw): Likewise.
11468 (powerpc_eabi_ok): Likewise.
11469 (powerpc_elfv2): Likewise.
11470 (powerpc_htm_ok): Likewise.
11471 (ppc_recip_hw): Likewise.
11472 (vsx_hw): Likewise.
11474 2014-05-13 Cary Coutant <ccoutant@google.com>
11476 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11478 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11480 * gengtype-parse.c (require3): Eliminate in favor of...
11482 (require_template_declaration): Update to support optional single *
11485 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11486 (create_user_defined_type): Handle a single level of explicit
11487 pointerness within template arguments.
11488 (struct write_types_data): Add field "kind".
11489 (filter_type_name): Handle "*" character.
11490 (write_user_func_for_structure_ptr): Require a write_types_data
11491 rather than just a prefix string, so that we can look up the kind
11492 of the wtd and use it as an index into wrote_user_func_for_ptr,
11493 ensuring that such functions are written at most once. Support
11494 subclasses by invoking the marking function of the ultimate base class.
11495 (write_user_func_for_structure_body): Require a write_types_data
11496 rather than just a prefix string, so that we can pass this to
11497 write_user_func_for_structure_ptr.
11498 (write_func_for_structure): Likewise.
11499 (ggc_wtd): Add initializer of new "kind" field.
11500 (pch_wtd): Likewise.
11502 * gengtype.h (enum write_types_kinds): New.
11503 (struct type): Add field wrote_user_func_for_ptr to the "s"
11506 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11508 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11509 instead of const_binop.
11510 (fold_binary_loc): Likewise.
11512 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11514 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11515 calculation to match get_ref_base_and_extent.
11517 2014-05-13 Catherine Moore <clm@codesourcery.com>
11518 Sandra Loosemore <sandra@codesourcery.com>
11520 * configure.ac: Fix assembly for explicit JALR relocation check.
11521 * configure: Regenerate.
11523 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11525 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11526 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11527 Remove associated type declarations and initialisations.
11528 (arm_expand_neon_builtin): Likewise.
11529 (neon_emit_pair_result_insn): Delete.
11530 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11531 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11532 (neon_vzip<mode>): Likewise.
11533 (neon_vuzp<mode>): Likewise.
11535 2014-05-13 Richard Biener <rguenther@suse.de>
11538 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11539 it needs revisiting whether the call still may be tail-called.
11541 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11543 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11544 * rtl.h (block_symbol): Reduce number of fields to 2.
11545 (rtx_def): Add u2.symbol_ref_flags.
11546 (SYMBOL_REF_FLAGS): Use it.
11547 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11548 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11549 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11550 Lower index of SYMBOL_REF_DATA.
11551 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11552 Print SYMBOL_REF_FLAGS at the same time.
11553 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11555 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11557 * rtl.def (VAR_LOCATION): Remove "i" field.
11558 * rtl.h (rtx_def): Add u2.var_location_status.
11559 (PAT_VAR_LOCATION_STATUS): Use it.
11560 (gen_rtx_VAR_LOCATION): Declare.
11561 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11562 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11563 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11565 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11567 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11568 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11570 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11572 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11573 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11574 * rtl.h (rtx_def): Add insn_uid to u2 field.
11575 (RTX_FLAG_CHECK8): Delete in favor of...
11576 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11577 (INSN_DELETED_P): Update accordingly.
11578 (INSN_UID): Use u2.insn_uid.
11579 (INSN_CHAIN_CODE_P): Define.
11580 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11581 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11582 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11583 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11584 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11585 indices accordingly.
11586 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11587 Update indices for insn-chain rtxes.
11588 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11589 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11590 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11591 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11592 * combine.c (try_combine): Likewise.
11593 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11595 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11597 * rtl.def (REG): Remove middle field.
11598 * rtl.h (rtx_def): Add orignal_regno to u2.
11599 (ORIGINAL_REGNO): Use it instead of field 1.
11600 (REG_ATTRS): Lower field index accordingly.
11601 * gengtype.c (adjust_field_rtx_def): Remove handling of
11602 ORIGINAL_REGNO. Move REG_ATTRS index down.
11603 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11604 code that prints the REGNO.
11606 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11608 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11611 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11613 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11615 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11617 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11618 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11620 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11622 * config/aarch64/aarch64-protos.h
11623 (aarch64_hard_regno_caller_save_mode): New prototype.
11624 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11626 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11628 2014-05-13 Christian Bruel <christian.bruel@st.com>
11630 * target.def (mode_switching): New hook vector.
11631 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11632 (mode_exit, modepriority_to_mode): Likewise.
11633 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11634 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11635 * target.h: Include tm.h and hard-reg-set.h.
11636 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11637 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11638 * doc/tm.texi Regenerate.
11639 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11640 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11641 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11642 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11643 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11644 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11645 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11646 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11647 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11648 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11649 (ix86_emit_mode_set): Hookify.
11650 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11652 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11653 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11654 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11655 (epiphany_mode_priority_to_mode): Remove declaration.
11656 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11657 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11658 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11660 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11661 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11662 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11664 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11667 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11668 is const0_rtx, return immediately. Don't test count == 0 when
11671 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11673 * Makefile.in: add shrink-wrap.o.
11674 * config/i386/i386.c: include "shrink-wrap.h"
11675 * function.c: Likewise.
11676 (requires_stack_frame_p, next_block_for_reg,
11677 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11678 dup_block_and_redirect): Move to shrink-wrap.c
11679 (thread_prologue_and_epilogue_insns): Extract three code segments
11680 as functions in shrink-wrap.c
11681 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11683 * shrink-wrap.c: New file.
11684 * shrink-wrap.h: New file.
11686 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11688 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11689 reference to Solaris.
11691 2014-05-12 Mike Stump <mikestump@comcast.net>
11694 * genattrtab.c (filename): Add.
11695 (convert_set_attr_alternative): Improve error message.
11696 (check_defs): Restore read_md_filename for error messages.
11697 (gen_insn): Save filename.
11699 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11701 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11702 -fno-local-ivars and -fivar-visibility.
11703 * c-family/c.opt: Make -Wshadow also implicitly enable
11706 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11708 * doc/tm.texi: Remove reference to deleted macro.
11709 * doc/tm.texi.in: Likewise.
11711 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11714 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11717 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11720 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11721 * config/arm/aout.h (License): Same.
11722 * config/arm/bpabi.h (License): Same.
11723 * config/arm/elf.h (License): Same.
11724 * config/arm/linux-elf.h (License): Same.
11725 * config/arm/linux-gas.h (License): Same.
11726 * config/arm/netbsd-elf.h (License): Same.
11727 * config/arm/uclinux-eabi.h (License): Same.
11728 * config/arm/uclinux-elf.h (License): Same.
11729 * config/arm/vxworks.h (License): Same.
11731 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11733 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11734 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11735 number of operands to 3.
11736 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11737 * tree-nested.c (convert_nonlocal_omp_clauses,
11738 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11739 * gimplify.c (gimplify_scan_omp_clauses): Handle
11740 OMP_CLAUSE_LINEAR_STMT.
11741 * omp-low.c (lower_rec_input_clauses): Fix typo.
11742 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11743 cast between Fortran boolean_type_node and C _Bool if
11746 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11748 PR tree-optimization/61136
11749 * wide-int.h (multiple_of_p): Define a version that doesn't return
11751 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11752 integer_zerop/const_binop pair.
11753 (multiple_of_p): Likewise, converting both operands to widest_int
11756 2014-05-09 Teresa Johnson <tejohnson@google.com>
11758 * cgraphunit.c (analyze_functions): Use correct dump file.
11760 2014-05-09 Florian Weimer <fweimer@redhat.com>
11762 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11764 (stack_protect_return_slot_p): New function.
11765 (expand_used_vars): Call stack_protect_decl_p and
11766 stack_protect_return_slot_p for -fstack-protector-strong.
11768 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11769 Andrew Haley <aph@redhat.com>
11770 Richard Sandiford <rdsandiford@googlemail.com>
11772 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11775 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11777 PR middle-end/61111
11778 * fold-const.c (fold_binary_loc): Changed width of mask.
11780 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11782 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11783 unsigned int initializers for regno_in, regno_out.
11785 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11788 * config/avr/avr.md (cc): Add new attribute set_vzn.
11789 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11790 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11791 with INC, DEC or NEG.
11792 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11793 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11794 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11796 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11799 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11801 * wide-int.cc (UTItype): Define.
11802 (UDWtype): Define for appropriate W_TYPE_SIZE.
11804 2014-05-09 Richard Biener <rguenther@suse.de>
11806 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11807 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11808 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11809 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11810 ssa_propagate): Adjust.
11812 2014-05-08 Jeff Law <law@redhat.com>
11814 PR tree-optimization/61009
11815 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11816 tri-state rather than a boolean. When a block is too big to
11817 thread through, inform caller via negative return value.
11818 (thread_across_edge): If a block was too big for normal threading,
11819 then it's too big for a joiner too, so remove temporary equivalences
11820 and return immediately.
11822 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11823 Matthias Klose <doko@ubuntu.com>
11826 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11828 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11831 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11833 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11836 * config/alpha/alpha.c: Include gimple-iterator.h.
11837 (alpha_gimple_fold_builtin): New function. Move
11838 ALPHA_BUILTIN_UMULH folding from ...
11839 (alpha_fold_builtin): ... here.
11840 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11842 2014-05-08 Wei Mi <wmi@google.com>
11845 * config/i386/i386.c (ix86_compute_frame_layout): Update
11846 preferred_stack_boundary for call, expanded from tls descriptor.
11847 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11848 to depend on SP register.
11849 (*tls_local_dynamic_base_32_gnu): Ditto.
11850 (*tls_local_dynamic_32_once): Ditto.
11851 (tls_global_dynamic_64_<mode>): Set
11852 ix86_tls_descriptor_calls_expanded_in_cfun.
11853 (tls_local_dynamic_base_64_<mode>): Ditto.
11854 (tls_global_dynamic_32): Set
11855 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11856 to depend on SP register.
11857 (tls_local_dynamic_base_32): Ditto.
11859 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11861 * config/arm/arm_neon.h: Update comment.
11862 * config/arm/neon-docgen.ml: Delete.
11863 * config/arm/neon-gen.ml: Delete.
11864 * doc/arm-neon-intrinsics.texi: Update comment.
11866 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11868 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11870 (vand, vorr, veor, vorn, vbic): Remove.
11871 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11873 (neon_vsub_unspec): Likewise.
11874 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11876 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11878 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11879 (vadd_s16): Likewise.
11880 (vadd_s32): Likewise.
11881 (vadd_f32): Likewise.
11882 (vadd_u8): Likewise.
11883 (vadd_u16): Likewise.
11884 (vadd_u32): Likewise.
11885 (vadd_s64): Likewise.
11886 (vadd_u64): Likewise.
11887 (vaddq_s8): Likewise.
11888 (vaddq_s16): Likewise.
11889 (vaddq_s32): Likewise.
11890 (vaddq_s64): Likewise.
11891 (vaddq_f32): Likewise.
11892 (vaddq_u8): Likewise.
11893 (vaddq_u16): Likewise.
11894 (vaddq_u32): Likewise.
11895 (vaddq_u64): Likewise.
11896 (vmul_s8): Likewise.
11897 (vmul_s16): Likewise.
11898 (vmul_s32): Likewise.
11899 (vmul_f32): Likewise.
11900 (vmul_u8): Likewise.
11901 (vmul_u16): Likewise.
11902 (vmul_u32): Likewise.
11903 (vmul_p8): Likewise.
11904 (vmulq_s8): Likewise.
11905 (vmulq_s16): Likewise.
11906 (vmulq_s32): Likewise.
11907 (vmulq_f32): Likewise.
11908 (vmulq_u8): Likewise.
11909 (vmulq_u16): Likewise.
11910 (vmulq_u32): Likewise.
11911 (vsub_s8): Likewise.
11912 (vsub_s16): Likewise.
11913 (vsub_s32): Likewise.
11914 (vsub_f32): Likewise.
11915 (vsub_u8): Likewise.
11916 (vsub_u16): Likewise.
11917 (vsub_u32): Likewise.
11918 (vsub_s64): Likewise.
11919 (vsub_u64): Likewise.
11920 (vsubq_s8): Likewise.
11921 (vsubq_s16): Likewise.
11922 (vsubq_s32): Likewise.
11923 (vsubq_s64): Likewise.
11924 (vsubq_f32): Likewise.
11925 (vsubq_u8): Likewise.
11926 (vsubq_u16): Likewise.
11927 (vsubq_u32): Likewise.
11928 (vsubq_u64): Likewise.
11929 (vand_s8): Likewise.
11930 (vand_s16): Likewise.
11931 (vand_s32): Likewise.
11932 (vand_u8): Likewise.
11933 (vand_u16): Likewise.
11934 (vand_u32): Likewise.
11935 (vand_s64): Likewise.
11936 (vand_u64): Likewise.
11937 (vandq_s8): Likewise.
11938 (vandq_s16): Likewise.
11939 (vandq_s32): Likewise.
11940 (vandq_s64): Likewise.
11941 (vandq_u8): Likewise.
11942 (vandq_u16): Likewise.
11943 (vandq_u32): Likewise.
11944 (vandq_u64): Likewise.
11945 (vorr_s8): Likewise.
11946 (vorr_s16): Likewise.
11947 (vorr_s32): Likewise.
11948 (vorr_u8): Likewise.
11949 (vorr_u16): Likewise.
11950 (vorr_u32): Likewise.
11951 (vorr_s64): Likewise.
11952 (vorr_u64): Likewise.
11953 (vorrq_s8): Likewise.
11954 (vorrq_s16): Likewise.
11955 (vorrq_s32): Likewise.
11956 (vorrq_s64): Likewise.
11957 (vorrq_u8): Likewise.
11958 (vorrq_u16): Likewise.
11959 (vorrq_u32): Likewise.
11960 (vorrq_u64): Likewise.
11961 (veor_s8): Likewise.
11962 (veor_s16): Likewise.
11963 (veor_s32): Likewise.
11964 (veor_u8): Likewise.
11965 (veor_u16): Likewise.
11966 (veor_u32): Likewise.
11967 (veor_s64): Likewise.
11968 (veor_u64): Likewise.
11969 (veorq_s8): Likewise.
11970 (veorq_s16): Likewise.
11971 (veorq_s32): Likewise.
11972 (veorq_s64): Likewise.
11973 (veorq_u8): Likewise.
11974 (veorq_u16): Likewise.
11975 (veorq_u32): Likewise.
11976 (veorq_u64): Likewise.
11977 (vbic_s8): Likewise.
11978 (vbic_s16): Likewise.
11979 (vbic_s32): Likewise.
11980 (vbic_u8): Likewise.
11981 (vbic_u16): Likewise.
11982 (vbic_u32): Likewise.
11983 (vbic_s64): Likewise.
11984 (vbic_u64): Likewise.
11985 (vbicq_s8): Likewise.
11986 (vbicq_s16): Likewise.
11987 (vbicq_s32): Likewise.
11988 (vbicq_s64): Likewise.
11989 (vbicq_u8): Likewise.
11990 (vbicq_u16): Likewise.
11991 (vbicq_u32): Likewise.
11992 (vbicq_u64): Likewise.
11993 (vorn_s8): Likewise.
11994 (vorn_s16): Likewise.
11995 (vorn_s32): Likewise.
11996 (vorn_u8): Likewise.
11997 (vorn_u16): Likewise.
11998 (vorn_u32): Likewise.
11999 (vorn_s64): Likewise.
12000 (vorn_u64): Likewise.
12001 (vornq_s8): Likewise.
12002 (vornq_s16): Likewise.
12003 (vornq_s32): Likewise.
12004 (vornq_s64): Likewise.
12005 (vornq_u8): Likewise.
12006 (vornq_u16): Likewise.
12007 (vornq_u32): Likewise.
12008 (vornq_u64): Likewise.
12010 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12012 * wide-int.cc (UTItype): Define.
12013 (UDWtype): Define for appropriate W_TYPE_SIZE.
12015 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12017 PR tree-optimization/59100
12018 * tree-ssa-phiopt.c: Include tree-inline.h.
12019 (neutral_element_p, absorbing_element_p): New functions.
12020 (value_replacement): Handle conditional binary operations with a
12021 neutral or absorbing element.
12023 2014-05-08 Richard Biener <rguenther@suse.de>
12025 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12026 folding the expression.
12027 (valueize_expr): Remove.
12028 (visit_reference_op_load): Do not valueize the result of
12030 (simplify_binary_expression): Likewise.
12031 (simplify_unary_expression): Likewise.
12033 2014-05-08 Richard Biener <rguenther@suse.de>
12035 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12036 looking at TYPE_ARG_TYPES.
12038 2014-05-08 Richard Biener <rguenther@suse.de>
12040 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12041 pointer propagation special-case.
12043 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12045 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12046 core part of address expressions.
12048 2014-05-08 Alan Modra <amodra@gmail.com>
12051 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12052 loads and stores when -mno-strict-align at any alignment.
12053 (expand_block_clear): Similarly. Also correct calculation of
12056 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12058 PR middle-end/39246
12059 * tree-complex.c (expand_complex_move): Keep line info when expanding
12061 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12062 of complex expression. Use new argument to display correct location
12063 for values coming from phi statement.
12064 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12065 (warn_uninitialized_phi): Pass location of phi argument to
12067 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12068 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12070 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12072 * config/rs6000/predicates.md (indexed_address_mem): New.
12073 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12074 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12075 fpstore_ux, fpstore_u.
12076 (sign_extend, indexed, update): New.
12077 (cell_micro): Adjust.
12078 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12079 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12080 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12081 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12082 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12083 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12084 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12085 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12086 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12087 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12088 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12089 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12090 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12091 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12092 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12094 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12095 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12096 *vsx_extract_<mode>_store): Adjust.
12097 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12098 is_cracked_insn, insn_must_be_first_in_group,
12099 insn_must_be_last_in_group): Adjust.
12101 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12103 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12104 ppc440-fpstore): Adjust.
12105 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12106 ppc476-fpstore): Adjust.
12107 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12108 ppc601-fpstore): Adjust.
12109 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12111 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12113 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12114 ppc7450-fpstore): Adjust.
12115 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12116 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12117 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12119 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12120 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12121 cell-fpstore, cell-fpstore-update): Adjust.
12122 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12123 ppce300c3_store, ppce300c3_fpstore): Adjust.
12124 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12125 e500mc_fpstore): Adjust.
12126 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12127 e500mc64_store, e500mc64_fpstore): Adjust.
12128 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12129 e5500_fpstore): Adjust.
12130 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12131 e6500_fpstore): Adjust.
12132 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12134 * config/rs6000/power4.md (power4-load, power4-load-ext,
12135 power4-load-ext-update, power4-load-ext-update-indexed,
12136 power4-load-update-indexed, power4-load-update, power4-fpload,
12137 power4-fpload-update, power4-store, power4-store-update,
12138 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12140 * config/rs6000/power5.md (power5-load, power5-load-ext,
12141 power5-load-ext-update, power5-load-ext-update-indexed,
12142 power5-load-update-indexed, power5-load-update, power5-fpload,
12143 power5-fpload-update, power5-store, power5-store-update,
12144 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12146 * config/rs6000/power6.md (power6-load, power6-load-ext,
12147 power6-load-update, power6-load-update-indexed,
12148 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12149 power6-fpload-update, power6-store, power6-store-update,
12150 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12152 * config/rs6000/power7.md (power7-load, power7-load-ext,
12153 power7-load-update, power7-load-update-indexed,
12154 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12155 power7-fpload-update, power7-store, power7-store-update,
12156 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12158 * config/rs6000/power8.md (power8-load, power8-load-update,
12159 power8-load-ext, power8-load-ext-update, power8-fpload,
12160 power8-fpload-update, power8-store, power8-store-update-indexed,
12161 power8-fpstore, power8-fpstore-update): Adjust.
12162 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12164 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12165 titan_lsu_store, titan_lsu_fpstore): Adjust.
12166 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12168 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12171 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12172 unrolled byte insns. Emit address increments after move insns.
12174 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12176 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12177 const_gimple, rather than a gimple.
12178 (gimple_call_builtin_p): Likewise, for the three variants.
12180 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12181 (gimple_call_builtin_p): Likewise, for the three variants.
12183 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12185 PR tree-optimization/61095
12186 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12188 2014-05-07 Richard Biener <rguenther@suse.de>
12190 PR tree-optimization/61034
12191 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12192 (maybe_skip_until): Use translate to take into account
12193 lattices when trying to do disambiguations.
12194 (get_continuation_for_phi_1): Likewise.
12195 (get_continuation_for_phi): Adjust for added translate arguments.
12196 (walk_non_aliased_vuses): Likewise.
12197 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12198 (walk_non_aliased_vuses): Likewise.
12199 (call_may_clobber_ref_p_1): Declare.
12200 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12201 calls. Stop early if we are only supposed to disambiguate.
12202 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12204 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12206 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12207 Emit an error when the function has arguments.
12209 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12211 * cfgloop.h (unswitch_loops): Remove.
12212 * doc/passes.texi: Remove references to loop-unswitch.c
12213 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12215 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12217 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12218 check for loads group of length 3.
12219 (vect_permute_load_chain): New permutations for loads group of
12221 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12222 of vec_perm_shuffle for the new permutations.
12224 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12226 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12227 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12228 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12229 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12230 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12231 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12232 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12233 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12235 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12237 * loop-unswitch.c: Delete.
12239 2014-05-07 Richard Biener <rguenther@suse.de>
12241 * config.gcc: Always set need_64bit_hwint to yes.
12243 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12245 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12246 of using optimize_size.
12248 2014-05-06 Mike Stump <mikestump@comcast.net>
12250 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12252 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12254 * config/i386/sse.md (*mov<mode>_internal)
12255 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12256 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12257 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12258 (*<code><mode>3, *andnot<mode>3<mask_name>)
12259 (<mask_codefor><code><mode>3<mask_name>): Only consider
12260 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12262 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12265 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12267 * lra-constraints.c (valid_address_p): Move earlier in file.
12268 Add a constraint argument to the address_info version.
12269 (satisfies_memory_constraint_p): New function.
12270 (satisfies_address_constraint_p): Likewise.
12271 (process_alt_operands, curr_insn_transform): Use them.
12272 (process_address): Pass the constraint to valid_address_p when
12273 checking address operands.
12275 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12277 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12278 to their respective blocks. Fix inadvertent use of "node".
12280 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12282 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12284 (init_emit_once): ...here.
12285 * rtl.h (init_derived_machine_modes): Declare.
12286 * toplev.c (do_compile): Call it even if no_backend.
12288 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12289 Mike Stump <mikestump@comcast.net>
12290 Richard Sandiford <rdsandiford@googlemail.com>
12291 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12293 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12294 (rtx_equal_for_memref_p): Update comment.
12295 (adjust_offset_for_component_ref): Use wide-int interfaces.
12296 * builtins.c (get_object_alignment_2): Likewise.
12297 (c_readstr): Likewise.
12298 (target_char_cast): Add comment.
12299 (determine_block_size): Use wide-int interfaces.
12300 (expand_builtin_signbit): Likewise.
12301 (fold_builtin_int_roundingfn): Likewise.
12302 (fold_builtin_bitop): Likewise.
12303 (fold_builtin_bswap): Likewise.
12304 (fold_builtin_logarithm): Use signop.
12305 (fold_builtin_pow): Likewise.
12306 (fold_builtin_memory_op): Use wide-int interfaces.
12307 (fold_builtin_object_size): Likewise.
12308 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12309 nb_iterations_estimate.
12310 (record_niter_bound): Use wide-int interfaces.
12311 (get_estimated_loop_iterations_int): Likewise.
12312 (get_estimated_loop_iterations): Likewise.
12313 (get_max_loop_iterations): Likewise.
12314 * cfgloop.h: Include wide-int.h.
12315 (struct nb_iter_bound): Change bound to widest_int.
12316 (struct loop): Change nb_iterations_upper_bound and
12317 nb_iterations_estimate to widest_int.
12318 (record_niter_bound): Switch to use widest_int.
12319 (get_estimated_loop_iterations): Likewise.
12320 (get_max_loop_iterations): Likewise.
12321 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12322 update for wide-int.
12323 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12324 * combine.c (try_combine): Likewise.
12325 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12326 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12328 (aarch64_float_const_representable_p): Likewise.
12329 * config/arc/arc.c: Include wide-int.h.
12330 (arc_can_use_doloop_p): Use wide-int interfaces.
12331 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12332 (vfp3_const_double_index): Likewise.
12333 * config/avr/avr.c (avr_out_round): Likewise.
12334 (avr_fold_builtin): Likewise.
12335 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12336 (bfin_can_use_doloop_p): Likewise.
12337 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12338 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12339 * config/i386/i386.c: Include wide-int.h.
12340 (ix86_data_alignment): Use wide-int interfaces.
12341 (ix86_local_alignment): Likewise.
12342 (ix86_emit_swsqrtsf): Update real_from_integer.
12343 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12344 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12345 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12346 (zero_constant): Likewise.
12347 (input_operand): Likewise.
12348 (splat_input_operand): Likewise.
12349 (non_logical_cint_operand): Change const_double to const_wide_int.
12350 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12351 (easy_altivec_constant): Remove comment.
12352 (paired_expand_vector_init): Use CONSTANT_P.
12353 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12354 (rs6000_emit_move): Update checks.
12355 (rs6000_aggregate_candidate): Use wide-int interfaces.
12356 (rs6000_expand_ternop_builtin): Likewise.
12357 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12358 (rs6000_assemble_integer): Likewise.
12359 (rs6000_hash_constant): Likewise.
12360 (output_toc): Likewise.
12361 (rs6000_rtx_costs): Likewise.
12362 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12363 * config/rs6000/rs6000-c.c: Include wide-int.h.
12364 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12365 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12366 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12367 Handle CONST_WIDE_INT.
12368 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12369 Use tree_fits_uhwi_p.
12370 * config/sparc/sparc.c: Include wide-int.h.
12371 (sparc_fold_builtin): Use wide-int interfaces.
12372 * config/vax/vax.c: Include wide-int.h.
12373 (vax_float_literal): Use real_from_integer.
12374 * coretypes.h (struct hwivec_def): New.
12376 (const_hwivec): New.
12377 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12378 (equiv_constant): Handle CONST_WIDE_INT.
12379 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12380 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12381 * dbxout.c (stabstr_U): Use wide-int interfaces.
12382 (dbxout_type): Update to use cst_fits_shwi_p.
12383 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12384 (TARGET_SUPPORTS_WIDE_INT): Add default.
12385 * dfp.c: Include wide-int.h.
12386 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12387 decimal_real_to_integer.
12388 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12389 decimal_real_to_integer.
12390 * doc/generic.texi (Constant expressions): Update for wide_int.
12391 * doc/rtl.texi (const_double): Likewise.
12392 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12393 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12394 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12395 (REAL_VALUE_FROM_INT): Remove.
12396 (TARGET_SUPPORTS_WIDE_INT): New.
12397 * doc/tm.texi: Regenerate.
12398 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12399 * double-int.h: Include wide-int.h.
12400 (struct wi::int_traits): New.
12401 * dwarf2out.c (get_full_len): New.
12402 (dw_val_equal_p): Add case dw_val_class_wide_int.
12403 (size_of_loc_descr): Likewise.
12404 (output_loc_operands): Likewise.
12405 (insert_double): Remove.
12406 (insert_wide_int): New.
12407 (add_AT_wide): New.
12408 (print_die): Add case dw_val_class_wide_int.
12409 (attr_checksum): Likewise.
12410 (attr_checksum_ordered): Likewise.
12411 (same_dw_val_p): Likewise.
12412 (size_of_die): Likewise.
12413 (value_format): Likewise.
12414 (output_die): Likewise.
12415 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12417 (clz_loc_descriptor): Use wide-int interfaces.
12418 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12419 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12420 (round_up_to_align): Use wide-int interfaces.
12421 (field_byte_offset): Likewise.
12422 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12423 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12424 CONST_DOUBLE handling. Use wide-int interfaces.
12425 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12426 (gen_enumeration_type_die): Use add_AT_wide.
12427 (hash_loc_operands): Add case dw_val_class_wide_int.
12428 (compare_loc_operands): Likewise.
12429 * dwarf2out.h: Include wide-int.h.
12430 (wide_int_ptr): New.
12431 (enum dw_val_class): Add dw_val_class_wide_int.
12432 (struct dw_val_struct): Add val_wide.
12433 * emit-rtl.c (const_wide_int_htab): New.
12434 (const_wide_int_htab_hash): New.
12435 (const_wide_int_htab_eq): New.
12436 (lookup_const_wide_int): New.
12437 (const_double_htab_hash): Use wide-int interfaces.
12438 (const_double_htab_eq): Likewise.
12439 (rtx_to_double_int): Conditionally compile for wide-int.
12440 (immed_double_int_const): Rename to immed_wide_int_const and
12441 update for wide-int.
12442 (immed_double_const): Conditionally compile for wide-int.
12443 (init_emit_once): Use wide-int interfaces.
12444 * explow.c (plus_constant): Likewise.
12445 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12446 (lshift_value): Use wide-int interfaces.
12447 (expand_mult): Likewise.
12448 (choose_multiplier): Likewise.
12449 (expand_smod_pow2): Likewise.
12450 (make_tree): Likewise.
12451 * expr.c (convert_modes): Consolidate handling of constants.
12452 Use wide-int interfaces.
12453 (emit_group_load_1): Add note.
12454 (store_expr): Update comment.
12455 (get_inner_reference): Use wide-int interfaces.
12456 (expand_constructor): Update comment.
12457 (expand_expr_real_2): Use wide-int interfaces.
12458 (expand_expr_real_1): Likewise.
12459 (reduce_to_bit_field_precision): Likewise.
12460 (const_vector_from_tree): Likewise.
12461 * final.c: Include wide-int-print.h.
12462 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12463 * fixed-value.c: Include wide-int.h.
12464 (fixed_from_string): Use wide-int interfaces.
12465 (fixed_to_decimal): Likewise.
12466 (fixed_convert_from_real): Likewise.
12467 (real_convert_from_fixed): Likewise.
12468 * fold-const.h (mem_ref_offset): Return an offset_int.
12469 (div_if_zero_remainder): Remove code parameter.
12470 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12471 Use wide-int interfaces.
12472 (may_negate_without_overflow_p): Use wide-int interfaces.
12473 (negate_expr_p): Likewise.
12474 (fold_negate_expr): Likewise.
12475 (int_const_binop_1): Likewise.
12476 (const_binop): Likewise.
12477 (fold_convert_const_int_from_int): Likewise.
12478 (fold_convert_const_int_from_real): Likewise.
12479 (fold_convert_const_int_from_fixed): Likewise.
12480 (fold_convert_const_fixed_from_int): Likewise.
12481 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12482 (sign_bit_p): Use wide-int interfaces.
12483 (make_range_step): Likewise.
12484 (build_range_check): Likewise. Pass an integer of the correct type
12485 instead of using integer_one_node.
12486 (range_predecessor): Pass an integer of the correct type instead
12487 of using integer_one_node.
12488 (range_successor): Likewise.
12489 (merge_ranges): Likewise.
12490 (unextend): Use wide-int interfaces.
12491 (extract_muldiv_1): Likewise.
12492 (fold_div_compare): Likewise.
12493 (fold_single_bit_test): Likewise.
12494 (fold_sign_changed_comparison): Likewise.
12495 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12496 (fold_plusminus_mult_expr): Use wide-int interfaces.
12497 (native_encode_int): Likewise.
12498 (native_interpret_int): Likewise.
12499 (fold_unary_loc): Likewise.
12500 (pointer_may_wrap_p): Likewise.
12501 (size_low_cst): Likewise.
12502 (mask_with_tz): Likewise.
12503 (fold_binary_loc): Likewise.
12504 (fold_ternary_loc): Likewise.
12505 (multiple_of_p): Likewise.
12506 (tree_call_nonnegative_warnv_p): Update calls to
12507 tree_int_cst_min_precision and real_from_integer.
12508 (fold_negate_const): Use wide-int interfaces.
12509 (fold_abs_const): Likewise.
12510 (fold_relational_const): Use tree_int_cst_lt.
12511 (round_up_loc): Use wide-int interfaces.
12512 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12513 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12514 * gengtype.c: Remove include of double-int.h.
12515 (do_typedef): Use wide-int interfaces.
12516 (open_base_files): Add wide-int.h.
12517 (main): Add offset_int and widest_int typedefs.
12518 * gengtype-lex.l: Handle "^".
12519 (CXX_KEYWORD): Add "static".
12520 * gengtype-parse.c (require3): New.
12521 (require_template_declaration): Handle constant template arguments
12522 and nested templates.
12523 * gengtype-state.c: Don't include "double-int.h".
12524 * genpreds.c (write_one_predicate_function): Update comment.
12525 (write_tm_constrs_h): Add check for hval and lval use in
12527 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12528 (add_to_sequence): Likewise.
12529 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12530 and const_double_operand.
12531 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12533 * gimple-fold.c (get_base_constructor): Likewise.
12534 (fold_array_ctor_reference): Likewise.
12535 (fold_nonarray_ctor_reference): Likewise.
12536 (fold_const_aggregate_ref_1): Likewise.
12537 (gimple_val_nonnegative_real_p): Likewise.
12538 (gimple_fold_indirect_ref): Likewise.
12539 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12540 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12541 (struct slsr_cand_d): Change index to be widest_int.
12542 (struct incr_info_d): Change incr to be widest_int.
12543 (alloc_cand_and_find_basis): Use wide-int interfaces.
12544 (slsr_process_phi): Likewise.
12545 (backtrace_base_for_ref): Likewise. Return a widest_int.
12546 (restructure_reference): Take a widest_int instead of a double_int.
12547 (slsr_process_ref): Use wide-int interfaces.
12548 (create_mul_ssa_cand): Likewise.
12549 (create_mul_imm_cand): Likewise.
12550 (create_add_ssa_cand): Likewise.
12551 (create_add_imm_cand): Take a widest_int instead of a double_int.
12552 (slsr_process_add): Use wide-int interfaces.
12553 (slsr_process_cast): Likewise.
12554 (slsr_process_copy): Likewise.
12555 (dump_candidate): Likewise.
12556 (dump_incr_vec): Likewise.
12557 (replace_ref): Likewise.
12558 (cand_increment): Likewise. Return a widest_int.
12559 (cand_abs_increment): Likewise.
12560 (replace_mult_candidate): Take a widest_int instead of a double_int.
12561 (replace_unconditional_candidate): Use wide-int interfaces.
12562 (incr_vec_index): Take a widest_int instead of a double_int.
12563 (create_add_on_incoming_edge): Likewise.
12564 (create_phi_basis): Use wide-int interfaces.
12565 (replace_conditional_candidate): Likewise.
12566 (record_increment): Take a widest_int instead of a double_int.
12567 (record_phi_increments): Use wide-int interfaces.
12568 (phi_incr_cost): Take a widest_int instead of a double_int.
12569 (lowest_cost_path): Likewise.
12570 (total_savings): Likewise.
12571 (analyze_increments): Use wide-int interfaces.
12572 (ncd_with_phi): Take a widest_int instead of a double_int.
12573 (ncd_of_cand_and_phis): Likewise.
12574 (nearest_common_dominator_for_cands): Likewise.
12575 (insert_initializers): Use wide-int interfaces.
12576 (all_phi_incrs_profitable): Likewise.
12577 (replace_one_candidate): Likewise.
12578 (replace_profitable_candidates): Likewise.
12579 * godump.c: Include wide-int-print.h.
12580 (go_output_typedef): Use wide-int interfaces.
12581 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12582 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12583 (build_loop_iteration_domains): Likewise.
12584 * hooks.h: Include wide-int.h rather than double-int.h.
12585 (hook_bool_dint_dint_uint_bool_true): Delete.
12586 (hook_bool_wint_wint_uint_bool_true): Declare.
12587 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12588 (hook_bool_wint_wint_uint_bool_true): New.
12589 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12591 (ubsan_expand_si_overflow_mul_check): Likewise.
12592 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12593 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12594 (get_ancestor_addr_info): Likewise.
12595 (ipa_modify_call_arguments): Likewise.
12596 * loop-doloop.c (doloop_modify): Likewise.
12597 (doloop_optimize): Likewise.
12598 * loop-iv.c (iv_number_of_iterations): Likewise.
12599 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12600 (unroll_loop_constant_iterations): Likewise.
12601 (decide_unroll_runtime_iterations): Likewise.
12602 (unroll_loop_runtime_iterations): Likewise.
12603 (decide_peel_simple): Likewise.
12604 (decide_unroll_stupid): Likewise.
12605 * lto-streamer-in.c (streamer_read_wi): Add.
12606 (input_cfg): Use wide-int interfaces.
12607 (lto_input_tree_1): Likewise.
12608 * lto-streamer-out.c (streamer_write_wi): Add.
12609 (hash_tree): Use wide-int interfaces.
12610 (output_cfg): Likewise.
12611 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12612 (GTFILES): Add wide-int.h and signop.h.
12613 (TAGS): Look for .cc files too.
12614 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12615 * optabs.c (expand_subword_shift): Likewise.
12616 (expand_doubleword_shift): Likewise.
12617 (expand_absneg_bit): Likewise.
12618 (expand_copysign_absneg): Likewise.
12619 (expand_copysign_bit): Likewise.
12620 * postreload.c (reload_cse_simplify_set): Likewise.
12621 * predict.c (predict_iv_comparison): Likewise.
12622 * pretty-print.h: Include wide-int-print.h.
12624 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12625 * print-tree.c: Include wide-int-print.h.
12626 (print_node_brief): Use wide-int interfaces.
12627 (print_node): Likewise.
12628 * read-rtl.c (validate_const_wide_int): New.
12629 (read_rtx_code): Add CONST_WIDE_INT case.
12630 * real.c: Include wide-int.h.
12631 (real_to_integer2): Delete.
12632 (real_to_integer): New function, returning a wide_int.
12633 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12634 (ten_to_ptwo): Update call to real_from_integer.
12635 (real_digit): Likewise.
12636 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12637 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12638 (REAL_VALUE_TO_INT): Delete.
12639 (real_to_integer): Declare a wide-int form.
12640 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12641 * recog.c (const_int_operand): Improve comment.
12642 (const_scalar_int_operand): New.
12643 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12644 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12645 (split_double): Likewise.
12646 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12647 (rtx_size): Likewise.
12648 (rtx_alloc_stat_v): New.
12649 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12650 (cwi_output_hex): New.
12651 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12652 (cwi_check_failed_bounds): New.
12653 * rtl.def (CONST_WIDE_INT): New.
12654 * rtl.h: Include <utility> and wide-int.h.
12655 (struct hwivec_def): New.
12656 (CWI_GET_NUM_ELEM): New.
12657 (CWI_PUT_NUM_ELEM): New.
12658 (struct rtx_def): Add num_elem and hwiv.
12659 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12660 (CASE_CONST_UNIQUE): Likewise.
12661 (CASE_CONST_ANY): Likewise.
12662 (CONST_SCALAR_INT_P): Likewise.
12663 (CONST_WIDE_INT_P): New.
12665 (HWIVEC_CHECK): New.
12666 (cwi_check_failed_bounds): New.
12668 (HWIVEC_CHECK): New.
12669 (CONST_WIDE_INT_VEC) New.
12670 (CONST_WIDE_INT_NUNITS) New.
12671 (CONST_WIDE_INT_ELT) New.
12672 (rtx_mode_t): New type.
12673 (wi::int_traits <rtx_mode_t>): New.
12675 (wi::min_value): New.
12676 (wi::max_value): New.
12678 (const_wide_int_alloc): New.
12679 (immed_wide_int_const): New.
12680 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12681 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12682 * signop.h: New file.
12683 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12684 (simplify_const_unary_operation): Use wide-int interfaces.
12685 (simplify_binary_operation_1): Likewise.
12686 (simplify_const_binary_operation): Likewise.
12687 (simplify_const_relational_operation): Likewise.
12688 (simplify_immed_subreg): Likewise.
12689 * stmt.c (expand_case): Likewise.
12690 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12691 signop rather than a bool.
12692 * stor-layout.c (layout_type): Use wide-int interfaces.
12693 (initialize_sizetypes): Update calls to
12694 set_min_and_max_values_for_integral_type.
12695 (set_min_and_max_values_for_integral_type): Take a signop rather
12696 than a bool. Use wide-int interfaces.
12697 (fixup_signed_type): Update accordingly. Remove
12698 HOST_BITS_PER_DOUBLE_INT limit.
12699 (fixup_unsigned_type): Likewise.
12700 * system.h (STATIC_CONSTANT_P): New.
12701 (STATIC_ASSERT): New.
12702 * target.def (can_use_doloop_p): Take widest_ints rather than
12704 * target.h: Include wide-int.h rather than double-int.h.
12705 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12707 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12708 rather than INT_CST_LT_UNSIGNED.
12709 (can_use_doloop_if_innermost): Take widest_ints rather than
12711 * tree-affine.c: Include wide-int-print.h.
12712 (double_int_ext_for_comb): Delete.
12713 (wide_int_ext_for_comb): New.
12714 (aff_combination_zero): Use wide-int interfaces.
12715 (aff_combination_const): Take a widest_int instead of a double_int.
12716 (aff_combination_elt): Use wide-int interfaces.
12717 (aff_combination_scale): Take a widest_int instead of a double_int.
12718 (aff_combination_add_elt): Likewise.
12719 (aff_combination_add_cst): Likewise.
12720 (aff_combination_add): Use wide-int interfaces.
12721 (aff_combination_convert): Likewise.
12722 (tree_to_aff_combination): Likewise.
12723 (add_elt_to_tree): Take a widest_int instead of a double_int.
12724 (aff_combination_to_tree): Use wide-int interfaces.
12725 (aff_combination_remove_elt): Likewise.
12726 (aff_combination_add_product): Take a widest_int instead of
12728 (aff_combination_mult): Use wide-int interfaces.
12729 (aff_combination_expand): Likewise.
12730 (double_int_constant_multiple_p): Delete.
12731 (wide_int_constant_multiple_p): New.
12732 (aff_combination_constant_multiple_p): Take a widest_int pointer
12733 instead of a double_int pointer.
12734 (print_aff): Use wide-int interfaces.
12735 (get_inner_reference_aff): Take a widest_int pointer
12736 instead of a double_int pointer.
12737 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12738 * tree-affine.h: Include wide-int.h.
12739 (struct aff_comb_elt): Change type of coef to widest_int.
12740 (struct affine_tree_combination): Change type of offset to widest_int.
12741 (double_int_ext_for_comb): Delete.
12742 (wide_int_ext_for_comb): New.
12743 (aff_combination_const): Use widest_int instead of double_int.
12744 (aff_combination_scale): Likewise.
12745 (aff_combination_add_elt): Likewise.
12746 (aff_combination_constant_multiple_p): Likewise.
12747 (get_inner_reference_aff): Likewise.
12748 (aff_comb_cannot_overlap_p): Likewise.
12749 (aff_combination_zero_p): Use wide-int interfaces.
12750 * tree.c: Include tree.h.
12751 (init_ttree): Use make_int_cst.
12752 (tree_code_size): Removed code for INTEGER_CST case.
12753 (tree_size): Add INTEGER_CST case.
12754 (make_node_stat): Update comment.
12755 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12756 (build_int_cst_type): Use wide-int interfaces.
12757 (double_int_to_tree): Likewise.
12758 (double_int_fits_to_tree_p): Delete.
12759 (force_fit_type_double): Delete.
12760 (force_fit_type): New.
12761 (int_cst_hash_hash): Use wide-int interfaces.
12762 (int_cst_hash_eq): Likewise.
12763 (build_int_cst_wide): Delete.
12764 (wide_int_to_tree): New.
12765 (cache_integer_cst): Use wide-int interfaces.
12766 (build_low_bits_mask): Likewise.
12767 (cst_and_fits_in_hwi): Likewise.
12768 (real_value_from_int_cst): Likewise.
12769 (make_int_cst_stat): New.
12770 (integer_zerop): Use wide_int interfaces.
12771 (integer_onep): Likewise.
12772 (integer_all_onesp): Likewise.
12773 (integer_pow2p): Likewise.
12774 (integer_nonzerop): Likewise.
12775 (tree_log2): Likewise.
12776 (tree_floor_log2): Likewise.
12777 (tree_ctz): Likewise.
12778 (int_size_in_bytes): Likewise.
12779 (mem_ref_offset): Return an offset_int rather than a double_int.
12780 (build_type_attribute_qual_variant): Use wide_int interfaces.
12781 (type_hash_eq): Likewise
12782 (tree_int_cst_equal): Likewise.
12783 (tree_int_cst_lt): Delete.
12784 (tree_int_cst_compare): Likewise.
12785 (tree_fits_shwi_p): Use wide_int interfaces.
12786 (tree_fits_uhwi_p): Likewise.
12787 (tree_int_cst_sign_bit): Likewise.
12788 (tree_int_cst_sgn): Likewise.
12789 (tree_int_cst_min_precision): Take a signop rather than a bool.
12790 (simple_cst_equal): Use wide_int interfaces.
12791 (compare_tree_int): Likewise.
12792 (iterative_hash_expr): Likewise.
12793 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12795 (get_type_static_bounds): Use wide_int interfaces.
12796 (tree_int_cst_elt_check_failed): New.
12797 (build_common_tree_nodes): Reordered to set prec before filling in
12799 (int_cst_value): Check cst_and_fits_in_hwi.
12800 (widest_int_cst_value): Use wide_int interfaces.
12801 (upper_bound_in_type): Likewise.
12802 (lower_bound_in_type): Likewise.
12803 (num_ending_zeros): Likewise.
12804 (drop_tree_overflow): Likewise.
12805 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12806 (gen_conditions_for_pow_cst_base): Likewise.
12807 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12808 (group_case_labels_stmt): Use wide-int interfaces.
12809 (verify_gimple_assign_binary): Likewise.
12810 (print_loop): Likewise.
12811 * tree-chrec.c (tree_fold_binomial): Likewise.
12812 * tree-core.h (struct tree_base): Add int_length.
12813 (struct tree_int_cst): Change rep of value.
12814 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12815 (dr_may_alias_p): Likewise.
12816 (max_stmt_executions_tree): Likewise.
12817 * tree.def (INTEGER_CST): Update comment.
12818 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12819 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12820 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12821 (dequeue_and_dump): Use wide-int interfaces.
12822 * tree.h: Include wide-int.h.
12823 (NULL_TREE): Moved to earlier loc in file.
12824 (TREE_INT_CST_ELT_CHECK): New.
12825 (tree_int_cst_elt_check_failed): New.
12827 (TREE_INT_CST): Delete.
12828 (TREE_INT_CST_LOW): Use wide-int interfaces.
12829 (TREE_INT_CST_HIGH): Delete.
12830 (TREE_INT_CST_NUNITS): New.
12831 (TREE_INT_CST_EXT_NUNITS): Likewise.
12832 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12833 (TREE_INT_CST_ELT): Likewise.
12834 (INT_CST_LT): Delete.
12835 (tree_int_cst_elt_check): New (two forms).
12836 (type_code_size): Update comment.
12837 (make_int_cst_stat, make_int_cst): New.
12838 (tree_to_double_int): Delete.
12839 (double_int_fits_to_tree_p): Delete.
12840 (force_fit_type_double): Delete.
12841 (build_int_cstu): Replace with out-of-line function.
12842 (build_int_cst_wide): Delete.
12843 (tree_int_cst_lt): Define inline.
12844 (tree_int_cst_le): New.
12845 (tree_int_cst_compare): Define inline.
12846 (tree_int_cst_min_precision): Take a signop rather than a bool.
12847 (wi::int_traits <const_tree>): New.
12848 (wi::int_traits <tree>): New.
12849 (wi::extended_tree): New.
12850 (wi::int_traits <wi::extended_tree>): New.
12851 (wi::to_widest): New.
12852 (wi::to_offset): New.
12853 (wi::fits_to_tree_p): New.
12854 (wi::min_value): New.
12855 (wi::max_value): New.
12856 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12857 (copy_tree_body_r): Likewise.
12858 * tree-object-size.c (compute_object_offset): Likewise.
12859 (addr_object_size): Likewise.
12860 * tree-predcom.c: Include wide-int-print.h.
12861 (struct dref_d): Change type of offset to widest_int.
12862 (dump_dref): Call wide-int printer.
12863 (aff_combination_dr_offset): Use wide-int interfaces.
12864 (determine_offset): Take a widest_int pointer rather than a
12865 double_int pointer.
12866 (split_data_refs_to_components): Use wide-int interfaces.
12867 (suitable_component_p): Likewise.
12868 (order_drefs): Likewise.
12869 (add_ref_to_chain): Likewise.
12870 (valid_initializer_p): Likewise.
12871 (determine_roots_comp): Likewise.
12872 * tree-pretty-print.c: Include wide-int-print.h.
12873 (dump_generic_node): Use wide-int interfaces.
12874 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12875 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12876 (move_fixed_address_to_symbol): Likewise.
12877 (move_hint_to_base): Likewise.
12878 (move_pointer_to_base): Likewise.
12879 (move_variant_to_index): Likewise.
12880 (most_expensive_mult_to_index): Likewise.
12881 (addr_to_parts): Likewise.
12882 (copy_ref_info): Likewise.
12883 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12884 (indirect_refs_may_alias_p): Likewise.
12885 (stmt_kills_ref_p_1): Likewise.
12886 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12887 * tree-ssa-ccp.c: Update comment at top of file. Include
12889 (struct prop_value_d): Change type of mask to widest_int.
12890 (extend_mask): New function.
12891 (dump_lattice_value): Use wide-int interfaces.
12892 (get_default_value): Likewise.
12893 (set_constant_value): Likewise.
12894 (set_value_varying): Likewise.
12895 (valid_lattice_transition): Likewise.
12896 (set_lattice_value): Likewise.
12897 (value_to_double_int): Delete.
12898 (value_to_wide_int): New.
12899 (get_value_from_alignment): Use wide-int interfaces.
12900 (get_value_for_expr): Likewise.
12901 (do_dbg_cnt): Likewise.
12902 (ccp_finalize): Likewise.
12903 (ccp_lattice_meet): Likewise.
12904 (bit_value_unop_1): Use widest_ints rather than double_ints.
12905 (bit_value_binop_1): Likewise.
12906 (bit_value_unop): Use wide-int interfaces.
12907 (bit_value_binop): Likewise.
12908 (bit_value_assume_aligned): Likewise.
12909 (evaluate_stmt): Likewise.
12910 (ccp_fold_stmt): Likewise.
12911 (visit_cond_stmt): Likewise.
12912 (ccp_visit_stmt): Likewise.
12913 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12914 (constant_pointer_difference): Likewise.
12915 (associate_pointerplus): Likewise.
12916 (combine_conversions): Likewise.
12917 * tree-ssa-loop.h: Include wide-int.h.
12918 (struct tree_niter_desc): Change type of max to widest_int.
12919 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12920 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12921 (remove_redundant_iv_tests): Likewise.
12922 (canonicalize_loop_induction_variables): Likewise.
12923 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12924 (constant_multiple_of): Take a widest_int pointer instead of
12925 a double_int pointer.
12926 (get_computation_aff): Use wide-int interfaces.
12927 (ptr_difference_cost): Likewise.
12928 (difference_cost): Likewise.
12929 (get_loop_invariant_expr_id): Likewise.
12930 (get_computation_cost_at): Likewise.
12931 (iv_elimination_compare_lt): Likewise.
12932 (may_eliminate_iv): Likewise.
12933 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12934 instead of double_int.
12935 (max_loop_iterations): Likewise.
12936 (max_stmt_executions): Likewise.
12937 (estimated_stmt_executions): Likewise.
12938 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12939 (split_to_var_and_offset): Use wide-int interfaces.
12940 (determine_value_range): Likewise.
12941 (bound_difference_of_offsetted_base): Likewise.
12942 (bounds_add): Take a widest_int instead of a double_int.
12943 (number_of_iterations_ne_max): Use wide-int interfaces.
12944 (number_of_iterations_ne): Likewise.
12945 (number_of_iterations_lt_to_ne): Likewise.
12946 (assert_loop_rolls_lt): Likewise.
12947 (number_of_iterations_lt): Likewise.
12948 (number_of_iterations_le): Likewise.
12949 (number_of_iterations_cond): Likewise.
12950 (number_of_iterations_exit): Likewise.
12951 (finite_loop_p): Likewise.
12952 (derive_constant_upper_bound_assign): Likewise.
12953 (derive_constant_upper_bound): Return a widest_int.
12954 (derive_constant_upper_bound_ops): Likewise.
12955 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12956 (record_estimate): Take a widest_int rather than a double_int.
12957 (record_nonwrapping_iv): Use wide-int interfaces.
12958 (double_int_cmp): Delete.
12959 (wide_int_cmp): New.
12960 (bound_index): Take a widest_int rather than a double_int.
12961 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12962 (maybe_lower_iteration_bound): Likewise.
12963 (estimate_numbers_of_iterations_loop): Likewise.
12964 (estimated_loop_iterations): Take a widest_int pointer than than
12965 a double_int pointer.
12966 (estimated_loop_iterations_int): Use wide-int interfaces.
12967 (max_loop_iterations): Take a widest_int pointer than than
12968 a double_int pointer.
12969 (max_loop_iterations_int): Use wide-int interfaces.
12970 (max_stmt_executions): Take a widest_int pointer than than
12971 a double_int pointer.
12972 (estimated_stmt_executions): Likewise.
12973 (n_of_executions_at_most): Use wide-int interfaces.
12974 (scev_probably_wraps_p): Likewise.
12975 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12976 to real_to_integer.
12977 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12979 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12980 double_ints. Adjust for trailing_wide_ints <3> representation.
12981 (set_nonzero_bits): Likewise.
12982 (get_range_info): Return wide_ints rather than double_ints.
12983 Adjust for trailing_wide_ints <3> representation.
12984 (get_nonzero_bits): Likewise.
12985 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12987 * tree-ssanames.h (struct range_info_def): Replace min, max and
12988 nonzero_bits with a trailing_wide_ints <3>.
12989 (set_range_info): Use wide_int_refs rather than double_ints.
12990 (set_nonzero_bits): Likewise.
12991 (get_range_info): Return wide_ints rather than double_ints.
12992 (get_nonzero_bits): Likewise.
12993 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12994 * tree-ssa-pre.c (phi_translate_1): Likewise.
12995 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12996 (acceptable_pow_call): Likewise.
12997 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12999 (vn_reference_fold_indirect): Likewise.
13000 (vn_reference_maybe_forwprop_address): Likewise.
13001 (valueize_refs_1): Likewise.
13002 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13003 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13004 tree_int_cst_lt and tree_int_cst_le.
13005 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13007 (streamer_alloc_tree): Likewise.
13008 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13009 (streamer_write_tree_header): Likewise.
13010 (streamer_write_integer_cst): Likewise.
13011 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13012 (build_constructors): Likewise.
13013 (array_value_type): Likewise.
13014 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13015 (vect_check_gather): Likewise.
13016 * tree-vect-generic.c (build_replicated_const): Likewise.
13017 (expand_vector_divmod): Likewise.
13018 * tree-vect-loop.c (vect_transform_loop): Likewise.
13019 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13020 (vect_do_peeling_for_alignment): Likewise.
13021 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13022 * tree-vrp.c: Include wide-int.h.
13023 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13024 (extract_range_from_assert): Use wide-int interfaces.
13025 (vrp_int_const_binop): Likewise.
13026 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13027 double_int pointers.
13028 (ranges_from_anti_range): Use wide-int interfaces.
13029 (quad_int_cmp): Delete.
13030 (quad_int_pair_sort): Likewise.
13031 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13032 (extract_range_from_unary_expr_1): Likewise.
13033 (adjust_range_with_scev): Likewise.
13034 (masked_increment): Take and return wide_ints rather than double_ints.
13035 (register_edge_assert_for_2): Use wide-int interfaces.
13036 (check_array_ref): Likewise.
13037 (search_for_addr_array): Likewise.
13038 (maybe_set_nonzero_bits): Likewise.
13039 (union_ranges): Pass an integer of the correct type instead of
13040 using integer_one_node.
13041 (intersect_ranges): Likewise.
13042 (simplify_truth_ops_using_ranges): Likewise.
13043 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13044 (range_fits_type_p): Likewise.
13045 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13047 (simplify_conversion_using_ranges): Use wide-int interfaces.
13048 (simplify_float_conversion_using_ranges): Likewise.
13049 (vrp_finalize): Likewise.
13050 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13051 (gimple_stringops_transform): Likewise.
13052 * varasm.c (decode_addr_const): Likewise.
13053 (const_hash_1): Likewise.
13054 (const_rtx_hash_1): Likewise
13055 (output_constant): Likewise.
13056 (array_size_for_constructor): Likewise.
13057 (output_constructor_regular_field): Likewise.
13058 (output_constructor_bitfield): Likewise.
13059 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13060 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13062 * gencheck.c: Define BITS_PER_UNIT.
13063 * wide-int.cc: New.
13065 * wide-int-print.cc: New.
13066 * wide-int-print.h: New.
13068 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13070 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13072 2014-05-06 Richard Biener <rguenther@suse.de>
13074 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13075 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13076 (TODO_verify_all): Adjust.
13077 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13078 TODO_verify_stmts and TODO_verify_rtl_sharing.
13079 * bb-reorder.c: Likewise.
13080 * cfgexpand.c: Likewise.
13081 * cprop.c: Likewise.
13083 * function.c: Likewise.
13084 * fwprop.c: Likewise.
13085 * gcse.c: Likewise.
13086 * gimple-ssa-isolate-paths.c: Likewise.
13087 * gimple-ssa-strength-reduction.c: Likewise.
13088 * ipa-split.c: Likewise.
13089 * loop-init.c: Likewise.
13090 * loop-unroll.c: Likewise.
13091 * lower-subreg.c: Likewise.
13092 * modulo-sched.c: Likewise.
13093 * postreload-gcse.c: Likewise.
13094 * predict.c: Likewise.
13095 * recog.c: Likewise.
13096 * sched-rgn.c: Likewise.
13097 * store-motion.c: Likewise.
13098 * tracer.c: Likewise.
13099 * trans-mem.c: Likewise.
13100 * tree-call-cdce.c: Likewise.
13101 * tree-cfg.c: Likewise.
13102 * tree-cfgcleanup.c: Likewise.
13103 * tree-complex.c: Likewise.
13104 * tree-eh.c: Likewise.
13105 * tree-emutls.c: Likewise.
13106 * tree-if-conv.c: Likewise.
13107 * tree-into-ssa.c: Likewise.
13108 * tree-loop-distribution.c: Likewise.
13109 * tree-object-size.c: Likewise.
13110 * tree-parloops.c: Likewise.
13111 * tree-pass.h: Likewise.
13112 * tree-sra.c: Likewise.
13113 * tree-ssa-ccp.c: Likewise.
13114 * tree-ssa-copy.c: Likewise.
13115 * tree-ssa-copyrename.c: Likewise.
13116 * tree-ssa-dce.c: Likewise.
13117 * tree-ssa-dom.c: Likewise.
13118 * tree-ssa-dse.c: Likewise.
13119 * tree-ssa-forwprop.c: Likewise.
13120 * tree-ssa-ifcombine.c: Likewise.
13121 * tree-ssa-loop-ch.c: Likewise.
13122 * tree-ssa-loop-ivcanon.c: Likewise.
13123 * tree-ssa-loop.c: Likewise.
13124 * tree-ssa-math-opts.c: Likewise.
13125 * tree-ssa-phiopt.c: Likewise.
13126 * tree-ssa-phiprop.c: Likewise.
13127 * tree-ssa-pre.c: Likewise.
13128 * tree-ssa-reassoc.c: Likewise.
13129 * tree-ssa-sink.c: Likewise.
13130 * tree-ssa-strlen.c: Likewise.
13131 * tree-ssa-tail-merge.c: Likewise.
13132 * tree-ssa-uncprop.c: Likewise.
13133 * tree-switch-conversion.c: Likewise.
13134 * tree-tailcall.c: Likewise.
13135 * tree-vect-generic.c: Likewise.
13136 * tree-vectorizer.c: Likewise.
13137 * tree-vrp.c: Likewise.
13138 * tsan.c: Likewise.
13139 * var-tracking.c: Likewise.
13140 * bt-load.c: Likewise.
13141 * cfgcleanup.c: Likewise.
13142 * combine-stack-adj.c: Likewise.
13143 * combine.c: Likewise.
13144 * compare-elim.c: Likewise.
13145 * config/epiphany/resolve-sw-modes.c: Likewise.
13146 * config/i386/i386.c: Likewise.
13147 * config/mips/mips.c: Likewise.
13148 * config/s390/s390.c: Likewise.
13149 * config/sh/sh_treg_combine.cc: Likewise.
13150 * config/sparc/sparc.c: Likewise.
13153 * final.c: Likewise.
13154 * ifcvt.c: Likewise.
13155 * mode-switching.c: Likewise.
13156 * passes.c: Likewise.
13157 * postreload.c: Likewise.
13159 * reg-stack.c: Likewise.
13160 * regcprop.c: Likewise.
13161 * regrename.c: Likewise.
13164 2014-05-06 Richard Biener <rguenther@suse.de>
13166 PR middle-end/61070
13167 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13168 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13170 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13173 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13175 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13176 Tom de Vries <tom@codesourcery.com>
13178 * target.def (call_fusage_contains_non_callee_clobbers): New
13180 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13182 (@node Miscellaneous Register Hooks): New node.
13183 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13184 * doc/tm.texi: Regenerate.
13186 2014-05-05 Marek Polacek <polacek@redhat.com>
13189 * opts.c (common_handle_option): Call error_at instead of warning_at.
13191 2014-05-05 Richard Biener <rguenther@suse.de>
13193 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13194 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13195 under the TODO_verify_il umbrella.
13197 2014-05-05 Richard Biener <rguenther@suse.de>
13199 * passes.c (execute_function_todo): Move TODO_verify_flow under
13200 the TODO_verify_ul umbrella.
13202 2014-05-05 Richard Biener <rguenther@suse.de>
13204 PR middle-end/61010
13205 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13206 X & CST away from a CST that is the mask of a mode.
13208 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13210 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13211 int argument to enum machine_mode.
13212 (picochip_class_max_nregs): Ditto.
13213 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13214 (picochip_class_max_nregs): Ditto.
13216 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13218 * target.def: Add new target hook.
13219 * doc/tm.texi: Regenerate.
13220 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13221 * targhooks.c (default_keep_leaf_when_profiled): New function.
13223 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13224 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13226 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13228 PR tree-optimization/60363
13229 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13230 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13231 (update_destination_phis): New parameter.
13232 (create_edge_and_update_destination_phis): Ditto.
13233 (ssa_fix_duplicate_block_edges): Pass new arguments.
13234 (thread_single_edge): Ditto.
13236 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13238 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13239 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13240 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13241 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13242 Use RS6000_BTM_HARD_FLOAT.
13243 (BU_MISC_2): Likewise.
13244 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13245 RS6000_BTM_HARD_FLOAT.
13246 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13247 is explicitly used.
13248 (rs6000_invalid_builtin): Add hard floating builtin support.
13249 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13250 hard float builtins.
13251 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13253 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13255 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13256 Add missing function* argument.
13258 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13260 * lra-constraints.c (valid_address_p): Move earlier in file.
13261 Add a constraint argument to the address_info version.
13262 (satisfies_memory_constraint_p): New function.
13263 (satisfies_address_constraint_p): Likewise.
13264 (process_alt_operands, curr_insn_transform): Use them.
13265 (process_address): Pass the constraint to valid_address_p when
13266 checking address operands.
13268 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13270 * config/mips/mips.c (mips_isa_rev): New variable.
13271 (mips_set_architecture): Set it.
13272 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13274 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13275 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13276 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13277 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13278 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13279 conditions in terms of mips_isa_rev.
13280 (mips_isa_rev): Declare.
13282 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13284 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13285 (prob_unlikely, prob_likely): Make variables const.
13287 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13289 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13291 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13293 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13295 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13297 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13298 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13299 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13301 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13302 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13304 Replace usage of ROUND_REG with sh_round_reg.
13305 Use CEIL instead of ROUND_ADVANCE.
13307 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13310 * config/sh/sh.c: Include stdlib headers before everything else.
13312 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13314 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13315 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13316 (gimplify_adjust_omp_clauses): Simd region is never
13317 directly nested in combined parallel. Instead, for linear
13318 with copyin/copyout, if in combined for simd loop, make decl
13319 firstprivate/lastprivate on OMP_FOR.
13320 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13321 expand_omp_for_static_chunk): When setting endvar, also set
13322 fd->loop.v to the same value.
13324 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13326 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13328 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13330 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13333 2014-05-02 Marek Polacek <polacek@redhat.com>
13335 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13337 2014-05-02 Kito Cheng <kito@0xlab.org>
13339 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13340 to a C expression marco.
13341 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13342 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13343 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13344 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13345 HONOR_REG_ALLOC_ORDER.
13346 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13348 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13350 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13352 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13354 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13356 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13358 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13359 (convert_scalar_cond_reduction): Likewise.
13360 (predicate_scalar_phi): Add recognition and transformation
13361 of simple conditioanl reduction to be vectorizable.
13363 2014-05-01 Marek Polacek <polacek@redhat.com>
13366 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13368 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13370 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13371 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13372 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13373 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13374 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13375 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13376 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13377 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13379 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13381 * config/arc/arc.opt (mlra): Move comment above option name
13382 to avoid mis-parsing as language options.
13384 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13386 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13387 * config/sol2.h: ... here.
13388 * config/sol2-10.h: Remove.
13390 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13391 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13392 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13393 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13394 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13395 * config/sol2.h: ... here.
13396 (SECTION_NAME_FORMAT): Don't redefine.
13397 (STARTFILE_ARCH32_SPEC): Rename to ...
13398 (STARTFILE_ARCH_SPEC): ... this.
13399 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13400 * config/sparc/sol2.h: ... here.
13401 (SECTION_NAME_FORMAT): Don't undef.
13402 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13403 (SUBTARGET_EXTRA_SPECS): Remove.
13404 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13406 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13407 (MD_STARTFILE_PREFIX): Remove.
13408 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13409 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13410 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13411 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13412 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13413 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13414 * config/i386/sol2.h: ... here.
13415 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13416 * config/i386/sol2-bi.h: Remove.
13417 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13418 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13420 * config/i386/t-sol2-64: Rename to ...
13421 * config/i386/t-sol2: ... this.
13422 * config/sparc/t-sol2-64: Rename to ...
13423 * config/sparc/t-sol2: ... this.
13425 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13426 sol2_tm_file_head, sol2_tm_file_tail.
13427 Include ${cpu_type}/sol2.h before sol2.h.
13429 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13430 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13431 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13432 Reflect i386/t-sol2-64 renaming.
13433 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13434 Reflect sparc/t-sol2-64 renaming.
13436 2014-04-30 Richard Biener <rguenther@suse.de>
13438 * passes.c (execute_function_todo): Move TODO_verify_stmts
13439 and TODO_verify_ssa under the TODO_verify_il umbrella.
13440 * tree-ssa.h (verify_ssa): Adjust prototype.
13441 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13442 we should verify SSA operands.
13443 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13444 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13445 whether we should verify whether not throwing stmts have EH info.
13446 * graphite-scop-detection.c (create_sese_edges): Adjust.
13447 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13448 * tree-eh.c (lower_try_finally_switch): Do not add the
13449 default case label twice.
13451 2014-04-30 Marek Polacek <polacek@redhat.com>
13453 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13454 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13455 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13456 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13458 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13460 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13461 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13462 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13463 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13464 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13465 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13466 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13467 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13469 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13471 * tree-cfg.c (dump_function_to_file): Dump the return type of
13472 functions, in a line to itself before the function body, mimicking
13473 the layout of a C function.
13475 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13477 PR tree-optimization/60971
13478 * tree-tailcall.c (process_assignment): Reject conversions which
13481 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13483 * calls.c (initialize_argument_information): Always treat
13484 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13485 (expand_call): Likewise.
13486 (emit_library_call_calue_1): Likewise.
13487 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13488 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13491 2014-04-29 Nick Clifton <nickc@redhat.com>
13493 * config/msp430/msp430.md (umulsidi): Fix typo.
13494 (mulhisi3): Enable even inside interrupt handlers.
13495 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13496 bigger return address pushed in large mode.
13498 2014-04-29 Nick Clifton <nickc@redhat.com>
13500 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13501 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13503 * config/m32r/m32r.c (init_reg_tables): Likewise.
13504 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13505 enum to hold the modes.
13507 2014-04-29 Richard Biener <rguenther@suse.de>
13509 * dominance.c (free_dominance_info): Add overload with
13510 function parameter.
13511 (dom_info_state): Likewise.
13512 (dom_info_available_p): Likewise.
13513 * basic-block.h (free_dominance_info, dom_info_state,
13514 dom_info_available_p): Declare overloads.
13515 * passes.c (execute_function_todo): Verify that verifiers
13516 don't change dominator info state. Drop dominator info
13517 for IPA pass invocations.
13518 * cgraph.c (release_function_body): Restore asserts that
13519 dominator information is released.
13521 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13523 * doc/invoke.texi: Fix typo.
13524 * tree-vrp.c: Fix typos.
13525 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13527 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13529 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13531 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13533 * config/aarch64/aarch64-builtins.c
13534 (aarch64_types_storestruct_lane_qualifiers): New.
13535 (TYPES_STORESTRUCT_LANE): Likewise.
13536 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13537 (st3_lane): Likewise.
13538 (st4_lane): Likewise.
13539 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13540 (vec_store_lanesci_lane<mode>): Likewise.
13541 (vec_store_lanesxi_lane<mode>): Likewise.
13542 (aarch64_st2_lane<VQ:mode>): Likewise.
13543 (aarch64_st3_lane<VQ:mode>): Likewise.
13544 (aarch64_st4_lane<VQ:mode>): Likewise.
13545 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13546 * config/aarch64/arm_neon.h
13547 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13548 use new macro arguments.
13549 (__ST3_LANE_FUNC): Likewise.
13550 (__ST4_LANE_FUNC): Likewise.
13551 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13552 (V_THREE_ELEM): Likewise.
13553 (V_FOUR_ELEM): Likewise.
13555 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13557 * doc/gimple.texi: Replace the description of the now-defunct
13558 union gimple_statement_d with a diagram showing the
13559 gimple_statement_base class hierarchy and its relationships to
13560 the GSS_ and GIMPLE_ enums.
13562 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13564 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13565 * config/aarch64/aarch64.c
13566 (aarch64_cannot_change_mode_class): Weaken conditions.
13567 (aarch64_modes_tieable_p): New.
13568 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13570 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13572 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13573 (loadsync_<mode>): Change mode.
13574 (load_quadpti, store_quadpti): New.
13575 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13576 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13578 2014-04-28 Martin Jambor <mjambor@suse.cz>
13580 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13581 same alias type as the original statement.
13582 (subreplacement_assignment_data): New type.
13583 (handle_unscalarized_data_in_subtree): New type of parameter,
13584 generate new memory accesses with same alias type as the original
13586 (load_assign_lhs_subreplacements): Likewise.
13587 (sra_modify_constructor_assign): Generate new memory accesses with
13588 same alias type as the original statement.
13590 2014-04-28 Richard Biener <rguenther@suse.de>
13592 * tree-pass.h (TODO_verify_il): Define.
13593 (TODO_verify_all): Complete properly.
13594 * passes.c (execute_function_todo): Move existing loop-closed
13595 SSA verification under TODO_verify_il.
13596 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13597 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13598 Fix tree sharing issue.
13600 2014-04-28 Richard Biener <rguenther@suse.de>
13602 PR middle-end/60092
13603 * builtins.def (DEF_C11_BUILTIN): Add.
13604 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13605 * coretypes.h (enum function_class): Add function_c11_misc.
13606 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13607 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13608 (call_may_clobber_ref_p_1): Likewise.
13609 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13610 (mark_all_reaching_defs_necessary_1): Likewise.
13611 (propagate_necessity): Likewise.
13612 (eliminate_unnecessary_stmts): Likewise.
13613 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13615 2014-04-28 Richard Biener <rguenther@suse.de>
13617 * tree-vrp.c (vrp_var_may_overflow): Remove.
13618 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13619 with overflow immediately bump to one before that value and
13620 let iteration figure out overflow status.
13622 2014-04-28 Richard Biener <rguenther@suse.de>
13624 * configure.ac: Do valgrind header checks unconditionally.
13625 Add --enable-valgrind-annotations.
13626 * system.h: Guard valgrind header inclusion with
13627 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13628 * alloc-pool.c (pool_alloc, pool_free): Use
13629 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13630 to guard possibly dead code.
13631 * config.in: Regenerated.
13632 * configure: Likewise.
13634 2014-04-28 Jeff Law <law@redhat.com>
13636 PR tree-optimization/60902
13637 * tree-ssa-threadedge.c
13638 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13639 over real defs when invalidating outputs from statements that do not
13640 produce useful outputs for threading.
13642 2014-04-28 Richard Biener <rguenther@suse.de>
13644 PR tree-optimization/60979
13645 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13646 SCOPs that end in a block with a successor with abnormal
13649 2014-04-28 Richard Biener <rguenther@suse.de>
13651 * tree-pass.h (execute_pass_list): Adjust prototype.
13652 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13653 (do_per_function): Change callback signature, push all actual
13654 work to the callbals.
13655 (do_per_function_toporder): Likewise.
13656 (execute_function_dump): Adjust.
13657 (execute_function_todo): Likewise.
13658 (clear_last_verified): Likewise.
13659 (verify_curr_properties): Likewise.
13660 (update_properties_after_pass): Likewise.
13661 (execute_pass_list_1): Split out from ...
13662 (execute_pass_list): ... here. Adjust.
13663 (execute_ipa_pass_list): Likewise.
13664 * cgraphunit.c (cgraph_add_new_function): Adjust.
13665 (analyze_function): Likewise.
13666 (expand_function): Likewise.
13667 * cgraph.c (release_function_body): Free dominance info
13668 here instead of asserting it was magically freed elsewhere.
13670 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13672 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13673 * configure: Regenerate.
13674 * config/sparc/sparc.opt (muser-mode): New option.
13675 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13677 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13678 * doc/invoke.texi (SPARC options): Document -muser-mode.
13680 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13682 * cselib.c (find_slot_memmode): Delete.
13683 (cselib_hasher): Change compare_type to a struct.
13684 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13686 (preserve_constants_and_equivs): Adjust for new compare_type.
13687 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13688 (wrap_constant): Delete.
13689 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13691 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13693 * doc/install.texi (Building with profile feedback): Remove
13696 2014-04-26 Tom de Vries <tom@codesourcery.com>
13698 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13701 2014-04-25 Cary Coutant <ccoutant@google.com>
13704 * dwarf2out.c (should_move_die_to_comdat): A type definition
13705 can contain a subprogram definition, but don't move it to a
13707 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13708 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13710 (clone_tree_hash): Rename to...
13711 (clone_tree_partial): ...this; change callers. Copy
13712 DW_TAG_subprogram DIEs as declarations.
13713 (copy_decls_walk): Don't copy children of a declaration into a
13716 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13719 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13722 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13724 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13725 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13727 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13730 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13732 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13734 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13736 PR tree-optimization/60930
13737 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13738 creating a multiply candidate by folding two constant
13739 multiplicands when the result overflows.
13741 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13743 PR tree-optimization/60960
13744 * tree-vect-generic.c (expand_vector_operation): Only call
13745 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13747 2014-04-25 Tom de Vries <tom@codesourcery.com>
13749 * expr.c (clobber_reg_mode): New function.
13750 * expr.h (clobber_reg): New function.
13752 2014-04-25 Tom de Vries <tom@codesourcery.com>
13754 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13757 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13758 Tom de Vries <tom@codesourcery.com>
13760 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13762 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13763 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13764 new argument to find_all_hard_reg_sets call.
13766 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13768 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13769 Use HOST_WIDE_INT_C for mask literal.
13770 (aarch_rev16_shleft_mask_imm_p): Likewise.
13772 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13775 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13777 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13779 PR preprocessor/56540
13780 * config/i386/i386-c.c (ix86_target_macros): Define
13781 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13783 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13785 * configure.ac (tga_func): Remove.
13786 (LIB_TLS_SPEC): Remove.
13787 * configure: Regenerate.
13788 * config.in: Regenerate.
13789 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13791 2014-04-25 Richard Biener <rguenther@suse.de>
13794 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13795 call stmt use/clobber sets during stmt walk instead of
13796 walking the possibly incomplete set of caller edges.
13798 2014-04-25 Richard Biener <rguenther@suse.de>
13801 * passes.c (apply_ipa_transforms): Inline into only caller ...
13802 (execute_one_pass): ... here. Properly bring in function
13803 bodies for nodes we want to apply IPA transforms to.
13805 2014-04-24 Cong Hou <congh@google.com>
13807 PR tree-optimization/60896
13808 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13809 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13810 (vect_mark_pattern_stmts): Set the def type of all statements in
13811 PATTERN_DEF_SEQ as vect_internal_def.
13813 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13815 * doc/extend.texi (PowerPC Built-in Functions): Document new
13816 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13817 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13819 * config/rs6000/predicates.md (const_0_to_3_operand): New
13820 predicate to match 0..3 integer constants.
13822 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13823 to support adding miscellaneous builtin functions.
13824 (BU_DFP_MISC_2): Likewise.
13825 (BU_P7_MISC_1): Likewise.
13826 (BU_P7_MISC_2): Likewise.
13827 (BU_P8V_MISC_3): Likewise.
13828 (BU_MISC_1): Likewise.
13829 (BU_MISC_2): Likewise.
13830 (DIVWE): Add extended divide builtin functions.
13831 (DIVWEO): Likewise.
13832 (DIVWEU): Likewise.
13833 (DIVWEUO): Likewise.
13835 (DIVDEO): Likewise.
13836 (DIVDEU): Likewise.
13837 (DIVDEUO): Likewise.
13838 (DXEX): Add decimal floating-point builtin functions.
13840 (DDEDPD): Likewise.
13841 (DDEDPDQ): Likewise.
13842 (DENBCD): Likewise.
13843 (DENBCDQ): Likewise.
13847 (DSCLIQ): Likewise.
13849 (DSCRIQ): Likewise.
13850 (CDTBCD): Add new BCD builtin functions.
13851 (CBCDTD): Likewise.
13852 (ADDG6S): Likewise.
13853 (BCDADD): Likewise.
13854 (BCDADD_LT): Likewise.
13855 (BCDADD_EQ): Likewise.
13856 (BCDADD_GT): Likewise.
13857 (BCDADD_OV): Likewise.
13858 (BCDSUB): Likewise.
13859 (BCDSUB_LT): Likewise.
13860 (BCDSUB_EQ): Likewise.
13861 (BCDSUB_GT): Likewise.
13862 (BCDSUB_OV): Likewise.
13863 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13864 (UNPACK_TD): Likewise.
13865 (PACK_TF): Likewise.
13866 (UNPACK_TF): Likewise.
13867 (UNPACK_TF_0): Likewise.
13868 (UNPACK_TF_1): Likewise.
13869 (PACK_V1TI): Likewise.
13870 (UNPACK_V1TI): Likewise.
13872 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13873 support for decimal floating point builtin functions.
13874 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13875 functions that take constant arguments.
13876 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13877 (rs6000_init_builtins): Setup long double, _Decimal64, and
13878 _Decimal128 types for new builtin functions.
13879 (builtin_function_type): Set the unsigned flags appropriately for
13880 the new builtin functions.
13881 (rs6000_opt_masks): Add support for decimal floating point builtin
13884 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13885 floating point builtin functions.
13886 (RS6000_BTM_COMMON): Likewise.
13887 (RS6000_BTI_long_double): Likewise.
13888 (RS6000_BTI_dfloat64): Likewise.
13889 (RS6000_BTI_dfloat128): Likewise.
13890 (long_double_type_internal_node): Likewise.
13891 (dfloat64_type_internal_node): Likewise.
13892 (dfloat128_type_internal_node): Likewise.
13894 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13895 2.07 bcd arithmetic instructions.
13896 (UNSPEC_BCDSUB): Likewise.
13897 (UNSPEC_BCD_OVERFLOW): Likewise.
13898 (UNSPEC_BCD_ADD_SUB): Likewise.
13899 (bcd_add_sub): Likewise.
13900 (BCD_TEST): Likewise.
13901 (bcd<bcd_add_sub>): Likewise.
13902 (bcd<bcd_add_sub>_test): Likewise.
13903 (bcd<bcd_add_sub>_test2): Likewise.
13904 (bcd<bcd_add_sub>_<code>): Likewise.
13905 (peephole2 for combined bcd ops): Likewise.
13907 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13908 decimal floating point builtin functions.
13909 (UNSPEC_DENBCD): Likewise.
13910 (UNSPEC_DXEX): Likewise.
13911 (UNSPEC_DIEX): Likewise.
13912 (UNSPEC_DSCLI): Likewise.
13913 (UNSPEC_DSCRI): Likewise.
13914 (D64_D128): Likewise.
13915 (dfp_suffix): Likewise.
13916 (dfp_ddedpd_<mode>): Likewise.
13917 (dfp_denbcd_<mode>): Likewise.
13918 (dfp_dxex_<mode>): Likewise.
13919 (dfp_diex_<mode>): Likewise.
13920 (dfp_dscli_<mode>): Likewise.
13921 (dfp_dscri_<mode>): Likewise.
13923 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13925 (UNSPEC_CDTBCD): Likewise.
13926 (UNSPEC_CBCDTD): Likewise.
13927 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13928 (UNSPEC_DIVEO): Likewise.
13929 (UNSPEC_DIVEU): Likewise.
13930 (UNSPEC_DIVEUO): Likewise.
13931 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13932 pack/unpack 128-bit types.
13933 (UNSPEC_PACK_128BIT): Likewise.
13934 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13935 (udiv<mode>3): Use idiv_ldiv mode attribute.
13936 (div<mode>3): Likewise.
13937 (addg6s): Add new BCD builtin functions.
13938 (cdtbcd): Likewise.
13939 (cbcdtd): Likewise.
13940 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13941 (div_extend): Likewise.
13942 (div<div_extend>_<mode>"): Likewise.
13943 (FP128_64): Add support for new builtin functions to pack/unpack
13945 (unpack<mode>): Likewise.
13946 (unpacktf_0): Likewise.
13947 (unpacktf_1): Likewise.
13948 (unpack<mode>_dm): Likewise.
13949 (unpack<mode>_nodm): Likewise.
13950 (pack<mode>): Likewise.
13951 (unpackv1ti): Likewise.
13952 (packv1ti): Likewise.
13954 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13956 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13959 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13961 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13962 * gimplify.c (omp_is_private): Change last argument's type to int.
13963 Only diagnose lastprivate if the simd argument is 1, only diagnose
13964 linear if the simd argument is 2.
13965 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13966 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13967 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13968 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13969 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13970 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13971 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13972 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13973 * tree-nested.c (convert_nonlocal_omp_clauses,
13974 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13976 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13979 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13982 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13984 * flag-types.h (enum ivar_visibility): Add.
13986 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13988 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13989 function * argument.
13991 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13993 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13995 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13996 Tom de Vries <tom@codesourcery.com>
13998 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13999 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14001 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14002 * emit-rtl.c (try_split): Same.
14004 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14005 Tom de Vries <tom@codesourcery.com>
14007 * common.opt (fuse-caller-save): New option.
14009 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14011 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14012 elements for big-endian.
14014 2014-04-24 Richard Biener <rguenther@suse.de>
14016 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14017 during TER and instead use the sepops interface for expanding
14018 non-GIMPLE_SINGLE_RHS.
14020 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14022 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14023 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14025 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14027 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14028 assembler 64-bit option.
14029 * configure: Regenerate.
14031 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14033 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14034 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14035 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14036 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14037 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14039 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14041 * config/aarch64/aarch64-builtins.c
14042 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14043 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14044 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14045 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14047 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14048 (Vrevsuff): New mode attribute.
14050 2014-04-24 Terry Guo <terry.guo@arm.com>
14052 * config/arm/arm.h (machine_function): Define variable
14053 after_arm_reorg here.
14054 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14055 (arm_split_constant): Update the way to access variable
14057 (arm_reorg): Ditto.
14058 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14060 2014-04-23 Tom de Vries <tom@codesourcery.com>
14062 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14064 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14066 * is-a.h: Update comments to reflect the following changes to the
14067 "pointerness" of the API, making the template parameter match the
14068 return type, allowing use of is-a.h with typedefs of pointers.
14069 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14070 that the return type matches the parameter to the is_a_helper.
14072 (dyn_cast): Likewise.
14074 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14075 pointer from the is-a.h API.
14077 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14078 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14080 (is_a_helper <varpool_node>::test): Likewise, convert to...
14081 (is_a_helper <varpool_node *>::test): ...this.
14083 (varpool_first_variable): Update for removal of implicit pointer
14084 from the is-a.h API.
14085 (varpool_next_variable): Likewise.
14086 (varpool_first_static_initializer): Likewise.
14087 (varpool_next_static_initializer): Likewise.
14088 (varpool_first_defined_variable): Likewise.
14089 (varpool_next_defined_variable): Likewise.
14090 (cgraph_first_defined_function): Likewise.
14091 (cgraph_next_defined_function): Likewise.
14092 (cgraph_first_function): Likewise.
14093 (cgraph_next_function): Likewise.
14094 (cgraph_first_function_with_gimple_body): Likewise.
14095 (cgraph_next_function_with_gimple_body): Likewise.
14096 (cgraph_alias_target): Likewise.
14097 (varpool_alias_target): Likewise.
14098 (cgraph_function_or_thunk_node): Likewise.
14099 (varpool_variable_node): Likewise.
14100 (symtab_real_symbol_p): Likewise.
14101 * cgraphunit.c (referred_to_p): Likewise.
14102 (analyze_functions): Likewise.
14103 (handle_alias_pairs): Likewise.
14104 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14105 * gimple-ssa.h (gimple_vuse_op): Likewise.
14106 (gimple_vdef_op): Likewise.
14107 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14108 * gimple.c (gimple_build_asm_1): Likewise.
14109 (gimple_build_try): Likewise.
14110 (gimple_build_resx): Likewise.
14111 (gimple_build_eh_dispatch): Likewise.
14112 (gimple_build_omp_for): Likewise.
14113 (gimple_omp_for_set_clauses): Likewise.
14115 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14116 (is_a_helper <gimple_statement_asm *>::test): ...this.
14117 (is_a_helper <gimple_statement_bind>::test): Convert to...
14118 (is_a_helper <gimple_statement_bind *>::test): ...this.
14119 (is_a_helper <gimple_statement_call>::test): Convert to...
14120 (is_a_helper <gimple_statement_call *>::test): ...this.
14121 (is_a_helper <gimple_statement_catch>::test): Convert to...
14122 (is_a_helper <gimple_statement_catch *>::test): ...this.
14123 (is_a_helper <gimple_statement_resx>::test): Convert to...
14124 (is_a_helper <gimple_statement_resx *>::test): ...this.
14125 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14126 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14127 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14128 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14129 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14130 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14131 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14132 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14133 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14134 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14135 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14136 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14137 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14138 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14139 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14140 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14141 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14142 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14143 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14144 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14145 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14146 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14147 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14148 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14149 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14150 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14151 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14152 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14153 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14154 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14155 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14156 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14157 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14158 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14159 (is_a_helper <gimple_statement_phi>::test): Convert to...
14160 (is_a_helper <gimple_statement_phi *>::test): ...this.
14161 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14162 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14163 (is_a_helper <gimple_statement_try>::test): Convert to...
14164 (is_a_helper <gimple_statement_try *>::test): ...this.
14165 (is_a_helper <gimple_statement_wce>::test): Convert to...
14166 (is_a_helper <gimple_statement_wce *>::test): ...this.
14167 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14168 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14169 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14170 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14171 (is_a_helper <const gimple_statement_call>::test): Convert to...
14172 (is_a_helper <const gimple_statement_call *>::test): ...this.
14173 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14174 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14175 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14176 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14177 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14178 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14179 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14180 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14181 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14183 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14185 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14187 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14189 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14190 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14191 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14193 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14194 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14196 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14197 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14198 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14199 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14200 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14201 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14203 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14204 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14205 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14206 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14208 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14209 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14210 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14211 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14212 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14213 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14214 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14215 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14216 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14217 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14218 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14219 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14220 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14221 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14222 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14223 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14225 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14227 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14228 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14230 (gimple_use_ops): Update for removal of implicit pointer from the
14232 (gimple_set_use_ops): Likewise.
14233 (gimple_vuse): Likewise.
14234 (gimple_vdef): Likewise.
14235 (gimple_vuse_ptr): Likewise.
14236 (gimple_vdef_ptr): Likewise.
14237 (gimple_set_vuse): Likewise.
14238 (gimple_set_vdef): Likewise.
14239 (gimple_omp_return_set_lhs): Likewise.
14240 (gimple_omp_return_lhs): Likewise.
14241 (gimple_omp_return_lhs_ptr): Likewise.
14242 (gimple_call_fntype): Likewise.
14243 (gimple_call_set_fntype): Likewise.
14244 (gimple_call_set_internal_fn): Likewise.
14245 (gimple_call_use_set): Likewise.
14246 (gimple_call_clobber_set): Likewise.
14247 (gimple_bind_vars): Likewise.
14248 (gimple_bind_set_vars): Likewise.
14249 (gimple_bind_body_ptr): Likewise.
14250 (gimple_bind_set_body): Likewise.
14251 (gimple_bind_add_stmt): Likewise.
14252 (gimple_bind_block): Likewise.
14253 (gimple_bind_set_block): Likewise.
14254 (gimple_asm_ninputs): Likewise.
14255 (gimple_asm_noutputs): Likewise.
14256 (gimple_asm_nclobbers): Likewise.
14257 (gimple_asm_nlabels): Likewise.
14258 (gimple_asm_input_op): Likewise.
14259 (gimple_asm_input_op_ptr): Likewise.
14260 (gimple_asm_output_op): Likewise.
14261 (gimple_asm_output_op_ptr): Likewise.
14262 (gimple_asm_set_output_op): Likewise.
14263 (gimple_asm_clobber_op): Likewise.
14264 (gimple_asm_set_clobber_op): Likewise.
14265 (gimple_asm_label_op): Likewise.
14266 (gimple_asm_set_label_op): Likewise.
14267 (gimple_asm_string): Likewise.
14268 (gimple_catch_types): Likewise.
14269 (gimple_catch_types_ptr): Likewise.
14270 (gimple_catch_handler_ptr): Likewise.
14271 (gimple_catch_set_types): Likewise.
14272 (gimple_catch_set_handler): Likewise.
14273 (gimple_eh_filter_types): Likewise.
14274 (gimple_eh_filter_types_ptr): Likewise.
14275 (gimple_eh_filter_failure_ptr): Likewise.
14276 (gimple_eh_filter_set_types): Likewise.
14277 (gimple_eh_filter_set_failure): Likewise.
14278 (gimple_eh_must_not_throw_fndecl): Likewise.
14279 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14280 (gimple_eh_else_n_body_ptr): Likewise.
14281 (gimple_eh_else_e_body_ptr): Likewise.
14282 (gimple_eh_else_set_n_body): Likewise.
14283 (gimple_eh_else_set_e_body): Likewise.
14284 (gimple_try_eval_ptr): Likewise.
14285 (gimple_try_cleanup_ptr): Likewise.
14286 (gimple_try_set_eval): Likewise.
14287 (gimple_try_set_cleanup): Likewise.
14288 (gimple_wce_cleanup_ptr): Likewise.
14289 (gimple_wce_set_cleanup): Likewise.
14290 (gimple_phi_capacity): Likewise.
14291 (gimple_phi_num_args): Likewise.
14292 (gimple_phi_result): Likewise.
14293 (gimple_phi_result_ptr): Likewise.
14294 (gimple_phi_set_result): Likewise.
14295 (gimple_phi_arg): Likewise.
14296 (gimple_phi_set_arg): Likewise.
14297 (gimple_resx_region): Likewise.
14298 (gimple_resx_set_region): Likewise.
14299 (gimple_eh_dispatch_region): Likewise.
14300 (gimple_eh_dispatch_set_region): Likewise.
14301 (gimple_omp_critical_name): Likewise.
14302 (gimple_omp_critical_name_ptr): Likewise.
14303 (gimple_omp_critical_set_name): Likewise.
14304 (gimple_omp_for_clauses): Likewise.
14305 (gimple_omp_for_clauses_ptr): Likewise.
14306 (gimple_omp_for_set_clauses): Likewise.
14307 (gimple_omp_for_collapse): Likewise.
14308 (gimple_omp_for_index): Likewise.
14309 (gimple_omp_for_index_ptr): Likewise.
14310 (gimple_omp_for_set_index): Likewise.
14311 (gimple_omp_for_initial): Likewise.
14312 (gimple_omp_for_initial_ptr): Likewise.
14313 (gimple_omp_for_set_initial): Likewise.
14314 (gimple_omp_for_final): Likewise.
14315 (gimple_omp_for_final_ptr): Likewise.
14316 (gimple_omp_for_set_final): Likewise.
14317 (gimple_omp_for_incr): Likewise.
14318 (gimple_omp_for_incr_ptr): Likewise.
14319 (gimple_omp_for_set_incr): Likewise.
14320 (gimple_omp_for_pre_body_ptr): Likewise.
14321 (gimple_omp_for_set_pre_body): Likewise.
14322 (gimple_omp_parallel_clauses): Likewise.
14323 (gimple_omp_parallel_clauses_ptr): Likewise.
14324 (gimple_omp_parallel_set_clauses): Likewise.
14325 (gimple_omp_parallel_child_fn): Likewise.
14326 (gimple_omp_parallel_child_fn_ptr): Likewise.
14327 (gimple_omp_parallel_set_child_fn): Likewise.
14328 (gimple_omp_parallel_data_arg): Likewise.
14329 (gimple_omp_parallel_data_arg_ptr): Likewise.
14330 (gimple_omp_parallel_set_data_arg): Likewise.
14331 (gimple_omp_task_clauses): Likewise.
14332 (gimple_omp_task_clauses_ptr): Likewise.
14333 (gimple_omp_task_set_clauses): Likewise.
14334 (gimple_omp_task_child_fn): Likewise.
14335 (gimple_omp_task_child_fn_ptr): Likewise.
14336 (gimple_omp_task_set_child_fn): Likewise.
14337 (gimple_omp_task_data_arg): Likewise.
14338 (gimple_omp_task_data_arg_ptr): Likewise.
14339 (gimple_omp_task_set_data_arg): Likewise.
14340 (gimple_omp_taskreg_clauses): Likewise.
14341 (gimple_omp_taskreg_clauses_ptr): Likewise.
14342 (gimple_omp_taskreg_set_clauses): Likewise.
14343 (gimple_omp_taskreg_child_fn): Likewise.
14344 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14345 (gimple_omp_taskreg_set_child_fn): Likewise.
14346 (gimple_omp_taskreg_data_arg): Likewise.
14347 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14348 (gimple_omp_taskreg_set_data_arg): Likewise.
14349 (gimple_omp_task_copy_fn): Likewise.
14350 (gimple_omp_task_copy_fn_ptr): Likewise.
14351 (gimple_omp_task_set_copy_fn): Likewise.
14352 (gimple_omp_task_arg_size): Likewise.
14353 (gimple_omp_task_arg_size_ptr): Likewise.
14354 (gimple_omp_task_set_arg_size): Likewise.
14355 (gimple_omp_task_arg_align): Likewise.
14356 (gimple_omp_task_arg_align_ptr): Likewise.
14357 (gimple_omp_task_set_arg_align): Likewise.
14358 (gimple_omp_single_clauses): Likewise.
14359 (gimple_omp_single_clauses_ptr): Likewise.
14360 (gimple_omp_single_set_clauses): Likewise.
14361 (gimple_omp_target_clauses): Likewise.
14362 (gimple_omp_target_clauses_ptr): Likewise.
14363 (gimple_omp_target_set_clauses): Likewise.
14364 (gimple_omp_target_child_fn): Likewise.
14365 (gimple_omp_target_child_fn_ptr): Likewise.
14366 (gimple_omp_target_set_child_fn): Likewise.
14367 (gimple_omp_target_data_arg): Likewise.
14368 (gimple_omp_target_data_arg_ptr): Likewise.
14369 (gimple_omp_target_set_data_arg): Likewise.
14370 (gimple_omp_teams_clauses): Likewise.
14371 (gimple_omp_teams_clauses_ptr): Likewise.
14372 (gimple_omp_teams_set_clauses): Likewise.
14373 (gimple_omp_sections_clauses): Likewise.
14374 (gimple_omp_sections_clauses_ptr): Likewise.
14375 (gimple_omp_sections_set_clauses): Likewise.
14376 (gimple_omp_sections_control): Likewise.
14377 (gimple_omp_sections_control_ptr): Likewise.
14378 (gimple_omp_sections_set_control): Likewise.
14379 (gimple_omp_for_set_cond): Likewise.
14380 (gimple_omp_for_cond): Likewise.
14381 (gimple_omp_atomic_store_set_val): Likewise.
14382 (gimple_omp_atomic_store_val): Likewise.
14383 (gimple_omp_atomic_store_val_ptr): Likewise.
14384 (gimple_omp_atomic_load_set_lhs): Likewise.
14385 (gimple_omp_atomic_load_lhs): Likewise.
14386 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14387 (gimple_omp_atomic_load_set_rhs): Likewise.
14388 (gimple_omp_atomic_load_rhs): Likewise.
14389 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14390 (gimple_omp_continue_control_def): Likewise.
14391 (gimple_omp_continue_control_def_ptr): Likewise.
14392 (gimple_omp_continue_set_control_def): Likewise.
14393 (gimple_omp_continue_control_use): Likewise.
14394 (gimple_omp_continue_control_use_ptr): Likewise.
14395 (gimple_omp_continue_set_control_use): Likewise.
14396 (gimple_transaction_body_ptr): Likewise.
14397 (gimple_transaction_label): Likewise.
14398 (gimple_transaction_label_ptr): Likewise.
14399 (gimple_transaction_set_body): Likewise.
14400 (gimple_transaction_set_label): Likewise.
14402 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14403 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14404 * ipa-ref.c (ipa_record_reference): Likewise.
14405 * ipa-reference.c (analyze_function): Likewise.
14406 (ipa_reference_write_optimization_summary): Likewise.
14407 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14408 (address_taken_from_non_vtable_p): Likewise.
14409 (comdat_can_be_unshared_p_1): Likewise.
14410 * lto-cgraph.c (lto_output_ref): Likewise.
14411 (add_references): Likewise.
14412 (compute_ltrans_boundary): Likewise.
14413 (output_symtab): Likewise.
14414 (input_ref): Likewise.
14415 (input_cgraph_1): Likewise.
14416 (output_cgraph_opt_summary): Likewise.
14417 * lto-streamer-out.c (lto_output): Likewise.
14418 (output_symbol_p): Likewise.
14419 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14420 (lsei_start_function_in_partition): Likewise.
14421 (lsei_next_variable_in_partition): Likewise.
14422 (lsei_start_variable_in_partition): Likewise.
14423 * symtab.c (insert_to_assembler_name_hash): Likewise.
14424 (unlink_from_assembler_name_hash): Likewise.
14425 (symtab_unregister_node): Likewise.
14426 (symtab_remove_node): Likewise.
14427 (dump_symtab_node): Likewise.
14428 (verify_symtab_base): Likewise.
14429 (verify_symtab_node): Likewise.
14430 (symtab_make_decl_local): Likewise.
14431 (symtab_alias_ultimate_target): Likewise.
14432 (symtab_resolve_alias): Likewise.
14433 (symtab_get_symbol_partitioning_class): Likewise.
14434 * tree-phinodes.c (allocate_phi_node): Likewise.
14435 (reserve_phi_args_for_new_edge): Likewise.
14436 (remove_phi_args): Likewise.
14437 * varpool.c (varpool_node_for_asm): Likewise.
14438 (varpool_remove_unreferenced_decls): Likewise.
14440 2014-04-23 Jeff Law <law@redhat.com>
14442 PR tree-optimization/60902
14443 * tree-ssa-threadedge.c
14444 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14445 invalidate outputs from statements that do not produce useful
14446 outputs for threading.
14448 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14450 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14451 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14452 machine descriptions for Stack Smashing Protector.
14454 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14456 * aarch64.md (<optab>_rol<mode>3): New pattern.
14457 (<optab>_rolsi3_uxtw): Likewise.
14458 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14460 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14462 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14463 (arm_cortex_a12_tune): Likewise.
14465 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14467 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14469 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14471 * config/arm/arm.md (arm_rev16si2): New pattern.
14472 (arm_rev16si2_alt): Likewise.
14473 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14475 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14477 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14478 (rev16<mode>2_alt): Likewise.
14479 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14480 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14481 (aarch_rev16_shleft_mask_imm_p): Likewise.
14482 (aarch_rev16_p_1): Likewise.
14483 (aarch_rev16_p): Likewise.
14484 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14485 (aarch_rev16_shright_mask_imm_p): Likewise.
14486 (aarch_rev16_shleft_mask_imm_p): Likewise.
14488 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14490 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14491 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14493 (cortex_a53_extra_costs): Likewise.
14494 (cortex_a57_extra_costs): Likewise.
14495 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14496 (cortexa7_extra_costs): Likewise.
14497 (cortexa8_extra_costs): Likewise.
14498 (cortexa12_extra_costs): Likewise.
14499 (cortexa15_extra_costs): Likewise.
14500 (v7m_extra_costs): Likewise.
14501 (arm_new_rtx_costs): Handle BSWAP.
14503 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14505 * config/arm/arm.c (cortexa8_extra_costs): New table.
14506 (arm_cortex_a8_tune): New tuning struct.
14507 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14509 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14511 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14513 2014-04-23 Richard Biener <rguenther@suse.de>
14515 * Makefile.in (OBJS): Remove loop-unswitch.o.
14516 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14517 * passes.def (pass_rtl_unswitch): Likewise.
14518 * loop-init.c (gate_rtl_unswitch): Likewise.
14519 (rtl_unswitch): Likewise.
14520 (pass_data_rtl_unswitch): Likewise.
14521 (pass_rtl_unswitch): Likewise.
14522 (make_pass_rtl_unswitch): Likewise.
14523 * rtl.h (reversed_condition): Likewise.
14524 (compare_and_jump_seq): Likewise.
14525 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14527 * loop-unroll.c (compare_and_jump_seq): Likewise.
14529 2014-04-23 Richard Biener <rguenther@suse.de>
14531 PR tree-optimization/60903
14532 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14533 commented code block.
14534 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14535 loop flags to newly created BBs and edges.
14537 2014-04-23 Nick Clifton <nickc@redhat.com>
14539 * config/msp430/msp430.c (msp430_handle_option): Move function
14541 (msp430_option_override): Simplify mcu and mcpu option handling.
14542 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14543 support for -mhwmult command line option.
14544 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14545 -mhwmult command line option.
14546 (msp430_hwmult_enabled): Delete.
14547 (msp43o_output_labelref): Add support for -mhwmult command line option.
14548 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14549 (umulsidi3): Likewise.
14550 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14551 (mcpu, mlarge, msmall): Likewise.
14552 (mhwmult): New option.
14553 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14555 (msp430_is_f5_mcu): Remove prototype.
14556 (msp430_use_f5_series_hwmult): Add prototype.
14557 * config/msp430/msp430-opts.h: New file.
14558 * common/config/msp430: New directory.
14559 * common/config/msp430/msp430-common.c: New file.
14560 * config.gcc (msp430): Remove target_has_targetm_common.
14561 * doc/invoke.texi: Document -mhwmult command line option.
14563 2014-04-23 Nick Clifton <nickc@redhat.com>
14565 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14566 default-manifest.o if it can be found in the search path.
14567 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14569 2014-04-23 Terry Guo <terry.guo@arm.com>
14571 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14573 2014-04-23 Richard Biener <rguenther@suse.de>
14575 PR middle-end/60895
14576 * tree-inline.c (declare_return_variable): Use mark_addressable.
14578 2014-04-23 Richard Biener <rguenther@suse.de>
14580 PR middle-end/60891
14581 * loop-init.c (loop_optimizer_init): Make sure to apply
14582 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14584 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14587 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14589 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14590 if flag_sanitize_undefined_trap_on_error.
14591 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14592 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14593 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14594 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14595 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14596 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14597 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14598 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14599 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14600 * ubsan.c (ubsan_instrument_unreachable): Return
14601 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14602 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14603 if flag_sanitize_undefined_trap_on_error and
14604 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14605 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14606 instrument_bool_enum_load): Emit __builtin_trap () if
14607 flag_sanitize_undefined_trap_on_error and
14608 __builtin_handle_*_abort () if !flag_sanitize_recover.
14609 * doc/invoke.texi (-fsanitize-recover,
14610 -fsanitize-undefined-trap-on-error): Document.
14612 2014-04-22 Christian Bruel <christian.bruel@st.com>
14614 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14615 Force immediates to SImode.
14617 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14619 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14620 (lroundsfsi2): New.
14621 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14622 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14623 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14624 (nios2_fpu_insn): Add entry for round.
14625 (N2FPU_NO_ERRNO_P): Define.
14626 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14628 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14630 2014-04-22 Richard Henderson <rth@redhat.com>
14632 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14633 (add<GPI>3_compare0): Remove leading * from name.
14634 (add<GPI>3_carryin): Likewise.
14635 (sub<GPI>3_compare0): Likewise.
14636 (sub<GPI>3_carryin): Likewise.
14637 (<su_optab>mulditi3): New expander.
14638 (multi3): New expander.
14639 (madd<GPI>): Remove leading * from name.
14641 2014-04-22 Martin Jambor <mjambor@suse.cz>
14643 * cgraphclones.c (cgraph_function_versioning): Copy
14644 ipa_transforms_to_apply instead of asserting it is empty.
14646 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14649 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14650 on count_exp to get mode.
14652 2014-04-22 Andrew Pinski <apinski@cavium.com>
14654 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14655 Handle TLS for ILP32.
14656 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14657 (tlsie_small_<mode>): this and handle PTR.
14658 (tlsie_small_sidi): New pattern.
14659 (tlsle_small): Change to an expand to handle ILP32.
14660 (tlsle_small_<mode>): New pattern.
14661 (tlsdesc_small): Rename to ...
14662 (tlsdesc_small_<mode>): this and handle PTR.
14664 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14666 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14668 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14670 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14671 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14672 (aarch64_types_signed_poly_qualifiers): Likewise.
14673 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14674 (aarch64_types_poly_signed_qualifiers): Likewise.
14675 (TYPES_REINTERP_SS): Type macro added.
14676 (TYPES_REINTERP_SU): Likewise.
14677 (TYPES_REINTERP_SP): Likewise.
14678 (TYPES_REINTERP_US): Likewise.
14679 (TYPES_REINTERP_PS): Likewise.
14680 (aarch64_fold_builtin): New expression folding added.
14681 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14682 Declarations removed.
14683 (REINTERP_SS): Declarations added.
14684 (REINTERP_US): Likewise.
14685 (REINTERP_PS): Likewise.
14686 (REINTERP_SU): Likewise.
14687 (REINTERP_SP): Likewise.
14688 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14689 (vreinterpretq_p8_f64): Likewise.
14690 (vreinterpret_p16_f64): Likewise.
14691 (vreinterpretq_p16_f64): Likewise.
14692 (vreinterpret_f32_f64): Likewise.
14693 (vreinterpretq_f32_f64): Likewise.
14694 (vreinterpret_f64_f32): Likewise.
14695 (vreinterpret_f64_p8): Likewise.
14696 (vreinterpret_f64_p16): Likewise.
14697 (vreinterpret_f64_s8): Likewise.
14698 (vreinterpret_f64_s16): Likewise.
14699 (vreinterpret_f64_s32): Likewise.
14700 (vreinterpret_f64_s64): Likewise.
14701 (vreinterpret_f64_u8): Likewise.
14702 (vreinterpret_f64_u16): Likewise.
14703 (vreinterpret_f64_u32): Likewise.
14704 (vreinterpret_f64_u64): Likewise.
14705 (vreinterpretq_f64_f32): Likewise.
14706 (vreinterpretq_f64_p8): Likewise.
14707 (vreinterpretq_f64_p16): Likewise.
14708 (vreinterpretq_f64_s8): Likewise.
14709 (vreinterpretq_f64_s16): Likewise.
14710 (vreinterpretq_f64_s32): Likewise.
14711 (vreinterpretq_f64_s64): Likewise.
14712 (vreinterpretq_f64_u8): Likewise.
14713 (vreinterpretq_f64_u16): Likewise.
14714 (vreinterpretq_f64_u32): Likewise.
14715 (vreinterpretq_f64_u64): Likewise.
14716 (vreinterpret_s64_f64): Likewise.
14717 (vreinterpretq_s64_f64): Likewise.
14718 (vreinterpret_u64_f64): Likewise.
14719 (vreinterpretq_u64_f64): Likewise.
14720 (vreinterpret_s8_f64): Likewise.
14721 (vreinterpretq_s8_f64): Likewise.
14722 (vreinterpret_s16_f64): Likewise.
14723 (vreinterpretq_s16_f64): Likewise.
14724 (vreinterpret_s32_f64): Likewise.
14725 (vreinterpretq_s32_f64): Likewise.
14726 (vreinterpret_u8_f64): Likewise.
14727 (vreinterpretq_u8_f64): Likewise.
14728 (vreinterpret_u16_f64): Likewise.
14729 (vreinterpretq_u16_f64): Likewise.
14730 (vreinterpret_u32_f64): Likewise.
14731 (vreinterpretq_u32_f64): Likewise.
14733 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14735 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14736 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14737 (vreinterpret_p8_s8): Likewise.
14738 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14739 (vreinterpret_p8_s16): Likewise.
14740 (vreinterpret_p8_s32): Likewise.
14741 (vreinterpret_p8_s64): Likewise.
14742 (vreinterpret_p8_f32): Likewise.
14743 (vreinterpret_p8_u8): Likewise.
14744 (vreinterpret_p8_u16): Likewise.
14745 (vreinterpret_p8_u32): Likewise.
14746 (vreinterpret_p8_u64): Likewise.
14747 (vreinterpret_p8_p16): Likewise.
14748 (vreinterpretq_p8_s8): Likewise.
14749 (vreinterpretq_p8_s16): Likewise.
14750 (vreinterpretq_p8_s32): Likewise.
14751 (vreinterpretq_p8_s64): Likewise.
14752 (vreinterpretq_p8_f32): Likewise.
14753 (vreinterpretq_p8_u8): Likewise.
14754 (vreinterpretq_p8_u16): Likewise.
14755 (vreinterpretq_p8_u32): Likewise.
14756 (vreinterpretq_p8_u64): Likewise.
14757 (vreinterpretq_p8_p16): Likewise.
14758 (vreinterpret_p16_s8): Likewise.
14759 (vreinterpret_p16_s16): Likewise.
14760 (vreinterpret_p16_s32): Likewise.
14761 (vreinterpret_p16_s64): Likewise.
14762 (vreinterpret_p16_f32): Likewise.
14763 (vreinterpret_p16_u8): Likewise.
14764 (vreinterpret_p16_u16): Likewise.
14765 (vreinterpret_p16_u32): Likewise.
14766 (vreinterpret_p16_u64): Likewise.
14767 (vreinterpret_p16_p8): Likewise.
14768 (vreinterpretq_p16_s8): Likewise.
14769 (vreinterpretq_p16_s16): Likewise.
14770 (vreinterpretq_p16_s32): Likewise.
14771 (vreinterpretq_p16_s64): Likewise.
14772 (vreinterpretq_p16_f32): Likewise.
14773 (vreinterpretq_p16_u8): Likewise.
14774 (vreinterpretq_p16_u16): Likewise.
14775 (vreinterpretq_p16_u32): Likewise.
14776 (vreinterpretq_p16_u64): Likewise.
14777 (vreinterpretq_p16_p8): Likewise.
14778 (vreinterpret_f32_s8): Likewise.
14779 (vreinterpret_f32_s16): Likewise.
14780 (vreinterpret_f32_s32): Likewise.
14781 (vreinterpret_f32_s64): Likewise.
14782 (vreinterpret_f32_u8): Likewise.
14783 (vreinterpret_f32_u16): Likewise.
14784 (vreinterpret_f32_u32): Likewise.
14785 (vreinterpret_f32_u64): Likewise.
14786 (vreinterpret_f32_p8): Likewise.
14787 (vreinterpret_f32_p16): Likewise.
14788 (vreinterpretq_f32_s8): Likewise.
14789 (vreinterpretq_f32_s16): Likewise.
14790 (vreinterpretq_f32_s32): Likewise.
14791 (vreinterpretq_f32_s64): Likewise.
14792 (vreinterpretq_f32_u8): Likewise.
14793 (vreinterpretq_f32_u16): Likewise.
14794 (vreinterpretq_f32_u32): Likewise.
14795 (vreinterpretq_f32_u64): Likewise.
14796 (vreinterpretq_f32_p8): Likewise.
14797 (vreinterpretq_f32_p16): Likewise.
14798 (vreinterpret_s64_s8): Likewise.
14799 (vreinterpret_s64_s16): Likewise.
14800 (vreinterpret_s64_s32): Likewise.
14801 (vreinterpret_s64_f32): Likewise.
14802 (vreinterpret_s64_u8): Likewise.
14803 (vreinterpret_s64_u16): Likewise.
14804 (vreinterpret_s64_u32): Likewise.
14805 (vreinterpret_s64_u64): Likewise.
14806 (vreinterpret_s64_p8): Likewise.
14807 (vreinterpret_s64_p16): Likewise.
14808 (vreinterpretq_s64_s8): Likewise.
14809 (vreinterpretq_s64_s16): Likewise.
14810 (vreinterpretq_s64_s32): Likewise.
14811 (vreinterpretq_s64_f32): Likewise.
14812 (vreinterpretq_s64_u8): Likewise.
14813 (vreinterpretq_s64_u16): Likewise.
14814 (vreinterpretq_s64_u32): Likewise.
14815 (vreinterpretq_s64_u64): Likewise.
14816 (vreinterpretq_s64_p8): Likewise.
14817 (vreinterpretq_s64_p16): Likewise.
14818 (vreinterpret_u64_s8): Likewise.
14819 (vreinterpret_u64_s16): Likewise.
14820 (vreinterpret_u64_s32): Likewise.
14821 (vreinterpret_u64_s64): Likewise.
14822 (vreinterpret_u64_f32): Likewise.
14823 (vreinterpret_u64_u8): Likewise.
14824 (vreinterpret_u64_u16): Likewise.
14825 (vreinterpret_u64_u32): Likewise.
14826 (vreinterpret_u64_p8): Likewise.
14827 (vreinterpret_u64_p16): Likewise.
14828 (vreinterpretq_u64_s8): Likewise.
14829 (vreinterpretq_u64_s16): Likewise.
14830 (vreinterpretq_u64_s32): Likewise.
14831 (vreinterpretq_u64_s64): Likewise.
14832 (vreinterpretq_u64_f32): Likewise.
14833 (vreinterpretq_u64_u8): Likewise.
14834 (vreinterpretq_u64_u16): Likewise.
14835 (vreinterpretq_u64_u32): Likewise.
14836 (vreinterpretq_u64_p8): Likewise.
14837 (vreinterpretq_u64_p16): Likewise.
14838 (vreinterpret_s8_s16): Likewise.
14839 (vreinterpret_s8_s32): Likewise.
14840 (vreinterpret_s8_s64): Likewise.
14841 (vreinterpret_s8_f32): Likewise.
14842 (vreinterpret_s8_u8): Likewise.
14843 (vreinterpret_s8_u16): Likewise.
14844 (vreinterpret_s8_u32): Likewise.
14845 (vreinterpret_s8_u64): Likewise.
14846 (vreinterpret_s8_p8): Likewise.
14847 (vreinterpret_s8_p16): Likewise.
14848 (vreinterpretq_s8_s16): Likewise.
14849 (vreinterpretq_s8_s32): Likewise.
14850 (vreinterpretq_s8_s64): Likewise.
14851 (vreinterpretq_s8_f32): Likewise.
14852 (vreinterpretq_s8_u8): Likewise.
14853 (vreinterpretq_s8_u16): Likewise.
14854 (vreinterpretq_s8_u32): Likewise.
14855 (vreinterpretq_s8_u64): Likewise.
14856 (vreinterpretq_s8_p8): Likewise.
14857 (vreinterpretq_s8_p16): Likewise.
14858 (vreinterpret_s16_s8): Likewise.
14859 (vreinterpret_s16_s32): Likewise.
14860 (vreinterpret_s16_s64): Likewise.
14861 (vreinterpret_s16_f32): Likewise.
14862 (vreinterpret_s16_u8): Likewise.
14863 (vreinterpret_s16_u16): Likewise.
14864 (vreinterpret_s16_u32): Likewise.
14865 (vreinterpret_s16_u64): Likewise.
14866 (vreinterpret_s16_p8): Likewise.
14867 (vreinterpret_s16_p16): Likewise.
14868 (vreinterpretq_s16_s8): Likewise.
14869 (vreinterpretq_s16_s32): Likewise.
14870 (vreinterpretq_s16_s64): Likewise.
14871 (vreinterpretq_s16_f32): Likewise.
14872 (vreinterpretq_s16_u8): Likewise.
14873 (vreinterpretq_s16_u16): Likewise.
14874 (vreinterpretq_s16_u32): Likewise.
14875 (vreinterpretq_s16_u64): Likewise.
14876 (vreinterpretq_s16_p8): Likewise.
14877 (vreinterpretq_s16_p16): Likewise.
14878 (vreinterpret_s32_s8): Likewise.
14879 (vreinterpret_s32_s16): Likewise.
14880 (vreinterpret_s32_s64): Likewise.
14881 (vreinterpret_s32_f32): Likewise.
14882 (vreinterpret_s32_u8): Likewise.
14883 (vreinterpret_s32_u16): Likewise.
14884 (vreinterpret_s32_u32): Likewise.
14885 (vreinterpret_s32_u64): Likewise.
14886 (vreinterpret_s32_p8): Likewise.
14887 (vreinterpret_s32_p16): Likewise.
14888 (vreinterpretq_s32_s8): Likewise.
14889 (vreinterpretq_s32_s16): Likewise.
14890 (vreinterpretq_s32_s64): Likewise.
14891 (vreinterpretq_s32_f32): Likewise.
14892 (vreinterpretq_s32_u8): Likewise.
14893 (vreinterpretq_s32_u16): Likewise.
14894 (vreinterpretq_s32_u32): Likewise.
14895 (vreinterpretq_s32_u64): Likewise.
14896 (vreinterpretq_s32_p8): Likewise.
14897 (vreinterpretq_s32_p16): Likewise.
14898 (vreinterpret_u8_s8): Likewise.
14899 (vreinterpret_u8_s16): Likewise.
14900 (vreinterpret_u8_s32): Likewise.
14901 (vreinterpret_u8_s64): Likewise.
14902 (vreinterpret_u8_f32): Likewise.
14903 (vreinterpret_u8_u16): Likewise.
14904 (vreinterpret_u8_u32): Likewise.
14905 (vreinterpret_u8_u64): Likewise.
14906 (vreinterpret_u8_p8): Likewise.
14907 (vreinterpret_u8_p16): Likewise.
14908 (vreinterpretq_u8_s8): Likewise.
14909 (vreinterpretq_u8_s16): Likewise.
14910 (vreinterpretq_u8_s32): Likewise.
14911 (vreinterpretq_u8_s64): Likewise.
14912 (vreinterpretq_u8_f32): Likewise.
14913 (vreinterpretq_u8_u16): Likewise.
14914 (vreinterpretq_u8_u32): Likewise.
14915 (vreinterpretq_u8_u64): Likewise.
14916 (vreinterpretq_u8_p8): Likewise.
14917 (vreinterpretq_u8_p16): Likewise.
14918 (vreinterpret_u16_s8): Likewise.
14919 (vreinterpret_u16_s16): Likewise.
14920 (vreinterpret_u16_s32): Likewise.
14921 (vreinterpret_u16_s64): Likewise.
14922 (vreinterpret_u16_f32): Likewise.
14923 (vreinterpret_u16_u8): Likewise.
14924 (vreinterpret_u16_u32): Likewise.
14925 (vreinterpret_u16_u64): Likewise.
14926 (vreinterpret_u16_p8): Likewise.
14927 (vreinterpret_u16_p16): Likewise.
14928 (vreinterpretq_u16_s8): Likewise.
14929 (vreinterpretq_u16_s16): Likewise.
14930 (vreinterpretq_u16_s32): Likewise.
14931 (vreinterpretq_u16_s64): Likewise.
14932 (vreinterpretq_u16_f32): Likewise.
14933 (vreinterpretq_u16_u8): Likewise.
14934 (vreinterpretq_u16_u32): Likewise.
14935 (vreinterpretq_u16_u64): Likewise.
14936 (vreinterpretq_u16_p8): Likewise.
14937 (vreinterpretq_u16_p16): Likewise.
14938 (vreinterpret_u32_s8): Likewise.
14939 (vreinterpret_u32_s16): Likewise.
14940 (vreinterpret_u32_s32): Likewise.
14941 (vreinterpret_u32_s64): Likewise.
14942 (vreinterpret_u32_f32): Likewise.
14943 (vreinterpret_u32_u8): Likewise.
14944 (vreinterpret_u32_u16): Likewise.
14945 (vreinterpret_u32_u64): Likewise.
14946 (vreinterpret_u32_p8): Likewise.
14947 (vreinterpret_u32_p16): Likewise.
14948 (vreinterpretq_u32_s8): Likewise.
14949 (vreinterpretq_u32_s16): Likewise.
14950 (vreinterpretq_u32_s32): Likewise.
14951 (vreinterpretq_u32_s64): Likewise.
14952 (vreinterpretq_u32_f32): Likewise.
14953 (vreinterpretq_u32_u8): Likewise.
14954 (vreinterpretq_u32_u16): Likewise.
14955 (vreinterpretq_u32_u64): Likewise.
14956 (vreinterpretq_u32_p8): Likewise.
14957 (vreinterpretq_u32_p16): Likewise.
14959 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14961 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14963 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14965 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14966 (vqnegd_s64): Likewise.
14967 (vqabs_s64): Likewise.
14968 (vqabsd_s64): Likewise.
14970 2014-04-22 Richard Henderson <rth@redhat.com>
14972 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14973 computation to the top of the loop.
14975 2014-04-22 Renlin <renlin.li@arm.com>
14976 Jiong Wang <jiong.wang@arm.com>
14978 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14979 * config/aarch64/aarch64.c (aarch64_layout_frame)
14980 (aarch64_initial_elimination_offset): Likewise.
14982 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14984 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14987 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14989 * machmode.h (bitwise_mode_for_mode): Declare.
14990 * stor-layout.h (bitwise_type_for_mode): Likewise.
14991 * stor-layout.c (bitwise_mode_for_mode): New function.
14992 (bitwise_type_for_mode): Likewise.
14993 * builtins.c (fold_builtin_memory_op): Use it instead of
14994 int_mode_for_mode and build_nonstandard_integer_type.
14996 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14998 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14999 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15000 (*-*-solaris2*): Simplify.
15001 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15002 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15003 *-*-solaris2.9* handling.
15005 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15007 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15008 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15009 handling, simplify.
15010 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15011 * configure: Regenerate.
15013 * config/i386/sol2-9.h: Remove.
15015 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15016 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15017 Remove Solaris 9 references.
15019 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15021 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15022 (floatuns<GPI:mode><GPF:mode>2): Remove.
15023 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15024 and floatuns conversions.
15025 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15026 and floatuns conversions.
15027 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15028 (w1,w2): New mode attributes for inequal width conversions.
15030 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15032 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15033 the output asm format.
15035 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15037 * config/aarch64/aarch64-simd.md
15038 (aarch64_cm<optab>di): Always split.
15039 (*aarch64_cm<optab>di): New.
15040 (aarch64_cmtstdi): Always split.
15041 (*aarch64_cmtstdi): New.
15043 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15045 PR tree-optimization/60823
15046 * omp-low.c (ipa_simd_modify_function_body): Go through
15047 all SSA_NAMEs and for those refering to vector arguments
15048 which are going to be replaced adjust SSA_NAME_VAR and,
15049 if it is a default definition, change it into a non-default
15050 definition assigned at the beginning of function from new_decl.
15051 (ipa_simd_modify_stmt_ops): Rewritten.
15052 * tree-dfa.c (set_ssa_default_def): When removing default def,
15053 check for NULL loc instead of NULL *loc.
15055 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15057 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15058 restrictions on core registers for DImode values in Thumb2.
15060 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15062 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15063 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15065 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15067 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15068 (*iordi_notzesidi_di): Likewise.
15069 (*iordi_notsesidi_di): Likewise.
15071 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15073 * config/arm/arm-protos.h (tune_params): New struct members.
15074 * config/arm/arm.c: Initialise tune_params per processor.
15075 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15076 for speed, based on new tune_params.
15078 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15080 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15081 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15082 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15083 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15084 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15085 (vrnda_f64): Likewise.
15086 (vrndi_f64): Likewise.
15087 (vrndm_f64): Likewise.
15088 (vrndn_f64): Likewise.
15089 (vrndp_f64): Likewise.
15090 (vrndx_f64): Likewise.
15092 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15094 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15095 GET_MODE_SIZE argument is enum machine_mode.
15097 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15100 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15101 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15103 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15105 PR middle-end/60281
15106 * asan.c (asan_emit_stack_protection): Force the base to align to
15107 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15108 appropriate bits if STRICT_ALIGNMENT.
15109 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15111 (expand_used_vars): Leave a space in the stack frame for alignment
15112 if STRICT_ALIGNMENT.
15114 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15116 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15118 (gimple_store_p): Likewise.
15119 (gimple_assign_load_p): Likewise.
15120 (gimple_assign_cast_p): Likewise.
15121 (gimple_clobber_p): Likewise.
15123 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15124 rather than a gimple.
15125 (gimple_assign_cast_p): Likewise.
15127 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15130 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15131 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15133 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15134 more debug information for E500 if -mdebug=reg.
15136 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15139 * config/i386/i386.c (ix86_expand_builtin)
15140 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15141 register for target RTX.
15142 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15144 2014-04-18 Cong Hou <congh@google.com>
15146 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15147 the widen-mult pattern by handling two operands with different sizes,
15148 and operands whose size is smaller than half of the result type.
15150 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15152 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15153 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15154 (do_estimate_edge_time): Compute it.
15155 * ipa-inline.c (want_inline_small_function_p): Bypass
15156 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15158 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15160 * ipa-inline.c (spec_rem): New static variable.
15161 (dump_overall_stats): New function.
15162 (dump_inline_stats): New function.
15164 2014-04-18 Richard Henderson <rth@redhat.com>
15166 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15167 to GET_MODE_SIZE, not a reg_class_t.
15169 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15171 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15172 (vsx_xxmrglw_<mode>): Likewise.
15174 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15177 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15178 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15179 (rs6000_init_hard_regno_mode_ok): Likewise.
15181 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15183 * ipa-inline.c (inline_small_functions): Account only non-cold
15185 * doc/invoke.texi (inline-unit-growth): Update documentation.
15187 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15189 * config/rs6000/rs6000.md (addti3, subti3): New.
15191 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15194 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15195 comment. Check optimize_insn_for_size_p instead of
15196 optimize_insn_for_speed_p.
15198 2014-04-17 Martin Jambor <mjambor@suse.cz>
15200 * gimple-iterator.c (gsi_start_edge): New function.
15201 * gimple-iterator.h (gsi_start_edge): Declare.
15202 * tree-sra.c (single_non_eh_succ): New function.
15203 (disqualify_ops_if_throwing_stmt): Renamed to
15204 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15205 having one non-EH successor BB.
15206 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15207 generate loads into replacements.
15208 (sra_modify_assign): Likewise and and also use the simple path for
15210 (sra_modify_function_body): Commit statements on edges.
15212 2014-04-17 Richard Biener <rguenther@suse.de>
15214 PR middle-end/60849
15215 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15216 comparison results and add clarifying comment.
15218 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15220 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15221 (blank_mode): Initialize it.
15222 (emit_mode_size_inline, emit_mode_nunits_inline,
15223 emit_mode_inner_inline): New functions.
15224 (emit_insn_modes_h): Call them and surround their output with
15225 #if GCC_VERSION >= 4001 ... #endif.
15226 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15227 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15228 mode_* arrays if the argument is __builtin_constant_p.
15229 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15230 is enum machine_mode.
15232 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15234 * passes.c (opt_pass::execute): Adjust.
15235 (pass_manager::execute_pass_mode_switching): Likewise.
15236 (early_local_passes::execute): Likewise.
15237 (execute_one_pass): Pass cfun to the pass's execute method.
15238 * tree-pass.h (opt_pass::execute): Add function * argument.
15239 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15240 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15241 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15242 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15243 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15244 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15245 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15246 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15247 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15248 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15249 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15250 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15251 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15252 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15253 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15254 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15255 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15256 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15257 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15258 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15259 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15260 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15261 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15262 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15263 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15264 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15265 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15266 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15267 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15270 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15272 * passes.c (opt_pass::gate): Take function * argument.
15273 (gate_all_early_local_passes): Merge into
15274 (early_local_passes::gate): this.
15275 (gate_all_early_optimizations): Merge into
15276 (all_early_optimizations::gate): this.
15277 (gate_all_optimizations): Mege into
15278 (all_optimizations::gate): this.
15279 (gate_all_optimizations_g): Merge into
15280 (all_optimizations_g::gate): this.
15281 (gate_rest_of_compilation): Mege into
15282 (rest_of_compilation::gate): this.
15283 (gate_postreload): Merge into
15284 (postreload::gate): this.
15285 (dump_one_pass): Pass cfun to the pass's gate method.
15286 (execute_ipa_summary_passes): Likewise.
15287 (execute_one_pass): Likewise.
15288 (ipa_write_summaries_2): Likewise.
15289 (ipa_write_optimization_summaries_1): Likewise.
15290 (ipa_read_summaries_1): Likewise.
15291 (ipa_read_optimization_summaries_1): Likewise.
15292 (execute_ipa_stmt_fixups): Likewise.
15293 * tree-pass.h (opt_pass::gate): Add function * argument.
15294 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15295 combine-stack-adj.c, combine.c, compare-elim.c,
15296 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15297 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15298 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15299 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15300 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15301 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15302 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15303 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15304 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15305 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15306 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15307 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15308 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15309 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15310 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15311 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15312 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15313 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15314 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15315 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15316 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15317 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15318 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15319 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15320 var-tracking.c, vtable-verify.c, web.c: Adjust.
15322 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15324 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15325 * configure: Regenerate.
15327 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15329 * passes.c (dump_one_pass): don't check pass->has_gate.
15330 (execute_ipa_summary_passes): Likewise.
15331 (execute_one_pass): Likewise.
15332 (ipa_write_summaries_2): Likewise.
15333 (ipa_write_optimization_summaries_1): Likewise.
15334 (ipa_read_optimization_summaries_1): Likewise.
15335 (execute_ipa_stmt_fixups): Likewise.
15336 * tree-pass.h (pass_data::has_gate): Remove.
15337 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15338 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15339 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15340 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15341 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15342 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15343 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15344 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15345 gimple-low.c, gimple-ssa-isolate-paths.c,
15346 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15347 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15348 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15349 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15350 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15351 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15352 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15353 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15354 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15355 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15356 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15357 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15358 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15359 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15360 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15361 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15362 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15363 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15364 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15365 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15366 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15367 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15370 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15372 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15374 * passes.c (pass_manager::register_dump_files_1): Merge into
15375 (pass_manager::register_dump_files): this, and remove its handling of
15376 properties since the pass always has the properties anyway.
15377 (pass_manager::pass_manager): Adjust.
15379 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15381 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15382 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15383 dealing with properties.
15384 (pass_manager::register_dump_files): Adjust.
15386 2014-03-20 Mark Wielaard <mjw@redhat.com>
15388 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15389 then represent the bound as normal constant value.
15391 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15394 Forward port from 4.8 branch
15395 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15397 * config/i386/bmiintrin.h (_blsi_u32): New.
15398 (_blsi_u64): Ditto.
15399 (_blsr_u32): Ditto.
15400 (_blsr_u64): Ditto.
15401 (_blsmsk_u32): Ditto.
15402 (_blsmsk_u64): Ditto.
15403 (_tzcnt_u32): Ditto.
15404 (_tzcnt_u64): Ditto.
15406 2014-04-17 Kito Cheng <kito@0xlab.org>
15408 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15410 2014-04-17 Richard Biener <rguenther@suse.de>
15412 PR middle-end/60849
15413 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15414 boolean results for comparisons.
15416 2014-04-17 Richard Biener <rguenther@suse.de>
15418 PR tree-optimization/60836
15419 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15420 initial PHI args to be gimple values.
15422 2014-04-17 Richard Biener <rguenther@suse.de>
15424 PR tree-optimization/60841
15425 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15426 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15427 of stmts to SLP build.
15428 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15429 (vect_analyze_slp): Likewise.
15430 (vect_analyze_slp_instance): Likewise.
15431 (vect_build_slp_tree): Limit overall SLP tree growth.
15432 * tree-vectorizer.h (vect_analyze_data_refs,
15433 vect_analyze_slp): Adjust prototypes.
15435 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15437 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15440 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15442 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15443 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15444 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15445 for TARGET_SLOW_PSHUFB
15447 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15449 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15450 * config/i386/i386.c (intel_cost): Ditto.
15452 2014-04-17 Joey Ye <joey.ye@arm.com>
15454 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15456 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15458 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15459 with -fuse-profile.
15461 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15463 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15464 (type_all_derivations_known_p): New predicate.
15465 (type_all_ctors_visible_p): New predicate.
15466 (type_possibly_instantiated_p): New predicate.
15467 (get_odr_type): Compute all_derivations_known.
15468 (dump_odr_type): Dump the flag.
15469 (maybe_record_type): Cleanup.
15470 (record_target_from_binfo): Add bases_to_consider array;
15471 record bases for types w/o instances and skip CXX destructor.
15472 (possible_polymorphic_call_targets_1): Add bases_to_consider
15473 and consider_construction parameters; check if type may have instance.
15474 (get_polymorphic_call_info): Set maybe_in_construction to true
15475 when we know nothing.
15476 (record_targets_from_bases): Skip CXX destructors; they are
15477 never called for types in construction.
15478 (possible_polymorphic_call_targets): Do not record target when
15479 type may not have instance.
15481 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15484 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15485 external aliases alive, too.
15487 2014-04-16 Andrew Pinski <apinski@cavium.com>
15489 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15492 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15494 * final.c (compute_alignments): Do not apply loop alignment to a block
15495 falling through to the exit.
15497 2014-04-16 Catherine Moore <clm@codesourcery.com>
15499 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15500 Adjust constraints for microMIPS store patterns.
15502 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15504 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15506 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15508 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15509 (append_use): Run at -O0.
15510 (append_vdef): Likewise.
15511 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15512 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15514 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15516 PR tree-optimization/60844
15517 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15518 (propagate_op_to_single_use, remove_visited_stmt_chain,
15519 linearize_expr, repropagate_negates, reassociate_bb): Use it
15520 instead of gsi_remove.
15522 2014-04-16 Martin Jambor <mjambor@suse.cz>
15524 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15525 ipa_transforms_to_apply.
15526 (cgraph_function_versioning): Assert that old_node has empty
15527 ipa_transforms_to_apply.
15528 * trans-mem.c (ipa_tm_create_version): Likewise.
15529 * tree-inline.c (tree_function_versioning): Do not duplicate
15530 ipa_transforms_to_apply.
15532 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15535 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15537 Pass necessary as flags on 64-bit Solaris/x86.
15538 Use lowercase relocs for x86_64-*-*.
15539 * configure: Regenerate.
15541 2014-04-15 Jan Hubicka <jh@suse.cz>
15543 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15544 (maybe_record_node, likely_target_p): Use it.
15546 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15549 Revert following patch
15551 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15554 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15555 software floating point or no floating point registers, do not
15556 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15557 in GPRs that occurs after we tested for GPRs that would never be
15560 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15561 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15562 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15563 specifically allow DDmode, since that does not use the SPE SIMD
15566 2014-03-21 Mark Wielaard <mjw@redhat.com>
15568 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15569 as unsigned or int depending on type and value used.
15571 2014-04-15 Richard Biener <rguenther@suse.de>
15573 PR rtl-optimization/56965
15574 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15575 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15577 * alias.c (true_dependence_1): Do not call
15578 nonoverlapping_component_refs_p.
15579 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15580 nonoverlapping_component_refs_p.
15581 (indirect_refs_may_alias_p): Likewise.
15583 2014-04-15 Teresa Johnson <tejohnson@google.com>
15585 * cfg.c (dump_bb_info): Fix flags check.
15586 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15588 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15590 PR rtl-optimization/60663
15591 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15594 2014-04-15 Richard Biener <rguenther@suse.de>
15596 * lto-streamer.h (LTO_major_version): Bump to 4.
15598 2014-04-15 Richard Biener <rguenther@suse.de>
15600 * common.opt (lto_partition_model): New enum.
15601 (flto-partition=): Merge separate options with a single with argument,
15602 add -flto-partition=one support.
15603 * flag-types.h (enum lto_partition_model): Declare.
15604 * opts.c (finish_options): Remove duplicate -flto-partition=
15606 * lto-wrapper.c (run_gcc): Adjust.
15608 2014-04-15 Richard Biener <rguenther@suse.de>
15610 * alias.c (ncr_compar): New function.
15611 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15613 2014-04-15 Richard Biener <rguenther@suse.de>
15615 * alias.c (record_component_aliases): Do not walk BINFOs.
15617 2014-04-15 Richard Biener <rguenther@suse.de>
15619 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15620 Add struct function argument and adjust.
15621 (find_func_aliases_for_call): Likewise.
15622 (find_func_aliases): Likewise.
15623 (find_func_clobbers): Likewise.
15624 (intra_create_variable_infos): Likewise.
15625 (compute_points_to_sets): Likewise.
15626 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15628 2014-04-15 Richard Biener <rguenther@suse.de>
15630 * tree.c (iterative_hash_expr): Use enum tree_code_class
15631 to store TREE_CODE_CLASS.
15632 (tree_block): Likewise.
15633 (tree_set_block): Likewise.
15634 * tree.h (fold_build_pointer_plus_loc): Use
15635 convert_to_ptrofftype_loc.
15637 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15640 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15643 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15645 * cfgloop.h (struct loop): Move force_vectorize down.
15646 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15647 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15648 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15649 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15650 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15651 * tree-core.h (enum annot_expr_kind): Add new kind values.
15652 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15653 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15655 * tree.def (ANNOTATE_EXPR): Tweak comment.
15657 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15659 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15662 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15664 * tree.h (TYPE_IDENTIFIER): Declare.
15665 * tree.c (subrange_type_for_debug_p): Use it.
15666 * godump.c (go_format_type): Likewise.
15667 * dwarf2out.c (is_cxx_auto, modified_type_die,
15668 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15669 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15671 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15674 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15676 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15678 * config/i386/i386.c (examine_argument): Return bool. Return true if
15679 parameter should be passed in memory.
15680 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15681 (construct_container): Update calls to examine_argument.
15682 (function_arg_advance_64): Ditto.
15683 (return_in_memory_32): Merge with ix86_return_in_memory.
15684 (return_in_memory_64): Ditto.
15685 (return_in_memory_ms_64): Ditto.
15687 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15689 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15690 * coverage.c (coverage_compute_profile_id): Handle externally visible
15693 2014-04-14 Martin Jambor <mjambor@suse.cz>
15695 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15696 DECL_DISREGARD_INLINE_LIMITS functions.
15698 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15701 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15703 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15706 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15707 optimize_insn_for_speed_p instead of
15708 optimize_function_for_speed_p.
15710 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15712 * doc/invoke.texi (free): Document AArch64.
15714 2014-04-14 Richard Biener <rguenther@suse.de>
15716 PR tree-optimization/60042
15717 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15718 (insert_into_preds_of_block): Do not prevent PHI insertion
15719 for REFERENCE exprs here ...
15720 (eliminate_dom_walker::before_dom_children): ... but prevent
15721 their use here under similar conditions when applied to the
15722 IL after PRE optimizations.
15724 2014-04-14 Richard Biener <rguenther@suse.de>
15726 * passes.def: Move early points-to after early SRA.
15728 2014-04-14 Richard Biener <rguenther@suse.de>
15730 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15731 check for which sign-changes we allow when forwarding
15732 a converted value into a switch.
15734 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15736 * stor-layout.c (place_field): Finalize non-constant offset for the
15739 2014-04-14 Richard Biener <rguenther@suse.de>
15741 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15743 (expand_switch_using_bit_tests_p): Likewise.
15744 (process_switch): Compute and pass on speed_p based on the
15746 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15747 optimize_bb_for_speed_p.
15749 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15751 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15752 * function.h (struct function): Rename has_force_vect_loops into
15753 has_force_vectorize_loops.
15754 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15755 (input_struct_function_base): Likewise.
15756 * lto-streamer-out.c (output_cfg): Likewise.
15757 (output_struct_function_base): Likewise.
15758 * omp-low.c (expand_omp_simd): Likewise.
15759 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15760 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15761 (version_loop_for_if_conversion): Likewise.
15762 (tree_if_conversion): Likewise.
15763 (main_tree_if_conversion): Likewise.
15764 (gate_tree_if_conversion): Likewise.
15765 * tree-inline.c (copy_loops): Likewise.
15766 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15767 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15768 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15769 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15770 * tree-vectorizer.c (vectorize_loops): Likewise.
15771 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15773 2014-04-14 Richard Biener <rguenther@suse.de>
15776 * lto-streamer-out.c (wrap_refs): New function.
15777 (lto_output): Wrap symbol references in global initializes in
15778 type-preserving MEM_REFs.
15780 2014-04-14 Christian Bruel <christian.bruel@st.com>
15782 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15784 2014-04-14 Christian Bruel <christian.bruel@st.com>
15786 * config/sh/sh.md (setmemqi): New expand pattern.
15787 * config/sh/sh.h (CLEAR_RATIO): Define.
15788 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15789 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15791 2014-04-14 Richard Biener <rguenther@suse.de>
15793 PR middle-end/55022
15794 * fold-const.c (negate_expr_p): Don't negate directional rounding
15796 (fold_negate_expr): Likewise.
15798 2014-04-14 Richard Biener <rguenther@suse.de>
15800 PR tree-optimization/59817
15801 PR tree-optimization/60453
15802 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15803 recursion to catch all CHRECs in the scalar evolution and restrict
15804 the predicate for the remains appropriately.
15806 2014-04-12 Catherine Moore <clm@codesourcery.com>
15808 * config/mips/constraints.md: Add new register constraint "kb".
15809 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15810 (*movhi_internal): Likewise.
15811 (*movqi_internal): Likewise.
15812 * config/mips/mips.h (M16_STORE_REGS): New register class.
15813 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15814 (REG_CLASS_CONTENTS): Likewise.
15815 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15817 2014-04-11 Tobias Burnus <burnus@net-b.de>
15820 * doc/invoke.texi (-Wformat-signedness): Document it.
15821 (Wformat=2): Mention that this enables -Wformat-signedness.
15823 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15825 * common/config/epiphany/epiphany-common.c
15826 (epiphany_option_optimization_table): Enable section anchors by
15827 default at -O1 or higher.
15828 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15829 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15830 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15831 carries no extra cost.
15832 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15833 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15834 * config/epiphany/predicates.md (memclob_operand): New predicate.
15835 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15836 Use memclob_operand predicate and X constraint for operand 3.
15838 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15840 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15841 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15844 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15846 PR rtl-optimization/60651
15847 * mode-switching.c (optimize_mode_switching): Make sure to emit
15848 sets of a lower numbered entity before sets of a higher numbered
15849 entity to a mode of the same or lower priority.
15850 When creating a seginfo for a basic block that starts with a code
15851 label, move the insertion point past the code label.
15852 (new_seginfo): Document and enforce requirement that
15853 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15854 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15855 * doc/tm.texi: Regenerate.
15857 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15860 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15862 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15864 * BASE-VER: Set to 4.10.0.
15866 2014-04-11 Tobias Burnus <burnus@net-b.de>
15869 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15870 * doc/gcc.texi (Service): Update description in the @menu
15871 * doc/invoke.texi (Option Summary): Remove misplaced and
15874 2014-04-11 Steve Ellcey <sellcey@mips.com>
15875 Jakub Jelinek <jakub@redhat.com>
15877 PR middle-end/60556
15878 * expr.c (convert_move): Use emit_store_flag_force instead of
15879 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15882 2014-04-11 Richard Biener <rguenther@suse.de>
15884 PR middle-end/60797
15885 * varasm.c (assemble_alias): Avoid endless error reporting
15886 recursion by setting TREE_ASM_WRITTEN.
15888 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15890 * config/s390/s390.md: Add a splitter for NOT rtx.
15892 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15894 PR rtl-optimization/60663
15895 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15897 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15898 Jakub Jelinek <jakub@redhat.com>
15901 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15902 flag from decl_node to node.
15904 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15907 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15908 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15909 ameliorating the cases where it can be.
15911 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15914 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15916 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15917 (loadsync_<mode>): Change mode.
15918 (load_quadpti, store_quadpti): New.
15919 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15920 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15921 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15923 2014-04-09 Cong Hou <congh@google.com>
15926 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15929 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15931 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15932 instead of vnor to exploit possible fusion opportunity in the
15934 (altivec_expand_vec_perm_const_le): Likewise.
15936 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15938 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15939 (loadsync_<mode>): Change mode.
15940 (load_quadpti, store_quadpti): New.
15941 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15942 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15944 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15947 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15948 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15949 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15951 2014-04-08 Richard Biener <rguenther@suse.de>
15953 PR middle-end/60706
15954 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15955 a 64bit widest int print double-int similar to on HWI64 hosts.
15957 2014-04-08 Richard Biener <rguenther@suse.de>
15959 PR tree-optimization/60785
15960 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15961 default defs properly.
15963 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15965 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15966 (Weffc++): Likewise.
15968 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15970 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15971 set completep to false rather than true.
15973 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15976 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15977 ARM_TARGET2_DWARF_FORMAT.
15979 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15982 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15983 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15986 2014-04-07 Richard Biener <rguenther@suse.de>
15988 PR tree-optimization/60766
15989 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15990 (may_eliminate_iv): Convert cand_value_at result to desired type.
15992 2014-04-07 Jason Merrill <jason@redhat.com>
15995 * common.opt (-fno-gnu-unique): Add.
15996 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15998 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16000 * haifa-sched.c: Fix outdated function reference and minor
16001 grammar errors in introductory comment.
16003 2014-04-07 Richard Biener <rguenther@suse.de>
16005 PR middle-end/60750
16006 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16007 for noreturn calls.
16008 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16010 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16013 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16014 size accounting for thunks.
16015 (pa_asm_output_mi_thunk): Use final_start_function() and
16016 final_end_function() to output function start and end directives.
16018 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16020 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16021 device specific ISA/ feature information. Remove short_sp and
16022 errata_skip ds. Add avr_device_specific_features enum to have device
16024 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16025 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16026 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16027 updated device specific info.
16028 * config/avr/avr-mcus.def: Merge device specific details to
16029 dev_attribute field.
16030 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16032 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16033 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16034 assembler if RMW isa supported by current device.
16035 * config/avr/genmultilib.awk: Update as device info structure changed.
16036 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16038 2014-04-04 Cong Hou <congh@google.com>
16040 PR tree-optimization/60656
16041 * tree-vect-stmts.c (supportable_widening_operation):
16042 Fix a bug that elements in a vector with vect_used_by_reduction
16043 property are incorrectly reordered when the operation on it is not
16044 consistant with the one in reduction operation.
16046 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16048 PR rtl-optimization/60155
16049 * gcse.c (record_set_data): New function.
16050 (single_set_gcse): New function.
16051 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16052 (hoist_code): Likewise.
16053 (get_pressure_class_and_nregs): Likewise.
16055 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16057 * explow.c (probe_stack_range): Emit a final optimization blockage.
16059 2014-04-04 Anthony Green <green@moxielogic.com>
16061 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16064 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16067 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16068 flags are set only during streaming.
16069 * ipa.c (process_references, walk_polymorphic_call_targets,
16070 symtab_remove_unreachable_nodes): Drop bodies of always inline
16071 after early inlining.
16072 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16074 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16075 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16078 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16081 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16084 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16086 (cortex_a53_fdivd): Likewise.
16088 2014-04-04 Martin Jambor <mjambor@suse.cz>
16091 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16092 Adjust all callers.
16093 * cgraph.c (clone_of_p): Also return true if thunks match.
16094 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16095 cgraph_function_or_thunk_node and an obsolete comment.
16096 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16098 (build_function_decl_skip_args): Likewise.
16099 (set_new_clone_decl_and_node_flags): New function.
16100 (duplicate_thunk_for_node): Likewise.
16101 (redirect_edge_duplicating_thunks): Likewise.
16102 (cgraph_clone_node): New parameter args_to_skip, pass it to
16103 redirect_edge_duplicating_thunks which is called instead of
16104 cgraph_redirect_edge_callee.
16105 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16106 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16108 2014-04-04 Jeff Law <law@redhat.com>
16111 * config/arm/predicates.md (const_int_I_operand): New predicate.
16112 (const_int_M_operand): Similarly.
16113 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16115 (insv_t2, extv_reg, extzv_t2): Likewise.
16116 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16117 (pop_multiple_with_writeback_and_return): Likewise.
16118 (vfp_pop_multiple_with_writeback): Likewise
16120 2014-04-04 Richard Biener <rguenther@suse.de>
16123 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16124 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16126 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16127 * gimplify.c (gimple_add_tmp_var_fn): New function.
16128 * gimple-expr.h (create_tmp_reg_fn): Declare.
16129 * gimple-expr.c (create_tmp_reg_fn): New function.
16130 * gimple-low.c (record_vars_into): Don't change cfun.
16131 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16132 code generation without cfun.
16134 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16137 * Makefile.in (install-driver): Fix shell scripting.
16139 2014-04-03 Cong Hou <congh@google.com>
16141 PR tree-optimization/60505
16142 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16143 threshold of number of iterations below which no vectorization
16145 * tree-vect-loop.c (new_loop_vec_info):
16146 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16147 * tree-vect-loop.c (vect_analyze_loop_operations):
16148 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16149 * tree-vect-loop.c (vect_transform_loop):
16150 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16151 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16152 of iterations of the loop and see if we should build the epilogue.
16154 2014-04-03 Richard Biener <rguenther@suse.de>
16156 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16157 (streamer_tree_cache_create): Adjust.
16158 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16159 to allow optional nodes array.
16160 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16161 (streamer_tree_cache_append): Likewise.
16162 (streamer_tree_cache_create): Create nodes array optionally
16163 as specified by parameter.
16164 * lto-streamer-out.c (create_output_block): Avoid maintaining
16165 the node array in the writer cache.
16166 (DFS_write_tree): Remove assertion.
16167 (produce_asm_for_decls): Free the out decl state hash table early.
16168 * lto-streamer-in.c (lto_data_in_create): Adjust for
16169 streamer_tree_cache_create prototype change.
16171 2014-04-03 Richard Biener <rguenther@suse.de>
16173 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16174 set TREE_CHAIN to NULL_TREE.
16176 2014-04-03 Richard Biener <rguenther@suse.de>
16178 PR tree-optimization/60740
16179 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16180 over all GIMPLE_COND operands.
16182 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16184 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16185 (Weffc++): Remove Scott's numbering, merge lists and reference
16188 2014-04-03 Nick Clifton <nickc@redhat.com>
16190 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16193 2014-04-03 Martin Jambor <mjambor@suse.cz>
16195 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16196 mention gcc_unreachable before failing.
16197 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16200 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16203 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16204 inconsistent code and instead mark the context inconsistent.
16205 (possible_polymorphic_call_targets): For inconsistent contexts
16206 return empty complete list.
16208 2014-04-02 Anthony Green <green@moxielogic.com>
16210 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16211 (extendqisi2, extendhisi2): Define.
16212 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16213 (WCHAR_TYPE): Change to unsigned int.
16215 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16217 PR tree-optimization/60733
16218 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16219 insertion point for PHI candidates to be the end of the feeding
16220 block for the PHI argument.
16222 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16224 PR rtl-optimization/60650
16225 * lra-constraints.c (process_alt_operands): Decrease reject for
16226 earlyclobber matching.
16228 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16230 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16232 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16234 * config/spu/spu.c (pad_bb): Do not crash when the last
16235 insn is CODE_FOR_blockage.
16237 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16239 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16240 lies outside the target mode.
16242 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16245 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16246 software floating point or no floating point registers, do not
16247 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16248 in GPRs that occurs after we tested for GPRs that would never be
16251 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16252 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16253 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16254 specifically allow DDmode, since that does not use the SPE SIMD
16257 2014-04-02 Richard Biener <rguenther@suse.de>
16259 PR middle-end/60729
16260 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16261 MODE_INTs. Properly use negv_optab.
16262 (expand_abs): Likewise.
16264 2014-04-02 Richard Biener <rguenther@suse.de>
16267 * Makefile.in (install-driver): Guard extra installs with special
16270 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16272 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16273 Document vec_vgbbd.
16275 2014-04-01 Richard Henderson <rth@redhat.com>
16278 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16279 alternative enabled before register allocation.
16281 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16283 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16284 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16286 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16287 (nios2_got_address): Update nios2_large_got_address call site.
16288 (nios2_delegitimize_address): New function.
16289 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16290 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16291 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16293 2014-04-01 Martin Husemann <martin@duskware.de>
16295 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16298 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16300 PR rtl-optimization/60604
16301 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16302 check from register_operand.
16303 (register_operand): Redefine in terms of general_operand.
16304 (nonmemory_operand): Use register_operand for the non-constant cases.
16306 2014-04-01 Richard Biener <rguenther@suse.de>
16308 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16310 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16312 * doc/invoke.texi (mapp-regs): Clarify.
16314 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16316 * config/i386/avx512fintrin.h (__v32hi): Define type.
16317 (__v64qi): Likewise.
16318 (_mm512_set1_epi8): Define.
16319 (_mm512_set1_epi16): Define.
16320 (_mm512_set4_epi32): Define.
16321 (_mm512_set4_epi64): Define.
16322 (_mm512_set4_pd): Define.
16323 (_mm512_set4_ps): Define.
16324 (_mm512_setr4_epi64): Define.
16325 (_mm512_setr4_epi32): Define.
16326 (_mm512_setr4_pd): Define.
16327 (_mm512_setr4_ps): Define.
16328 (_mm512_setzero_epi32): Define.
16330 2014-03-31 Martin Jambor <mjambor@suse.cz>
16332 PR middle-end/60647
16333 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16334 callsite_arguments_match_p. Updated all callers. Also check types of
16335 corresponding formal parameters and actual arguments.
16336 (not_all_callers_have_enough_arguments_p) Renamed to
16337 some_callers_have_mismatched_arguments_p.
16339 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16341 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16343 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16346 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16349 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16351 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16352 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16354 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16355 Use FMAMODE_NOVF512 mode iterator.
16356 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16357 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16358 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16359 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16361 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16362 Use VF_128_256 mode iterator.
16363 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16366 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16368 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16369 static chain if needed.
16371 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16374 * lra-constraints.c (index_part_to_reg): New.
16375 (process_address): Use it.
16377 2014-03-27 Jeff Law <law@redhat.com>
16378 Jakub Jelinek <jakub@redhat.com>
16381 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16382 gen_rtx_{PLUS,MULT} to build up the address expression.
16384 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16385 creating non-canonical RTL.
16387 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16390 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16391 functions; reorganize to make cheap checks first.
16392 (inline_small_functions): Do not estimate growth when dumping;
16394 * ipa-inline.h (inline_summary): Add min_size.
16395 (growth_likely_positive): New function.
16396 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16397 (set_cond_stmt_execution_predicate): Cleanup.
16398 (estimate_edge_size_and_time): Compute min_size.
16399 (estimate_calls_size_and_time): Likewise.
16400 (estimate_node_size_and_time): Likewise.
16401 (inline_update_overall_summary): Update min_size.
16402 (do_estimate_edge_time): Likewise.
16403 (do_estimate_edge_size): Update.
16404 (do_estimate_edge_hints): Update.
16405 (growth_likely_positive): New function.
16407 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16410 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16411 also if addr has VOIDmode.
16413 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16415 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16416 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16418 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16419 instructions as well as AdvancedSIMD loads.
16421 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16423 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16424 Use crypto_aese type.
16425 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16426 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16427 crypto_aese, crypto_aesmc. Move to types.md.
16428 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16430 * config/arm/iterators.md (crypto_type): Likewise.
16432 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16434 * cgraph.c: Include expr.h and tree-dfa.h.
16435 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16438 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16441 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16442 regs from checking multi-reg pseudos.
16444 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16446 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16448 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16450 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16451 if it would clobber the stack pointer, even temporarily.
16453 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16455 * mode-switching.c: Make small adjustments to the top comment.
16457 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16459 * config/rs6000/constraints.md (wD constraint): New constraint to
16460 match the constant integer to get the top DImode/DFmode out of a
16461 vector in a VSX register.
16463 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16464 match the constant integer to get the top DImode/DFmode out of a
16465 vector in a VSX register.
16467 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16470 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16473 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16474 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16476 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16477 Optimize vec_extract of 64-bit values, where the value being
16478 extracted is in the top word, where we can use scalar
16479 instructions. Add direct move and store support. Combine the big
16480 endian/little endian vector select load support into a single insn.
16481 (vsx_extract_<mode>_internal1): Likewise.
16482 (vsx_extract_<mode>_internal2): Likewise.
16483 (vsx_extract_<mode>_load): Likewise.
16484 (vsx_extract_<mode>_store): Likewise.
16485 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16486 combined into vsx_extract_<mode>_load.
16487 (vsx_extract_<mode>_one_le): Likewise.
16489 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16490 define the top 64-bit vector element.
16492 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16495 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16496 Document vec_vbpermq builtin.
16499 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16500 enable use of xxsldwi and xxpermdi builtin functions.
16501 (vec_xxpermdi): Likewise.
16503 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16504 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16506 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16508 PR rtl-optimization/60650
16509 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16511 (find_spills_for): New.
16512 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16513 Spill all pseudos on the second iteration.
16515 2014-03-27 Marek Polacek <polacek@redhat.com>
16518 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16521 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16523 * config/s390/s390.c (s390_can_use_return_insn): Check for
16524 call-saved FPRs on 31 bit.
16526 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16528 PR middle-end/60682
16529 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16530 if they need regimplification, just drop them instead of
16531 calling gimple_regimplify_operands on them.
16533 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16536 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16537 (aarch64_frame_pointer_required): Adjust logic.
16538 (aarch64_can_eliminate): Adjust logic.
16539 (aarch64_override_options_after_change): Adjust logic.
16541 2014-03-27 Dehao Chen <dehao@google.com>
16543 * ipa-inline.c (early_inliner): Update node's inline info.
16545 2014-03-26 Dehao Chen <dehao@google.com>
16547 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16548 compiler inserted conditional jumps for NAN float check.
16550 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16552 * ubsan.h (ubsan_create_data): Change second argument's type
16553 to const location_t *.
16554 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16556 (ubsan_create_data): Change second argument to const location_t *PLOC.
16557 Create Loc field whenever PLOC is non-NULL.
16558 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16559 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16563 * real.c (real_to_integer2): Change type of low to UHWI.
16565 2014-03-26 Tobias Burnus <burnus@net-b.de>
16567 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16568 (CILK_SELF_SPECS): New define.
16569 (driver_self_specs): Use it.
16571 2014-03-26 Richard Biener <rguenther@suse.de>
16573 * tree-pretty-print.c (percent_K_format): Implement special
16574 case for LTO and its stripped down BLOCK tree.
16576 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16579 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16581 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16582 one range is range_int_cst_p, but not both, at least optimize
16583 addition/subtraction of 0 and multiplication by 0 or 1.
16584 * gimple-fold.c (gimple_fold_call): Fold
16585 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16586 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16587 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16589 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16591 PR rtl-optimization/60452
16592 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16593 <case REG>: Return 1 for invalid offsets from the frame pointer.
16595 2014-03-26 Marek Polacek <polacek@redhat.com>
16598 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16601 2014-03-26 Marek Polacek <polacek@redhat.com>
16604 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16607 2014-03-26 Marek Polacek <polacek@redhat.com>
16610 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16611 multiplication in unsigned type.
16613 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16615 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16617 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16619 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16621 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16624 * cif-code.def (UNREACHABLE) New code.
16625 * ipa-inline.c (inline_small_functions): Skip edges to
16626 __builtlin_unreachable.
16627 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16628 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16629 predicate to __bulitin_unreachable.
16630 (set_cond_stmt_execution_predicate): Fix issue when
16631 invert_tree_comparison returns ERROR_MARK.
16632 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16633 propagate to inline clones.
16634 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16636 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16637 * cgraphclones.c (cgraph_clone_node): If call destination is already
16638 ureachable, do not redirect it back.
16639 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16642 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16644 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16645 Do not modify inline clones.
16647 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16649 * config/i386/i386.md (general_sext_operand): New mode attr.
16650 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16651 don't generate (sign_extend (const_int)).
16652 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16653 operands[2]. Use We constraint instead of <i> and
16654 <general_sext_operand> predicate instead of <general_operand>.
16655 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16656 * config/i386/constraints.md (We): New constraint.
16657 * config/i386/predicates.md (x86_64_sext_operand,
16658 sext_operand): New predicates.
16660 2014-03-25 Martin Jambor <mjambor@suse.cz>
16663 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16664 inconsistent devirtualizations to __builtin_unreachable.
16666 2014-03-25 Marek Polacek <polacek@redhat.com>
16669 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16671 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16673 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16674 order of elements for big-endian.
16676 2014-03-25 Richard Biener <rguenther@suse.de>
16678 PR middle-end/60635
16679 * gimplify-me.c (gimple_regimplify_operands): Update the
16682 2014-03-25 Martin Jambor <mjambor@suse.cz>
16685 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16686 (lto_output_varpool_node): Likewise.
16687 (input_overwrite_node): Likewise.
16688 (input_varpool_node): Likewise.
16690 2014-03-25 Richard Biener <rguenther@suse.de>
16692 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16693 (run_gcc): Likewise.
16695 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16697 * combine.c (simplify_compare_const): Add MODE argument.
16698 Handle mode_width 0 as very large mode_width.
16699 (try_combine, simplify_comparison): Adjust callers.
16701 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16702 type to avoid signed integer overflow.
16703 * explow.c (plus_constant): Likewise.
16705 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16707 * doc/generic.texi: Correct typos.
16709 2014-03-24 Tobias Burnus <burnus@net-b.de>
16711 * doc/invoke.texi (-flto): Expand section about
16712 using static libraries with LTO.
16714 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16716 PR rtl-optimization/60501
16717 * optabs.def (addptr3_optab): New optab.
16718 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16719 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16720 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16722 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16724 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16726 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16728 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16731 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16732 (_mm256_undefined_ps): Define.
16733 (_mm256_undefined_pd): Define.
16734 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16735 (_mm_undefined_pd): Define.
16736 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16737 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16738 (_mm512_undefined_ps): Define.
16739 (_mm512_undefined_pd): Define.
16740 Use _mm*_undefined_*.
16741 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16743 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16745 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16746 (lshr_simd): DI mode added.
16747 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16748 (aarch64_ushr_simddi): Likewise.
16749 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16750 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16751 (vshrd_n_u64): Likewise.
16753 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16755 * Makefile.in (s-macro_list): Depend on cc1.
16757 2014-03-23 Teresa Johnson <tejohnson@google.com>
16759 * ipa-utils.c (ipa_print_order): Use specified dump file.
16761 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16763 PR rtl-optimization/60601
16764 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16766 * gcc.c (eval_spec_function): Initialize save_growing_value.
16768 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16771 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16772 code == MINUS_EXPR, never swap op0 with op1.
16774 * toplev.c (init_local_tick): Avoid signed integer multiplication
16776 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16777 shift by first operand's bitsize.
16779 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16782 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16783 redefine to 1 or 0.
16784 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16785 TARGET_ISA_64BIT_P(x).
16787 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16789 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16790 pattern for vector nor instead of subtract from splat(-1).
16791 (altivec_expand_vec_perm_const_le): Likewise.
16793 2014-03-21 Richard Henderson <rth@twiddle.net>
16796 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16797 related insns after epilogue_completed.
16799 2014-03-21 Martin Jambor <mjambor@suse.cz>
16802 * cgraph.h (symtab_node): New flag body_removed.
16803 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16804 when removing bodies.
16805 * symtab.c (dump_symtab_base): Dump body_removed flag.
16806 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16807 had their bodies removed.
16809 2014-03-21 Martin Jambor <mjambor@suse.cz>
16812 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16815 2014-03-21 Richard Biener <rguenther@suse.de>
16817 PR tree-optimization/60577
16818 * tree-core.h (struct tree_base): Document nothrow_flag use
16819 in DECL_NONALIASED.
16820 * tree.h (DECL_NONALIASED): New.
16821 (may_be_aliased): Adjust.
16822 * coverage.c (build_var): Set DECL_NONALIASED.
16824 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16826 * expr.c (expand_expr_real_1): Remove outdated comment.
16828 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16830 PR middle-end/60597
16831 * ira.c (adjust_cleared_regs): Call copy_rtx on
16832 *reg_equiv[REGNO (loc)].src_p before passing it to
16833 simplify_replace_fn_rtx.
16836 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16837 into CONST, put pic register as first operand of PLUS. Use
16838 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16840 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16842 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16844 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16846 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16847 around for store forwarding issue in the FPU on the UT699.
16848 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16849 loads and operations if -mfix-ut699 is specified.
16850 (divtf3_hq): Tweak attribute.
16851 (sqrttf2_hq): Likewise.
16853 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16855 * calls.c (store_one_arg): Remove incorrect const qualification on the
16856 type of the temporary.
16857 * cfgexpand.c (expand_return): Likewise.
16858 * expr.c (expand_constructor): Likewise.
16859 (expand_expr_real_1): Likewise.
16861 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16863 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16866 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16869 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16871 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16873 * config/arm/aarch-common-protos.h
16874 (alu_cost_table): Fix spelling of "extend".
16875 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16877 2014-03-19 Richard Biener <rguenther@suse.de>
16879 PR middle-end/60553
16880 * tree-core.h (tree_type_common): Re-order pointer members
16881 to reduce recursion depth during GC walks.
16883 2014-03-19 Marek Polacek <polacek@redhat.com>
16886 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16887 before accessing it.
16889 2014-03-19 Richard Biener <rguenther@suse.de>
16892 * lto-streamer-in.c (input_function): In WPA stage do not drop
16895 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16897 PR tree-optimization/60559
16898 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16899 with build_zero_cst assignment.
16901 2014-03-18 Kai Tietz <ktietz@redhat.com>
16903 PR rtl-optimization/56356
16904 * sdbout.c (sdbout_parms): Verify that parms'
16905 incoming argument is valid.
16906 (sdbout_reg_parms): Likewise.
16908 2014-03-18 Richard Henderson <rth@redhat.com>
16911 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16912 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16913 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16915 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16917 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16918 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16919 Italicize plugin event names in description. Explain that
16920 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16921 Remind that no GCC functions should be called after PLUGIN_FINISH.
16922 Explain what pragmas with expansion are.
16924 2014-03-18 Martin Liska <mliska@suse.cz>
16926 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16927 gimple call statement is update.
16928 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16929 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16931 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16934 * ubsan.c (ubsan_instrument_unreachable): Call
16935 initialize_sanitizer_builtins.
16936 (ubsan_pass): Likewise.
16939 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16940 varpool_finalize_decl instead of rest_of_decl_compilation.
16942 2014-03-18 Richard Biener <rguenther@suse.de>
16944 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16945 by using bitmap_and_compl instead of bitmap_and_compl_into.
16946 (df_rd_transfer_function): Likewise.
16948 2014-03-18 Richard Biener <rguenther@suse.de>
16950 * doc/lto.texi (fresolution): Fix typo.
16952 2014-03-18 Richard Biener <rguenther@suse.de>
16954 * doc/invoke.texi (flto): Update for changes in 4.9.
16956 2014-03-18 Richard Biener <rguenther@suse.de>
16958 * doc/loop.texi: Remove section on the removed lambda framework.
16959 Update loop docs with recent changes in preserving loop structure.
16961 2014-03-18 Richard Biener <rguenther@suse.de>
16963 * doc/lto.texi (-fresolution): Document.
16965 2014-03-18 Richard Biener <rguenther@suse.de>
16967 * doc/contrib.texi: Adjust my name.
16969 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16972 * internal-fn.c: Include diagnostic-core.h.
16973 (expand_BUILTIN_EXPECT): New function.
16974 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16975 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16976 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16977 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16978 IFN_BUILTIN_EXPECT.
16979 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16980 Revert 3 argument __builtin_expect code.
16981 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16982 * gimple-fold.c (gimple_fold_call): Likewise.
16983 * tree.h (fold_builtin_expect): New prototype.
16984 * builtins.c (build_builtin_expect_predicate): Add predictor
16985 argument, if non-NULL, create 3 argument __builtin_expect.
16986 (fold_builtin_expect): No longer static. Add ARG2 argument,
16987 pass it through to build_builtin_expect_predicate.
16988 (fold_builtin_2): Adjust caller.
16989 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16990 * internal-fn.def (BUILTIN_EXPECT): New.
16992 2014-03-18 Tobias Burnus <burnus@net-b.de>
16995 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16996 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16997 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16999 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17002 * predict.c (combine_predictions_for_bb): Fix up formatting.
17003 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17004 fill what it points to if non-NULL.
17005 (tree_predict_by_opcode): Adjust caller, use the predictor.
17006 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17008 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17010 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17011 proper constant for the store mode.
17013 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17015 * symtab.c (change_decl_assembler_name): Fix transparent alias
17016 chain construction.
17018 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17020 * config/aarch64/aarch64.c: Correct the comments about the
17021 aarch64 stack layout.
17023 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17025 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17026 check for GF_OMP_FOR_KIND_FOR.
17028 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17030 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17031 ymm and zmm register names.
17033 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17036 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17037 note creation for the 2010-08-31 changes.
17039 2014-03-17 Marek Polacek <polacek@redhat.com>
17041 PR middle-end/60534
17042 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17043 as -fno-tree-loop-vectorize.
17044 (expand_omp_simd): Likewise.
17046 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17048 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17049 (eligible_for_call_delay): New prototype.
17050 * config/sparc/sparc.c (tls_call_delay): Rename into...
17051 (eligible_for_call_delay): ...this. Return false if the instruction
17052 cannot be put in the delay slot of a branch.
17053 (eligible_for_restore_insn): Simplify.
17054 (eligible_for_return_delay): Return false if the instruction cannot be
17055 put in the delay slot of a branch and simplify.
17056 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17057 put in the delay slot of a branch.
17058 * config/sparc/sparc.md (fix_ut699): New attribute.
17059 (tls_call_delay): Delete.
17060 (in_call_delay): Reimplement.
17061 (eligible_for_sibcall_delay): Rename into...
17062 (in_sibcall_delay): ...this.
17063 (eligible_for_return_delay): Rename into...
17064 (in_return_delay): ...this.
17065 (in_branch_delay): Reimplement.
17066 (in_uncond_branch_delay): Delete.
17067 (in_annul_branch_delay): Delete.
17069 2014-03-14 Richard Henderson <rth@redhat.com>
17072 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17073 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17074 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17075 (floathi splitters): Remove.
17076 (float<SWI48x>xf2): New pattern.
17077 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17078 code that tried to handle DImode for 32-bit, but which was excluded
17079 by the pattern's condition. Drop allocation of stack temporary.
17080 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17081 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17082 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17083 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17084 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17085 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17086 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17087 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17088 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17089 (*float<SWI48x><X87MODEF>2_i387): Remove.
17090 (all float _with_temp splitters): Remove.
17091 (*float<SWI48x><MODEF>2_i387): New pattern.
17092 (*float<SWI48><MODEF>2_sse): New pattern.
17093 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17094 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17096 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17097 Marek Polacek <polacek@redhat.com>
17099 PR middle-end/60484
17100 * common.opt (dump_base_name_prefixed): New Variable.
17101 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17102 if x_dump_base_name_prefixed is already set, set it at the end.
17104 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17106 PR rtl-optimization/60508
17107 * lra-constraints.c (get_reload_reg): Add new parameter
17109 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17110 Pass the new parameter values.
17112 2014-03-14 Richard Biener <rguenther@suse.de>
17114 * common.opt: Revert unintented changes from r205065.
17115 * opts.c: Likewise.
17117 2014-03-14 Richard Biener <rguenther@suse.de>
17119 PR middle-end/60518
17120 * cfghooks.c (split_block): Properly adjust all loops the
17121 block was a latch of.
17123 2014-03-14 Martin Jambor <mjambor@suse.cz>
17126 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17129 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17132 * config/avr/avr.c (avr_set_current_function): Pass function name
17133 through default_strip_name_encoding before sanity checking instead
17134 of skipping the first char of the assembler name.
17136 2014-03-13 Richard Henderson <rth@redhat.com>
17139 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17140 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17141 * config/i386/i386-protos.h: Likewise.
17142 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17143 in the expander instead of a splitter.
17144 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17145 any possibility of requiring a memory.
17146 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17147 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17148 (fp branch splitters): Update for ix86_split_fp_branch.
17149 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17150 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17151 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17152 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17153 (*fop_<MODEF>_3_i387): Likewise.
17154 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17155 (splitters for the fop_* register patterns): Remove.
17156 (fscalexf4_i387): Rename from *fscalexf4_i387.
17157 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17159 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17161 PR tree-optimization/59779
17162 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17163 type for bitsize and maxsize instead of HOST_WIDE_INT.
17165 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17167 PR rtl-optimization/57320
17168 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17169 the CFG after thread_prologue_and_epilogue_insns.
17171 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17173 PR rtl-optimization/57189
17174 * lra-constraints.c (process_alt_operands): Disfavor spilling
17177 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17179 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17181 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17183 PR tree-optimization/59025
17184 PR middle-end/60418
17185 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17186 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17188 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17191 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17192 calls of avr_out_plus_1.
17194 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17196 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17197 BB's single pred and update the father loop's latch info later.
17199 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17201 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17205 (VEC_base): Likewise.
17206 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17207 registers, we need to swap double words in little endian mode.
17209 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17210 to be a container mode for 128-bit integer operations added in ISA
17211 2.07. Unlike TImode and PTImode, the preferred register set is
17212 the Altivec/VMX registers for the 128-bit operations.
17214 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17216 (rs6000_split_128bit_ok_p): Likewise.
17218 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17219 macros for creating ISA 2.07 normal and overloaded builtin
17220 functions with 3 arguments.
17221 (BU_P8V_OVERLOAD_3): Likewise.
17222 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17223 for use as overloaded functions.
17224 (VPERM_1TI_UNS): Likewise.
17225 (VSEL_1TI): Likewise.
17226 (VSEL_1TI_UNS): Likewise.
17227 (ST_INTERNAL_1ti): Likewise.
17228 (LD_INTERNAL_1ti): Likewise.
17229 (XXSEL_1TI): Likewise.
17230 (XXSEL_1TI_UNS): Likewise.
17231 (VPERM_1TI): Likewise.
17232 (VPERM_1TI_UNS): Likewise.
17233 (XXPERMDI_1TI): Likewise.
17234 (SET_1TI): Likewise.
17235 (LXVD2X_V1TI): Likewise.
17236 (STXVD2X_V1TI): Likewise.
17237 (VEC_INIT_V1TI): Likewise.
17238 (VEC_SET_V1TI): Likewise.
17239 (VEC_EXT_V1TI): Likewise.
17240 (EQV_V1TI): Likewise.
17241 (NAND_V1TI): Likewise.
17242 (ORC_V1TI): Likewise.
17243 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17244 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17245 overloaded builtin.
17246 (VADDUQM): Likewise.
17247 (VSUBCUQ): Likewise.
17248 (VADDEUQM): Likewise.
17249 (VADDECUQ): Likewise.
17250 (VSUBEUQM): Likewise.
17251 (VSUBECUQ): Likewise.
17253 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17254 __int128_t and __uint128_t types.
17255 (__uint128_type): Likewise.
17256 (altivec_categorize_keyword): Add support for vector __int128_t,
17257 vector __uint128_t, vector __int128, and vector unsigned __int128
17258 as a container type for TImode operations that need to be done in
17259 VSX/Altivec registers.
17260 (rs6000_macro_to_expand): Likewise.
17261 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17262 to support 128-bit integer instructions vaddcuq, vadduqm,
17263 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17264 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17266 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17267 for V1TImode, and set up preferences to use VSX/Altivec registers.
17268 Setup VSX reload handlers.
17269 (rs6000_debug_reg_global): Likewise.
17270 (rs6000_init_hard_regno_mode_ok): Likewise.
17271 (rs6000_preferred_simd_mode): Likewise.
17272 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17273 (easy_altivec_constant): Likewise.
17274 (output_vec_const_move): Likewise.
17275 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17277 (rs6000_expand_vector_extract): Likewise.
17278 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17280 (rs6000_const_vec): Add support for V1TImode.
17281 (rs6000_emit_le_vsx_load): Swap double words when loading or
17282 storing TImode/V1TImode.
17283 (rs6000_emit_le_vsx_store): Likewise.
17284 (rs6000_emit_le_vsx_move): Likewise.
17285 (rs6000_emit_move): Add support for V1TImode.
17286 (altivec_expand_ld_builtin): Likewise.
17287 (altivec_expand_st_builtin): Likewise.
17288 (altivec_expand_vec_init_builtin): Likewise.
17289 (altivec_expand_builtin): Likewise.
17290 (rs6000_init_builtins): Add support for V1TImode type. Add
17291 support for ISA 2.07 128-bit integer builtins. Define type names
17292 for the VSX/Altivec vector types.
17293 (altivec_init_builtins): Add support for overloaded vector
17294 functions with V1TImode type.
17295 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17296 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17298 (rs6000_split_128bit_ok_p): Likewise.
17299 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17300 __int128_t and vector __uint128_t.
17302 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17303 and mode attributes.
17305 (VSX_M2): Likewise.
17310 (VS_scalar): Likewise.
17311 (VS_double): Likewise.
17312 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17314 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17315 we support the ISA 2.07 128-bit integer arithmetic instructions.
17316 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17317 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17318 and TImode types for use with the builtin functions.
17319 (V1TI_type_node): Likewise.
17320 (unsigned_V1TI_type_node): Likewise.
17321 (intTI_type_internal_node): Likewise.
17322 (uintTI_type_internal_node): Likewise.
17324 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17325 128-bit builtin functions.
17326 (UNSPEC_VADDEUQM): Likewise.
17327 (UNSPEC_VADDECUQ): Likewise.
17328 (UNSPEC_VSUBCUQ): Likewise.
17329 (UNSPEC_VSUBEUQM): Likewise.
17330 (UNSPEC_VSUBECUQ): Likewise.
17331 (VM): Add V1TImode to vector mode iterators.
17333 (VI_unit): Likewise.
17334 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17335 (altivec_vaddcuq): Likewise.
17336 (altivec_vsubuqm): Likewise.
17337 (altivec_vsubcuq): Likewise.
17338 (altivec_vaddeuqm): Likewise.
17339 (altivec_vaddecuq): Likewise.
17340 (altivec_vsubeuqm): Likewise.
17341 (altivec_vsubecuq): Likewise.
17343 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17345 (BOOL_128): Likewise.
17346 (BOOL_REGS_OUTPUT): Likewise.
17347 (BOOL_REGS_OP1): Likewise.
17348 (BOOL_REGS_OP2): Likewise.
17349 (BOOL_REGS_UNARY): Likewise.
17350 (BOOL_REGS_AND_CR0): Likewise.
17352 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17353 128-bit integer builtin support.
17354 (vec_vadduqm): Likewise.
17355 (vec_vaddecuq): Likewise.
17356 (vec_vaddeuqm): Likewise.
17357 (vec_vsubecuq): Likewise.
17358 (vec_vsubeuqm): Likewise.
17359 (vec_vsubcuq): Likewise.
17360 (vec_vsubuqm): Likewise.
17362 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17363 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17364 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17365 128-bit integer add/subtract to ISA 2.07.
17367 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17369 * config/arc/arc.c (arc_predicate_delay_insns):
17370 Fix third argument passed to conditionalize_nonjump.
17372 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17374 * config/aarch64/aarch64-builtins.c
17375 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17376 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17377 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17378 instead of __builtin_lfloor.
17379 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17381 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17383 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17384 (tree_ssa_ifcombine_bb_1): New function.
17385 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17386 is an empty forwarder block to then_bb or vice versa and then_bb
17387 and else_bb are effectively swapped.
17389 2014-03-12 Christian Bruel <christian.bruel@st.com>
17392 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17393 REG_CFA_DEF_CFA note.
17394 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17395 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17397 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17399 PR tree-optimization/60454
17400 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17402 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17404 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17405 Do not define target_cpu_default2 to generic.
17406 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17407 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17408 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17410 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17411 Marc Glisse <marc.glisse@inria.fr>
17413 PR tree-optimization/60502
17414 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17415 instead of build_low_bits_mask.
17417 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17419 PR middle-end/60482
17420 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17421 if there are multiple uses, but op doesn't live on E edge.
17422 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17423 clobber stmts before __builtin_unreachable.
17425 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17427 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17428 hard_frame_pointer_rtx.
17429 * cse.c (cse_insn): Remove volatile check.
17430 * cselib.c (cselib_process_insn): Likewise.
17431 * dse.c (scan_insn): Likewise.
17433 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17435 * config/arc/arc.c (conditionalize_nonjump): New function,
17437 (arc_ifcvt): ... this.
17438 (arc_predicate_delay_insns): Use it.
17440 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17442 * config/arc/predicates.md (extend_operand): During/after reload,
17443 allow const_int_operand.
17444 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17445 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17446 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17448 (umulsi3_highpart_i): Likewise.
17450 2014-03-11 Richard Biener <rguenther@suse.de>
17452 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17453 Add asserts to guard possible wrong-code bugs.
17455 2014-03-11 Richard Biener <rguenther@suse.de>
17457 PR tree-optimization/60429
17458 PR tree-optimization/60485
17459 * tree-ssa-structalias.c (set_union_with_increment): Properly
17460 take into account all fields that overlap the shifted vars.
17461 (do_sd_constraint): Likewise.
17462 (do_ds_constraint): Likewise.
17463 (get_constraint_for_ptr_offset): Likewise.
17465 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17467 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17468 (nios2_compute_frame_layout):
17469 Add calculation of cfun->machine->fp_save_offset.
17470 (nios2_expand_prologue): Correct setting of frame pointer register
17472 (nios2_expand_epilogue): Update recovery of stack pointer from
17473 frame pointer accordingly.
17474 (nios2_initial_elimination_offset): Update calculation of offset
17475 for eliminating to HARD_FRAME_POINTER_REGNUM.
17477 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17480 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17481 cgraph_get_create_node on VAR_DECLs.
17483 2014-03-10 Richard Biener <rguenther@suse.de>
17485 PR middle-end/60474
17486 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17488 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17490 * config/vms/vms.opt (vms_float_format): New variable.
17492 2014-03-08 Tobias Burnus <burnus@net-b.de>
17494 * doc/invoke.texi (-fcilkplus): Update implementation status.
17496 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17497 Richard Biener <rguenther@suse.de>
17499 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17500 consistently accross all TUs.
17501 (run_gcc): Enable -fshort-double automatically at link at link-time
17502 and disallow override.
17504 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17507 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17508 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17509 if they can't be used.
17511 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17513 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17514 for Solaris 11/x86 ld.
17515 * configure: Regenerate.
17517 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17519 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17520 (LIB_TLS_SPEC): Save as ld_tls_libs.
17521 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17522 (HAVE_AS_IX86_TLSLDM): New test.
17523 * configure, config.in: Regenerate.
17524 * config/i386/i386.c (legitimize_tls_address): Fall back to
17525 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17526 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17527 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17528 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17530 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17532 * common.opt (fira-loop-pressure): Mark as optimization.
17534 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17536 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17537 an OpenMP mappable type.
17539 2014-03-06 Matthias Klose <doko@ubuntu.com>
17541 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17542 MULTILIB_OSDIRNAMES is not defined.
17544 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17545 Meador Inge <meadori@codesourcery.com>
17548 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17549 (arm_legitimize_address): Call legitimize_tls_address for any
17550 arm_tls_referenced_p expression, handle constant addend. Call it
17551 before testing for !TARGET_ARM.
17552 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17554 2014-03-06 Richard Biener <rguenther@suse.de>
17556 PR middle-end/60445
17560 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17562 * tree-streamer.c (record_common_node): Assert we don't record
17563 nodes with type double.
17564 (preload_common_node): Skip type double, complex double and double
17565 pointer since it is now frontend dependent due to fshort-double option.
17567 2014-03-06 Richard Biener <rguenther@suse.de>
17569 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17570 or -fno-lto is specified and the linker has full plugin support.
17571 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17572 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17573 * lto-wrapper.c (merge_and_complain): Merge compile-time
17574 optimization levels.
17575 (run_gcc): And pass it through to the link options.
17577 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17581 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17583 * cselib.c (remove_useless_values): Skip to avoid quadratic
17584 behavior if the condition moved from...
17585 (cselib_process_insn): ... here holds.
17587 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17590 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17591 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17594 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17595 (TM_H): Add x86-tune.def.
17597 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17599 * config/aarch64/aarch64.c (generic_tunings):
17600 Use cortexa57_extra_costs.
17602 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17605 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17606 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17607 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17610 2014-03-04 Heiher <r@hev.cc>
17612 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17613 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17615 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17617 * config/i386/predicates.md (const2356_operand): Change to ...
17618 (const2367_operand): ... this.
17619 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17621 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17622 (*avx512pf_scatterpf<mode>sf): Ditto.
17623 (avx512pf_scatterpf<mode>df): Ditto.
17624 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17625 (*avx512pf_scatterpf<mode>df): Ditto.
17626 * config/i386/i386.c (ix86_expand_builtin): Update
17627 incorrect hint operand error message.
17629 2014-03-04 Richard Biener <rguenther@suse.de>
17631 * lto-section-in.c (lto_get_section_data): Fix const cast.
17633 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17635 * tree-streamer.c (record_common_node): Assert we don't record
17636 nodes with type double.
17637 (preload_common_node): Skip type double, complex double and double
17638 pointer since it is now frontend dependent due to fshort-double option.
17640 2014-03-04 Richard Biener <rguenther@suse.de>
17643 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17644 (lto_input_toplevel_asms): Likewise.
17645 * lto-section-in.c (lto_get_section_data): Instead do it here
17648 2014-03-04 Richard Biener <rguenther@suse.de>
17650 PR tree-optimization/60382
17651 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17652 dead PHIs a reduction.
17654 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17656 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17658 (_mm_prefetch): Move out of GCC target("sse") pragma.
17659 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17660 GCC target("prfchw") pragma.
17661 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17663 * config/i386/i386.c (ix86_option_override_internal): Enable
17664 -mprfchw with -mprefetchwt1.
17666 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17668 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17671 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17673 * opts.h (CL_PCH_IGNORE): Define.
17674 * targhooks.c (option_affects_pch_p):
17675 Return false for options that have CL_PCH_IGNORE set.
17676 * opt-functions.awk: Process PchIgnore.
17677 * doc/options.texi: Document PchIgnore.
17679 * config/arc/arc.opt (misize): Add PchIgnore property.
17681 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17683 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17684 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17685 constraint on constants to permit them being loaded into
17686 GENERAL_REGS or BASE_REGS.
17688 2014-03-03 Nick Clifton <nickc@redhat.com>
17690 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17691 anti-cacnonical alternatives.
17692 (negandhi3_real): New pattern.
17693 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17695 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17697 * config/avr/avr-mcus.def: Remove atxmega16x1.
17698 * config/avr/avr-tables.opt: Regenerate.
17699 * config/avr/t-multilib: Regenerate.
17700 * doc/avr-mmcu.texi: Regenerate.
17702 2014-03-03 Tobias Grosser <tobias@grosser.es>
17703 Mircea Namolaru <mircea.namolaru@inria.fr>
17705 PR tree-optimization/58028
17706 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17709 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17711 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17712 not handled by recognizers.
17714 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17716 PR middle-end/60175
17717 * function.c (expand_function_end): Don't emit
17718 clobber_return_register sequence if clobber_after is a BARRIER.
17719 * cfgexpand.c (construct_exit_block): Append instructions before
17720 return_label to prev_bb.
17722 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17724 * config/rs6000/constraints.md: Document reserved use of "wc".
17726 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17729 * ipa.c (function_and_variable_visibility): When dissolving comdat
17730 group, also set all symbols to local.
17732 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17737 2013-12-14 Jan Hubicka <jh@suse.cz>
17738 PR middle-end/58477
17739 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17741 2014-03-02 Jon Beniston <jon@beniston.com>
17747 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17748 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17749 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17750 (simple_return, *simple_return): New patterns
17751 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17752 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17754 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17756 * dwarf2out.c (gen_subprogram_die): Tidy.
17758 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17761 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17762 (*mov_t_msb_neg_negc): ... this new insn.
17764 2014-02-28 Jason Merrill <jason@redhat.com>
17767 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17770 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17773 * dwarf2out.c (decltype_auto_die): New static.
17774 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17775 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17776 (is_cxx_auto): Likewise.
17778 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17780 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17781 we are not using general regs only.
17783 2014-02-28 Richard Biener <rguenther@suse.de>
17786 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17787 previous fix and only allow to remove trivial pre-headers
17788 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17789 (remove_forwarder_block): Properly update the latch of a loop.
17791 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17794 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17795 (cselib_preserved_hash_table): New.
17796 (preserve_constants_and_equivs): Move preserved vals to it.
17797 (cselib_find_slot): Look it up first.
17798 (cselib_init): Initialize it.
17799 (cselib_finish): Release it.
17800 (dump_cselib_table): Dump it.
17802 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17805 * cselib.c (remove_useless_values): Skip to avoid quadratic
17806 behavior if the condition moved from...
17807 (cselib_process_insn): ... here holds.
17809 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17812 * var-tracking.c (vt_initialize): Apply the same condition to
17813 preserve the CFA base value.
17815 2014-02-28 Joey Ye <joey.ye@arm.com>
17818 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17819 if reload in progress or completed.
17821 2014-02-28 Tobias Burnus <burnus@net-b.de>
17823 PR middle-end/60147
17824 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17827 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17829 * doc/tm.texi.in (Condition Code Status): Update documention for
17830 relative locations of cc0-setter and cc0-user.
17832 2014-02-27 Jeff Law <law@redhat.com>
17834 PR rtl-optimization/52714
17835 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17836 into two independent simple sets, if I3 is a jump, ensure the
17837 pattern we place into I3 is a (set (pc) ...).
17839 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17840 Jeff Law <law@redhat.com>
17842 PR rtl-optimization/49847
17843 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17844 are in different blocks.
17845 * doc/tm.texi (Condition Code Status): Update documention for
17846 relative locations of cc0-setter and cc0-user.
17848 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17851 * lra.c (lra_emit_add): Check SUBREG too.
17853 2014-02-27 Andreas Schwab <schwab@suse.de>
17855 * config/m68k/m68k.c (m68k_option_override): Disable
17856 -flive-range-shrinkage for classic m68k.
17857 (m68k_override_options_after_change): Likewise.
17859 2014-02-27 Marek Polacek <polacek@redhat.com>
17861 PR middle-end/59223
17862 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17863 -Wmaybe-uninitialized.
17865 2014-02-27 Alan Modra <amodra@gmail.com>
17868 * reload1.c (emit_input_reload_insns): When reload_override_in,
17869 set old to rl->in_reg when rl->in_reg is a subreg.
17871 2014-02-26 Richard Biener <rguenther@suse.de>
17874 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17876 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17878 * common/config/i386/predicates.md (const1256_operand): Remove.
17879 (const2356_operand): New.
17880 (const_1_to_2_operand): Remove.
17881 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17882 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17883 (*avx512pf_gatherpf<mode>sf): Ditto.
17884 (avx512pf_gatherpf<mode>df): Ditto.
17885 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17886 (*avx512pf_gatherpf<mode>df): Ditto.
17887 (avx512pf_scatterpf<mode>sf): Ditto.
17888 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17889 (*avx512pf_scatterpf<mode>sf): Ditto.
17890 (avx512pf_scatterpf<mode>df): Ditto.
17891 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17892 (*avx512pf_scatterpf<mode>df): Ditto.
17893 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17895 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17897 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17898 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17899 (_mm512_mask_testn_epi64_mask): Move to ...
17900 * config/i386/avx512cdintrin.h: Here.
17901 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17902 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17903 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17904 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17905 TARGET_AVX512F from TARGET_AVX512CD.
17907 2014-02-26 Richard Biener <rguenther@suse.de>
17910 * ipa.c (walk_polymorphic_call_targets): Properly guard
17911 call to inline_update_overall_summary.
17913 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17916 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17917 and latches only if requested. Fix latch if it is removed.
17918 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17919 LOOPS_HAVE_PREHEADERS.
17921 2014-02-25 Andrew Pinski <apinski@cavium.com>
17923 * builtins.c (expand_builtin_thread_pointer): Create a new target
17924 when the target is NULL.
17926 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17928 PR rtl-optimization/60317
17929 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17930 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17931 * lra-assigns.c: Include params.h.
17932 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17933 other reload pseudos considerations.
17935 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17937 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17938 to use canonical form for nor<mode>3.
17940 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17943 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17946 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17948 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17949 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17950 (ix86_handle_option): Handle OPT_mprefetchwt1.
17951 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17952 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17954 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17955 OPTION_MASK_ISA_PREFETCHWT1.
17956 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17957 (PTA_PREFETCHWT1): New.
17958 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17959 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17960 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17961 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17962 (*prefetch_avx512pf_<mode>_: Change into ...
17963 (*prefetch_prefetchwt1_<mode>: This.
17964 * config/i386/i386.opt (mprefetchwt1): New.
17965 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17966 (_mm_prefetch): Handle intent to write.
17967 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17969 2014-02-25 Richard Biener <rguenther@suse.de>
17971 PR middle-end/60291
17972 * emit-rtl.c (mem_attrs_htab): Remove.
17973 (mem_attrs_htab_hash): Likewise.
17974 (mem_attrs_htab_eq): Likewise.
17975 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17976 (init_emit_once): Do not allocate mem_attrs_htab.
17978 2014-02-25 Richard Biener <rguenther@suse.de>
17981 * lto-opts.c (lto_write_options): Output non-explicit conservative
17982 -fwrapv, -fno-trapv and -fno-strict-overflow.
17983 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17984 (run_gcc): And pass them through.
17986 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17988 * sel-sched.c (calculate_new_fences): New parameter ptime.
17989 Calculate it as a maximum over all fence cycles.
17990 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17991 Print the final schedule timing when sched_verbose.
17993 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17995 PR rtl-optimization/60292
17996 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17997 bit fot the fence instruction.
17999 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18001 * calls.h: Fix typo in comment.
18003 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18005 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18006 adjusting offsetable addresses.
18008 2014-02-24 Guozhi Wei <carrot@google.com>
18010 * sparseset.h (sparseset_pop): Fix the wrong index.
18012 2014-02-24 Walter Lee <walt@tilera.com>
18014 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18015 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18017 * common/config/tilegx/tilegx-common.c
18018 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18019 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18020 (LINK_SPEC): Ditto.
18021 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18022 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18023 (tilegx_gimplify_va_arg_expr): Handle big endian.
18024 (tilegx_expand_unaligned_load): Ditto.
18025 (tilegx_expand_unaligned_store): Ditto.
18026 (TARGET_RETURN_IN_MSB): New.
18027 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18028 (TARGET_ENDIAN_DEFAULT): New.
18029 (TARGET_BIG_ENDIAN): Handle big endian.
18030 (BYTES_BIG_ENDIAN): Ditto.
18031 (WORDS_BIG_ENDIAN): Ditto.
18032 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18033 (ENDIAN_SPEC): New.
18034 (EXTRA_SPECS): New.
18035 * config/tilegx/tilegx.md (extv): Handle big endian.
18037 (insn_st<n>): Ditto.
18038 (insn_st<n>_add<bitsuffix>): Ditto.
18039 (insn_stnt<n>): Ditto.
18040 (insn_stnt<n>_add<bitsuffix>):Ditto.
18041 (vec_interleave_highv8qi): Handle big endian.
18042 (vec_interleave_highv8qi_be): New.
18043 (vec_interleave_highv8qi_le): New.
18044 (insn_v1int_h): Handle big endian.
18045 (vec_interleave_lowv8qi): Handle big endian.
18046 (vec_interleave_lowv8qi_be): New.
18047 (vec_interleave_lowv8qi_le): New.
18048 (insn_v1int_l): Handle big endian.
18049 (vec_interleave_highv4hi): Handle big endian.
18050 (vec_interleave_highv4hi_be): New.
18051 (vec_interleave_highv4hi_le): New.
18052 (insn_v2int_h): Handle big endian.
18053 (vec_interleave_lowv4hi): Handle big endian.
18054 (vec_interleave_lowv4hi_be): New.
18055 (vec_interleave_lowv4hi_le): New.
18056 (insn_v2int_l): Handle big endian.
18057 (vec_interleave_highv2si): Handle big endian.
18058 (vec_interleave_highv2si_be): New.
18059 (vec_interleave_highv2si_le): New.
18060 (insn_v4int_h): Handle big endian.
18061 (vec_interleave_lowv2si): Handle big endian.
18062 (vec_interleave_lowv2si_be): New.
18063 (vec_interleave_lowv2si_le): New.
18064 (insn_v4int_l): Handle big endian.
18065 * config/tilegx/tilegx.opt (mbig-endian): New option.
18066 (mlittle-endian): New option.
18067 * doc/install.texi: Document tilegxbe-linux.
18068 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18070 2014-02-24 Martin Jambor <mjambor@suse.cz>
18073 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18074 there are no parameter descriptors.
18076 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18078 PR rtl-optimization/60268
18079 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18080 initialization to ...
18081 (sched_rgn_init): ... here.
18082 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18084 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18086 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18089 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18091 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18094 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18096 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18097 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18099 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18101 * config/microblaze/predicates.md: Add cmp_op predicate.
18102 * config/microblaze/microblaze.md: Add branch_compare instruction
18103 which uses cmp_op predicate and emits cmp insn before branch.
18104 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18105 to microblaze_expand_conditional_branch and consolidate logic.
18106 (microblaze_expand_conditional_branch): emit branch_compare
18107 insn instead of handling cmp op separate from branch insn.
18109 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18111 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18114 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18116 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18117 define_insn with define_expand and new define_insn
18118 *altivec_lve<VI_char>x_internal.
18119 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18120 and new define_insn *altivec_stve<VI_char>x_internal.
18121 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18123 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18125 (altivec_expand_stvex_be): New function.
18127 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18129 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18130 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18131 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18132 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18134 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18137 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18138 instead of emit_move_insn.
18140 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18142 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18143 vspltw with vsldoi.
18144 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18145 gen_altivec_vsumsws.
18147 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18149 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18150 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18151 (altivec_lvxl_<mode>): New define_expand incorporating
18152 -maltivec=be semantics where needed.
18153 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18154 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18155 semantics where needed.
18156 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18157 (altivec_stvx_<mode>): New define_expand incorporating
18158 -maltivec=be semantics where needed.
18159 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18160 VM2 iterator instead of V4SI.
18161 (altivec_stvxl_<mode>): New define_expand incorporating
18162 -maltivec=be semantics where needed.
18163 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18164 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18165 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18166 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18167 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18168 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18169 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18170 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18171 ALTIVEC_BUILTIN_STVXL.
18172 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18173 (altivec_expand_stvx_be): Likewise.
18174 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18175 (altivec_expand_lvx_be): Likewise.
18176 (altivec_expand_stvx_be): Likewise.
18177 (altivec_expand_builtin): Add cases for
18178 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18179 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18180 (altivec_init_builtins): Add definitions for
18181 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18182 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18184 2014-02-21 Catherine Moore <clm@codesourcery.com>
18186 * doc/invoke.texi (mvirt, mno-virt): Document.
18187 * config/mips/mips.opt (mvirt): New option.
18188 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18190 2014-02-21 Richard Biener <rguenther@suse.de>
18192 PR tree-optimization/60276
18193 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18194 (STMT_VINFO_MIN_NEG_DIST): New macro.
18195 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18196 STMT_VINFO_MIN_NEG_DIST.
18197 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18198 made for negative dependence distances still hold.
18200 2014-02-21 Richard Biener <rguenther@suse.de>
18202 PR middle-end/60291
18203 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18204 DECL_INITIAL for globals not in the current function context.
18206 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18208 PR tree-optimization/56490
18209 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18210 * tree-ssa-uninit.c: Include params.h.
18211 (compute_control_dep_chain): Add num_calls argument, return false
18212 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18213 num_calls to recursive call.
18214 (find_predicates): Change dep_chain into normal array,
18215 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18216 variable and adjust compute_control_dep_chain caller.
18217 (find_def_preds): Likewise.
18219 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18221 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18222 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18224 2014-02-21 Nick Clifton <nickc@redhat.com>
18226 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18227 (pushhi1): Likewise.
18228 (popqi1): Add mode to pre_dec.
18229 (pophi1): Likewise.
18231 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18233 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18234 mode for mask of V8SFmode permutation.
18236 2014-02-20 Richard Henderson <rth@redhat.com>
18239 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18240 a new pseudo for OLDVAL.
18242 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18245 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18246 gen_reg_rtx if d->testing_p.
18247 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18248 if d->testing_p and we will certainly return true.
18249 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18252 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18254 * emit-rtl.c (gen_reg_rtx): Assert that
18255 crtl->emit.regno_pointer_align_length is non-zero.
18257 2014-02-20 Richard Henderson <rth@redhat.com>
18260 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18261 on failure the store back into EXPECT.
18263 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18264 Sandra Loosemore <sandra@codesourcery.com>
18266 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18267 * config/nios2/nios2.c (nios2_function_profiler): Add
18268 -fPIC (flag_pic == 2) support.
18269 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18270 (nios2_large_offset_p): New function.
18271 (nios2_unspec_reloc_p): Move up position, update to use
18272 nios2_large_offset_p.
18273 (nios2_unspec_address): Remove function.
18274 (nios2_unspec_offset): New function.
18275 (nios2_large_got_address): New function.
18276 (nios2_got_address): Add large offset support.
18277 (nios2_legitimize_tls_address): Update usage of removed and new
18279 (nios2_symbol_binds_local_p): New function.
18280 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18281 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18282 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18283 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18284 processing for (const (unspec ...)).
18285 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18287 2014-02-20 Richard Biener <rguenther@suse.de>
18289 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18290 doing the substitution.
18291 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18293 2014-02-20 Martin Jambor <mjambor@suse.cz>
18296 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18297 info when checking whether lattices are bottom.
18299 2014-02-20 Richard Biener <rguenther@suse.de>
18301 PR middle-end/60221
18302 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18305 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18308 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18309 parameter specifying the scaling.
18310 (inline_call): Update.
18311 (want_inline_recursively): Guard division by zero.
18312 (recursive_inlining): Update.
18313 * ipa-inline.h (clone_inlined_nodes): Update.
18315 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18318 * config/i386/i386.c (classify_argument): Pass structures of size
18319 64 bytes or less in register.
18321 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18322 Kirill Yukhin <kirill.yukhin@intel.com>
18324 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18325 (_mm_rcp28_round_ss): Ditto.
18326 (_mm_rsqrt28_round_sd): Ditto.
18327 (_mm_rsqrt28_round_ss): Ditto.
18328 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18329 (_mm_rcp14_round_ss): Ditto.
18330 (_mm_rsqrt14_round_sd): Ditto.
18331 (_mm_rsqrt14_round_ss): Ditto.
18332 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18333 the first input operand, get rid of match_dup.
18334 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18336 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18338 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18339 operand as the first input operand, set type attribute.
18340 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18341 Set type attribute.
18342 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18343 operand as the first input operand, set type attribute.
18345 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18347 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18350 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18353 * config/i386/i386.c (construct_container): Remove TFmode check
18354 for X86_64_INTEGER_CLASS.
18356 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18359 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18360 only when -Wpsabi is enabled.
18362 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18365 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18366 passing arrays in registers are the same as for structs, so remove the
18367 special case for them.
18369 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18371 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18372 destination type, extract only the valid bits if the source type is not
18373 integral and has a different mode.
18375 2014-02-19 Richard Biener <rguenther@suse.de>
18378 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18381 2014-02-19 Richard Biener <rguenther@suse.de>
18384 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18385 (ipa_modify_call_arguments): Emit an argument load explicitely and
18386 preserve virtual SSA form there and for the replacement call.
18387 Do not update SSA form nor free dominance info.
18389 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18391 * ipa.c (function_and_variable_visibility): Also clear WEAK
18392 flag when disolving COMDAT_GROUP.
18394 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18396 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18397 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18398 not devirtualizing.
18399 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18400 do more sanity checks.
18401 (detect_type_change): Return true when giving up early.
18402 (compute_complex_assign_jump_func): Fix type parameter of
18403 ipa_set_ancestor_jf.
18404 (compute_complex_ancestor_jump_func): Likewise.
18405 (update_jump_functions_after_inlining): Fix updating of
18407 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18409 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18411 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18412 inline clones when edge disappears.
18414 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18417 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18418 Split 64-bit moves into 2 patterns. Do not allow the use of
18419 direct move for TDmode in little endian, since the decimal value
18420 has little endian bytes within a word, but the 64-bit pieces are
18421 ordered in a big endian fashion, and normal subreg's of TDmode are
18423 (mov<mode>_64bit_dm): Likewise.
18424 (movtd_64bit_nodm): Likewise.
18426 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18428 PR tree-optimization/60174
18429 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18430 statement of an SSA_NAME that occurs in an abnormal PHI node.
18432 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18435 * final.c (SEEN_BB): Remove.
18436 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18437 (final_scan_insn): Don't force_source_line on second
18438 NOTE_INSN_BASIC_BLOCK.
18440 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18443 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18444 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18445 (type_natural_mode): Warn ABI change when %zmm register is not
18446 available for AVX512F vector value passing.
18448 2014-02-18 Kai Tietz <ktietz@redhat.com>
18451 * config/i386/i386.c (ix86_expand_prologue): Use value in
18452 rax register as displacement when restoring %r10 or %rax.
18453 Fix wrong offset when restoring both registers.
18455 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18457 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18458 assertion with conditional return.
18460 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18461 Uros Bizjak <ubizjak@gmail.com>
18464 * config/i386/driver-i386.c (host_detect_local_cpu): If
18465 YMM state is not saved by the OS, also clear has_f16c. Move
18466 CPUID 0x80000001 handling before YMM state saving checking.
18468 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18470 PR rtl-optimization/58960
18471 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18472 factored out from ...
18473 (sched_init): ... here.
18474 (free_global_sched_pressure_data): New, factored out from ...
18475 (sched_finish): ... here.
18476 * sched-int.h (free_global_sched_pressure_data): Declare.
18477 * sched-rgn.c (nr_regions_initial): New static global.
18478 (haifa_find_rgns): Initialize it.
18479 (schedule_region): Disable sched-pressure for the newly
18482 2014-02-17 Richard Biener <rguenther@suse.de>
18484 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18485 release SSA defs of pattern stmts.
18487 2014-02-17 Richard Biener <rguenther@suse.de>
18489 * tree-inline.c (expand_call_inline): Release the virtual
18490 operand defined by the call we are about to inline.
18492 2014-02-17 Richard Biener <rguenther@suse.de>
18494 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18496 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18497 Ilya Tocar <ilya.tocar@intel.com>
18499 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18500 arguments order in builtin.
18501 (_mm512_permutexvar_epi64): Ditto.
18502 (_mm512_mask_permutexvar_epi64): Ditto
18503 (_mm512_maskz_permutexvar_epi32): Ditto
18504 (_mm512_permutexvar_epi32): Ditto
18505 (_mm512_mask_permutexvar_epi32): Ditto
18507 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18509 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18510 (p8_vmrgow): Likewise.
18512 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18514 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18517 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18520 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18521 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18522 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18523 using direct move instructions on ISA 2.07. Also adjust
18524 instruction length for 64-bit.
18525 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18526 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18528 2014-02-15 Alan Modra <amodra@gmail.com>
18532 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18533 find_replacement on parts of insn rtl that might be reloaded.
18535 2014-02-15 Richard Biener <rguenther@suse.de>
18537 PR tree-optimization/60183
18538 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18539 (tree_ssa_phiprop): Calculate and free post-dominators.
18541 2014-02-14 Jeff Law <law@redhat.com>
18543 PR rtl-optimization/60131
18544 * ree.c (get_extended_src_reg): New function.
18545 (combine_reaching_defs): Use it rather than assuming location of REG.
18546 (find_and_remove_re): Verify first operand of extension is
18547 a REG before adding the insns to the copy list.
18549 2014-02-14 Roland McGrath <mcgrathr@google.com>
18551 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18552 * configure: Regenerated.
18553 * config.in: Regenerated.
18554 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18555 instead of ASM_SHORT.
18557 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18558 Richard Earnshaw <rearnsha@arm.com>
18560 PR rtl-optimization/59535
18561 * lra-constraints.c (process_alt_operands): Encourage alternative
18562 when unassigned pseudo class is superset of the alternative class.
18563 (inherit_reload_reg): Don't inherit when optimizing for code size.
18564 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18565 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18566 modes not less than 4 for Thumb1.
18568 2014-02-14 Kyle McMartin <kyle@redhat.com>
18571 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18573 2014-02-14 Richard Biener <rguenther@suse.de>
18575 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18576 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18577 Do not strip INDIRECT_REFs.
18579 2014-02-14 Richard Biener <rguenther@suse.de>
18582 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18583 DECL_FUNCTION_SPECIFIC_TARGET.
18584 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18585 * tree-streamer-out.c (pack_ts_target_option): Remove.
18586 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18587 (write_ts_function_decl_tree_pointers): Do not stream
18588 DECL_FUNCTION_SPECIFIC_TARGET.
18589 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18590 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18591 (lto_input_ts_function_decl_tree_pointers): Do not stream
18592 DECL_FUNCTION_SPECIFIC_TARGET.
18594 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18596 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18597 (get_initial_def_for_induction, vectorizable_induction): Ignore
18598 debug stmts when looking for exit_phi.
18599 (vectorizable_live_operation): Fix up condition.
18601 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18603 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18604 nreverse() because it changes the content of original tree list.
18606 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18608 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18609 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18611 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18613 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18614 GNU coding standards.
18616 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18619 * dwarf2out.c (gen_subprogram_die): Don't call
18620 add_calling_convention_attribute if subr_die is old_die.
18622 2014-02-13 Sharad Singhai <singhai@google.com>
18624 * doc/optinfo.texi: Fix order of nodes.
18626 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18628 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18629 operands[2], not operands[3].
18631 2014-02-13 Richard Biener <rguenther@suse.de>
18634 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18635 mention the possibility of an in-tree build.
18636 (CLooG): Update recommended version to 0.18.1, mention the
18637 possibility of an in-tree build and clarify that the ISL
18638 bundled with CLooG does not work.
18640 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18643 * expr.c (compress_float_constant): If x is a hard register,
18644 extend into a pseudo and then move to x.
18646 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18648 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18649 caused by bad second argument to warning_at() with -mhotpatch and
18650 nested functions (e.g. with gfortran).
18652 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18654 * opts.c (option_name): Remove "enabled by default" rider.
18656 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18658 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18660 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18661 Uros Bizjak <ubizjak@gmail.com>
18664 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18665 * configure: Regenerated.
18667 2014-02-12 Richard Biener <rguenther@suse.de>
18669 * vec.c (vec_prefix::calculate_allocation): Move as
18670 inline variant to vec.h.
18671 (vec_prefix::calculate_allocation_1): New out-of-line version.
18672 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18673 (vec_prefix::m_has_auto_buf): Rename to ...
18674 (vec_prefix::m_using_auto_storage): ... this.
18675 (vec_prefix::calculate_allocation): Inline the easy cases
18676 and dispatch to calculate_allocation_1 which doesn't need the
18678 (va_heap::reserve): Use gcc_checking_assert.
18679 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18680 m_using_auto_storage.
18681 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18683 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18684 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18685 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18687 2014-02-12 Richard Biener <rguenther@suse.de>
18689 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18690 when we found a dependence.
18692 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18694 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18696 (maybe_fold_stmt): ... into this new function.
18697 * omp-low.c (lower_omp): Update comment.
18699 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18702 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18705 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18707 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18708 identifiers in comments.
18709 (cortexa53_extra_costs): Likewise.
18710 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18711 (cortexa7_extra_costs): Likewise.
18712 (cortexa12_extra_costs): Likewise.
18713 (cortexa15_extra_costs): Likewise.
18714 (v7m_extra_costs): Likewise.
18716 2014-02-12 Richard Biener <rguenther@suse.de>
18718 PR middle-end/60092
18719 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18720 of posix_memalign being successful.
18721 (lower_stmt): Restrict lowering of posix_memalign to when
18722 -ftree-bit-ccp is enabled.
18724 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18726 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18728 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18730 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18732 PR rtl-optimization/60116
18733 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18734 other_insn once the combination has been validated.
18736 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18739 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18741 * ipa-devirt.c: Include demangle.h
18742 (odr_violation_reported): New static variable.
18743 (add_type_duplicate): Update odr_violations.
18744 (maybe_record_node): Add completep parameter; update it.
18745 (record_target_from_binfo): Add COMPLETEP parameter;
18746 update it as needed.
18747 (possible_polymorphic_call_targets_1): Likewise.
18748 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18749 rename FINAL to COMPLETE.
18750 (record_targets_from_bases): Sanity check we found the binfo;
18751 fix COMPLETEP updating.
18752 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18753 parameter, fix computing of COMPLETEP.
18754 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18755 at LTO time do demangling.
18756 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18757 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18759 (gimple_get_virt_method_for_binfo): Likewise.
18760 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18761 gimple_get_virt_method_for_vtable): Update prototypes.
18763 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18766 * genautomata.c (add_presence_absence): Fix typo with
18767 {final_}presence_list.
18769 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18772 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18773 for VSX/Altivec vectors that land in GPR registers.
18775 2014-02-11 Richard Henderson <rth@redhat.com>
18776 Jakub Jelinek <jakub@redhat.com>
18779 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18780 around drhs if type conversion to lacc->type is not useless.
18782 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18784 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18786 (cortex-a57.cortex-a53): Likewise.
18787 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18789 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18791 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18794 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18796 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18797 add_options_for_arm_vfp3.
18799 2014-02-11 Jeff Law <law@redhat.com>
18801 PR middle-end/54041
18802 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18803 object with an undesirable mode.
18805 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18808 * config/i386/sol2-9.h: New file.
18809 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18810 *-*-solaris2.9*): Use it.
18812 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18814 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18815 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18817 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18819 * config/microblaze/microblaze.c: Extend mcpu version format
18821 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18823 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18825 2014-02-10 Richard Henderson <rth@redhat.com>
18828 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18829 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18830 ms-abi vs -mno-accumulate-outgoing-args.
18831 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18832 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18835 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18837 PR middle-end/60080
18838 * cfgexpand.c (expand_asm_operands): Attach source location to
18839 ASM_INPUT rtx objects.
18840 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18842 2014-02-10 Nick Clifton <nickc@redhat.com>
18844 * config/mn10300/mn10300.c (popcount): New function.
18845 (mn10300_expand_prologue): Include saved registers in stack usage
18848 2014-02-10 Jeff Law <law@redhat.com>
18850 PR middle-end/52306
18851 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18852 when changing the SET_DEST of a prior insn to avoid an input reload.
18854 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18856 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18857 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18858 -mcall-openbsd, or -mcall-linux.
18859 (CC1_ENDIAN_BIG_SPEC): Remove.
18860 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18861 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18862 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18863 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18864 and %cc1_endian_default.
18865 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18867 2014-02-10 Richard Biener <rguenther@suse.de>
18869 PR tree-optimization/60115
18870 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18871 MEM_REF handling. Properly verify that the accesses are not
18872 out of the objects bound.
18874 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18876 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18879 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18881 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18882 proper constants and fix formatting.
18883 (possible_polymorphic_call_targets): Fix formatting.
18885 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18886 Ilya Tocar <ilya.tocar@intel.com>
18888 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18889 (_mm512_loadu_epi32): Renamed into...
18890 (_mm512_loadu_si512): This.
18891 (_mm512_storeu_epi32): Renamed into...
18892 (_mm512_storeu_si512): This.
18893 (_mm512_maskz_ceil_ps): Removed.
18894 (_mm512_maskz_ceil_pd): Ditto.
18895 (_mm512_maskz_floor_ps): Ditto.
18896 (_mm512_maskz_floor_pd): Ditto.
18897 (_mm512_floor_round_ps): Ditto.
18898 (_mm512_floor_round_pd): Ditto.
18899 (_mm512_ceil_round_ps): Ditto.
18900 (_mm512_ceil_round_pd): Ditto.
18901 (_mm512_mask_floor_round_ps): Ditto.
18902 (_mm512_mask_floor_round_pd): Ditto.
18903 (_mm512_mask_ceil_round_ps): Ditto.
18904 (_mm512_mask_ceil_round_pd): Ditto.
18905 (_mm512_maskz_floor_round_ps): Ditto.
18906 (_mm512_maskz_floor_round_pd): Ditto.
18907 (_mm512_maskz_ceil_round_ps): Ditto.
18908 (_mm512_maskz_ceil_round_pd): Ditto.
18909 (_mm512_expand_pd): Ditto.
18910 (_mm512_expand_ps): Ditto.
18911 * config/i386/i386.c (ix86_builtins): Remove
18912 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18913 (bdesc_args): Ditto.
18914 * config/i386/predicates.md (const1256_operand): New.
18915 (const_1_to_2_operand): Ditto.
18916 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18917 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18918 (*avx512pf_gatherpf<mode>sf): Ditto.
18919 (avx512pf_gatherpf<mode>df): Ditto.
18920 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18921 (*avx512pf_gatherpf<mode>df): Ditto.
18922 (avx512pf_scatterpf<mode>sf): Ditto.
18923 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18924 (*avx512pf_scatterpf<mode>sf): Ditto.
18925 (avx512pf_scatterpf<mode>df): Ditto.
18926 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18927 (*avx512pf_scatterpf<mode>df): Ditto.
18928 (avx512f_expand<mode>): Removed.
18929 (<shift_insn><mode>3<mask_name>): Change predicate type.
18931 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18933 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18934 not at the end of datarefs vector use ordered_remove to avoid
18935 reordering datarefs vector.
18938 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18939 mark local addressable non-static vars as GOVD_PRIVATE
18940 instead of GOVD_LOCAL.
18941 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18942 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18945 PR middle-end/60092
18946 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18947 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18948 assume_aligned or alloc_align attributes.
18949 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18950 arguments. Handle also assume_aligned and alloc_align attributes.
18951 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18952 calls to functions with assume_aligned or alloc_align attributes.
18953 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18955 2014-02-08 Terry Guo <terry.guo@arm.com>
18957 * doc/invoke.texi: Document ARM -march=armv7e-m.
18959 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18961 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18962 flag on __cilkrts_rethrow builtin.
18965 * ipa-cp.c (determine_versionability): Fail at -O0
18966 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18967 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18970 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18973 * tree-inline.c (copy_forbidden): Fail for
18974 __attribute__((optimize (0))) functions.
18976 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18978 * varpool.c: Include pointer-set.h.
18979 (varpool_remove_unreferenced_decls): Variables in other partitions
18980 will not be output; be however careful to not lose information
18981 about partitioning.
18983 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18985 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18986 lookup in the vtable constructor.
18988 2014-02-07 Jeff Law <law@redhat.com>
18991 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18992 define_insn_and_split.
18994 * ipa-inline.c (inline_small_functions): Fix typos.
18996 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18998 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18999 (s390_can_use_return_insn): Declare.
19000 * config/s390/s390.h (EPILOGUE_USES): Define.
19001 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19003 (s390_chunkify_start): Handle return JUMP_LABELs.
19004 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19005 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19006 (s390_can_use_return_insn): New functions.
19007 (s390_fix_long_loop_prediction): Handle conditional returns.
19008 (TARGET_SET_UP_BY_PROLOGUE): Define.
19009 * config/s390/s390.md (ANY_RETURN): New code iterator.
19010 (*creturn, *csimple_return, return, simple_return): New patterns.
19012 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19014 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19015 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19016 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19017 REG_CFA_RESTORE list when deciding not to restore a register.
19019 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19021 * config/s390/s390.c: Include tree-pass.h and context.h.
19022 (s390_early_mach): New function, split out from...
19023 (s390_emit_prologue): ...here.
19024 (pass_data_s390_early_mach): New pass structure.
19025 (pass_s390_early_mach): New class.
19026 (s390_option_override): Create and register early_mach pass.
19027 Move to end of file.
19029 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19031 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19032 to match for the exit block.
19034 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19036 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19037 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19038 Reject misaligned operands.
19040 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19042 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19044 2014-02-07 Richard Biener <rguenther@suse.de>
19046 PR middle-end/60092
19047 * gimple-low.c (lower_builtin_posix_memalign): New function.
19048 (lower_stmt): Call it to lower posix_memalign in a way
19049 to make alignment info accessible.
19051 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19054 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19055 __builtin_setjmp_receiver.
19057 2014-02-07 Richard Biener <rguenther@suse.de>
19059 PR middle-end/60092
19060 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19061 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19062 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19063 Handle BUILT_IN_POSIX_MEMALIGN.
19064 (find_func_clobbers): Likewise.
19065 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19066 (call_may_clobber_ref_p_1): Likewise.
19068 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19071 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19074 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19077 * lto-cgraph.c (lto_output_node): Use
19078 symtab_get_symbol_partitioning_class.
19079 (lto_output_varpool_node): likewise.
19080 (symtab_get_symbol_partitioning_class): Move here from
19081 lto/lto-partition.c
19082 * cgraph.h (symbol_partitioning_class): Likewise.
19083 (symtab_get_symbol_partitioning_class): Declare.
19085 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19087 * ggc.h (ggc_internal_cleared_alloc): New macro.
19088 * vec.h (vec_safe_copy): Handle memory stats.
19089 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19090 * target-globals.c (save_target_globals): Likewise.
19092 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19095 * expr.c (emit_move_resolve_push): Export; be bit more selective
19096 on when to clear alias set.
19097 * expr.h (emit_move_resolve_push): Declare.
19098 * function.h (struct function): Add tail_call_marked.
19099 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19100 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19101 * config/i386/i386.md (TImode move expander): De not call
19103 (FP push expanders): Preserve memory attributes.
19104 * config/i386/sse.md (push<mode>1): Remove.
19105 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19106 (ix86_expand_push): Remove.
19107 * config/i386/mmx.md (push<mode>1): Remove.
19109 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19111 PR rtl-optimization/60030
19112 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19113 lopart with paradoxical subreg before shifting it up by hprec.
19115 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19117 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19118 Remove extra newline at end of file.
19119 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19120 (arm_issue_rate): Handle cortexa57.
19121 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19122 (cortex-a57.cortex-a53): Likewise.
19124 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19127 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19128 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19130 (arm_expand_prologue): Adjust all callers.
19131 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19132 info, registers also at the lowest numbered registers side. Use
19133 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19137 * var-tracking.c (adjust_mems): Before adding a SET to
19138 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19140 2014-02-06 Alan Modra <amodra@gmail.com>
19143 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19144 change SDmode to DDmode when lra_in_progress.
19146 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19148 PR middle-end/59150
19149 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19150 free_data_ref on the dr first, and before goto again also set dr
19151 to the next dr. For simd_lane_access, free old datarefs[i] before
19152 overwriting it. For get_vectype_for_scalar_type failure, don't
19153 free_data_ref if simd_lane_access.
19155 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19158 * tree.h (opts_for_fn): New inline function.
19159 (opt_for_fn): Define.
19160 * config/i386/i386.c (ix86_function_regparm): Use
19161 opt_for_fn (decl, optimize) instead of optimize.
19163 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19165 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19166 for SYMBOL_REF in large memory model.
19168 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19170 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19171 and crypto support.
19172 (cortex-a57): Likewise.
19173 (cortex-a57.cortex-a53): Likewise.
19175 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19176 Kugan Vivekanandarajah <kuganv@linaro.org>
19178 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19180 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19182 2014-02-06 Richard Biener <rguenther@suse.de>
19184 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19185 set_loop_copy and initialize_original_copy_tables.
19187 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19189 * config/aarch64/aarch64-simd.md
19190 (aarch64_ashr_simddi): Change QI to SI.
19192 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19193 Jakub Jelinek <jakub@redhat.com>
19195 PR middle-end/60013
19196 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19199 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19201 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19202 CODE_FOR_altivec_vpku[hw]um to
19203 CODE_FOR_altivec_vpku[hw]um_direct.
19204 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19205 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19206 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19207 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19209 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19211 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19212 generation for -maltivec=be.
19213 (altivec_vsumsws): Simplify redundant test.
19215 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19217 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19218 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19219 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19220 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19221 gen_altivec_vpkuwum.
19222 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19224 (altivec_vpks<VI_char>ss): Likewise.
19225 (altivec_vpks<VI_char>us): Likewise.
19226 (altivec_vpku<VI_char>us): Likewise.
19227 (altivec_vpku<VI_char>um): Likewise.
19228 (altivec_vpku<VI_char>um_direct): New (copy of
19229 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19231 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19232 target is little endian and -maltivec=be is not specified.
19233 (*altivec_vupkhs<VU_char>_direct): New (copy of
19234 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19235 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19236 target is little endian and -maltivec=be is not specified.
19237 (*altivec_vupkls<VU_char>_direct): New (copy of
19238 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19239 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19240 little endian and -maltivec=be is not specified.
19241 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19242 little endian and -maltivec=be is not specified.
19244 2014-02-05 Richard Henderson <rth@redhat.com>
19247 * combine-stack-adj.c: Revert r206943.
19248 * sched-int.h (struct deps_desc): Add last_args_size.
19249 * sched-deps.c (init_deps): Initialize it.
19250 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19251 contain REG_ARGS_SIZE notes.
19253 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19255 * lto-cgraph.c (asm_nodes_output): Make global.
19256 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19257 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19258 (driver_handle_option): Handle OPT_fwpa.
19260 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19263 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19264 a comment typo and formatting issue. If odr_hash hasn't been
19265 created, return vNULL and set *completep to false.
19267 PR middle-end/57499
19268 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19269 bb with no successors.
19271 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19274 * doc/invoke.texi (-march): Clarify documentation for ARM.
19275 (-mtune): Likewise.
19278 2014-02-05 Richard Biener <rguenther@suse.de>
19280 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19281 when not vectorizing because of too many alias checks.
19282 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19283 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19285 2014-02-05 Nick Clifton <nickc@redhat.com>
19287 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19288 accept extended registers in any mode when compiling for the MN10300.
19290 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19292 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19293 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19294 sanitization attributes.
19295 (can_inline_edge_p): Likewise.
19296 (sanitize_attrs_match_for_inline_p): New function.
19298 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19300 * ipa-prop.c (detect_type_change): Shor circuit testing of
19301 type changes on THIS pointer.
19303 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19306 * config/pa/pa.c (legitimize_tls_address): Return original address
19307 if not passed a SYMBOL_REF rtx.
19308 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19310 (pa_emit_move_sequence): Simplify TLS source operands.
19311 (pa_legitimate_constant_p): Reject all TLS constants.
19312 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19313 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19315 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19317 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19318 groups when we know they are controlled by LTO.
19319 * varasm.c (default_binds_local_p_1): If object is in other partition,
19320 it will be resolved locally.
19322 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19324 * config/host-linux.c (linux_gt_pch_use_address): Don't
19325 use SSIZE_MAX because it is not always defined.
19327 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19330 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19331 threshold for pseudo splitting.
19332 (update_ebb_live_info): Process call argument hard registers and
19333 hard registers from insn definition too.
19334 (max_small_class_regs_num): New constant.
19335 (inherit_in_ebb): Update live hard regs through EBBs. Update
19336 reloads_num only for small register classes. Don't split for
19339 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19342 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19345 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19347 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19348 visibility is safe.
19350 2014-02-04 Marek Polacek <polacek@redhat.com>
19352 * gdbinit.in (pel): Define.
19354 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19356 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19359 2014-02-04 Richard Biener <rguenther@suse.de>
19362 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19363 in function context local.
19364 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19365 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19366 similar to LTO_imported_decl_ref.
19368 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19370 PR tree-optimization/60002
19371 * cgraphclones.c (build_function_decl_skip_args): Clear
19372 DECL_LANG_SPECIFIC.
19374 PR tree-optimization/60023
19375 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19376 false to gsi_replace.
19377 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19378 has been in some EH region and vec_stmt could throw, add
19379 vec_stmt into the same EH region.
19380 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19381 has no lhs, ignore it.
19382 * internal-fn.c (expand_MASK_LOAD): Likewise.
19385 * tree-inline.c (copy_forbidden): Fail for
19386 __attribute__((optimize (0))) functions.
19389 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19390 is set, copy one less argument.
19391 (expand_simd_clones): Don't subtract clone_info->inbranch
19392 from simd_clone_struct_alloc argument.
19394 PR rtl-optimization/57915
19395 * recog.c (simplify_while_replacing): If all unary/binary/relational
19396 operation arguments are constant, attempt to simplify those.
19398 PR middle-end/59261
19399 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19400 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19402 2014-02-04 Richard Biener <rguenther@suse.de>
19404 PR tree-optimization/60012
19405 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19406 TBAA disambiguation to all DDRs.
19408 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19411 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19412 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19414 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19417 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19419 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19421 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19422 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19424 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19427 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19428 to figure out targets of polymorphic calls with known decl.
19429 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19430 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19431 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19432 (get_polymorphic_call_info): ... here.
19433 (get_polymorphic_call_info_from_invariant): New function.
19435 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19437 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19438 lookup via vtable pointer; check for type consistency
19439 and turn inconsitent facts into UNREACHABLE.
19440 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19441 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19442 type inconsistent querries; return UNREACHABLE instead.
19444 2014-02-03 Richard Henderson <rth@twiddle.net>
19447 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19448 already processed this node.
19449 (normalize_one_pred_1): Pass along mark_set.
19450 (normalize_one_pred): Create and destroy a pointer_set_t.
19451 (normalize_one_pred_chain): Likewise.
19453 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19455 PR gcov-profile/58602
19456 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19458 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19461 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19462 -fno-devirtualize; try to devirtualize by the knowledge of
19463 virtual table pointer given by aggregate propagation.
19464 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19465 (ipa_print_node_jump_functions): Dump also offset that
19466 is relevant for polymorphic calls.
19467 (determine_known_aggregate_parts): Add arg_type parameter; use it
19468 instead of determining the type from pointer type.
19469 (ipa_compute_jump_functions_for_edge): Update call of
19470 determine_known_aggregate_parts.
19471 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19472 (gimple_get_virt_method_for_binfo): ... here; simplify using
19473 vtable_pointer_value_to_vtable.
19474 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19475 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19476 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19477 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19479 (vtable_pointer_value_to_binfo): ... here.
19480 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19482 2014-02-03 Teresa Johnson <tejohnson@google.com>
19484 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19485 redef of outer loop index variable.
19487 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19491 * doc/extend.texi (Function Attributes): Typo.
19493 2014-02-03 Cong Hou <congh@google.com>
19495 PR tree-optimization/60000
19496 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19497 if the vectorized statement is a store. A store statement can only
19498 appear at the end of pattern statements.
19500 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19502 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19503 (ix86_option_override_internal): Default long double to 64-bit for
19504 32-bit Bionic and to 128-bit for 64-bit Bionic.
19506 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19507 TARGET_LONG_DOUBLE_128 is true.
19508 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19510 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19511 (mlong-double-64): Negate -mlong-double-128.
19512 (mlong-double-128): New option.
19514 * config/i386/i386-c.c (ix86_target_macros): Define
19515 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19517 * doc/invoke.texi: Document -mlong-double-128.
19519 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19521 PR rtl-optimization/60024
19522 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19524 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19526 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19528 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19530 PR rtl-optimization/57662
19531 * sel-sched.c (code_motion_path_driver): Do not mark already not
19532 existing blocks in the visiting bitmap.
19534 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19536 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19537 on the insn being emitted.
19539 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19540 Will Deacon <will.deacon@arm.com>
19542 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19544 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19546 * config/arm/arm-tables.opt: Regenerate.
19548 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19550 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19551 for vector types other than V16QImode.
19552 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19553 define_expand, and call altivec_expand_vec_perm_le when producing
19554 code with little endian element order.
19555 (*altivec_vperm_<mode>_internal): New insn having previous
19556 behavior of altivec_vperm_<mode>.
19557 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19558 altivec_expand_vec_perm_le when producing code with little endian
19560 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19561 behavior of altivec_vperm_<mode>_uns.
19563 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19565 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19566 (altivec_vsumsws): Add handling for -maltivec=be with a little
19568 (altivec_vsumsws_direct): New.
19569 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19570 gen_altivec_vsumsws.
19572 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19574 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19575 vtable_pointer_value_to_binfo): New functions.
19576 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19577 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19579 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19581 * config/nios2/nios2.md (load_got_register): Initialize GOT
19582 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19583 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19585 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19587 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19588 preserverd by passthrough, do not propagate the type.
19590 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19592 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19593 (mips_atomic_assign_expand_fenv): New function.
19594 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19596 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19598 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19599 (__builtin_mips_set_fcsr): Likewise.
19600 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19601 MIPS_USI_FTYPE_VOID.
19602 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19603 (mips16_expand_set_fcsr): Likewise.
19604 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19605 (mips16_set_fcsr_stub): Likewise.
19606 (mips16_get_fcsr_one_only_stub): New class.
19607 (mips16_set_fcsr_one_only_stub): Likewise.
19608 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19609 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19610 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19611 (hard_float): New availability predicate.
19612 (mips_builtins): Add get_fcsr and set_fcsr.
19613 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19614 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19615 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19616 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19617 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19620 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19622 * config/mips/mips.c (mips_one_only_stub): New class.
19623 (mips_need_mips16_rdhwr_p): Replace with...
19624 (mips16_rdhwr_stub): ...this new variable.
19625 (mips16_stub_call_address): New function.
19626 (mips16_rdhwr_one_only_stub): New class.
19627 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19628 (mips_output_mips16_rdhwr): Delete.
19629 (mips_finish_stub): New function.
19630 (mips_code_end): Use it to handle rdhwr stubs.
19632 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19635 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19636 when calculating size of integer atomic types.
19638 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19640 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19642 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19644 PR tree-optimization/60003
19645 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19646 * profile.c (branch_prob): Use gimple_call_builtin_p
19647 to check for BUILT_IN_SETJMP_RECEIVER.
19648 * tree-inline.c (copy_bb): Call notice_special_calls.
19650 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19653 * lra-constraints.c (process_alt_operands): Update reload_sum only
19656 2014-01-31 Richard Henderson <rth@redhat.com>
19658 PR middle-end/60004
19659 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19660 until after else_eh is processed.
19662 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19664 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19665 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19666 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19667 in smmintrin.h, remove them.
19668 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19669 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19670 * config/i386/i386.md (ROUND_SAE): Fix value.
19671 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19672 (const48_operand): New.
19673 * config/i386/subst.md (round), (round_expand): Use
19674 const_4_or_8_to_11_operand.
19675 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19677 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19679 * config/i386/constraints.md (Yk): Swap meaning with k.
19680 * config/i386/i386.md (movhi_internal): Change Yk to k.
19681 (movqi_internal): Ditto.
19682 (*k<logic><mode>): Ditto.
19685 (kandn<mode>): Ditto.
19686 (*<code>hi_1): Ditto.
19687 (*<code>qi_1): Ditto.
19688 (kxnor<mode>): Ditto.
19689 (kortestzhi): Ditto.
19690 (kortestchi): Ditto.
19692 (*one_cmplhi2_1): Ditto.
19693 (*one_cmplqi2_1): Ditto.
19694 * config/i386/sse.md (): Change k to Yk.
19695 (avx512f_load<mode>_mask): Ditto.
19696 (avx512f_blendm<mode>): Ditto.
19697 (avx512f_store<mode>_mask): Ditto.
19698 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19699 (avx512f_storedqu<mode>_mask): Ditto.
19700 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19702 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19703 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19704 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19705 (avx512f_maskcmp<mode>3): Ditto.
19706 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19707 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19708 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19709 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19710 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19711 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19712 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19713 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19714 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19715 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19716 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19717 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19718 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19719 (vec_extract_lo_<mode>_maskm): Ditto.
19720 (vec_extract_hi_<mode>_maskm): Ditto.
19721 (avx512f_vternlog<mode>_mask): Ditto.
19722 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19723 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19724 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19725 (avx512f_<code>v8div16qi2_mask): Ditto.
19726 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19727 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19728 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19729 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19730 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19731 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19732 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19733 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19734 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19735 (avx512cd_maskb_vec_dupv8di): Ditto.
19736 (avx512cd_maskw_vec_dupv16si): Ditto.
19737 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19738 (avx512f_vpermi2var<mode>3_mask): Ditto.
19739 (avx512f_vpermi2var<mode>3_mask): Ditto.
19740 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19741 (*avx512f_gathersi<mode>): Ditto.
19742 (*avx512f_gathersi<mode>_2): Ditto.
19743 (*avx512f_gatherdi<mode>): Ditto.
19744 (*avx512f_gatherdi<mode>_2): Ditto.
19745 (*avx512f_scattersi<mode>): Ditto.
19746 (*avx512f_scatterdi<mode>): Ditto.
19747 (avx512f_compress<mode>_mask): Ditto.
19748 (avx512f_compressstore<mode>_mask): Ditto.
19749 (avx512f_expand<mode>_mask): Ditto.
19750 * config/i386/subst.md (mask): Change k to Yk.
19751 (mask_scalar_merge): Ditto.
19754 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19756 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19758 2014-01-31 Richard Biener <rguenther@suse.de>
19760 PR middle-end/59990
19761 * builtins.c (fold_builtin_memory_op): Make sure to not
19762 use a floating-point mode or a boolean or enumeral type for
19763 the copy operation.
19765 2014-01-30 DJ Delorie <dj@redhat.com>
19767 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19768 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19769 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19770 whenever main() has an epilogue.
19772 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19774 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19775 unused variable "field".
19776 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19777 (vsx_mergeh_<mode>): Likewise.
19778 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19779 (altivec_vmrghh): Likewise.
19780 (altivec_vmrghw): Likewise.
19781 (altivec_vmrglb): Likewise.
19782 (altivec_vmrglh): Likewise.
19783 (altivec_vmrglw): Likewise.
19784 (altivec_vspltb): Add missing uses.
19785 (altivec_vsplth): Likewise.
19786 (altivec_vspltw): Likewise.
19787 (altivec_vspltsf): Likewise.
19789 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19792 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19793 frame related instructions.
19795 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19797 PR rtl-optimization/59959
19798 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19799 any reload of register whose subreg is invalid.
19801 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19803 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19804 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19805 Add missing return type - void.
19807 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19809 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19810 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19811 remove element index adjustment for endian (now handled in vsx.md
19813 (altivec_expand_vec_perm_const): Use
19814 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19815 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19816 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19817 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19818 define_expand and a new define_insn *altivec_vspltb_internal;
19819 adjust for -maltivec=be on a little endian target.
19820 (altivec_vspltb_direct): New.
19821 (altivec_vsplth): Divide into a define_expand and a new
19822 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19823 little endian target.
19824 (altivec_vsplth_direct): New.
19825 (altivec_vspltw): Divide into a define_expand and a new
19826 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19827 little endian target.
19828 (altivec_vspltw_direct): New.
19829 (altivec_vspltsf): Divide into a define_expand and a new
19830 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19831 a little endian target.
19833 2014-01-30 Richard Biener <rguenther@suse.de>
19835 PR tree-optimization/59993
19836 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19837 can propagate form the earlier stmt and avoid the transform
19838 when the intermediate result is needed.
19840 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19842 * README.Portability: Fix typo.
19844 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19846 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19847 comparison_operator with ordered_comparison_operator.
19849 2014-01-30 Nick Clifton <nickc@redhat.com>
19851 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19852 Rename to mn10300_store_multiple_regs.
19853 * config/mn10300/mn10300.c: Likewise.
19854 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19855 store_multiple_regs.
19856 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19857 Call mn10300_store_multiple_regs.
19859 2014-01-30 Nick Clifton <nickc@redhat.com>
19860 DJ Delorie <dj@redhat.com>
19862 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19863 %fp 2 to keep registers after it properly word-aligned.
19864 (rl78_alloc_physical_registers_umul): Handle the case where both
19865 input operands are the same.
19867 2014-01-30 Richard Biener <rguenther@suse.de>
19869 PR tree-optimization/59903
19870 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19873 2014-01-30 Jason Merrill <jason@redhat.com>
19876 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19879 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19881 2014-01-30 Richard Biener <rguenther@suse.de>
19883 PR tree-optimization/59951
19884 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19886 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19889 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19890 SFmode to DFmode case.
19892 2014-01-29 DJ Delorie <dj@redhat.com>
19894 * config/msp430/msp430.opt (-minrt): New.
19895 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19897 (ENDFILE_SPEC): Likewise.
19899 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19901 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19902 (estimate_function_body_sizes): Use it.
19904 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19907 * dwarf2out.c (is_cxx_auto): New.
19908 (is_base_type): Use it.
19909 (gen_type_die_with_usage): Likewise.
19911 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19913 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19914 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19915 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19916 -maltivec=be with LE targets.
19917 (vsx_mergeh_<mode>): Likewise.
19918 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19919 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19920 (altivec_vmrghb): Replace with define_expand and new
19921 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19922 (altivec_vmrghb_direct): New define_insn.
19923 (altivec_vmrghh): Replace with define_expand and new
19924 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19925 (altivec_vmrghh_direct): New define_insn.
19926 (altivec_vmrghw): Replace with define_expand and new
19927 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19928 (altivec_vmrghw_direct): New define_insn.
19929 (*altivec_vmrghsf): Adjust for endianness.
19930 (altivec_vmrglb): Replace with define_expand and new
19931 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19932 (altivec_vmrglb_direct): New define_insn.
19933 (altivec_vmrglh): Replace with define_expand and new
19934 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19935 (altivec_vmrglh_direct): New define_insn.
19936 (altivec_vmrglw): Replace with define_expand and new
19937 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19938 (altivec_vmrglw_direct): New define_insn.
19939 (*altivec_vmrglsf): Adjust for endianness.
19940 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19941 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19942 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19943 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19944 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19945 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19946 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19947 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19949 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19951 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19952 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19955 2014-01-29 Richard Biener <rguenther@suse.de>
19957 PR tree-optimization/58742
19958 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19959 associate_pointerplus_align.
19960 (associate_pointerplus_diff): New function.
19961 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19962 and associate_pointerplus_diff.
19964 2014-01-29 Richard Biener <rguenther@suse.de>
19966 * lto-streamer.h (LTO_major_version): Bump to 3.
19967 (LTO_minor_version): Reset to 0.
19969 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19971 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19972 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19973 (arm_file_start): Generate correct asm header for armv7ve.
19974 * config/arm/bpabi.h: Add multilib support for armv7ve.
19975 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19976 and cortex-a15 to armv7ve.
19977 * config/arm/t-aprofile: Add multilib support for armv7ve.
19978 * doc/invoke.texi: Document -march=armv7ve.
19980 2014-01-29 Richard Biener <rguenther@suse.de>
19982 PR tree-optimization/58742
19983 * tree-ssa-forwprop.c (associate_plusminus): Return true
19984 if we changed sth, defer EH cleanup to ...
19985 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19986 (simplify_mult): New function.
19988 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19990 PR middle-end/59917
19991 PR tree-optimization/59920
19992 * tree.c (build_common_builtin_nodes): Remove
19993 __builtin_setjmp_dispatcher initialization.
19994 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19995 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19996 instead of gsi_after_labels + manually skipping debug stmts.
19997 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19998 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19999 * tree-inline.c (copy_edges_for_bb): Remove
20000 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20001 argument. Ignore computed_goto_p stmts. Don't call
20002 make_abnormal_goto_edges. If a call might need abnormal edges
20003 for non-local gotos, see if it already has an edge to
20004 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20005 with true argument, don't do anything then, otherwise add
20006 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20007 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20009 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20010 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20011 (lower_stmt): Don't set data->calls_builtin_setjmp.
20012 (lower_builtin_setjmp): Adjust comment.
20013 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20014 * tree-cfg.c (found_computed_goto): Remove.
20015 (factor_computed_gotos): Remove.
20016 (make_goto_expr_edges): Return bool, true for computed gotos.
20017 Don't call make_abnormal_goto_edges.
20018 (build_gimple_cfg): Don't set found_computed_goto, don't call
20019 factor_computed_gotos.
20020 (computed_goto_p): No longer static.
20021 (make_blocks): Don't set found_computed_goto.
20022 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20023 (make_edges): If make_goto_expr_edges returns true, push bb
20024 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20025 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20026 vector. Record mapping between bbs and OpenMP regions if there
20027 are any, adjust make_gimple_omp_edges caller. Call
20028 handle_abnormal_edges.
20029 (make_abnormal_goto_edges): Remove.
20030 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20031 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20032 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20033 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20034 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20035 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20036 filling *region also set *region_idx to (*region)->entry->index.
20039 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20040 For REGs set ORIGINAL_REGNO.
20042 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20044 * doc/md.texi: Mention that a target shouldn't implement
20045 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20048 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20050 PR tree-optimization/59594
20051 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20052 a copy of the datarefs vector rather than the vector itself.
20054 2014-01-28 Jason Merrill <jason@redhat.com>
20057 * dwarf2out.c (auto_die): New static.
20058 (gen_type_die_with_usage): Handle C++1y 'auto'.
20059 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20062 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20065 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20066 (SPEC_X32): Likewise.
20067 (SPEC_64): Likewise.
20068 * config/i386/i386.c (ix86_option_override_internal): Turn off
20069 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20071 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20072 * config/i386/i386.h (TARGET_16BIT): New macro.
20073 (TARGET_16BIT_P): Likewise.
20074 * config/i386/i386.opt: Add m16.
20075 * doc/invoke.texi: Document -m16.
20077 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20079 PR preprocessor/59935
20080 * input.c (location_get_source_line): Bail out on when line number
20081 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20083 2014-01-28 Richard Biener <rguenther@suse.de>
20085 PR tree-optimization/58742
20086 * tree-ssa-forwprop.c (associate_plusminus): Handle
20087 pointer subtraction of the form (T)(P + A) - (T)P.
20089 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20091 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20094 2014-01-28 Richard Biener <rguenther@suse.de>
20097 2014-01-28 Richard Biener <rguenther@suse.de>
20099 PR rtl-optimization/45364
20100 PR rtl-optimization/59890
20101 * var-tracking.c (local_get_addr_clear_given_value): Handle
20102 already cleared slot.
20103 (val_reset): Handle not allocated local_get_addr_cache.
20104 (vt_find_locations): Use post-order on the inverted CFG.
20106 2014-01-28 Richard Biener <rguenther@suse.de>
20108 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20110 2014-01-28 Richard Biener <rguenther@suse.de>
20112 PR rtl-optimization/45364
20113 PR rtl-optimization/59890
20114 * var-tracking.c (local_get_addr_clear_given_value): Handle
20115 already cleared slot.
20116 (val_reset): Handle not allocated local_get_addr_cache.
20117 (vt_find_locations): Use post-order on the inverted CFG.
20119 2014-01-28 Alan Modra <amodra@gmail.com>
20121 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20122 * configure.ac <recursive call for build != host>: Define
20123 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20124 and LD_FOR_BUILD too.
20125 * configure: Regenerate.
20127 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20129 * config/i386/i386.c (get_builtin_code_for_version): Separate
20130 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20131 Broadwell from Haswell.
20133 2014-01-27 Steve Ellcey <sellcey@mips.com>
20135 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20136 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20137 * config/mips/mips.c (mips_option_override): Change setting
20139 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20140 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20141 Change from Mask to Var.
20143 2014-01-27 Jeff Law <law@redhat.com>
20145 * ipa-inline.c (inline_small_functions): Fix typo.
20147 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20149 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20150 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20151 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20152 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20153 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20154 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20155 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20156 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20157 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20158 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20159 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20160 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20161 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20162 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20163 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20164 (_mm512_storeu_epi64): Ditto.
20165 (_mm512_cmpge_epi32_mask): Ditto.
20166 (_mm512_cmpge_epu32_mask): Ditto.
20167 (_mm512_cmpge_epi64_mask): Ditto.
20168 (_mm512_cmpge_epu64_mask): Ditto.
20169 (_mm512_cmple_epi32_mask): Ditto.
20170 (_mm512_cmple_epu32_mask): Ditto.
20171 (_mm512_cmple_epi64_mask): Ditto.
20172 (_mm512_cmple_epu64_mask): Ditto.
20173 (_mm512_cmplt_epi32_mask): Ditto.
20174 (_mm512_cmplt_epu32_mask): Ditto.
20175 (_mm512_cmplt_epi64_mask): Ditto.
20176 (_mm512_cmplt_epu64_mask): Ditto.
20177 (_mm512_cmpneq_epi32_mask): Ditto.
20178 (_mm512_cmpneq_epu32_mask): Ditto.
20179 (_mm512_cmpneq_epi64_mask): Ditto.
20180 (_mm512_cmpneq_epu64_mask): Ditto.
20181 (_mm512_expand_pd): Ditto.
20182 (_mm512_expand_ps): Ditto.
20183 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20184 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20185 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20186 * config/i386/i386.c (ix86_builtins): Add
20187 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20188 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20189 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20190 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20191 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20192 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20193 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20194 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20195 IX86_BUILTIN_PMOVUSQW512_MEM.
20196 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20197 __builtin_ia32_pmovsqd512mem_mask,
20198 __builtin_ia32_pmovqd512mem_mask,
20199 __builtin_ia32_pmovusqw512mem_mask,
20200 __builtin_ia32_pmovsqw512mem_mask,
20201 __builtin_ia32_pmovqw512mem_mask,
20202 __builtin_ia32_pmovusdw512mem_mask,
20203 __builtin_ia32_pmovsdw512mem_mask,
20204 __builtin_ia32_pmovdw512mem_mask,
20205 __builtin_ia32_pmovqb512mem_mask,
20206 __builtin_ia32_pmovusqb512mem_mask,
20207 __builtin_ia32_pmovsqb512mem_mask,
20208 __builtin_ia32_pmovusdb512mem_mask,
20209 __builtin_ia32_pmovsdb512mem_mask,
20210 __builtin_ia32_pmovdb512mem_mask.
20211 (bdesc_args): Add __builtin_ia32_expanddf512,
20212 __builtin_ia32_expandsf512.
20213 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20214 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20215 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20216 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20217 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20218 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20219 (avx512f_<code>v8div16qi2_mask_store): This.
20220 (avx512f_expand<mode>): New.
20222 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20224 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20226 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20227 (_mm512_prefetch_i32scatter_pd): Ditto.
20228 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20229 (_mm512_prefetch_i64scatter_pd): Ditto.
20230 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20231 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20232 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20233 (_mm512_prefetch_i32scatter_ps): Ditto.
20234 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20235 (_mm512_prefetch_i64scatter_ps): Ditto.
20236 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20237 * config/i386/i386-builtin-types.def: Define
20238 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20239 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20240 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20241 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20242 IX86_BUILTIN_SCATTERPFQPD.
20243 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20244 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20245 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20246 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20247 __builtin_ia32_scatterpfqps.
20248 (ix86_expand_builtin): Expand new built-ins.
20249 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20250 fix memory access data type.
20251 (*avx512pf_gatherpf<mode>_mask): Ditto.
20252 (*avx512pf_gatherpf<mode>): Ditto.
20253 (avx512pf_scatterpf<mode>): Ditto.
20254 (*avx512pf_scatterpf<mode>_mask): Ditto.
20255 (*avx512pf_scatterpf<mode>): Ditto.
20256 (GATHER_SCATTER_SF_MEM_MODE): New.
20257 (avx512pf_gatherpf<mode>df): Ditto.
20258 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20259 (*avx512pf_scatterpf<mode>df): Ditto.
20261 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20264 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20265 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20268 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20270 * common/config/arm/arm-common.c
20271 (arm_rewrite_mcpu): Handle multiple names.
20273 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20275 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20277 * gimple-builder.h (create_gimple_tmp): Delete.
20279 2014-01-27 Christian Bruel <christian.bruel@st.com>
20281 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20284 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20286 * config/pa/pa.md (call): Generate indirect long calls to non-local
20287 functions when outputing 32-bit code.
20288 (call_value): Likewise except for special call to buggy powf function.
20290 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20291 portable runtime and PIC indirect calls.
20292 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20293 and PIC call sequences. Use ldo instead of blr to set return register
20294 in PIC call sequence.
20296 2014-01-25 Walter Lee <walt@tilera.com>
20298 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20299 avoid clobbering a live register.
20301 2014-01-25 Walter Lee <walt@tilera.com>
20303 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20304 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20305 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20306 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20308 2014-01-25 Walter Lee <walt@tilera.com>
20310 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20311 arguments on even registers.
20312 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20314 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20315 (BIGGEST_ALIGNMENT): Ditto.
20316 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20318 2014-01-25 Walter Lee <walt@tilera.com>
20320 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20321 insns before bundling.
20322 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20324 2014-01-25 Walter Lee <walt@tilera.com>
20326 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20327 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20328 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20330 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20332 * config/mips/constraints.md (kl): Delete.
20333 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20334 define expands, using...
20335 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20336 instructions for MIPS16.
20337 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20338 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20340 2014-01-25 Walter Lee <walt@tilera.com>
20342 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20346 2014-01-25 Walter Lee <walt@tilera.com>
20348 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20349 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20351 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20353 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20356 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20358 * print-rtl.c (in_call_function_usage): New var.
20359 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20360 EXPR_LIST mode as mode and not as reg note name.
20362 PR middle-end/59561
20363 * cfgloopmanip.c (copy_loop_info): If
20364 loop->warned_aggressive_loop_optimizations, make sure
20365 the flag is set in target loop too.
20367 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20369 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20371 * builtins.def: Likewise.
20372 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20373 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20374 * ira.c (ira_setup_eliminable_regset): Likewise.
20375 * omp-low.c (gate_expand_omp): Likewise.
20376 (execute_lower_omp): Likewise.
20377 (diagnose_sb_0): Likewise.
20378 (gate_diagnose_omp_blocks): Likewise.
20379 (simd_clone_clauses_extract): Likewise.
20382 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20384 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20385 correction for little endian...
20386 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20389 2014-01-24 Jeff Law <law@redhat.com>
20391 PR tree-optimization/59919
20392 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20393 for non-returning calls.
20395 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20397 * common/config/aarch64/aarch64-common.c
20398 (aarch64_rewrite_mcpu): Handle multiple names.
20399 * config/aarch64/aarch64.h
20400 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20402 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20404 * input.c (add_file_to_cache_tab): Handle the case where fopen
20407 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20410 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20411 from push operand if code of push isn't PRE_DEC.
20413 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20416 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20417 -mquad-memory-atomic. Update -mquad-memory documentation to say
20418 it is only used for non-atomic loads/stores.
20420 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20421 -mquad-memory or -mquad-memory-atomic switches.
20423 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20424 -mquad-memory-atomic to ISA 2.07 support.
20426 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20427 to separate support of normal quad word memory operations (ldq, stq)
20428 from the atomic quad word memory operations.
20430 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20431 support to separate non-atomic quad word operations from atomic
20432 quad word operations. Disable non-atomic quad word operations in
20433 little endian mode so that we don't have to swap words after the
20434 load and before the store.
20435 (quad_load_store_p): Add comment about atomic quad word support.
20436 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20437 options printed with -mdebug=reg.
20439 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20440 -mquad-memory-atomic as the test for whether we have quad word
20441 atomic instructions.
20442 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20443 or -mp8-vector are used, allow byte/half-word atomic operations.
20445 * config/rs6000/sync.md (load_lockedti): Insure that the address
20446 is a proper indexed or indirect address for the lqarx instruction.
20447 On little endian systems, swap the hi/lo registers after the lqarx
20449 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20450 insure the address is valid for the lqarx instruction.
20451 (store_conditionalti): Insure that the address is a proper indexed
20452 or indirect address for the stqcrx. instruction. On little endian
20453 systems, swap the hi/lo registers before doing the stqcrx.
20455 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20456 insure the address is valid for the stqcrx. instruction.
20458 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20459 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20460 type of quad memory support is available.
20462 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20464 PR regression/59915
20465 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20466 there is a danger of looping.
20468 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20470 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20471 force flag_ira_loop_pressure if set via command line.
20473 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20475 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20476 (ashr_simd): New builtin handling DI mode.
20477 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20478 (aarch64_sshr_simddi): New match pattern.
20479 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20480 (vshrd_n_s64): Likewise.
20481 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20483 2014-01-23 Nick Clifton <nickc@redhat.com>
20485 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20486 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20487 favour of mcu specific scripts.
20488 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20491 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20492 Alex Velenko <Alex.Velenko@arm.com>
20494 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20495 (vaddv_s16): Likewise.
20496 (vaddv_s32): Likewise.
20497 (vaddv_u8): Likewise.
20498 (vaddv_u16): Likewise.
20499 (vaddv_u32): Likewise.
20500 (vaddvq_s8): Likewise.
20501 (vaddvq_s16): Likewise.
20502 (vaddvq_s32): Likewise.
20503 (vaddvq_s64): Likewise.
20504 (vaddvq_u8): Likewise.
20505 (vaddvq_u16): Likewise.
20506 (vaddvq_u32): Likewise.
20507 (vaddvq_u64): Likewise.
20508 (vaddv_f32): Likewise.
20509 (vaddvq_f32): Likewise.
20510 (vaddvq_f64): Likewise.
20511 (vmaxv_f32): Likewise.
20512 (vmaxv_s8): Likewise.
20513 (vmaxv_s16): Likewise.
20514 (vmaxv_s32): Likewise.
20515 (vmaxv_u8): Likewise.
20516 (vmaxv_u16): Likewise.
20517 (vmaxv_u32): Likewise.
20518 (vmaxvq_f32): Likewise.
20519 (vmaxvq_f64): Likewise.
20520 (vmaxvq_s8): Likewise.
20521 (vmaxvq_s16): Likewise.
20522 (vmaxvq_s32): Likewise.
20523 (vmaxvq_u8): Likewise.
20524 (vmaxvq_u16): Likewise.
20525 (vmaxvq_u32): Likewise.
20526 (vmaxnmv_f32): Likewise.
20527 (vmaxnmvq_f32): Likewise.
20528 (vmaxnmvq_f64): Likewise.
20529 (vminv_f32): Likewise.
20530 (vminv_s8): Likewise.
20531 (vminv_s16): Likewise.
20532 (vminv_s32): Likewise.
20533 (vminv_u8): Likewise.
20534 (vminv_u16): Likewise.
20535 (vminv_u32): Likewise.
20536 (vminvq_f32): Likewise.
20537 (vminvq_f64): Likewise.
20538 (vminvq_s8): Likewise.
20539 (vminvq_s16): Likewise.
20540 (vminvq_s32): Likewise.
20541 (vminvq_u8): Likewise.
20542 (vminvq_u16): Likewise.
20543 (vminvq_u32): Likewise.
20544 (vminnmv_f32): Likewise.
20545 (vminnmvq_f32): Likewise.
20546 (vminnmvq_f64): Likewise.
20548 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20550 * config/aarch64/aarch64-simd.md
20551 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20552 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20553 (*aarch64_mul3_elt<mode>): Likewise.
20554 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20555 (*aarch64_mul3_elt_to_64v2df): Likewise.
20556 (*aarch64_mla_elt<mode>): Likewise.
20557 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20558 (*aarch64_mls_elt<mode>): Likewise.
20559 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20560 (*aarch64_fma4_elt<mode>): Likewise.
20561 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20562 (*aarch64_fma4_elt_to_64v2df): Likewise.
20563 (*aarch64_fnma4_elt<mode>): Likewise.
20564 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20565 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20566 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20567 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20568 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20569 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20570 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20571 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20572 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20574 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20576 * config/aarch64/aarch64-simd.md
20577 (aarch64_be_checked_get_lane<mode>): New define_expand.
20578 * config/aarch64/aarch64-simd-builtins.def
20579 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20580 New builtin definition.
20581 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20582 Use new safe be builtin.
20584 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20586 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20588 (aarch64_be_st1<mode>): Likewise.
20589 (aarch_ld1<VALL:mode>): Define_expand modified.
20590 (aarch_st1<VALL:mode>): Likewise.
20591 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20592 (UNSPEC_ST1): Likewise.
20594 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20596 * config/microblaze/microblaze.md: Add trap insn and attribute
20598 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20600 PR preprocessor/58580
20601 * input.h (location_get_source_line): Take an additional line_size
20603 (void diagnostics_file_cache_fini): Declare new function.
20604 * input.c (struct fcache): New type.
20605 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20606 New static constants.
20607 (diagnostic_file_cache_init, total_lines_num)
20608 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20609 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20610 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20611 (get_next_line, read_next_line, goto_next_line, read_line_num):
20612 New static function definitions.
20613 (diagnostic_file_cache_fini): New function.
20614 (location_get_source_line): Take an additional output line_len
20615 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20617 * diagnostic.c (diagnostic_finish): Call
20618 diagnostic_file_cache_fini.
20619 (adjust_line): Take an additional input parameter for the length
20620 of the line, rather than calculating it with strlen.
20621 (diagnostic_show_locus): Adjust the use of
20622 location_get_source_line and adjust_line with respect to their new
20623 signature. While displaying a line now, do not stop at the first
20624 null byte. Rather, display the zero byte as a space and keep
20625 going until we reach the size of the line.
20626 * Makefile.in: Add vec.o to OBJS-libcommon
20628 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20629 Ilya Tocar <ilya.tocar@intel.com>
20631 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20632 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20633 (__builtin_ia32_kmov16): Ditto.
20634 * config/i386/i386.md (UNSPEC_KMOV): New.
20637 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20639 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20640 (_mm512_storeu_si512): Ditto.
20642 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20645 * rtl.h (get_referenced_operands): Declare.
20646 * recog.c (get_referenced_operands): New function.
20647 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20648 operands have been referenced when recording LO_SUM references.
20650 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20652 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20654 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20656 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20657 Enable for generic and recent AMD targets.
20659 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20661 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20662 ARG_SIZE note when adjustment was eliminated.
20664 2014-01-22 Jeff Law <law@redhat.com>
20666 PR tree-optimization/59597
20667 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20668 in file. Accept new argument REGISTERING and use it to modify
20669 dump output appropriately.
20670 (register_jump_thread): Corresponding changes.
20671 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20672 thread paths involving joiner blocks. Add code to dump cancelled
20673 jump threading paths.
20675 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20677 PR rtl-optimization/59477
20678 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20679 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20681 2014-01-22 Tom Tromey <tromey@redhat.com>
20683 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20685 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20687 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20689 PR rtl-optimization/59896
20690 * lra-constraints.c (process_alt_operands): Check unused note for
20691 matched operands of insn with no output reloads.
20693 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20695 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20696 (mips_move_from_gpr_cost): Likewise.
20698 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20700 PR rtl-optimization/59858
20701 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20702 ira_class_hard_regs_num.
20703 (process_alt_operands): Increase reject for dying matched operand.
20705 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20708 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20709 smaller than size, perform several stores or loads and stores
20710 at dst + count - size to store or copy all of size bytes, rather
20711 than just last modesize bytes.
20713 2014-01-20 DJ Delorie <dj@redhat.com>
20715 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20716 that CLOBBERs are REGs before propogating their values.
20718 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20720 PR middle-end/59789
20721 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20722 (cgraph_inline_failed_type): New function.
20723 * cgraph.h (DEFCIFCODE): Add type.
20724 (cgraph_inline_failed_type_t): New enum.
20725 (cgraph_inline_failed_type): New prototype.
20726 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20727 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20728 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20729 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20730 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20731 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20732 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20733 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20734 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20735 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20736 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20737 OPTIMIZATION_MISMATCH.
20738 * tree-inline.c (expand_call_inline): Emit errors during
20739 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20741 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20744 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20745 mode attribute in insn output.
20747 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20749 * output.h (output_constant): Delete.
20750 * varasm.c (output_constant): Make private.
20752 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20754 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20756 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20758 PR middle-end/59860
20759 * tree.h (fold_builtin_strcat): New prototype.
20760 * builtins.c (fold_builtin_strcat): No longer static. Add len
20761 argument, if non-NULL, don't call c_strlen. Optimize
20762 directly into __builtin_memcpy instead of __builtin_strcpy.
20763 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20764 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20766 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20768 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20769 for SImode_address_operand operands, having only a REG argument.
20771 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20773 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20774 loader name using mbig-endian.
20775 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20777 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20779 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20780 (-mtune): Likewise.
20783 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20785 * config/aarch64/aarch64-protos.h
20786 (aarch64_cannot_change_mode_class_ptr): Declare.
20787 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20788 aarch64_cannot_change_mode_class_ptr): New.
20789 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20790 backend hook aarch64_cannot_change_mode_class.
20792 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20794 * common/config/aarch64/aarch64-common.c
20795 (aarch64_handle_option): Don't handle any option order logic here.
20796 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20797 selected_cpu, warn on architecture version mismatch.
20798 (aarch64_override_options): Fix parsing order for option strings.
20800 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20801 Iain Sandoe <iain@codesourcery.com>
20804 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20805 warning. Amend comment to reflect current functionality.
20807 2014-01-20 Richard Biener <rguenther@suse.de>
20809 PR middle-end/59860
20810 * builtins.c (fold_builtin_strcat): Remove case better handled
20811 by tree-ssa-strlen.c.
20813 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20815 * config/aarch64/aarch64.opt
20816 (mcpu, march, mtune): Make case-insensitive.
20818 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20821 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20822 if operands[1] is a REG or ZERO_EXTEND of a REG.
20824 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20826 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20828 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20830 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20831 long non-pic millicode calls.
20833 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20835 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20837 2014-01-19 Kito Cheng <kito@0xlab.org>
20839 * builtins.c (expand_movstr): Check movstr expand done or fail.
20841 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20842 H.J. Lu <hongjiu.lu@intel.com>
20845 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20846 to DImode for zero-extended addresses.
20848 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20850 PR rtl-optimization/57763
20851 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20852 on the new indirect jump_insn and increment LABEL_NUSES (label).
20854 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20858 * config.gcc (x86_archs): New variable.
20859 (x86_64_archs): Likewise.
20860 (x86_cpus): Likewise.
20861 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20862 --with-arch/--with-cpu= options.
20863 Support --with-arch=/--with-cpu={nehalem,westmere,
20864 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20866 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20868 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20869 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20871 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20873 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20875 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20878 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20879 clear cpp_get_options (parse_in)->warn_unused_macros for
20880 ix86_target_macros_internal with cpp_define.
20882 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20884 * jump.c (delete_related_insns): Keep (use (insn))s.
20885 * reorg.c (redundant_insn): Check for barriers too.
20887 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20889 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20891 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20893 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20894 call to $$dyncall when TARGET_LONG_CALLS is true.
20896 2014-01-17 Jeff Law <law@redhat.com>
20898 * ree.c (combine_set_extension): Temporarily disable test for
20899 changing number of hard registers.
20901 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20903 PR middle-end/58125
20904 * ipa-inline-analysis.c (inline_free_summary):
20905 Do not free summary of aliases.
20907 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20909 PR middle-end/59706
20910 * gimplify.c (gimplify_expr): Use create_tmp_var
20911 instead of create_tmp_var_raw. If cond doesn't have
20912 integral type, don't add the IFN_ANNOTATE builtin at all.
20914 2014-01-17 Martin Jambor <mjambor@suse.cz>
20917 * ipa-cp.c (prev_edge_clone): New variable.
20918 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20919 Also resize prev_edge_clone vector.
20920 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20921 (ipcp_edge_removal_hook): New function.
20922 (ipcp_driver): Register ipcp_edge_removal_hook.
20924 2014-01-17 Andrew Pinski <apinski@cavium.com>
20925 Steve Ellcey <sellcey@mips.com>
20928 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20931 2014-01-17 Jeff Law <law@redhat.com>
20933 PR middle-end/57904
20934 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20935 so that pass_ccp runs first.
20937 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20939 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20940 (ix86_adjust_cost): Use !TARGET_XXX.
20941 (do_reorder_for_imul): Likewise.
20942 (swap_top_of_ready_list): Likewise.
20943 (ix86_sched_reorder): Likewise.
20945 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20947 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20948 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20949 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20950 (intel_memset): New. Duplicate slm_memset.
20951 (intel_cost): New. Duplicate slm_cost.
20952 (m_INTEL): New macro.
20953 (processor_target_table): Add "intel".
20954 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20955 with PROCESSOR_INTEL for "intel".
20956 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20957 PROCESSOR_SILVERMONT.
20958 (ix86_issue_rate): Likewise.
20959 (ix86_adjust_cost): Likewise.
20960 (ia32_multipass_dfa_lookahead): Likewise.
20961 (swap_top_of_ready_list): Likewise.
20962 (ix86_sched_reorder): Likewise.
20963 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20964 instead of TARGET_OPT_AGU.
20965 * config/i386/i386.h (TARGET_INTEL): New.
20966 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20967 (processor_type): Add PROCESSOR_INTEL.
20968 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20969 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20971 2014-01-17 Marek Polacek <polacek@redhat.com>
20974 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20977 2014-01-17 Richard Biener <rguenther@suse.de>
20979 PR tree-optimization/46590
20980 * opts.c (default_options_table): Add entries for
20981 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20982 all enabled at -O1 but not for -Og.
20983 * common.opt (fbranch-count-reg): Remove Init(1).
20984 (fmove-loop-invariants): Likewise.
20985 (ftree-pta): Likewise.
20987 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20989 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20990 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20991 decls to at least the GCC 4.8 used alignments.
20994 * tree-nested.c (convert_nonlocal_reference_stmt,
20995 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20996 of GIMPLE_BIND stmts, adjust associated decls.
20998 2014-01-17 Richard Biener <rguenther@suse.de>
21000 PR tree-optimization/46590
21001 * vec.h (vec<>::bseach): New member function implementing
21002 binary search according to C89 bsearch.
21003 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21004 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21005 bitmap pointer again. Make accesses_in_loop a flat array.
21006 (mem_ref_obstack): New global.
21007 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21008 (mark_ref_stored): Likewise.
21009 (ref_indep_loop_p_2): Likewise.
21010 (set_ref_stored_in_loop): New helper function.
21011 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21012 (memref_free): Adjust.
21013 (record_mem_ref_loc): Simplify.
21014 (gather_mem_refs_stmt): Adjust.
21015 (sort_locs_in_loop_postorder_cmp): New function.
21016 (analyze_memory_references): Sort accesses_in_loop after
21017 loop postorder number.
21018 (find_ref_loc_in_loop_cmp): New function.
21019 (for_all_locs_in_loop): Find relevant cluster of locs in
21020 accesses_in_loop and iterate without recursion.
21021 (execute_sm): Avoid uninit warning.
21022 (struct ref_always_accessed): Simplify.
21023 (ref_always_accessed::operator ()): Likewise.
21024 (ref_always_accessed_p): Likewise.
21025 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21026 loop postorder numbers here.
21027 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21030 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21033 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21034 on decls for which assemble_alias has been called.
21036 2014-01-17 Nick Clifton <nickc@redhat.com>
21038 * config/msp430/msp430.opt: (mcpu): New option.
21039 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21040 (msp430_option_override): Parse target_cpu. If the MCU name
21041 matches a generic string, clear target_mcu.
21042 (msp430_attr): Allow numeric interrupt values up to 63.
21043 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21044 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21046 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21048 * config/msp430/msp430.md (popm): Use %J rather than %I.
21049 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21050 (addhi_cy_i): Use immediate_operand for operand 2.
21051 * doc/invoke.texi: Document -mcpu option.
21053 2014-01-17 Richard Biener <rguenther@suse.de>
21055 PR rtl-optimization/38518
21056 * df.h (df_analyze_loop): Declare.
21057 * df-core.c: Include cfgloop.h.
21058 (df_analyze_1): Split out main part of df_analyze.
21059 (df_analyze): Adjust.
21060 (loop_inverted_post_order_compute): New function.
21061 (loop_post_order_compute): Likewise.
21062 (df_analyze_loop): New function avoiding whole-function
21063 postorder computes.
21064 * loop-invariant.c (find_defs): Use df_analyze_loop.
21065 (find_invariants): Adjust.
21066 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21068 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21070 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21071 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21073 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21075 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21076 traversal when removing references.
21078 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21081 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21083 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21085 PR middle-end/56791
21086 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21087 pushing a reload for an autoinc when we had previously reloaded an
21088 inner part of the address.
21090 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21092 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21094 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21095 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21096 when not giving up or versioning for alias only because of
21098 (vect_analyze_data_ref_dependences): Set to true.
21099 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21101 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21102 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21105 PR middle-end/58344
21106 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21109 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21110 operand 0 predicate for gathers, use a new pseudo as subtarget.
21112 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21114 PR middle-end/59609
21115 * lra-constraints.c (process_alt_operands): Add printing debug info.
21116 Check absence of input/output reloads for matched operands too.
21118 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21120 PR rtl-optimization/59835
21121 * ira.c (ira_init_register_move_cost): Increase cost for
21124 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21126 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21128 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21131 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21132 non-register objects. Use gen_(high/low)part more consistently.
21135 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21138 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21139 endian support, remove tests for WORDS_BIG_ENDIAN.
21140 (p8_mfvsrd_3_<mode>): Likewise.
21141 (reload_gpr_from_vsx<mode>): Likewise.
21142 (reload_gpr_from_vsxsf): Likewise.
21143 (p8_mfvsrd_4_disf): Likewise.
21145 2014-01-16 Richard Biener <rguenther@suse.de>
21147 PR rtl-optimization/46590
21148 * lcm.c (compute_antinout_edge): Use postorder iteration.
21149 (compute_laterin): Use inverted postorder iteration.
21151 2014-01-16 Nick Clifton <nickc@redhat.com>
21153 PR middle-end/28865
21154 * varasm.c (output_constant): Return the number of bytes actually
21156 (output_constructor_array_range): Update the field size with the
21157 number of bytes emitted by output_constant.
21158 (output_constructor_regular_field): Likewise. Also do not
21159 complain if the total number of bytes emitted is now greater
21160 than the expected fieldpos.
21161 * output.h (output_constant): Update prototype and descriptive comment.
21163 2014-01-16 Marek Polacek <polacek@redhat.com>
21165 PR middle-end/59827
21166 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21167 it is error_mark_node.
21169 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21171 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21172 VALID_AVX256_REG_OR_OI_MODE.
21174 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21176 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21177 current procedure should be profiled.
21179 2014-01-15 Andrew Pinski <apinski@cavium.com>
21181 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21182 of moving from/to the STACK_REG register class.
21184 2014-01-15 Richard Henderson <rth@redhat.com>
21187 * reginfo.c (global_regs_decl): Globalize.
21188 * rtl.h (global_regs_decl): Declare.
21189 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21190 reserved via global_regs.
21192 2014-01-15 Teresa Johnson <tejohnson@google.com>
21194 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21196 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21198 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21199 and vmulosh rather than call gen_vec_widen_smult_*.
21200 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21201 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21202 (vec_widen_smult_even_v16qi): Likewise.
21203 (vec_widen_umult_even_v8hi): Likewise.
21204 (vec_widen_smult_even_v8hi): Likewise.
21205 (vec_widen_umult_odd_v16qi): Likewise.
21206 (vec_widen_smult_odd_v16qi): Likewise.
21207 (vec_widen_umult_odd_v8hi): Likewise.
21208 (vec_widen_smult_odd_v8hi): Likewise.
21209 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21210 vmuloub rather than call gen_vec_widen_umult_*.
21211 (vec_widen_umult_lo_v16qi): Likewise.
21212 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21213 vmulosb rather than call gen_vec_widen_smult_*.
21214 (vec_widen_smult_lo_v16qi): Likewise.
21215 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21216 rather than call gen_vec_widen_umult_*.
21217 (vec_widen_umult_lo_v8hi): Likewise.
21218 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21219 rather than call gen_vec_widen_smult_*.
21220 (vec_widen_smult_lo_v8hi): Likewise.
21222 2014-01-15 Jeff Law <law@redhat.com>
21224 PR tree-optimization/59747
21225 * ree.c (find_and_remove_re): Properly handle case where a second
21226 eliminated extension requires widening a copy created for elimination
21227 of a prior extension.
21228 (combine_set_extension): Ensure that the number of hard regs needed
21229 for a destination register does not change when we widen it.
21231 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21233 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21234 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21235 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21236 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21237 (avr-*-rtems*): Likewise.
21238 (bfin*-rtems*): Likewise.
21239 (moxie-*-rtems*): Likewise.
21240 (h8300-*-rtems*): Likewise.
21241 (i[34567]86-*-rtems*): Likewise.
21242 (lm32-*-rtems*): Likewise.
21243 (m32r-*-rtems*): Likewise.
21244 (m68k-*-rtems*): Likewise.
21245 (microblaze*-*-rtems*): Likewise.
21246 (mips*-*-rtems*): Likewise.
21247 (powerpc-*-rtems*): Likewise.
21248 (sh-*-rtems*): Likewise.
21249 (sparc-*-rtems*): Likewise.
21250 (sparc64-*-rtems*): Likewise.
21251 (v850-*-rtems*): Likewise.
21252 (m32c-*-rtems*): Likewise.
21254 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21256 PR rtl-optimization/59511
21257 * ira.c (ira_init_register_move_cost): Use memory costs for some
21258 cases of register move cost calculations.
21259 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21260 instead of BB frequency.
21261 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21262 * lra-assigns.c (find_hard_regno_for): Ditto.
21264 2014-01-15 Richard Biener <rguenther@suse.de>
21266 PR tree-optimization/59822
21267 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21268 (vectorizable_load): Use it to hoist defs of uses of invariant
21269 loads out of the loop.
21271 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21272 Kugan Vivekanandarajah <kuganv@linaro.org>
21275 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21278 2014-01-15 Richard Biener <rguenther@suse.de>
21280 PR rtl-optimization/59802
21281 * lcm.c (compute_available): Use inverted postorder to seed
21282 the initial worklist.
21284 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21287 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21288 ADDR_REGS for invalid symrefs in non-PIC code.
21290 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21293 * builtins.c (determine_block_size): Initialize *probable_max_size
21294 even if len_rtx is CONST_INT.
21296 2014-01-14 Andrew Pinski <apinski@cavium.com>
21298 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21299 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21300 (cortexa53_tunings): Likewise.
21301 (aarch64_sched_issue_rate): New function.
21302 (TARGET_SCHED_ISSUE_RATE): Define.
21304 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21306 * ira-costs.c (find_costs_and_classes): Add missed
21307 ira_init_register_move_cost_if_necessary.
21309 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21312 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21314 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21317 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21318 to indicate if type is used for function return value. Warn ABI
21319 change if the vector mode isn't available for function return value.
21320 (ix86_function_arg_advance): Pass false to type_natural_mode.
21321 (ix86_function_arg): Likewise.
21322 (ix86_gimplify_va_arg): Likewise.
21323 (function_arg_32): Don't warn ABI change.
21324 (ix86_function_value): Pass true to type_natural_mode.
21325 (ix86_return_in_memory): Likewise.
21326 (ix86_struct_value_rtx): Removed.
21327 (TARGET_STRUCT_VALUE_RTX): Likewise.
21329 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21331 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21332 converting a conditional jump into a conditional return.
21334 2014-01-14 Richard Biener <rguenther@suse.de>
21336 PR tree-optimization/58921
21337 PR tree-optimization/59006
21338 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21339 hoisting invariant stmts.
21340 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21341 invariant loads on the preheader edge if possible.
21343 2014-01-14 Joey Ye <joey.ye@arm.com>
21345 * doc/plugin.texi (Building GCC plugins): Update to C++.
21347 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21349 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21350 (_mm_rcp28_round_ss): Ditto.
21351 (_mm_rsqrt28_round_sd): Ditto.
21352 (_mm_rsqrt28_round_ss): Ditto.
21353 (_mm_rcp28_sd): Ditto.
21354 (_mm_rcp28_ss): Ditto.
21355 (_mm_rsqrt28_sd): Ditto.
21356 (_mm_rsqrt28_ss): Ditto.
21357 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21358 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21359 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21360 (IX86_BUILTIN_RCP28SD): Ditto.
21361 (IX86_BUILTIN_RCP28SS): Ditto.
21362 (IX86_BUILTIN_RSQRT28SD): Ditto.
21363 (IX86_BUILTIN_RSQRT28SS): Ditto.
21364 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21365 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21366 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21367 (ix86_expand_special_args_builtin): Expand new FTYPE.
21368 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21369 (srcp14<mode>): Make insn unary.
21370 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21371 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21372 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21373 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21374 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21375 Fix rounding: make it SAE only.
21376 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21378 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21380 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21381 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21382 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21383 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21384 (round_saeonly_mask_scalar_operand4): Ditto.
21385 (round_saeonly_mask_scalar_op3): Ditto.
21386 (round_saeonly_mask_scalar_op4): Ditto.
21388 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21390 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21391 Implement -maltivec=be for vec_insert and vec_extract.
21393 2014-01-10 DJ Delorie <dj@redhat.com>
21395 * config/msp430/msp430.md (call_internal): Don't allow memory
21396 references with SP as the base register.
21397 (call_value_internal): Likewise.
21398 * config/msp430/constraints.md (Yc): New. For memory references
21399 that don't use SP as a base register.
21401 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21402 "an integer without a # prefix"
21403 * config/msp430/msp430.md (epilogue_helper): Use it.
21405 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21408 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21409 AVX512F gather builtins.
21410 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21411 on gather decls with INTEGER_TYPE masktype.
21412 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21413 directly into the builtin rather than hoisting it before loop.
21415 PR tree-optimization/59387
21416 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21417 (scev_const_prop): If folded_casts and type has undefined overflow,
21418 use force_gimple_operand instead of force_gimple_operand_gsi and
21419 for each added stmt if it is assign with
21420 arith_code_with_undefined_signed_overflow, call
21421 rewrite_to_defined_overflow.
21422 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21423 gimple-fold.h instead.
21424 (arith_code_with_undefined_signed_overflow,
21425 rewrite_to_defined_overflow): Moved to ...
21426 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21427 rewrite_to_defined_overflow): ... here. No longer static.
21428 Include gimplify-me.h.
21429 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21430 rewrite_to_defined_overflow): New prototypes.
21432 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21434 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21436 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21438 * builtins.c (get_object_alignment_2): Minor tweak.
21439 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21441 2014-01-13 Christian Bruel <christian.bruel@st.com>
21443 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21444 optimized non constant lengths.
21446 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21449 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21450 load as __atomic_load_N if possible.
21452 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21454 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21456 (rs6000_expand_builtin): Adjust call.
21458 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21461 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21462 * config/rs6000/rs6000.c: Include target-globals.h.
21463 (rs6000_set_current_function): Instead of doing target_reinit
21464 unconditionally, use save_target_globals_default_opts and
21465 restore_target_globals.
21467 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21469 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21470 (rs6000_expand_builtin): Handle mffs and mtfsf.
21471 (rs6000_init_builtins): Define mffs and mtfsf.
21472 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21473 (rs6000_mffs): New pattern.
21474 (rs6000_mtfsf): New pattern.
21476 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21478 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21479 Start narrowing with START. Apply candidate-use pair
21480 and check overall cost in narrowing.
21481 (iv_ca_prune): Pass new argument.
21483 2014-01-10 Jeff Law <law@redhat.com>
21485 PR middle-end/59743
21486 * ree.c (combine_reaching_defs): Ensure the defining statement
21487 occurs before the extension when optimizing extensions with
21488 different source and destination hard registers.
21490 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21493 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21494 vtables into the type inheritance graph.
21496 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21498 PR rtl-optimization/59754
21499 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21500 modes in the REGNO != REGNO case.
21502 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21504 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21506 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21508 PR tree-optimization/59745
21509 * tree-predcom.c (tree_predictive_commoning_loop): Call
21510 free_affine_expand_cache if giving up because components is NULL.
21512 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21513 GC in payload of target_globals struct instead of allocating them on
21514 the heap and the larger structs separately using GC.
21515 * target-globals.h (struct target_globals): Make regs, hard_regs,
21516 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21517 of GTY((skip)) and change type to void *.
21518 (reset_target_globals): Cast loads from those fields to corresponding
21521 2014-01-10 Steve Ellcey <sellcey@mips.com>
21524 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21525 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21526 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21528 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21531 * aarch64-modes.def (CC_Zmode): New flags mode.
21532 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21533 represents an equality.
21534 (aarch64_get_condition_code): Handle CC_Zmode.
21535 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21537 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21539 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21540 extraction in good case.
21542 2014-01-10 Richard Biener <rguenther@suse.de>
21544 PR tree-optimization/59374
21545 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21546 checking after SLP discovery. Mark stmts not participating
21547 in any SLP instance properly.
21549 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21551 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21552 when handling a SET rtx.
21554 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21556 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21557 (cortex-a57): Likewise.
21558 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21560 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21562 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21563 non-iwmmxt builtins.
21565 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21569 * ipa-devirt.c record_target_from_binfo): Take as argument
21570 stack of binfos and lookup matching one for virtual inheritance.
21571 (possible_polymorphic_call_targets_1): Update.
21573 2014-01-10 Huacai Chen <chenhc@lemote.com>
21575 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21576 kernel strings for Loongson-2E/2F/3A.
21578 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21580 PR middle-end/59670
21581 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21582 is_gimple_call before calling gimple_call_internal_p.
21584 2014-01-09 Steve Ellcey <sellcey@mips.com>
21586 * Makefile.in (TREE_FLOW_H): Remove.
21587 (TREE_SSA_H): Add file names from tree-flow.h.
21588 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21589 * tree.h: Remove tree-flow.h reference.
21590 * hash-table.h: Remove tree-flow.h reference.
21591 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21592 reference with tree-ssa-loop.h.
21594 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21596 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21597 default element-order behavior for -maltivec.
21598 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21599 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21600 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21601 when targeting big endian, at least for now.
21602 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21604 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21606 PR middle-end/47735
21607 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21608 var satisfies use_register_for_decl, just take into account type
21609 alignment, rather than decl alignment.
21611 PR tree-optimization/59622
21612 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21613 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21614 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21615 Don't devirtualize for inplace at all. For targets.length () == 1,
21616 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21618 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21620 * config/i386/i386.md (cpu): Remove the unused btver1.
21622 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21624 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21626 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21629 * tree-core.h (struct target_globals): New forward declaration.
21630 (struct tree_target_option): Add globals field.
21631 * tree.h (TREE_TARGET_GLOBALS): Define.
21632 (prepare_target_option_nodes_for_pch): New prototype.
21633 * target-globals.h (struct target_globals): Define even if
21634 !SWITCHABLE_TARGET.
21635 * tree.c (prepare_target_option_node_for_pch,
21636 prepare_target_option_nodes_for_pch): New functions.
21637 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21638 * config/i386/i386.c: Include target-globals.h.
21639 (ix86_set_current_function): Instead of doing target_reinit
21640 unconditionally, use save_target_globals_default_opts and
21641 restore_target_globals.
21643 2014-01-09 Richard Biener <rguenther@suse.de>
21645 PR tree-optimization/59715
21646 * tree-cfg.h (split_critical_edges): Declare.
21647 * tree-cfg.c (split_critical_edges): Export.
21648 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21650 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21652 * cfgexpand.c (expand_stack_vars): Optionally disable
21653 asan stack protection.
21654 (expand_used_vars): Likewise.
21655 (partition_stack_vars): Likewise.
21656 * asan.c (asan_emit_stack_protection): Optionally disable
21657 after return stack usage.
21658 (instrument_derefs): Optionally disable memory access instrumentation.
21659 (instrument_builtin_call): Likewise.
21660 (instrument_strlen_call): Likewise.
21661 (asan_protect_global): Optionally disable global variables protection.
21662 * doc/invoke.texi: Added doc for new options.
21663 * params.def: Added new options.
21664 * params.h: Likewise.
21666 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21668 PR rtl-optimization/59724
21669 * ifcvt.c (cond_exec_process_if_block): Don't call
21670 flow_find_head_matching_sequence with 0 longest_match.
21671 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21672 non-active insns if !stop_after.
21673 (try_head_merge_bb): Revert 2014-01-07 changes.
21675 2014-01-08 Jeff Law <law@redhat.com>
21677 * ree.c (get_sub_rtx): New function, extracted from...
21678 (merge_def_and_ext): Here.
21679 (combine_reaching_defs): Use get_sub_rtx.
21681 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21683 * cgraph.h (varpool_variable_node): Do not choke on null node.
21685 2014-01-08 Catherine Moore <clm@codesourcery.com>
21687 * config/mips/mips.md (simple_return): Attempt to use JRC
21689 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21691 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21693 PR rtl-optimization/59137
21694 * reorg.c (steal_delay_list_from_target): Call update_block for
21696 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21698 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21700 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21701 two duplicate entries.
21703 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21706 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21708 * config/mips/mips.c (mips_truncated_op_cost): New function.
21709 (mips_rtx_costs): Adjust test for BADDU.
21710 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21712 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21714 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21715 (*baddu_si): ...this new pattern.
21717 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21720 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21722 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21724 PR middle-end/57748
21725 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21727 (expand_expr, expand_normal): Adjust.
21728 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21729 inner_reference_p. Use inner_reference_p to expand inner references.
21730 (store_expr): Adjust.
21731 * cfgexpand.c (expand_call_stmt): Adjust.
21733 2014-01-08 Rong Xu <xur@google.com>
21735 * gcov-io.c (gcov_var): Move from gcov-io.h.
21736 (gcov_position): Ditto.
21737 (gcov_is_error): Ditto.
21738 (gcov_rewrite): Ditto.
21739 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21740 only part to libgcc/libgcov.h.
21742 2014-01-08 Marek Polacek <polacek@redhat.com>
21744 PR middle-end/59669
21745 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21747 2014-01-08 Marek Polacek <polacek@redhat.com>
21750 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21752 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21754 PR rtl-optimization/59649
21755 * stor-layout.c (get_mode_bounds): For BImode return
21756 0 and STORE_FLAG_VALUE.
21758 2014-01-08 Richard Biener <rguenther@suse.de>
21760 PR middle-end/59630
21761 * gimple.h (is_gimple_builtin_call): Remove.
21762 (gimple_builtin_call_types_compatible_p): New.
21763 (gimple_call_builtin_p): New overload.
21764 * gimple.c (is_gimple_builtin_call): Remove.
21765 (validate_call): Rename to ...
21766 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21767 check return types.
21768 (validate_type): New static function.
21769 (gimple_call_builtin_p): New overload and adjust.
21770 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21771 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21772 (gimple_fold_stmt_to_constant_1): Likewise.
21773 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21775 2014-01-08 Richard Biener <rguenther@suse.de>
21777 PR middle-end/59471
21778 * gimplify.c (gimplify_expr): Gimplify register-register type
21779 VIEW_CONVERT_EXPRs to separate stmts.
21781 2014-01-07 Jeff Law <law@redhat.com>
21783 PR middle-end/53623
21784 * ree.c (combine_set_extension): Handle case where source
21785 and destination registers in an extension insn are different.
21786 (combine_reaching_defs): Allow source and destination registers
21787 in extension to be different under limited circumstances.
21788 (add_removable_extension): Remove restriction that the
21789 source and destination registers in the extension are the same.
21790 (find_and_remove_re): Emit a copy from the extension's
21791 destination to its source after the defining insn if
21792 the source and destination registers are different.
21794 PR middle-end/59285
21795 * ifcvt.c (merge_if_block): If we are merging a block with more than
21796 one successor with a block with no successors, remove any BARRIER
21797 after the second block.
21799 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21801 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21803 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21806 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21807 for 14-bit register offsets when INT14_OK_STRICT is false.
21809 2014-01-07 Roland Stigge <stigge@antcom.de>
21810 Michael Meissner <meissner@linux.vnet.ibm.com>
21813 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21814 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21816 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21818 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21821 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21823 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21824 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21825 rtx is const0_rtx or not.
21827 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21830 * target-globals.c (save_target_globals): Remove this_fn_optab
21832 * toplev.c: Include optabs.h.
21833 (target_reinit): Temporarily restore the global options if another
21834 set of options are in force.
21836 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21838 PR rtl-optimization/58668
21839 * cfgcleanup.c (flow_find_cross_jump): Don't count
21840 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21841 to determine what is counted.
21842 (flow_find_head_matching_sequence): Use active_insn_p to determine
21844 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21846 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21847 determine what is counted.
21849 PR tree-optimization/59643
21850 * tree-predcom.c (split_data_refs_to_components): If one dr is
21851 read and one write, determine_offset fails and the write isn't
21852 in the bad component, just put the read into the bad component.
21854 2014-01-07 Mike Stump <mikestump@comcast.net>
21855 Jakub Jelinek <jakub@redhat.com>
21858 * tree-core.h (struct tree_optimization_option): Change optabs
21859 type from unsigned char * to void *.
21860 * optabs.c (init_tree_optimization_optabs): Adjust
21861 TREE_OPTIMIZATION_OPTABS initialization.
21863 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21866 * config/i386/i386.h (struct machine_function): Add
21867 no_drap_save_restore field.
21868 * config/i386/i386.c (ix86_save_reg): Use
21869 !cfun->machine->no_drap_save_restore instead of
21870 crtl->stack_realign_needed.
21871 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21872 this function clears frame_pointer_needed. Set
21873 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21874 and DRAP reg is needed.
21876 2014-01-06 Marek Polacek <polacek@redhat.com>
21879 * doc/implement-c.texi: Mention that other integer types are
21880 permitted as bit-field types in strictly conforming mode.
21882 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21884 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21885 is newly allocated.
21887 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21889 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21891 2014-01-06 Martin Jambor <mjambor@suse.cz>
21894 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21896 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21898 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21902 * var-tracking.c (add_stores): Preserve the value of the source even if
21903 we don't record the store.
21905 2014-01-06 Terry Guo <terry.guo@arm.com>
21907 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21909 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21912 * config/darwin.c (darwin_function_section): Adjust return values to
21913 correspond to optimisation changes made in r206070.
21915 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21917 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21918 from prefetch_block tune setting.
21919 (nocona_cost): Correct size of prefetch block to 64.
21921 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21923 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21924 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21925 used to save the static chain register in the computation of the offset
21926 from which the FP registers need to be restored.
21928 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21930 PR tree-optimization/59519
21931 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21932 ICE if get_current_def (current_new_name) is already non-NULL, as long
21933 as it is a phi result of some other phi in *new_exit_bb that has
21936 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21937 or vmovdqu* for misaligned_operand.
21938 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21939 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21940 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21941 aligned_mem for AVX512F masked aligned load and store builtins and for
21942 non-temporal moves.
21944 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21946 PR tree-optimization/59651
21947 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21948 Address range for negative step should be added by TYPE_SIZE_UNIT.
21950 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21952 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21953 overlapping registers also for registers other than the stack pointer.
21955 2014-01-03 Marek Polacek <polacek@redhat.com>
21958 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21961 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21964 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21967 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21968 (push splitter): Use <P:MODE_SIZE> instead of
21969 GET_MODE_SIZE (<P:MODE>mode).
21970 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21971 (mov -1, reg peephole2): Likewise.
21972 * config/i386/sse.md (*mov<mode>_internal,
21973 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21974 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21975 *<code><mode>3, *andnot<mode>3<mask_name>,
21976 <mask_codefor><code><mode>3<mask_name>): Likewise.
21977 * config/i386/subst.md (mask_mode512bit_condition,
21978 sd_mask_mode512bit_condition): Likewise.
21980 2014-01-02 Xinliang David Li <davidxl@google.com>
21982 PR tree-optimization/59303
21983 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21984 (dump_predicates): Better output format.
21985 (pred_equal_p): New function.
21986 (is_neq_relop_p): Ditto.
21987 (is_neq_zero_form_p): Ditto.
21988 (pred_expr_equal_p): Ditto.
21989 (pred_neg_p): Ditto.
21990 (simplify_pred): Ditto.
21991 (simplify_preds_2): Ditto.
21992 (simplify_preds_3): Ditto.
21993 (simplify_preds_4): Ditto.
21994 (simplify_preds): Ditto.
21995 (push_pred): Ditto.
21996 (push_to_worklist): Ditto.
21997 (get_pred_info_from_cmp): Ditto.
21998 (is_degenerated_phi): Ditto.
21999 (normalize_one_pred_1): Ditto.
22000 (normalize_one_pred): Ditto.
22001 (normalize_one_pred_chain): Ditto.
22002 (normalize_preds): Ditto.
22003 (normalize_cond_1): Remove function.
22004 (normalize_cond): Ditto.
22005 (is_gcond_subset_of): Ditto.
22006 (is_subset_of_any): Ditto.
22007 (is_or_set_subset_of): Ditto.
22008 (is_and_set_subset_of): Ditto.
22009 (is_norm_cond_subset_of): Ditto.
22010 (pred_chain_length_cmp): Ditto.
22011 (convert_control_dep_chain_into_preds): Type change.
22012 (find_predicates): Ditto.
22013 (find_def_preds): Ditto.
22014 (destroy_predicates_vecs): Ditto.
22015 (find_matching_predicates_in_rest_chains): Ditto.
22016 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22017 (is_pred_expr_subset): Ditto.
22018 (is_pred_chain_subset_of): Ditto.
22019 (is_included_in): Ditto.
22020 (is_superset_of): Ditto.
22022 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22024 Update copyright years.
22026 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22028 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22029 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22030 config/arc/arc.md, config/arc/arc.opt,
22031 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22032 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22033 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22034 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22035 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22036 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22037 vtable-verify.c, vtable-verify.h: Use the standard form for the
22040 2014-01-02 Tobias Burnus <burnus@net-b.de>
22042 * gcc.c (process_command): Update copyright notice dates.
22043 * gcov-dump.c: Ditto.
22045 * doc/cpp.texi: Bump @copying's copyright year.
22046 * doc/cppinternals.texi: Ditto.
22047 * doc/gcc.texi: Ditto.
22048 * doc/gccint.texi: Ditto.
22049 * doc/gcov.texi: Ditto.
22050 * doc/install.texi: Ditto.
22051 * doc/invoke.texi: Ditto.
22053 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22055 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22057 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22059 * config/i386/sse.md (*mov<mode>_internal): Guard
22060 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22062 PR rtl-optimization/59647
22063 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22064 new_rtx into UNSIGNED_FLOAT rtxes.
22066 Copyright (C) 2014 Free Software Foundation, Inc.
22068 Copying and distribution of this file, with or without modification,
22069 are permitted in any medium without royalty provided the copyright
22070 notice and this notice are preserved.