1 2015-02-25 Uros Bizjak <ubizjak@gmail.com>
4 * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
7 2015-02-25 Kai Tietz <ktietz@redhat.com>
9 PR tree-optimization/61917
10 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
11 that reduc_def_stmt is null.
13 2015-02-25 Martin Liska <mliska@suse.cz>
15 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
16 hard register variables.
18 2015-02-25 Kai Tietz <ktietz@redhat.com>
21 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
22 (symtab::noninterposable_alias): Likewise.
24 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
27 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
29 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
31 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
34 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35 as split condition; force split via '#' in output pattern.
37 2015-02-25 Richard Biener <rguenther@suse.de>
38 Kai Tietz <ktietz@redhat.com>
40 PR tree-optimization/61917
41 * tree-vect-loop.c (vectorizable_reduction): Allow
42 vect_internal_def without reduction to exit graceful.
44 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
47 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
48 only with NONDEBUG_INSN_P.
50 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
52 Use variadic macros with avr-log.c.
54 * config/avr/avr-protos.h (avr_vdump): New prototype.
55 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
56 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
57 * config/avr/avr-log.c: Adjust comments.
58 (avr_vdump): New function.
59 (avr_vadump): Pass caller as 2nd argument instead of format string.
60 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
61 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
63 2015-02-25 Jakub Jelinek <jakub@redhat.com>
66 * target.def (target_option_stream_in): New target hook.
67 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
68 targetm.target_option.post_stream_in if non-NULL.
69 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
70 * doc/tm.texi: Updated.
71 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
73 (TARGET_OPTION_POST_STREAM_IN): Redefine.
75 2015-02-24 Jeff Law <law@redhat.com>
78 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
79 of operand 0 and operand 2.
80 (zero_cost_loop_end, loop_end): Similarly.
82 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
84 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
87 2015-02-24 DJ Delorie <dj@redhat.com>
89 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
91 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
92 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
93 instead of hardcoding SImode.
95 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
97 * omp-low.c (create_omp_child_function): Tag entrypoint
98 functions with a special attribute.
100 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
103 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
105 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
107 PR rtl-optimization/65123
108 * lra-remat.c (operand_to_remat): Check hard regs in insn
111 2015-02-24 Nick Clifton <nickc@redhat.com>
113 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
116 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
119 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
120 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
121 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
122 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
123 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
124 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
125 (BUILT_IN_GOACC_PARALLEL): Specify as
126 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
127 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
129 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
130 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
131 Remove function types.
132 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
133 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
134 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
137 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
139 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
141 2015-02-24 Jakub Jelinek <jakub@redhat.com>
143 PR tree-optimization/65170
144 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
145 if val[1] < 0, clear also val[2] and return 3.
147 2015-02-24 Alan Modra <amodra@gmail.com>
150 * config/rs6000/rs6000.c (get_memref_parts): Only return true
151 when *base is a reg. Handle nested plus addresses. Simplify
154 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
156 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
157 use natural alignment when optimizing for size.
159 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
162 * config/sh/sh.md (movsicc_true+3): Remove peephole.
163 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
164 * config/sh/sh.c (replace_n_hard_rtx): Remove.
166 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
169 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
170 too big for a wide_int. Implement missing wrapping operation.
172 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
175 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
176 instead of const_int 4294901760.
178 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
180 * config/avr/t-avr: Fix typo in comment.
182 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
184 * doc/rtl.texi (fma): Clarify documentation.
186 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
189 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
192 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
194 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
195 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
196 restrict alignments to absolute_biggest_alignment.
197 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
199 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
200 * doc/tm.texi: Regenerate.
201 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
203 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
206 * ira-color.c (color_pass): Prevent splitting multi-register
209 2015-02-20 Richard Biener <rguenther@suse.de>
211 PR tree-optimization/65136
212 * tree-ssa-propagate.c: Include cfgloop.h.
213 (replace_phi_args_in): Avoid replacing loop latch edge PHI
214 arguments with constants.
216 2015-02-20 Jakub Jelinek <jakub@redhat.com>
217 Martin Liska <mliska@suse.cz>
220 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
221 don't try to create_thunk if stdarg_p. If
222 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
223 redirect_callers if possible.
224 (sem_item_optimizer::execute): Call unregister_hooks here...
225 (ipa_icf_driver): ... instead of here.
227 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
229 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
230 Mark operand 0 as earlyclobber in 2nd alternative.
231 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
232 Write negated shift amount into QI lowpart operand 0 and use it
234 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
236 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
238 * cgraph.h (clone_function_name_1): Declare.
239 * cgraphclones.c (clone_function_name_1): New function.
240 (clone_function_name): Use it.
241 * lto-partition.c: Include "stringpool.h".
242 (must_not_rename, maybe_rewrite_identifier,
243 validize_symbol_for_target): New static functions.
244 (privatize_symbol_name): Use must_not_rename.
245 (promote_symbol): Call validize_symbol_for_target.
246 (lto_promote_cross_file_statics): Likewise.
247 (lto_promote_statics_nonwpa): Likewise.
249 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
252 * config/avr/avr.md (pushhi_insn): New insn.
253 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
255 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
256 Jakub Jelinek <jakub@redhat.com>
258 * tree-streamer.c (preload_common_nodes): Don't preload
259 TI_VA_LIST* for offloading.
260 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
263 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
265 * config/pa/pa.c (pa_emit_move_sequence): Always force
266 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
269 * config/pa/pa.c (pa_reloc_rw_mask): New function.
270 (TARGET_ASM_RELOC_RW_MASK): Define.
271 (pa_cannot_force_const_mem): Revert previous change.
273 2015-02-19 Martin Jambor <mjmabor@suse.cz>
274 Jan Hubicka <hubicka@ucw.cz>
277 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
278 across jump functions.
280 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
282 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
284 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
286 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
288 2015-02-19 Richard Henderson <rth@redhat.com>
291 * varasm.c (default_binds_local_p_2): Don't test node->definition;
292 test DECL_EXTERNAL independent of symtab_node.
294 2015-02-19 Jakub Jelinek <jakub@redhat.com>
297 * varpool.c (varpool_node::get_constructor): Return early
298 if this->lto_file_data is NULL.
300 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
302 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
303 (rank_for_schedule_debug): Update.
304 (ready_sort): Make static. Move sorting logic to ...
305 (ready_sort_debug, ready_sort_real): New static functions.
306 (schedule_block): Sort both debug insns and real insns in preparation
307 for ready list trimming. Improve debug output.
308 * sched-int.h (ready_sort): Remove global declaration.
310 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
312 * ipa-icf.c (sem_function::equals_private): Adjust.
313 (sem_function::bb_dict_test): Take a vec<int> * instead of
315 * ipa-icf.h (bb_dict_test): Likewise.
317 2015-02-18 Jakub Jelinek <jakub@redhat.com>
319 PR gcov-profile/64634
320 * tree-eh.c (frob_into_branch_around): Fix up typos
322 (lower_catch): Put eh_seq resulting from EH lowering of
323 the cleanup sequence after the cleanup rather than before it.
325 2015-02-18 Tom de Vries <tom@codesourcery.com>
327 * common.opt (fstdarg-opt): New option.
328 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
329 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
330 (@item -fstdarg-opt): New item.
332 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
335 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
338 2015-02-18 Jakub Jelinek <jakub@redhat.com>
340 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
342 (ALL_HOST_OBJS): Add mkoffload.o.
343 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
345 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
347 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
348 (compare_virtual_tables): Be smarter about skipping typeinfos;
349 do sane output on virtual table table mismatch.
350 (warn_odr): Be ready for forward declarations of enums;
351 output sane info on base mismatch and virtual table mismatch.
352 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
353 when only one type is polymorphic.
354 (get_odr_type): Fix hashtable corruption.
355 (dump_odr_type): Dump mangled names.
357 2015-02-18 Richard Biener <rguenther@suse.de>
359 PR tree-optimization/65063
360 * tree-predcom.c (determine_unroll_factor): Return 1 if we
361 have replaced looparound PHIs.
363 2015-02-18 Martin Liska <mliska@suse.cz>
365 * lto-streamer.c (lto_streamer_init): Encapsulate
366 streamer_check_handled_ts_structures with checking macro.
368 2015-02-18 Jakub Jelinek <jakub@redhat.com>
371 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
372 section if !implicit_section.
373 (cgraph_node::create_version_clone_with_body): Likewise.
374 * trans-mem.c (ipa_tm_create_version): Likewise.
376 2015-02-18 Richard Biener <rguenther@suse.de>
378 PR tree-optimization/62217
379 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
382 2015-02-18 Marek Polacek <polacek@redhat.com>
385 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
386 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
387 is in range [-16K, -1]. Don't issue run-time error if
388 (ptr > ptr + offset).
390 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
392 * doc/install.texi (nvptx-*-none): New section.
393 * doc/invoke.texi (Nvidia PTX Options): Likewise.
394 * config/nvptx/nvptx.opt: Update.
396 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
397 (access_check): New functions, copied from
398 config/i386/intelmic-mkoffload.c.
399 (main): For non-installed testing, look in all COMPILER_PATHs for
402 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
404 2015-02-18 Andrew Pinski <apinski@cavium.com>
405 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
407 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
408 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
410 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
412 * ipa-visibility.c (function_and_variable_visibility): Only
413 check locality if node is not already local.
414 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
415 call_for_symbol_and_aliases instead of
416 call_for_symbol_thunks_and_aliases.
417 (ipa_inline): Likewise.
418 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
420 * ipa.c (symbol_table::remove_unreachable_nodes): Use
421 call_for_symbol_and_aliases.
422 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
423 (ipa_propagate_frequency_1): Use it; use opt_for_fn
424 (ipa_propagate_frequency): Update.
425 (ipa_profile): Add opt_for_fn gueards.
427 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
429 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
430 * doc/invoke.texi (SH options): Document it.
431 * config/sh/sh.c (sh_insn_length_adjustment): Check
432 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
434 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
436 * common.opt (fipa-cp-alignment): New.
437 * ipa-cp.c (ipcp_store_alignment_results): Check
438 flag_ipa_cp_alignment.
439 * opts.c (default_options_table): Enable -fipa-cp-alignment for
441 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
442 * doc/invoke.texi: Document -fipa-cp-alignment.
444 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
447 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
448 to nil. Adjust comments.
450 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
452 * ipa-visibility.c (function_and_variable_visibility): Only
453 check locality if node is not already local.
454 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
455 call_for_symbol_and_aliases instead of
456 call_for_symbol_thunks_and_aliases.
457 (ipa_inline): Likewise.
458 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
460 * ipa.c (symbol_table::remove_unreachable_nodes): Use
461 call_for_symbol_and_aliases.
462 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
463 (ipa_propagate_frequency_1): Use it; use opt_for_fn
464 (ipa_propagate_frequency): Update.
465 (ipa_profile): Add opt_for_fn guards.
467 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
469 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
470 skipping of "strange" tokens.
472 2015-02-17 Jeff Law <law@redhat.com>
474 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
477 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
479 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
480 as forcing a HARD_DEP between instructions, thereby
481 disallowing rewriting to break dependencies.
483 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
485 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
486 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
487 variables in boundary that have no inlitalizer encoded and are
489 * varasm.c (default_binds_local_p_2): External definitions do not
490 count as definitions here.
492 2015-02-16 Jeff Law <law@redhat.com>
494 PR tree-optimization/64823
495 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
497 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
498 threading through blocks with PHIs, but no statements.
499 (thread_through_normal_block): Distinguish between blocks where
500 we did not process all the statements and blocks with no statements.
502 2015-02-16 Jakub Jelinek <jakub@redhat.com>
503 James Greenhalgh <james.greenhalgh@arm.com>
506 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
507 section if not linkonce. Fix up formatting.
508 (cgraph_node::create_version_clone_with_body): Copy section.
509 * trans-mem.c (ipa_tm_create_version): Likewise.
511 2015-02-16 Richard Biener <rguenther@suse.de>
513 PR tree-optimization/65077
514 * tree-ssa-structalias.c (get_constraint_for_1): Handle
515 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
516 (find_func_aliases): Allow float values to carry pointers again.
518 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
520 * doc/install.texi (Specific): Reorder targets list to put
521 aarch64 in alphabetical order. Add a link to aarch64*-*-*
524 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
525 David Edelsohn <dje.gcc@gmail.com>
528 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
529 mapping class to external variable or function reference.
530 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
533 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
536 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
537 ASM_WEAKEN_DECL if defined.
539 2015-02-16 Richard Biener <rguenther@suse.de>
542 * varasm.c (default_file_start): For LTO produced units
543 emit <artificial> as file directive.
545 2015-02-16 Richard Biener <rguenther@suse.de>
547 PR tree-optimization/63593
548 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
549 stmts and releasing SSA names until...
550 (execute_pred_commoning): ... after processing all chains.
552 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
555 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
558 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
560 * doc/bugreport.texi: Adjust section titles throughout the file
562 * doc/extend.texi: Likewise.
563 * doc/gcov.texi: Likewise.
564 * doc/implement-c.texi: Likewise.
565 * doc/implement-cxx.texi: Likewise.
566 * doc/invoke.texi: Likewise.
567 * doc/objc.texi: Likewise.
568 * doc/standards.texi: Likewise.
569 * doc/trouble.texi: Likewise.
571 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
573 * cgraph.h (symtab_node::has_aliases_p): Simplify.
574 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
575 * tree.c (lookup_binfo_at_offset): Make static.
576 (get_binfo_at_offset): Do not shadow offset; add explanatory
579 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
581 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
582 for all floading point loads and stores except those using a register
584 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
587 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
589 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
590 (do_estimate_growth_1): Record if any uninlinable edge was seen.
591 (estimate_growth): Handle uninlinable edges correctly.
592 (check_callers): New.
593 (growth_likely_positive): Handle aliases correctly.
595 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
597 * ipa-chkp.c: Use iterate_direct_aliases.
598 * symtab.c (resolution_used_from_other_file_p): Move inline.
599 (symtab_node::create_reference): Fix formating.
600 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
601 (symtab_node::iterate_reference): Move inline.
602 (symtab_node::iterate_referring): Move inline.
603 (symtab_node::iterate_direct_aliases): Move inline.
604 (symtab_node::used_from_object_file_p_worker): Inline into ...
605 (symtab_node::used_from_object_file_p): ... this one; move inline.
606 (symtab_node::call_for_symbol_and_aliases): Move inline;
607 use iterate_direct_aliases.
608 (symtab_node::call_for_symbol_and_aliases_1): New method.
609 (cgraph_node::call_for_symbol_and_aliases): Move inline;
610 use iterate_direct_aliases.
611 (cgraph_node::call_for_symbol_and_aliases_1): New method.
612 (varpool_node::call_for_node_and_aliases): Rename to ...
613 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
614 use iterate_direct_aliases.
615 (varpool_node::call_for_symbol_and_aliases_1): New method.
616 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
617 (ipa_discover_readonly_nonaddressable_var): Update.
618 * ipa-devirt.c: Fix formating.
619 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
621 (cgraph_node::call_for_symbol_and_aliases): Move inline.
622 (cgraph_node::call_for_symbol_and_aliases_1): New function..
623 * cgraph.h (used_from_object_file_p_worker): Remove.
624 (resolution_used_from_other_file_p): Move inline.
625 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
626 (symtab_node::iterate_reference): Move inline.
627 (symtab_node::iterate_referring): Move inline.
628 (symtab_node::iterate_direct_aliases): Move inline.
629 (symtab_node::used_from_object_file_p_worker): Inline into ...
630 (symtab_node::used_from_object_file_p): Move inline.
631 * tree-emutls.c (ipa_lower_emutls): Update.
632 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
633 (varpool_node::call_for_node_and_aliases): Remove.
635 2015-02-14 Jakub Jelinek <jakub@redhat.com>
637 PR tree-optimization/62209
638 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
639 op == range->exp, insert seq and gimplified code after labels
640 instead of after the phi.
642 2015-02-13 Jeff Law <law@redhat.com>
645 Revert my change for tree-optimization/64823.
647 2015-02-13 Jakub Jelinek <jakub@redhat.com>
649 PR tree-optimization/65053
650 * tree-ssa-phiopt.c (value_replacement): When moving assign before
651 cond, either reset VR on lhs or set it to phi result VR.
653 2015-02-13 Jeff Law <law@redhat.com>
655 PR tree-optimization/64823
656 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
657 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
658 threading through blocks with PHIs, but no statements.
659 (thread_through_normal_block): Distinguish between blocks where
660 we did not process all the statements and blocks with no statements.
662 PR rtl-optimization/47477
663 * match.pd (convert (plus/minus (convert @0) (convert @1): New
664 simplifier to narrow arithmetic.
666 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
669 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
670 polymorphic call info when type is not known to be preserved.
672 2015-02-13 Maritn Jambor <mjambor@suse.cz>
675 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
676 (inline_call): Use it.
678 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
680 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
681 GOMP_DEVICE_NVIDIA_PTX.
683 2015-02-13 Jakub Jelinek <jakub@redhat.com>
686 * stmt.c (emit_case_nodes): Use void_type_node instead of
687 NULL_TREE as LABEL_DECL type.
689 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
691 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
693 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
694 symbolic references to data to be forced to constant memory on the
697 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
699 PR tree-optimization/65002
700 * tree-cfg.c (pass_data_fixup_cfg): Don't update
702 * tree-sra.c (some_callers_have_no_vuse_p): New.
703 (ipa_early_sra): Reject functions whose callers
704 assume function is read only.
706 2015-02-13 Richard Biener <rguenther@suse.de>
709 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
710 for LTO produced CUs.
712 2015-02-13 Bin Cheng <bin.cheng@arm.com>
714 PR tree-optimization/64705
715 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
716 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
717 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
718 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
719 expand_simple_operations.
721 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
722 Richard Henderson <rth@redhat.com>
725 * cgraphunit.c (cgraph_node::finalize_function): Set definition
726 before notice_global_symbol.
727 (varpool_node::finalize_decl): Likewise.
728 * varasm.c (default_binds_local_p_2): Rename from
729 default_binds_local_p_1, add weak_dominate argument. Use direct
730 returns instead of assigning to local variable. Unify varpool and
731 cgraph paths via symtab_node. Reject undef weak variables before
732 testing visibility. Reorder tests for simplicity.
733 (default_binds_local_p): Use default_binds_local_p_2.
734 (default_binds_local_p_1): Likewise.
735 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
737 (default_elf_asm_output_external): Emit visibility when specified.
739 2015-02-13 Alan Modra <amodra@gmail.com>
741 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
742 code setting up r11 for out-of-line fp restore.
744 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
746 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
747 (muser-mode): Likewise.
749 2015-02-13 Alan Modra <amodra@gmail.com>
751 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
752 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
754 2015-02-12 David Howells <dhowells@redhat.com>
756 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
758 * tree-ssa-uninit.c (dump_predicates): Likewise.
759 * opts.c (print_filtered_help): Likewise.
761 2015-02-12 Jakub Jelinek <jakub@redhat.com>
763 * dwarf2out.c (output_die): Use "%s", name instead of name to
764 avoid -Wformat-security warning.
766 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
767 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
768 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
769 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
771 2015-02-12 Jason Merrill <jason@redhat.com>
773 * common.opt (-flifetime-dse): New.
775 2015-02-12 Jakub Jelinek <jakub@redhat.com>
778 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
780 PR tree-optimization/65014
781 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
782 use original second operand of arg0 or arg1 instead of
783 that adjusted by STRIP_NOPS.
785 2015-02-11 Jeff Law <law@redhat.com>
788 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
789 that needs to be queued, just queue it for a single cycle.
791 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
793 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
794 bodies of thunks; comment on why.
795 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
798 2015-02-11 Richard Henderson <rth@redhat.com>
801 * tree-eh.c (mark_reachable_handlers): Mark source and destination
802 regions of __builtin_eh_copy_values.
804 2015-02-11 Jakub Jelinek <jakub@redhat.com>
807 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
808 ultimate alias is MEM with SYMBOL_REF satisfying
809 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
810 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
812 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
814 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
816 (main): Initialize progname, and call diagnostic_initialize.
818 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
819 instead of __OPENMP_TARGET__.
821 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
822 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
825 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
827 * doc/sourcebuild.texi (pie_enabled): Document.
829 2015-02-11 Martin Liska <mliska@suse.cz>
832 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
833 a return value for call to a function that is noreturn.
835 2015-02-11 Richard Biener <rguenther@suse.de>
838 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
841 2015-02-11 Andrew Pinski <apinski@cavium.com>
844 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
845 Change the first argument type to size_type_node and add another
847 (aarch64_simd_expand_builtin): Handle the new argument to
848 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
849 print an out when the first two arguments are not
850 nonzero integer constants.
851 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
852 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
854 2015-02-11 Jakub Jelinek <jakub@redhat.com>
857 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
858 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
859 (ix86_set_current_function): Rewritten.
860 (ix86_add_new_builtins): Temporarily clear current_target_pragma
861 when creating builtin fndecls.
863 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
866 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
868 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
869 have no comdat group.
870 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
871 (lto_output_varpool_node): Always output alias info.
872 (output_refs): Output refs of boundary aliases, too.
873 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
874 (output_symtab): Output call eges in thunks in boundary.
875 (get_alias_symbol): Remove.
876 (input_node, input_varpool_node): Do not special case weakrefs.
877 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
878 alias and thunks targets in the boundary; do not take removed symbols
879 from their comdat groups.
880 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
881 (cgraph_node::global_info): Remove.
882 (cgraph_node::rtl_info): Look through aliases and thunks.
883 * cgrpah.h (global_info): Remove.
884 (non_local_p): Remove.
886 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
887 Sandra Loosemore <sandra@codesourcery.com>
889 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
890 to inline asm. List dialects in proper order.
892 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
893 Sandra Loosemore <sandra@codesourcery.com>
895 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
897 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
899 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
900 modified) reference to Solaris.
902 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
904 * doc/extend.texi (Extended Asm): Fix typos.
906 2015-02-10 Jakub Jelinek <jakub@redhat.com>
909 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
911 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
914 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
915 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
916 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
917 * config/sh/constraints.md (Ara, Add): New constraints.
918 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
920 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
921 atomic_mem_operand_0. Don't use force_reg on the memory address.
922 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
923 Sra constraint. Convert to insn_and_split. Add workaround for
925 (atomic_compare_and_swap<mode>_hard): Copy to
926 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
927 Use atomic_mem_operand_0 predicate.
928 (atomic_compare_and_swap<mode>_soft_gusa,
929 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
931 (atomic_compare_and_swap<mode>_soft_tcb,
932 atomic_compare_and_swap<mode>_soft_imask,
933 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
934 atomic_mem_operand_0 predicate and SraSdd constraints.
935 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
937 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
938 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
939 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
940 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
941 force_reg on the memory address.
942 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
943 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
944 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
945 atomic_mem_operand_1 predicate and Sra constraint.
946 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
947 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
948 Use atomic_mem_operand_1 predicate.
949 (atomic_<fetchop_name><mode>_hard): Copy to
950 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
951 Use atomic_mem_operand_1 predicate.
952 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
953 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
954 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
955 insn_and_split. Use atomic_mem_operand_1 predicate.
956 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
957 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
958 Use atomic_mem_operand_1 predicate.
959 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
960 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
961 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
962 in generated insn with original mem operand before emitting the insn.
963 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
964 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
965 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
966 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
967 Use atomic_mem_operand_1 predicate and AraAdd constraints.
968 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
969 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
970 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
971 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
972 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
973 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
974 atomic_not_fetch<mode>_soft_tcb,
975 atomic_<fetchop_name>_fetch<mode>_soft_imask,
976 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
977 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
978 Use atomic_mem_operand_1 predicate and SraSdd constraints.
980 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
982 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
983 and 3 earlyclobber operands.
985 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
987 * common.opt (fstack-reuse): Mark as optimization.
989 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
992 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
994 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
996 PR tree-optimization/64326
997 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
999 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
1001 PR gcov-profile/61889
1002 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1004 2015-02-10 Richard Biener <rguenther@suse.de>
1006 PR tree-optimization/64995
1007 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1008 value we use is final.
1009 (visit_reference_op_store): Always valueize op.
1010 (visit_use): Properly valueize vuses.
1012 2015-02-10 Richard Biener <rguenther@suse.de>
1014 PR tree-optimization/64909
1015 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1016 pass a scalar-stmt count estimate to the cost model.
1017 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1019 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
1021 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1022 enabled by default together with var-tracking.
1024 2015-02-10 Nick Clifton <nickc@redhat.com>
1026 * config/rl78/rl78.c: Remove DIV attribute code accidentally
1027 included in previous rl78 commit.
1029 2015-02-10 Richard Biener <rguenther@suse.de>
1031 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1032 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1035 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1037 PR gcov-profile/61889
1038 * config.in: regenerate.
1039 * configure.in: Likewise.
1040 * configure.ac: Check for ftw.h.
1041 * gcov-tool.c: Check for ftw.h before using nftw.
1043 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1046 * ipa-visibility.c (update_visibility_by_resolution_info): Only
1047 assert when not in lto mode.
1049 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1051 * ira-color.c (setup_left_conflict_sizes_p): Simplify
1052 initialization/assignment of conflict_size.
1054 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
1057 * ipa-cp.c (gather_caller_stats): Skip thunks.
1058 (propagate_constants_topo): Skip aliases.
1060 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
1063 * config/sh/sh.c (sh_option_override): Don't change
1064 -freorder-blocks-and-partition to -freorder-blocks even when
1065 unwinding is enabled.
1066 (sh_can_follow_jump): Return false if the followee jump is
1067 a crossing jump when -freorder-blocks-and-partition is specified.
1068 * config/sh/sh.md (*jump_compact_crossing): New insn.
1070 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
1071 Kaz Kojima <kkojima@gcc.gnu.org>
1074 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1075 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1076 (sh_can_redirect_branch): Rename to ...
1077 (sh_can_follow_jump): ... this. Constify argument types.
1078 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1079 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1080 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1081 * doc/tm.texi: Regenerate.
1083 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1086 * builtins.c (expand_builtin): Call targetm.expand_builtin
1087 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1089 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1092 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1094 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1097 * ipa-icf.c (set_local): New function.
1098 (sem_function::merge): Use it.
1100 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1102 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1103 (add_type_duplicate): Fix comparison of BINFOs.
1105 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1107 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1108 on getting VOID pointer.
1110 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1113 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1116 2015-02-09 Richard Biener <rguenther@suse.de>
1118 * genmatch.c (replace_id): Copy expr_type.
1120 2015-02-09 Richard Biener <rguenther@suse.de>
1122 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1123 (streamer_write_tree_bitfields): Declare.
1124 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1125 properly unpack padding.
1126 (unpack_value_fields): Inline ...
1127 (streamer_read_tree_bitfields): ... here.
1128 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1129 and properly add padding bits.
1130 (streamer_pack_tree_bitfields): Fold into ...
1131 (streamer_write_tree_bitfields): ... this new function,
1132 exposing the bitpack object.
1133 * lto-streamer-out.c (lto_write_tree_1): Call
1134 streamer_write_tree_bitfields.
1136 2015-02-09 Richard Biener <rguenther@suse.de>
1138 PR tree-optimization/54000
1139 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1140 (struct ivopts_data): Add loop_loc member.
1141 (tree_ssa_iv_optimize_loop): Dump loop location.
1142 (create_new_ivs): Likewise, also dump number of IVs generated.
1144 2015-02-09 Martin Liska <mliska@suse.cz>
1146 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1147 just if not yet registered.
1148 (ipa_icf_generate_summary): Register callgraph hooks.
1150 2015-02-08 Andrew Pinski <apinski@cavium.com>
1152 * config/aarch64/aarch64.c (gty_dummy): Delete.
1154 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1157 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1158 (cgraph_node::local_p): Remove thunk related FIXME.
1160 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1163 * i386.c (ix86_function_regparm): Look through aliases to see if callee
1164 is local and optimized.
1165 (ix86_function_sseregparm): Likewise; also use target's SSE math
1166 settings; error out instead of silently generating wrong code
1168 (init_cumulative_args): Look through aliases.
1170 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1173 * ipa-split.c (execute_split_functions): Split if function has aliases.
1175 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1178 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1179 aliases before trying to expand it.
1180 (cgraph_node::expand_thunk): Fix formating.
1182 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
1184 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1185 (Using Assembly Language with C): Expand introduction.
1186 (Basic Asm): Copy-edit. Add more information about uses of
1188 (Extended Asm): Copy-edit. Document new escape syntax and
1190 (Global Reg Vars): Copy-edit.
1191 (Local Reg Vars): Likewise.
1193 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
1197 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1198 (DBX_CONTIN_CHAR): Define.
1200 2015-02-06 Sebastian Pop <s.pop@samsung.com>
1201 Brian Rzycki <b.rzycki@samsung.com>
1203 PR tree-optimization/64878
1204 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1205 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1206 Stop recursion at loop phi nodes after having visited a loop phi node.
1208 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1210 * toplev.c (process_options): Change flag_ipa_ra before creating
1211 optimization_{default,current}_node.
1214 * cgraphunit.c (cgraph_node::expand_thunk): If
1215 restype is not is_gimple_reg_type nor the thunk_fndecl
1216 returns aggregate_value_p, set restmp to a temporary variable
1219 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
1221 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1223 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1226 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1227 add a general secondary reload handler for SDmode, unless we have
1228 both read/write support for SDmode.
1230 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1233 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1234 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1235 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1236 1 before, push it to abstract_vec.
1237 (dwarf2out_abstract_function): Adjust caller. Don't call
1238 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1239 DECL_ABSTRACT_P flags for all abstract_vec elts.
1241 2015-02-06 Renlin Li <renlin.li@arm.com>
1243 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1245 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1247 2015-02-06 Jeff Law <law@redhat.com>
1250 * config/h8300/h8300.c (push): New argument "in_prologue".
1251 Pass "in_prologue" along to "F".
1252 (h8300_push_pop): Corresponding changes.
1253 (h8300_expand_prologue): Likewise.
1254 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
1256 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1258 PR rtl-optimization/64957
1260 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1261 IOR rather than for AND.
1263 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
1266 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1267 of shift-add and (add + shift) operations. Rename local variable.
1269 2015-02-05 Jeff Law <law@redhat.com>
1272 * config/h8300/constraints.md (U): Correctly dectect
1273 "eightbit_data" memory addresses.
1274 * config/h8300/h8300.c (eightbit_constant_address_p): Also
1275 handle (const (plus (symbol_ref (x)))) where x is declared
1276 as an 8-bit data memory address.
1277 * config/h8300/h8300.md (call, call_value): Correctly detect
1278 "funcvec" functions.
1281 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1282 24 to 28 bits for the H8/300.
1284 2015-02-06 Alan Modra <amodra@gmail.com>
1287 * config/rs6000/rs6000.c (chain_already_loaded): New function.
1288 (rs6000_call_aix): Use it.
1290 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
1292 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1295 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
1297 * config/h8300/constraints.md ("U" constraint): Use strict
1298 variant of REG_OK_FOR_BASE_P after reload has started.
1300 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
1302 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1303 define to zero if !TARGET_NEON.
1304 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
1306 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1307 Trevor Saunders <tsaunders@mozilla.com>
1310 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1312 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1315 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1316 when removing varpool nodes.
1318 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1321 * varpool.c (varpool_node::remove): Fix order of variables.
1323 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1326 * ipa-inline.c (inline_small_functions): Fix ordering issue between
1327 speculation resolution and key updates.
1329 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1331 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1332 about not letting any speculative edges unupdated.
1334 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1337 * gcov-io.c (gcov_var): Export.
1339 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1342 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1343 edges that become speculative.
1345 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1347 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1348 or DW_LANG_Fortran08.
1349 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1351 (gen_compile_unit_die): Handle "GNU Fortran2003" and
1352 "GNU Fortran2008" language strings.
1353 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1354 * langhooks.h (lang_GNU_Fortran): New prototype.
1355 * langhooks.c (lang_GNU_Fortran): New function.
1356 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1359 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1361 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1362 (RTX_OK_FOR_OLO10_P): Likewise.
1364 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1366 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1368 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1371 * gimple.c: Include gimple-ssa.h.
1372 (maybe_remove_unused_call_args): New function.
1373 * gimple.h (maybe_remove_unused_call_args): Declare.
1374 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1375 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1376 * gimple-fold.c (gimple_fold_call): Likewise.
1378 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
1380 PR rtl-optimization/64905
1381 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1382 pointer alignment if it isn't needed.
1384 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1386 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1387 cortex-a72.cortex-a53.
1388 * config/aarch64/aarch64-tune.md: Regenerate.
1389 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1391 2015-02-04 Nick Clifton <nickc@redhat.com>
1393 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1396 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1398 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1399 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1400 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1402 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1403 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1404 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1405 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1406 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1407 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1408 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1409 * tree-core.h (enum built_in_function): In between
1410 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1411 for builtins that use DEF_BUILTIN_CHKP macro.
1413 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
1416 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1417 operands for tcc_comparison exprs. Fix typos.
1420 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1421 of two XORs that have an intervening AND or IOR.
1424 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1425 simplification of XOR of AND to not allocate new rtx before
1426 committing to a simplification.
1428 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1430 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1431 manual swaps in all peepholes.
1433 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1435 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1436 of manual swapping implementation.
1437 (aarch64_expand_vec_perm_const_1): Likewise.
1439 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
1441 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1442 (generic_addrcost_table): Remove NAMED_PARAM.
1443 (cortexa57_addrcost_table): Likewise.
1444 (xgene1_addrcost_table): Likewise.
1445 (generic_regmove_table): Likewise.
1446 (cortexa53_regmove_table): Likewise.
1447 (xgene1_regmove_table): Likewise.
1448 (generic_vector_table): Likewise.
1449 (cortexa57_vector_table): Likewise.
1450 (xgene1_vector_table): Likewise.
1451 (generic_tunings): Likewise.
1452 (cortexa53_tunings): Likewise.
1453 (cortexa57_tunings): Likewise.
1454 (xgene1_tunings): Likewise.
1456 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1458 * config/arm/arm-cores.def: Add cortex-a72 and
1459 cortex-a72.cortex-a53.
1460 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1461 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1462 * config/arm/arm-tune.md: Regenerate.
1463 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1464 "cortex-a72.cortex-a53".
1465 * doc/invoke.texi (ARM Options/-mtune): Likewise.
1467 2015-02-04 Nick Clifton <nickc@redhat.com>
1470 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1472 (nonimmediate_di_operand): Likewise.
1474 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1475 prefixes of known F5 using MSP430 MCUs.
1477 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1479 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1480 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1481 instead of __builtin_sqrt.
1483 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
1485 * varasm.c (do_assemble_alias): Follow transparent alias
1487 (default_assemble_visibility): Follow transparent alias
1488 chain for decl name.
1490 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1493 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1494 to compute size of referenced value in the constant case.
1496 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1498 PR rtl-optimization/64756
1499 * cse.c (invalidate_dest): New function.
1500 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
1501 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1502 invalidate and do not record it.
1504 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1507 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1508 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1509 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1510 atomic_nand<mode>_soft_tcb): New insns.
1511 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1512 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1513 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1514 Split into atomic_not_fetchsi_hard if operands[0] is unused.
1515 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1516 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1517 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
1518 atomic_not<mode>_hard if operands[0] is unused.
1519 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1520 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1521 if operands[0] is unused.
1522 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
1523 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1524 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1525 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1527 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
1528 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1529 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1530 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1531 if operands[0] is unused.
1532 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
1533 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1534 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
1535 atomic_nand_fetchsi_hard if operands[0] is unused.
1536 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
1537 atomic_nand<mode>_hard if operands[0] is unused.
1538 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
1539 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1540 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
1541 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1542 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
1543 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1544 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1545 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1546 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
1547 atomic_not<mode>_hard if operands[0] is unused.
1548 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1549 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1551 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1552 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1553 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
1554 atomic_nand<mode>_hard if operands[0] is unused.
1555 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1556 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1558 2015-02-03 David Malcolm <dmalcolm@redhat.com>
1561 * Makefile.in (GCC_OBJS): Add gcc-main.o.
1562 * gcc-main.c: New file, containing "main" taken from gcc.c.
1563 * gcc.c (do_self_spec): Free decoded_options.
1564 (class driver): Move declaration to gcc.h.
1565 (main): Move declaration and implementation to new file
1567 (driver_get_configure_time_options): New function.
1568 * gcc.h (class driver): Move this declaration here, from
1570 (driver_get_configure_time_options): New declaration.
1572 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
1574 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1575 cross-module inlining.
1576 * cgraph.h (cgraph_node): Add flag merged.
1577 * ipa-icf.c (sem_function::merge): Maintain it.
1579 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
1581 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1582 instead of OBJECT_P.
1584 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
1587 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1588 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1589 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1590 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1592 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1595 * combine.c (reg_n_sets_max): New variable.
1596 (can_change_dest_mode, reg_nonzero_bits_for_combine,
1597 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1598 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1599 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1600 (rest_of_handle_combine): Initialize reg_n_sets_max.
1602 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
1604 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1605 if some always_inline was inlined, apply changes before inlining
1608 2015-02-02 David Malcolm <dmalcolm@redhat.com>
1611 * config/arm/arm.c (arm_option_override): Set
1612 arm_selected_arch/cpu/tune to NULL on entry.
1614 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
1615 Andrew Pinski <pinskia@gcc.gnu.org>
1616 Jakub Jelinek <jakub@gcc.gnu.org>
1619 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1620 integer typing for small model. Use IN_RANGE.
1622 2015-02-02 Richard Biener <rguenther@suse.de>
1624 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1625 * tree-vrp.c (vrp_valueize_1): Likewise.
1627 2015-02-02 Alan Modra <amodra@gmail.com>
1629 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1630 than mem for toc_restore.
1631 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1632 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1633 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1635 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1638 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1639 explicit default options.
1641 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
1644 * ipa-utils.c (ipa_merge_profiles): Add release argument.
1645 * ipa-icf.c (sem_function::merge): Do not release body when merging.
1646 * ipa-utils.h (ipa_merge_profiles): Update prototype.
1648 2015-02-01 Jakub Jelinek <jakub@redhat.com>
1651 * cfgexpand.c (deep_ter_debug_map): New variable.
1652 (avoid_deep_ter_for_debug): New function.
1653 (expand_debug_expr): If TERed SSA_NAME is in
1654 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1655 instead of trying to expand SSA_NAME's def stmt.
1656 (expand_debug_locations): When expanding debug bind
1657 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1658 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1660 (pass_expand::execute): Call avoid_deep_ter_for_debug on
1661 all debug bind stmts. Delete deep_ter_debug_map after
1662 expand_debug_location if non-NULL and clear it.
1664 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
1667 * config/sh/sync.md (atomic_fetch_notsi_hard,
1668 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1669 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1670 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1671 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1672 atomic_not_fetch<mode>_soft_imask): New insns.
1674 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1676 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1677 (rank_for_schedule_debug): Split from ...
1678 (rank_for_schedule): ... this.
1679 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1680 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1682 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1684 * doc/md.texi (Machine Constraints): Alphabetize table by target.
1685 * doc/extend.texi (x86 Variable Attributes): Move section to
1686 correct alphabetization after renaming.
1687 (x86 Type Attributes): Likewise.
1688 (Target Builtins): Re-alphabetize menu.
1689 (x86 Built-in Functions): Move section to correct alphabetization
1691 (x86 transactional memory intrinsics): Likewise.
1692 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1693 and x86 Windows Options in table and menu.
1694 (x86 Options): Move section to correct alphabetization after
1696 (x86 Windows Options): Likewise.
1698 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1700 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1701 preferred names of the architecture and its 32- and 64-bit
1703 * doc/invoke.texi: Likewise.
1704 * doc/md.texi: Likewise.
1706 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1709 * config/i386/predicates.md (address_no_seg_operand): Reject
1710 non-CONST_INT_P operands in invalid mode.
1712 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1714 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1715 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
1716 * config/i386/predicates.md (address_no_seg_operand): Call
1717 address_operand with VOIDmode.
1718 (vsib_address_operand): Ditto.
1719 (address_mpx_no_base_operand): Ditto.
1720 (address_mpx_no_index_operand): Ditto.
1722 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1725 * lra-constraints.c (original_subreg_reg_mode): New.
1726 (simplify_operand_subreg): Try to simplify subreg of const. Use
1727 original_subreg_reg_mode for it.
1728 (swap_operands): Update original_subreg_reg_mode.
1729 (curr_insn_transform): Set up original_subreg_reg_mode.
1731 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1734 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1736 (process_alt_operands): Use it.
1737 (curr_insn_transform): Check the optional reload pseudo class is
1740 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1742 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1743 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1745 * toplev.h (init_asm_output): Update comment on use of
1746 UNKNOWN_LOCATION with fatal_error.
1747 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1748 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1749 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1750 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1751 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1752 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1753 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1754 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1755 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1756 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1757 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1758 fatal_error changed to pass input_location as first argument.
1760 2015-01-30 Martin Liska <mliska@suse.cz>
1762 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1763 in #pragma GCC diagnostic guards.
1765 2015-01-30 Richard Biener <rguenther@suse.de>
1767 PR tree-optimization/64829
1768 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1769 not add a widening conversion pattern but hand off extra
1770 widenings to callers.
1771 (vect_recog_widen_mult_pattern): Handle extra widening produced
1772 by vect_handle_widen_op_by_const.
1773 (vect_recog_widen_shift_pattern): Likewise.
1774 (vect_pattern_recog_1): Remove excess vertical space in dumping.
1775 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1776 (vect_init_vector_1): Likewise.
1777 (vect_get_vec_def_for_operand): Likewise.
1778 (vect_finish_stmt_generation): Likewise.
1779 (vectorizable_load): Likewise.
1780 (vect_analyze_stmt): Likewise.
1781 (vect_is_simple_use): Likewise.
1783 2015-01-29 Jeff Law <law@redhat.com>
1785 * combine.c (try_combine): Fix typo in comment.
1787 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
1790 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1791 (rs6000_stack_info): Add assert.
1792 (rs6000_output_savres_externs): New function, split off from...
1793 (rs6000_output_function_prologue): ... here. Do not call it for
1796 2015-01-29 Jeff Law <law@redhat.com>
1799 * combine.c (try_combine): If I0 is a memory load and I3 a store
1800 to a related address, increase the "goodness" of doing a 4-insn
1801 combination with I0-I3.
1802 (make_field_assignment): Handle SUBREGs in the ior+and case.
1804 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1806 PR tree-optimization/64746
1807 * tree-if-conv.c (mask_exists): New function.
1808 (predicate_mem_writes): Save created mask with given size for further
1810 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1811 (ifcvt_repair_bool_pattern): Collect all statements that are root
1812 of bool pattern and use iterative algorithm to remove multiple uses
1813 of predicates, display number of required iterations.
1815 2015-01-29 Richard Biener <rguenther@suse.de>
1817 PR tree-optimization/64853
1818 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1819 stmt will get simulated again.
1820 * tree-ssa-ccp.c (valueize_op_1): Likewise.
1822 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1824 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1825 return_in_pc. Remove redundant assignments.
1826 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1827 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1829 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
1831 * config/i386/i386.c (ix86_mode_after): Make static.
1833 2015-01-29 Richard Biener <rguenther@suse.de>
1835 PR tree-optimization/64844
1836 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1837 dump cost model analysis.
1838 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1839 Do not register adjusted load/store costs here.
1841 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1842 Uros Bizjak <ubizjak@gmail.com>
1844 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1845 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1846 using x86_use_pseudo_pic_reg.
1847 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1848 support for fixed PIC register.
1849 (ix86_use_pseudo_pic_reg): Not static any more.
1851 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1854 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1855 to avoid error in cgraph node verification.
1857 2015-01-29 Marek Polacek <polacek@redhat.com>
1859 * doc/standards.texi: Reflect that the default for C is gnu11.
1861 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1864 * reorg.c (switch_text_sections_between_p): New function.
1865 (relax_delay_slots): Call it when testing if the jump insn
1866 is removable. Use targetm.can_follow_jump when testing if
1867 the conditional branch can follow an unconditional jump.
1869 2015-01-27 Caroline Tice <cmtice@google.com>
1871 Committing VTV Cywin/Ming patch for Patrick Wollgast
1872 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1873 if -fvtable-verify=preinit/std is used.
1874 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1875 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1876 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1877 if -fvtable-verify=preinit/std is used.
1878 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1879 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1880 if -fvtable-verify=preinit/std is used.
1881 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1882 * config/i386/mingw32.h (LIB_SPEC): Likewise.
1883 * varasm.c (assemble_variable): Add code to properly set the comdat
1884 section and name for the .vtable_map_vars section in case the
1885 target is PE or COFF.
1887 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1890 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1891 make sane BB profile.
1892 (cgraph_node::expand_thunk): Make sane BB profile.
1893 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1894 * cgraph.h (init_lowered_empty_function): Update prototype.
1895 * config/i386/i386.c (make_resolver_func): Update call.
1896 * predict.c (gate): Disable branch prediction pass if
1897 profile is already there.
1899 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1901 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1902 * opth-gen.awk: Likewise.
1903 * common.opt: Mark flag_fp_contract_mode as Optimization.
1905 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
1907 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1908 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1910 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
1913 * config/sh/predicates.md (atomic_arith_operand,
1914 atomic_logical_operand): Remove.
1915 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1916 (atomic_arith_operand_0): New predicate.
1917 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1918 Use atomic_arith_operand_0 for input values.
1919 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1920 atomic_compare_and_swap<mode>_soft_gusa,
1921 atomic_compare_and_swap<mode>_soft_tcb,
1922 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1923 arith_reg_operand instead of register_operand.
1924 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
1925 atomic_arith_operand_0 for newval input.
1926 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1927 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1928 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1929 arith_reg_operand instead of register_operand.
1930 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1931 fetchop_predicate_1, fetchop_constraint_1_llcs,
1932 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1933 fetchop_constraint_1_imask): New code iterator attributes.
1934 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1935 register_operand. Use fetchop_predicate_1.
1936 (atomic_fetch_<fetchop_name>si_hard,
1937 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1938 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1939 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1940 and arith_reg_operand instead of register_operand. Use
1941 fetchop_predicate_1, fetchop_constraint_1_gusa.
1942 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1943 and arith_reg_operand instead of register_operand. Use
1944 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
1946 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1947 and arith_reg_operand instead of register_operand. Use
1948 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
1950 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1951 register_operand. Use atomic_logical_operand_1.
1952 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1953 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1954 arith_reg_operand instead of register_operand.
1955 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1956 Use arith_reg_dest and arith_reg_operand instead of register_operand.
1957 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
1958 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1959 register_operand. Use fetchop_predicate_1.
1960 (atomic_<fetchop_name>_fetchsi_hard,
1961 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1962 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1963 fetchop_constraint_1_llcs.
1964 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1965 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1966 fetchop_constraint_1_gusa.
1967 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1968 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1969 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
1970 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1971 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1972 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
1973 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1974 register_operand. Use atomic_logical_operand_1.
1975 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1976 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1977 arith_reg_operand instead of register_operand.
1978 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1979 arith_reg_operand instead of register_operand. Use logical_operand
1980 and K08. Adjust asm sequence to allow R0 usage.
1981 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1982 arith_reg_operand instead of register_operand. Use logical_operand
1985 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1988 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1989 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1990 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1991 only get_full_len HOST_WIDE_INTs from get_val () array rather than
1992 all bits in *val_wide.
1994 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
1996 * varpool.c (tls_model_names): Fix names.
1997 (varpool_node::dump): Dump tls- prefix for tls models.
1999 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
2000 Bernd Schmidt <bernds@codesourcery.com>
2001 Nathan Sidwell <nathan@codesourcery.com>
2003 * config/nvptx/mkoffload.c: New file.
2004 * config/nvptx/t-nvptx: Add build rules for it.
2005 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2006 (extra_programs): Add mkoffload.
2007 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2009 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2011 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2014 * cfgexpand.c (reorder_operands): Skip debug gimples.
2016 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
2018 PR tree-optimization/64277
2019 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2020 range info when possible to refine estimation.
2022 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2024 PR tree-optimization/64718
2025 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2026 be a 16bit unsigned integer when n->range is 16.
2027 (bswap_replace): Convert src to that type if necessary for all bswap
2028 sizes. Fix rotation right notation in nearby comment. Use bswap_type
2029 set in pass_optimize_bswap::execute ().
2031 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
2033 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2034 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2035 integer and floating point variants.
2036 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2038 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
2040 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2041 for all vector modes.
2043 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2046 * doc/sourcebuild.texi (comdat_group): Document.
2048 2015-01-28 Terry Guo <terry.guo@arm.com>
2050 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2052 2015-01-27 David Malcolm <dmalcolm@redhat.com>
2054 * toplev.c (print_version): Add param "show_global_state", and
2055 only print GGC and plugin information if it is true.
2056 (init_asm_output): Pass in "true" for the new param when calling
2058 (process_options): Likewise.
2059 (toplev::main): Likewise.
2060 * toplev.h (print_version): Add new param to decl.
2062 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2066 * tree.c (lookup_binfo_at_offset): New function.
2067 (get_binfo_at_offset): Use it.
2069 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2072 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2073 on vtable being vtable.
2075 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2077 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2078 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2080 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2081 -mno-hotpatch options. Change syntax of -mhotpatch= option.
2082 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2084 (s390_hotpatch_trampoline_halfwords_max): Renamed.
2085 (s390_hotpatch_hw_max): New name.
2086 (s390_hotpatch_trampoline_halfwords): Renamed.
2087 (s390_hotpatch_hw_before_label): New name.
2088 (get_hotpatch_attribute): Removed.
2089 (s390_hotpatch_hw_after_label): New name.
2090 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2092 (s390_attribute_table): Ditto.
2093 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2094 (s390_function_num_hotpatch_hw): New name.
2095 Remove special handling of inline functions and hotpatching.
2096 Return number of nops before and after the function label.
2097 (s390_can_inline_p): Removed.
2098 (s390_asm_output_function_label): Emit a configurable number of nops
2099 after the function label.
2100 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2101 (TARGET_CAN_INLINE_P) Removed.
2102 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
2104 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2105 Jiong Wang <jiong.wang@arm.com>
2107 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2109 (cb<optab><mode>1): Likewise.
2110 * config/aarch64/iterators.md (bcond): New define_code_attr.
2112 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2114 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2117 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2119 * config/s390/s390.c (s390_register_move_cost): Increase costs for
2122 2015-01-27 Richard Biener <rguenther@suse.de>
2124 * tree-vrp.c (update_value_range): Intersect the range with
2125 old recorded SSA name range information.
2127 2015-01-27 Nick Clifton <nickc@redhat.com>
2129 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2130 BC, DE and HL registers directly, not via AX.
2131 When decrementing the stack pointer by a large amount, transfer SP
2132 into AX and perform the subtraction there.
2133 (rl78_expand_epilogue): Perform the inverse of the above
2136 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2138 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2140 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2141 Yury Gribov <y.gribov@samsung.com>
2144 * ubsan.c (ubsan_source_location): Refactor code.
2145 (ubsan_type_descriptor): Update type size. Refactor code.
2147 2015-01-27 Richard Biener <rguenther@suse.de>
2149 PR tree-optimization/56273
2150 PR tree-optimization/59124
2151 PR tree-optimization/64277
2152 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2153 from the first VRP pass.
2155 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2158 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2159 handle the first argument in the same loop as all the other arguments.
2161 PR rtl-optimization/61058
2162 * jump.c (cleanup_barriers): Update basic block boundaries
2163 if BLOCK_FOR_INSN is non-NULL on PREV.
2165 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
2167 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2168 bounds narrowing, already instrumented calls and calls to
2169 not instrumentable functions.
2171 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2173 PR tree-optimization/64807
2174 * wide-int.cc (wi::divmod_internal): Clear
2175 b_dividend[dividend_blocks_needed].
2177 2015-01-26 DJ Delorie <dj@redhat.com>
2179 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2180 volatile memory references.
2182 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
2185 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2187 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2188 shifts if it already fits into K08.
2190 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2193 * ipa-inline.c (inline_small_functions): Print "unknown" even
2194 if edge->call_stmt is non-NULL, but has builtins or unknown
2198 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2199 with asterisk, skip the first character.
2201 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2204 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2207 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
2210 * config/i386/i386.md (*movdi_internal): Also check operand 0
2211 to determine TYPE_LEA operand.
2212 (*movsi_internal): Ditto.
2214 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2216 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2217 OPTION_MASK_QUAD_MEMORY_ATOMIC.
2219 2015-01-26 Renlin Li <renlin.li@arm.com>
2221 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2223 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2226 2015-01-26 Richard Biener <rguenther@suse.de>
2229 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2230 combining two BIT_AND_EXPR predicates.
2232 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2235 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2237 2015-01-26 Terry Guo <terry.guo@arm.com>
2239 * config/arm/arm.c (arm_file_start): Update the assignment of
2242 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
2244 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2246 config/arm/arm.md: Include the new Cortex-A57 model.
2247 (generic_sched): Don't use generic_sched when tuning for
2250 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
2251 Uros Bizjak <ubizjak@gmail.com>
2253 * config/i386/i386.c (get_builtin_code_for_version): Add
2254 support for BMI and BMI2 multiversion functions.
2256 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2258 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2259 (extract_bit_field): Likewise.
2260 (extract_low_bits): Likewise.
2261 (expand_mult): Likewise.
2262 (expand_mult_highpart_adjust): Likewise.
2264 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
2266 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2267 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2268 * config/i386/i386.c (processor_model): Add
2269 M_INTEL_COREI7_BROADWELL.
2270 (arch_names_table): Add "broadwell".
2272 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
2281 * config/sh/sh-protos.h
2282 (sh_extending_set_of_reg::can_use_as_unextended_reg,
2283 sh_extending_set_of_reg::use_as_unextended_reg,
2284 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2285 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2286 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2287 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2288 (sh_treg_insns): New class.
2289 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2290 (scope_counter): New class.
2291 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2292 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2293 sh_extending_set_of_reg::can_use_as_unextended_reg,
2294 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2295 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2296 sh_split_treg_set_expr): New functions.
2297 (addsubcosts): Handle treg_set_expr.
2298 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2299 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2300 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2301 (sh_insn_operands_modified_between_p): Make non-static.
2302 * config/sh/predicates.md (zero_extend_movu_operand): Allow
2303 simple_mem_operand in addition to displacement_mem_operand.
2304 (zero_extend_operand): Don't allow zero_extend_movu_operand.
2305 (treg_set_expr, treg_set_expr_not_const01,
2306 arith_reg_or_treg_set_expr): New predicates.
2307 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2308 arith_or_int_operand instead of logical_operand. Convert to
2309 insn_and_split. Try to optimize constant operand in splitter.
2310 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
2311 (*tstqi_t_zero): Delete.
2312 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2313 (tstsi_t_and_not): Delete.
2314 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2315 Convert to insn_and_split.
2316 (unnamed split, tstsi_t_zero_extract_xor,
2317 tstsi_t_zero_extract_subreg_xor_little,
2318 tstsi_t_zero_extract_subreg_xor_big): Delete.
2319 (*tstsi_t_shift_mask): New insn_and_split.
2320 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2321 to recombine with surrounding insns when splitting.
2322 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2323 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2324 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2325 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2326 (*cbranch_div0s: Delete.
2327 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2328 Try to recombine with surrounding insns when splitting. Add operand
2330 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2331 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2332 *addc_r_r_msb, *addc_2r_msb): Delete.
2333 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
2335 (*addc_negreg_t): New insn_and_split.
2336 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2337 Try to recombine with surrounding insns when splitting.
2338 Add operand order variants.
2339 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2340 insn_and_split patterns.
2341 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
2342 surrounding insns when splitting.
2343 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2344 (*rotcl): Likewise. Add zero_extract variant.
2345 (*ashrsi2_31): New insn_and_split.
2346 (*negc): Convert to insn_and_split. Use treg_set_expr.
2347 (*zero_extend<mode>si2_disp_mem): Update comment.
2348 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2350 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
2351 with surrounding insns when splitting.
2352 (any_treg_expr_to_reg): New insn_and_split.
2353 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2354 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2355 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2356 *zero_extract_2): New single bit zero extract patterns.
2357 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2358 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2359 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2360 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2362 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2363 register_operand for set source.
2365 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
2367 * i386.opt (prefetch_sse): New targetsave.
2368 * i386.c (ix86_function_specific_save): Save prefetch_sse.
2369 (ix86_function_specific_restore): Restore prefetch_sse and initialize
2370 ix86_cost/ix86_tune_cost.
2372 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2374 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2375 Support the JIT by using 0 as the language type.
2377 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
2380 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
2381 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
2382 (mark_regno_live, process_bb_lives): Pass new parameter value to
2383 make_hard_regno_born.
2385 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2387 PR rtl-optimization/63637
2388 PR rtl-optimization/60663
2389 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2390 if elt->cost is MAX_COST for ASM_OPERANDS.
2391 (find_sets_in_insn): Fix up comment typo.
2392 (cse_insn): Don't set src_volatile for all non-volatile
2393 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2394 or with "memory" clobber. Set elt->cost to MAX_COST
2395 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
2396 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2398 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
2400 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2403 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
2405 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2406 libgcc/config/i386/elf-lib.h.
2408 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2411 * gcc.c (print_configuration): Don't print a blank line at the end
2413 (run_attempt): ... but here unstead.
2416 * omp-low.c (scan_sharing_clauses): Don't ignore
2417 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2418 on target data/update constructs.
2420 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2423 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2424 (DEBUG_RELOAD): Removed define.
2425 (m32c_limit_reload_class): Enable traces with if DEBUG0.
2426 (m32c_function_arg): Added a type cast.
2427 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2428 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2429 * config/m32c/bitops.md (andqi3_16): Likewise.
2430 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2431 (push_a01_l): Likewise.
2433 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2436 * main.c (main): Construct toplev instances with init_signals=true.
2437 * toplev.c (general_init): Add param "init_signals", and use it to
2438 conditionalize the calls to signal and host_hooks.extra_signals.
2439 (toplev::toplev): Add param "init_signals".
2440 (toplev::main): When invoking general_init, pass m_init_signals
2441 to control whether signal-handlers are installed.
2442 * toplev.h (toplev::toplev): Add param "init_signals".
2443 (toplev::m_init_signals): New field.
2445 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2448 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2449 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2450 latter may be affected by the former (e.g. on i686).
2452 2015-01-23 Martin Liska <mliska@suse.cz>
2454 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2455 false positive during profiledbootstrap.
2457 2015-01-23 Tom de Vries <tom@codesourcery.com>
2460 * lto-opts.c (lto_write_options): Output non-explicit conservative
2462 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2463 (append_compiler_options): Pass -fopenacc through.
2465 2015-01-23 Tom de Vries <tom@codesourcery.com>
2468 * lto-opts.c (lto_write_options): Output non-explicit conservative
2470 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2471 (append_compiler_options): Pass -fopenmp through.
2473 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2476 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2479 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2480 * diagnostic.def (DK_ICE_NOBT): New kind.
2481 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2482 like DK_ICE, but never print backtrace.
2483 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2484 (internal_error_no_backtrace): New function.
2485 * gcc.c (execute): Use internal_error_no_backtrace instead of
2488 2015-01-22 Jeff Law <law@redhat.com>
2491 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2492 improve code density for small immediate to memory case.
2493 (insv): Better handle bitfield assignments when the field is
2494 being set to all ones.
2495 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2498 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2499 Jakub Jelinek <jakub@redhat.com>
2501 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2502 for !TARGET_LIBC_PROVIDES_SSP version and
2503 -fstack-protector-{all,strong,explicit} otherwise.
2504 * config/freebsd.h (LINK_SSP_SPEC): Handle
2505 -fstack-protector-{strong,explicit}.
2507 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
2508 H.J. Lu <hongjiu.lu@intel.com>
2511 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2514 2015-01-22 Wei Mi <wmi@google.com>
2516 PR rtl-optimization/64557
2517 * dse.c (record_store): Call get_addr for mem_addr.
2518 (check_mem_read_rtx): Likewise.
2520 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
2522 * fold-const.c (const_binop): Add early return for non-tcc_binary.
2524 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
2526 * toplev.c (init_local_tick): Process the failure when read
2527 fails for random_seed.
2529 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2530 'pretty_name' to avoid memory overflow.
2532 2015-01-22 Richard Biener <rguenther@suse.de>
2535 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2536 abnormal coalescing on undefined SSA names.
2538 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
2542 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2544 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2546 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
2549 * fold-const.c (fold_checksum_tree): Don't include value of
2550 expr->decl_with_vis.symtab_node in the checksum.
2552 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2554 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2556 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
2559 * gcc.c (insert_comments): New function.
2560 (try_generate_repro): Call it.
2561 (append_text): Removed.
2563 2015-01-22 Richard Biener <rguenther@suse.de>
2565 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2566 with IL incompatible options. Properly honor user optimize
2569 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
2571 PR rtl-optimization/64682
2572 * combine.c (distribute_notes): When moving a death note for
2573 a register that is set in the new I2, make sure to put it
2576 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
2578 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2581 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2584 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2585 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2586 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2589 * doc/invoke.texi (-fsanitize=vptr): Document.
2591 PR rtl-optimization/62078
2592 * dse.c: Include cfgcleanup.h.
2593 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2594 anything call purge_all_dead_edges and cleanup_cfg at the end
2597 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
2599 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2602 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2604 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2607 2015-01-21 David Sherwood <david.sherwood@arm.com>
2608 Tejas Belagod <Tejas.Belagod@arm.com>
2610 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2611 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2612 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2615 2015-01-21 David Sherwood <david.sherwood@arm.com>
2616 Tejas Belagod <Tejas.Belagod@arm.com>
2618 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2619 (aarch64_reverse_mask): New decls.
2620 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2621 (insn_count): New mode_attr.
2622 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2623 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2624 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2625 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2626 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2627 (aarch64_simd_st4): New patterns.
2628 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2629 (aarch64_reverse_mask): New functions.
2631 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
2633 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2635 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2636 addressing modes for BE.
2637 (aarch64_print_operand): Add 'R' specifier.
2638 (aarch64_simd_disambiguate_copy): Delete.
2639 (aarch64_simd_emit_reg_reg_move): New function.
2640 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2641 in define_splits for structural moves.
2642 (mov<mode>): Use less restrictive predicates.
2643 (*aarch64_mov<mode>): Simplify and only allow for LE.
2644 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2646 2015-01-21 Alan Hayward <alan.hayward@arm.com>
2648 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2650 2015-01-21 Richard Henderson <rth@redhat.com>
2653 * ccmp.c (used_in_cond_stmt_p): Remove.
2654 (expand_ccmp_expr): Don't use it.
2656 2015-01-21 Nick Clifton <nickc@redhat.com>
2658 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2661 2015-01-21 Richard Biener <rguenther@suse.de>
2664 * tree-core.h (builtin_info, builtin_info_type): Turn from
2665 an object with two arrays into an array of an object with
2666 decl and two flags, implicit_p and declared_p.
2667 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2668 set_builtin_decl, set_builtin_decl_implicit_p,
2669 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2670 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2671 * builtins.c (builtin_info): Adjust.
2672 * gimplify.c (gimplify_addr_expr): References to builtins
2673 that have been declared by the user makes them eligible for
2674 use by the compiler. Call set_builtin_decl_implicit_p on them.
2676 2015-01-20 Jeff Law <law@redhat.com>
2679 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2680 allow pc-relative addresses in operand predicates or constraints.
2682 2015-01-21 Bin Cheng <bin.cheng@arm.com>
2684 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2685 neon on aarch32 processors for stringops.
2687 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2690 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2692 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2695 * ipa-inline.c: Include lto-streamer.h
2696 (report_inline_failed_reason): Output source file differences and
2697 flags on optimization/target node mismatch.
2698 (can_inline_edge_p): Consider caller to be the outer inline function;
2699 be less restrictive about matching opimize and optimize_size attributes.
2700 (inline_account_function_p): Break out from ...
2701 (inline_small_functions): ... here.
2702 * ipa-inline-transform.c (clone_inlined_nodes): Use
2703 inline_account_function_p.
2704 (inline_call): Use optimize attribution; use inline_account_function_p.
2705 (inline_transform): Use opt_for_fn.
2706 * ipa-inline.h (inline_account_function_p): Declare.
2708 2015-01-20 Jakub Jelinek <jakub@redhat.com>
2711 * dwarf2out.c (decl_piece_node): Don't put bitsize into
2712 mode if bitsize <= 0.
2713 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2714 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2715 sizes and positions.
2717 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
2719 * config/nios2/nios2.c (nios2_asm_file_end): Implement
2720 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2722 (TARGET_ASM_FILE_END): Define.
2724 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2726 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2727 (struct tune_params): Use the enum.
2728 * arm.c (arm_*_tune): Update.
2729 (arm_option_override): Update.
2731 2015-01-20 Richard Biener <rguenther@suse.de>
2734 * ipa-reference.c (add_static_var): Inline ...
2735 (analyze_function): ... here after splitting out from ...
2736 (is_proper_for_analysis): ... this.
2738 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
2741 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2742 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2743 replace the conditional with it's true branch.
2744 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2745 (arm_lra_p): Remove.
2747 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
2749 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2751 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2753 * config/tilegx/mul-tables.c: Move symtab.h include after
2754 coretypes.h include.
2755 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2756 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2757 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2758 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2759 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2761 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
2765 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2767 PR rtl-optimization/64081
2768 * loop-iv.c (def_pred_latch_p): New function.
2769 (latch_dominating_def): Allow specific cases with non-single
2771 (iv_get_reaching_def): Likewise.
2772 (check_complex_exit_p): New function.
2773 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2774 with exits not executing on any iteration.
2776 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2779 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2782 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2785 * i386.c (gate): Check flag_expensive_optimizations and
2787 (ix86_option_override_internal): Drop optimize_size condition
2788 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2789 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2791 (ix86_avx256_split_vector_move_misalign,
2792 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2793 * sse.md (all uses of TARGET_PREFER_AVX128): Add
2794 optimize_insn_for_speed_p check.
2796 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2798 * config/mips/mips.h (FP_ASM_SPEC): New define.
2799 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2802 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
2805 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2806 nullptr for insn when reaching the first insn.
2807 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2808 (sh_insn_operands_modified_between_p): Add nullptr check.
2809 (sh_find_extending_set_of_reg): Fix log message. Don't accept
2810 sign extending mem load if the insn contains any UNSPEC or
2813 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2815 * params.def (inline-unit-growth): Drop to 15%.
2816 * invoke.texi (inline-unit-growth): Document change.
2818 2015-01-19 Martin Liska <mliska@suse.cz>
2821 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2822 function for second argument of OBJ_TYPE_REF.
2824 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2827 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2828 whether function is an alias.
2830 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2832 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2835 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2837 PR rtl-optimization/64671
2838 * lra-remat.c (operand_to_remat): Don't consider jump and call
2841 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
2843 * config/rs6000/default64.h: Include rs6000-cpus.def.
2844 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2845 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2846 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2848 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2850 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2851 pseudo-op to specify assembler dialect.
2853 2015-01-19 Martin Liska <mliska@suse.cz>
2856 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2857 Handle safe potentially removed nodes during filtering.
2859 2015-01-19 Martin Liska <mliska@suse.cz>
2861 * doc/extend.texi (no_icf): Add new attribute description.
2862 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2863 where the pass attempts to merge a function with no_icf attribute.
2865 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2868 * doc/md.texi (ARM Options): Document register constraints.
2870 2015-01-19 Jiong Wang <jiong.wang@arm.com>
2871 Andrew Pinski <apinski@cavium.com>
2874 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2875 (ashl<mode>3): Don't expand if operands[2] is not constant.
2877 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2880 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2881 Match xor-and-xor RTL pattern.
2883 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2885 PR rtl-optimization/64081
2886 * loop-iv.c (def_pred_latch_p): New function.
2887 (latch_dominating_def): Allow specific cases with non-single
2889 (iv_get_reaching_def): Likewise.
2890 (check_complex_exit_p): New function.
2891 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2892 with exits not executing on any iteration.
2894 2015-01-19 Jakub Jelinek <jakub@redhat.com>
2896 * common.opt (fgraphite): Fix a typo.
2898 2015-01-19 Felix Yang <felix.yang@huawei.com>
2900 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2902 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2903 uminp, smax_nanp, smin_nanp): New builtins.
2904 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2905 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2906 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2907 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2908 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2909 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2910 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2911 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2912 vpminnms_f32): Rewrite using builtin functions.
2914 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2917 * omp-low.c (offload_symbol_decl): Remove variable.
2918 (get_offload_symbol_decl): Remove function.
2919 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2920 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2921 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2922 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2923 BUILT_IN_GOACC_UPDATE don't pass it at all.
2925 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2927 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2930 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2932 * ipa-chkp.c (chkp_produce_thunks): Add early param
2933 to split thunks production into two passes. Keep
2934 'always_inline' function bodies after the first pass.
2935 (pass_data_ipa_chkp_early_produce_thunks): New.
2936 (pass_ipa_chkp_early_produce_thunks): New.
2937 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2938 chkp_produce_thunks signature.
2939 (make_pass_ipa_chkp_early_produce_thunks): New.
2940 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2941 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2942 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2944 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2946 * cgraph.c (cgraph_node::dump): Dump profile flags.
2948 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
2951 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2952 reg appear first in the parallel.
2954 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2956 * ipa-reference.c (set_reference_optimization_summary,
2957 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2959 (ignore_module_statics): New static var.
2960 (propagate_bits): If ipa-reference is disabled, do not look into local
2962 (analyze_function): Disable analysis when ipa_reference is disabled.
2963 (generate_summary): Do not dump when reference is disabled;
2964 collect vars accessed from functions with ipa-reference disabled.
2965 (get_read_write_all_from_node): When ipa-reference is disabled, use the
2967 (gate): Enable for LTO.
2968 (ignore_edge_p): New function.
2969 (propagate): Skip functions w/o ipa-reference analysis.
2970 * optc-save-gen.awk: Handle optimize_debug correctly.
2971 * opth-gen.awk: Likewise.
2972 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2973 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2974 fira-share-save-slots, fira-share-spill-slots,
2975 fmodulo-sched-allow-regmoves, fpartial-inlining,
2976 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2977 ftracer, ftree-parallelize-loops, fassociative-math,
2978 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2980 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2981 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2983 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2986 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2989 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2991 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2993 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
2995 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2996 Remove duplicate option listings.
2998 2015-01-18 Felix Yang <felix.yang@huawei.com>
3000 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3001 (autofdo_source_profile::get_callsite_total_count,
3002 function_instance::get_function_instance_by_decl,
3003 string_table::get_index, string_table::get_index_by_decl,
3004 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3005 Fix comment typos. Reformatting and minor code rearrangement.
3007 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3009 * config/rs6000/rs6000.md (probe_stack): Delete.
3010 (probe_stack_address): New.
3012 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3014 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3015 to test for 32-bit ABIs, not !TARGET_POWERPC64.
3017 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3019 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3020 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
3021 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
3023 (rs6000_libcall_value): Use the new function.
3025 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
3027 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3029 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
3031 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3032 implement a more precise life analysis for it during backward scan.
3034 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3036 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3038 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
3040 PR rtl-optimization/52773
3041 * calls.c (emit_library_call_value): When pushing arguments use
3042 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3043 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
3044 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3046 2015-01-17 Jeff Law <law@redhat.com>
3048 PR rtl-optimization/32790
3049 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3050 not ZERO_EXTEND in SET_DESTs.
3052 2015-01-17 Alan Modra <amodra@gmail.com>
3054 * cprop.c (do_local_cprop): Revert last change.
3056 2015-01-16 DJ Delorie <dj@redhat.com>
3057 Nick Clifton <nickc@redhat.com>
3059 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3060 (addhi3_real): Likewise. Fix [HL+0] syntax.
3061 (subqi3_real): Likewise.
3062 (subhi3_real): Likewise.
3063 (cbranchqi4_real): Likewise. Allow saddr,#imm.
3064 (cbranchhi4_real): Likewise.
3065 (cbranchhi4_real_inverted): Likewise.
3066 (cbranchsi4_real_lt): Likewise.
3067 (cbranchsi4_real_ge): Likewise.
3068 (cbranchsi4_real_ge): Likewise.
3069 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3070 (sub<mode>3_virt): Likewise.
3071 (cbranchqi4_virt): Likewise.
3072 (cbranchhi4_virt): Likewise.
3073 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3074 always use '[reg+imm]' even when imm is zero.
3075 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3076 (rl78_general_operand): New.
3077 (rl78_nonimmediate_operand): New.
3078 (rl78_nonfar_operand): Use them.
3079 (rl78_nonfar_nonimm_operand): Likewise.
3080 (rl78_stack_based_mem): Fix.
3081 * config/rl78/constraints.md (Ibqi): New.
3086 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3089 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3091 * config/rl78/constrains (Qs8): New constraint.
3092 * config/rl78/rl78.c (rl78_flags_already_set): New function.
3093 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3094 * config/rl78/rl78-real.md (update_Z): New attribute.
3095 Update patterns to set it.
3096 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3097 shorter compare and branch sequence can be used.
3098 (cbranchhi4_real): Likewise.
3099 (cbranchhi4_real_inverted): Likewise.
3101 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3102 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3104 * config/rl78/rl78.c (rl78_get_name_encoding): New.
3105 (rl78_option_override): Allow -mes0 only if C.
3106 (characterize_address): Support subregs of symbol_refs.
3107 (rl78_addr_space_address_mode): Move. Add __near.
3108 (rl78_far_p): Likewise.
3109 (rl78_addr_space_pointer_mode): Likewise.
3110 (rl78_as_legitimate_address): Likewise.
3111 (rl78_addr_space_subset_p): Likewise.
3112 (rl78_addr_space_convert): Likewise.
3113 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3115 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
3117 (rl78_alloc_physical_registers_op1): Change logic to prefer
3118 symbol[BC] addressing.
3119 (frodata_section): New.
3120 (rl78_asm_init_sections): Initialize it.
3121 (rl78_select_section): Put __far readonly symbols in .frodata.
3122 (rl78_make_type_far): New.
3123 (rl78_insert_attributes): Force all readonly symbols to be
3125 (rl78_asm_out_integer): New.
3126 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3127 * config/rl78/rl78.opt (-mes0): New.
3129 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3130 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3131 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3132 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3133 (rl78_saddr_p): New.
3134 (rl78_output_aligned_common): New.
3135 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3136 (rl78_handle_saddr_attribute): New.
3137 (rl78_handle_naked_attribute): New.
3138 (rl78_attribute_table): Add saddr.
3139 (rl78_print_operand_1): Don't print '!' on saddr operands.
3140 (rl78_print_operand_1): Strip encodings.
3142 (rl78_strip_name_encoding): New.
3143 (rl78_attrlist_to_encoding): New.
3144 (rl78_encode_section_info): New.
3145 (rl78_asm_init_sections): New.
3146 (rl78_select_section): New.
3147 (rl78_output_labelref): New.
3148 (rl78_output_aligned_common): New.
3149 (rl78_asm_out_integer): New.
3150 (rl78_asm_ctor_dtor): New.
3151 (rl78_asm_constructor): New.
3152 (rl78_asm_destructor): New.
3154 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3155 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3156 (transcode_memory_rtx): Update.
3157 (rl78_expand_epilogue): Use A_REG instead of 0.
3159 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3161 * config/arm/arm-protos.h (struct tune_params): New field
3162 sched_autopref_queue_depth.
3163 * config/arm/arm.c (sched-int.h): Include header.
3164 (arm_first_cycle_multipass_dfa_lookahead_guard,)
3165 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3166 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3167 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3168 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3169 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3170 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3171 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3172 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
3173 * config/arm/t-arm (arm.o): Update.
3174 * haifa-sched.c (update_insn_after_change): Update.
3175 (rank_for_schedule): Use auto-prefetcher model, if requested.
3176 (autopref_multipass_init): New static function.
3177 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3178 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3179 variable for debug dumps.
3180 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3181 (autopref_multipass_dfa_lookahead_guard): New global function that
3182 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3183 (init_h_i_d): Update.
3184 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3185 * sched-int.h (enum autopref_multipass_data_status): New const enum.
3186 (autopref_multipass_data_): Structure for auto-prefetcher data.
3187 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3188 (struct _haifa_insn_data:autopref_multipass_data): New field.
3189 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3190 (autopref_multipass_dfa_lookahead_guard): Declare.
3192 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3194 * rtlanal.c (get_base_term): Handle SCRATCH.
3196 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3198 * config/aarch64/aarch64.c
3199 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3200 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3202 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3203 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3205 2015-01-17 Alan Modra <amodra@gmail.com>
3207 * cprop.c (do_local_cprop): Disallow replacement of fixed
3210 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3213 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3216 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3218 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3219 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3221 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3223 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3224 * config/arm/thumb1.md: ... Here.
3226 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3228 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3229 TImode for TARGET_32BIT.
3231 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3233 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3234 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3236 (rs6000_abi_word_mode): New function.
3238 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3240 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3241 instead of UNITS_PER_WORD to describe the size of stack slots.
3243 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3245 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3246 as rs6000_promote_function_mode. Move comment to there.
3247 (rs6000_promote_function_mode): New function.
3249 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3251 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3252 -mpowerpc64 is active.
3254 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3257 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3260 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3262 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3263 introduced in revision 219724.
3265 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3266 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3269 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3270 destination is not a GP reg.
3271 (*movdi_aarch64): Likewise.
3273 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
3276 * config/rs6000/default64.h: Revert ISA change.
3278 2015-01-16 Richard Biener <rguenther@suse.de>
3281 * tree-ssa-uninit.c: Include tree-cfg.h.
3282 (MAX_SWITCH_CASES): New define.
3283 (convert_control_dep_chain_into_preds): Handle switch statements.
3284 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3285 (normalize_one_pred_1): Do not split bit-manipulations.
3288 2015-01-16 Richard Biener <rguenther@suse.de>
3290 PR tree-optimization/64568
3291 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3292 complex load rewriting for TARGET_MEM_REFs.
3294 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
3296 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3298 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
3301 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3303 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3304 (aarch64_lra_p): Remove.
3306 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3309 * ipa-chkp.h (chkp_instrumentable_p): New.
3310 * ipa-chkp.c: Include tree-inline.h.
3311 (chkp_instrumentable_p): New.
3312 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3313 Fix processing of not instrumentable functions.
3314 (chkp_versioning): Use chkp_instrumentable_p. Warn about
3315 not instrumentable functions.
3316 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3317 chkp_instrumentable_p.
3318 * tree-inline.h (copy_forbidden): New.
3319 * tree-inline.c (copy_forbidden): Not static anymore.
3321 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3323 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3326 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3328 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3329 type OP_OUT to OP_INOUT.
3331 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3333 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3334 (high x) y) to y if x and y have the same base.
3336 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3338 * config/arm/cortex-a57.md: New.
3339 * config/aarch64/aarch64.md: Include it.
3340 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3341 * config/aarch64/aarch64-tune.md: Regenerate.
3343 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
3346 * ccmp.c (expand_ccmp_next): New function.
3347 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3348 and compare insn sequence.
3349 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3350 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3351 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3352 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3353 (*ccmp_ior): Changed to ccmp_ior<mode>.
3354 (cmp<mode>): New pattern.
3355 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3357 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3359 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
3361 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3362 _mm256_bsrli_epi128): New.
3363 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3365 2015-01-15 Jiong Wang <jiong.wang@arm.com>
3367 * expmed.c (store_bit_field_using_insv): Improve warning message.
3368 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3370 2015-01-15 Jiong Wang <jiong.wang@arm.com>
3372 PR rtl-optimization/64011
3373 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3374 there is partial overflow.
3376 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3378 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3380 (nds32_expand_epilogue_v3pop): Likewise.
3381 * config/nds32/nds32.md (sibcall): Define this for sibling call
3383 (sibcall_register): Likewise.
3384 (sibcall_immediate): Likewise.
3385 (sibcall_value): Likewise.
3386 (sibcall_value_register): Likewise.
3387 (sibcall_value_immediate): Likewise.
3388 (sibcall_epilogue): Likewise.
3389 (epilogue): Pass false to indicate this is not a sibcall epilogue.
3390 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3391 (nds32_expand_epilogue_v3pop): Likewise.
3393 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3395 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3396 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3397 (return_internal): New.
3398 (return): Define this named pattern.
3399 (simple_return): Define this named pattern.
3400 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3401 pattern instead of unspec_volatile_func_return.
3402 (nds32_expand_epilogue_v3pop): Likewise.
3403 (nds32_can_use_return_insn): New function.
3405 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3407 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3408 * config/nds32/nds32.md (pop25return): New.
3409 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3410 pop25return pattern.
3412 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3414 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3415 -mforbid-fp-as-gp, and -mex9 options.
3417 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3419 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3420 remove -mgp-direct option.
3422 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3424 * doc/invoke.texi (--param early-inlining-insns): Update default value.
3425 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3427 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3429 * ipa-inline.c (inline_small_functions): Work around hints
3432 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
3435 * doc/invoke.texi (Option Summary): Document new Nios II
3437 (Nios II Options): Likewise.
3438 * config/nios2/nios2.opt: Add -mgpopt= option support.
3439 Modify existing -mgpopt and -mno-gpopt options to be aliases.
3440 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3441 * config/nios2/nios2.c (nios2_option_override): Adjust
3443 (nios2_in_small_data_p): Return true for explicit small data
3444 sections even with -G0.
3445 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3448 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3451 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3453 (inline_call): Fix removal of aliases.
3455 2015-01-15 Jakub Jelinek <jakub@redhat.com>
3457 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3458 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3459 * opts.c (common_handle_option): Add -fsanitize=vptr.
3460 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3461 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3462 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3463 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3464 (ubsan_expand_vptr_ifn): New prototype.
3465 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3466 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3467 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3468 expand_LOOP_VECTORIZED): Make argument nameless, remove
3470 (expand_UBSAN_VPTR): New function.
3471 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3473 (UBSAN_VPTR): New internal function.
3474 * sanopt.c (tree_map_traits): Renamed to ...
3475 (sanopt_tree_map_traits): ... this.
3476 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3477 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3478 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
3479 (maybe_optimize_ubsan_vptr_ifn): New function.
3480 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3481 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
3483 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3484 internal calls like pure functions for aliasing, even when they
3485 have other side-effects that prevent making them ECF_PURE.
3486 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3487 (ubsan_expand_vptr_ifn): New function.
3489 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
3491 PR rtl-optimization/64110
3492 * stmt.c (parse_output_constraint): Process '^' and '$'.
3493 (parse_input_constraint): Ditto.
3494 * lra-constraints.c (process_alt_operands): Process the new
3496 * ira-costs.c (record_reg_classes): Process the new constraint
3498 * genoutput.c (indep_constraints): Add '^' and '$'.
3499 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3500 * doc/md.texi: Add description of the new constraints.
3502 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3503 Bernd Schmidt <bernds@codesourcery.com>
3504 Cesar Philippidis <cesar@codesourcery.com>
3505 James Norris <jnorris@codesourcery.com>
3506 Tom de Vries <tom@codesourcery.com>
3507 Ilmir Usmanov <i.usmanov@samsung.com>
3508 Dmitry Bocharnikov <dmitry.b@samsung.com>
3509 Evgeny Gavrin <e.gavrin@samsung.com>
3510 Jakub Jelinek <jakub@redhat.com>
3512 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3513 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3514 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3516 * builtins.c: Include "gomp-constants.h".
3517 (expand_builtin_acc_on_device): New function.
3518 (expand_builtin, is_inexpensive_builtin): Handle
3519 BUILT_IN_ACC_ON_DEVICE.
3520 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3522 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3524 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3525 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3526 i386/intelmic-offload.h.
3527 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3528 to libgomp and its dependencies.
3529 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3530 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3531 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3532 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3533 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3534 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3535 * doc/generic.texi: Update for OpenACC changes.
3536 * doc/gimple.texi: Likewise.
3537 * doc/invoke.texi: Likewise.
3538 * doc/sourcebuild.texi: Likewise.
3539 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3540 GF_OMP_FOR_KIND_OACC_LOOP.
3541 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3542 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3543 GF_OMP_TARGET_KIND_OACC_UPDATE,
3544 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3546 * gimple.c: Update comments for OpenACC changes.
3547 * gimple.def: Likewise.
3548 * gimple.h: Likewise.
3549 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3550 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3551 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3552 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3553 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3555 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3556 * gimplify.c: Include "gomp-constants.h".
3557 Update comments for OpenACC changes.
3558 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3559 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3560 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3561 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3562 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3563 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3564 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3565 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3566 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3568 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3569 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3570 OMP_CLAUSE_SET_MAP_KIND.
3571 (gimplify_oacc_cache): New function.
3572 (gimplify_omp_for): Handle OACC_LOOP.
3573 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3575 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3576 OACC_EXIT_DATA, OACC_UPDATE.
3577 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3578 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3579 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3580 (gimplify_body): Consider flag_openacc next to flag_openmp.
3581 * lto-streamer-out.c: Include "gomp-constants.h".
3582 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3583 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3584 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3585 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3586 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3587 (BUILT_IN_ACC_ON_DEVICE): New builtins.
3588 * omp-low.c: Include "gomp-constants.h".
3589 Update comments for OpenACC changes.
3590 (struct omp_context): Add reduction_map, gwv_below, gwv_this
3592 (extract_omp_for_data, use_pointer_for_field, install_var_field)
3593 (new_omp_context, delete_omp_context, scan_sharing_clauses)
3594 (create_omp_child_function, scan_omp_for, scan_omp_target)
3595 (check_omp_nesting_restrictions, lower_reduction_clauses)
3596 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3597 Update for OpenACC changes.
3598 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3599 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3600 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3601 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3602 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3603 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
3605 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3606 Handle GF_OMP_FOR_KIND_OACC_LOOP.
3607 (expand_omp_target, lower_omp_target): Handle
3608 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3609 GF_OMP_TARGET_KIND_OACC_UPDATE,
3610 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3611 GF_OMP_TARGET_KIND_OACC_DATA.
3612 (pass_expand_omp::execute, execute_lower_omp)
3613 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3615 (offload_symbol_decl): New variable.
3616 (oacc_get_reduction_array_id, oacc_max_threads)
3617 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3618 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3619 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3620 (oacc_gimple_assign, oacc_initialize_reduction_data)
3621 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3623 (is_targetreg_ctx): Remove function.
3624 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3625 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3626 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3627 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3628 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3629 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3630 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3631 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3632 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3633 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3634 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3635 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3636 * tree-core.h: Update comments for OpenACC changes.
3637 (enum omp_clause_map_kind): Remove.
3638 (struct tree_omp_clause): Change type of map_kind member from enum
3639 omp_clause_map_kind to unsigned char.
3640 * tree-inline.c: Update comments for OpenACC changes.
3641 * tree-nested.c: Likewise. Include "gomp-constants.h".
3642 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3643 (convert_tramp_reference_stmt, convert_gimple_call): Update for
3644 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3645 OMP_CLAUSE_SET_MAP_KIND.
3646 * tree-pretty-print.c: Include "gomp-constants.h".
3647 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3648 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3649 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3650 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3651 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3652 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
3653 instead of OMP_CLAUSE_MAP_*.
3654 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3655 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3656 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3657 * tree-streamer-in.c: Include "gomp-constants.h".
3658 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3659 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
3660 * tree-streamer-out.c: Include "gomp-constants.h".
3661 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3663 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3664 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3665 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3666 * tree.c (omp_clause_num_ops): Update accordingly.
3667 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3669 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3670 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3671 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3672 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3673 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3674 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3675 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3676 (OMP_CLAUSE_SET_MAP_KIND): New macro.
3677 * varpool.c (varpool_node::get_create): Consider flag_openacc next
3679 * config/i386/intelmic-offload.h: New file.
3680 * config/nvptx/offload.h: Likewise.
3682 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3684 * explow.h: Remove duplicate contents.
3685 * dojump.h: Likewise.
3687 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
3689 * arm.c (arm_xgene_tune): Add default initializer for instruction
3692 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3696 * ipa.c (symbol_table::remove_unreachable_nodes):
3697 Do not put abstract origins into boundary.
3699 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
3701 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3702 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3704 2015-01-15 Steve Ellcey <sellcey@mips.com>
3706 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3707 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3708 builtins.def, and chkp-builtins.def.
3710 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
3712 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3715 2015-01-15 Richard Biener <rguenther@suse.de>
3717 PR tree-optimization/61743
3718 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3719 information on PHIs for some simple cases.
3721 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3723 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3725 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3726 * config/arm/arm-cores.def (xgene1): New entry.
3727 * config/arm/arm-tables.opt: Regenerate.
3728 * config/arm/arm-tune.md: Regenerate.
3729 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3731 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3733 * tree-if-conv.c: Include hash-map.h.
3734 (aggressive_if_conv): New variable.
3735 (fold_build_cond_expr): Add simplification of non-zero condition.
3736 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3737 destination block is not always executed.
3738 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3739 than two predecessors if AGGRESSIVE_IF_CONV is true.
3740 (if_convertible_stmt_p): Fix commentary.
3741 (all_preds_critical_p): New function.
3742 (has_pred_critical_p): New function.
3743 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3744 BB can have more than two predecessors and all incoming edges can be
3746 (predicate_bbs): Skip predication for loop exit block, use build2_loc
3747 to compute predicate for true edge.
3748 (find_phi_replacement_condition): Delete this function.
3749 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3750 Allow interchange PHI arguments if EXTENDED is false.
3751 Change check that block containing reduction statement candidate
3752 is predecessor of phi-block since phi may have more than two arguments.
3753 (phi_args_hash_traits): New helper structure.
3754 (struct phi_args_hash_traits): New type.
3755 (phi_args_hash_traits::hash): New function.
3756 (phi_args_hash_traits::equal_keys): New function.
3757 (gen_phi_arg_condition): New function.
3758 (predicate_scalar_phi): Add handling of phi nodes with more than two
3759 arguments, delete COND and TRUE_BB arguments, insert body of
3760 find_phi_replacement_condition to predicate ordinary phi nodes.
3761 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3762 delete call of find_phi_replacement_condition and invoke
3763 predicate_scalar_phi with two arguments.
3764 (insert_gimplified_predicates): Add assert that non-predicated block
3765 don't have statements to insert.
3766 (ifcvt_split_critical_edges): New function.
3767 (ifcvt_split_def_stmt): Likewise.
3768 (ifcvt_walk_pattern_tree): Likewise.
3769 (stmt_is_root_of_bool_pattern): Likewise.
3770 (ifcvt_repair_bool_pattern): Likewise.
3771 (ifcvt_local_dce): Likewise.
3772 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3773 is copy of inner or outer loop force_vectorize field, invoke
3774 ifcvt_split_critical_edges, ifcvt_local_dce and
3775 ifcvt_repair_bool_pattern for aggressive if-conversion.
3777 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
3779 * config/aarch64/aarch64.md: Include xgene1.md.
3780 * config/aarch64/xgene1.md: New file.
3782 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3784 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3785 xgene1 (APM XGene-1) core definition.
3786 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3787 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3788 * doc/invoke.texi: Document -mcpu=xgene1.
3790 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3792 * dojump.h: New header file.
3793 * explow.h: Likewise.
3794 * expr.h: Remove includes.
3795 Move expmed.c prototypes to expmed.h.
3796 Move dojump.c prototypes to dojump.h.
3797 Move alias.c prototypes to alias.h.
3798 Move explow.c prototypes to explow.h.
3799 Move calls.c prototypes to calls.h.
3800 Move emit-rtl.c prototypes to emit-rtl.h.
3801 Move varasm.c prototypes to varasm.h.
3802 Move stmt.c prototypes to stmt.h.
3803 (saved_pending_stack_adjust): Move to dojump.h.
3804 (adjust_address): Move to explow.h.
3805 (adjust_address_nv): Move to emit-rtl.h.
3806 (adjust_bitfield_address): Likewise.
3807 (adjust_bitfield_address_size): Likewise.
3808 (adjust_bitfield_address_nv): Likewise.
3809 (adjust_automodify_address_nv): Likewise.
3810 * explow.c (expr_size): Move to expr.c.
3811 (int_expr_size): Likewise.
3812 (tree_expr_size): Likewise.
3813 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3814 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3815 * genemit.c (main): Generate includes statistics.h, real.h,
3816 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3818 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3819 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3820 explow.h, emit-rtl.h, stmt.h.
3821 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3822 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3823 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3824 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3825 emit-rtl.h, varasm.h, stmt.h.
3826 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3827 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3828 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3829 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3830 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3831 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3832 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3833 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3834 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3835 tm.h tree.h varasm.h vec.h wide-int.h.
3836 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3837 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3838 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3839 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3840 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3841 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3842 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3843 * loop-iv.c: Likewise.
3844 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3845 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3846 statistics.h stmt.h tree.h varasm.h wide-int.h.
3847 * lra-constraints.c: Likewise.
3848 * lra-eliminations.c: Likewise.
3849 * lra-lives.c: Likewise.
3850 * lra-remat.c: Likewise.
3851 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3852 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3853 statistics.h stmt.h tree.h varasm.h wide-int.h.
3854 * hw-doloop.c: Likewise.
3855 * ira-color.c: Likewise.
3856 * ira-emit.c: Likewise.
3857 * loop-doloop.c: Likewise.
3858 * loop-invariant.c: Likewise.
3859 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3860 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3861 statistics.h stmt.h tree.h varasm.h wide-int.h.
3862 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3863 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3864 statistics.h stmt.h tree.h varasm.h wide-int.h.
3865 * combine-stack-adj.c: Likewise.
3868 * ifcvt.c: Likewise.
3869 * ira-costs.c: Likewise.
3871 * lra-coalesce.c: Likewise.
3872 * lra-spills.c: Likewise.
3873 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3874 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3875 stmt.h varasm.h wide-int.h.
3876 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3877 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3879 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3880 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3881 statistics.h stmt.h varasm.h wide-int.h.
3882 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3883 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3884 varasm.h wide-int.h.
3885 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3886 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3887 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3888 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3889 statistics.h stmt.h.
3890 * config/tilepro/tilepro.c: Likewise.
3891 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3892 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3893 * config/pdp11/pdp11.c: Likewise.
3894 * config/xtensa/xtensa.c: Likewise.
3895 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3896 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3898 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3899 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3900 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3901 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3902 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3903 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3904 * rtl-chkp.c: Likewise.
3905 * tree-chkp-opt.c: Likewise.
3906 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3907 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3908 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3909 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3910 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3911 statistics.h stmt.h.
3912 * tree-vect-data-refs.c: Likewise.
3913 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3914 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3915 rtl.h statistics.h stmt.h varasm.h.
3916 * internal-fn.c: Likewise.
3917 * ipa-icf-gimple.c: Likewise.
3918 * lto-section-out.c: Likewise.
3919 * tree-data-ref.c: Likewise.
3920 * tree-nested.c: Likewise.
3921 * tree-outof-ssa.c: Likewise.
3922 * tree-predcom.c: Likewise.
3923 * tree-pretty-print.c: Likewise.
3924 * tree-scalar-evolution.c: Likewise.
3925 * tree-ssa-strlen.c: Likewise.
3926 * tree-vect-loop.c: Likewise.
3927 * tree-vect-patterns.c: Likewise.
3928 * tree-vect-slp.c: Likewise.
3929 * tree-vect-stmts.c: Likewise.
3931 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3932 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3934 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3935 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3936 statistics.h stmt.h varasm.h.
3937 * loop-unroll.c: Likewise.
3938 * ubsan.c: Likewise.
3939 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3940 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3942 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3943 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3944 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3945 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3946 statistics.h stmt.h.
3947 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3948 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3949 statistics.h stmt.h varasm.h.
3950 * gimple-match-head.c: Likewise.
3951 * lto-cgraph.c: Likewise.
3952 * lto-section-in.c: Likewise.
3953 * lto-streamer-in.c: Likewise.
3954 * lto-streamer-out.c: Likewise.
3955 * tree-affine.c: Likewise.
3956 * tree-cfg.c: Likewise.
3957 * tree-cfgcleanup.c: Likewise.
3958 * tree-if-conv.c: Likewise.
3959 * tree-into-ssa.c: Likewise.
3960 * tree-ssa-alias.c: Likewise.
3961 * tree-ssa-copyrename.c: Likewise.
3962 * tree-ssa-dse.c: Likewise.
3963 * tree-ssa-forwprop.c: Likewise.
3964 * tree-ssa-live.c: Likewise.
3965 * tree-ssa-math-opts.c: Likewise.
3966 * tree-ssa-pre.c: Likewise.
3967 * tree-ssa-sccvn.c: Likewise.
3968 * tree-tailcall.c: Likewise.
3969 * tree-vect-generic.c: Likewise.
3970 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3971 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3972 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3973 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3974 * varasm.c: Likewise.
3975 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3976 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3978 * init-regs.c: Likewise.
3980 * omp-low.c: Likewise.
3981 * stack-ptr-mod.c: Likewise.
3982 * tree-ssa-reassoc.c: Likewise.
3983 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3984 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3986 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3987 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3988 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3989 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3990 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3991 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3992 * tree-ssa-phiopt.c: Likewise.
3993 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3994 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3995 * config/fr30/fr30.c: Likewise.
3996 * config/frv/frv.c: Likewise.
3998 * final.c: Likewise.
3999 * optabs.c: Likewise.
4000 * passes.c: Likewise.
4001 * simplify-rtx.c: Likewise.
4003 * toplev.c: Likewise.
4004 * var-tracking.c: Likewise.
4005 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4006 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4007 * lower-subreg.c: Likewise.
4008 * postreload-gcse.c: Likewise.
4010 * reginfo.c: Likewise.
4011 * store-motion.c: Likewise.
4012 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4013 fixed-value.h hashtab.h real.h stmt.h varasm.h.
4014 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4015 fixed-value.h hashtab.h statistics.h stmt.h.
4016 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4017 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4018 * except.c: Likewise.
4019 * explow.c: Likewise.
4020 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4021 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4023 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4024 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4025 * tree-ssa-structalias.c: Likewise.
4026 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4027 fixed-value.h insn-config.h real.h statistics.h.
4028 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4029 fixed-value.h insn-config.h real.h statistics.h stmt.h.
4030 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4031 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4032 * cfgbuild.c: Likewise.
4033 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4034 fixed-value.h real.h rtl.h statistics.h stmt.h.
4035 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4036 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4037 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4038 fixed-value.h real.h statistics.h stmt.h.
4039 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4040 fixed-value.h real.h statistics.h stmt.h varasm.h.
4041 * cprop.c: Likewise.
4042 * modulo-sched.c: Likewise.
4043 * postreload.c: Likewise.
4044 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4045 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4046 statistics.h stmt.h varasm.h.
4047 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4048 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4049 rtl.h statistics.h stmt.h varasm.h.
4050 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4051 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4053 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4054 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4056 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4057 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4059 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4060 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4061 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4062 function.h real.h statistics.h stmt.h varasm.h.
4063 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4064 insn-config.h real.h statistics.h stmt.h.
4065 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4066 statistics.h stmt.h.
4067 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4068 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4069 statistics.h stmt.h varasm.h.
4070 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4071 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4072 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4073 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4074 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4075 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4076 statistics.h stmt.h varasm.h.
4077 * ipa-polymorphic-call.c: Likewise.
4078 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4079 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4080 statistics.h stmt.h.
4081 * config/c6x/c6x.c: Likewise.
4082 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4083 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4084 statistics.h stmt.h varasm.h.
4085 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4086 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4088 * ipa-split.c: Likewise.
4089 * tree-eh.c: Likewise.
4090 * tree-ssa-dce.c: Likewise.
4091 * tree-ssa-loop-niter.c: Likewise.
4092 * tree-vrp.c: Likewise.
4093 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4094 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4096 * config/nds32/nds32-fp-as-gp.c: Likewise.
4097 * config/nds32/nds32-intrinsic.c: Likewise.
4098 * config/nds32/nds32-isr.c: Likewise.
4099 * config/nds32/nds32-md-auxiliary.c: Likewise.
4100 * config/nds32/nds32-memory-manipulation.c: Likewise.
4101 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4102 * config/nds32/nds32-predicates.c: Likewise.
4103 * config/nds32/nds32.c: Likewise.
4104 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4105 fixed-value.h hashtab.h real.h statistics.h.
4106 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4107 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4108 * config/arm/arm.c: Likewise.
4109 * config/avr/avr.c: Likewise.
4110 * config/bfin/bfin.c: Likewise.
4111 * config/h8300/h8300.c: Likewise.
4112 * config/i386/i386.c: Likewise.
4113 * config/ia64/ia64.c: Likewise.
4114 * config/iq2000/iq2000.c: Likewise.
4115 * config/m32c/m32c.c: Likewise.
4116 * config/m32r/m32r.c: Likewise.
4117 * config/m68k/m68k.c: Likewise.
4118 * config/mcore/mcore.c: Likewise.
4119 * config/mep/mep.c: Likewise.
4120 * config/mips/mips.c: Likewise.
4121 * config/mn10300/mn10300.c: Likewise.
4122 * config/moxie/moxie.c: Likewise.
4123 * config/pa/pa.c: Likewise.
4124 * config/rl78/rl78.c: Likewise.
4125 * config/rx/rx.c: Likewise.
4126 * config/s390/s390.c: Likewise.
4127 * config/sh/sh.c: Likewise.
4128 * config/sparc/sparc.c: Likewise.
4129 * config/spu/spu.c: Likewise.
4130 * config/stormy16/stormy16.c: Likewise.
4131 * config/v850/v850.c: Likewise.
4132 * config/vax/vax.c: Likewise.
4133 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4134 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4135 * config/msp430/msp430.c: Likewise.
4136 * predict.c: Likewise.
4137 * value-prof.c: Likewise.
4138 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4139 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4140 * config/microblaze/microblaze.c: Likewise.
4141 * config/nios2/nios2.c: Likewise.
4142 * config/rs6000/rs6000.c: Likewise.
4143 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4144 insn-config.h real.h rtl.h statistics.h stmt.h.
4145 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4146 insn-config.h real.h statistics.h stmt.h.
4147 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4148 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4149 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4150 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4151 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4152 fixed-value.h real.h statistics.h stmt.h.
4153 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4154 fixed-value.h statistics.h stmt.h.
4155 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4158 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4160 * gengtype.c (create_user_defined_type): Workaround
4161 -Wmaybe-uninitialized false positives.
4162 * cse.c (fold_rtx): Likewise.
4163 * loop-invariant.c (gain_for_invariant): Likewise.
4165 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
4167 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4168 set the memory attributes in all cases but clear MEM_EXPR if need be.
4170 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4172 PR tree-optimization/64434
4173 * cfgexpand.c (reorder_operands): New function.
4174 (expand_gimple_basic_block): Insert call of reorder_operands if
4177 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
4179 * config/mips/micromips.md (*swp): Remove explicit parallel.
4180 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4181 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4182 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4183 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4184 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4185 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4186 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4187 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4188 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4189 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4190 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4191 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4192 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4193 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4194 (mips_wrdsp): Likewise.
4195 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4197 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4198 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4199 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4200 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4201 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4202 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4203 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4204 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4205 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4207 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4209 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4210 (mips_print_operand): Support 'y' to print exact log2 in decimal
4212 * config/mips/mips.h (ISA_HAS_LSA): New define.
4213 (ISA_HAS_DLSA): Likewise.
4214 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4215 * config/mips/predicates.md (const_immlsa_operand): New predicate.
4217 2015-01-15 Martin Liska <mliska@suse.cz>
4220 * optc-save-gen.awk: Add support for array types.
4222 2015-01-15 Richard Biener <rguenther@suse.de>
4225 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4226 for MEM_REF access functions with the same base can never partially
4229 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4231 * common.opt: New option -fstack-protector-explicit.
4232 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4233 (stack_protect_decl_phase): Handle stack_protect attribute for
4234 explicit stack protection requests.
4235 (expand_used_vars): Similarly.
4236 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4237 * doc/extend.texi: Add documentation for "stack_protect" attribute.
4238 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4240 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
4243 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4245 (sh_extending_set_of_reg): New struct.
4246 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4247 sh_remove_reg_dead_or_unused_notes): New Declarations.
4248 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4249 sh_find_extending_set_of_reg, sh_split_tst_subregs,
4250 sh_extending_set_of_reg::use_as_extended_reg): New functions.
4251 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4252 convert to insn_and_split and use new function sh_split_tst_subregs.
4254 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
4256 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4258 (Optimization Options): Move -fuse-ld documentation to...
4259 (Link Options): ...here.
4261 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4263 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4265 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4266 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4267 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4268 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4269 instead of ZR for the memory operand of LL/SC.
4270 (compare_and_swap_12, sync_add<mode>): Likewise.
4271 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4272 (sync_new_<optab>_12, sync_nand_12): Likewise.
4273 (sync_old_nand_12, sync_new_nand_12): Likewise.
4274 (sync_sub<mode>, sync_old_add<mode>): Likewise.
4275 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4276 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4277 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4278 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4279 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4280 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4281 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4282 * doc/md.texi (ZC): Update description.
4284 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4286 * builtins.c (expand_builtin_atomic_exchange): Remove error when
4287 memory model is CONSUME.
4288 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4289 expand_builtin_atomic_store): Change invalid memory model errors to
4291 (expand_builtin_atomic_clear): Change invalid model errors to warnings
4292 and issue warning for CONSUME.
4294 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
4296 * lto-cgraph: Update function comments for
4297 lto_symtab_encoder_encode_*.
4299 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4301 * Makefile.in (site.exp): Do not set ENABLE_LTO.
4303 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4305 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4306 * lto-cgraph.c (select_what_to_stream): Remove argument, use
4307 lto_stream_offload_p instead.
4308 * lto-streamer.h (select_what_to_stream): Remove argument.
4309 * passes.c (ipa_write_summaries): Likewise.
4310 * tree-pass.h (ipa_write_summaries): Likewise.
4312 2015-01-14 Richard Biener <rguenther@suse.de>
4314 PR tree-optimization/59354
4315 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4316 groups larger than the slp group size as having gaps.
4318 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4321 * builtins.c (get_memmodel): Promote consume to acquire always.
4323 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4326 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
4329 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4332 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4334 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4335 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4336 AVX512VBMI, as it implies AVX512BW.
4338 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4341 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4342 (vec_unpacks_hi_v16sf): Ditto.
4344 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4346 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4349 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4351 * doc/invoke.texi (mapcs): Mention deprecation.
4352 (mapcs-frame): Likewise.
4354 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4357 * config/arm/arm.c (callee_saved_reg_p): Define.
4358 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4359 register is callee saved instead of !call_used_regs[reg].
4360 (thumb1_compute_save_reg_mask): Likewise.
4362 2015-01-14 Hale Wang <hale.wang@arm.com>
4364 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4367 2015-01-14 Richard Biener <rguenther@suse.de>
4370 * tree-inline.c (insert_debug_decl_map): Check destination
4371 function MAY_HAVE_DEBUG_STMTS.
4372 (insert_init_debug_bind): Likewise.
4373 (insert_init_stmt): Remove redundant check.
4374 (remap_gimple_stmt): Drop debug stmts if the destination
4375 function has var-tracking assignments disabled.
4377 2015-01-14 Martin Liska <mliska@suse.cz>
4379 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4380 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4382 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4385 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4386 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4388 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4390 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4391 level from an ARCH; do not inject the default.
4392 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4393 MIPS_ISA_LEVEL_SPEC.
4394 (MIPS_ISA_NAN2008_SPEC): Update comment.
4395 (BASE_DRIVER_SELF_SPECS): Likewise.
4396 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4397 MIPS_DEFAULT_ISA_LEVEL_SPEC.
4398 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4399 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4400 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
4402 2015-01-14 Richard Biener <rguenther@suse.de>
4404 PR tree-optimization/64493
4405 PR tree-optimization/64495
4406 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4407 assign the proper vectorized PHI to the inner loop exit PHIs.
4409 2015-01-14 Joey Ye <joey.ye@arm.com>
4411 * config/arm/arm.c (arm_compute_save_reg_mask):
4412 Do not save lr in case of tail call.
4413 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4415 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
4417 * tree-vrp.c (check_array_ref): Emit more warnings
4418 for warn_array_bounds >= 2.
4419 * common.opt: New option -Warray-bounds=.
4420 * doc/invoke.texi: Document -Warray-bounds=.
4422 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
4424 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4425 (mforbid-fp-as-gp): Remove.
4427 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4428 (nds32_symbol_load_store_p): Remove.
4429 (nds32_fp_as_gp_check_available): Clean up implementation.
4430 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4432 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4433 fp-as-gp and ex9 cases.
4435 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4437 * tree-profile.c (init_ic_make_global_vars): Drop workaround
4438 for bintuils bug 14342.
4439 (init_ic_make_global_vars): Likewise.
4440 (gimple_init_edge_profiler): Likewise.
4441 (gimple_gen_ic_func_profiler): Likewise.
4443 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4445 * ipa-inline.c (inline_small_functions): Swap the operands in
4448 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4451 * ipa-inline-analysis.c (node_growth_cache): Remove.
4452 (initialize_growth_caches): Do not initialize it.
4453 (free_growth_caches): Do not free it.
4454 (do_estimate_growth): Rename to ...
4455 (estimate_growth): ... this one; drop growth cache code.
4456 (growth_likely_positive): Always go the heuristics way.
4457 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4458 (reset_edge_caches): Do not reset node growth.
4459 (heap_edge_removal_hook): Do not maintain cache.
4460 (inline_small_functions): Likewise; strenghten sanity check.
4461 (ipa_inline): Do not maintain caches.
4462 * ipa-inline.h (node_growth_cache): Remove.
4463 (do_estimate_growth): Remove to ...
4464 (estimate_growth): this one; remove inline version.
4465 (reset_node_growth_cache): Remove.
4467 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4470 * ipa-inline.c (inline_small_functions): Update callee keys after
4471 resolving speculation
4472 (inline_small_functions): Always check monotonicity of the queue.
4474 2015-01-13 Marek Polacek <polacek@redhat.com>
4477 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4479 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4481 PR rtl-optimization/64286
4482 * ree.c (combine_reaching_defs): Move part of comment earlier,
4483 remove !SCALAR_INT_MODE_P check.
4484 (add_removable_extension): Don't add vector mode
4485 extensions if all uses of the source register aren't the same
4488 2015-01-13 Renlin Li <renlin.li@arm.com>
4490 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4491 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4493 2015-01-13 Martin Liska <mliska@suse.cz>
4495 * ipa-icf.c (sem_function::equals_private): Call new functions
4496 cl_target_option_print_diff and cl_optimization_print_diff.
4497 * optc-save-gen.awk (cl_target_option_print_diff): New function.
4498 (cl_optimization_print_diff): Likewise.
4499 * opth-gen.awk: Likewise.
4501 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
4503 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4504 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4505 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4506 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4507 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4508 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4510 2015-01-13 Andrew Pinski <apinski@cavium.com>
4512 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4513 instead of src mode.
4515 2015-01-13 Richard Biener <rguenther@suse.de>
4518 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4521 2015-01-13 Andrew Pinski <apinski@cavium.com>
4523 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4525 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4527 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4530 * cfgexpand.c (expand_computed_goto): Don't call
4531 convert_memory_address here.
4533 2015-01-13 Richard Biener <rguenther@suse.de>
4535 PR tree-optimization/64406
4536 * tree-loop-distibution.c (pass_loop_distribution::execute):
4537 Reset the SCEV hashtable if we distributed anything.
4539 2015-01-13 Richard Biener <rguenther@suse.de>
4541 PR tree-optimization/64404
4542 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4543 SLP types for CSEd loads.
4545 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4547 PR tree-optimization/64436
4548 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4549 merge of two symbolic numbers for a bitwise OR to ...
4550 (perform_symbolic_merge): This. Also fix computation of the range and
4551 end of the symbolic number corresponding to the result of a bitwise OR.
4553 2015-01-13 Richard Biener <rguenther@suse.de>
4555 PR tree-optimization/64568
4556 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4557 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4559 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4561 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4562 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4564 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4566 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4567 target-specific symbol_ref flag.
4568 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4569 resides in rodata section.
4570 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4571 (nds32_encode_section_info): New function.
4573 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4575 * config/nds32/nds32.md (call): Use pseudo instruction bal which
4576 clobbers TA_REGNUM if large code model is specified.
4577 (call_register): Likewise.
4578 (call_immediate): Likewise.
4579 (call_value): Likewise.
4580 (call_value_register): Likewise.
4581 (call_value_immediate): Likewise.
4583 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4585 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4586 (TARGET_CMODEL_MEDIUM): New macro.
4587 (TARGET_CMODEL_LARGE): New macro.
4588 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4589 code model setting in assembly code.
4591 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4593 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4594 Remove MASK_GP_DIRECT flag.
4595 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4596 one of the multilib default options.
4597 * config/nds32/nds32.opt (mgp-direct): Remove.
4598 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4599 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
4601 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4603 * config/nds32/nds32.opt (mcmodel): Add new option.
4604 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4605 to describe code model.
4607 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
4610 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4612 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
4614 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4615 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4616 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4617 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4618 __builtin_sh_set_fpscr.
4620 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4622 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4623 after a funtion name just to indicate it is a function.
4624 ([-fsanitize-undefined-trap-on-error]): Likewise.
4625 ([-fdbg-cnt=]): Likewise.
4626 ([-mmemcpy]): Likewise.
4627 ([-mflush-func]): Likewise.
4628 ([-msynci]): Likewise.
4630 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4632 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4635 2015-01-12 Jakub Jelinek <jakub@redhat.com>
4637 PR tree-optimization/64563
4638 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4639 instead of != VR_VARYING.
4642 * config/i386/i386.c (ix86_expand_prologue): Add
4643 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4645 PR tree-optimization/64454
4646 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4647 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4648 for signed or [0, op1 - 1] for unsigned modulo.
4649 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4650 even if op1 does not satisfy integer_pow2p.
4653 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4655 2015-01-12 Jeff Law <law@redhat.com>
4658 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4659 (trunchiqi2, truncsihi2): Similarly.
4661 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4662 rather than calling F.
4664 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4666 * tsan.c (instrument_expr): Use force_gimple_operand.
4667 Use may_be_nonaddressable_p instead of is_gimple_addressable.
4669 2015-01-12 Richard Biener <rguenther@suse.de>
4671 PR tree-optimization/64530
4672 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4675 2015-01-12 Richard Biener <rguenther@suse.de>
4678 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4681 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4683 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4684 Cortex-A17 tuning parameters.
4685 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4687 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4689 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4690 * config/arm/arm.c (arm_macro_fusion_p): New function.
4691 (arm_macro_fusion_pair_p): Likewise.
4692 (TARGET_SCHED_MACRO_FUSION_P): Define.
4693 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4694 (ARM_FUSE_NOTHING): Likewise.
4695 (ARM_FUSE_MOVW_MOVT): Likewise.
4696 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4697 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4698 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4699 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4700 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4701 arm_cortex_a5_tune): Specify fuseable_ops value.
4703 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
4706 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4707 test for PIE with copy reloc.
4708 * configure: Regenerated.
4710 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4712 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4714 (arm_tls_descseq_addr): Likewise.
4715 (arm_gen_movmemqi): Likewise.
4716 (arm_expand_epilogue_apcs_frame): Likewise.
4717 (arm_expand_epilogue): Likewise.
4718 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
4721 2015-01-12 Martin Liska <mliska@suse.cz>
4724 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4725 volatility for correct operands.
4727 2015-01-12 Martin Liska <mliska@suse.cz>
4729 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4730 that a function is not leaf.
4731 (sem_function::compare_polymorphic_p): Likewise.
4733 2015-01-12 Martin Liska <mliska@suse.cz>
4735 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4736 that a function is not leaf.
4737 (sem_function::compare_polymorphic_p): Likewise.
4739 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4741 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4742 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4743 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4744 fold-const.h, tree-check.h.
4746 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4750 * ipa-inline.c (compute_uninlined_call_time,
4751 compute_inlined_call_time): Use counts for extra precision when
4753 (big_speedup_p): Fix formating.
4754 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4755 (relative_time_benefit): Remove.
4756 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4757 merge guessed and read profile paths.
4758 (inline_small_functions): Count only !optimize_size functions into
4759 initial size; be more lax about sanity check when profile is used;
4760 be sure to update inlined function profile when profile is read.
4762 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4765 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4766 cost when edge becomes direct.
4767 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4768 is resolved or when introducing new speculation.
4770 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
4774 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4775 '||' to fix typo issue.
4777 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4778 accept and return NULL.
4780 2015-01-12 Martin Liska <mliska@suse.cz>
4782 * cgraph.c (cgraph_edge::remove_callee): Move function to header
4783 file for being inlined.
4784 (cgraph_set_edge_callee): Delete.
4785 (cgraph_edge::redirect_callee): Move function to header file
4787 (cgraph_edge::make_direct): Use new function.
4788 (cgraph_edge::dump_edge_flags): New function created from
4789 static dump_edge_flags function.
4790 (cgraph_node::dump): Use new function.
4791 (cgraph_edge::verify_count_and_frequency): New function created
4792 from verify_edge_count_and_frequency.
4793 (cgraph_edge::verify_corresponds_to_fndecl): New function created
4794 from verify_edge_corresponds_to_fndecl.
4795 (verify_edge_corresponds_to_fndecl): Delete.
4796 (cgraph_node::verify_node): Use new function.
4797 * cgraph.h (cgraph_edge::set_callee): New function.
4798 (cgraph_edge::dump_edge_flags): Likewise.
4799 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4801 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
4803 * ipa-utils.c (estimate_function_body_sizes): Do not
4804 free node params when called late with early=true.
4806 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
4808 * doc/md.texi (Instruction Patterns): Rewrite text for
4810 (Example): Likewise.
4812 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
4814 * doc/invoke.texi (Option Summary): Break long lines.
4815 [(-fdiagnostics-color)]: Put long literal in @smallexample
4817 [(-fsanitize-recover)]: Likewise.
4818 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4819 [(-ffast-math)]: Likewise.
4820 [(--param max-inline-insns-recursive)]: Likewise.
4821 [(--param max-inline-recursive-depth)]: Likewise.
4822 [(-mno-text-section-literals)]: Likewise.
4824 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4826 * doc/install.texi: Update for libgomp being renamed from "GNU
4827 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4829 * doc/sourcebuild.texi: Likewise.
4831 2015-01-10 Anthony Green <green@moxielogic.com>
4833 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4834 mul.x availability for moxiebox configuration.
4836 2015-01-09 Anthony Green <green@moxielogic.com>
4838 * config/moxie/moxie.md: Tabify assembly output.
4840 2015-01-09 Anthony Green <green@moxielogic.com>
4842 * config/moxie/moxie.md (CC_REG): Correct register definition.
4844 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4846 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4847 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4850 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4852 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4854 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4855 Jakub Jelinek <jakub@redhat.com>
4858 * lto-streamer.h (lto_stream_offload_p): New declaration.
4859 * lto-streamer.c (lto_stream_offload_p): New variable.
4860 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4861 at the same time as section_name_prefix.
4862 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4863 if lto_stream_offload_p.
4864 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4865 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4866 (write_ts_function_decl_tree_pointers): Don't
4867 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4868 * tree-streamer-in.c (unpack_value_fields): Don't stream
4869 TREE_TARGET_OPTION in if ACCEL_COMPILER.
4870 (lto_input_ts_function_decl_tree_pointers): Don't stream
4871 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4872 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4873 instead of section_name_prefix string comparisons.
4875 2015-01-09 Jakub Jelinek <jakub@redhat.com>
4877 PR rtl-optimization/64536
4878 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4881 2015-01-09 Michael Collison <michael.collison@linaro.org>
4883 PR tree-optimization/64322
4884 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4885 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4887 2015-01-09 Tom de Vries <tom@codesourcery.com>
4889 PR rtl-optimization/64539
4890 * regcprop.c (kill_clobbered_values): Factor out of ...
4891 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
4892 instead of note_stores with kill_clobbered_value.
4894 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4896 * ginclude/unwind-arm-common.h: Revert previous commit.
4898 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4900 * config.gcc (arm*-*-freebsd*): New configuration.
4901 * config/arm/freebsd.h: New file.
4902 * config.host: Add extra components for arm*-*-freebsd*.
4903 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4904 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4906 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4908 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4910 * config/rs6000/t-rtems: Add e6500 multilibs.
4912 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4914 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4917 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4919 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4920 MULTILIB_EXCEPTIONS.
4922 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4924 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4925 MULTILIB_EXCEPTIONS.
4927 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4929 * config/arm/t-rtems-eabi: Rename to...
4930 * config/arm/t-rtems: ...this.
4931 * config/arm/rtems-eabi.h: Rename to...
4932 * config/arm/rtems.h: ...this.
4933 * config.gcc (arm*-*-rtems*): Reflect changes above.
4935 2015-01-09 Richard Biener <rguenther@suse.de>
4937 PR tree-optimization/64410
4938 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4940 (execute_update_addresses_taken): Deal with that.
4941 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4942 loads/stores for complex variables.
4944 2015-01-09 Martin Liska <mliska@suse.cz>
4946 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4948 (func_checker::compare_memory_operand): New function.
4949 (func_checker::compare_operand): Split case to newly
4951 (func_checker::compare_cst_or_decl): New function.
4952 (func_checker::compare_gimple_call): Identify
4954 (func_checker::compare_gimple_assign): Likewise.
4955 * ipa-icf-gimple.h: New function.
4957 2015-01-09 Martin Liska <mliska@suse.cz>
4960 * sreal.c (sreal::dump): Change unsigned format to signed for
4962 (sreal::to_double): Replace exp2 with scalbln.
4964 2015-01-09 Martin Liska <mliska@suse.cz>
4966 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4967 * ipa-icf.c (sem_function::equals_private): Add support for target and
4968 (sem_item_optimizer::merge_classes): Remove redundant function
4969 optimization flags comparison.
4970 * tree.h (target_opts_for_fn): New function.
4972 2015-01-09 Tom de Vries <tom@codesourcery.com>
4974 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4976 2015-01-09 Kito Cheng <kito@0xlab.org>
4978 PR rtl-optimization/64348
4979 * lra-constraints.c (split_reg): Fix caller-save store/restore
4980 instruction generation.
4982 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
4984 PR gcov-profile/61790
4985 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4986 long long. Fallback to int64_t if host doesn't have long long and
4987 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
4989 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4991 PR tree-optimization/63989
4992 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4994 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4995 (get_stridx): If we don't have a record for certain SSA_NAME,
4996 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4997 constant offset, call get_stridx_plus_constant.
4998 (get_stridx_plus_constant): New function.
4999 (zero_length_string): Don't use get_stridx here.
5003 * dse.c (struct insn_info): Mention frame_read set also
5004 before reload for tail calls on some targets.
5005 (scan_insn): Revert 2014-12-22 change. Set frame_read
5006 also before reload for tail calls if
5007 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
5008 instead of add_non_frame_wild_read for non-const/memset
5009 tail calls after reload.
5011 2015-01-08 Jason Merrill <jason@redhat.com>
5013 * ubsan.c (do_ubsan_in_current_function): New.
5014 (pass_ubsan::gate): Use it.
5015 * ubsan.h: Declare it.
5016 * convert.c (convert_to_integer): Use it.
5018 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5021 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5022 compare_code when it is unconditionally overwritten afterwards.
5023 Use ix86_reverse_condition instead of reverse_condition. Don't
5024 change code if *reverse_condition* returned UNKNOWN and don't
5025 swap ct/cf and negate diff in that case.
5027 2015-01-08 Mike Stump <mikestump@comcast.net>
5029 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5030 (pass_tsan_O0::gate): Likewise.
5031 * extend.texi (Function Attributes): Add no_sanitize_thread
5034 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5036 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5037 for registering builtins.
5038 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5039 add -fopenmp to the argv_obstack used when invoking
5042 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5043 add "-m32" or "-m64" to argv_obstack.
5044 (generate_host_descr_file): Likewise, when invoking host_compiler.
5045 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5048 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5050 * config/sh/sh-mem.cc: Use constant as second operand when emitting
5053 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5056 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5057 constant load if constant operand fits into I08.
5059 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5062 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5063 and TREE_THIS_VOLATILE for MEM_REFs.
5064 (build5_stat): Fix up initialization of TREE_READONLY and
5065 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5067 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
5070 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5071 of r for the second alternative of the destination operand.
5073 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
5076 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5078 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5080 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5082 ([-fivar-visibility], [-fvisibility]): Likewise.
5084 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5086 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5087 the file where @code, @command, etc is more appropriate.
5089 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
5091 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5092 of -mrecip= documentation.
5094 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5097 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5098 correct reload handler if -m32 -mpowerpc64 is used.
5100 2015-01-06 Tom de Vries <tom@codesourcery.com>
5102 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5104 2015-01-08 Christian Bruel <christian.bruel@st.com>
5107 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5109 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
5111 PR tree-optimization/63259
5112 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5113 if optab exists for 16bit byteswap.
5115 2015-01-06 Jakub Jelinek <jakub@redhat.com>
5117 * opts.c (common_handle_option): Add support for
5118 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5119 * doc/invoke.texi: Document -fno-sanitize=all,
5120 -f{,no-}sanitize-recover=all. Document that
5121 -fsanitize=float-cast-overflow is not enabled
5122 by -fsanitize=undefined. Fix up documentation
5123 of -f{,no-}sanitize-recover.
5125 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
5127 * config.gcc: Add Visium support.
5128 * configure.ac: Likewise.
5129 * configure: Regenerate.
5130 * doc/extend.texi (interrupt attribute): Add Visium.
5131 * doc/invoke.texi: Document Visium options.
5132 * doc/install.texi: Document Visium target.
5133 * doc/md.texi: Document Visium constraints.
5134 * common/config/visium: New directory.
5135 * config/visium: Likewise.
5137 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5139 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5140 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5142 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5144 * combine.c (combine_validate_cost): Do not count the cost of a
5145 split I2 twice. Do not display it twice in the dump, either.
5147 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5149 Revert parts of r219199.
5150 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5152 ([-Wtraditional]): Restore markup on <limits.h>.
5154 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5157 * doc/invoke.texi: Document -Wsuggest-override.
5159 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
5161 PR rtl-optimization/64287
5162 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5163 (process_options): Disable flag_ipa_ra if profiling.
5165 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5167 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5169 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
5171 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5172 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5173 put under #if TARGET_LOOPS guard.
5175 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
5177 * config/i386/i386.c (output_387_binary_op): Use std::swap.
5179 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
5181 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5182 * rtl.h (refers_to_regno_p): Add overload.
5184 * bt-load.c: Likewise.
5185 * combine.c: Likewise.
5186 * df-scan.c: Likewise.
5187 * sched-deps.c: Likewise.
5188 * config/s390/s390.c: Likewise.
5189 * config/m32r/m32r.c: Likewise.
5190 * config/rs6000/spe.md: Likewise.
5191 * config/rs6000/rs6000.c: Likewise.
5192 * config/pa/pa.c: Likewise.
5193 * config/stormy16/stormy16.c: Likewise.
5194 * config/cris/cris.c: Likewise.
5195 * config/arc/arc.md: Likewise.
5196 * config/arc/arc.c: Likewise.
5197 * config/sh/sh.md: Likewise.
5198 * config/sh/sh.c: Likewise.
5199 * config/frv/frv.c: Likewise.
5201 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5204 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5205 call as cleanup of the whole body.
5206 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5207 * tsan.c (replace_func_exit): New function.
5208 (instrument_func_exit): Moved earlier.
5209 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5210 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5212 (tsan_pass): Don't call instrument_func_exit.
5213 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5214 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5218 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5219 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5220 it to libubsan handler instead of EXPR. Fold comparisons earlier,
5221 if the result is integer_zerop, return NULL_TREE.
5222 * convert.c (convert_to_integer): Pass expr as ARG.
5224 PR tree-optimization/64465
5225 * tree-inline.c (redirect_all_calls): During inlining
5226 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5227 changed the stmt to a non-throwing call.
5229 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5231 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5232 etc markup throughout the file.
5234 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5236 Enable experimental TSAN support for Ada.
5237 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5239 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5241 PR tree-optimization/64494
5242 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5243 clear SSA_NAME_ANTI_RANGE_P flag.
5245 2015-01-05 Marek Polacek <polacek@redhat.com>
5247 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5249 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5251 Update copyright years.
5253 * gcc.c (process_command): Update copyright notice dates.
5254 * gcov-dump.c: Ditto.
5256 * doc/cpp.texi: Bump @copying's copyright year.
5257 * doc/cppinternals.texi: Ditto.
5258 * doc/gcc.texi: Ditto.
5259 * doc/gccint.texi: Ditto.
5260 * doc/gcov.texi: Ditto.
5261 * doc/install.texi: Ditto.
5262 * doc/invoke.texi: Ditto.
5264 * auto-profile.c, auto-profile.h: Fix up Copyright line.
5266 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
5268 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5270 ([-fvtable-verify], [-fvtv-debug]): Likewise.
5271 ([-Wabi]): Likewise.
5272 ([-fmessage-length]): Likewise.
5273 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5274 ([-Wno-discarded-qualifiers]): Likewise.
5275 ([-Wnodiscarded-array-qualifiers]): Likewise.
5276 ([-Wno-virtual-move-assign]): Likewise.
5277 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5278 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5279 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5280 ([-fsanitize-undefined-trap-on-error]): Likewise.
5281 ([-floop-interchange]): Likewise.
5282 ([-ftree-coalesce-inlined-vars]): Likewise.
5283 ([-fvect-cost-model]): Likewise.
5284 ([-flto]): Likewise.
5285 ([--param]): Likewise.
5286 (Spec Files): Likewise.
5287 ([-mstrict-align]): Likewise.
5288 ([-mfix-cortex-a53-835769]): Likewise.
5289 ([-march], [-mtune]): Likewise.
5290 ([-mpic-register]): Likewise.
5291 ([-munaligned-access]): Likewise.
5292 ([-msp8]): Likewise.
5293 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5294 (AVR Built-in Macros): Likewise.
5295 ([-mpreferred-stack-boundary]): Likewise.
5296 ([-mtune-crtl]): Likewise.
5297 ([-mashf]): Likewise.
5298 ([-mmcu=]): Likewise.
5299 ([-minrt]): Likewise.
5300 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5301 ([-mupper-regs]): Likewise.
5302 ([-matomic-model]): Likewise.
5303 ([-mdiv]): Likewise.
5304 ([-mzdcbranch]): Likewise.
5305 ([-mdisable-callt]): Likewise.
5306 ([-msoft-float]): Likewise.
5307 ([-m8byte-align]): Likewise.
5308 ([-fstack-reuse]): Likewise.
5310 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5312 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5313 Fix markup, light copy-editing.
5314 ([-fauto-profile]): Rewrite to fix formatting and content
5317 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5319 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5320 Copy-edit description.
5321 ([-fisolate-erroneous-paths-attribute]): Likewise.
5322 * common.opt (fisolate-erroneous-paths-dereference):
5323 Copy-edit description.
5324 (fisolate-erroneous-paths-attribute): Likewise.
5326 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5328 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5331 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5333 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5334 ([-fvtv-debug]): Likewise.
5335 ([-Wc++-compat]): Likewise.
5336 ([-Wc++11-compat]): Likewise.
5337 ([-Wc++14-compat]): Likewise.
5338 ([-Wno-sized-deallocation]): Likewise.
5339 ([-femit-class-debug-always]): Likewise.
5340 ([-femit-struct-debug-detailed]): Likewise.
5341 ([-fno-keep-inline-dllexport]): Likewise.
5342 ([-fira-algorithm]): Likewise.
5343 ([-fira-region]): Likewise.
5344 ([-flra-remat]): Likewise.
5345 ([-fipa-ra]): Likewise.
5346 ([-fhoist-adjacent-loads]): Likewise.
5347 ([-fisolate-erroneous-paths-dereference]): Likewise.
5348 ([-fisolate-erroneous-paths-attribute]): Likewise.
5349 ([-ftree-switch-conversion]): Likewise.
5350 ([-ftree-tail-merge]): Likewise.
5351 ([-ftree-loop-if-convert]): Likewise.
5352 ([-ftree-loop-if-convert-stores]): Likewise.
5353 ([-ftree-loop-distribution]): Likewise.
5354 ([-ftree-loop-distribute-patterns]): Likewise.
5355 ([-flto-compression-level]): Likewise.
5356 ([-flto-report]): Likewise.
5357 ([-flto-report-wpa]): Likewise.
5358 ([-fuse-linker-plugin]): Likewise.
5359 ([-mfix-cortex-a53-835769]): Likewise.
5360 ([-mno-fix-cortex-a53-835769]): Likewise.
5361 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5362 explicit listing; add a note to the discussion indicating they
5363 exist. Reorder table to group similar options. Add missing
5364 @opindex entries. Add @need commands throughout the table to
5365 allow it to be split across multiple pages.
5366 ([-m8bit-idiv]): Fix @opindex.
5367 ([-mavx256-split-unaligned-load]): Likewise.
5368 ([-mavx256-split-unaligned-store]): Likewise.
5369 ([-mstack-protector-guard]): Likewise.
5370 ([-mcpu=]): Likewise.
5371 ([-mcpu]): Likewise.
5372 ([-mpointer-size=]): Likewise.
5374 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
5376 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5377 instead of `m' constraint. Likewise for unnamed movb comparison
5378 patterns using reg_before_reload_operand predicate.
5379 * config/pa/predicates.md (reg_before_reload_operand): Tighten
5380 predicate to reject register index and LO_SUM DLT memory forms
5383 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5385 * doc/invoke.texi (Option Summary): Fix spelling of
5386 -fdevirtualize-at-ltrans.
5387 ([-fdevirtualize]): Fix markup.
5388 ([-fdevirtualize-speculatively]): Fix typo.
5389 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
5391 * common.opt (fdevirtualize-at-ltrans): Likewise.
5392 * ipa-devirt.c: Fix typos in comments throughout the file.
5393 (ipa_devirt): Fix typos in format strings for dump output.
5395 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5397 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5398 discussion of defaults, light copy-editing.
5400 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5402 * tsan.c (instrument_expr): corrected previous checkin.
5404 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5406 Instrument bit field and unaligned accesses for TSAN.
5407 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5408 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5409 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5410 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5411 unaligned memory regions.
5413 2015-01-01 Anthony Green <green@moxielogic.com>
5415 * config/moxie/predicates.md (moxie_general_movsrc_operand):
5416 Restrict move source register offsets to 16 bits.
5418 Copyright (C) 2015 Free Software Foundation, Inc.
5420 Copying and distribution of this file, with or without modification,
5421 are permitted in any medium without royalty provided the copyright
5422 notice and this notice are preserved.