1 2015-02-26 Martin Liska <mliska@suse.cz>
2 Jan Hubicka <hubicka@ucw.cz>
5 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
6 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
7 (sem_item_optimizer::process_cong_reduction): Include division by
9 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
10 * ipa-ref.c (ipa_ref::address_matters_p): New function.
11 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
16 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
18 * config/avr/avr.c: Same.
19 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
20 Refuse any constant address not in 0..0xbf.
21 * config/avr/avr.md (*mov<mode>, *movsf): Remove
22 tiny_valid_direct_memory_access_range from insn conditions.
23 (mov<mode>): Don't special-case expansion of avrtiny addresses.
25 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
28 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
29 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30 * config/sh/predicates.md (const_logical_operand): New predicate.
31 * config/sh/sh.md: Add new peephole2 patterns.
33 2015-02-26 Marek Polacek <polacek@redhat.com>
36 * ipa-inline.c (early_inliner): Recompute inline parameters.
38 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
42 instructions with TImode operands are included in the analysis.
44 2015-02-26 Sebastian Pop <s.pop@samsung.com>
46 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
47 of an EDGE_FSM_THREAD.
49 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
51 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
53 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
56 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
58 2015-02-26 Sebastian Pop <s.pop@samsung.com>
60 PR tree-optimization/65048
61 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
62 (thread_through_all_blocks): Call valid_jump_thread_path.
63 Remove invalid FSM jump-thread paths.
65 2015-02-26 Jakub Jelinek <jakub@redhat.com>
67 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
68 (ipa_write_optimization_summaries): Likewise.
69 * tree-streamer.h: Include data-streamer.h.
70 (streamer_mode_table): Declare extern variable.
71 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
72 * lto-streamer-out.c (lto_output_init_mode_table,
73 lto_write_mode_table): New functions.
74 (produce_asm_for_decls): Call lto_write_mode_table when streaming
76 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
77 (lto_create_simple_input_block): Add mode_table argument to the
78 lto_input_block constructors.
79 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
81 * data-streamer-in.c (string_for_index): Likewise.
82 * ipa-inline-analysis.c (inline_read_section): Likewise.
83 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
84 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
85 * lto-streamer-in.c (lto_read_body_or_constructor,
86 lto_input_toplevel_asms): Likewise.
87 (lto_input_mode_table): New function.
88 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
89 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
90 Use bp_pack_machine_mode.
91 * real.h (struct real_format): Add name field.
92 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
93 (class lto_input_block): Add mode_table member.
94 (lto_input_block::lto_input_block): Add mode_table_ argument,
95 initialize mode_table.
96 (struct lto_file_decl_data): Add mode_table field.
97 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
98 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
99 unpack_ts_decl_common_value_fields,
100 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
101 * tree-streamer.c (streamer_mode_table): New variable.
102 * real.c (ieee_single_format, mips_single_format,
103 motorola_single_format, spu_single_format, ieee_double_format,
104 mips_double_format, motorola_double_format,
105 ieee_extended_motorola_format, ieee_extended_intel_96_format,
106 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
107 ibm_extended_format, mips_extended_format, ieee_quad_format,
108 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
109 decimal_single_format, decimal_double_format, decimal_quad_format,
110 ieee_half_format, arm_half_format, real_internal_format): Add name
112 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
114 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
117 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
118 reordering for selective scheduling.
120 2015-02-26 Terry Guo <terry.guo@arm.com>
122 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
123 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
124 (arm_arch_no_volatile_ce): Declare new global variable.
125 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
126 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
127 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
128 (TARGET_NO_VOLATILE_CE): New macro.
129 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
130 volatile memory access in IT block
132 2015-02-25 Uros Bizjak <ubizjak@gmail.com>
135 * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
136 or newer are required.
138 2015-02-25 Kai Tietz <ktietz@redhat.com>
140 PR tree-optimization/61917
141 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
142 that reduc_def_stmt is null.
144 2015-02-25 Martin Liska <mliska@suse.cz>
146 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
147 hard register variables.
149 2015-02-25 Kai Tietz <ktietz@redhat.com>
152 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
153 (symtab::noninterposable_alias): Likewise.
155 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
158 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
160 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
162 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
165 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
166 as split condition; force split via '#' in output pattern.
168 2015-02-25 Richard Biener <rguenther@suse.de>
169 Kai Tietz <ktietz@redhat.com>
171 PR tree-optimization/61917
172 * tree-vect-loop.c (vectorizable_reduction): Allow
173 vect_internal_def without reduction to exit graceful.
175 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
178 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
179 only with NONDEBUG_INSN_P.
181 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
183 Use variadic macros with avr-log.c.
185 * config/avr/avr-protos.h (avr_vdump): New prototype.
186 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
187 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
188 * config/avr/avr-log.c: Adjust comments.
189 (avr_vdump): New function.
190 (avr_vadump): Pass caller as 2nd argument instead of format string.
191 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
192 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
194 2015-02-25 Jakub Jelinek <jakub@redhat.com>
197 * target.def (target_option_stream_in): New target hook.
198 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
199 targetm.target_option.post_stream_in if non-NULL.
200 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
201 * doc/tm.texi: Updated.
202 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
204 (TARGET_OPTION_POST_STREAM_IN): Redefine.
206 2015-02-24 Jeff Law <law@redhat.com>
209 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
210 of operand 0 and operand 2.
211 (zero_cost_loop_end, loop_end): Similarly.
213 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
215 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
218 2015-02-24 DJ Delorie <dj@redhat.com>
220 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
222 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
223 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
224 instead of hardcoding SImode.
226 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
228 * omp-low.c (create_omp_child_function): Tag entrypoint
229 functions with a special attribute.
231 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
234 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
236 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
238 PR rtl-optimization/65123
239 * lra-remat.c (operand_to_remat): Check hard regs in insn
242 2015-02-24 Nick Clifton <nickc@redhat.com>
244 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
247 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
250 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
251 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
252 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
253 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
254 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
255 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
256 (BUILT_IN_GOACC_PARALLEL): Specify as
257 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
258 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
260 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
261 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
262 Remove function types.
263 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
264 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
265 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
268 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
270 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
272 2015-02-24 Jakub Jelinek <jakub@redhat.com>
274 PR tree-optimization/65170
275 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
276 if val[1] < 0, clear also val[2] and return 3.
278 2015-02-24 Alan Modra <amodra@gmail.com>
281 * config/rs6000/rs6000.c (get_memref_parts): Only return true
282 when *base is a reg. Handle nested plus addresses. Simplify
285 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
287 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
288 use natural alignment when optimizing for size.
290 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
293 * config/sh/sh.md (movsicc_true+3): Remove peephole.
294 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
295 * config/sh/sh.c (replace_n_hard_rtx): Remove.
297 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
300 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
301 too big for a wide_int. Implement missing wrapping operation.
303 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
306 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
307 instead of const_int 4294901760.
309 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
311 * config/avr/t-avr: Fix typo in comment.
313 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
315 * doc/rtl.texi (fma): Clarify documentation.
317 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
320 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
323 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
325 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
326 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
327 restrict alignments to absolute_biggest_alignment.
328 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
330 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
331 * doc/tm.texi: Regenerate.
332 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
334 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
337 * ira-color.c (color_pass): Prevent splitting multi-register
340 2015-02-20 Richard Biener <rguenther@suse.de>
342 PR tree-optimization/65136
343 * tree-ssa-propagate.c: Include cfgloop.h.
344 (replace_phi_args_in): Avoid replacing loop latch edge PHI
345 arguments with constants.
347 2015-02-20 Jakub Jelinek <jakub@redhat.com>
348 Martin Liska <mliska@suse.cz>
351 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
352 don't try to create_thunk if stdarg_p. If
353 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
354 redirect_callers if possible.
355 (sem_item_optimizer::execute): Call unregister_hooks here...
356 (ipa_icf_driver): ... instead of here.
358 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
360 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
361 Mark operand 0 as earlyclobber in 2nd alternative.
362 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
363 Write negated shift amount into QI lowpart operand 0 and use it
365 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
367 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
369 * cgraph.h (clone_function_name_1): Declare.
370 * cgraphclones.c (clone_function_name_1): New function.
371 (clone_function_name): Use it.
372 * lto-partition.c: Include "stringpool.h".
373 (must_not_rename, maybe_rewrite_identifier,
374 validize_symbol_for_target): New static functions.
375 (privatize_symbol_name): Use must_not_rename.
376 (promote_symbol): Call validize_symbol_for_target.
377 (lto_promote_cross_file_statics): Likewise.
378 (lto_promote_statics_nonwpa): Likewise.
380 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
383 * config/avr/avr.md (pushhi_insn): New insn.
384 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
386 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
387 Jakub Jelinek <jakub@redhat.com>
389 * tree-streamer.c (preload_common_nodes): Don't preload
390 TI_VA_LIST* for offloading.
391 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
394 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
396 * config/pa/pa.c (pa_emit_move_sequence): Always force
397 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
400 * config/pa/pa.c (pa_reloc_rw_mask): New function.
401 (TARGET_ASM_RELOC_RW_MASK): Define.
402 (pa_cannot_force_const_mem): Revert previous change.
404 2015-02-19 Martin Jambor <mjmabor@suse.cz>
405 Jan Hubicka <hubicka@ucw.cz>
408 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
409 across jump functions.
411 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
413 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
415 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
417 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
419 2015-02-19 Richard Henderson <rth@redhat.com>
422 * varasm.c (default_binds_local_p_2): Don't test node->definition;
423 test DECL_EXTERNAL independent of symtab_node.
425 2015-02-19 Jakub Jelinek <jakub@redhat.com>
428 * varpool.c (varpool_node::get_constructor): Return early
429 if this->lto_file_data is NULL.
431 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
433 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
434 (rank_for_schedule_debug): Update.
435 (ready_sort): Make static. Move sorting logic to ...
436 (ready_sort_debug, ready_sort_real): New static functions.
437 (schedule_block): Sort both debug insns and real insns in preparation
438 for ready list trimming. Improve debug output.
439 * sched-int.h (ready_sort): Remove global declaration.
441 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
443 * ipa-icf.c (sem_function::equals_private): Adjust.
444 (sem_function::bb_dict_test): Take a vec<int> * instead of
446 * ipa-icf.h (bb_dict_test): Likewise.
448 2015-02-18 Jakub Jelinek <jakub@redhat.com>
450 PR gcov-profile/64634
451 * tree-eh.c (frob_into_branch_around): Fix up typos
453 (lower_catch): Put eh_seq resulting from EH lowering of
454 the cleanup sequence after the cleanup rather than before it.
456 2015-02-18 Tom de Vries <tom@codesourcery.com>
458 * common.opt (fstdarg-opt): New option.
459 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
460 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
461 (@item -fstdarg-opt): New item.
463 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
466 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
469 2015-02-18 Jakub Jelinek <jakub@redhat.com>
471 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
473 (ALL_HOST_OBJS): Add mkoffload.o.
474 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
476 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
478 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
479 (compare_virtual_tables): Be smarter about skipping typeinfos;
480 do sane output on virtual table table mismatch.
481 (warn_odr): Be ready for forward declarations of enums;
482 output sane info on base mismatch and virtual table mismatch.
483 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
484 when only one type is polymorphic.
485 (get_odr_type): Fix hashtable corruption.
486 (dump_odr_type): Dump mangled names.
488 2015-02-18 Richard Biener <rguenther@suse.de>
490 PR tree-optimization/65063
491 * tree-predcom.c (determine_unroll_factor): Return 1 if we
492 have replaced looparound PHIs.
494 2015-02-18 Martin Liska <mliska@suse.cz>
496 * lto-streamer.c (lto_streamer_init): Encapsulate
497 streamer_check_handled_ts_structures with checking macro.
499 2015-02-18 Jakub Jelinek <jakub@redhat.com>
502 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
503 section if !implicit_section.
504 (cgraph_node::create_version_clone_with_body): Likewise.
505 * trans-mem.c (ipa_tm_create_version): Likewise.
507 2015-02-18 Richard Biener <rguenther@suse.de>
509 PR tree-optimization/62217
510 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
513 2015-02-18 Marek Polacek <polacek@redhat.com>
516 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
517 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
518 is in range [-16K, -1]. Don't issue run-time error if
519 (ptr > ptr + offset).
521 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
523 * doc/install.texi (nvptx-*-none): New section.
524 * doc/invoke.texi (Nvidia PTX Options): Likewise.
525 * config/nvptx/nvptx.opt: Update.
527 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
528 (access_check): New functions, copied from
529 config/i386/intelmic-mkoffload.c.
530 (main): For non-installed testing, look in all COMPILER_PATHs for
533 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
535 2015-02-18 Andrew Pinski <apinski@cavium.com>
536 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
538 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
539 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
541 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
543 * ipa-visibility.c (function_and_variable_visibility): Only
544 check locality if node is not already local.
545 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
546 call_for_symbol_and_aliases instead of
547 call_for_symbol_thunks_and_aliases.
548 (ipa_inline): Likewise.
549 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
551 * ipa.c (symbol_table::remove_unreachable_nodes): Use
552 call_for_symbol_and_aliases.
553 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
554 (ipa_propagate_frequency_1): Use it; use opt_for_fn
555 (ipa_propagate_frequency): Update.
556 (ipa_profile): Add opt_for_fn gueards.
558 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
560 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
561 * doc/invoke.texi (SH options): Document it.
562 * config/sh/sh.c (sh_insn_length_adjustment): Check
563 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
565 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
567 * common.opt (fipa-cp-alignment): New.
568 * ipa-cp.c (ipcp_store_alignment_results): Check
569 flag_ipa_cp_alignment.
570 * opts.c (default_options_table): Enable -fipa-cp-alignment for
572 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
573 * doc/invoke.texi: Document -fipa-cp-alignment.
575 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
578 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
579 to nil. Adjust comments.
581 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
583 * ipa-visibility.c (function_and_variable_visibility): Only
584 check locality if node is not already local.
585 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
586 call_for_symbol_and_aliases instead of
587 call_for_symbol_thunks_and_aliases.
588 (ipa_inline): Likewise.
589 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
591 * ipa.c (symbol_table::remove_unreachable_nodes): Use
592 call_for_symbol_and_aliases.
593 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
594 (ipa_propagate_frequency_1): Use it; use opt_for_fn
595 (ipa_propagate_frequency): Update.
596 (ipa_profile): Add opt_for_fn guards.
598 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
600 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
601 skipping of "strange" tokens.
603 2015-02-17 Jeff Law <law@redhat.com>
605 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
608 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
610 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
611 as forcing a HARD_DEP between instructions, thereby
612 disallowing rewriting to break dependencies.
614 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
616 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
617 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
618 variables in boundary that have no inlitalizer encoded and are
620 * varasm.c (default_binds_local_p_2): External definitions do not
621 count as definitions here.
623 2015-02-16 Jeff Law <law@redhat.com>
625 PR tree-optimization/64823
626 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
628 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
629 threading through blocks with PHIs, but no statements.
630 (thread_through_normal_block): Distinguish between blocks where
631 we did not process all the statements and blocks with no statements.
633 2015-02-16 Jakub Jelinek <jakub@redhat.com>
634 James Greenhalgh <james.greenhalgh@arm.com>
637 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
638 section if not linkonce. Fix up formatting.
639 (cgraph_node::create_version_clone_with_body): Copy section.
640 * trans-mem.c (ipa_tm_create_version): Likewise.
642 2015-02-16 Richard Biener <rguenther@suse.de>
644 PR tree-optimization/65077
645 * tree-ssa-structalias.c (get_constraint_for_1): Handle
646 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
647 (find_func_aliases): Allow float values to carry pointers again.
649 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
651 * doc/install.texi (Specific): Reorder targets list to put
652 aarch64 in alphabetical order. Add a link to aarch64*-*-*
655 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
656 David Edelsohn <dje.gcc@gmail.com>
659 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
660 mapping class to external variable or function reference.
661 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
664 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
667 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
668 ASM_WEAKEN_DECL if defined.
670 2015-02-16 Richard Biener <rguenther@suse.de>
673 * varasm.c (default_file_start): For LTO produced units
674 emit <artificial> as file directive.
676 2015-02-16 Richard Biener <rguenther@suse.de>
678 PR tree-optimization/63593
679 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
680 stmts and releasing SSA names until...
681 (execute_pred_commoning): ... after processing all chains.
683 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
686 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
689 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
691 * doc/bugreport.texi: Adjust section titles throughout the file
693 * doc/extend.texi: Likewise.
694 * doc/gcov.texi: Likewise.
695 * doc/implement-c.texi: Likewise.
696 * doc/implement-cxx.texi: Likewise.
697 * doc/invoke.texi: Likewise.
698 * doc/objc.texi: Likewise.
699 * doc/standards.texi: Likewise.
700 * doc/trouble.texi: Likewise.
702 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
704 * cgraph.h (symtab_node::has_aliases_p): Simplify.
705 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
706 * tree.c (lookup_binfo_at_offset): Make static.
707 (get_binfo_at_offset): Do not shadow offset; add explanatory
710 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
712 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
713 for all floading point loads and stores except those using a register
715 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
718 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
720 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
721 (do_estimate_growth_1): Record if any uninlinable edge was seen.
722 (estimate_growth): Handle uninlinable edges correctly.
723 (check_callers): New.
724 (growth_likely_positive): Handle aliases correctly.
726 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
728 * ipa-chkp.c: Use iterate_direct_aliases.
729 * symtab.c (resolution_used_from_other_file_p): Move inline.
730 (symtab_node::create_reference): Fix formating.
731 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
732 (symtab_node::iterate_reference): Move inline.
733 (symtab_node::iterate_referring): Move inline.
734 (symtab_node::iterate_direct_aliases): Move inline.
735 (symtab_node::used_from_object_file_p_worker): Inline into ...
736 (symtab_node::used_from_object_file_p): ... this one; move inline.
737 (symtab_node::call_for_symbol_and_aliases): Move inline;
738 use iterate_direct_aliases.
739 (symtab_node::call_for_symbol_and_aliases_1): New method.
740 (cgraph_node::call_for_symbol_and_aliases): Move inline;
741 use iterate_direct_aliases.
742 (cgraph_node::call_for_symbol_and_aliases_1): New method.
743 (varpool_node::call_for_node_and_aliases): Rename to ...
744 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
745 use iterate_direct_aliases.
746 (varpool_node::call_for_symbol_and_aliases_1): New method.
747 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
748 (ipa_discover_readonly_nonaddressable_var): Update.
749 * ipa-devirt.c: Fix formating.
750 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
752 (cgraph_node::call_for_symbol_and_aliases): Move inline.
753 (cgraph_node::call_for_symbol_and_aliases_1): New function..
754 * cgraph.h (used_from_object_file_p_worker): Remove.
755 (resolution_used_from_other_file_p): Move inline.
756 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
757 (symtab_node::iterate_reference): Move inline.
758 (symtab_node::iterate_referring): Move inline.
759 (symtab_node::iterate_direct_aliases): Move inline.
760 (symtab_node::used_from_object_file_p_worker): Inline into ...
761 (symtab_node::used_from_object_file_p): Move inline.
762 * tree-emutls.c (ipa_lower_emutls): Update.
763 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
764 (varpool_node::call_for_node_and_aliases): Remove.
766 2015-02-14 Jakub Jelinek <jakub@redhat.com>
768 PR tree-optimization/62209
769 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
770 op == range->exp, insert seq and gimplified code after labels
771 instead of after the phi.
773 2015-02-13 Jeff Law <law@redhat.com>
776 Revert my change for tree-optimization/64823.
778 2015-02-13 Jakub Jelinek <jakub@redhat.com>
780 PR tree-optimization/65053
781 * tree-ssa-phiopt.c (value_replacement): When moving assign before
782 cond, either reset VR on lhs or set it to phi result VR.
784 2015-02-13 Jeff Law <law@redhat.com>
786 PR tree-optimization/64823
787 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
788 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
789 threading through blocks with PHIs, but no statements.
790 (thread_through_normal_block): Distinguish between blocks where
791 we did not process all the statements and blocks with no statements.
793 PR rtl-optimization/47477
794 * match.pd (convert (plus/minus (convert @0) (convert @1): New
795 simplifier to narrow arithmetic.
797 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
800 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
801 polymorphic call info when type is not known to be preserved.
803 2015-02-13 Maritn Jambor <mjambor@suse.cz>
806 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
807 (inline_call): Use it.
809 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
811 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
812 GOMP_DEVICE_NVIDIA_PTX.
814 2015-02-13 Jakub Jelinek <jakub@redhat.com>
817 * stmt.c (emit_case_nodes): Use void_type_node instead of
818 NULL_TREE as LABEL_DECL type.
820 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
822 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
824 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
825 symbolic references to data to be forced to constant memory on the
828 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
830 PR tree-optimization/65002
831 * tree-cfg.c (pass_data_fixup_cfg): Don't update
833 * tree-sra.c (some_callers_have_no_vuse_p): New.
834 (ipa_early_sra): Reject functions whose callers
835 assume function is read only.
837 2015-02-13 Richard Biener <rguenther@suse.de>
840 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
841 for LTO produced CUs.
843 2015-02-13 Bin Cheng <bin.cheng@arm.com>
845 PR tree-optimization/64705
846 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
847 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
848 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
849 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
850 expand_simple_operations.
852 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
853 Richard Henderson <rth@redhat.com>
856 * cgraphunit.c (cgraph_node::finalize_function): Set definition
857 before notice_global_symbol.
858 (varpool_node::finalize_decl): Likewise.
859 * varasm.c (default_binds_local_p_2): Rename from
860 default_binds_local_p_1, add weak_dominate argument. Use direct
861 returns instead of assigning to local variable. Unify varpool and
862 cgraph paths via symtab_node. Reject undef weak variables before
863 testing visibility. Reorder tests for simplicity.
864 (default_binds_local_p): Use default_binds_local_p_2.
865 (default_binds_local_p_1): Likewise.
866 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
868 (default_elf_asm_output_external): Emit visibility when specified.
870 2015-02-13 Alan Modra <amodra@gmail.com>
872 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
873 code setting up r11 for out-of-line fp restore.
875 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
877 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
878 (muser-mode): Likewise.
880 2015-02-13 Alan Modra <amodra@gmail.com>
882 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
883 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
885 2015-02-12 David Howells <dhowells@redhat.com>
887 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
889 * tree-ssa-uninit.c (dump_predicates): Likewise.
890 * opts.c (print_filtered_help): Likewise.
892 2015-02-12 Jakub Jelinek <jakub@redhat.com>
894 * dwarf2out.c (output_die): Use "%s", name instead of name to
895 avoid -Wformat-security warning.
897 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
898 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
899 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
900 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
902 2015-02-12 Jason Merrill <jason@redhat.com>
904 * common.opt (-flifetime-dse): New.
906 2015-02-12 Jakub Jelinek <jakub@redhat.com>
909 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
911 PR tree-optimization/65014
912 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
913 use original second operand of arg0 or arg1 instead of
914 that adjusted by STRIP_NOPS.
916 2015-02-11 Jeff Law <law@redhat.com>
919 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
920 that needs to be queued, just queue it for a single cycle.
922 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
924 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
925 bodies of thunks; comment on why.
926 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
929 2015-02-11 Richard Henderson <rth@redhat.com>
932 * tree-eh.c (mark_reachable_handlers): Mark source and destination
933 regions of __builtin_eh_copy_values.
935 2015-02-11 Jakub Jelinek <jakub@redhat.com>
938 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
939 ultimate alias is MEM with SYMBOL_REF satisfying
940 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
941 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
943 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
945 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
947 (main): Initialize progname, and call diagnostic_initialize.
949 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
950 instead of __OPENMP_TARGET__.
952 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
953 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
956 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
958 * doc/sourcebuild.texi (pie_enabled): Document.
960 2015-02-11 Martin Liska <mliska@suse.cz>
963 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
964 a return value for call to a function that is noreturn.
966 2015-02-11 Richard Biener <rguenther@suse.de>
969 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
972 2015-02-11 Andrew Pinski <apinski@cavium.com>
975 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
976 Change the first argument type to size_type_node and add another
978 (aarch64_simd_expand_builtin): Handle the new argument to
979 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
980 print an out when the first two arguments are not
981 nonzero integer constants.
982 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
983 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
985 2015-02-11 Jakub Jelinek <jakub@redhat.com>
988 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
989 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
990 (ix86_set_current_function): Rewritten.
991 (ix86_add_new_builtins): Temporarily clear current_target_pragma
992 when creating builtin fndecls.
994 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
997 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
999 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
1000 have no comdat group.
1001 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
1002 (lto_output_varpool_node): Always output alias info.
1003 (output_refs): Output refs of boundary aliases, too.
1004 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
1005 (output_symtab): Output call eges in thunks in boundary.
1006 (get_alias_symbol): Remove.
1007 (input_node, input_varpool_node): Do not special case weakrefs.
1008 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
1009 alias and thunks targets in the boundary; do not take removed symbols
1010 from their comdat groups.
1011 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
1012 (cgraph_node::global_info): Remove.
1013 (cgraph_node::rtl_info): Look through aliases and thunks.
1014 * cgrpah.h (global_info): Remove.
1015 (non_local_p): Remove.
1017 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1018 Sandra Loosemore <sandra@codesourcery.com>
1020 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
1021 to inline asm. List dialects in proper order.
1023 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1024 Sandra Loosemore <sandra@codesourcery.com>
1026 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
1028 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1030 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
1031 modified) reference to Solaris.
1033 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
1035 * doc/extend.texi (Extended Asm): Fix typos.
1037 2015-02-10 Jakub Jelinek <jakub@redhat.com>
1040 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
1042 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
1045 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
1046 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
1047 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
1048 * config/sh/constraints.md (Ara, Add): New constraints.
1049 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
1051 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
1052 atomic_mem_operand_0. Don't use force_reg on the memory address.
1053 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
1054 Sra constraint. Convert to insn_and_split. Add workaround for
1056 (atomic_compare_and_swap<mode>_hard): Copy to
1057 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
1058 Use atomic_mem_operand_0 predicate.
1059 (atomic_compare_and_swap<mode>_soft_gusa,
1060 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
1062 (atomic_compare_and_swap<mode>_soft_tcb,
1063 atomic_compare_and_swap<mode>_soft_imask,
1064 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
1065 atomic_mem_operand_0 predicate and SraSdd constraints.
1066 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
1068 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
1069 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
1070 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
1071 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
1072 force_reg on the memory address.
1073 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
1074 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
1075 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
1076 atomic_mem_operand_1 predicate and Sra constraint.
1077 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
1078 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1079 Use atomic_mem_operand_1 predicate.
1080 (atomic_<fetchop_name><mode>_hard): Copy to
1081 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1082 Use atomic_mem_operand_1 predicate.
1083 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
1084 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1085 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
1086 insn_and_split. Use atomic_mem_operand_1 predicate.
1087 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
1088 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
1089 Use atomic_mem_operand_1 predicate.
1090 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
1091 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1092 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
1093 in generated insn with original mem operand before emitting the insn.
1094 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
1095 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
1096 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
1097 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
1098 Use atomic_mem_operand_1 predicate and AraAdd constraints.
1099 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
1100 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
1101 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
1102 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
1103 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
1104 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
1105 atomic_not_fetch<mode>_soft_tcb,
1106 atomic_<fetchop_name>_fetch<mode>_soft_imask,
1107 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
1108 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
1109 Use atomic_mem_operand_1 predicate and SraSdd constraints.
1111 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
1113 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
1114 and 3 earlyclobber operands.
1116 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1118 * common.opt (fstack-reuse): Mark as optimization.
1120 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1123 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
1125 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
1127 PR tree-optimization/64326
1128 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
1130 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
1132 PR gcov-profile/61889
1133 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1135 2015-02-10 Richard Biener <rguenther@suse.de>
1137 PR tree-optimization/64995
1138 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1139 value we use is final.
1140 (visit_reference_op_store): Always valueize op.
1141 (visit_use): Properly valueize vuses.
1143 2015-02-10 Richard Biener <rguenther@suse.de>
1145 PR tree-optimization/64909
1146 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1147 pass a scalar-stmt count estimate to the cost model.
1148 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1150 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
1152 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1153 enabled by default together with var-tracking.
1155 2015-02-10 Nick Clifton <nickc@redhat.com>
1157 * config/rl78/rl78.c: Remove DIV attribute code accidentally
1158 included in previous rl78 commit.
1160 2015-02-10 Richard Biener <rguenther@suse.de>
1162 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1163 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1166 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1168 PR gcov-profile/61889
1169 * config.in: regenerate.
1170 * configure.in: Likewise.
1171 * configure.ac: Check for ftw.h.
1172 * gcov-tool.c: Check for ftw.h before using nftw.
1174 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1177 * ipa-visibility.c (update_visibility_by_resolution_info): Only
1178 assert when not in lto mode.
1180 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1182 * ira-color.c (setup_left_conflict_sizes_p): Simplify
1183 initialization/assignment of conflict_size.
1185 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
1188 * ipa-cp.c (gather_caller_stats): Skip thunks.
1189 (propagate_constants_topo): Skip aliases.
1191 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
1194 * config/sh/sh.c (sh_option_override): Don't change
1195 -freorder-blocks-and-partition to -freorder-blocks even when
1196 unwinding is enabled.
1197 (sh_can_follow_jump): Return false if the followee jump is
1198 a crossing jump when -freorder-blocks-and-partition is specified.
1199 * config/sh/sh.md (*jump_compact_crossing): New insn.
1201 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
1202 Kaz Kojima <kkojima@gcc.gnu.org>
1205 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1206 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1207 (sh_can_redirect_branch): Rename to ...
1208 (sh_can_follow_jump): ... this. Constify argument types.
1209 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1210 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1211 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1212 * doc/tm.texi: Regenerate.
1214 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1217 * builtins.c (expand_builtin): Call targetm.expand_builtin
1218 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1220 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1223 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1225 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1228 * ipa-icf.c (set_local): New function.
1229 (sem_function::merge): Use it.
1231 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1233 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1234 (add_type_duplicate): Fix comparison of BINFOs.
1236 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1238 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1239 on getting VOID pointer.
1241 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1244 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1247 2015-02-09 Richard Biener <rguenther@suse.de>
1249 * genmatch.c (replace_id): Copy expr_type.
1251 2015-02-09 Richard Biener <rguenther@suse.de>
1253 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1254 (streamer_write_tree_bitfields): Declare.
1255 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1256 properly unpack padding.
1257 (unpack_value_fields): Inline ...
1258 (streamer_read_tree_bitfields): ... here.
1259 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1260 and properly add padding bits.
1261 (streamer_pack_tree_bitfields): Fold into ...
1262 (streamer_write_tree_bitfields): ... this new function,
1263 exposing the bitpack object.
1264 * lto-streamer-out.c (lto_write_tree_1): Call
1265 streamer_write_tree_bitfields.
1267 2015-02-09 Richard Biener <rguenther@suse.de>
1269 PR tree-optimization/54000
1270 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1271 (struct ivopts_data): Add loop_loc member.
1272 (tree_ssa_iv_optimize_loop): Dump loop location.
1273 (create_new_ivs): Likewise, also dump number of IVs generated.
1275 2015-02-09 Martin Liska <mliska@suse.cz>
1277 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1278 just if not yet registered.
1279 (ipa_icf_generate_summary): Register callgraph hooks.
1281 2015-02-08 Andrew Pinski <apinski@cavium.com>
1283 * config/aarch64/aarch64.c (gty_dummy): Delete.
1285 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1288 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1289 (cgraph_node::local_p): Remove thunk related FIXME.
1291 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1294 * i386.c (ix86_function_regparm): Look through aliases to see if callee
1295 is local and optimized.
1296 (ix86_function_sseregparm): Likewise; also use target's SSE math
1297 settings; error out instead of silently generating wrong code
1299 (init_cumulative_args): Look through aliases.
1301 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1304 * ipa-split.c (execute_split_functions): Split if function has aliases.
1306 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1309 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1310 aliases before trying to expand it.
1311 (cgraph_node::expand_thunk): Fix formating.
1313 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
1315 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1316 (Using Assembly Language with C): Expand introduction.
1317 (Basic Asm): Copy-edit. Add more information about uses of
1319 (Extended Asm): Copy-edit. Document new escape syntax and
1321 (Global Reg Vars): Copy-edit.
1322 (Local Reg Vars): Likewise.
1324 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
1328 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1329 (DBX_CONTIN_CHAR): Define.
1331 2015-02-06 Sebastian Pop <s.pop@samsung.com>
1332 Brian Rzycki <b.rzycki@samsung.com>
1334 PR tree-optimization/64878
1335 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1336 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1337 Stop recursion at loop phi nodes after having visited a loop phi node.
1339 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1341 * toplev.c (process_options): Change flag_ipa_ra before creating
1342 optimization_{default,current}_node.
1345 * cgraphunit.c (cgraph_node::expand_thunk): If
1346 restype is not is_gimple_reg_type nor the thunk_fndecl
1347 returns aggregate_value_p, set restmp to a temporary variable
1350 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
1352 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1354 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1357 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1358 add a general secondary reload handler for SDmode, unless we have
1359 both read/write support for SDmode.
1361 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1364 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1365 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1366 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1367 1 before, push it to abstract_vec.
1368 (dwarf2out_abstract_function): Adjust caller. Don't call
1369 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1370 DECL_ABSTRACT_P flags for all abstract_vec elts.
1372 2015-02-06 Renlin Li <renlin.li@arm.com>
1374 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1376 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1378 2015-02-06 Jeff Law <law@redhat.com>
1381 * config/h8300/h8300.c (push): New argument "in_prologue".
1382 Pass "in_prologue" along to "F".
1383 (h8300_push_pop): Corresponding changes.
1384 (h8300_expand_prologue): Likewise.
1385 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
1387 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1389 PR rtl-optimization/64957
1391 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1392 IOR rather than for AND.
1394 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
1397 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1398 of shift-add and (add + shift) operations. Rename local variable.
1400 2015-02-05 Jeff Law <law@redhat.com>
1403 * config/h8300/constraints.md (U): Correctly dectect
1404 "eightbit_data" memory addresses.
1405 * config/h8300/h8300.c (eightbit_constant_address_p): Also
1406 handle (const (plus (symbol_ref (x)))) where x is declared
1407 as an 8-bit data memory address.
1408 * config/h8300/h8300.md (call, call_value): Correctly detect
1409 "funcvec" functions.
1412 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1413 24 to 28 bits for the H8/300.
1415 2015-02-06 Alan Modra <amodra@gmail.com>
1418 * config/rs6000/rs6000.c (chain_already_loaded): New function.
1419 (rs6000_call_aix): Use it.
1421 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
1423 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1426 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
1428 * config/h8300/constraints.md ("U" constraint): Use strict
1429 variant of REG_OK_FOR_BASE_P after reload has started.
1431 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
1433 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1434 define to zero if !TARGET_NEON.
1435 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
1437 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1438 Trevor Saunders <tsaunders@mozilla.com>
1441 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1443 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1446 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1447 when removing varpool nodes.
1449 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1452 * varpool.c (varpool_node::remove): Fix order of variables.
1454 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1457 * ipa-inline.c (inline_small_functions): Fix ordering issue between
1458 speculation resolution and key updates.
1460 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1462 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1463 about not letting any speculative edges unupdated.
1465 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1468 * gcov-io.c (gcov_var): Export.
1470 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1473 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1474 edges that become speculative.
1476 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1478 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1479 or DW_LANG_Fortran08.
1480 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1482 (gen_compile_unit_die): Handle "GNU Fortran2003" and
1483 "GNU Fortran2008" language strings.
1484 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1485 * langhooks.h (lang_GNU_Fortran): New prototype.
1486 * langhooks.c (lang_GNU_Fortran): New function.
1487 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1490 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1492 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1493 (RTX_OK_FOR_OLO10_P): Likewise.
1495 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
1497 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1499 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1502 * gimple.c: Include gimple-ssa.h.
1503 (maybe_remove_unused_call_args): New function.
1504 * gimple.h (maybe_remove_unused_call_args): Declare.
1505 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1506 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1507 * gimple-fold.c (gimple_fold_call): Likewise.
1509 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
1511 PR rtl-optimization/64905
1512 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1513 pointer alignment if it isn't needed.
1515 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1517 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1518 cortex-a72.cortex-a53.
1519 * config/aarch64/aarch64-tune.md: Regenerate.
1520 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1522 2015-02-04 Nick Clifton <nickc@redhat.com>
1524 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1527 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1529 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1530 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1531 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1533 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1534 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1535 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1536 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1537 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1538 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1539 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1540 * tree-core.h (enum built_in_function): In between
1541 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1542 for builtins that use DEF_BUILTIN_CHKP macro.
1544 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
1547 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1548 operands for tcc_comparison exprs. Fix typos.
1551 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1552 of two XORs that have an intervening AND or IOR.
1555 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1556 simplification of XOR of AND to not allocate new rtx before
1557 committing to a simplification.
1559 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1561 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1562 manual swaps in all peepholes.
1564 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1566 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1567 of manual swapping implementation.
1568 (aarch64_expand_vec_perm_const_1): Likewise.
1570 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
1572 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1573 (generic_addrcost_table): Remove NAMED_PARAM.
1574 (cortexa57_addrcost_table): Likewise.
1575 (xgene1_addrcost_table): Likewise.
1576 (generic_regmove_table): Likewise.
1577 (cortexa53_regmove_table): Likewise.
1578 (xgene1_regmove_table): Likewise.
1579 (generic_vector_table): Likewise.
1580 (cortexa57_vector_table): Likewise.
1581 (xgene1_vector_table): Likewise.
1582 (generic_tunings): Likewise.
1583 (cortexa53_tunings): Likewise.
1584 (cortexa57_tunings): Likewise.
1585 (xgene1_tunings): Likewise.
1587 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1589 * config/arm/arm-cores.def: Add cortex-a72 and
1590 cortex-a72.cortex-a53.
1591 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1592 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1593 * config/arm/arm-tune.md: Regenerate.
1594 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1595 "cortex-a72.cortex-a53".
1596 * doc/invoke.texi (ARM Options/-mtune): Likewise.
1598 2015-02-04 Nick Clifton <nickc@redhat.com>
1601 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1603 (nonimmediate_di_operand): Likewise.
1605 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1606 prefixes of known F5 using MSP430 MCUs.
1608 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1610 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1611 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1612 instead of __builtin_sqrt.
1614 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
1616 * varasm.c (do_assemble_alias): Follow transparent alias
1618 (default_assemble_visibility): Follow transparent alias
1619 chain for decl name.
1621 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1624 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1625 to compute size of referenced value in the constant case.
1627 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1629 PR rtl-optimization/64756
1630 * cse.c (invalidate_dest): New function.
1631 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
1632 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1633 invalidate and do not record it.
1635 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1638 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1639 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1640 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1641 atomic_nand<mode>_soft_tcb): New insns.
1642 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1643 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1644 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1645 Split into atomic_not_fetchsi_hard if operands[0] is unused.
1646 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1647 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1648 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
1649 atomic_not<mode>_hard if operands[0] is unused.
1650 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1651 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1652 if operands[0] is unused.
1653 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
1654 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1655 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1656 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1658 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
1659 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1660 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1661 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1662 if operands[0] is unused.
1663 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
1664 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1665 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
1666 atomic_nand_fetchsi_hard if operands[0] is unused.
1667 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
1668 atomic_nand<mode>_hard if operands[0] is unused.
1669 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
1670 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1671 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
1672 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1673 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
1674 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1675 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1676 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1677 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
1678 atomic_not<mode>_hard if operands[0] is unused.
1679 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1680 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1682 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1683 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1684 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
1685 atomic_nand<mode>_hard if operands[0] is unused.
1686 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1687 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1689 2015-02-03 David Malcolm <dmalcolm@redhat.com>
1692 * Makefile.in (GCC_OBJS): Add gcc-main.o.
1693 * gcc-main.c: New file, containing "main" taken from gcc.c.
1694 * gcc.c (do_self_spec): Free decoded_options.
1695 (class driver): Move declaration to gcc.h.
1696 (main): Move declaration and implementation to new file
1698 (driver_get_configure_time_options): New function.
1699 * gcc.h (class driver): Move this declaration here, from
1701 (driver_get_configure_time_options): New declaration.
1703 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
1705 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1706 cross-module inlining.
1707 * cgraph.h (cgraph_node): Add flag merged.
1708 * ipa-icf.c (sem_function::merge): Maintain it.
1710 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
1712 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1713 instead of OBJECT_P.
1715 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
1718 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1719 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1720 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1721 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1723 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1726 * combine.c (reg_n_sets_max): New variable.
1727 (can_change_dest_mode, reg_nonzero_bits_for_combine,
1728 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1729 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1730 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1731 (rest_of_handle_combine): Initialize reg_n_sets_max.
1733 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
1735 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1736 if some always_inline was inlined, apply changes before inlining
1739 2015-02-02 David Malcolm <dmalcolm@redhat.com>
1742 * config/arm/arm.c (arm_option_override): Set
1743 arm_selected_arch/cpu/tune to NULL on entry.
1745 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
1746 Andrew Pinski <pinskia@gcc.gnu.org>
1747 Jakub Jelinek <jakub@gcc.gnu.org>
1750 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1751 integer typing for small model. Use IN_RANGE.
1753 2015-02-02 Richard Biener <rguenther@suse.de>
1755 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1756 * tree-vrp.c (vrp_valueize_1): Likewise.
1758 2015-02-02 Alan Modra <amodra@gmail.com>
1760 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1761 than mem for toc_restore.
1762 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1763 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1764 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1766 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1769 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1770 explicit default options.
1772 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
1775 * ipa-utils.c (ipa_merge_profiles): Add release argument.
1776 * ipa-icf.c (sem_function::merge): Do not release body when merging.
1777 * ipa-utils.h (ipa_merge_profiles): Update prototype.
1779 2015-02-01 Jakub Jelinek <jakub@redhat.com>
1782 * cfgexpand.c (deep_ter_debug_map): New variable.
1783 (avoid_deep_ter_for_debug): New function.
1784 (expand_debug_expr): If TERed SSA_NAME is in
1785 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1786 instead of trying to expand SSA_NAME's def stmt.
1787 (expand_debug_locations): When expanding debug bind
1788 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1789 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1791 (pass_expand::execute): Call avoid_deep_ter_for_debug on
1792 all debug bind stmts. Delete deep_ter_debug_map after
1793 expand_debug_location if non-NULL and clear it.
1795 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
1798 * config/sh/sync.md (atomic_fetch_notsi_hard,
1799 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1800 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1801 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1802 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1803 atomic_not_fetch<mode>_soft_imask): New insns.
1805 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1807 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1808 (rank_for_schedule_debug): Split from ...
1809 (rank_for_schedule): ... this.
1810 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1811 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1813 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1815 * doc/md.texi (Machine Constraints): Alphabetize table by target.
1816 * doc/extend.texi (x86 Variable Attributes): Move section to
1817 correct alphabetization after renaming.
1818 (x86 Type Attributes): Likewise.
1819 (Target Builtins): Re-alphabetize menu.
1820 (x86 Built-in Functions): Move section to correct alphabetization
1822 (x86 transactional memory intrinsics): Likewise.
1823 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1824 and x86 Windows Options in table and menu.
1825 (x86 Options): Move section to correct alphabetization after
1827 (x86 Windows Options): Likewise.
1829 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1831 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1832 preferred names of the architecture and its 32- and 64-bit
1834 * doc/invoke.texi: Likewise.
1835 * doc/md.texi: Likewise.
1837 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1840 * config/i386/predicates.md (address_no_seg_operand): Reject
1841 non-CONST_INT_P operands in invalid mode.
1843 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1845 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1846 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
1847 * config/i386/predicates.md (address_no_seg_operand): Call
1848 address_operand with VOIDmode.
1849 (vsib_address_operand): Ditto.
1850 (address_mpx_no_base_operand): Ditto.
1851 (address_mpx_no_index_operand): Ditto.
1853 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1856 * lra-constraints.c (original_subreg_reg_mode): New.
1857 (simplify_operand_subreg): Try to simplify subreg of const. Use
1858 original_subreg_reg_mode for it.
1859 (swap_operands): Update original_subreg_reg_mode.
1860 (curr_insn_transform): Set up original_subreg_reg_mode.
1862 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1865 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1867 (process_alt_operands): Use it.
1868 (curr_insn_transform): Check the optional reload pseudo class is
1871 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1873 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1874 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1876 * toplev.h (init_asm_output): Update comment on use of
1877 UNKNOWN_LOCATION with fatal_error.
1878 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1879 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1880 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1881 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1882 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1883 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1884 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1885 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1886 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1887 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1888 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1889 fatal_error changed to pass input_location as first argument.
1891 2015-01-30 Martin Liska <mliska@suse.cz>
1893 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1894 in #pragma GCC diagnostic guards.
1896 2015-01-30 Richard Biener <rguenther@suse.de>
1898 PR tree-optimization/64829
1899 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1900 not add a widening conversion pattern but hand off extra
1901 widenings to callers.
1902 (vect_recog_widen_mult_pattern): Handle extra widening produced
1903 by vect_handle_widen_op_by_const.
1904 (vect_recog_widen_shift_pattern): Likewise.
1905 (vect_pattern_recog_1): Remove excess vertical space in dumping.
1906 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1907 (vect_init_vector_1): Likewise.
1908 (vect_get_vec_def_for_operand): Likewise.
1909 (vect_finish_stmt_generation): Likewise.
1910 (vectorizable_load): Likewise.
1911 (vect_analyze_stmt): Likewise.
1912 (vect_is_simple_use): Likewise.
1914 2015-01-29 Jeff Law <law@redhat.com>
1916 * combine.c (try_combine): Fix typo in comment.
1918 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
1921 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1922 (rs6000_stack_info): Add assert.
1923 (rs6000_output_savres_externs): New function, split off from...
1924 (rs6000_output_function_prologue): ... here. Do not call it for
1927 2015-01-29 Jeff Law <law@redhat.com>
1930 * combine.c (try_combine): If I0 is a memory load and I3 a store
1931 to a related address, increase the "goodness" of doing a 4-insn
1932 combination with I0-I3.
1933 (make_field_assignment): Handle SUBREGs in the ior+and case.
1935 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1937 PR tree-optimization/64746
1938 * tree-if-conv.c (mask_exists): New function.
1939 (predicate_mem_writes): Save created mask with given size for further
1941 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1942 (ifcvt_repair_bool_pattern): Collect all statements that are root
1943 of bool pattern and use iterative algorithm to remove multiple uses
1944 of predicates, display number of required iterations.
1946 2015-01-29 Richard Biener <rguenther@suse.de>
1948 PR tree-optimization/64853
1949 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1950 stmt will get simulated again.
1951 * tree-ssa-ccp.c (valueize_op_1): Likewise.
1953 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1955 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1956 return_in_pc. Remove redundant assignments.
1957 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1958 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1960 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
1962 * config/i386/i386.c (ix86_mode_after): Make static.
1964 2015-01-29 Richard Biener <rguenther@suse.de>
1966 PR tree-optimization/64844
1967 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1968 dump cost model analysis.
1969 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1970 Do not register adjusted load/store costs here.
1972 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1973 Uros Bizjak <ubizjak@gmail.com>
1975 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1976 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1977 using x86_use_pseudo_pic_reg.
1978 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1979 support for fixed PIC register.
1980 (ix86_use_pseudo_pic_reg): Not static any more.
1982 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1985 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1986 to avoid error in cgraph node verification.
1988 2015-01-29 Marek Polacek <polacek@redhat.com>
1990 * doc/standards.texi: Reflect that the default for C is gnu11.
1992 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1995 * reorg.c (switch_text_sections_between_p): New function.
1996 (relax_delay_slots): Call it when testing if the jump insn
1997 is removable. Use targetm.can_follow_jump when testing if
1998 the conditional branch can follow an unconditional jump.
2000 2015-01-27 Caroline Tice <cmtice@google.com>
2002 Committing VTV Cywin/Ming patch for Patrick Wollgast
2003 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
2004 if -fvtable-verify=preinit/std is used.
2005 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
2006 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
2007 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
2008 if -fvtable-verify=preinit/std is used.
2009 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
2010 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
2011 if -fvtable-verify=preinit/std is used.
2012 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
2013 * config/i386/mingw32.h (LIB_SPEC): Likewise.
2014 * varasm.c (assemble_variable): Add code to properly set the comdat
2015 section and name for the .vtable_map_vars section in case the
2016 target is PE or COFF.
2018 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2021 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
2022 make sane BB profile.
2023 (cgraph_node::expand_thunk): Make sane BB profile.
2024 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
2025 * cgraph.h (init_lowered_empty_function): Update prototype.
2026 * config/i386/i386.c (make_resolver_func): Update call.
2027 * predict.c (gate): Disable branch prediction pass if
2028 profile is already there.
2030 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2032 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
2033 * opth-gen.awk: Likewise.
2034 * common.opt: Mark flag_fp_contract_mode as Optimization.
2036 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
2038 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
2039 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
2041 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
2044 * config/sh/predicates.md (atomic_arith_operand,
2045 atomic_logical_operand): Remove.
2046 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
2047 (atomic_arith_operand_0): New predicate.
2048 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
2049 Use atomic_arith_operand_0 for input values.
2050 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2051 atomic_compare_and_swap<mode>_soft_gusa,
2052 atomic_compare_and_swap<mode>_soft_tcb,
2053 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
2054 arith_reg_operand instead of register_operand.
2055 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
2056 atomic_arith_operand_0 for newval input.
2057 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2058 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
2059 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
2060 arith_reg_operand instead of register_operand.
2061 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
2062 fetchop_predicate_1, fetchop_constraint_1_llcs,
2063 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
2064 fetchop_constraint_1_imask): New code iterator attributes.
2065 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
2066 register_operand. Use fetchop_predicate_1.
2067 (atomic_fetch_<fetchop_name>si_hard,
2068 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
2069 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
2070 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
2071 and arith_reg_operand instead of register_operand. Use
2072 fetchop_predicate_1, fetchop_constraint_1_gusa.
2073 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
2074 and arith_reg_operand instead of register_operand. Use
2075 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
2077 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
2078 and arith_reg_operand instead of register_operand. Use
2079 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
2081 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
2082 register_operand. Use atomic_logical_operand_1.
2083 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2084 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
2085 arith_reg_operand instead of register_operand.
2086 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
2087 Use arith_reg_dest and arith_reg_operand instead of register_operand.
2088 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
2089 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
2090 register_operand. Use fetchop_predicate_1.
2091 (atomic_<fetchop_name>_fetchsi_hard,
2092 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
2093 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2094 fetchop_constraint_1_llcs.
2095 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
2096 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2097 fetchop_constraint_1_gusa.
2098 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
2099 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2100 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
2101 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
2102 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2103 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
2104 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
2105 register_operand. Use atomic_logical_operand_1.
2106 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2107 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
2108 arith_reg_operand instead of register_operand.
2109 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
2110 arith_reg_operand instead of register_operand. Use logical_operand
2111 and K08. Adjust asm sequence to allow R0 usage.
2112 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
2113 arith_reg_operand instead of register_operand. Use logical_operand
2116 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2119 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
2120 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
2121 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
2122 only get_full_len HOST_WIDE_INTs from get_val () array rather than
2123 all bits in *val_wide.
2125 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
2127 * varpool.c (tls_model_names): Fix names.
2128 (varpool_node::dump): Dump tls- prefix for tls models.
2130 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
2131 Bernd Schmidt <bernds@codesourcery.com>
2132 Nathan Sidwell <nathan@codesourcery.com>
2134 * config/nvptx/mkoffload.c: New file.
2135 * config/nvptx/t-nvptx: Add build rules for it.
2136 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2137 (extra_programs): Add mkoffload.
2138 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2140 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2142 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2145 * cfgexpand.c (reorder_operands): Skip debug gimples.
2147 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
2149 PR tree-optimization/64277
2150 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2151 range info when possible to refine estimation.
2153 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2155 PR tree-optimization/64718
2156 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2157 be a 16bit unsigned integer when n->range is 16.
2158 (bswap_replace): Convert src to that type if necessary for all bswap
2159 sizes. Fix rotation right notation in nearby comment. Use bswap_type
2160 set in pass_optimize_bswap::execute ().
2162 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
2164 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2165 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2166 integer and floating point variants.
2167 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2169 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
2171 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2172 for all vector modes.
2174 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2177 * doc/sourcebuild.texi (comdat_group): Document.
2179 2015-01-28 Terry Guo <terry.guo@arm.com>
2181 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2183 2015-01-27 David Malcolm <dmalcolm@redhat.com>
2185 * toplev.c (print_version): Add param "show_global_state", and
2186 only print GGC and plugin information if it is true.
2187 (init_asm_output): Pass in "true" for the new param when calling
2189 (process_options): Likewise.
2190 (toplev::main): Likewise.
2191 * toplev.h (print_version): Add new param to decl.
2193 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2197 * tree.c (lookup_binfo_at_offset): New function.
2198 (get_binfo_at_offset): Use it.
2200 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2203 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2204 on vtable being vtable.
2206 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2208 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2209 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2211 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2212 -mno-hotpatch options. Change syntax of -mhotpatch= option.
2213 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2215 (s390_hotpatch_trampoline_halfwords_max): Renamed.
2216 (s390_hotpatch_hw_max): New name.
2217 (s390_hotpatch_trampoline_halfwords): Renamed.
2218 (s390_hotpatch_hw_before_label): New name.
2219 (get_hotpatch_attribute): Removed.
2220 (s390_hotpatch_hw_after_label): New name.
2221 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2223 (s390_attribute_table): Ditto.
2224 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2225 (s390_function_num_hotpatch_hw): New name.
2226 Remove special handling of inline functions and hotpatching.
2227 Return number of nops before and after the function label.
2228 (s390_can_inline_p): Removed.
2229 (s390_asm_output_function_label): Emit a configurable number of nops
2230 after the function label.
2231 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2232 (TARGET_CAN_INLINE_P) Removed.
2233 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
2235 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2236 Jiong Wang <jiong.wang@arm.com>
2238 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2240 (cb<optab><mode>1): Likewise.
2241 * config/aarch64/iterators.md (bcond): New define_code_attr.
2243 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2245 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2248 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2250 * config/s390/s390.c (s390_register_move_cost): Increase costs for
2253 2015-01-27 Richard Biener <rguenther@suse.de>
2255 * tree-vrp.c (update_value_range): Intersect the range with
2256 old recorded SSA name range information.
2258 2015-01-27 Nick Clifton <nickc@redhat.com>
2260 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2261 BC, DE and HL registers directly, not via AX.
2262 When decrementing the stack pointer by a large amount, transfer SP
2263 into AX and perform the subtraction there.
2264 (rl78_expand_epilogue): Perform the inverse of the above
2267 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2269 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2271 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2272 Yury Gribov <y.gribov@samsung.com>
2275 * ubsan.c (ubsan_source_location): Refactor code.
2276 (ubsan_type_descriptor): Update type size. Refactor code.
2278 2015-01-27 Richard Biener <rguenther@suse.de>
2280 PR tree-optimization/56273
2281 PR tree-optimization/59124
2282 PR tree-optimization/64277
2283 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2284 from the first VRP pass.
2286 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2289 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2290 handle the first argument in the same loop as all the other arguments.
2292 PR rtl-optimization/61058
2293 * jump.c (cleanup_barriers): Update basic block boundaries
2294 if BLOCK_FOR_INSN is non-NULL on PREV.
2296 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
2298 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2299 bounds narrowing, already instrumented calls and calls to
2300 not instrumentable functions.
2302 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2304 PR tree-optimization/64807
2305 * wide-int.cc (wi::divmod_internal): Clear
2306 b_dividend[dividend_blocks_needed].
2308 2015-01-26 DJ Delorie <dj@redhat.com>
2310 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2311 volatile memory references.
2313 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
2316 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2318 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2319 shifts if it already fits into K08.
2321 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2324 * ipa-inline.c (inline_small_functions): Print "unknown" even
2325 if edge->call_stmt is non-NULL, but has builtins or unknown
2329 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2330 with asterisk, skip the first character.
2332 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2335 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2338 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
2341 * config/i386/i386.md (*movdi_internal): Also check operand 0
2342 to determine TYPE_LEA operand.
2343 (*movsi_internal): Ditto.
2345 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2347 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2348 OPTION_MASK_QUAD_MEMORY_ATOMIC.
2350 2015-01-26 Renlin Li <renlin.li@arm.com>
2352 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2354 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2357 2015-01-26 Richard Biener <rguenther@suse.de>
2360 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2361 combining two BIT_AND_EXPR predicates.
2363 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2366 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2368 2015-01-26 Terry Guo <terry.guo@arm.com>
2370 * config/arm/arm.c (arm_file_start): Update the assignment of
2373 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
2375 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2377 config/arm/arm.md: Include the new Cortex-A57 model.
2378 (generic_sched): Don't use generic_sched when tuning for
2381 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
2382 Uros Bizjak <ubizjak@gmail.com>
2384 * config/i386/i386.c (get_builtin_code_for_version): Add
2385 support for BMI and BMI2 multiversion functions.
2387 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2389 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2390 (extract_bit_field): Likewise.
2391 (extract_low_bits): Likewise.
2392 (expand_mult): Likewise.
2393 (expand_mult_highpart_adjust): Likewise.
2395 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
2397 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2398 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2399 * config/i386/i386.c (processor_model): Add
2400 M_INTEL_COREI7_BROADWELL.
2401 (arch_names_table): Add "broadwell".
2403 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
2412 * config/sh/sh-protos.h
2413 (sh_extending_set_of_reg::can_use_as_unextended_reg,
2414 sh_extending_set_of_reg::use_as_unextended_reg,
2415 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2416 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2417 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2418 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2419 (sh_treg_insns): New class.
2420 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2421 (scope_counter): New class.
2422 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2423 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2424 sh_extending_set_of_reg::can_use_as_unextended_reg,
2425 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2426 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2427 sh_split_treg_set_expr): New functions.
2428 (addsubcosts): Handle treg_set_expr.
2429 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2430 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2431 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2432 (sh_insn_operands_modified_between_p): Make non-static.
2433 * config/sh/predicates.md (zero_extend_movu_operand): Allow
2434 simple_mem_operand in addition to displacement_mem_operand.
2435 (zero_extend_operand): Don't allow zero_extend_movu_operand.
2436 (treg_set_expr, treg_set_expr_not_const01,
2437 arith_reg_or_treg_set_expr): New predicates.
2438 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2439 arith_or_int_operand instead of logical_operand. Convert to
2440 insn_and_split. Try to optimize constant operand in splitter.
2441 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
2442 (*tstqi_t_zero): Delete.
2443 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2444 (tstsi_t_and_not): Delete.
2445 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2446 Convert to insn_and_split.
2447 (unnamed split, tstsi_t_zero_extract_xor,
2448 tstsi_t_zero_extract_subreg_xor_little,
2449 tstsi_t_zero_extract_subreg_xor_big): Delete.
2450 (*tstsi_t_shift_mask): New insn_and_split.
2451 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2452 to recombine with surrounding insns when splitting.
2453 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2454 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2455 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2456 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2457 (*cbranch_div0s: Delete.
2458 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2459 Try to recombine with surrounding insns when splitting. Add operand
2461 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2462 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2463 *addc_r_r_msb, *addc_2r_msb): Delete.
2464 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
2466 (*addc_negreg_t): New insn_and_split.
2467 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
2468 Try to recombine with surrounding insns when splitting.
2469 Add operand order variants.
2470 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2471 insn_and_split patterns.
2472 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
2473 surrounding insns when splitting.
2474 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2475 (*rotcl): Likewise. Add zero_extract variant.
2476 (*ashrsi2_31): New insn_and_split.
2477 (*negc): Convert to insn_and_split. Use treg_set_expr.
2478 (*zero_extend<mode>si2_disp_mem): Update comment.
2479 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2481 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
2482 with surrounding insns when splitting.
2483 (any_treg_expr_to_reg): New insn_and_split.
2484 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2485 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2486 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2487 *zero_extract_2): New single bit zero extract patterns.
2488 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2489 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2490 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2491 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2493 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2494 register_operand for set source.
2496 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
2498 * i386.opt (prefetch_sse): New targetsave.
2499 * i386.c (ix86_function_specific_save): Save prefetch_sse.
2500 (ix86_function_specific_restore): Restore prefetch_sse and initialize
2501 ix86_cost/ix86_tune_cost.
2503 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2505 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2506 Support the JIT by using 0 as the language type.
2508 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
2511 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
2512 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
2513 (mark_regno_live, process_bb_lives): Pass new parameter value to
2514 make_hard_regno_born.
2516 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2518 PR rtl-optimization/63637
2519 PR rtl-optimization/60663
2520 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2521 if elt->cost is MAX_COST for ASM_OPERANDS.
2522 (find_sets_in_insn): Fix up comment typo.
2523 (cse_insn): Don't set src_volatile for all non-volatile
2524 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2525 or with "memory" clobber. Set elt->cost to MAX_COST
2526 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
2527 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2529 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
2531 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2534 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
2536 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2537 libgcc/config/i386/elf-lib.h.
2539 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2542 * gcc.c (print_configuration): Don't print a blank line at the end
2544 (run_attempt): ... but here unstead.
2547 * omp-low.c (scan_sharing_clauses): Don't ignore
2548 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2549 on target data/update constructs.
2551 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2554 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2555 (DEBUG_RELOAD): Removed define.
2556 (m32c_limit_reload_class): Enable traces with if DEBUG0.
2557 (m32c_function_arg): Added a type cast.
2558 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2559 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2560 * config/m32c/bitops.md (andqi3_16): Likewise.
2561 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2562 (push_a01_l): Likewise.
2564 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2567 * main.c (main): Construct toplev instances with init_signals=true.
2568 * toplev.c (general_init): Add param "init_signals", and use it to
2569 conditionalize the calls to signal and host_hooks.extra_signals.
2570 (toplev::toplev): Add param "init_signals".
2571 (toplev::main): When invoking general_init, pass m_init_signals
2572 to control whether signal-handlers are installed.
2573 * toplev.h (toplev::toplev): Add param "init_signals".
2574 (toplev::m_init_signals): New field.
2576 2015-01-23 David Malcolm <dmalcolm@redhat.com>
2579 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2580 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2581 latter may be affected by the former (e.g. on i686).
2583 2015-01-23 Martin Liska <mliska@suse.cz>
2585 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2586 false positive during profiledbootstrap.
2588 2015-01-23 Tom de Vries <tom@codesourcery.com>
2591 * lto-opts.c (lto_write_options): Output non-explicit conservative
2593 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2594 (append_compiler_options): Pass -fopenacc through.
2596 2015-01-23 Tom de Vries <tom@codesourcery.com>
2599 * lto-opts.c (lto_write_options): Output non-explicit conservative
2601 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2602 (append_compiler_options): Pass -fopenmp through.
2604 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2607 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2610 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2611 * diagnostic.def (DK_ICE_NOBT): New kind.
2612 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2613 like DK_ICE, but never print backtrace.
2614 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2615 (internal_error_no_backtrace): New function.
2616 * gcc.c (execute): Use internal_error_no_backtrace instead of
2619 2015-01-22 Jeff Law <law@redhat.com>
2622 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2623 improve code density for small immediate to memory case.
2624 (insv): Better handle bitfield assignments when the field is
2625 being set to all ones.
2626 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2629 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2630 Jakub Jelinek <jakub@redhat.com>
2632 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2633 for !TARGET_LIBC_PROVIDES_SSP version and
2634 -fstack-protector-{all,strong,explicit} otherwise.
2635 * config/freebsd.h (LINK_SSP_SPEC): Handle
2636 -fstack-protector-{strong,explicit}.
2638 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
2639 H.J. Lu <hongjiu.lu@intel.com>
2642 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2645 2015-01-22 Wei Mi <wmi@google.com>
2647 PR rtl-optimization/64557
2648 * dse.c (record_store): Call get_addr for mem_addr.
2649 (check_mem_read_rtx): Likewise.
2651 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
2653 * fold-const.c (const_binop): Add early return for non-tcc_binary.
2655 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
2657 * toplev.c (init_local_tick): Process the failure when read
2658 fails for random_seed.
2660 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2661 'pretty_name' to avoid memory overflow.
2663 2015-01-22 Richard Biener <rguenther@suse.de>
2666 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2667 abnormal coalescing on undefined SSA names.
2669 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
2673 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2675 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2677 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
2680 * fold-const.c (fold_checksum_tree): Don't include value of
2681 expr->decl_with_vis.symtab_node in the checksum.
2683 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2685 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2687 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
2690 * gcc.c (insert_comments): New function.
2691 (try_generate_repro): Call it.
2692 (append_text): Removed.
2694 2015-01-22 Richard Biener <rguenther@suse.de>
2696 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2697 with IL incompatible options. Properly honor user optimize
2700 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
2702 PR rtl-optimization/64682
2703 * combine.c (distribute_notes): When moving a death note for
2704 a register that is set in the new I2, make sure to put it
2707 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
2709 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2712 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2715 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2716 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2717 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2720 * doc/invoke.texi (-fsanitize=vptr): Document.
2722 PR rtl-optimization/62078
2723 * dse.c: Include cfgcleanup.h.
2724 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2725 anything call purge_all_dead_edges and cleanup_cfg at the end
2728 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
2730 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2733 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2735 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2738 2015-01-21 David Sherwood <david.sherwood@arm.com>
2739 Tejas Belagod <Tejas.Belagod@arm.com>
2741 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2742 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2743 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2746 2015-01-21 David Sherwood <david.sherwood@arm.com>
2747 Tejas Belagod <Tejas.Belagod@arm.com>
2749 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2750 (aarch64_reverse_mask): New decls.
2751 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2752 (insn_count): New mode_attr.
2753 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2754 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2755 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2756 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2757 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2758 (aarch64_simd_st4): New patterns.
2759 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2760 (aarch64_reverse_mask): New functions.
2762 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
2764 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2766 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2767 addressing modes for BE.
2768 (aarch64_print_operand): Add 'R' specifier.
2769 (aarch64_simd_disambiguate_copy): Delete.
2770 (aarch64_simd_emit_reg_reg_move): New function.
2771 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2772 in define_splits for structural moves.
2773 (mov<mode>): Use less restrictive predicates.
2774 (*aarch64_mov<mode>): Simplify and only allow for LE.
2775 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2777 2015-01-21 Alan Hayward <alan.hayward@arm.com>
2779 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2781 2015-01-21 Richard Henderson <rth@redhat.com>
2784 * ccmp.c (used_in_cond_stmt_p): Remove.
2785 (expand_ccmp_expr): Don't use it.
2787 2015-01-21 Nick Clifton <nickc@redhat.com>
2789 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2792 2015-01-21 Richard Biener <rguenther@suse.de>
2795 * tree-core.h (builtin_info, builtin_info_type): Turn from
2796 an object with two arrays into an array of an object with
2797 decl and two flags, implicit_p and declared_p.
2798 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2799 set_builtin_decl, set_builtin_decl_implicit_p,
2800 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2801 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2802 * builtins.c (builtin_info): Adjust.
2803 * gimplify.c (gimplify_addr_expr): References to builtins
2804 that have been declared by the user makes them eligible for
2805 use by the compiler. Call set_builtin_decl_implicit_p on them.
2807 2015-01-20 Jeff Law <law@redhat.com>
2810 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2811 allow pc-relative addresses in operand predicates or constraints.
2813 2015-01-21 Bin Cheng <bin.cheng@arm.com>
2815 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2816 neon on aarch32 processors for stringops.
2818 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2821 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2823 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2826 * ipa-inline.c: Include lto-streamer.h
2827 (report_inline_failed_reason): Output source file differences and
2828 flags on optimization/target node mismatch.
2829 (can_inline_edge_p): Consider caller to be the outer inline function;
2830 be less restrictive about matching opimize and optimize_size attributes.
2831 (inline_account_function_p): Break out from ...
2832 (inline_small_functions): ... here.
2833 * ipa-inline-transform.c (clone_inlined_nodes): Use
2834 inline_account_function_p.
2835 (inline_call): Use optimize attribution; use inline_account_function_p.
2836 (inline_transform): Use opt_for_fn.
2837 * ipa-inline.h (inline_account_function_p): Declare.
2839 2015-01-20 Jakub Jelinek <jakub@redhat.com>
2842 * dwarf2out.c (decl_piece_node): Don't put bitsize into
2843 mode if bitsize <= 0.
2844 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2845 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2846 sizes and positions.
2848 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
2850 * config/nios2/nios2.c (nios2_asm_file_end): Implement
2851 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2853 (TARGET_ASM_FILE_END): Define.
2855 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2857 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2858 (struct tune_params): Use the enum.
2859 * arm.c (arm_*_tune): Update.
2860 (arm_option_override): Update.
2862 2015-01-20 Richard Biener <rguenther@suse.de>
2865 * ipa-reference.c (add_static_var): Inline ...
2866 (analyze_function): ... here after splitting out from ...
2867 (is_proper_for_analysis): ... this.
2869 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
2872 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2873 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2874 replace the conditional with it's true branch.
2875 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2876 (arm_lra_p): Remove.
2878 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
2880 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2882 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2884 * config/tilegx/mul-tables.c: Move symtab.h include after
2885 coretypes.h include.
2886 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2887 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2888 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2889 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2890 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2892 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
2896 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2898 PR rtl-optimization/64081
2899 * loop-iv.c (def_pred_latch_p): New function.
2900 (latch_dominating_def): Allow specific cases with non-single
2902 (iv_get_reaching_def): Likewise.
2903 (check_complex_exit_p): New function.
2904 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2905 with exits not executing on any iteration.
2907 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2910 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2913 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2916 * i386.c (gate): Check flag_expensive_optimizations and
2918 (ix86_option_override_internal): Drop optimize_size condition
2919 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2920 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2922 (ix86_avx256_split_vector_move_misalign,
2923 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2924 * sse.md (all uses of TARGET_PREFER_AVX128): Add
2925 optimize_insn_for_speed_p check.
2927 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2929 * config/mips/mips.h (FP_ASM_SPEC): New define.
2930 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2933 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
2936 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2937 nullptr for insn when reaching the first insn.
2938 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2939 (sh_insn_operands_modified_between_p): Add nullptr check.
2940 (sh_find_extending_set_of_reg): Fix log message. Don't accept
2941 sign extending mem load if the insn contains any UNSPEC or
2944 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2946 * params.def (inline-unit-growth): Drop to 15%.
2947 * invoke.texi (inline-unit-growth): Document change.
2949 2015-01-19 Martin Liska <mliska@suse.cz>
2952 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2953 function for second argument of OBJ_TYPE_REF.
2955 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2958 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2959 whether function is an alias.
2961 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2963 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2966 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2968 PR rtl-optimization/64671
2969 * lra-remat.c (operand_to_remat): Don't consider jump and call
2972 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
2974 * config/rs6000/default64.h: Include rs6000-cpus.def.
2975 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2976 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2977 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2979 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2981 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2982 pseudo-op to specify assembler dialect.
2984 2015-01-19 Martin Liska <mliska@suse.cz>
2987 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2988 Handle safe potentially removed nodes during filtering.
2990 2015-01-19 Martin Liska <mliska@suse.cz>
2992 * doc/extend.texi (no_icf): Add new attribute description.
2993 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2994 where the pass attempts to merge a function with no_icf attribute.
2996 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2999 * doc/md.texi (ARM Options): Document register constraints.
3001 2015-01-19 Jiong Wang <jiong.wang@arm.com>
3002 Andrew Pinski <apinski@cavium.com>
3005 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
3006 (ashl<mode>3): Don't expand if operands[2] is not constant.
3008 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3011 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
3012 Match xor-and-xor RTL pattern.
3014 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3016 PR rtl-optimization/64081
3017 * loop-iv.c (def_pred_latch_p): New function.
3018 (latch_dominating_def): Allow specific cases with non-single
3020 (iv_get_reaching_def): Likewise.
3021 (check_complex_exit_p): New function.
3022 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3023 with exits not executing on any iteration.
3025 2015-01-19 Jakub Jelinek <jakub@redhat.com>
3027 * common.opt (fgraphite): Fix a typo.
3029 2015-01-19 Felix Yang <felix.yang@huawei.com>
3031 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
3033 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
3034 uminp, smax_nanp, smin_nanp): New builtins.
3035 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
3036 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
3037 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
3038 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
3039 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
3040 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
3041 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
3042 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
3043 vpminnms_f32): Rewrite using builtin functions.
3045 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3048 * omp-low.c (offload_symbol_decl): Remove variable.
3049 (get_offload_symbol_decl): Remove function.
3050 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
3051 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
3052 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
3053 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
3054 BUILT_IN_GOACC_UPDATE don't pass it at all.
3056 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3058 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
3061 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3063 * ipa-chkp.c (chkp_produce_thunks): Add early param
3064 to split thunks production into two passes. Keep
3065 'always_inline' function bodies after the first pass.
3066 (pass_data_ipa_chkp_early_produce_thunks): New.
3067 (pass_ipa_chkp_early_produce_thunks): New.
3068 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
3069 chkp_produce_thunks signature.
3070 (make_pass_ipa_chkp_early_produce_thunks): New.
3071 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
3072 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
3073 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
3075 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3077 * cgraph.c (cgraph_node::dump): Dump profile flags.
3079 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
3082 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
3083 reg appear first in the parallel.
3085 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3087 * ipa-reference.c (set_reference_optimization_summary,
3088 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
3090 (ignore_module_statics): New static var.
3091 (propagate_bits): If ipa-reference is disabled, do not look into local
3093 (analyze_function): Disable analysis when ipa_reference is disabled.
3094 (generate_summary): Do not dump when reference is disabled;
3095 collect vars accessed from functions with ipa-reference disabled.
3096 (get_read_write_all_from_node): When ipa-reference is disabled, use the
3098 (gate): Enable for LTO.
3099 (ignore_edge_p): New function.
3100 (propagate): Skip functions w/o ipa-reference analysis.
3101 * optc-save-gen.awk: Handle optimize_debug correctly.
3102 * opth-gen.awk: Likewise.
3103 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
3104 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
3105 fira-share-save-slots, fira-share-spill-slots,
3106 fmodulo-sched-allow-regmoves, fpartial-inlining,
3107 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
3108 ftracer, ftree-parallelize-loops, fassociative-math,
3109 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
3111 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
3112 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
3114 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
3117 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3120 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
3122 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3124 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
3126 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
3127 Remove duplicate option listings.
3129 2015-01-18 Felix Yang <felix.yang@huawei.com>
3131 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3132 (autofdo_source_profile::get_callsite_total_count,
3133 function_instance::get_function_instance_by_decl,
3134 string_table::get_index, string_table::get_index_by_decl,
3135 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3136 Fix comment typos. Reformatting and minor code rearrangement.
3138 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3140 * config/rs6000/rs6000.md (probe_stack): Delete.
3141 (probe_stack_address): New.
3143 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3145 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3146 to test for 32-bit ABIs, not !TARGET_POWERPC64.
3148 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3150 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3151 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
3152 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
3154 (rs6000_libcall_value): Use the new function.
3156 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
3158 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3160 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
3162 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3163 implement a more precise life analysis for it during backward scan.
3165 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3167 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3169 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
3171 PR rtl-optimization/52773
3172 * calls.c (emit_library_call_value): When pushing arguments use
3173 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3174 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
3175 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3177 2015-01-17 Jeff Law <law@redhat.com>
3179 PR rtl-optimization/32790
3180 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3181 not ZERO_EXTEND in SET_DESTs.
3183 2015-01-17 Alan Modra <amodra@gmail.com>
3185 * cprop.c (do_local_cprop): Revert last change.
3187 2015-01-16 DJ Delorie <dj@redhat.com>
3188 Nick Clifton <nickc@redhat.com>
3190 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3191 (addhi3_real): Likewise. Fix [HL+0] syntax.
3192 (subqi3_real): Likewise.
3193 (subhi3_real): Likewise.
3194 (cbranchqi4_real): Likewise. Allow saddr,#imm.
3195 (cbranchhi4_real): Likewise.
3196 (cbranchhi4_real_inverted): Likewise.
3197 (cbranchsi4_real_lt): Likewise.
3198 (cbranchsi4_real_ge): Likewise.
3199 (cbranchsi4_real_ge): Likewise.
3200 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3201 (sub<mode>3_virt): Likewise.
3202 (cbranchqi4_virt): Likewise.
3203 (cbranchhi4_virt): Likewise.
3204 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3205 always use '[reg+imm]' even when imm is zero.
3206 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3207 (rl78_general_operand): New.
3208 (rl78_nonimmediate_operand): New.
3209 (rl78_nonfar_operand): Use them.
3210 (rl78_nonfar_nonimm_operand): Likewise.
3211 (rl78_stack_based_mem): Fix.
3212 * config/rl78/constraints.md (Ibqi): New.
3217 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3220 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3222 * config/rl78/constrains (Qs8): New constraint.
3223 * config/rl78/rl78.c (rl78_flags_already_set): New function.
3224 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3225 * config/rl78/rl78-real.md (update_Z): New attribute.
3226 Update patterns to set it.
3227 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3228 shorter compare and branch sequence can be used.
3229 (cbranchhi4_real): Likewise.
3230 (cbranchhi4_real_inverted): Likewise.
3232 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3233 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3235 * config/rl78/rl78.c (rl78_get_name_encoding): New.
3236 (rl78_option_override): Allow -mes0 only if C.
3237 (characterize_address): Support subregs of symbol_refs.
3238 (rl78_addr_space_address_mode): Move. Add __near.
3239 (rl78_far_p): Likewise.
3240 (rl78_addr_space_pointer_mode): Likewise.
3241 (rl78_as_legitimate_address): Likewise.
3242 (rl78_addr_space_subset_p): Likewise.
3243 (rl78_addr_space_convert): Likewise.
3244 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3246 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
3248 (rl78_alloc_physical_registers_op1): Change logic to prefer
3249 symbol[BC] addressing.
3250 (frodata_section): New.
3251 (rl78_asm_init_sections): Initialize it.
3252 (rl78_select_section): Put __far readonly symbols in .frodata.
3253 (rl78_make_type_far): New.
3254 (rl78_insert_attributes): Force all readonly symbols to be
3256 (rl78_asm_out_integer): New.
3257 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3258 * config/rl78/rl78.opt (-mes0): New.
3260 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3261 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3262 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3263 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3264 (rl78_saddr_p): New.
3265 (rl78_output_aligned_common): New.
3266 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3267 (rl78_handle_saddr_attribute): New.
3268 (rl78_handle_naked_attribute): New.
3269 (rl78_attribute_table): Add saddr.
3270 (rl78_print_operand_1): Don't print '!' on saddr operands.
3271 (rl78_print_operand_1): Strip encodings.
3273 (rl78_strip_name_encoding): New.
3274 (rl78_attrlist_to_encoding): New.
3275 (rl78_encode_section_info): New.
3276 (rl78_asm_init_sections): New.
3277 (rl78_select_section): New.
3278 (rl78_output_labelref): New.
3279 (rl78_output_aligned_common): New.
3280 (rl78_asm_out_integer): New.
3281 (rl78_asm_ctor_dtor): New.
3282 (rl78_asm_constructor): New.
3283 (rl78_asm_destructor): New.
3285 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3286 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3287 (transcode_memory_rtx): Update.
3288 (rl78_expand_epilogue): Use A_REG instead of 0.
3290 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3292 * config/arm/arm-protos.h (struct tune_params): New field
3293 sched_autopref_queue_depth.
3294 * config/arm/arm.c (sched-int.h): Include header.
3295 (arm_first_cycle_multipass_dfa_lookahead_guard,)
3296 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3297 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3298 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3299 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3300 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3301 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3302 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3303 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
3304 * config/arm/t-arm (arm.o): Update.
3305 * haifa-sched.c (update_insn_after_change): Update.
3306 (rank_for_schedule): Use auto-prefetcher model, if requested.
3307 (autopref_multipass_init): New static function.
3308 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3309 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3310 variable for debug dumps.
3311 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3312 (autopref_multipass_dfa_lookahead_guard): New global function that
3313 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3314 (init_h_i_d): Update.
3315 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3316 * sched-int.h (enum autopref_multipass_data_status): New const enum.
3317 (autopref_multipass_data_): Structure for auto-prefetcher data.
3318 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3319 (struct _haifa_insn_data:autopref_multipass_data): New field.
3320 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3321 (autopref_multipass_dfa_lookahead_guard): Declare.
3323 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3325 * rtlanal.c (get_base_term): Handle SCRATCH.
3327 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3329 * config/aarch64/aarch64.c
3330 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3331 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3333 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3334 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3336 2015-01-17 Alan Modra <amodra@gmail.com>
3338 * cprop.c (do_local_cprop): Disallow replacement of fixed
3341 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3344 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3347 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3349 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3350 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3352 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3354 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3355 * config/arm/thumb1.md: ... Here.
3357 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3359 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3360 TImode for TARGET_32BIT.
3362 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3364 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3365 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3367 (rs6000_abi_word_mode): New function.
3369 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3371 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3372 instead of UNITS_PER_WORD to describe the size of stack slots.
3374 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3376 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3377 as rs6000_promote_function_mode. Move comment to there.
3378 (rs6000_promote_function_mode): New function.
3380 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3382 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3383 -mpowerpc64 is active.
3385 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3388 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3391 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3393 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3394 introduced in revision 219724.
3396 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3397 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3400 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3401 destination is not a GP reg.
3402 (*movdi_aarch64): Likewise.
3404 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
3407 * config/rs6000/default64.h: Revert ISA change.
3409 2015-01-16 Richard Biener <rguenther@suse.de>
3412 * tree-ssa-uninit.c: Include tree-cfg.h.
3413 (MAX_SWITCH_CASES): New define.
3414 (convert_control_dep_chain_into_preds): Handle switch statements.
3415 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3416 (normalize_one_pred_1): Do not split bit-manipulations.
3419 2015-01-16 Richard Biener <rguenther@suse.de>
3421 PR tree-optimization/64568
3422 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3423 complex load rewriting for TARGET_MEM_REFs.
3425 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
3427 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3429 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
3432 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3434 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3435 (aarch64_lra_p): Remove.
3437 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3440 * ipa-chkp.h (chkp_instrumentable_p): New.
3441 * ipa-chkp.c: Include tree-inline.h.
3442 (chkp_instrumentable_p): New.
3443 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3444 Fix processing of not instrumentable functions.
3445 (chkp_versioning): Use chkp_instrumentable_p. Warn about
3446 not instrumentable functions.
3447 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3448 chkp_instrumentable_p.
3449 * tree-inline.h (copy_forbidden): New.
3450 * tree-inline.c (copy_forbidden): Not static anymore.
3452 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3454 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3457 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3459 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3460 type OP_OUT to OP_INOUT.
3462 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
3464 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3465 (high x) y) to y if x and y have the same base.
3467 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3469 * config/arm/cortex-a57.md: New.
3470 * config/aarch64/aarch64.md: Include it.
3471 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3472 * config/aarch64/aarch64-tune.md: Regenerate.
3474 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
3477 * ccmp.c (expand_ccmp_next): New function.
3478 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3479 and compare insn sequence.
3480 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3481 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3482 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3483 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3484 (*ccmp_ior): Changed to ccmp_ior<mode>.
3485 (cmp<mode>): New pattern.
3486 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3488 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3490 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
3492 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3493 _mm256_bsrli_epi128): New.
3494 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3496 2015-01-15 Jiong Wang <jiong.wang@arm.com>
3498 * expmed.c (store_bit_field_using_insv): Improve warning message.
3499 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3501 2015-01-15 Jiong Wang <jiong.wang@arm.com>
3503 PR rtl-optimization/64011
3504 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3505 there is partial overflow.
3507 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3509 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3511 (nds32_expand_epilogue_v3pop): Likewise.
3512 * config/nds32/nds32.md (sibcall): Define this for sibling call
3514 (sibcall_register): Likewise.
3515 (sibcall_immediate): Likewise.
3516 (sibcall_value): Likewise.
3517 (sibcall_value_register): Likewise.
3518 (sibcall_value_immediate): Likewise.
3519 (sibcall_epilogue): Likewise.
3520 (epilogue): Pass false to indicate this is not a sibcall epilogue.
3521 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3522 (nds32_expand_epilogue_v3pop): Likewise.
3524 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3526 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3527 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3528 (return_internal): New.
3529 (return): Define this named pattern.
3530 (simple_return): Define this named pattern.
3531 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3532 pattern instead of unspec_volatile_func_return.
3533 (nds32_expand_epilogue_v3pop): Likewise.
3534 (nds32_can_use_return_insn): New function.
3536 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3538 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3539 * config/nds32/nds32.md (pop25return): New.
3540 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3541 pop25return pattern.
3543 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3545 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3546 -mforbid-fp-as-gp, and -mex9 options.
3548 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
3550 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3551 remove -mgp-direct option.
3553 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3555 * doc/invoke.texi (--param early-inlining-insns): Update default value.
3556 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3558 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3560 * ipa-inline.c (inline_small_functions): Work around hints
3563 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
3566 * doc/invoke.texi (Option Summary): Document new Nios II
3568 (Nios II Options): Likewise.
3569 * config/nios2/nios2.opt: Add -mgpopt= option support.
3570 Modify existing -mgpopt and -mno-gpopt options to be aliases.
3571 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3572 * config/nios2/nios2.c (nios2_option_override): Adjust
3574 (nios2_in_small_data_p): Return true for explicit small data
3575 sections even with -G0.
3576 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3579 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3582 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3584 (inline_call): Fix removal of aliases.
3586 2015-01-15 Jakub Jelinek <jakub@redhat.com>
3588 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3589 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3590 * opts.c (common_handle_option): Add -fsanitize=vptr.
3591 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3592 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3593 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3594 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3595 (ubsan_expand_vptr_ifn): New prototype.
3596 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3597 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3598 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3599 expand_LOOP_VECTORIZED): Make argument nameless, remove
3601 (expand_UBSAN_VPTR): New function.
3602 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3604 (UBSAN_VPTR): New internal function.
3605 * sanopt.c (tree_map_traits): Renamed to ...
3606 (sanopt_tree_map_traits): ... this.
3607 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3608 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3609 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
3610 (maybe_optimize_ubsan_vptr_ifn): New function.
3611 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3612 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
3614 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3615 internal calls like pure functions for aliasing, even when they
3616 have other side-effects that prevent making them ECF_PURE.
3617 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3618 (ubsan_expand_vptr_ifn): New function.
3620 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
3622 PR rtl-optimization/64110
3623 * stmt.c (parse_output_constraint): Process '^' and '$'.
3624 (parse_input_constraint): Ditto.
3625 * lra-constraints.c (process_alt_operands): Process the new
3627 * ira-costs.c (record_reg_classes): Process the new constraint
3629 * genoutput.c (indep_constraints): Add '^' and '$'.
3630 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3631 * doc/md.texi: Add description of the new constraints.
3633 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3634 Bernd Schmidt <bernds@codesourcery.com>
3635 Cesar Philippidis <cesar@codesourcery.com>
3636 James Norris <jnorris@codesourcery.com>
3637 Tom de Vries <tom@codesourcery.com>
3638 Ilmir Usmanov <i.usmanov@samsung.com>
3639 Dmitry Bocharnikov <dmitry.b@samsung.com>
3640 Evgeny Gavrin <e.gavrin@samsung.com>
3641 Jakub Jelinek <jakub@redhat.com>
3643 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3644 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3645 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3647 * builtins.c: Include "gomp-constants.h".
3648 (expand_builtin_acc_on_device): New function.
3649 (expand_builtin, is_inexpensive_builtin): Handle
3650 BUILT_IN_ACC_ON_DEVICE.
3651 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3653 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3655 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3656 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3657 i386/intelmic-offload.h.
3658 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3659 to libgomp and its dependencies.
3660 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3661 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3662 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3663 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3664 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3665 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3666 * doc/generic.texi: Update for OpenACC changes.
3667 * doc/gimple.texi: Likewise.
3668 * doc/invoke.texi: Likewise.
3669 * doc/sourcebuild.texi: Likewise.
3670 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3671 GF_OMP_FOR_KIND_OACC_LOOP.
3672 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3673 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3674 GF_OMP_TARGET_KIND_OACC_UPDATE,
3675 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3677 * gimple.c: Update comments for OpenACC changes.
3678 * gimple.def: Likewise.
3679 * gimple.h: Likewise.
3680 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3681 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3682 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3683 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3684 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3686 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3687 * gimplify.c: Include "gomp-constants.h".
3688 Update comments for OpenACC changes.
3689 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3690 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3691 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3692 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3693 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3694 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3695 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3696 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3697 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3699 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3700 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3701 OMP_CLAUSE_SET_MAP_KIND.
3702 (gimplify_oacc_cache): New function.
3703 (gimplify_omp_for): Handle OACC_LOOP.
3704 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3706 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3707 OACC_EXIT_DATA, OACC_UPDATE.
3708 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3709 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3710 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3711 (gimplify_body): Consider flag_openacc next to flag_openmp.
3712 * lto-streamer-out.c: Include "gomp-constants.h".
3713 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3714 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3715 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3716 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3717 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3718 (BUILT_IN_ACC_ON_DEVICE): New builtins.
3719 * omp-low.c: Include "gomp-constants.h".
3720 Update comments for OpenACC changes.
3721 (struct omp_context): Add reduction_map, gwv_below, gwv_this
3723 (extract_omp_for_data, use_pointer_for_field, install_var_field)
3724 (new_omp_context, delete_omp_context, scan_sharing_clauses)
3725 (create_omp_child_function, scan_omp_for, scan_omp_target)
3726 (check_omp_nesting_restrictions, lower_reduction_clauses)
3727 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3728 Update for OpenACC changes.
3729 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3730 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3731 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3732 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3733 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3734 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
3736 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3737 Handle GF_OMP_FOR_KIND_OACC_LOOP.
3738 (expand_omp_target, lower_omp_target): Handle
3739 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3740 GF_OMP_TARGET_KIND_OACC_UPDATE,
3741 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3742 GF_OMP_TARGET_KIND_OACC_DATA.
3743 (pass_expand_omp::execute, execute_lower_omp)
3744 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3746 (offload_symbol_decl): New variable.
3747 (oacc_get_reduction_array_id, oacc_max_threads)
3748 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3749 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3750 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3751 (oacc_gimple_assign, oacc_initialize_reduction_data)
3752 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3754 (is_targetreg_ctx): Remove function.
3755 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3756 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3757 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3758 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3759 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3760 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3761 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3762 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3763 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3764 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3765 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3766 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3767 * tree-core.h: Update comments for OpenACC changes.
3768 (enum omp_clause_map_kind): Remove.
3769 (struct tree_omp_clause): Change type of map_kind member from enum
3770 omp_clause_map_kind to unsigned char.
3771 * tree-inline.c: Update comments for OpenACC changes.
3772 * tree-nested.c: Likewise. Include "gomp-constants.h".
3773 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3774 (convert_tramp_reference_stmt, convert_gimple_call): Update for
3775 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3776 OMP_CLAUSE_SET_MAP_KIND.
3777 * tree-pretty-print.c: Include "gomp-constants.h".
3778 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3779 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3780 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3781 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3782 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3783 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
3784 instead of OMP_CLAUSE_MAP_*.
3785 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3786 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3787 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3788 * tree-streamer-in.c: Include "gomp-constants.h".
3789 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3790 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
3791 * tree-streamer-out.c: Include "gomp-constants.h".
3792 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3794 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3795 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3796 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3797 * tree.c (omp_clause_num_ops): Update accordingly.
3798 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3800 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3801 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3802 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3803 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3804 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3805 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3806 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3807 (OMP_CLAUSE_SET_MAP_KIND): New macro.
3808 * varpool.c (varpool_node::get_create): Consider flag_openacc next
3810 * config/i386/intelmic-offload.h: New file.
3811 * config/nvptx/offload.h: Likewise.
3813 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3815 * explow.h: Remove duplicate contents.
3816 * dojump.h: Likewise.
3818 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
3820 * arm.c (arm_xgene_tune): Add default initializer for instruction
3823 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3827 * ipa.c (symbol_table::remove_unreachable_nodes):
3828 Do not put abstract origins into boundary.
3830 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
3832 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3833 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3835 2015-01-15 Steve Ellcey <sellcey@mips.com>
3837 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3838 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3839 builtins.def, and chkp-builtins.def.
3841 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
3843 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3846 2015-01-15 Richard Biener <rguenther@suse.de>
3848 PR tree-optimization/61743
3849 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3850 information on PHIs for some simple cases.
3852 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3854 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3856 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3857 * config/arm/arm-cores.def (xgene1): New entry.
3858 * config/arm/arm-tables.opt: Regenerate.
3859 * config/arm/arm-tune.md: Regenerate.
3860 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3862 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3864 * tree-if-conv.c: Include hash-map.h.
3865 (aggressive_if_conv): New variable.
3866 (fold_build_cond_expr): Add simplification of non-zero condition.
3867 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3868 destination block is not always executed.
3869 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3870 than two predecessors if AGGRESSIVE_IF_CONV is true.
3871 (if_convertible_stmt_p): Fix commentary.
3872 (all_preds_critical_p): New function.
3873 (has_pred_critical_p): New function.
3874 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3875 BB can have more than two predecessors and all incoming edges can be
3877 (predicate_bbs): Skip predication for loop exit block, use build2_loc
3878 to compute predicate for true edge.
3879 (find_phi_replacement_condition): Delete this function.
3880 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3881 Allow interchange PHI arguments if EXTENDED is false.
3882 Change check that block containing reduction statement candidate
3883 is predecessor of phi-block since phi may have more than two arguments.
3884 (phi_args_hash_traits): New helper structure.
3885 (struct phi_args_hash_traits): New type.
3886 (phi_args_hash_traits::hash): New function.
3887 (phi_args_hash_traits::equal_keys): New function.
3888 (gen_phi_arg_condition): New function.
3889 (predicate_scalar_phi): Add handling of phi nodes with more than two
3890 arguments, delete COND and TRUE_BB arguments, insert body of
3891 find_phi_replacement_condition to predicate ordinary phi nodes.
3892 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3893 delete call of find_phi_replacement_condition and invoke
3894 predicate_scalar_phi with two arguments.
3895 (insert_gimplified_predicates): Add assert that non-predicated block
3896 don't have statements to insert.
3897 (ifcvt_split_critical_edges): New function.
3898 (ifcvt_split_def_stmt): Likewise.
3899 (ifcvt_walk_pattern_tree): Likewise.
3900 (stmt_is_root_of_bool_pattern): Likewise.
3901 (ifcvt_repair_bool_pattern): Likewise.
3902 (ifcvt_local_dce): Likewise.
3903 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3904 is copy of inner or outer loop force_vectorize field, invoke
3905 ifcvt_split_critical_edges, ifcvt_local_dce and
3906 ifcvt_repair_bool_pattern for aggressive if-conversion.
3908 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
3910 * config/aarch64/aarch64.md: Include xgene1.md.
3911 * config/aarch64/xgene1.md: New file.
3913 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3915 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3916 xgene1 (APM XGene-1) core definition.
3917 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3918 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3919 * doc/invoke.texi: Document -mcpu=xgene1.
3921 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3923 * dojump.h: New header file.
3924 * explow.h: Likewise.
3925 * expr.h: Remove includes.
3926 Move expmed.c prototypes to expmed.h.
3927 Move dojump.c prototypes to dojump.h.
3928 Move alias.c prototypes to alias.h.
3929 Move explow.c prototypes to explow.h.
3930 Move calls.c prototypes to calls.h.
3931 Move emit-rtl.c prototypes to emit-rtl.h.
3932 Move varasm.c prototypes to varasm.h.
3933 Move stmt.c prototypes to stmt.h.
3934 (saved_pending_stack_adjust): Move to dojump.h.
3935 (adjust_address): Move to explow.h.
3936 (adjust_address_nv): Move to emit-rtl.h.
3937 (adjust_bitfield_address): Likewise.
3938 (adjust_bitfield_address_size): Likewise.
3939 (adjust_bitfield_address_nv): Likewise.
3940 (adjust_automodify_address_nv): Likewise.
3941 * explow.c (expr_size): Move to expr.c.
3942 (int_expr_size): Likewise.
3943 (tree_expr_size): Likewise.
3944 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3945 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3946 * genemit.c (main): Generate includes statistics.h, real.h,
3947 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3949 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3950 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3951 explow.h, emit-rtl.h, stmt.h.
3952 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3953 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3954 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3955 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3956 emit-rtl.h, varasm.h, stmt.h.
3957 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3958 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3959 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3960 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3961 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3962 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3963 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3964 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3965 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3966 tm.h tree.h varasm.h vec.h wide-int.h.
3967 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3968 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3969 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3970 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3971 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3972 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3973 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3974 * loop-iv.c: Likewise.
3975 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3976 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3977 statistics.h stmt.h tree.h varasm.h wide-int.h.
3978 * lra-constraints.c: Likewise.
3979 * lra-eliminations.c: Likewise.
3980 * lra-lives.c: Likewise.
3981 * lra-remat.c: Likewise.
3982 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3983 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3984 statistics.h stmt.h tree.h varasm.h wide-int.h.
3985 * hw-doloop.c: Likewise.
3986 * ira-color.c: Likewise.
3987 * ira-emit.c: Likewise.
3988 * loop-doloop.c: Likewise.
3989 * loop-invariant.c: Likewise.
3990 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3991 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3992 statistics.h stmt.h tree.h varasm.h wide-int.h.
3993 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3994 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3995 statistics.h stmt.h tree.h varasm.h wide-int.h.
3996 * combine-stack-adj.c: Likewise.
3999 * ifcvt.c: Likewise.
4000 * ira-costs.c: Likewise.
4002 * lra-coalesce.c: Likewise.
4003 * lra-spills.c: Likewise.
4004 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4005 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
4006 stmt.h varasm.h wide-int.h.
4007 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4008 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4010 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
4011 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
4012 statistics.h stmt.h varasm.h wide-int.h.
4013 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
4014 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
4015 varasm.h wide-int.h.
4016 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
4017 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4018 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
4019 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
4020 statistics.h stmt.h.
4021 * config/tilepro/tilepro.c: Likewise.
4022 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
4023 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
4024 * config/pdp11/pdp11.c: Likewise.
4025 * config/xtensa/xtensa.c: Likewise.
4026 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
4027 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4029 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4030 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4031 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
4032 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4033 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4034 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
4035 * rtl-chkp.c: Likewise.
4036 * tree-chkp-opt.c: Likewise.
4037 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
4038 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4039 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
4040 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4041 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4042 statistics.h stmt.h.
4043 * tree-vect-data-refs.c: Likewise.
4044 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
4045 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4046 rtl.h statistics.h stmt.h varasm.h.
4047 * internal-fn.c: Likewise.
4048 * ipa-icf-gimple.c: Likewise.
4049 * lto-section-out.c: Likewise.
4050 * tree-data-ref.c: Likewise.
4051 * tree-nested.c: Likewise.
4052 * tree-outof-ssa.c: Likewise.
4053 * tree-predcom.c: Likewise.
4054 * tree-pretty-print.c: Likewise.
4055 * tree-scalar-evolution.c: Likewise.
4056 * tree-ssa-strlen.c: Likewise.
4057 * tree-vect-loop.c: Likewise.
4058 * tree-vect-patterns.c: Likewise.
4059 * tree-vect-slp.c: Likewise.
4060 * tree-vect-stmts.c: Likewise.
4062 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4063 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
4065 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
4066 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4067 statistics.h stmt.h varasm.h.
4068 * loop-unroll.c: Likewise.
4069 * ubsan.c: Likewise.
4070 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
4071 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
4073 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4074 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
4075 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
4076 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4077 statistics.h stmt.h.
4078 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
4079 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4080 statistics.h stmt.h varasm.h.
4081 * gimple-match-head.c: Likewise.
4082 * lto-cgraph.c: Likewise.
4083 * lto-section-in.c: Likewise.
4084 * lto-streamer-in.c: Likewise.
4085 * lto-streamer-out.c: Likewise.
4086 * tree-affine.c: Likewise.
4087 * tree-cfg.c: Likewise.
4088 * tree-cfgcleanup.c: Likewise.
4089 * tree-if-conv.c: Likewise.
4090 * tree-into-ssa.c: Likewise.
4091 * tree-ssa-alias.c: Likewise.
4092 * tree-ssa-copyrename.c: Likewise.
4093 * tree-ssa-dse.c: Likewise.
4094 * tree-ssa-forwprop.c: Likewise.
4095 * tree-ssa-live.c: Likewise.
4096 * tree-ssa-math-opts.c: Likewise.
4097 * tree-ssa-pre.c: Likewise.
4098 * tree-ssa-sccvn.c: Likewise.
4099 * tree-tailcall.c: Likewise.
4100 * tree-vect-generic.c: Likewise.
4101 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4102 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
4103 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4104 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
4105 * varasm.c: Likewise.
4106 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4107 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
4109 * init-regs.c: Likewise.
4111 * omp-low.c: Likewise.
4112 * stack-ptr-mod.c: Likewise.
4113 * tree-ssa-reassoc.c: Likewise.
4114 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4115 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
4117 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4118 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
4119 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4120 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
4121 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4122 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
4123 * tree-ssa-phiopt.c: Likewise.
4124 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4125 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4126 * config/fr30/fr30.c: Likewise.
4127 * config/frv/frv.c: Likewise.
4129 * final.c: Likewise.
4130 * optabs.c: Likewise.
4131 * passes.c: Likewise.
4132 * simplify-rtx.c: Likewise.
4134 * toplev.c: Likewise.
4135 * var-tracking.c: Likewise.
4136 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4137 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4138 * lower-subreg.c: Likewise.
4139 * postreload-gcse.c: Likewise.
4141 * reginfo.c: Likewise.
4142 * store-motion.c: Likewise.
4143 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4144 fixed-value.h hashtab.h real.h stmt.h varasm.h.
4145 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4146 fixed-value.h hashtab.h statistics.h stmt.h.
4147 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4148 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4149 * except.c: Likewise.
4150 * explow.c: Likewise.
4151 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4152 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4154 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4155 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4156 * tree-ssa-structalias.c: Likewise.
4157 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4158 fixed-value.h insn-config.h real.h statistics.h.
4159 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4160 fixed-value.h insn-config.h real.h statistics.h stmt.h.
4161 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4162 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4163 * cfgbuild.c: Likewise.
4164 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4165 fixed-value.h real.h rtl.h statistics.h stmt.h.
4166 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4167 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4168 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4169 fixed-value.h real.h statistics.h stmt.h.
4170 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4171 fixed-value.h real.h statistics.h stmt.h varasm.h.
4172 * cprop.c: Likewise.
4173 * modulo-sched.c: Likewise.
4174 * postreload.c: Likewise.
4175 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4176 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4177 statistics.h stmt.h varasm.h.
4178 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4179 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4180 rtl.h statistics.h stmt.h varasm.h.
4181 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4182 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4184 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4185 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4187 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4188 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4190 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4191 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4192 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4193 function.h real.h statistics.h stmt.h varasm.h.
4194 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4195 insn-config.h real.h statistics.h stmt.h.
4196 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4197 statistics.h stmt.h.
4198 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4199 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4200 statistics.h stmt.h varasm.h.
4201 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4202 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4203 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4204 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4205 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4206 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4207 statistics.h stmt.h varasm.h.
4208 * ipa-polymorphic-call.c: Likewise.
4209 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4210 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4211 statistics.h stmt.h.
4212 * config/c6x/c6x.c: Likewise.
4213 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4214 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4215 statistics.h stmt.h varasm.h.
4216 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4217 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4219 * ipa-split.c: Likewise.
4220 * tree-eh.c: Likewise.
4221 * tree-ssa-dce.c: Likewise.
4222 * tree-ssa-loop-niter.c: Likewise.
4223 * tree-vrp.c: Likewise.
4224 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4225 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4227 * config/nds32/nds32-fp-as-gp.c: Likewise.
4228 * config/nds32/nds32-intrinsic.c: Likewise.
4229 * config/nds32/nds32-isr.c: Likewise.
4230 * config/nds32/nds32-md-auxiliary.c: Likewise.
4231 * config/nds32/nds32-memory-manipulation.c: Likewise.
4232 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4233 * config/nds32/nds32-predicates.c: Likewise.
4234 * config/nds32/nds32.c: Likewise.
4235 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4236 fixed-value.h hashtab.h real.h statistics.h.
4237 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4238 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4239 * config/arm/arm.c: Likewise.
4240 * config/avr/avr.c: Likewise.
4241 * config/bfin/bfin.c: Likewise.
4242 * config/h8300/h8300.c: Likewise.
4243 * config/i386/i386.c: Likewise.
4244 * config/ia64/ia64.c: Likewise.
4245 * config/iq2000/iq2000.c: Likewise.
4246 * config/m32c/m32c.c: Likewise.
4247 * config/m32r/m32r.c: Likewise.
4248 * config/m68k/m68k.c: Likewise.
4249 * config/mcore/mcore.c: Likewise.
4250 * config/mep/mep.c: Likewise.
4251 * config/mips/mips.c: Likewise.
4252 * config/mn10300/mn10300.c: Likewise.
4253 * config/moxie/moxie.c: Likewise.
4254 * config/pa/pa.c: Likewise.
4255 * config/rl78/rl78.c: Likewise.
4256 * config/rx/rx.c: Likewise.
4257 * config/s390/s390.c: Likewise.
4258 * config/sh/sh.c: Likewise.
4259 * config/sparc/sparc.c: Likewise.
4260 * config/spu/spu.c: Likewise.
4261 * config/stormy16/stormy16.c: Likewise.
4262 * config/v850/v850.c: Likewise.
4263 * config/vax/vax.c: Likewise.
4264 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4265 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4266 * config/msp430/msp430.c: Likewise.
4267 * predict.c: Likewise.
4268 * value-prof.c: Likewise.
4269 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4270 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4271 * config/microblaze/microblaze.c: Likewise.
4272 * config/nios2/nios2.c: Likewise.
4273 * config/rs6000/rs6000.c: Likewise.
4274 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4275 insn-config.h real.h rtl.h statistics.h stmt.h.
4276 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4277 insn-config.h real.h statistics.h stmt.h.
4278 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4279 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4280 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4281 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4282 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4283 fixed-value.h real.h statistics.h stmt.h.
4284 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4285 fixed-value.h statistics.h stmt.h.
4286 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4289 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4291 * gengtype.c (create_user_defined_type): Workaround
4292 -Wmaybe-uninitialized false positives.
4293 * cse.c (fold_rtx): Likewise.
4294 * loop-invariant.c (gain_for_invariant): Likewise.
4296 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
4298 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4299 set the memory attributes in all cases but clear MEM_EXPR if need be.
4301 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4303 PR tree-optimization/64434
4304 * cfgexpand.c (reorder_operands): New function.
4305 (expand_gimple_basic_block): Insert call of reorder_operands if
4308 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
4310 * config/mips/micromips.md (*swp): Remove explicit parallel.
4311 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4312 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4313 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4314 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4315 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4316 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4317 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4318 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4319 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4320 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4321 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4322 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4323 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4324 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4325 (mips_wrdsp): Likewise.
4326 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4328 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4329 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4330 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4331 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4332 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4333 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4334 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4335 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4336 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4338 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4340 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4341 (mips_print_operand): Support 'y' to print exact log2 in decimal
4343 * config/mips/mips.h (ISA_HAS_LSA): New define.
4344 (ISA_HAS_DLSA): Likewise.
4345 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4346 * config/mips/predicates.md (const_immlsa_operand): New predicate.
4348 2015-01-15 Martin Liska <mliska@suse.cz>
4351 * optc-save-gen.awk: Add support for array types.
4353 2015-01-15 Richard Biener <rguenther@suse.de>
4356 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4357 for MEM_REF access functions with the same base can never partially
4360 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4362 * common.opt: New option -fstack-protector-explicit.
4363 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4364 (stack_protect_decl_phase): Handle stack_protect attribute for
4365 explicit stack protection requests.
4366 (expand_used_vars): Similarly.
4367 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4368 * doc/extend.texi: Add documentation for "stack_protect" attribute.
4369 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4371 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
4374 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4376 (sh_extending_set_of_reg): New struct.
4377 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4378 sh_remove_reg_dead_or_unused_notes): New Declarations.
4379 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4380 sh_find_extending_set_of_reg, sh_split_tst_subregs,
4381 sh_extending_set_of_reg::use_as_extended_reg): New functions.
4382 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4383 convert to insn_and_split and use new function sh_split_tst_subregs.
4385 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
4387 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4389 (Optimization Options): Move -fuse-ld documentation to...
4390 (Link Options): ...here.
4392 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4394 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4396 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4397 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4398 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4399 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4400 instead of ZR for the memory operand of LL/SC.
4401 (compare_and_swap_12, sync_add<mode>): Likewise.
4402 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4403 (sync_new_<optab>_12, sync_nand_12): Likewise.
4404 (sync_old_nand_12, sync_new_nand_12): Likewise.
4405 (sync_sub<mode>, sync_old_add<mode>): Likewise.
4406 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4407 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4408 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4409 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4410 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4411 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4412 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4413 * doc/md.texi (ZC): Update description.
4415 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4417 * builtins.c (expand_builtin_atomic_exchange): Remove error when
4418 memory model is CONSUME.
4419 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4420 expand_builtin_atomic_store): Change invalid memory model errors to
4422 (expand_builtin_atomic_clear): Change invalid model errors to warnings
4423 and issue warning for CONSUME.
4425 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
4427 * lto-cgraph: Update function comments for
4428 lto_symtab_encoder_encode_*.
4430 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4432 * Makefile.in (site.exp): Do not set ENABLE_LTO.
4434 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4436 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4437 * lto-cgraph.c (select_what_to_stream): Remove argument, use
4438 lto_stream_offload_p instead.
4439 * lto-streamer.h (select_what_to_stream): Remove argument.
4440 * passes.c (ipa_write_summaries): Likewise.
4441 * tree-pass.h (ipa_write_summaries): Likewise.
4443 2015-01-14 Richard Biener <rguenther@suse.de>
4445 PR tree-optimization/59354
4446 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4447 groups larger than the slp group size as having gaps.
4449 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4452 * builtins.c (get_memmodel): Promote consume to acquire always.
4454 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4457 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
4460 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4463 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4465 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4466 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4467 AVX512VBMI, as it implies AVX512BW.
4469 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
4472 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4473 (vec_unpacks_hi_v16sf): Ditto.
4475 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4477 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4480 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4482 * doc/invoke.texi (mapcs): Mention deprecation.
4483 (mapcs-frame): Likewise.
4485 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4488 * config/arm/arm.c (callee_saved_reg_p): Define.
4489 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4490 register is callee saved instead of !call_used_regs[reg].
4491 (thumb1_compute_save_reg_mask): Likewise.
4493 2015-01-14 Hale Wang <hale.wang@arm.com>
4495 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4498 2015-01-14 Richard Biener <rguenther@suse.de>
4501 * tree-inline.c (insert_debug_decl_map): Check destination
4502 function MAY_HAVE_DEBUG_STMTS.
4503 (insert_init_debug_bind): Likewise.
4504 (insert_init_stmt): Remove redundant check.
4505 (remap_gimple_stmt): Drop debug stmts if the destination
4506 function has var-tracking assignments disabled.
4508 2015-01-14 Martin Liska <mliska@suse.cz>
4510 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4511 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4513 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4516 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4517 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4519 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4521 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4522 level from an ARCH; do not inject the default.
4523 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4524 MIPS_ISA_LEVEL_SPEC.
4525 (MIPS_ISA_NAN2008_SPEC): Update comment.
4526 (BASE_DRIVER_SELF_SPECS): Likewise.
4527 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4528 MIPS_DEFAULT_ISA_LEVEL_SPEC.
4529 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4530 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4531 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
4533 2015-01-14 Richard Biener <rguenther@suse.de>
4535 PR tree-optimization/64493
4536 PR tree-optimization/64495
4537 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4538 assign the proper vectorized PHI to the inner loop exit PHIs.
4540 2015-01-14 Joey Ye <joey.ye@arm.com>
4542 * config/arm/arm.c (arm_compute_save_reg_mask):
4543 Do not save lr in case of tail call.
4544 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4546 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
4548 * tree-vrp.c (check_array_ref): Emit more warnings
4549 for warn_array_bounds >= 2.
4550 * common.opt: New option -Warray-bounds=.
4551 * doc/invoke.texi: Document -Warray-bounds=.
4553 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
4555 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4556 (mforbid-fp-as-gp): Remove.
4558 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4559 (nds32_symbol_load_store_p): Remove.
4560 (nds32_fp_as_gp_check_available): Clean up implementation.
4561 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4563 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4564 fp-as-gp and ex9 cases.
4566 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4568 * tree-profile.c (init_ic_make_global_vars): Drop workaround
4569 for bintuils bug 14342.
4570 (init_ic_make_global_vars): Likewise.
4571 (gimple_init_edge_profiler): Likewise.
4572 (gimple_gen_ic_func_profiler): Likewise.
4574 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4576 * ipa-inline.c (inline_small_functions): Swap the operands in
4579 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4582 * ipa-inline-analysis.c (node_growth_cache): Remove.
4583 (initialize_growth_caches): Do not initialize it.
4584 (free_growth_caches): Do not free it.
4585 (do_estimate_growth): Rename to ...
4586 (estimate_growth): ... this one; drop growth cache code.
4587 (growth_likely_positive): Always go the heuristics way.
4588 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4589 (reset_edge_caches): Do not reset node growth.
4590 (heap_edge_removal_hook): Do not maintain cache.
4591 (inline_small_functions): Likewise; strenghten sanity check.
4592 (ipa_inline): Do not maintain caches.
4593 * ipa-inline.h (node_growth_cache): Remove.
4594 (do_estimate_growth): Remove to ...
4595 (estimate_growth): this one; remove inline version.
4596 (reset_node_growth_cache): Remove.
4598 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
4601 * ipa-inline.c (inline_small_functions): Update callee keys after
4602 resolving speculation
4603 (inline_small_functions): Always check monotonicity of the queue.
4605 2015-01-13 Marek Polacek <polacek@redhat.com>
4608 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4610 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4612 PR rtl-optimization/64286
4613 * ree.c (combine_reaching_defs): Move part of comment earlier,
4614 remove !SCALAR_INT_MODE_P check.
4615 (add_removable_extension): Don't add vector mode
4616 extensions if all uses of the source register aren't the same
4619 2015-01-13 Renlin Li <renlin.li@arm.com>
4621 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4622 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4624 2015-01-13 Martin Liska <mliska@suse.cz>
4626 * ipa-icf.c (sem_function::equals_private): Call new functions
4627 cl_target_option_print_diff and cl_optimization_print_diff.
4628 * optc-save-gen.awk (cl_target_option_print_diff): New function.
4629 (cl_optimization_print_diff): Likewise.
4630 * opth-gen.awk: Likewise.
4632 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
4634 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4635 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4636 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4637 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4638 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4639 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4641 2015-01-13 Andrew Pinski <apinski@cavium.com>
4643 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4644 instead of src mode.
4646 2015-01-13 Richard Biener <rguenther@suse.de>
4649 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4652 2015-01-13 Andrew Pinski <apinski@cavium.com>
4654 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4656 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4658 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4661 * cfgexpand.c (expand_computed_goto): Don't call
4662 convert_memory_address here.
4664 2015-01-13 Richard Biener <rguenther@suse.de>
4666 PR tree-optimization/64406
4667 * tree-loop-distibution.c (pass_loop_distribution::execute):
4668 Reset the SCEV hashtable if we distributed anything.
4670 2015-01-13 Richard Biener <rguenther@suse.de>
4672 PR tree-optimization/64404
4673 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4674 SLP types for CSEd loads.
4676 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4678 PR tree-optimization/64436
4679 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4680 merge of two symbolic numbers for a bitwise OR to ...
4681 (perform_symbolic_merge): This. Also fix computation of the range and
4682 end of the symbolic number corresponding to the result of a bitwise OR.
4684 2015-01-13 Richard Biener <rguenther@suse.de>
4686 PR tree-optimization/64568
4687 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4688 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4690 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4692 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4693 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4695 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4697 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4698 target-specific symbol_ref flag.
4699 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4700 resides in rodata section.
4701 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4702 (nds32_encode_section_info): New function.
4704 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4706 * config/nds32/nds32.md (call): Use pseudo instruction bal which
4707 clobbers TA_REGNUM if large code model is specified.
4708 (call_register): Likewise.
4709 (call_immediate): Likewise.
4710 (call_value): Likewise.
4711 (call_value_register): Likewise.
4712 (call_value_immediate): Likewise.
4714 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4716 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4717 (TARGET_CMODEL_MEDIUM): New macro.
4718 (TARGET_CMODEL_LARGE): New macro.
4719 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4720 code model setting in assembly code.
4722 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4724 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4725 Remove MASK_GP_DIRECT flag.
4726 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4727 one of the multilib default options.
4728 * config/nds32/nds32.opt (mgp-direct): Remove.
4729 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4730 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
4732 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4734 * config/nds32/nds32.opt (mcmodel): Add new option.
4735 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4736 to describe code model.
4738 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
4741 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4743 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
4745 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4746 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4747 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4748 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4749 __builtin_sh_set_fpscr.
4751 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4753 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4754 after a funtion name just to indicate it is a function.
4755 ([-fsanitize-undefined-trap-on-error]): Likewise.
4756 ([-fdbg-cnt=]): Likewise.
4757 ([-mmemcpy]): Likewise.
4758 ([-mflush-func]): Likewise.
4759 ([-msynci]): Likewise.
4761 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4763 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4766 2015-01-12 Jakub Jelinek <jakub@redhat.com>
4768 PR tree-optimization/64563
4769 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4770 instead of != VR_VARYING.
4773 * config/i386/i386.c (ix86_expand_prologue): Add
4774 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4776 PR tree-optimization/64454
4777 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4778 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4779 for signed or [0, op1 - 1] for unsigned modulo.
4780 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4781 even if op1 does not satisfy integer_pow2p.
4784 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4786 2015-01-12 Jeff Law <law@redhat.com>
4789 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4790 (trunchiqi2, truncsihi2): Similarly.
4792 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4793 rather than calling F.
4795 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4797 * tsan.c (instrument_expr): Use force_gimple_operand.
4798 Use may_be_nonaddressable_p instead of is_gimple_addressable.
4800 2015-01-12 Richard Biener <rguenther@suse.de>
4802 PR tree-optimization/64530
4803 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4806 2015-01-12 Richard Biener <rguenther@suse.de>
4809 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4812 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4814 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4815 Cortex-A17 tuning parameters.
4816 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4818 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4820 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4821 * config/arm/arm.c (arm_macro_fusion_p): New function.
4822 (arm_macro_fusion_pair_p): Likewise.
4823 (TARGET_SCHED_MACRO_FUSION_P): Define.
4824 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4825 (ARM_FUSE_NOTHING): Likewise.
4826 (ARM_FUSE_MOVW_MOVT): Likewise.
4827 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4828 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4829 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4830 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4831 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4832 arm_cortex_a5_tune): Specify fuseable_ops value.
4834 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
4837 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4838 test for PIE with copy reloc.
4839 * configure: Regenerated.
4841 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4843 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4845 (arm_tls_descseq_addr): Likewise.
4846 (arm_gen_movmemqi): Likewise.
4847 (arm_expand_epilogue_apcs_frame): Likewise.
4848 (arm_expand_epilogue): Likewise.
4849 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
4852 2015-01-12 Martin Liska <mliska@suse.cz>
4855 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4856 volatility for correct operands.
4858 2015-01-12 Martin Liska <mliska@suse.cz>
4860 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4861 that a function is not leaf.
4862 (sem_function::compare_polymorphic_p): Likewise.
4864 2015-01-12 Martin Liska <mliska@suse.cz>
4866 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4867 that a function is not leaf.
4868 (sem_function::compare_polymorphic_p): Likewise.
4870 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4872 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4873 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4874 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4875 fold-const.h, tree-check.h.
4877 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4881 * ipa-inline.c (compute_uninlined_call_time,
4882 compute_inlined_call_time): Use counts for extra precision when
4884 (big_speedup_p): Fix formating.
4885 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4886 (relative_time_benefit): Remove.
4887 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4888 merge guessed and read profile paths.
4889 (inline_small_functions): Count only !optimize_size functions into
4890 initial size; be more lax about sanity check when profile is used;
4891 be sure to update inlined function profile when profile is read.
4893 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4896 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4897 cost when edge becomes direct.
4898 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4899 is resolved or when introducing new speculation.
4901 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
4905 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4906 '||' to fix typo issue.
4908 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4909 accept and return NULL.
4911 2015-01-12 Martin Liska <mliska@suse.cz>
4913 * cgraph.c (cgraph_edge::remove_callee): Move function to header
4914 file for being inlined.
4915 (cgraph_set_edge_callee): Delete.
4916 (cgraph_edge::redirect_callee): Move function to header file
4918 (cgraph_edge::make_direct): Use new function.
4919 (cgraph_edge::dump_edge_flags): New function created from
4920 static dump_edge_flags function.
4921 (cgraph_node::dump): Use new function.
4922 (cgraph_edge::verify_count_and_frequency): New function created
4923 from verify_edge_count_and_frequency.
4924 (cgraph_edge::verify_corresponds_to_fndecl): New function created
4925 from verify_edge_corresponds_to_fndecl.
4926 (verify_edge_corresponds_to_fndecl): Delete.
4927 (cgraph_node::verify_node): Use new function.
4928 * cgraph.h (cgraph_edge::set_callee): New function.
4929 (cgraph_edge::dump_edge_flags): Likewise.
4930 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4932 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
4934 * ipa-utils.c (estimate_function_body_sizes): Do not
4935 free node params when called late with early=true.
4937 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
4939 * doc/md.texi (Instruction Patterns): Rewrite text for
4941 (Example): Likewise.
4943 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
4945 * doc/invoke.texi (Option Summary): Break long lines.
4946 [(-fdiagnostics-color)]: Put long literal in @smallexample
4948 [(-fsanitize-recover)]: Likewise.
4949 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4950 [(-ffast-math)]: Likewise.
4951 [(--param max-inline-insns-recursive)]: Likewise.
4952 [(--param max-inline-recursive-depth)]: Likewise.
4953 [(-mno-text-section-literals)]: Likewise.
4955 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4957 * doc/install.texi: Update for libgomp being renamed from "GNU
4958 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4960 * doc/sourcebuild.texi: Likewise.
4962 2015-01-10 Anthony Green <green@moxielogic.com>
4964 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4965 mul.x availability for moxiebox configuration.
4967 2015-01-09 Anthony Green <green@moxielogic.com>
4969 * config/moxie/moxie.md: Tabify assembly output.
4971 2015-01-09 Anthony Green <green@moxielogic.com>
4973 * config/moxie/moxie.md (CC_REG): Correct register definition.
4975 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4977 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4978 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4981 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4983 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4985 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4986 Jakub Jelinek <jakub@redhat.com>
4989 * lto-streamer.h (lto_stream_offload_p): New declaration.
4990 * lto-streamer.c (lto_stream_offload_p): New variable.
4991 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4992 at the same time as section_name_prefix.
4993 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4994 if lto_stream_offload_p.
4995 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4996 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4997 (write_ts_function_decl_tree_pointers): Don't
4998 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4999 * tree-streamer-in.c (unpack_value_fields): Don't stream
5000 TREE_TARGET_OPTION in if ACCEL_COMPILER.
5001 (lto_input_ts_function_decl_tree_pointers): Don't stream
5002 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
5003 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
5004 instead of section_name_prefix string comparisons.
5006 2015-01-09 Jakub Jelinek <jakub@redhat.com>
5008 PR rtl-optimization/64536
5009 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
5012 2015-01-09 Michael Collison <michael.collison@linaro.org>
5014 PR tree-optimization/64322
5015 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
5016 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
5018 2015-01-09 Tom de Vries <tom@codesourcery.com>
5020 PR rtl-optimization/64539
5021 * regcprop.c (kill_clobbered_values): Factor out of ...
5022 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
5023 instead of note_stores with kill_clobbered_value.
5025 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5027 * ginclude/unwind-arm-common.h: Revert previous commit.
5029 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5031 * config.gcc (arm*-*-freebsd*): New configuration.
5032 * config/arm/freebsd.h: New file.
5033 * config.host: Add extra components for arm*-*-freebsd*.
5034 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
5035 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
5037 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5039 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
5041 * config/rs6000/t-rtems: Add e6500 multilibs.
5043 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5045 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
5048 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5050 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
5051 MULTILIB_EXCEPTIONS.
5053 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5055 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
5056 MULTILIB_EXCEPTIONS.
5058 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5060 * config/arm/t-rtems-eabi: Rename to...
5061 * config/arm/t-rtems: ...this.
5062 * config/arm/rtems-eabi.h: Rename to...
5063 * config/arm/rtems.h: ...this.
5064 * config.gcc (arm*-*-rtems*): Reflect changes above.
5066 2015-01-09 Richard Biener <rguenther@suse.de>
5068 PR tree-optimization/64410
5069 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
5071 (execute_update_addresses_taken): Deal with that.
5072 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
5073 loads/stores for complex variables.
5075 2015-01-09 Martin Liska <mliska@suse.cz>
5077 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
5079 (func_checker::compare_memory_operand): New function.
5080 (func_checker::compare_operand): Split case to newly
5082 (func_checker::compare_cst_or_decl): New function.
5083 (func_checker::compare_gimple_call): Identify
5085 (func_checker::compare_gimple_assign): Likewise.
5086 * ipa-icf-gimple.h: New function.
5088 2015-01-09 Martin Liska <mliska@suse.cz>
5091 * sreal.c (sreal::dump): Change unsigned format to signed for
5093 (sreal::to_double): Replace exp2 with scalbln.
5095 2015-01-09 Martin Liska <mliska@suse.cz>
5097 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
5098 * ipa-icf.c (sem_function::equals_private): Add support for target and
5099 (sem_item_optimizer::merge_classes): Remove redundant function
5100 optimization flags comparison.
5101 * tree.h (target_opts_for_fn): New function.
5103 2015-01-09 Tom de Vries <tom@codesourcery.com>
5105 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
5107 2015-01-09 Kito Cheng <kito@0xlab.org>
5109 PR rtl-optimization/64348
5110 * lra-constraints.c (split_reg): Fix caller-save store/restore
5111 instruction generation.
5113 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
5115 PR gcov-profile/61790
5116 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
5117 long long. Fallback to int64_t if host doesn't have long long and
5118 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
5120 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5122 PR tree-optimization/63989
5123 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
5125 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
5126 (get_stridx): If we don't have a record for certain SSA_NAME,
5127 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
5128 constant offset, call get_stridx_plus_constant.
5129 (get_stridx_plus_constant): New function.
5130 (zero_length_string): Don't use get_stridx here.
5134 * dse.c (struct insn_info): Mention frame_read set also
5135 before reload for tail calls on some targets.
5136 (scan_insn): Revert 2014-12-22 change. Set frame_read
5137 also before reload for tail calls if
5138 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
5139 instead of add_non_frame_wild_read for non-const/memset
5140 tail calls after reload.
5142 2015-01-08 Jason Merrill <jason@redhat.com>
5144 * ubsan.c (do_ubsan_in_current_function): New.
5145 (pass_ubsan::gate): Use it.
5146 * ubsan.h: Declare it.
5147 * convert.c (convert_to_integer): Use it.
5149 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5152 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5153 compare_code when it is unconditionally overwritten afterwards.
5154 Use ix86_reverse_condition instead of reverse_condition. Don't
5155 change code if *reverse_condition* returned UNKNOWN and don't
5156 swap ct/cf and negate diff in that case.
5158 2015-01-08 Mike Stump <mikestump@comcast.net>
5160 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5161 (pass_tsan_O0::gate): Likewise.
5162 * extend.texi (Function Attributes): Add no_sanitize_thread
5165 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5167 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5168 for registering builtins.
5169 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5170 add -fopenmp to the argv_obstack used when invoking
5173 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5174 add "-m32" or "-m64" to argv_obstack.
5175 (generate_host_descr_file): Likewise, when invoking host_compiler.
5176 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5179 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5181 * config/sh/sh-mem.cc: Use constant as second operand when emitting
5184 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5187 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5188 constant load if constant operand fits into I08.
5190 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5193 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5194 and TREE_THIS_VOLATILE for MEM_REFs.
5195 (build5_stat): Fix up initialization of TREE_READONLY and
5196 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5198 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
5201 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5202 of r for the second alternative of the destination operand.
5204 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
5207 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5209 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5211 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5213 ([-fivar-visibility], [-fvisibility]): Likewise.
5215 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5217 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5218 the file where @code, @command, etc is more appropriate.
5220 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
5222 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5223 of -mrecip= documentation.
5225 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5228 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5229 correct reload handler if -m32 -mpowerpc64 is used.
5231 2015-01-06 Tom de Vries <tom@codesourcery.com>
5233 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5235 2015-01-08 Christian Bruel <christian.bruel@st.com>
5238 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5240 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
5242 PR tree-optimization/63259
5243 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5244 if optab exists for 16bit byteswap.
5246 2015-01-06 Jakub Jelinek <jakub@redhat.com>
5248 * opts.c (common_handle_option): Add support for
5249 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5250 * doc/invoke.texi: Document -fno-sanitize=all,
5251 -f{,no-}sanitize-recover=all. Document that
5252 -fsanitize=float-cast-overflow is not enabled
5253 by -fsanitize=undefined. Fix up documentation
5254 of -f{,no-}sanitize-recover.
5256 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
5258 * config.gcc: Add Visium support.
5259 * configure.ac: Likewise.
5260 * configure: Regenerate.
5261 * doc/extend.texi (interrupt attribute): Add Visium.
5262 * doc/invoke.texi: Document Visium options.
5263 * doc/install.texi: Document Visium target.
5264 * doc/md.texi: Document Visium constraints.
5265 * common/config/visium: New directory.
5266 * config/visium: Likewise.
5268 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5270 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5271 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5273 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5275 * combine.c (combine_validate_cost): Do not count the cost of a
5276 split I2 twice. Do not display it twice in the dump, either.
5278 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5280 Revert parts of r219199.
5281 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5283 ([-Wtraditional]): Restore markup on <limits.h>.
5285 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5288 * doc/invoke.texi: Document -Wsuggest-override.
5290 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
5292 PR rtl-optimization/64287
5293 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5294 (process_options): Disable flag_ipa_ra if profiling.
5296 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5298 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5300 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
5302 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5303 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5304 put under #if TARGET_LOOPS guard.
5306 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
5308 * config/i386/i386.c (output_387_binary_op): Use std::swap.
5310 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
5312 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5313 * rtl.h (refers_to_regno_p): Add overload.
5315 * bt-load.c: Likewise.
5316 * combine.c: Likewise.
5317 * df-scan.c: Likewise.
5318 * sched-deps.c: Likewise.
5319 * config/s390/s390.c: Likewise.
5320 * config/m32r/m32r.c: Likewise.
5321 * config/rs6000/spe.md: Likewise.
5322 * config/rs6000/rs6000.c: Likewise.
5323 * config/pa/pa.c: Likewise.
5324 * config/stormy16/stormy16.c: Likewise.
5325 * config/cris/cris.c: Likewise.
5326 * config/arc/arc.md: Likewise.
5327 * config/arc/arc.c: Likewise.
5328 * config/sh/sh.md: Likewise.
5329 * config/sh/sh.c: Likewise.
5330 * config/frv/frv.c: Likewise.
5332 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5335 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5336 call as cleanup of the whole body.
5337 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5338 * tsan.c (replace_func_exit): New function.
5339 (instrument_func_exit): Moved earlier.
5340 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5341 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5343 (tsan_pass): Don't call instrument_func_exit.
5344 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5345 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5349 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5350 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5351 it to libubsan handler instead of EXPR. Fold comparisons earlier,
5352 if the result is integer_zerop, return NULL_TREE.
5353 * convert.c (convert_to_integer): Pass expr as ARG.
5355 PR tree-optimization/64465
5356 * tree-inline.c (redirect_all_calls): During inlining
5357 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5358 changed the stmt to a non-throwing call.
5360 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5362 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5363 etc markup throughout the file.
5365 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5367 Enable experimental TSAN support for Ada.
5368 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5370 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5372 PR tree-optimization/64494
5373 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5374 clear SSA_NAME_ANTI_RANGE_P flag.
5376 2015-01-05 Marek Polacek <polacek@redhat.com>
5378 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5380 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5382 Update copyright years.
5384 * gcc.c (process_command): Update copyright notice dates.
5385 * gcov-dump.c: Ditto.
5387 * doc/cpp.texi: Bump @copying's copyright year.
5388 * doc/cppinternals.texi: Ditto.
5389 * doc/gcc.texi: Ditto.
5390 * doc/gccint.texi: Ditto.
5391 * doc/gcov.texi: Ditto.
5392 * doc/install.texi: Ditto.
5393 * doc/invoke.texi: Ditto.
5395 * auto-profile.c, auto-profile.h: Fix up Copyright line.
5397 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
5399 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5401 ([-fvtable-verify], [-fvtv-debug]): Likewise.
5402 ([-Wabi]): Likewise.
5403 ([-fmessage-length]): Likewise.
5404 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5405 ([-Wno-discarded-qualifiers]): Likewise.
5406 ([-Wnodiscarded-array-qualifiers]): Likewise.
5407 ([-Wno-virtual-move-assign]): Likewise.
5408 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5409 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5410 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5411 ([-fsanitize-undefined-trap-on-error]): Likewise.
5412 ([-floop-interchange]): Likewise.
5413 ([-ftree-coalesce-inlined-vars]): Likewise.
5414 ([-fvect-cost-model]): Likewise.
5415 ([-flto]): Likewise.
5416 ([--param]): Likewise.
5417 (Spec Files): Likewise.
5418 ([-mstrict-align]): Likewise.
5419 ([-mfix-cortex-a53-835769]): Likewise.
5420 ([-march], [-mtune]): Likewise.
5421 ([-mpic-register]): Likewise.
5422 ([-munaligned-access]): Likewise.
5423 ([-msp8]): Likewise.
5424 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5425 (AVR Built-in Macros): Likewise.
5426 ([-mpreferred-stack-boundary]): Likewise.
5427 ([-mtune-crtl]): Likewise.
5428 ([-mashf]): Likewise.
5429 ([-mmcu=]): Likewise.
5430 ([-minrt]): Likewise.
5431 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5432 ([-mupper-regs]): Likewise.
5433 ([-matomic-model]): Likewise.
5434 ([-mdiv]): Likewise.
5435 ([-mzdcbranch]): Likewise.
5436 ([-mdisable-callt]): Likewise.
5437 ([-msoft-float]): Likewise.
5438 ([-m8byte-align]): Likewise.
5439 ([-fstack-reuse]): Likewise.
5441 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5443 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5444 Fix markup, light copy-editing.
5445 ([-fauto-profile]): Rewrite to fix formatting and content
5448 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5450 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5451 Copy-edit description.
5452 ([-fisolate-erroneous-paths-attribute]): Likewise.
5453 * common.opt (fisolate-erroneous-paths-dereference):
5454 Copy-edit description.
5455 (fisolate-erroneous-paths-attribute): Likewise.
5457 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5459 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5462 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
5464 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5465 ([-fvtv-debug]): Likewise.
5466 ([-Wc++-compat]): Likewise.
5467 ([-Wc++11-compat]): Likewise.
5468 ([-Wc++14-compat]): Likewise.
5469 ([-Wno-sized-deallocation]): Likewise.
5470 ([-femit-class-debug-always]): Likewise.
5471 ([-femit-struct-debug-detailed]): Likewise.
5472 ([-fno-keep-inline-dllexport]): Likewise.
5473 ([-fira-algorithm]): Likewise.
5474 ([-fira-region]): Likewise.
5475 ([-flra-remat]): Likewise.
5476 ([-fipa-ra]): Likewise.
5477 ([-fhoist-adjacent-loads]): Likewise.
5478 ([-fisolate-erroneous-paths-dereference]): Likewise.
5479 ([-fisolate-erroneous-paths-attribute]): Likewise.
5480 ([-ftree-switch-conversion]): Likewise.
5481 ([-ftree-tail-merge]): Likewise.
5482 ([-ftree-loop-if-convert]): Likewise.
5483 ([-ftree-loop-if-convert-stores]): Likewise.
5484 ([-ftree-loop-distribution]): Likewise.
5485 ([-ftree-loop-distribute-patterns]): Likewise.
5486 ([-flto-compression-level]): Likewise.
5487 ([-flto-report]): Likewise.
5488 ([-flto-report-wpa]): Likewise.
5489 ([-fuse-linker-plugin]): Likewise.
5490 ([-mfix-cortex-a53-835769]): Likewise.
5491 ([-mno-fix-cortex-a53-835769]): Likewise.
5492 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5493 explicit listing; add a note to the discussion indicating they
5494 exist. Reorder table to group similar options. Add missing
5495 @opindex entries. Add @need commands throughout the table to
5496 allow it to be split across multiple pages.
5497 ([-m8bit-idiv]): Fix @opindex.
5498 ([-mavx256-split-unaligned-load]): Likewise.
5499 ([-mavx256-split-unaligned-store]): Likewise.
5500 ([-mstack-protector-guard]): Likewise.
5501 ([-mcpu=]): Likewise.
5502 ([-mcpu]): Likewise.
5503 ([-mpointer-size=]): Likewise.
5505 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
5507 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5508 instead of `m' constraint. Likewise for unnamed movb comparison
5509 patterns using reg_before_reload_operand predicate.
5510 * config/pa/predicates.md (reg_before_reload_operand): Tighten
5511 predicate to reject register index and LO_SUM DLT memory forms
5514 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5516 * doc/invoke.texi (Option Summary): Fix spelling of
5517 -fdevirtualize-at-ltrans.
5518 ([-fdevirtualize]): Fix markup.
5519 ([-fdevirtualize-speculatively]): Fix typo.
5520 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
5522 * common.opt (fdevirtualize-at-ltrans): Likewise.
5523 * ipa-devirt.c: Fix typos in comments throughout the file.
5524 (ipa_devirt): Fix typos in format strings for dump output.
5526 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
5528 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5529 discussion of defaults, light copy-editing.
5531 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5533 * tsan.c (instrument_expr): corrected previous checkin.
5535 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5537 Instrument bit field and unaligned accesses for TSAN.
5538 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5539 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5540 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5541 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5542 unaligned memory regions.
5544 2015-01-01 Anthony Green <green@moxielogic.com>
5546 * config/moxie/predicates.md (moxie_general_movsrc_operand):
5547 Restrict move source register offsets to 16 bits.
5549 Copyright (C) 2015 Free Software Foundation, Inc.
5551 Copying and distribution of this file, with or without modification,
5552 are permitted in any medium without royalty provided the copyright
5553 notice and this notice are preserved.