1 2015-02-24 Alan Modra <amodra@gmail.com>
4 * config/rs6000/rs6000.c (get_memref_parts): Only return true
5 when *base is a reg. Handle nested plus addresses. Simplify
8 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
10 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
11 use natural alignment when optimizing for size.
13 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
16 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
18 * config/sh/sh.c (replace_n_hard_rtx): Remove.
20 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
23 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
24 too big for a wide_int. Implement missing wrapping operation.
26 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
29 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30 instead of const_int 4294901760.
32 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
34 * config/avr/t-avr: Fix typo in comment.
36 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
38 * doc/rtl.texi (fma): Clarify documentation.
40 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
43 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
46 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
48 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
49 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
50 restrict alignments to absolute_biggest_alignment.
51 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
53 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
54 * doc/tm.texi: Regenerate.
55 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
57 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
60 * ira-color.c (color_pass): Prevent splitting multi-register
63 2015-02-20 Richard Biener <rguenther@suse.de>
65 PR tree-optimization/65136
66 * tree-ssa-propagate.c: Include cfgloop.h.
67 (replace_phi_args_in): Avoid replacing loop latch edge PHI
68 arguments with constants.
70 2015-02-20 Jakub Jelinek <jakub@redhat.com>
71 Martin Liska <mliska@suse.cz>
74 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
75 don't try to create_thunk if stdarg_p. If
76 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
77 redirect_callers if possible.
78 (sem_item_optimizer::execute): Call unregister_hooks here...
79 (ipa_icf_driver): ... instead of here.
81 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
83 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
84 Mark operand 0 as earlyclobber in 2nd alternative.
85 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
86 Write negated shift amount into QI lowpart operand 0 and use it
88 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
90 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
92 * cgraph.h (clone_function_name_1): Declare.
93 * cgraphclones.c (clone_function_name_1): New function.
94 (clone_function_name): Use it.
95 * lto-partition.c: Include "stringpool.h".
96 (must_not_rename, maybe_rewrite_identifier,
97 validize_symbol_for_target): New static functions.
98 (privatize_symbol_name): Use must_not_rename.
99 (promote_symbol): Call validize_symbol_for_target.
100 (lto_promote_cross_file_statics): Likewise.
101 (lto_promote_statics_nonwpa): Likewise.
103 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
106 * config/avr/avr.md (pushhi_insn): New insn.
107 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
109 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
110 Jakub Jelinek <jakub@redhat.com>
112 * tree-streamer.c (preload_common_nodes): Don't preload
113 TI_VA_LIST* for offloading.
114 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
117 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
119 * config/pa/pa.c (pa_emit_move_sequence): Always force
120 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
123 * config/pa/pa.c (pa_reloc_rw_mask): New function.
124 (TARGET_ASM_RELOC_RW_MASK): Define.
125 (pa_cannot_force_const_mem): Revert previous change.
127 2015-02-19 Martin Jambor <mjmabor@suse.cz>
128 Jan Hubicka <hubicka@ucw.cz>
131 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
132 across jump functions.
134 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
136 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
138 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
140 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
142 2015-02-19 Richard Henderson <rth@redhat.com>
145 * varasm.c (default_binds_local_p_2): Don't test node->definition;
146 test DECL_EXTERNAL independent of symtab_node.
148 2015-02-19 Jakub Jelinek <jakub@redhat.com>
151 * varpool.c (varpool_node::get_constructor): Return early
152 if this->lto_file_data is NULL.
154 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
156 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
157 (rank_for_schedule_debug): Update.
158 (ready_sort): Make static. Move sorting logic to ...
159 (ready_sort_debug, ready_sort_real): New static functions.
160 (schedule_block): Sort both debug insns and real insns in preparation
161 for ready list trimming. Improve debug output.
162 * sched-int.h (ready_sort): Remove global declaration.
164 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
166 * ipa-icf.c (sem_function::equals_private): Adjust.
167 (sem_function::bb_dict_test): Take a vec<int> * instead of
169 * ipa-icf.h (bb_dict_test): Likewise.
171 2015-02-18 Jakub Jelinek <jakub@redhat.com>
173 PR gcov-profile/64634
174 * tree-eh.c (frob_into_branch_around): Fix up typos
176 (lower_catch): Put eh_seq resulting from EH lowering of
177 the cleanup sequence after the cleanup rather than before
180 2015-02-18 Tom de Vries <tom@codesourcery.com>
182 * common.opt (fstdarg-opt): New option.
183 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
184 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
185 (@item -fstdarg-opt): New item.
187 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
190 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
193 2015-02-18 Jakub Jelinek <jakub@redhat.com>
195 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
197 (ALL_HOST_OBJS): Add mkoffload.o.
198 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
200 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
202 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
203 (compare_virtual_tables): Be smarter about skipping typeinfos;
204 do sane output on virtual table table mismatch.
205 (warn_odr): Be ready for forward declarations of enums;
206 output sane info on base mismatch and virtual table mismatch.
207 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
208 when only one type is polymorphic.
209 (get_odr_type): Fix hashtable corruption.
210 (dump_odr_type): Dump mangled names.
212 2015-02-18 Richard Biener <rguenther@suse.de>
214 PR tree-optimization/65063
215 * tree-predcom.c (determine_unroll_factor): Return 1 if we
216 have replaced looparound PHIs.
218 2015-02-18 Martin Liska <mliska@suse.cz>
220 * lto-streamer.c (lto_streamer_init): Encapsulate
221 streamer_check_handled_ts_structures with checking macro.
223 2015-02-18 Jakub Jelinek <jakub@redhat.com>
226 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
227 section if !implicit_section.
228 (cgraph_node::create_version_clone_with_body): Likewise.
229 * trans-mem.c (ipa_tm_create_version): Likewise.
231 2015-02-18 Richard Biener <rguenther@suse.de>
233 PR tree-optimization/62217
234 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
237 2015-02-18 Marek Polacek <polacek@redhat.com>
240 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
241 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
242 is in range [-16K, -1]. Don't issue run-time error if
243 (ptr > ptr + offset).
245 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
247 * doc/install.texi (nvptx-*-none): New section.
248 * doc/invoke.texi (Nvidia PTX Options): Likewise.
249 * config/nvptx/nvptx.opt: Update.
251 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
252 (access_check): New functions, copied from
253 config/i386/intelmic-mkoffload.c.
254 (main): For non-installed testing, look in all COMPILER_PATHs for
257 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
259 2015-02-18 Andrew Pinski <apinski@cavium.com>
260 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
262 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
263 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
265 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
267 * ipa-visibility.c (function_and_variable_visibility): Only
268 check locality if node is not already local.
269 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
270 call_for_symbol_and_aliases instead of
271 call_for_symbol_thunks_and_aliases.
272 (ipa_inline): Likewise.
273 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
275 * ipa.c (symbol_table::remove_unreachable_nodes): Use
276 call_for_symbol_and_aliases.
277 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
278 (ipa_propagate_frequency_1): Use it; use opt_for_fn
279 (ipa_propagate_frequency): Update.
280 (ipa_profile): Add opt_for_fn gueards.
282 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
284 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
285 * doc/invoke.texi (SH options): Document it.
286 * config/sh/sh.c (sh_insn_length_adjustment): Check
287 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
289 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
291 * common.opt (fipa-cp-alignment): New.
292 * ipa-cp.c (ipcp_store_alignment_results): Check
293 flag_ipa_cp_alignment.
294 * opts.c (default_options_table): Enable -fipa-cp-alignment for
296 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
297 * doc/invoke.texi: Document -fipa-cp-alignment.
299 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
302 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
303 to nil. Adjust comments.
305 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
307 * ipa-visibility.c (function_and_variable_visibility): Only
308 check locality if node is not already local.
309 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
310 call_for_symbol_and_aliases instead of
311 call_for_symbol_thunks_and_aliases.
312 (ipa_inline): Likewise.
313 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
315 * ipa.c (symbol_table::remove_unreachable_nodes): Use
316 call_for_symbol_and_aliases.
317 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
318 (ipa_propagate_frequency_1): Use it; use opt_for_fn
319 (ipa_propagate_frequency): Update.
320 (ipa_profile): Add opt_for_fn guards.
322 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
324 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
325 skipping of "strange" tokens.
327 2015-02-17 Jeff Law <law@redhat.com>
329 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
332 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
334 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
335 as forcing a HARD_DEP between instructions, thereby
336 disallowing rewriting to break dependencies.
338 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
340 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
341 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
342 variables in boundary that have no inlitalizer encoded and are
344 * varasm.c (default_binds_local_p_2): External definitions do not
345 count as definitions here.
347 2015-02-16 Jeff Law <law@redhat.com>
349 PR tree-optimization/64823
350 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
352 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
353 threading through blocks with PHIs, but no statements.
354 (thread_through_normal_block): Distinguish between blocks where
355 we did not process all the statements and blocks with no statements.
357 2015-02-16 Jakub Jelinek <jakub@redhat.com>
358 James Greenhalgh <james.greenhalgh@arm.com>
361 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
362 section if not linkonce. Fix up formatting.
363 (cgraph_node::create_version_clone_with_body): Copy section.
364 * trans-mem.c (ipa_tm_create_version): Likewise.
366 2015-02-16 Richard Biener <rguenther@suse.de>
368 PR tree-optimization/65077
369 * tree-ssa-structalias.c (get_constraint_for_1): Handle
370 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
371 (find_func_aliases): Allow float values to carry pointers again.
373 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
375 * doc/install.texi (Specific): Reorder targets list to put
376 aarch64 in alphabetical order. Add a link to aarch64*-*-*
379 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
380 David Edelsohn <dje.gcc@gmail.com>
383 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
384 mapping class to external variable or function reference.
385 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
388 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
391 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
392 ASM_WEAKEN_DECL if defined.
394 2015-02-16 Richard Biener <rguenther@suse.de>
397 * varasm.c (default_file_start): For LTO produced units
398 emit <artificial> as file directive.
400 2015-02-16 Richard Biener <rguenther@suse.de>
402 PR tree-optimization/63593
403 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
404 stmts and releasing SSA names until...
405 (execute_pred_commoning): ... after processing all chains.
407 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
410 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
413 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
415 * doc/bugreport.texi: Adjust section titles throughout the file
417 * doc/extend.texi: Likewise.
418 * doc/gcov.texi: Likewise.
419 * doc/implement-c.texi: Likewise.
420 * doc/implement-cxx.texi: Likewise.
421 * doc/invoke.texi: Likewise.
422 * doc/objc.texi: Likewise.
423 * doc/standards.texi: Likewise.
424 * doc/trouble.texi: Likewise.
426 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
428 * cgraph.h (symtab_node::has_aliases_p): Simplify.
429 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
430 * tree.c (lookup_binfo_at_offset): Make static.
431 (get_binfo_at_offset): Do not shadow offset; add explanatory
434 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
436 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
437 for all floading point loads and stores except those using a register
439 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
442 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
444 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
445 (do_estimate_growth_1): Record if any uninlinable edge was seen.
446 (estimate_growth): Handle uninlinable edges correctly.
447 (check_callers): New.
448 (growth_likely_positive): Handle aliases correctly.
450 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
452 * ipa-chkp.c: Use iterate_direct_aliases.
453 * symtab.c (resolution_used_from_other_file_p): Move inline.
454 (symtab_node::create_reference): Fix formating.
455 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
456 (symtab_node::iterate_reference): Move inline.
457 (symtab_node::iterate_referring): Move inline.
458 (symtab_node::iterate_direct_aliases): Move inline.
459 (symtab_node::used_from_object_file_p_worker): Inline into ...
460 (symtab_node::used_from_object_file_p): ... this one; move inline.
461 (symtab_node::call_for_symbol_and_aliases): Move inline;
462 use iterate_direct_aliases.
463 (symtab_node::call_for_symbol_and_aliases_1): New method.
464 (cgraph_node::call_for_symbol_and_aliases): Move inline;
465 use iterate_direct_aliases.
466 (cgraph_node::call_for_symbol_and_aliases_1): New method.
467 (varpool_node::call_for_node_and_aliases): Rename to ...
468 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
469 use iterate_direct_aliases.
470 (varpool_node::call_for_symbol_and_aliases_1): New method.
471 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
472 (ipa_discover_readonly_nonaddressable_var): Update.
473 * ipa-devirt.c: Fix formating.
474 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
476 (cgraph_node::call_for_symbol_and_aliases): Move inline.
477 (cgraph_node::call_for_symbol_and_aliases_1): New function..
478 * cgraph.h (used_from_object_file_p_worker): Remove.
479 (resolution_used_from_other_file_p): Move inline.
480 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
481 (symtab_node::iterate_reference): Move inline.
482 (symtab_node::iterate_referring): Move inline.
483 (symtab_node::iterate_direct_aliases): Move inline.
484 (symtab_node::used_from_object_file_p_worker): Inline into ...
485 (symtab_node::used_from_object_file_p): Move inline.
486 * tree-emutls.c (ipa_lower_emutls): Update.
487 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
488 (varpool_node::call_for_node_and_aliases): Remove.
490 2015-02-14 Jakub Jelinek <jakub@redhat.com>
492 PR tree-optimization/62209
493 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
494 op == range->exp, insert seq and gimplified code after labels
495 instead of after the phi.
497 2015-02-13 Jeff Law <law@redhat.com>
500 Revert my change for tree-optimization/64823.
502 2015-02-13 Jakub Jelinek <jakub@redhat.com>
504 PR tree-optimization/65053
505 * tree-ssa-phiopt.c (value_replacement): When moving assign before
506 cond, either reset VR on lhs or set it to phi result VR.
508 2015-02-13 Jeff Law <law@redhat.com>
510 PR tree-optimization/64823
511 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
512 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
513 threading through blocks with PHIs, but no statements.
514 (thread_through_normal_block): Distinguish between blocks where
515 we did not process all the statements and blocks with no statements.
517 PR rtl-optimization/47477
518 * match.pd (convert (plus/minus (convert @0) (convert @1): New
519 simplifier to narrow arithmetic.
521 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
524 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
525 polymorphic call info when type is not known to be preserved.
527 2015-02-13 Maritn Jambor <mjambor@suse.cz>
530 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
531 (inline_call): Use it.
533 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
535 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
536 GOMP_DEVICE_NVIDIA_PTX.
538 2015-02-13 Jakub Jelinek <jakub@redhat.com>
541 * stmt.c (emit_case_nodes): Use void_type_node instead of
542 NULL_TREE as LABEL_DECL type.
544 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
546 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
548 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
549 symbolic references to data to be forced to constant memory on the
552 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
554 PR tree-optimization/65002
555 * tree-cfg.c (pass_data_fixup_cfg): Don't update
557 * tree-sra.c (some_callers_have_no_vuse_p): New.
558 (ipa_early_sra): Reject functions whose callers
559 assume function is read only.
561 2015-02-13 Richard Biener <rguenther@suse.de>
564 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
565 for LTO produced CUs.
567 2015-02-13 Bin Cheng <bin.cheng@arm.com>
569 PR tree-optimization/64705
570 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
571 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
572 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
573 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
574 expand_simple_operations.
576 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
577 Richard Henderson <rth@redhat.com>
580 * cgraphunit.c (cgraph_node::finalize_function): Set definition
581 before notice_global_symbol.
582 (varpool_node::finalize_decl): Likewise.
583 * varasm.c (default_binds_local_p_2): Rename from
584 default_binds_local_p_1, add weak_dominate argument. Use direct
585 returns instead of assigning to local variable. Unify varpool and
586 cgraph paths via symtab_node. Reject undef weak variables before
587 testing visibility. Reorder tests for simplicity.
588 (default_binds_local_p): Use default_binds_local_p_2.
589 (default_binds_local_p_1): Likewise.
590 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
592 (default_elf_asm_output_external): Emit visibility when specified.
594 2015-02-13 Alan Modra <amodra@gmail.com>
596 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
597 code setting up r11 for out-of-line fp restore.
599 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
601 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
602 (muser-mode): Likewise.
604 2015-02-13 Alan Modra <amodra@gmail.com>
606 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
607 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
609 2015-02-12 David Howells <dhowells@redhat.com>
611 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
613 * tree-ssa-uninit.c (dump_predicates): Likewise.
614 * opts.c (print_filtered_help): Likewise.
616 2015-02-12 Jakub Jelinek <jakub@redhat.com>
618 * dwarf2out.c (output_die): Use "%s", name instead of name to
619 avoid -Wformat-security warning.
621 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
622 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
623 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
624 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
626 2015-02-12 Jason Merrill <jason@redhat.com>
628 * common.opt (-flifetime-dse): New.
630 2015-02-12 Jakub Jelinek <jakub@redhat.com>
633 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
635 PR tree-optimization/65014
636 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
637 use original second operand of arg0 or arg1 instead of
638 that adjusted by STRIP_NOPS.
640 2015-02-11 Jeff Law <law@redhat.com>
643 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
644 that needs to be queued, just queue it for a single cycle.
646 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
648 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
649 bodies of thunks; comment on why.
650 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
653 2015-02-11 Richard Henderson <rth@redhat.com>
656 * tree-eh.c (mark_reachable_handlers): Mark source and destination
657 regions of __builtin_eh_copy_values.
659 2015-02-11 Jakub Jelinek <jakub@redhat.com>
662 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
663 ultimate alias is MEM with SYMBOL_REF satisfying
664 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
665 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
667 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
669 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
671 (main): Initialize progname, and call diagnostic_initialize.
673 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
674 instead of __OPENMP_TARGET__.
676 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
677 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
680 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
682 * doc/sourcebuild.texi (pie_enabled): Document.
684 2015-02-11 Martin Liska <mliska@suse.cz>
687 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
688 a return value for call to a function that is noreturn.
690 2015-02-11 Richard Biener <rguenther@suse.de>
693 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
696 2015-02-11 Andrew Pinski <apinski@cavium.com>
699 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
700 Change the first argument type to size_type_node and add another
702 (aarch64_simd_expand_builtin): Handle the new argument to
703 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
704 print an out when the first two arguments are not
705 nonzero integer constants.
706 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
707 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
709 2015-02-11 Jakub Jelinek <jakub@redhat.com>
712 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
713 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
714 (ix86_set_current_function): Rewritten.
715 (ix86_add_new_builtins): Temporarily clear current_target_pragma
716 when creating builtin fndecls.
718 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
721 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
723 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
724 have no comdat group.
725 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
726 (lto_output_varpool_node): Always output alias info.
727 (output_refs): Output refs of boundary aliases, too.
728 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
729 (output_symtab): Output call eges in thunks in boundary.
730 (get_alias_symbol): Remove.
731 (input_node, input_varpool_node): Do not special case weakrefs.
732 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
733 alias and thunks targets in the boundary; do not take removed symbols
734 from their comdat groups.
735 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
736 (cgraph_node::global_info): Remove.
737 (cgraph_node::rtl_info): Look through aliases and thunks.
738 * cgrpah.h (global_info): Remove.
739 (non_local_p): Remove.
741 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
742 Sandra Loosemore <sandra@codesourcery.com>
744 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
745 to inline asm. List dialects in proper order.
747 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
748 Sandra Loosemore <sandra@codesourcery.com>
750 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
752 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
754 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
755 modified) reference to Solaris.
757 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
759 * doc/extend.texi (Extended Asm): Fix typos.
761 2015-02-10 Jakub Jelinek <jakub@redhat.com>
764 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
766 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
769 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
770 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
771 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
772 * config/sh/constraints.md (Ara, Add): New constraints.
773 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
775 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
776 atomic_mem_operand_0. Don't use force_reg on the memory address.
777 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
778 Sra constraint. Convert to insn_and_split. Add workaround for
780 (atomic_compare_and_swap<mode>_hard): Copy to
781 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
782 Use atomic_mem_operand_0 predicate.
783 (atomic_compare_and_swap<mode>_soft_gusa,
784 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
786 (atomic_compare_and_swap<mode>_soft_tcb,
787 atomic_compare_and_swap<mode>_soft_imask,
788 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
789 atomic_mem_operand_0 predicate and SraSdd constraints.
790 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
792 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
793 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
794 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
795 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
796 force_reg on the memory address.
797 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
798 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
799 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
800 atomic_mem_operand_1 predicate and Sra constraint.
801 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
802 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
803 Use atomic_mem_operand_1 predicate.
804 (atomic_<fetchop_name><mode>_hard): Copy to
805 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
806 Use atomic_mem_operand_1 predicate.
807 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
808 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
809 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
810 insn_and_split. Use atomic_mem_operand_1 predicate.
811 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
812 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
813 Use atomic_mem_operand_1 predicate.
814 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
815 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
816 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
817 in generated insn with original mem operand before emitting the insn.
818 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
819 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
820 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
821 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
822 Use atomic_mem_operand_1 predicate and AraAdd constraints.
823 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
824 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
825 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
826 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
827 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
828 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
829 atomic_not_fetch<mode>_soft_tcb,
830 atomic_<fetchop_name>_fetch<mode>_soft_imask,
831 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
832 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
833 Use atomic_mem_operand_1 predicate and SraSdd constraints.
835 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
837 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
838 and 3 earlyclobber operands.
840 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
842 * common.opt (fstack-reuse): Mark as optimization.
844 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
847 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
849 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
851 PR tree-optimization/64326
852 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
854 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
856 PR gcov-profile/61889
857 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
859 2015-02-10 Richard Biener <rguenther@suse.de>
861 PR tree-optimization/64995
862 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
863 value we use is final.
864 (visit_reference_op_store): Always valueize op.
865 (visit_use): Properly valueize vuses.
867 2015-02-10 Richard Biener <rguenther@suse.de>
869 PR tree-optimization/64909
870 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
871 pass a scalar-stmt count estimate to the cost model.
872 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
874 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
876 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
877 enabled by default together with var-tracking.
879 2015-02-10 Nick Clifton <nickc@redhat.com>
881 * config/rl78/rl78.c: Remove DIV attribute code accidentally
882 included in previous rl78 commit.
884 2015-02-10 Richard Biener <rguenther@suse.de>
886 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
887 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
890 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
892 PR gcov-profile/61889
893 * config.in: regenerate.
894 * configure.in: Likewise.
895 * configure.ac: Check for ftw.h.
896 * gcov-tool.c: Check for ftw.h before using nftw.
898 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
901 * ipa-visibility.c (update_visibility_by_resolution_info): Only
902 assert when not in lto mode.
904 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
906 * ira-color.c (setup_left_conflict_sizes_p): Simplify
907 initialization/assignment of conflict_size.
909 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
912 * ipa-cp.c (gather_caller_stats): Skip thunks.
913 (propagate_constants_topo): Skip aliases.
915 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
918 * config/sh/sh.c (sh_option_override): Don't change
919 -freorder-blocks-and-partition to -freorder-blocks even when
920 unwinding is enabled.
921 (sh_can_follow_jump): Return false if the followee jump is
922 a crossing jump when -freorder-blocks-and-partition is specified.
923 * config/sh/sh.md (*jump_compact_crossing): New insn.
925 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
926 Kaz Kojima <kkojima@gcc.gnu.org>
929 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
930 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
931 (sh_can_redirect_branch): Rename to ...
932 (sh_can_follow_jump): ... this. Constify argument types.
933 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
934 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
935 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
936 * doc/tm.texi: Regenerate.
938 2015-02-09 Jakub Jelinek <jakub@redhat.com>
941 * builtins.c (expand_builtin): Call targetm.expand_builtin
942 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
944 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
947 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
949 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
952 * ipa-icf.c (set_local): New function.
953 (sem_function::merge): Use it.
955 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
957 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
958 (add_type_duplicate): Fix comparison of BINFOs.
960 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
962 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
963 on getting VOID pointer.
965 2015-02-09 Jakub Jelinek <jakub@redhat.com>
968 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
971 2015-02-09 Richard Biener <rguenther@suse.de>
973 * genmatch.c (replace_id): Copy expr_type.
975 2015-02-09 Richard Biener <rguenther@suse.de>
977 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
978 (streamer_write_tree_bitfields): Declare.
979 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
980 properly unpack padding.
981 (unpack_value_fields): Inline ...
982 (streamer_read_tree_bitfields): ... here.
983 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
984 and properly add padding bits.
985 (streamer_pack_tree_bitfields): Fold into ...
986 (streamer_write_tree_bitfields): ... this new function,
987 exposing the bitpack object.
988 * lto-streamer-out.c (lto_write_tree_1): Call
989 streamer_write_tree_bitfields.
991 2015-02-09 Richard Biener <rguenther@suse.de>
993 PR tree-optimization/54000
994 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
995 (struct ivopts_data): Add loop_loc member.
996 (tree_ssa_iv_optimize_loop): Dump loop location.
997 (create_new_ivs): Likewise, also dump number of IVs generated.
999 2015-02-09 Martin Liska <mliska@suse.cz>
1001 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1002 just if not yet registered.
1003 (ipa_icf_generate_summary): Register callgraph hooks.
1005 2015-02-08 Andrew Pinski <apinski@cavium.com>
1007 * config/aarch64/aarch64.c (gty_dummy): Delete.
1009 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1012 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1013 (cgraph_node::local_p): Remove thunk related FIXME.
1015 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1018 * i386.c (ix86_function_regparm): Look through aliases to see if callee
1019 is local and optimized.
1020 (ix86_function_sseregparm): Likewise; also use target's SSE math
1021 settings; error out instead of silently generating wrong code
1023 (init_cumulative_args): Look through aliases.
1025 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1028 * ipa-split.c (execute_split_functions): Split if function has aliases.
1030 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1033 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1034 aliases before trying to expand it.
1035 (cgraph_node::expand_thunk): Fix formating.
1037 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
1039 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1040 (Using Assembly Language with C): Expand introduction.
1041 (Basic Asm): Copy-edit. Add more information about uses of
1043 (Extended Asm): Copy-edit. Document new escape syntax and
1045 (Global Reg Vars): Copy-edit.
1046 (Local Reg Vars): Likewise.
1048 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
1052 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1053 (DBX_CONTIN_CHAR): Define.
1055 2015-02-06 Sebastian Pop <s.pop@samsung.com>
1056 Brian Rzycki <b.rzycki@samsung.com>
1058 PR tree-optimization/64878
1059 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1060 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1061 Stop recursion at loop phi nodes after having visited a loop phi node.
1063 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1065 * toplev.c (process_options): Change flag_ipa_ra before creating
1066 optimization_{default,current}_node.
1069 * cgraphunit.c (cgraph_node::expand_thunk): If
1070 restype is not is_gimple_reg_type nor the thunk_fndecl
1071 returns aggregate_value_p, set restmp to a temporary variable
1074 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
1076 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1078 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1081 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1082 add a general secondary reload handler for SDmode, unless we have
1083 both read/write support for SDmode.
1085 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1088 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1089 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1090 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1091 1 before, push it to abstract_vec.
1092 (dwarf2out_abstract_function): Adjust caller. Don't call
1093 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1094 DECL_ABSTRACT_P flags for all abstract_vec elts.
1096 2015-02-06 Renlin Li <renlin.li@arm.com>
1098 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1100 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1102 2015-02-06 Jeff Law <law@redhat.com>
1105 * config/h8300/h8300.c (push): New argument "in_prologue".
1106 Pass "in_prologue" along to "F".
1107 (h8300_push_pop): Corresponding changes.
1108 (h8300_expand_prologue): Likewise.
1109 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
1111 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1113 PR rtl-optimization/64957
1115 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1116 IOR rather than for AND.
1118 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
1121 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1122 of shift-add and (add + shift) operations. Rename local variable.
1124 2015-02-05 Jeff Law <law@redhat.com>
1127 * config/h8300/constraints.md (U): Correctly dectect
1128 "eightbit_data" memory addresses.
1129 * config/h8300/h8300.c (eightbit_constant_address_p): Also
1130 handle (const (plus (symbol_ref (x)))) where x is declared
1131 as an 8-bit data memory address.
1132 * config/h8300/h8300.md (call, call_value): Correctly detect
1133 "funcvec" functions.
1136 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1137 24 to 28 bits for the H8/300.
1139 2015-02-06 Alan Modra <amodra@gmail.com>
1142 * config/rs6000/rs6000.c (chain_already_loaded): New function.
1143 (rs6000_call_aix): Use it.
1145 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
1147 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1150 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
1152 * config/h8300/constraints.md ("U" constraint): Use strict
1153 variant of REG_OK_FOR_BASE_P after reload has started.
1155 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
1157 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1158 define to zero if !TARGET_NEON.
1159 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
1161 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1162 Trevor Saunders <tsaunders@mozilla.com>
1165 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1167 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1170 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1171 when removing varpool nodes.
1173 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1176 * varpool.c (varpool_node::remove): Fix order of variables.
1178 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1181 * ipa-inline.c (inline_small_functions): Fix ordering issue between
1182 speculation resolution and key updates.
1184 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1186 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1187 about not letting any speculative edges unupdated.
1189 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1192 * gcov-io.c (gcov_var): Export.
1194 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1197 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1198 edges that become speculative.
1200 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1202 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1203 or DW_LANG_Fortran08.
1204 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1206 (gen_compile_unit_die): Handle "GNU Fortran2003" and
1207 "GNU Fortran2008" language strings.
1208 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1209 * langhooks.h (lang_GNU_Fortran): New prototype.
1210 * langhooks.c (lang_GNU_Fortran): New function.
1211 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1214 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1216 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1217 (RTX_OK_FOR_OLO10_P): Likewise.
1219 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1221 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1223 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1226 * gimple.c: Include gimple-ssa.h.
1227 (maybe_remove_unused_call_args): New function.
1228 * gimple.h (maybe_remove_unused_call_args): Declare.
1229 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1230 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1231 * gimple-fold.c (gimple_fold_call): Likewise.
1233 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
1235 PR rtl-optimization/64905
1236 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1237 pointer alignment if it isn't needed.
1239 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1241 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1242 cortex-a72.cortex-a53.
1243 * config/aarch64/aarch64-tune.md: Regenerate.
1244 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1246 2015-02-04 Nick Clifton <nickc@redhat.com>
1248 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1251 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1253 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1254 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1255 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1257 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1258 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1259 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1260 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1261 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1262 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1263 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1264 * tree-core.h (enum built_in_function): In between
1265 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1266 for builtins that use DEF_BUILTIN_CHKP macro.
1268 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
1271 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1272 operands for tcc_comparison exprs. Fix typos.
1275 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1276 of two XORs that have an intervening AND or IOR.
1279 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1280 simplification of XOR of AND to not allocate new rtx before
1281 committing to a simplification.
1283 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1285 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1286 manual swaps in all peepholes.
1288 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1290 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1291 of manual swapping implementation.
1292 (aarch64_expand_vec_perm_const_1): Likewise.
1294 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
1296 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1297 (generic_addrcost_table): Remove NAMED_PARAM.
1298 (cortexa57_addrcost_table): Likewise.
1299 (xgene1_addrcost_table): Likewise.
1300 (generic_regmove_table): Likewise.
1301 (cortexa53_regmove_table): Likewise.
1302 (xgene1_regmove_table): Likewise.
1303 (generic_vector_table): Likewise.
1304 (cortexa57_vector_table): Likewise.
1305 (xgene1_vector_table): Likewise.
1306 (generic_tunings): Likewise.
1307 (cortexa53_tunings): Likewise.
1308 (cortexa57_tunings): Likewise.
1309 (xgene1_tunings): Likewise.
1311 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1313 * config/arm/arm-cores.def: Add cortex-a72 and
1314 cortex-a72.cortex-a53.
1315 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1316 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1317 * config/arm/arm-tune.md: Regenerate.
1318 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1319 "cortex-a72.cortex-a53".
1320 * doc/invoke.texi (ARM Options/-mtune): Likewise.
1322 2015-02-04 Nick Clifton <nickc@redhat.com>
1325 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1327 (nonimmediate_di_operand): Likewise.
1329 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1330 prefixes of known F5 using MSP430 MCUs.
1332 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1334 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1335 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1336 instead of __builtin_sqrt.
1338 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
1340 * varasm.c (do_assemble_alias): Follow transparent alias
1342 (default_assemble_visibility): Follow transparent alias
1343 chain for decl name.
1345 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1348 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1349 to compute size of referenced value in the constant case.
1351 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1353 PR rtl-optimization/64756
1354 * cse.c (invalidate_dest): New function.
1355 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
1356 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1357 invalidate and do not record it.
1359 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1362 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1363 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1364 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1365 atomic_nand<mode>_soft_tcb): New insns.
1366 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1367 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1368 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1369 Split into atomic_not_fetchsi_hard if operands[0] is unused.
1370 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1371 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1372 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
1373 atomic_not<mode>_hard if operands[0] is unused.
1374 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1375 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1376 if operands[0] is unused.
1377 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
1378 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1379 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1380 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1382 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
1383 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1384 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1385 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1386 if operands[0] is unused.
1387 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
1388 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1389 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
1390 atomic_nand_fetchsi_hard if operands[0] is unused.
1391 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
1392 atomic_nand<mode>_hard if operands[0] is unused.
1393 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
1394 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1395 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
1396 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1397 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
1398 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1399 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1400 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1401 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
1402 atomic_not<mode>_hard if operands[0] is unused.
1403 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1404 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1406 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1407 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1408 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
1409 atomic_nand<mode>_hard if operands[0] is unused.
1410 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1411 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1413 2015-02-03 David Malcolm <dmalcolm@redhat.com>
1416 * Makefile.in (GCC_OBJS): Add gcc-main.o.
1417 * gcc-main.c: New file, containing "main" taken from gcc.c.
1418 * gcc.c (do_self_spec): Free decoded_options.
1419 (class driver): Move declaration to gcc.h.
1420 (main): Move declaration and implementation to new file
1422 (driver_get_configure_time_options): New function.
1423 * gcc.h (class driver): Move this declaration here, from
1425 (driver_get_configure_time_options): New declaration.
1427 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
1429 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1430 cross-module inlining.
1431 * cgraph.h (cgraph_node): Add flag merged.
1432 * ipa-icf.c (sem_function::merge): Maintain it.
1434 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
1436 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1437 instead of OBJECT_P.
1439 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
1442 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1443 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1444 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1445 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1447 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1450 * combine.c (reg_n_sets_max): New variable.
1451 (can_change_dest_mode, reg_nonzero_bits_for_combine,
1452 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1453 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1454 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1455 (rest_of_handle_combine): Initialize reg_n_sets_max.
1457 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
1459 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1460 if some always_inline was inlined, apply changes before inlining
1463 2015-02-02 David Malcolm <dmalcolm@redhat.com>
1466 * config/arm/arm.c (arm_option_override): Set
1467 arm_selected_arch/cpu/tune to NULL on entry.
1469 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
1470 Andrew Pinski <pinskia@gcc.gnu.org>
1471 Jakub Jelinek <jakub@gcc.gnu.org>
1474 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1475 integer typing for small model. Use IN_RANGE.
1477 2015-02-02 Richard Biener <rguenther@suse.de>
1479 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1480 * tree-vrp.c (vrp_valueize_1): Likewise.
1482 2015-02-02 Alan Modra <amodra@gmail.com>
1484 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1485 than mem for toc_restore.
1486 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1487 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1488 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1490 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1493 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1494 explicit default options.
1496 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
1499 * ipa-utils.c (ipa_merge_profiles): Add release argument.
1500 * ipa-icf.c (sem_function::merge): Do not release body when merging.
1501 * ipa-utils.h (ipa_merge_profiles): Update prototype.
1503 2015-02-01 Jakub Jelinek <jakub@redhat.com>
1506 * cfgexpand.c (deep_ter_debug_map): New variable.
1507 (avoid_deep_ter_for_debug): New function.
1508 (expand_debug_expr): If TERed SSA_NAME is in
1509 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1510 instead of trying to expand SSA_NAME's def stmt.
1511 (expand_debug_locations): When expanding debug bind
1512 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1513 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1515 (pass_expand::execute): Call avoid_deep_ter_for_debug on
1516 all debug bind stmts. Delete deep_ter_debug_map after
1517 expand_debug_location if non-NULL and clear it.
1519 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
1522 * config/sh/sync.md (atomic_fetch_notsi_hard,
1523 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1524 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1525 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1526 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1527 atomic_not_fetch<mode>_soft_imask): New insns.
1529 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1531 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1532 (rank_for_schedule_debug): Split from ...
1533 (rank_for_schedule): ... this.
1534 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1535 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1537 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1539 * doc/md.texi (Machine Constraints): Alphabetize table by target.
1540 * doc/extend.texi (x86 Variable Attributes): Move section to
1541 correct alphabetization after renaming.
1542 (x86 Type Attributes): Likewise.
1543 (Target Builtins): Re-alphabetize menu.
1544 (x86 Built-in Functions): Move section to correct alphabetization
1546 (x86 transactional memory intrinsics): Likewise.
1547 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1548 and x86 Windows Options in table and menu.
1549 (x86 Options): Move section to correct alphabetization after
1551 (x86 Windows Options): Likewise.
1553 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1555 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1556 preferred names of the architecture and its 32- and 64-bit
1558 * doc/invoke.texi: Likewise.
1559 * doc/md.texi: Likewise.
1561 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1564 * config/i386/predicates.md (address_no_seg_operand): Reject
1565 non-CONST_INT_P operands in invalid mode.
1567 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1569 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1570 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
1571 * config/i386/predicates.md (address_no_seg_operand): Call
1572 address_operand with VOIDmode.
1573 (vsib_address_operand): Ditto.
1574 (address_mpx_no_base_operand): Ditto.
1575 (address_mpx_no_index_operand): Ditto.
1577 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1580 * lra-constraints.c (original_subreg_reg_mode): New.
1581 (simplify_operand_subreg): Try to simplify subreg of const. Use
1582 original_subreg_reg_mode for it.
1583 (swap_operands): Update original_subreg_reg_mode.
1584 (curr_insn_transform): Set up original_subreg_reg_mode.
1586 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1589 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1591 (process_alt_operands): Use it.
1592 (curr_insn_transform): Check the optional reload pseudo class is
1595 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1597 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1598 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1600 * toplev.h (init_asm_output): Update comment on use of
1601 UNKNOWN_LOCATION with fatal_error.
1602 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1603 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1604 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1605 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1606 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1607 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1608 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1609 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1610 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1611 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1612 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1613 fatal_error changed to pass input_location as first argument.
1615 2015-01-30 Martin Liska <mliska@suse.cz>
1617 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1618 in #pragma GCC diagnostic guards.
1620 2015-01-30 Richard Biener <rguenther@suse.de>
1622 PR tree-optimization/64829
1623 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1624 not add a widening conversion pattern but hand off extra
1625 widenings to callers.
1626 (vect_recog_widen_mult_pattern): Handle extra widening produced
1627 by vect_handle_widen_op_by_const.
1628 (vect_recog_widen_shift_pattern): Likewise.
1629 (vect_pattern_recog_1): Remove excess vertical space in dumping.
1630 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1631 (vect_init_vector_1): Likewise.
1632 (vect_get_vec_def_for_operand): Likewise.
1633 (vect_finish_stmt_generation): Likewise.
1634 (vectorizable_load): Likewise.
1635 (vect_analyze_stmt): Likewise.
1636 (vect_is_simple_use): Likewise.
1638 2015-01-29 Jeff Law <law@redhat.com>
1640 * combine.c (try_combine): Fix typo in comment.
1642 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
1645 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1646 (rs6000_stack_info): Add assert.
1647 (rs6000_output_savres_externs): New function, split off from...
1648 (rs6000_output_function_prologue): ... here. Do not call it for
1651 2015-01-29 Jeff Law <law@redhat.com>
1654 * combine.c (try_combine): If I0 is a memory load and I3 a store
1655 to a related address, increase the "goodness" of doing a 4-insn
1656 combination with I0-I3.
1657 (make_field_assignment): Handle SUBREGs in the ior+and case.
1659 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1661 PR tree-optimization/64746
1662 * tree-if-conv.c (mask_exists): New function.
1663 (predicate_mem_writes): Save created mask with given size for further
1665 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1666 (ifcvt_repair_bool_pattern): Collect all statements that are root
1667 of bool pattern and use iterative algorithm to remove multiple uses
1668 of predicates, display number of required iterations.
1670 2015-01-29 Richard Biener <rguenther@suse.de>
1672 PR tree-optimization/64853
1673 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1674 stmt will get simulated again.
1675 * tree-ssa-ccp.c (valueize_op_1): Likewise.
1677 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1679 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1680 return_in_pc. Remove redundant assignments.
1681 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1682 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1684 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
1686 * config/i386/i386.c (ix86_mode_after): Make static.
1688 2015-01-29 Richard Biener <rguenther@suse.de>
1690 PR tree-optimization/64844
1691 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1692 dump cost model analysis.
1693 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1694 Do not register adjusted load/store costs here.
1696 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1697 Uros Bizjak <ubizjak@gmail.com>
1699 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1700 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1701 using x86_use_pseudo_pic_reg.
1702 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1703 support for fixed PIC register.
1704 (ix86_use_pseudo_pic_reg): Not static any more.
1706 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1709 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1710 to avoid error in cgraph node verification.
1712 2015-01-29 Marek Polacek <polacek@redhat.com>
1714 * doc/standards.texi: Reflect that the default for C is gnu11.
1716 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1719 * reorg.c (switch_text_sections_between_p): New function.
1720 (relax_delay_slots): Call it when testing if the jump insn
1721 is removable. Use targetm.can_follow_jump when testing if
1722 the conditional branch can follow an unconditional jump.
1724 2015-01-27 Caroline Tice <cmtice@google.com>
1726 Committing VTV Cywin/Ming patch for Patrick Wollgast
1727 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1728 if -fvtable-verify=preinit/std is used.
1729 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1730 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1731 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1732 if -fvtable-verify=preinit/std is used.
1733 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1734 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1735 if -fvtable-verify=preinit/std is used.
1736 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1737 * config/i386/mingw32.h (LIB_SPEC): Likewise.
1738 * varasm.c (assemble_variable): Add code to properly set the comdat
1739 section and name for the .vtable_map_vars section in case the
1740 target is PE or COFF.
1742 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1745 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1746 make sane BB profile.
1747 (cgraph_node::expand_thunk): Make sane BB profile.
1748 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1749 * cgraph.h (init_lowered_empty_function): Update prototype.
1750 * config/i386/i386.c (make_resolver_func): Update call.
1751 * predict.c (gate): Disable branch prediction pass if
1752 profile is already there.
1754 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1756 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1757 * opth-gen.awk: Likewise.
1758 * common.opt: Mark flag_fp_contract_mode as Optimization.
1760 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
1762 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1763 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1765 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
1768 * config/sh/predicates.md (atomic_arith_operand,
1769 atomic_logical_operand): Remove.
1770 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1771 (atomic_arith_operand_0): New predicate.
1772 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1773 Use atomic_arith_operand_0 for input values.
1774 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1775 atomic_compare_and_swap<mode>_soft_gusa,
1776 atomic_compare_and_swap<mode>_soft_tcb,
1777 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1778 arith_reg_operand instead of register_operand.
1779 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
1780 atomic_arith_operand_0 for newval input.
1781 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1782 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1783 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1784 arith_reg_operand instead of register_operand.
1785 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1786 fetchop_predicate_1, fetchop_constraint_1_llcs,
1787 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1788 fetchop_constraint_1_imask): New code iterator attributes.
1789 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1790 register_operand. Use fetchop_predicate_1.
1791 (atomic_fetch_<fetchop_name>si_hard,
1792 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1793 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1794 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1795 and arith_reg_operand instead of register_operand. Use
1796 fetchop_predicate_1, fetchop_constraint_1_gusa.
1797 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1798 and arith_reg_operand instead of register_operand. Use
1799 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
1801 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1802 and arith_reg_operand instead of register_operand. Use
1803 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
1805 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1806 register_operand. Use atomic_logical_operand_1.
1807 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1808 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1809 arith_reg_operand instead of register_operand.
1810 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1811 Use arith_reg_dest and arith_reg_operand instead of register_operand.
1812 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
1813 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1814 register_operand. Use fetchop_predicate_1.
1815 (atomic_<fetchop_name>_fetchsi_hard,
1816 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1817 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1818 fetchop_constraint_1_llcs.
1819 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1820 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1821 fetchop_constraint_1_gusa.
1822 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1823 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1824 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
1825 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1826 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1827 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
1828 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1829 register_operand. Use atomic_logical_operand_1.
1830 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1831 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1832 arith_reg_operand instead of register_operand.
1833 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1834 arith_reg_operand instead of register_operand. Use logical_operand
1835 and K08. Adjust asm sequence to allow R0 usage.
1836 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1837 arith_reg_operand instead of register_operand. Use logical_operand
1840 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1843 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1844 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1845 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1846 only get_full_len HOST_WIDE_INTs from get_val () array rather than
1847 all bits in *val_wide.
1849 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
1851 * varpool.c (tls_model_names): Fix names.
1852 (varpool_node::dump): Dump tls- prefix for tls models.
1854 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
1855 Bernd Schmidt <bernds@codesourcery.com>
1856 Nathan Sidwell <nathan@codesourcery.com>
1858 * config/nvptx/mkoffload.c: New file.
1859 * config/nvptx/t-nvptx: Add build rules for it.
1860 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1861 (extra_programs): Add mkoffload.
1862 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1864 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1866 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
1869 * cfgexpand.c (reorder_operands): Skip debug gimples.
1871 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
1873 PR tree-optimization/64277
1874 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1875 range info when possible to refine estimation.
1877 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1879 PR tree-optimization/64718
1880 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1881 be a 16bit unsigned integer when n->range is 16.
1882 (bswap_replace): Convert src to that type if necessary for all bswap
1883 sizes. Fix rotation right notation in nearby comment. Use bswap_type
1884 set in pass_optimize_bswap::execute ().
1886 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
1888 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1889 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1890 integer and floating point variants.
1891 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1893 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
1895 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1896 for all vector modes.
1898 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1901 * doc/sourcebuild.texi (comdat_group): Document.
1903 2015-01-28 Terry Guo <terry.guo@arm.com>
1905 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1907 2015-01-27 David Malcolm <dmalcolm@redhat.com>
1909 * toplev.c (print_version): Add param "show_global_state", and
1910 only print GGC and plugin information if it is true.
1911 (init_asm_output): Pass in "true" for the new param when calling
1913 (process_options): Likewise.
1914 (toplev::main): Likewise.
1915 * toplev.h (print_version): Add new param to decl.
1917 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1921 * tree.c (lookup_binfo_at_offset): New function.
1922 (get_binfo_at_offset): Use it.
1924 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1927 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1928 on vtable being vtable.
1930 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
1932 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1933 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1935 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1936 -mno-hotpatch options. Change syntax of -mhotpatch= option.
1937 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1939 (s390_hotpatch_trampoline_halfwords_max): Renamed.
1940 (s390_hotpatch_hw_max): New name.
1941 (s390_hotpatch_trampoline_halfwords): Renamed.
1942 (s390_hotpatch_hw_before_label): New name.
1943 (get_hotpatch_attribute): Removed.
1944 (s390_hotpatch_hw_after_label): New name.
1945 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1947 (s390_attribute_table): Ditto.
1948 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1949 (s390_function_num_hotpatch_hw): New name.
1950 Remove special handling of inline functions and hotpatching.
1951 Return number of nops before and after the function label.
1952 (s390_can_inline_p): Removed.
1953 (s390_asm_output_function_label): Emit a configurable number of nops
1954 after the function label.
1955 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1956 (TARGET_CAN_INLINE_P) Removed.
1957 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1959 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1960 Jiong Wang <jiong.wang@arm.com>
1962 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1964 (cb<optab><mode>1): Likewise.
1965 * config/aarch64/iterators.md (bcond): New define_code_attr.
1967 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1969 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1972 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1974 * config/s390/s390.c (s390_register_move_cost): Increase costs for
1977 2015-01-27 Richard Biener <rguenther@suse.de>
1979 * tree-vrp.c (update_value_range): Intersect the range with
1980 old recorded SSA name range information.
1982 2015-01-27 Nick Clifton <nickc@redhat.com>
1984 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1985 BC, DE and HL registers directly, not via AX.
1986 When decrementing the stack pointer by a large amount, transfer SP
1987 into AX and perform the subtraction there.
1988 (rl78_expand_epilogue): Perform the inverse of the above
1991 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1993 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1995 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1996 Yury Gribov <y.gribov@samsung.com>
1999 * ubsan.c (ubsan_source_location): Refactor code.
2000 (ubsan_type_descriptor): Update type size. Refactor code.
2002 2015-01-27 Richard Biener <rguenther@suse.de>
2004 PR tree-optimization/56273
2005 PR tree-optimization/59124
2006 PR tree-optimization/64277
2007 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2008 from the first VRP pass.
2010 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2013 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2014 handle the first argument in the same loop as all the other arguments.
2016 PR rtl-optimization/61058
2017 * jump.c (cleanup_barriers): Update basic block boundaries
2018 if BLOCK_FOR_INSN is non-NULL on PREV.
2020 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
2022 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2023 bounds narrowing, already instrumented calls and calls to
2024 not instrumentable functions.
2026 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2028 PR tree-optimization/64807
2029 * wide-int.cc (wi::divmod_internal): Clear
2030 b_dividend[dividend_blocks_needed].
2032 2015-01-26 DJ Delorie <dj@redhat.com>
2034 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2035 volatile memory references.
2037 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
2040 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2042 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2043 shifts if it already fits into K08.
2045 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2048 * ipa-inline.c (inline_small_functions): Print "unknown" even
2049 if edge->call_stmt is non-NULL, but has builtins or unknown
2053 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2054 with asterisk, skip the first character.
2056 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2059 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2062 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
2065 * config/i386/i386.md (*movdi_internal): Also check operand 0
2066 to determine TYPE_LEA operand.
2067 (*movsi_internal): Ditto.
2069 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2071 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2072 OPTION_MASK_QUAD_MEMORY_ATOMIC.
2074 2015-01-26 Renlin Li <renlin.li@arm.com>
2076 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2078 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2081 2015-01-26 Richard Biener <rguenther@suse.de>
2084 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2085 combining two BIT_AND_EXPR predicates.
2087 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2090 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2092 2015-01-26 Terry Guo <terry.guo@arm.com>
2094 * config/arm/arm.c (arm_file_start): Update the assignment of
2097 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
2099 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2101 config/arm/arm.md: Include the new Cortex-A57 model.
2102 (generic_sched): Don't use generic_sched when tuning for
2105 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
2106 Uros Bizjak <ubizjak@gmail.com>
2108 * config/i386/i386.c (get_builtin_code_for_version): Add
2109 support for BMI and BMI2 multiversion functions.
2111 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2113 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2114 (extract_bit_field): Likewise.
2115 (extract_low_bits): Likewise.
2116 (expand_mult): Likewise.
2117 (expand_mult_highpart_adjust): Likewise.
2119 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
2121 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2122 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2123 * config/i386/i386.c (processor_model): Add
2124 M_INTEL_COREI7_BROADWELL.
2125 (arch_names_table): Add "broadwell".
2127 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
2136 * config/sh/sh-protos.h
2137 (sh_extending_set_of_reg::can_use_as_unextended_reg,
2138 sh_extending_set_of_reg::use_as_unextended_reg,
2139 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2140 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2141 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2142 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2143 (sh_treg_insns): New class.
2144 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2145 (scope_counter): New class.
2146 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2147 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2148 sh_extending_set_of_reg::can_use_as_unextended_reg,
2149 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2150 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2151 sh_split_treg_set_expr): New functions.
2152 (addsubcosts): Handle treg_set_expr.
2153 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2154 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2155 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2156 (sh_insn_operands_modified_between_p): Make non-static.
2157 * config/sh/predicates.md (zero_extend_movu_operand): Allow
2158 simple_mem_operand in addition to displacement_mem_operand.
2159 (zero_extend_operand): Don't allow zero_extend_movu_operand.
2160 (treg_set_expr, treg_set_expr_not_const01,
2161 arith_reg_or_treg_set_expr): New predicates.
2162 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2163 arith_or_int_operand instead of logical_operand. Convert to
2164 insn_and_split. Try to optimize constant operand in splitter.
2165 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
2166 (*tstqi_t_zero): Delete.
2167 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2168 (tstsi_t_and_not): Delete.
2169 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2170 Convert to insn_and_split.
2171 (unnamed split, tstsi_t_zero_extract_xor,
2172 tstsi_t_zero_extract_subreg_xor_little,
2173 tstsi_t_zero_extract_subreg_xor_big): Delete.
2174 (*tstsi_t_shift_mask): New insn_and_split.
2175 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2176 to recombine with surrounding insns when splitting.
2177 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2178 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2179 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2180 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2181 (*cbranch_div0s: Delete.
2182 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2183 Try to recombine with surrounding insns when splitting. Add operand
2185 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2186 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2187 *addc_r_r_msb, *addc_2r_msb): Delete.
2188 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
2190 (*addc_negreg_t): New insn_and_split.
2191 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2192 Try to recombine with surrounding insns when splitting.
2193 Add operand order variants.
2194 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2195 insn_and_split patterns.
2196 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
2197 surrounding insns when splitting.
2198 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2199 (*rotcl): Likewise. Add zero_extract variant.
2200 (*ashrsi2_31): New insn_and_split.
2201 (*negc): Convert to insn_and_split. Use treg_set_expr.
2202 (*zero_extend<mode>si2_disp_mem): Update comment.
2203 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2205 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
2206 with surrounding insns when splitting.
2207 (any_treg_expr_to_reg): New insn_and_split.
2208 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2209 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2210 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2211 *zero_extract_2): New single bit zero extract patterns.
2212 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2213 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2214 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2215 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2217 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2218 register_operand for set source.
2220 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
2222 * i386.opt (prefetch_sse): New targetsave.
2223 * i386.c (ix86_function_specific_save): Save prefetch_sse.
2224 (ix86_function_specific_restore): Restore prefetch_sse and initialize
2225 ix86_cost/ix86_tune_cost.
2227 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2229 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2230 Support the JIT by using 0 as the language type.
2232 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
2235 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
2236 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
2237 (mark_regno_live, process_bb_lives): Pass new parameter value to
2238 make_hard_regno_born.
2240 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2242 PR rtl-optimization/63637
2243 PR rtl-optimization/60663
2244 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2245 if elt->cost is MAX_COST for ASM_OPERANDS.
2246 (find_sets_in_insn): Fix up comment typo.
2247 (cse_insn): Don't set src_volatile for all non-volatile
2248 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2249 or with "memory" clobber. Set elt->cost to MAX_COST
2250 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
2251 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2253 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
2255 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2258 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
2260 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2261 libgcc/config/i386/elf-lib.h.
2263 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2266 * gcc.c (print_configuration): Don't print a blank line at the end
2268 (run_attempt): ... but here unstead.
2271 * omp-low.c (scan_sharing_clauses): Don't ignore
2272 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2273 on target data/update constructs.
2275 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2278 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2279 (DEBUG_RELOAD): Removed define.
2280 (m32c_limit_reload_class): Enable traces with if DEBUG0.
2281 (m32c_function_arg): Added a type cast.
2282 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2283 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2284 * config/m32c/bitops.md (andqi3_16): Likewise.
2285 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2286 (push_a01_l): Likewise.
2288 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2291 * main.c (main): Construct toplev instances with init_signals=true.
2292 * toplev.c (general_init): Add param "init_signals", and use it to
2293 conditionalize the calls to signal and host_hooks.extra_signals.
2294 (toplev::toplev): Add param "init_signals".
2295 (toplev::main): When invoking general_init, pass m_init_signals
2296 to control whether signal-handlers are installed.
2297 * toplev.h (toplev::toplev): Add param "init_signals".
2298 (toplev::m_init_signals): New field.
2300 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2303 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2304 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2305 latter may be affected by the former (e.g. on i686).
2307 2015-01-23 Martin Liska <mliska@suse.cz>
2309 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2310 false positive during profiledbootstrap.
2312 2015-01-23 Tom de Vries <tom@codesourcery.com>
2315 * lto-opts.c (lto_write_options): Output non-explicit conservative
2317 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2318 (append_compiler_options): Pass -fopenacc through.
2320 2015-01-23 Tom de Vries <tom@codesourcery.com>
2323 * lto-opts.c (lto_write_options): Output non-explicit conservative
2325 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2326 (append_compiler_options): Pass -fopenmp through.
2328 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2331 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2334 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2335 * diagnostic.def (DK_ICE_NOBT): New kind.
2336 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2337 like DK_ICE, but never print backtrace.
2338 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2339 (internal_error_no_backtrace): New function.
2340 * gcc.c (execute): Use internal_error_no_backtrace instead of
2343 2015-01-22 Jeff Law <law@redhat.com>
2346 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2347 improve code density for small immediate to memory case.
2348 (insv): Better handle bitfield assignments when the field is
2349 being set to all ones.
2350 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2353 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2354 Jakub Jelinek <jakub@redhat.com>
2356 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2357 for !TARGET_LIBC_PROVIDES_SSP version and
2358 -fstack-protector-{all,strong,explicit} otherwise.
2359 * config/freebsd.h (LINK_SSP_SPEC): Handle
2360 -fstack-protector-{strong,explicit}.
2362 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
2363 H.J. Lu <hongjiu.lu@intel.com>
2366 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2369 2015-01-22 Wei Mi <wmi@google.com>
2371 PR rtl-optimization/64557
2372 * dse.c (record_store): Call get_addr for mem_addr.
2373 (check_mem_read_rtx): Likewise.
2375 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
2377 * fold-const.c (const_binop): Add early return for non-tcc_binary.
2379 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
2381 * toplev.c (init_local_tick): Process the failure when read
2382 fails for random_seed.
2384 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2385 'pretty_name' to avoid memory overflow.
2387 2015-01-22 Richard Biener <rguenther@suse.de>
2390 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2391 abnormal coalescing on undefined SSA names.
2393 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
2397 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2399 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2401 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
2404 * fold-const.c (fold_checksum_tree): Don't include value of
2405 expr->decl_with_vis.symtab_node in the checksum.
2407 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2409 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2411 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
2414 * gcc.c (insert_comments): New function.
2415 (try_generate_repro): Call it.
2416 (append_text): Removed.
2418 2015-01-22 Richard Biener <rguenther@suse.de>
2420 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2421 with IL incompatible options. Properly honor user optimize
2424 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
2426 PR rtl-optimization/64682
2427 * combine.c (distribute_notes): When moving a death note for
2428 a register that is set in the new I2, make sure to put it
2431 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
2433 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2436 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2439 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2440 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2441 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2444 * doc/invoke.texi (-fsanitize=vptr): Document.
2446 PR rtl-optimization/62078
2447 * dse.c: Include cfgcleanup.h.
2448 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2449 anything call purge_all_dead_edges and cleanup_cfg at the end
2452 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
2454 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2457 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2459 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2462 2015-01-21 David Sherwood <david.sherwood@arm.com>
2463 Tejas Belagod <Tejas.Belagod@arm.com>
2465 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2466 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2467 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2470 2015-01-21 David Sherwood <david.sherwood@arm.com>
2471 Tejas Belagod <Tejas.Belagod@arm.com>
2473 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2474 (aarch64_reverse_mask): New decls.
2475 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2476 (insn_count): New mode_attr.
2477 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2478 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2479 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2480 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2481 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2482 (aarch64_simd_st4): New patterns.
2483 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2484 (aarch64_reverse_mask): New functions.
2486 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
2488 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2490 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2491 addressing modes for BE.
2492 (aarch64_print_operand): Add 'R' specifier.
2493 (aarch64_simd_disambiguate_copy): Delete.
2494 (aarch64_simd_emit_reg_reg_move): New function.
2495 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2496 in define_splits for structural moves.
2497 (mov<mode>): Use less restrictive predicates.
2498 (*aarch64_mov<mode>): Simplify and only allow for LE.
2499 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2501 2015-01-21 Alan Hayward <alan.hayward@arm.com>
2503 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2505 2015-01-21 Richard Henderson <rth@redhat.com>
2508 * ccmp.c (used_in_cond_stmt_p): Remove.
2509 (expand_ccmp_expr): Don't use it.
2511 2015-01-21 Nick Clifton <nickc@redhat.com>
2513 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2516 2015-01-21 Richard Biener <rguenther@suse.de>
2519 * tree-core.h (builtin_info, builtin_info_type): Turn from
2520 an object with two arrays into an array of an object with
2521 decl and two flags, implicit_p and declared_p.
2522 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2523 set_builtin_decl, set_builtin_decl_implicit_p,
2524 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2525 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2526 * builtins.c (builtin_info): Adjust.
2527 * gimplify.c (gimplify_addr_expr): References to builtins
2528 that have been declared by the user makes them eligible for
2529 use by the compiler. Call set_builtin_decl_implicit_p on them.
2531 2015-01-20 Jeff Law <law@redhat.com>
2534 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2535 allow pc-relative addresses in operand predicates or constraints.
2537 2015-01-21 Bin Cheng <bin.cheng@arm.com>
2539 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2540 neon on aarch32 processors for stringops.
2542 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2545 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2547 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2550 * ipa-inline.c: Include lto-streamer.h
2551 (report_inline_failed_reason): Output source file differences and
2552 flags on optimization/target node mismatch.
2553 (can_inline_edge_p): Consider caller to be the outer inline function;
2554 be less restrictive about matching opimize and optimize_size attributes.
2555 (inline_account_function_p): Break out from ...
2556 (inline_small_functions): ... here.
2557 * ipa-inline-transform.c (clone_inlined_nodes): Use
2558 inline_account_function_p.
2559 (inline_call): Use optimize attribution; use inline_account_function_p.
2560 (inline_transform): Use opt_for_fn.
2561 * ipa-inline.h (inline_account_function_p): Declare.
2563 2015-01-20 Jakub Jelinek <jakub@redhat.com>
2566 * dwarf2out.c (decl_piece_node): Don't put bitsize into
2567 mode if bitsize <= 0.
2568 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2569 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2570 sizes and positions.
2572 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
2574 * config/nios2/nios2.c (nios2_asm_file_end): Implement
2575 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2577 (TARGET_ASM_FILE_END): Define.
2579 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2581 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2582 (struct tune_params): Use the enum.
2583 * arm.c (arm_*_tune): Update.
2584 (arm_option_override): Update.
2586 2015-01-20 Richard Biener <rguenther@suse.de>
2589 * ipa-reference.c (add_static_var): Inline ...
2590 (analyze_function): ... here after splitting out from ...
2591 (is_proper_for_analysis): ... this.
2593 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
2596 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2597 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2598 replace the conditional with it's true branch.
2599 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2600 (arm_lra_p): Remove.
2602 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
2604 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2606 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2608 * config/tilegx/mul-tables.c: Move symtab.h include after
2609 coretypes.h include.
2610 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2611 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2612 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2613 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2614 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2616 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
2620 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2622 PR rtl-optimization/64081
2623 * loop-iv.c (def_pred_latch_p): New function.
2624 (latch_dominating_def): Allow specific cases with non-single
2626 (iv_get_reaching_def): Likewise.
2627 (check_complex_exit_p): New function.
2628 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2629 with exits not executing on any iteration.
2631 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2634 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2637 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2640 * i386.c (gate): Check flag_expensive_optimizations and
2642 (ix86_option_override_internal): Drop optimize_size condition
2643 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2644 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2646 (ix86_avx256_split_vector_move_misalign,
2647 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2648 * sse.md (all uses of TARGET_PREFER_AVX128): Add
2649 optimize_insn_for_speed_p check.
2651 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2653 * config/mips/mips.h (FP_ASM_SPEC): New define.
2654 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2657 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
2660 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2661 nullptr for insn when reaching the first insn.
2662 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2663 (sh_insn_operands_modified_between_p): Add nullptr check.
2664 (sh_find_extending_set_of_reg): Fix log message. Don't accept
2665 sign extending mem load if the insn contains any UNSPEC or
2668 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2670 * params.def (inline-unit-growth): Drop to 15%.
2671 * invoke.texi (inline-unit-growth): Document change.
2673 2015-01-19 Martin Liska <mliska@suse.cz>
2676 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2677 function for second argument of OBJ_TYPE_REF.
2679 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2682 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2683 whether function is an alias.
2685 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2687 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2690 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2692 PR rtl-optimization/64671
2693 * lra-remat.c (operand_to_remat): Don't consider jump and call
2696 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
2698 * config/rs6000/default64.h: Include rs6000-cpus.def.
2699 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2700 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2701 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2703 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2705 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2706 pseudo-op to specify assembler dialect.
2708 2015-01-19 Martin Liska <mliska@suse.cz>
2711 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2712 Handle safe potentially removed nodes during filtering.
2714 2015-01-19 Martin Liska <mliska@suse.cz>
2716 * doc/extend.texi (no_icf): Add new attribute description.
2717 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2718 where the pass attempts to merge a function with no_icf attribute.
2720 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2723 * doc/md.texi (ARM Options): Document register constraints.
2725 2015-01-19 Jiong Wang <jiong.wang@arm.com>
2726 Andrew Pinski <apinski@cavium.com>
2729 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2730 (ashl<mode>3): Don't expand if operands[2] is not constant.
2732 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2735 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2736 Match xor-and-xor RTL pattern.
2738 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2740 PR rtl-optimization/64081
2741 * loop-iv.c (def_pred_latch_p): New function.
2742 (latch_dominating_def): Allow specific cases with non-single
2744 (iv_get_reaching_def): Likewise.
2745 (check_complex_exit_p): New function.
2746 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2747 with exits not executing on any iteration.
2749 2015-01-19 Jakub Jelinek <jakub@redhat.com>
2751 * common.opt (fgraphite): Fix a typo.
2753 2015-01-19 Felix Yang <felix.yang@huawei.com>
2755 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2757 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2758 uminp, smax_nanp, smin_nanp): New builtins.
2759 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2760 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2761 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2762 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2763 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2764 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2765 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2766 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2767 vpminnms_f32): Rewrite using builtin functions.
2769 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2772 * omp-low.c (offload_symbol_decl): Remove variable.
2773 (get_offload_symbol_decl): Remove function.
2774 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2775 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2776 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2777 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2778 BUILT_IN_GOACC_UPDATE don't pass it at all.
2780 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2782 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2785 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2787 * ipa-chkp.c (chkp_produce_thunks): Add early param
2788 to split thunks production into two passes. Keep
2789 'always_inline' function bodies after the first pass.
2790 (pass_data_ipa_chkp_early_produce_thunks): New.
2791 (pass_ipa_chkp_early_produce_thunks): New.
2792 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2793 chkp_produce_thunks signature.
2794 (make_pass_ipa_chkp_early_produce_thunks): New.
2795 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2796 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2797 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2799 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2801 * cgraph.c (cgraph_node::dump): Dump profile flags.
2803 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
2806 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2807 reg appear first in the parallel.
2809 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2811 * ipa-reference.c (set_reference_optimization_summary,
2812 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2814 (ignore_module_statics): New static var.
2815 (propagate_bits): If ipa-reference is disabled, do not look into local
2817 (analyze_function): Disable analysis when ipa_reference is disabled.
2818 (generate_summary): Do not dump when reference is disabled;
2819 collect vars accessed from functions with ipa-reference disabled.
2820 (get_read_write_all_from_node): When ipa-reference is disabled, use the
2822 (gate): Enable for LTO.
2823 (ignore_edge_p): New function.
2824 (propagate): Skip functions w/o ipa-reference analysis.
2825 * optc-save-gen.awk: Handle optimize_debug correctly.
2826 * opth-gen.awk: Likewise.
2827 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2828 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2829 fira-share-save-slots, fira-share-spill-slots,
2830 fmodulo-sched-allow-regmoves, fpartial-inlining,
2831 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2832 ftracer, ftree-parallelize-loops, fassociative-math,
2833 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2835 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2836 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2838 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2841 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2844 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2846 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2848 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
2850 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2851 Remove duplicate option listings.
2853 2015-01-18 Felix Yang <felix.yang@huawei.com>
2855 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2856 (autofdo_source_profile::get_callsite_total_count,
2857 function_instance::get_function_instance_by_decl,
2858 string_table::get_index, string_table::get_index_by_decl,
2859 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2860 Fix comment typos. Reformatting and minor code rearrangement.
2862 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2864 * config/rs6000/rs6000.md (probe_stack): Delete.
2865 (probe_stack_address): New.
2867 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2869 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2870 to test for 32-bit ABIs, not !TARGET_POWERPC64.
2872 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2874 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2875 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
2876 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
2878 (rs6000_libcall_value): Use the new function.
2880 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
2882 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2884 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
2886 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2887 implement a more precise life analysis for it during backward scan.
2889 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2891 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2893 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
2895 PR rtl-optimization/52773
2896 * calls.c (emit_library_call_value): When pushing arguments use
2897 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2898 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
2899 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2901 2015-01-17 Jeff Law <law@redhat.com>
2903 PR rtl-optimization/32790
2904 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2905 not ZERO_EXTEND in SET_DESTs.
2907 2015-01-17 Alan Modra <amodra@gmail.com>
2909 * cprop.c (do_local_cprop): Revert last change.
2911 2015-01-16 DJ Delorie <dj@redhat.com>
2912 Nick Clifton <nickc@redhat.com>
2914 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2915 (addhi3_real): Likewise. Fix [HL+0] syntax.
2916 (subqi3_real): Likewise.
2917 (subhi3_real): Likewise.
2918 (cbranchqi4_real): Likewise. Allow saddr,#imm.
2919 (cbranchhi4_real): Likewise.
2920 (cbranchhi4_real_inverted): Likewise.
2921 (cbranchsi4_real_lt): Likewise.
2922 (cbranchsi4_real_ge): Likewise.
2923 (cbranchsi4_real_ge): Likewise.
2924 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2925 (sub<mode>3_virt): Likewise.
2926 (cbranchqi4_virt): Likewise.
2927 (cbranchhi4_virt): Likewise.
2928 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2929 always use '[reg+imm]' even when imm is zero.
2930 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2931 (rl78_general_operand): New.
2932 (rl78_nonimmediate_operand): New.
2933 (rl78_nonfar_operand): Use them.
2934 (rl78_nonfar_nonimm_operand): Likewise.
2935 (rl78_stack_based_mem): Fix.
2936 * config/rl78/constraints.md (Ibqi): New.
2941 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2944 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2946 * config/rl78/constrains (Qs8): New constraint.
2947 * config/rl78/rl78.c (rl78_flags_already_set): New function.
2948 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2949 * config/rl78/rl78-real.md (update_Z): New attribute.
2950 Update patterns to set it.
2951 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2952 shorter compare and branch sequence can be used.
2953 (cbranchhi4_real): Likewise.
2954 (cbranchhi4_real_inverted): Likewise.
2956 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2957 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2959 * config/rl78/rl78.c (rl78_get_name_encoding): New.
2960 (rl78_option_override): Allow -mes0 only if C.
2961 (characterize_address): Support subregs of symbol_refs.
2962 (rl78_addr_space_address_mode): Move. Add __near.
2963 (rl78_far_p): Likewise.
2964 (rl78_addr_space_pointer_mode): Likewise.
2965 (rl78_as_legitimate_address): Likewise.
2966 (rl78_addr_space_subset_p): Likewise.
2967 (rl78_addr_space_convert): Likewise.
2968 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2970 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
2972 (rl78_alloc_physical_registers_op1): Change logic to prefer
2973 symbol[BC] addressing.
2974 (frodata_section): New.
2975 (rl78_asm_init_sections): Initialize it.
2976 (rl78_select_section): Put __far readonly symbols in .frodata.
2977 (rl78_make_type_far): New.
2978 (rl78_insert_attributes): Force all readonly symbols to be
2980 (rl78_asm_out_integer): New.
2981 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2982 * config/rl78/rl78.opt (-mes0): New.
2984 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2985 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2986 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2987 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2988 (rl78_saddr_p): New.
2989 (rl78_output_aligned_common): New.
2990 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2991 (rl78_handle_saddr_attribute): New.
2992 (rl78_handle_naked_attribute): New.
2993 (rl78_attribute_table): Add saddr.
2994 (rl78_print_operand_1): Don't print '!' on saddr operands.
2995 (rl78_print_operand_1): Strip encodings.
2997 (rl78_strip_name_encoding): New.
2998 (rl78_attrlist_to_encoding): New.
2999 (rl78_encode_section_info): New.
3000 (rl78_asm_init_sections): New.
3001 (rl78_select_section): New.
3002 (rl78_output_labelref): New.
3003 (rl78_output_aligned_common): New.
3004 (rl78_asm_out_integer): New.
3005 (rl78_asm_ctor_dtor): New.
3006 (rl78_asm_constructor): New.
3007 (rl78_asm_destructor): New.
3009 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3010 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3011 (transcode_memory_rtx): Update.
3012 (rl78_expand_epilogue): Use A_REG instead of 0.
3014 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3016 * config/arm/arm-protos.h (struct tune_params): New field
3017 sched_autopref_queue_depth.
3018 * config/arm/arm.c (sched-int.h): Include header.
3019 (arm_first_cycle_multipass_dfa_lookahead_guard,)
3020 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3021 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3022 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3023 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3024 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3025 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3026 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3027 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
3028 * config/arm/t-arm (arm.o): Update.
3029 * haifa-sched.c (update_insn_after_change): Update.
3030 (rank_for_schedule): Use auto-prefetcher model, if requested.
3031 (autopref_multipass_init): New static function.
3032 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3033 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3034 variable for debug dumps.
3035 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3036 (autopref_multipass_dfa_lookahead_guard): New global function that
3037 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3038 (init_h_i_d): Update.
3039 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3040 * sched-int.h (enum autopref_multipass_data_status): New const enum.
3041 (autopref_multipass_data_): Structure for auto-prefetcher data.
3042 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3043 (struct _haifa_insn_data:autopref_multipass_data): New field.
3044 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3045 (autopref_multipass_dfa_lookahead_guard): Declare.
3047 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3049 * rtlanal.c (get_base_term): Handle SCRATCH.
3051 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3053 * config/aarch64/aarch64.c
3054 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3055 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3057 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3058 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3060 2015-01-17 Alan Modra <amodra@gmail.com>
3062 * cprop.c (do_local_cprop): Disallow replacement of fixed
3065 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3068 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3071 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3073 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3074 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3076 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3078 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3079 * config/arm/thumb1.md: ... Here.
3081 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3083 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3084 TImode for TARGET_32BIT.
3086 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3088 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3089 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3091 (rs6000_abi_word_mode): New function.
3093 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3095 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3096 instead of UNITS_PER_WORD to describe the size of stack slots.
3098 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3100 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3101 as rs6000_promote_function_mode. Move comment to there.
3102 (rs6000_promote_function_mode): New function.
3104 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3106 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3107 -mpowerpc64 is active.
3109 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3112 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3115 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3117 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3118 introduced in revision 219724.
3120 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3121 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3124 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3125 destination is not a GP reg.
3126 (*movdi_aarch64): Likewise.
3128 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
3131 * config/rs6000/default64.h: Revert ISA change.
3133 2015-01-16 Richard Biener <rguenther@suse.de>
3136 * tree-ssa-uninit.c: Include tree-cfg.h.
3137 (MAX_SWITCH_CASES): New define.
3138 (convert_control_dep_chain_into_preds): Handle switch statements.
3139 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3140 (normalize_one_pred_1): Do not split bit-manipulations.
3143 2015-01-16 Richard Biener <rguenther@suse.de>
3145 PR tree-optimization/64568
3146 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3147 complex load rewriting for TARGET_MEM_REFs.
3149 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
3151 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3153 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
3156 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3158 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3159 (aarch64_lra_p): Remove.
3161 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3164 * ipa-chkp.h (chkp_instrumentable_p): New.
3165 * ipa-chkp.c: Include tree-inline.h.
3166 (chkp_instrumentable_p): New.
3167 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3168 Fix processing of not instrumentable functions.
3169 (chkp_versioning): Use chkp_instrumentable_p. Warn about
3170 not instrumentable functions.
3171 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3172 chkp_instrumentable_p.
3173 * tree-inline.h (copy_forbidden): New.
3174 * tree-inline.c (copy_forbidden): Not static anymore.
3176 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3178 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3181 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3183 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3184 type OP_OUT to OP_INOUT.
3186 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3188 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3189 (high x) y) to y if x and y have the same base.
3191 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3193 * config/arm/cortex-a57.md: New.
3194 * config/aarch64/aarch64.md: Include it.
3195 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3196 * config/aarch64/aarch64-tune.md: Regenerate.
3198 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
3201 * ccmp.c (expand_ccmp_next): New function.
3202 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3203 and compare insn sequence.
3204 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3205 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3206 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3207 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3208 (*ccmp_ior): Changed to ccmp_ior<mode>.
3209 (cmp<mode>): New pattern.
3210 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3212 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3214 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
3216 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3217 _mm256_bsrli_epi128): New.
3218 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3220 2015-01-15 Jiong Wang <jiong.wang@arm.com>
3222 * expmed.c (store_bit_field_using_insv): Improve warning message.
3223 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3225 2015-01-15 Jiong Wang <jiong.wang@arm.com>
3227 PR rtl-optimization/64011
3228 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3229 there is partial overflow.
3231 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3233 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3235 (nds32_expand_epilogue_v3pop): Likewise.
3236 * config/nds32/nds32.md (sibcall): Define this for sibling call
3238 (sibcall_register): Likewise.
3239 (sibcall_immediate): Likewise.
3240 (sibcall_value): Likewise.
3241 (sibcall_value_register): Likewise.
3242 (sibcall_value_immediate): Likewise.
3243 (sibcall_epilogue): Likewise.
3244 (epilogue): Pass false to indicate this is not a sibcall epilogue.
3245 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3246 (nds32_expand_epilogue_v3pop): Likewise.
3248 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3250 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3251 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3252 (return_internal): New.
3253 (return): Define this named pattern.
3254 (simple_return): Define this named pattern.
3255 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3256 pattern instead of unspec_volatile_func_return.
3257 (nds32_expand_epilogue_v3pop): Likewise.
3258 (nds32_can_use_return_insn): New function.
3260 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3262 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3263 * config/nds32/nds32.md (pop25return): New.
3264 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3265 pop25return pattern.
3267 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3269 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3270 -mforbid-fp-as-gp, and -mex9 options.
3272 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3274 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3275 remove -mgp-direct option.
3277 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3279 * doc/invoke.texi (--param early-inlining-insns): Update default value.
3280 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3282 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3284 * ipa-inline.c (inline_small_functions): Work around hints
3287 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
3290 * doc/invoke.texi (Option Summary): Document new Nios II
3292 (Nios II Options): Likewise.
3293 * config/nios2/nios2.opt: Add -mgpopt= option support.
3294 Modify existing -mgpopt and -mno-gpopt options to be aliases.
3295 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3296 * config/nios2/nios2.c (nios2_option_override): Adjust
3298 (nios2_in_small_data_p): Return true for explicit small data
3299 sections even with -G0.
3300 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3303 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3306 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3308 (inline_call): Fix removal of aliases.
3310 2015-01-15 Jakub Jelinek <jakub@redhat.com>
3312 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3313 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3314 * opts.c (common_handle_option): Add -fsanitize=vptr.
3315 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3316 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3317 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3318 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3319 (ubsan_expand_vptr_ifn): New prototype.
3320 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3321 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3322 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3323 expand_LOOP_VECTORIZED): Make argument nameless, remove
3325 (expand_UBSAN_VPTR): New function.
3326 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3328 (UBSAN_VPTR): New internal function.
3329 * sanopt.c (tree_map_traits): Renamed to ...
3330 (sanopt_tree_map_traits): ... this.
3331 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3332 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3333 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
3334 (maybe_optimize_ubsan_vptr_ifn): New function.
3335 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3336 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
3338 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3339 internal calls like pure functions for aliasing, even when they
3340 have other side-effects that prevent making them ECF_PURE.
3341 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3342 (ubsan_expand_vptr_ifn): New function.
3344 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
3346 PR rtl-optimization/64110
3347 * stmt.c (parse_output_constraint): Process '^' and '$'.
3348 (parse_input_constraint): Ditto.
3349 * lra-constraints.c (process_alt_operands): Process the new
3351 * ira-costs.c (record_reg_classes): Process the new constraint
3353 * genoutput.c (indep_constraints): Add '^' and '$'.
3354 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3355 * doc/md.texi: Add description of the new constraints.
3357 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3358 Bernd Schmidt <bernds@codesourcery.com>
3359 Cesar Philippidis <cesar@codesourcery.com>
3360 James Norris <jnorris@codesourcery.com>
3361 Tom de Vries <tom@codesourcery.com>
3362 Ilmir Usmanov <i.usmanov@samsung.com>
3363 Dmitry Bocharnikov <dmitry.b@samsung.com>
3364 Evgeny Gavrin <e.gavrin@samsung.com>
3365 Jakub Jelinek <jakub@redhat.com>
3367 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3368 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3369 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3371 * builtins.c: Include "gomp-constants.h".
3372 (expand_builtin_acc_on_device): New function.
3373 (expand_builtin, is_inexpensive_builtin): Handle
3374 BUILT_IN_ACC_ON_DEVICE.
3375 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3377 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3379 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3380 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3381 i386/intelmic-offload.h.
3382 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3383 to libgomp and its dependencies.
3384 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3385 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3386 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3387 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3388 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3389 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3390 * doc/generic.texi: Update for OpenACC changes.
3391 * doc/gimple.texi: Likewise.
3392 * doc/invoke.texi: Likewise.
3393 * doc/sourcebuild.texi: Likewise.
3394 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3395 GF_OMP_FOR_KIND_OACC_LOOP.
3396 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3397 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3398 GF_OMP_TARGET_KIND_OACC_UPDATE,
3399 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3401 * gimple.c: Update comments for OpenACC changes.
3402 * gimple.def: Likewise.
3403 * gimple.h: Likewise.
3404 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3405 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3406 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3407 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3408 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3410 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3411 * gimplify.c: Include "gomp-constants.h".
3412 Update comments for OpenACC changes.
3413 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3414 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3415 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3416 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3417 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3418 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3419 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3420 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3421 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3423 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3424 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3425 OMP_CLAUSE_SET_MAP_KIND.
3426 (gimplify_oacc_cache): New function.
3427 (gimplify_omp_for): Handle OACC_LOOP.
3428 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3430 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3431 OACC_EXIT_DATA, OACC_UPDATE.
3432 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3433 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3434 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3435 (gimplify_body): Consider flag_openacc next to flag_openmp.
3436 * lto-streamer-out.c: Include "gomp-constants.h".
3437 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3438 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3439 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3440 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3441 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3442 (BUILT_IN_ACC_ON_DEVICE): New builtins.
3443 * omp-low.c: Include "gomp-constants.h".
3444 Update comments for OpenACC changes.
3445 (struct omp_context): Add reduction_map, gwv_below, gwv_this
3447 (extract_omp_for_data, use_pointer_for_field, install_var_field)
3448 (new_omp_context, delete_omp_context, scan_sharing_clauses)
3449 (create_omp_child_function, scan_omp_for, scan_omp_target)
3450 (check_omp_nesting_restrictions, lower_reduction_clauses)
3451 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3452 Update for OpenACC changes.
3453 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3454 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3455 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3456 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3457 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3458 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
3460 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3461 Handle GF_OMP_FOR_KIND_OACC_LOOP.
3462 (expand_omp_target, lower_omp_target): Handle
3463 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3464 GF_OMP_TARGET_KIND_OACC_UPDATE,
3465 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3466 GF_OMP_TARGET_KIND_OACC_DATA.
3467 (pass_expand_omp::execute, execute_lower_omp)
3468 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3470 (offload_symbol_decl): New variable.
3471 (oacc_get_reduction_array_id, oacc_max_threads)
3472 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3473 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3474 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3475 (oacc_gimple_assign, oacc_initialize_reduction_data)
3476 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3478 (is_targetreg_ctx): Remove function.
3479 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3480 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3481 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3482 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3483 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3484 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3485 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3486 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3487 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3488 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3489 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3490 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3491 * tree-core.h: Update comments for OpenACC changes.
3492 (enum omp_clause_map_kind): Remove.
3493 (struct tree_omp_clause): Change type of map_kind member from enum
3494 omp_clause_map_kind to unsigned char.
3495 * tree-inline.c: Update comments for OpenACC changes.
3496 * tree-nested.c: Likewise. Include "gomp-constants.h".
3497 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3498 (convert_tramp_reference_stmt, convert_gimple_call): Update for
3499 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3500 OMP_CLAUSE_SET_MAP_KIND.
3501 * tree-pretty-print.c: Include "gomp-constants.h".
3502 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3503 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3504 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3505 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3506 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3507 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
3508 instead of OMP_CLAUSE_MAP_*.
3509 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3510 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3511 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3512 * tree-streamer-in.c: Include "gomp-constants.h".
3513 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3514 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
3515 * tree-streamer-out.c: Include "gomp-constants.h".
3516 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3518 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3519 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3520 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3521 * tree.c (omp_clause_num_ops): Update accordingly.
3522 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3524 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3525 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3526 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3527 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3528 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3529 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3530 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3531 (OMP_CLAUSE_SET_MAP_KIND): New macro.
3532 * varpool.c (varpool_node::get_create): Consider flag_openacc next
3534 * config/i386/intelmic-offload.h: New file.
3535 * config/nvptx/offload.h: Likewise.
3537 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3539 * explow.h: Remove duplicate contents.
3540 * dojump.h: Likewise.
3542 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
3544 * arm.c (arm_xgene_tune): Add default initializer for instruction
3547 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3551 * ipa.c (symbol_table::remove_unreachable_nodes):
3552 Do not put abstract origins into boundary.
3554 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
3556 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3557 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3559 2015-01-15 Steve Ellcey <sellcey@mips.com>
3561 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3562 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3563 builtins.def, and chkp-builtins.def.
3565 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
3567 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3570 2015-01-15 Richard Biener <rguenther@suse.de>
3572 PR tree-optimization/61743
3573 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3574 information on PHIs for some simple cases.
3576 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3578 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3580 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3581 * config/arm/arm-cores.def (xgene1): New entry.
3582 * config/arm/arm-tables.opt: Regenerate.
3583 * config/arm/arm-tune.md: Regenerate.
3584 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3586 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3588 * tree-if-conv.c: Include hash-map.h.
3589 (aggressive_if_conv): New variable.
3590 (fold_build_cond_expr): Add simplification of non-zero condition.
3591 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3592 destination block is not always executed.
3593 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3594 than two predecessors if AGGRESSIVE_IF_CONV is true.
3595 (if_convertible_stmt_p): Fix commentary.
3596 (all_preds_critical_p): New function.
3597 (has_pred_critical_p): New function.
3598 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3599 BB can have more than two predecessors and all incoming edges can be
3601 (predicate_bbs): Skip predication for loop exit block, use build2_loc
3602 to compute predicate for true edge.
3603 (find_phi_replacement_condition): Delete this function.
3604 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3605 Allow interchange PHI arguments if EXTENDED is false.
3606 Change check that block containing reduction statement candidate
3607 is predecessor of phi-block since phi may have more than two arguments.
3608 (phi_args_hash_traits): New helper structure.
3609 (struct phi_args_hash_traits): New type.
3610 (phi_args_hash_traits::hash): New function.
3611 (phi_args_hash_traits::equal_keys): New function.
3612 (gen_phi_arg_condition): New function.
3613 (predicate_scalar_phi): Add handling of phi nodes with more than two
3614 arguments, delete COND and TRUE_BB arguments, insert body of
3615 find_phi_replacement_condition to predicate ordinary phi nodes.
3616 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3617 delete call of find_phi_replacement_condition and invoke
3618 predicate_scalar_phi with two arguments.
3619 (insert_gimplified_predicates): Add assert that non-predicated block
3620 don't have statements to insert.
3621 (ifcvt_split_critical_edges): New function.
3622 (ifcvt_split_def_stmt): Likewise.
3623 (ifcvt_walk_pattern_tree): Likewise.
3624 (stmt_is_root_of_bool_pattern): Likewise.
3625 (ifcvt_repair_bool_pattern): Likewise.
3626 (ifcvt_local_dce): Likewise.
3627 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3628 is copy of inner or outer loop force_vectorize field, invoke
3629 ifcvt_split_critical_edges, ifcvt_local_dce and
3630 ifcvt_repair_bool_pattern for aggressive if-conversion.
3632 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
3634 * config/aarch64/aarch64.md: Include xgene1.md.
3635 * config/aarch64/xgene1.md: New file.
3637 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3639 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3640 xgene1 (APM XGene-1) core definition.
3641 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3642 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3643 * doc/invoke.texi: Document -mcpu=xgene1.
3645 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3647 * dojump.h: New header file.
3648 * explow.h: Likewise.
3649 * expr.h: Remove includes.
3650 Move expmed.c prototypes to expmed.h.
3651 Move dojump.c prototypes to dojump.h.
3652 Move alias.c prototypes to alias.h.
3653 Move explow.c prototypes to explow.h.
3654 Move calls.c prototypes to calls.h.
3655 Move emit-rtl.c prototypes to emit-rtl.h.
3656 Move varasm.c prototypes to varasm.h.
3657 Move stmt.c prototypes to stmt.h.
3658 (saved_pending_stack_adjust): Move to dojump.h.
3659 (adjust_address): Move to explow.h.
3660 (adjust_address_nv): Move to emit-rtl.h.
3661 (adjust_bitfield_address): Likewise.
3662 (adjust_bitfield_address_size): Likewise.
3663 (adjust_bitfield_address_nv): Likewise.
3664 (adjust_automodify_address_nv): Likewise.
3665 * explow.c (expr_size): Move to expr.c.
3666 (int_expr_size): Likewise.
3667 (tree_expr_size): Likewise.
3668 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3669 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3670 * genemit.c (main): Generate includes statistics.h, real.h,
3671 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3673 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3674 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3675 explow.h, emit-rtl.h, stmt.h.
3676 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3677 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3678 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3679 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3680 emit-rtl.h, varasm.h, stmt.h.
3681 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3682 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3683 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3684 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3685 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3686 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3687 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3688 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3689 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3690 tm.h tree.h varasm.h vec.h wide-int.h.
3691 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3692 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3693 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3694 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3695 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3696 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3697 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3698 * loop-iv.c: Likewise.
3699 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3700 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3701 statistics.h stmt.h tree.h varasm.h wide-int.h.
3702 * lra-constraints.c: Likewise.
3703 * lra-eliminations.c: Likewise.
3704 * lra-lives.c: Likewise.
3705 * lra-remat.c: Likewise.
3706 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3707 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3708 statistics.h stmt.h tree.h varasm.h wide-int.h.
3709 * hw-doloop.c: Likewise.
3710 * ira-color.c: Likewise.
3711 * ira-emit.c: Likewise.
3712 * loop-doloop.c: Likewise.
3713 * loop-invariant.c: Likewise.
3714 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3715 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3716 statistics.h stmt.h tree.h varasm.h wide-int.h.
3717 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3718 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3719 statistics.h stmt.h tree.h varasm.h wide-int.h.
3720 * combine-stack-adj.c: Likewise.
3723 * ifcvt.c: Likewise.
3724 * ira-costs.c: Likewise.
3726 * lra-coalesce.c: Likewise.
3727 * lra-spills.c: Likewise.
3728 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3729 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3730 stmt.h varasm.h wide-int.h.
3731 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3732 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3734 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3735 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3736 statistics.h stmt.h varasm.h wide-int.h.
3737 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3738 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3739 varasm.h wide-int.h.
3740 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3741 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3742 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3743 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3744 statistics.h stmt.h.
3745 * config/tilepro/tilepro.c: Likewise.
3746 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3747 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3748 * config/pdp11/pdp11.c: Likewise.
3749 * config/xtensa/xtensa.c: Likewise.
3750 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3751 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3753 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3754 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3755 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3756 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3757 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3758 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3759 * rtl-chkp.c: Likewise.
3760 * tree-chkp-opt.c: Likewise.
3761 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3762 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3763 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3764 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3765 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3766 statistics.h stmt.h.
3767 * tree-vect-data-refs.c: Likewise.
3768 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3769 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3770 rtl.h statistics.h stmt.h varasm.h.
3771 * internal-fn.c: Likewise.
3772 * ipa-icf-gimple.c: Likewise.
3773 * lto-section-out.c: Likewise.
3774 * tree-data-ref.c: Likewise.
3775 * tree-nested.c: Likewise.
3776 * tree-outof-ssa.c: Likewise.
3777 * tree-predcom.c: Likewise.
3778 * tree-pretty-print.c: Likewise.
3779 * tree-scalar-evolution.c: Likewise.
3780 * tree-ssa-strlen.c: Likewise.
3781 * tree-vect-loop.c: Likewise.
3782 * tree-vect-patterns.c: Likewise.
3783 * tree-vect-slp.c: Likewise.
3784 * tree-vect-stmts.c: Likewise.
3786 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3787 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3789 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3790 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3791 statistics.h stmt.h varasm.h.
3792 * loop-unroll.c: Likewise.
3793 * ubsan.c: Likewise.
3794 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3795 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3797 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3798 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3799 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3800 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3801 statistics.h stmt.h.
3802 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3803 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3804 statistics.h stmt.h varasm.h.
3805 * gimple-match-head.c: Likewise.
3806 * lto-cgraph.c: Likewise.
3807 * lto-section-in.c: Likewise.
3808 * lto-streamer-in.c: Likewise.
3809 * lto-streamer-out.c: Likewise.
3810 * tree-affine.c: Likewise.
3811 * tree-cfg.c: Likewise.
3812 * tree-cfgcleanup.c: Likewise.
3813 * tree-if-conv.c: Likewise.
3814 * tree-into-ssa.c: Likewise.
3815 * tree-ssa-alias.c: Likewise.
3816 * tree-ssa-copyrename.c: Likewise.
3817 * tree-ssa-dse.c: Likewise.
3818 * tree-ssa-forwprop.c: Likewise.
3819 * tree-ssa-live.c: Likewise.
3820 * tree-ssa-math-opts.c: Likewise.
3821 * tree-ssa-pre.c: Likewise.
3822 * tree-ssa-sccvn.c: Likewise.
3823 * tree-tailcall.c: Likewise.
3824 * tree-vect-generic.c: Likewise.
3825 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3826 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3827 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3828 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3829 * varasm.c: Likewise.
3830 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3831 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3833 * init-regs.c: Likewise.
3835 * omp-low.c: Likewise.
3836 * stack-ptr-mod.c: Likewise.
3837 * tree-ssa-reassoc.c: Likewise.
3838 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3839 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3841 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3842 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3843 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3844 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3845 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3846 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3847 * tree-ssa-phiopt.c: Likewise.
3848 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3849 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3850 * config/fr30/fr30.c: Likewise.
3851 * config/frv/frv.c: Likewise.
3853 * final.c: Likewise.
3854 * optabs.c: Likewise.
3855 * passes.c: Likewise.
3856 * simplify-rtx.c: Likewise.
3858 * toplev.c: Likewise.
3859 * var-tracking.c: Likewise.
3860 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3861 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3862 * lower-subreg.c: Likewise.
3863 * postreload-gcse.c: Likewise.
3865 * reginfo.c: Likewise.
3866 * store-motion.c: Likewise.
3867 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3868 fixed-value.h hashtab.h real.h stmt.h varasm.h.
3869 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3870 fixed-value.h hashtab.h statistics.h stmt.h.
3871 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3872 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3873 * except.c: Likewise.
3874 * explow.c: Likewise.
3875 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3876 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3878 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3879 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3880 * tree-ssa-structalias.c: Likewise.
3881 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3882 fixed-value.h insn-config.h real.h statistics.h.
3883 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3884 fixed-value.h insn-config.h real.h statistics.h stmt.h.
3885 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3886 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3887 * cfgbuild.c: Likewise.
3888 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3889 fixed-value.h real.h rtl.h statistics.h stmt.h.
3890 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3891 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3892 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3893 fixed-value.h real.h statistics.h stmt.h.
3894 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3895 fixed-value.h real.h statistics.h stmt.h varasm.h.
3896 * cprop.c: Likewise.
3897 * modulo-sched.c: Likewise.
3898 * postreload.c: Likewise.
3899 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3900 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3901 statistics.h stmt.h varasm.h.
3902 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3903 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3904 rtl.h statistics.h stmt.h varasm.h.
3905 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3906 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3908 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3909 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3911 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3912 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3914 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3915 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3916 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3917 function.h real.h statistics.h stmt.h varasm.h.
3918 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3919 insn-config.h real.h statistics.h stmt.h.
3920 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3921 statistics.h stmt.h.
3922 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3923 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3924 statistics.h stmt.h varasm.h.
3925 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3926 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3927 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3928 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3929 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3930 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3931 statistics.h stmt.h varasm.h.
3932 * ipa-polymorphic-call.c: Likewise.
3933 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3934 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3935 statistics.h stmt.h.
3936 * config/c6x/c6x.c: Likewise.
3937 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3938 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3939 statistics.h stmt.h varasm.h.
3940 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3941 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3943 * ipa-split.c: Likewise.
3944 * tree-eh.c: Likewise.
3945 * tree-ssa-dce.c: Likewise.
3946 * tree-ssa-loop-niter.c: Likewise.
3947 * tree-vrp.c: Likewise.
3948 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3949 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3951 * config/nds32/nds32-fp-as-gp.c: Likewise.
3952 * config/nds32/nds32-intrinsic.c: Likewise.
3953 * config/nds32/nds32-isr.c: Likewise.
3954 * config/nds32/nds32-md-auxiliary.c: Likewise.
3955 * config/nds32/nds32-memory-manipulation.c: Likewise.
3956 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3957 * config/nds32/nds32-predicates.c: Likewise.
3958 * config/nds32/nds32.c: Likewise.
3959 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3960 fixed-value.h hashtab.h real.h statistics.h.
3961 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3962 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3963 * config/arm/arm.c: Likewise.
3964 * config/avr/avr.c: Likewise.
3965 * config/bfin/bfin.c: Likewise.
3966 * config/h8300/h8300.c: Likewise.
3967 * config/i386/i386.c: Likewise.
3968 * config/ia64/ia64.c: Likewise.
3969 * config/iq2000/iq2000.c: Likewise.
3970 * config/m32c/m32c.c: Likewise.
3971 * config/m32r/m32r.c: Likewise.
3972 * config/m68k/m68k.c: Likewise.
3973 * config/mcore/mcore.c: Likewise.
3974 * config/mep/mep.c: Likewise.
3975 * config/mips/mips.c: Likewise.
3976 * config/mn10300/mn10300.c: Likewise.
3977 * config/moxie/moxie.c: Likewise.
3978 * config/pa/pa.c: Likewise.
3979 * config/rl78/rl78.c: Likewise.
3980 * config/rx/rx.c: Likewise.
3981 * config/s390/s390.c: Likewise.
3982 * config/sh/sh.c: Likewise.
3983 * config/sparc/sparc.c: Likewise.
3984 * config/spu/spu.c: Likewise.
3985 * config/stormy16/stormy16.c: Likewise.
3986 * config/v850/v850.c: Likewise.
3987 * config/vax/vax.c: Likewise.
3988 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3989 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3990 * config/msp430/msp430.c: Likewise.
3991 * predict.c: Likewise.
3992 * value-prof.c: Likewise.
3993 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3994 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3995 * config/microblaze/microblaze.c: Likewise.
3996 * config/nios2/nios2.c: Likewise.
3997 * config/rs6000/rs6000.c: Likewise.
3998 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3999 insn-config.h real.h rtl.h statistics.h stmt.h.
4000 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4001 insn-config.h real.h statistics.h stmt.h.
4002 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4003 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4004 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4005 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4006 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4007 fixed-value.h real.h statistics.h stmt.h.
4008 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4009 fixed-value.h statistics.h stmt.h.
4010 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4013 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4015 * gengtype.c (create_user_defined_type): Workaround
4016 -Wmaybe-uninitialized false positives.
4017 * cse.c (fold_rtx): Likewise.
4018 * loop-invariant.c (gain_for_invariant): Likewise.
4020 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
4022 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4023 set the memory attributes in all cases but clear MEM_EXPR if need be.
4025 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4027 PR tree-optimization/64434
4028 * cfgexpand.c (reorder_operands): New function.
4029 (expand_gimple_basic_block): Insert call of reorder_operands if
4032 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
4034 * config/mips/micromips.md (*swp): Remove explicit parallel.
4035 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4036 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4037 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4038 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4039 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4040 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4041 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4042 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4043 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4044 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4045 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4046 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4047 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4048 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4049 (mips_wrdsp): Likewise.
4050 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4052 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4053 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4054 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4055 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4056 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4057 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4058 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4059 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4060 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4062 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4064 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4065 (mips_print_operand): Support 'y' to print exact log2 in decimal
4067 * config/mips/mips.h (ISA_HAS_LSA): New define.
4068 (ISA_HAS_DLSA): Likewise.
4069 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4070 * config/mips/predicates.md (const_immlsa_operand): New predicate.
4072 2015-01-15 Martin Liska <mliska@suse.cz>
4075 * optc-save-gen.awk: Add support for array types.
4077 2015-01-15 Richard Biener <rguenther@suse.de>
4080 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4081 for MEM_REF access functions with the same base can never partially
4084 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4086 * common.opt: New option -fstack-protector-explicit.
4087 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4088 (stack_protect_decl_phase): Handle stack_protect attribute for
4089 explicit stack protection requests.
4090 (expand_used_vars): Similarly.
4091 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4092 * doc/extend.texi: Add documentation for "stack_protect" attribute.
4093 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4095 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
4098 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4100 (sh_extending_set_of_reg): New struct.
4101 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4102 sh_remove_reg_dead_or_unused_notes): New Declarations.
4103 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4104 sh_find_extending_set_of_reg, sh_split_tst_subregs,
4105 sh_extending_set_of_reg::use_as_extended_reg): New functions.
4106 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4107 convert to insn_and_split and use new function sh_split_tst_subregs.
4109 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
4111 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4113 (Optimization Options): Move -fuse-ld documentation to...
4114 (Link Options): ...here.
4116 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4118 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4120 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4121 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4122 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4123 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4124 instead of ZR for the memory operand of LL/SC.
4125 (compare_and_swap_12, sync_add<mode>): Likewise.
4126 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4127 (sync_new_<optab>_12, sync_nand_12): Likewise.
4128 (sync_old_nand_12, sync_new_nand_12): Likewise.
4129 (sync_sub<mode>, sync_old_add<mode>): Likewise.
4130 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4131 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4132 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4133 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4134 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4135 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4136 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4137 * doc/md.texi (ZC): Update description.
4139 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4141 * builtins.c (expand_builtin_atomic_exchange): Remove error when
4142 memory model is CONSUME.
4143 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4144 expand_builtin_atomic_store): Change invalid memory model errors to
4146 (expand_builtin_atomic_clear): Change invalid model errors to warnings
4147 and issue warning for CONSUME.
4149 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
4151 * lto-cgraph: Update function comments for
4152 lto_symtab_encoder_encode_*.
4154 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4156 * Makefile.in (site.exp): Do not set ENABLE_LTO.
4158 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4160 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4161 * lto-cgraph.c (select_what_to_stream): Remove argument, use
4162 lto_stream_offload_p instead.
4163 * lto-streamer.h (select_what_to_stream): Remove argument.
4164 * passes.c (ipa_write_summaries): Likewise.
4165 * tree-pass.h (ipa_write_summaries): Likewise.
4167 2015-01-14 Richard Biener <rguenther@suse.de>
4169 PR tree-optimization/59354
4170 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4171 groups larger than the slp group size as having gaps.
4173 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4176 * builtins.c (get_memmodel): Promote consume to acquire always.
4178 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4181 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
4184 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4187 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4189 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4190 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4191 AVX512VBMI, as it implies AVX512BW.
4193 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4196 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4197 (vec_unpacks_hi_v16sf): Ditto.
4199 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4201 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4204 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4206 * doc/invoke.texi (mapcs): Mention deprecation.
4207 (mapcs-frame): Likewise.
4209 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4212 * config/arm/arm.c (callee_saved_reg_p): Define.
4213 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4214 register is callee saved instead of !call_used_regs[reg].
4215 (thumb1_compute_save_reg_mask): Likewise.
4217 2015-01-14 Hale Wang <hale.wang@arm.com>
4219 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4222 2015-01-14 Richard Biener <rguenther@suse.de>
4225 * tree-inline.c (insert_debug_decl_map): Check destination
4226 function MAY_HAVE_DEBUG_STMTS.
4227 (insert_init_debug_bind): Likewise.
4228 (insert_init_stmt): Remove redundant check.
4229 (remap_gimple_stmt): Drop debug stmts if the destination
4230 function has var-tracking assignments disabled.
4232 2015-01-14 Martin Liska <mliska@suse.cz>
4234 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4235 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4237 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4240 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4241 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4243 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4245 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4246 level from an ARCH; do not inject the default.
4247 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4248 MIPS_ISA_LEVEL_SPEC.
4249 (MIPS_ISA_NAN2008_SPEC): Update comment.
4250 (BASE_DRIVER_SELF_SPECS): Likewise.
4251 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4252 MIPS_DEFAULT_ISA_LEVEL_SPEC.
4253 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4254 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4255 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
4257 2015-01-14 Richard Biener <rguenther@suse.de>
4259 PR tree-optimization/64493
4260 PR tree-optimization/64495
4261 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4262 assign the proper vectorized PHI to the inner loop exit PHIs.
4264 2015-01-14 Joey Ye <joey.ye@arm.com>
4266 * config/arm/arm.c (arm_compute_save_reg_mask):
4267 Do not save lr in case of tail call.
4268 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4270 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
4272 * tree-vrp.c (check_array_ref): Emit more warnings
4273 for warn_array_bounds >= 2.
4274 * common.opt: New option -Warray-bounds=.
4275 * doc/invoke.texi: Document -Warray-bounds=.
4277 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
4279 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4280 (mforbid-fp-as-gp): Remove.
4282 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4283 (nds32_symbol_load_store_p): Remove.
4284 (nds32_fp_as_gp_check_available): Clean up implementation.
4285 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4287 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4288 fp-as-gp and ex9 cases.
4290 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4292 * tree-profile.c (init_ic_make_global_vars): Drop workaround
4293 for bintuils bug 14342.
4294 (init_ic_make_global_vars): Likewise.
4295 (gimple_init_edge_profiler): Likewise.
4296 (gimple_gen_ic_func_profiler): Likewise.
4298 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4300 * ipa-inline.c (inline_small_functions): Swap the operands in
4303 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4306 * ipa-inline-analysis.c (node_growth_cache): Remove.
4307 (initialize_growth_caches): Do not initialize it.
4308 (free_growth_caches): Do not free it.
4309 (do_estimate_growth): Rename to ...
4310 (estimate_growth): ... this one; drop growth cache code.
4311 (growth_likely_positive): Always go the heuristics way.
4312 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4313 (reset_edge_caches): Do not reset node growth.
4314 (heap_edge_removal_hook): Do not maintain cache.
4315 (inline_small_functions): Likewise; strenghten sanity check.
4316 (ipa_inline): Do not maintain caches.
4317 * ipa-inline.h (node_growth_cache): Remove.
4318 (do_estimate_growth): Remove to ...
4319 (estimate_growth): this one; remove inline version.
4320 (reset_node_growth_cache): Remove.
4322 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4325 * ipa-inline.c (inline_small_functions): Update callee keys after
4326 resolving speculation
4327 (inline_small_functions): Always check monotonicity of the queue.
4329 2015-01-13 Marek Polacek <polacek@redhat.com>
4332 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4334 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4336 PR rtl-optimization/64286
4337 * ree.c (combine_reaching_defs): Move part of comment earlier,
4338 remove !SCALAR_INT_MODE_P check.
4339 (add_removable_extension): Don't add vector mode
4340 extensions if all uses of the source register aren't the same
4343 2015-01-13 Renlin Li <renlin.li@arm.com>
4345 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4346 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4348 2015-01-13 Martin Liska <mliska@suse.cz>
4350 * ipa-icf.c (sem_function::equals_private): Call new functions
4351 cl_target_option_print_diff and cl_optimization_print_diff.
4352 * optc-save-gen.awk (cl_target_option_print_diff): New function.
4353 (cl_optimization_print_diff): Likewise.
4354 * opth-gen.awk: Likewise.
4356 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
4358 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4359 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4360 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4361 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4362 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4363 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4365 2015-01-13 Andrew Pinski <apinski@cavium.com>
4367 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4368 instead of src mode.
4370 2015-01-13 Richard Biener <rguenther@suse.de>
4373 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4376 2015-01-13 Andrew Pinski <apinski@cavium.com>
4378 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4380 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4382 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4385 * cfgexpand.c (expand_computed_goto): Don't call
4386 convert_memory_address here.
4388 2015-01-13 Richard Biener <rguenther@suse.de>
4390 PR tree-optimization/64406
4391 * tree-loop-distibution.c (pass_loop_distribution::execute):
4392 Reset the SCEV hashtable if we distributed anything.
4394 2015-01-13 Richard Biener <rguenther@suse.de>
4396 PR tree-optimization/64404
4397 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4398 SLP types for CSEd loads.
4400 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4402 PR tree-optimization/64436
4403 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4404 merge of two symbolic numbers for a bitwise OR to ...
4405 (perform_symbolic_merge): This. Also fix computation of the range and
4406 end of the symbolic number corresponding to the result of a bitwise OR.
4408 2015-01-13 Richard Biener <rguenther@suse.de>
4410 PR tree-optimization/64568
4411 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4412 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4414 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4416 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4417 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4419 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4421 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4422 target-specific symbol_ref flag.
4423 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4424 resides in rodata section.
4425 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4426 (nds32_encode_section_info): New function.
4428 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4430 * config/nds32/nds32.md (call): Use pseudo instruction bal which
4431 clobbers TA_REGNUM if large code model is specified.
4432 (call_register): Likewise.
4433 (call_immediate): Likewise.
4434 (call_value): Likewise.
4435 (call_value_register): Likewise.
4436 (call_value_immediate): Likewise.
4438 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4440 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4441 (TARGET_CMODEL_MEDIUM): New macro.
4442 (TARGET_CMODEL_LARGE): New macro.
4443 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4444 code model setting in assembly code.
4446 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4448 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4449 Remove MASK_GP_DIRECT flag.
4450 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4451 one of the multilib default options.
4452 * config/nds32/nds32.opt (mgp-direct): Remove.
4453 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4454 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
4456 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4458 * config/nds32/nds32.opt (mcmodel): Add new option.
4459 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4460 to describe code model.
4462 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
4465 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4467 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
4469 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4470 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4471 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4472 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4473 __builtin_sh_set_fpscr.
4475 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4477 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4478 after a funtion name just to indicate it is a function.
4479 ([-fsanitize-undefined-trap-on-error]): Likewise.
4480 ([-fdbg-cnt=]): Likewise.
4481 ([-mmemcpy]): Likewise.
4482 ([-mflush-func]): Likewise.
4483 ([-msynci]): Likewise.
4485 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4487 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4490 2015-01-12 Jakub Jelinek <jakub@redhat.com>
4492 PR tree-optimization/64563
4493 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4494 instead of != VR_VARYING.
4497 * config/i386/i386.c (ix86_expand_prologue): Add
4498 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4500 PR tree-optimization/64454
4501 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4502 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4503 for signed or [0, op1 - 1] for unsigned modulo.
4504 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4505 even if op1 does not satisfy integer_pow2p.
4508 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4510 2015-01-12 Jeff Law <law@redhat.com>
4513 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4514 (trunchiqi2, truncsihi2): Similarly.
4516 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4517 rather than calling F.
4519 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4521 * tsan.c (instrument_expr): Use force_gimple_operand.
4522 Use may_be_nonaddressable_p instead of is_gimple_addressable.
4524 2015-01-12 Richard Biener <rguenther@suse.de>
4526 PR tree-optimization/64530
4527 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4530 2015-01-12 Richard Biener <rguenther@suse.de>
4533 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4536 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4538 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4539 Cortex-A17 tuning parameters.
4540 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4542 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4544 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4545 * config/arm/arm.c (arm_macro_fusion_p): New function.
4546 (arm_macro_fusion_pair_p): Likewise.
4547 (TARGET_SCHED_MACRO_FUSION_P): Define.
4548 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4549 (ARM_FUSE_NOTHING): Likewise.
4550 (ARM_FUSE_MOVW_MOVT): Likewise.
4551 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4552 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4553 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4554 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4555 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4556 arm_cortex_a5_tune): Specify fuseable_ops value.
4558 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
4561 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4562 test for PIE with copy reloc.
4563 * configure: Regenerated.
4565 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4569 (arm_tls_descseq_addr): Likewise.
4570 (arm_gen_movmemqi): Likewise.
4571 (arm_expand_epilogue_apcs_frame): Likewise.
4572 (arm_expand_epilogue): Likewise.
4573 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
4576 2015-01-12 Martin Liska <mliska@suse.cz>
4579 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4580 volatility for correct operands.
4582 2015-01-12 Martin Liska <mliska@suse.cz>
4584 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4585 that a function is not leaf.
4586 (sem_function::compare_polymorphic_p): Likewise.
4588 2015-01-12 Martin Liska <mliska@suse.cz>
4590 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4591 that a function is not leaf.
4592 (sem_function::compare_polymorphic_p): Likewise.
4594 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4596 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4597 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4598 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4599 fold-const.h, tree-check.h.
4601 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4605 * ipa-inline.c (compute_uninlined_call_time,
4606 compute_inlined_call_time): Use counts for extra precision when
4608 (big_speedup_p): Fix formating.
4609 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4610 (relative_time_benefit): Remove.
4611 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4612 merge guessed and read profile paths.
4613 (inline_small_functions): Count only !optimize_size functions into
4614 initial size; be more lax about sanity check when profile is used;
4615 be sure to update inlined function profile when profile is read.
4617 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4620 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4621 cost when edge becomes direct.
4622 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4623 is resolved or when introducing new speculation.
4625 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
4629 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4630 '||' to fix typo issue.
4632 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4633 accept and return NULL.
4635 2015-01-12 Martin Liska <mliska@suse.cz>
4637 * cgraph.c (cgraph_edge::remove_callee): Move function to header
4638 file for being inlined.
4639 (cgraph_set_edge_callee): Delete.
4640 (cgraph_edge::redirect_callee): Move function to header file
4642 (cgraph_edge::make_direct): Use new function.
4643 (cgraph_edge::dump_edge_flags): New function created from
4644 static dump_edge_flags function.
4645 (cgraph_node::dump): Use new function.
4646 (cgraph_edge::verify_count_and_frequency): New function created
4647 from verify_edge_count_and_frequency.
4648 (cgraph_edge::verify_corresponds_to_fndecl): New function created
4649 from verify_edge_corresponds_to_fndecl.
4650 (verify_edge_corresponds_to_fndecl): Delete.
4651 (cgraph_node::verify_node): Use new function.
4652 * cgraph.h (cgraph_edge::set_callee): New function.
4653 (cgraph_edge::dump_edge_flags): Likewise.
4654 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4656 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
4658 * ipa-utils.c (estimate_function_body_sizes): Do not
4659 free node params when called late with early=true.
4661 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
4663 * doc/md.texi (Instruction Patterns): Rewrite text for
4665 (Example): Likewise.
4667 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
4669 * doc/invoke.texi (Option Summary): Break long lines.
4670 [(-fdiagnostics-color)]: Put long literal in @smallexample
4672 [(-fsanitize-recover)]: Likewise.
4673 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4674 [(-ffast-math)]: Likewise.
4675 [(--param max-inline-insns-recursive)]: Likewise.
4676 [(--param max-inline-recursive-depth)]: Likewise.
4677 [(-mno-text-section-literals)]: Likewise.
4679 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4681 * doc/install.texi: Update for libgomp being renamed from "GNU
4682 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4684 * doc/sourcebuild.texi: Likewise.
4686 2015-01-10 Anthony Green <green@moxielogic.com>
4688 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4689 mul.x availability for moxiebox configuration.
4691 2015-01-09 Anthony Green <green@moxielogic.com>
4693 * config/moxie/moxie.md: Tabify assembly output.
4695 2015-01-09 Anthony Green <green@moxielogic.com>
4697 * config/moxie/moxie.md (CC_REG): Correct register definition.
4699 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4701 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4702 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4705 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4707 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4709 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4710 Jakub Jelinek <jakub@redhat.com>
4713 * lto-streamer.h (lto_stream_offload_p): New declaration.
4714 * lto-streamer.c (lto_stream_offload_p): New variable.
4715 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4716 at the same time as section_name_prefix.
4717 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4718 if lto_stream_offload_p.
4719 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4720 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4721 (write_ts_function_decl_tree_pointers): Don't
4722 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4723 * tree-streamer-in.c (unpack_value_fields): Don't stream
4724 TREE_TARGET_OPTION in if ACCEL_COMPILER.
4725 (lto_input_ts_function_decl_tree_pointers): Don't stream
4726 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4727 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4728 instead of section_name_prefix string comparisons.
4730 2015-01-09 Jakub Jelinek <jakub@redhat.com>
4732 PR rtl-optimization/64536
4733 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4736 2015-01-09 Michael Collison <michael.collison@linaro.org>
4738 PR tree-optimization/64322
4739 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4740 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4742 2015-01-09 Tom de Vries <tom@codesourcery.com>
4744 PR rtl-optimization/64539
4745 * regcprop.c (kill_clobbered_values): Factor out of ...
4746 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
4747 instead of note_stores with kill_clobbered_value.
4749 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4751 * ginclude/unwind-arm-common.h: Revert previous commit.
4753 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4755 * config.gcc (arm*-*-freebsd*): New configuration.
4756 * config/arm/freebsd.h: New file.
4757 * config.host: Add extra components for arm*-*-freebsd*.
4758 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4759 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4761 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4763 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4765 * config/rs6000/t-rtems: Add e6500 multilibs.
4767 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4769 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4772 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4774 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4775 MULTILIB_EXCEPTIONS.
4777 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4779 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4780 MULTILIB_EXCEPTIONS.
4782 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4784 * config/arm/t-rtems-eabi: Rename to...
4785 * config/arm/t-rtems: ...this.
4786 * config/arm/rtems-eabi.h: Rename to...
4787 * config/arm/rtems.h: ...this.
4788 * config.gcc (arm*-*-rtems*): Reflect changes above.
4790 2015-01-09 Richard Biener <rguenther@suse.de>
4792 PR tree-optimization/64410
4793 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4795 (execute_update_addresses_taken): Deal with that.
4796 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4797 loads/stores for complex variables.
4799 2015-01-09 Martin Liska <mliska@suse.cz>
4801 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4803 (func_checker::compare_memory_operand): New function.
4804 (func_checker::compare_operand): Split case to newly
4806 (func_checker::compare_cst_or_decl): New function.
4807 (func_checker::compare_gimple_call): Identify
4809 (func_checker::compare_gimple_assign): Likewise.
4810 * ipa-icf-gimple.h: New function.
4812 2015-01-09 Martin Liska <mliska@suse.cz>
4815 * sreal.c (sreal::dump): Change unsigned format to signed for
4817 (sreal::to_double): Replace exp2 with scalbln.
4819 2015-01-09 Martin Liska <mliska@suse.cz>
4821 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4822 * ipa-icf.c (sem_function::equals_private): Add support for target and
4823 (sem_item_optimizer::merge_classes): Remove redundant function
4824 optimization flags comparison.
4825 * tree.h (target_opts_for_fn): New function.
4827 2015-01-09 Tom de Vries <tom@codesourcery.com>
4829 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4831 2015-01-09 Kito Cheng <kito@0xlab.org>
4833 PR rtl-optimization/64348
4834 * lra-constraints.c (split_reg): Fix caller-save store/restore
4835 instruction generation.
4837 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
4839 PR gcov-profile/61790
4840 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4841 long long. Fallback to int64_t if host doesn't have long long and
4842 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
4844 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4846 PR tree-optimization/63989
4847 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4849 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4850 (get_stridx): If we don't have a record for certain SSA_NAME,
4851 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4852 constant offset, call get_stridx_plus_constant.
4853 (get_stridx_plus_constant): New function.
4854 (zero_length_string): Don't use get_stridx here.
4858 * dse.c (struct insn_info): Mention frame_read set also
4859 before reload for tail calls on some targets.
4860 (scan_insn): Revert 2014-12-22 change. Set frame_read
4861 also before reload for tail calls if
4862 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
4863 instead of add_non_frame_wild_read for non-const/memset
4864 tail calls after reload.
4866 2015-01-08 Jason Merrill <jason@redhat.com>
4868 * ubsan.c (do_ubsan_in_current_function): New.
4869 (pass_ubsan::gate): Use it.
4870 * ubsan.h: Declare it.
4871 * convert.c (convert_to_integer): Use it.
4873 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4876 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4877 compare_code when it is unconditionally overwritten afterwards.
4878 Use ix86_reverse_condition instead of reverse_condition. Don't
4879 change code if *reverse_condition* returned UNKNOWN and don't
4880 swap ct/cf and negate diff in that case.
4882 2015-01-08 Mike Stump <mikestump@comcast.net>
4884 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4885 (pass_tsan_O0::gate): Likewise.
4886 * extend.texi (Function Attributes): Add no_sanitize_thread
4889 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
4891 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4892 for registering builtins.
4893 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4894 add -fopenmp to the argv_obstack used when invoking
4897 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4898 add "-m32" or "-m64" to argv_obstack.
4899 (generate_host_descr_file): Likewise, when invoking host_compiler.
4900 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4903 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4905 * config/sh/sh-mem.cc: Use constant as second operand when emitting
4908 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4911 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4912 constant load if constant operand fits into I08.
4914 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4917 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4918 and TREE_THIS_VOLATILE for MEM_REFs.
4919 (build5_stat): Fix up initialization of TREE_READONLY and
4920 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4922 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
4925 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4926 of r for the second alternative of the destination operand.
4928 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
4931 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4933 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4935 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4937 ([-fivar-visibility], [-fvisibility]): Likewise.
4939 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4941 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4942 the file where @code, @command, etc is more appropriate.
4944 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
4946 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4947 of -mrecip= documentation.
4949 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4952 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4953 correct reload handler if -m32 -mpowerpc64 is used.
4955 2015-01-06 Tom de Vries <tom@codesourcery.com>
4957 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4959 2015-01-08 Christian Bruel <christian.bruel@st.com>
4962 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4964 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4966 PR tree-optimization/63259
4967 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4968 if optab exists for 16bit byteswap.
4970 2015-01-06 Jakub Jelinek <jakub@redhat.com>
4972 * opts.c (common_handle_option): Add support for
4973 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4974 * doc/invoke.texi: Document -fno-sanitize=all,
4975 -f{,no-}sanitize-recover=all. Document that
4976 -fsanitize=float-cast-overflow is not enabled
4977 by -fsanitize=undefined. Fix up documentation
4978 of -f{,no-}sanitize-recover.
4980 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4982 * config.gcc: Add Visium support.
4983 * configure.ac: Likewise.
4984 * configure: Regenerate.
4985 * doc/extend.texi (interrupt attribute): Add Visium.
4986 * doc/invoke.texi: Document Visium options.
4987 * doc/install.texi: Document Visium target.
4988 * doc/md.texi: Document Visium constraints.
4989 * common/config/visium: New directory.
4990 * config/visium: Likewise.
4992 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4994 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4995 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4997 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4999 * combine.c (combine_validate_cost): Do not count the cost of a
5000 split I2 twice. Do not display it twice in the dump, either.
5002 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5004 Revert parts of r219199.
5005 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5007 ([-Wtraditional]): Restore markup on <limits.h>.
5009 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5012 * doc/invoke.texi: Document -Wsuggest-override.
5014 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
5016 PR rtl-optimization/64287
5017 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5018 (process_options): Disable flag_ipa_ra if profiling.
5020 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5022 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5024 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
5026 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5027 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5028 put under #if TARGET_LOOPS guard.
5030 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
5032 * config/i386/i386.c (output_387_binary_op): Use std::swap.
5034 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
5036 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5037 * rtl.h (refers_to_regno_p): Add overload.
5039 * bt-load.c: Likewise.
5040 * combine.c: Likewise.
5041 * df-scan.c: Likewise.
5042 * sched-deps.c: Likewise.
5043 * config/s390/s390.c: Likewise.
5044 * config/m32r/m32r.c: Likewise.
5045 * config/rs6000/spe.md: Likewise.
5046 * config/rs6000/rs6000.c: Likewise.
5047 * config/pa/pa.c: Likewise.
5048 * config/stormy16/stormy16.c: Likewise.
5049 * config/cris/cris.c: Likewise.
5050 * config/arc/arc.md: Likewise.
5051 * config/arc/arc.c: Likewise.
5052 * config/sh/sh.md: Likewise.
5053 * config/sh/sh.c: Likewise.
5054 * config/frv/frv.c: Likewise.
5056 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5059 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5060 call as cleanup of the whole body.
5061 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5062 * tsan.c (replace_func_exit): New function.
5063 (instrument_func_exit): Moved earlier.
5064 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5065 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5067 (tsan_pass): Don't call instrument_func_exit.
5068 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5069 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5073 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5074 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5075 it to libubsan handler instead of EXPR. Fold comparisons earlier,
5076 if the result is integer_zerop, return NULL_TREE.
5077 * convert.c (convert_to_integer): Pass expr as ARG.
5079 PR tree-optimization/64465
5080 * tree-inline.c (redirect_all_calls): During inlining
5081 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5082 changed the stmt to a non-throwing call.
5084 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5086 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5087 etc markup throughout the file.
5089 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5091 Enable experimental TSAN support for Ada.
5092 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5094 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5096 PR tree-optimization/64494
5097 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5098 clear SSA_NAME_ANTI_RANGE_P flag.
5100 2015-01-05 Marek Polacek <polacek@redhat.com>
5102 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5104 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5106 Update copyright years.
5108 * gcc.c (process_command): Update copyright notice dates.
5109 * gcov-dump.c: Ditto.
5111 * doc/cpp.texi: Bump @copying's copyright year.
5112 * doc/cppinternals.texi: Ditto.
5113 * doc/gcc.texi: Ditto.
5114 * doc/gccint.texi: Ditto.
5115 * doc/gcov.texi: Ditto.
5116 * doc/install.texi: Ditto.
5117 * doc/invoke.texi: Ditto.
5119 * auto-profile.c, auto-profile.h: Fix up Copyright line.
5121 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
5123 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5125 ([-fvtable-verify], [-fvtv-debug]): Likewise.
5126 ([-Wabi]): Likewise.
5127 ([-fmessage-length]): Likewise.
5128 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5129 ([-Wno-discarded-qualifiers]): Likewise.
5130 ([-Wnodiscarded-array-qualifiers]): Likewise.
5131 ([-Wno-virtual-move-assign]): Likewise.
5132 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5133 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5134 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5135 ([-fsanitize-undefined-trap-on-error]): Likewise.
5136 ([-floop-interchange]): Likewise.
5137 ([-ftree-coalesce-inlined-vars]): Likewise.
5138 ([-fvect-cost-model]): Likewise.
5139 ([-flto]): Likewise.
5140 ([--param]): Likewise.
5141 (Spec Files): Likewise.
5142 ([-mstrict-align]): Likewise.
5143 ([-mfix-cortex-a53-835769]): Likewise.
5144 ([-march], [-mtune]): Likewise.
5145 ([-mpic-register]): Likewise.
5146 ([-munaligned-access]): Likewise.
5147 ([-msp8]): Likewise.
5148 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5149 (AVR Built-in Macros): Likewise.
5150 ([-mpreferred-stack-boundary]): Likewise.
5151 ([-mtune-crtl]): Likewise.
5152 ([-mashf]): Likewise.
5153 ([-mmcu=]): Likewise.
5154 ([-minrt]): Likewise.
5155 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5156 ([-mupper-regs]): Likewise.
5157 ([-matomic-model]): Likewise.
5158 ([-mdiv]): Likewise.
5159 ([-mzdcbranch]): Likewise.
5160 ([-mdisable-callt]): Likewise.
5161 ([-msoft-float]): Likewise.
5162 ([-m8byte-align]): Likewise.
5163 ([-fstack-reuse]): Likewise.
5165 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5167 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5168 Fix markup, light copy-editing.
5169 ([-fauto-profile]): Rewrite to fix formatting and content
5172 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5174 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5175 Copy-edit description.
5176 ([-fisolate-erroneous-paths-attribute]): Likewise.
5177 * common.opt (fisolate-erroneous-paths-dereference):
5178 Copy-edit description.
5179 (fisolate-erroneous-paths-attribute): Likewise.
5181 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5183 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5186 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5188 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5189 ([-fvtv-debug]): Likewise.
5190 ([-Wc++-compat]): Likewise.
5191 ([-Wc++11-compat]): Likewise.
5192 ([-Wc++14-compat]): Likewise.
5193 ([-Wno-sized-deallocation]): Likewise.
5194 ([-femit-class-debug-always]): Likewise.
5195 ([-femit-struct-debug-detailed]): Likewise.
5196 ([-fno-keep-inline-dllexport]): Likewise.
5197 ([-fira-algorithm]): Likewise.
5198 ([-fira-region]): Likewise.
5199 ([-flra-remat]): Likewise.
5200 ([-fipa-ra]): Likewise.
5201 ([-fhoist-adjacent-loads]): Likewise.
5202 ([-fisolate-erroneous-paths-dereference]): Likewise.
5203 ([-fisolate-erroneous-paths-attribute]): Likewise.
5204 ([-ftree-switch-conversion]): Likewise.
5205 ([-ftree-tail-merge]): Likewise.
5206 ([-ftree-loop-if-convert]): Likewise.
5207 ([-ftree-loop-if-convert-stores]): Likewise.
5208 ([-ftree-loop-distribution]): Likewise.
5209 ([-ftree-loop-distribute-patterns]): Likewise.
5210 ([-flto-compression-level]): Likewise.
5211 ([-flto-report]): Likewise.
5212 ([-flto-report-wpa]): Likewise.
5213 ([-fuse-linker-plugin]): Likewise.
5214 ([-mfix-cortex-a53-835769]): Likewise.
5215 ([-mno-fix-cortex-a53-835769]): Likewise.
5216 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5217 explicit listing; add a note to the discussion indicating they
5218 exist. Reorder table to group similar options. Add missing
5219 @opindex entries. Add @need commands throughout the table to
5220 allow it to be split across multiple pages.
5221 ([-m8bit-idiv]): Fix @opindex.
5222 ([-mavx256-split-unaligned-load]): Likewise.
5223 ([-mavx256-split-unaligned-store]): Likewise.
5224 ([-mstack-protector-guard]): Likewise.
5225 ([-mcpu=]): Likewise.
5226 ([-mcpu]): Likewise.
5227 ([-mpointer-size=]): Likewise.
5229 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
5231 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5232 instead of `m' constraint. Likewise for unnamed movb comparison
5233 patterns using reg_before_reload_operand predicate.
5234 * config/pa/predicates.md (reg_before_reload_operand): Tighten
5235 predicate to reject register index and LO_SUM DLT memory forms
5238 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5240 * doc/invoke.texi (Option Summary): Fix spelling of
5241 -fdevirtualize-at-ltrans.
5242 ([-fdevirtualize]): Fix markup.
5243 ([-fdevirtualize-speculatively]): Fix typo.
5244 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
5246 * common.opt (fdevirtualize-at-ltrans): Likewise.
5247 * ipa-devirt.c: Fix typos in comments throughout the file.
5248 (ipa_devirt): Fix typos in format strings for dump output.
5250 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5252 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5253 discussion of defaults, light copy-editing.
5255 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5257 * tsan.c (instrument_expr): corrected previous checkin.
5259 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5261 Instrument bit field and unaligned accesses for TSAN.
5262 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5263 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5264 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5265 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5266 unaligned memory regions.
5268 2015-01-01 Anthony Green <green@moxielogic.com>
5270 * config/moxie/predicates.md (moxie_general_movsrc_operand):
5271 Restrict move source register offsets to 16 bits.
5273 Copyright (C) 2015 Free Software Foundation, Inc.
5275 Copying and distribution of this file, with or without modification,
5276 are permitted in any medium without royalty provided the copyright
5277 notice and this notice are preserved.