1 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
3 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
4 are for the same position.
6 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
8 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
10 (vectorize_loops): Use it.
12 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
16 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18 * tree.c (need_assembler_name_p): Compute mangled name for
19 non-fundamental types and integer types.
21 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
23 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25 * expr.c (expand_expr_real_2): Likewise.
27 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
29 * tree.c (build_common_builtin_nodes): Do not build
30 __builtin_alloca_with_align as equivalent of library alloca.
32 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
35 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
37 * tree.c: Include print-tree.h and ipa-utils.h
38 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
39 (free_lang_data_in_cgraph): Call verify_type.
40 (verify_type_variant): New function.
41 (verify_type): New function.
42 * tree.h (verify_type): Declare.
44 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
46 * config/mips/mips-cpus.def: (mips4): Change default processor
47 from PROCESSOR_R8000 to PROCESSOR_R10000.
49 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
51 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
52 la/jalr instead of jal.
54 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
57 * config/i386/i386.md (*bmi_bextr_<mode>_cczonly): New pattern.
58 (*bmi2_bzhi_<mode>3_1_cczonly): Ditto.
59 (setcc+movzbl peephole2): Check also clobbered reg.
60 (setcc+andl peephole2): Ditto.
62 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
65 * config/nvptx/mkoffload.c (target_ilp32): New variable.
66 (main): Set it depending on "-foffload-abi=[...]".
67 (compile_native, main): Use it to pass "-m32" or "-m64" to the
70 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
73 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
74 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
75 Flip lane index back at assembly time for bigendian.
77 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
79 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
80 * gimplify.c (gimplify_omp_workshare): Use it.
82 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
84 * Makefile.in (build/genrecog.o): Depend on inchash.h.
85 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
87 * genrecog.c: Rewrite most of the code except for the third page.
89 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
91 * inchash.h, inchash.c: Include bconfig.h for build objects.
92 * Makefile.in (build/inchash.o): New rule.
94 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
97 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
98 number in type attribute expression.
100 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
102 * loop-iv.c (canon_condition): Generalize to all types of integer
105 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
107 * gimple-walk.c: Prune duplicate or unneeded includes.
108 (walk_gimple_asm): Only call parse_input_constraint or
109 parse_output_constraint if their findings are used.
110 Honour parse_input_constraint and parse_output_constraint
113 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
115 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
117 2015-04-29 Tom de Vries <tom@codesourcery.com>
119 PR tree-optimization/65893
120 * passes.def (pass_all_optimizations): Move pass_stdarg to after
123 2015-04-29 Richard Biener <rguenther@suse.de>
125 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
126 compute GROUP_SIZE for basic-block SLP.
127 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
128 take into account gaps.
129 (vect_get_mask_element): Properly reject references to previous
131 (vect_transform_slp_perm_load): Likewise.
133 2015-04-29 Christian Bruel <christian.bruel@st.com>
136 * config/i386/i386.c (ix86_default_align): New function.
137 (ix86_override_options_after_change): Call ix86_default_align.
138 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
139 (ix86_override_options_after_change): New function.
141 2015-04-28 Jeff Law <law@redhat.com>
143 * tree-ssa-dom.c (record_equality); Fix comment typos.
145 2015-04-28 Tom de Vries <tom@codesourcery.com>
147 PR tree-optimization/65887
148 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
150 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
152 * doc/extend.texi (Declaring Attributes of Functions): Split into
153 subsections by target. Alphabetize the table of common attributes.
154 Rewrite some of the introductory text to reflect the new structure.
155 Update some cross-references to point to the new subsections.
156 (Attribute Syntax): Put paragraph about "__" naming here. Remove
157 duplicate copies in the discussion of function, label, and type
160 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
163 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
165 2015-04-28 Jason Merrill <jason@redhat.com>
168 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
169 (finalize_type_size): Respect TYPE_USER_ALIGN.
170 (layout_type) [ARRAY_TYPE]: Likewise.
172 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
174 * config/arm/arm.md (*arm_movt): Fix type attribute.
175 (*cmpsi_shiftsi): Likewise.
176 (*cmpsi_shiftsi_swp): Likewise.
177 (*movsicc_insn): Likewise.
178 (*cond_move): Likewise.
179 (*if_plus_move): Likewise.
180 (*if_move_plus): Likewise.
181 (*if_arith_move): Likewise.
182 (*if_move_arith): Likewise.
183 (*if_shift_move): Likewise.
184 (*if_move_shift): Likewise.
185 (*arm_movtas_ze): Likewise.
186 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
187 redundancy and type attribute.
188 (*thumb2_movsi_insn): Fix type attribute.
189 (*thumb2_addsi_short): Likewise.
190 (thumb2_addsi3_compare0): Likewise.
191 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
192 attributes accordingly.
194 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
197 * function.c (pad_to_arg_alignment): Add parentheses.
199 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
201 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
202 libgcc/config/frv/elf-lib.h.
204 2015-04-28 Tom de Vries <tom@codesourcery.com>
206 * tree-call-cdce.c: Fix example in header comment.
208 2015-04-28 Richard Biener <rguenther@suse.de>
210 PR tree-optimization/62283
211 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
212 fails fatally and we are vectorizing a basic-block simply
213 cause the child to be constructed piecewise.
214 (vect_analyze_slp_cost_1): Adjust.
215 (vect_detect_hybrid_slp_stmts): Likewise.
216 (vect_bb_slp_scalar_cost): Likewise.
217 (vect_get_constant_vectors): For piecewise constructed
218 constants place them after the last def.
219 (vect_get_slp_defs): Adjust.
220 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
221 externals for basic-block vectorization.
223 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
226 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
228 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
229 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
230 (AARCH64_TUNE_FMA_STEERING): Likewise.
231 * config/aarch64/aarch64-cores.def: Set
232 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
233 FMUL/FMADD instructions.
234 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
235 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
236 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
237 * config/aarch64/cortex-a57-fma-steering.h: New file.
238 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
240 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
242 * gensupport.c (std_preds): Add missing codes to address_operand entry.
244 2015-04-28 Richard Biener <rguenther@suse.de>
246 PR tree-optimization/65851
247 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
248 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
249 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
250 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
251 (ccp_visit_phi_node): Adjust.
252 (evaluate_stmt): For simplifications to SSA names return its
253 lattice value if that isn't VARYING. Return immediately when
254 simplified to a constant.
255 (visit_assignment): Adjust.
256 (ccp_visit_stmt): Likewise.
258 2015-04-28 Tom de Vries <tom@codesourcery.com>
260 PR tree-optimization/65818
261 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
264 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
266 * calls.c (save_fixed_argument_area): Don't check
267 ARGS_GROW_DOWNWARD with the preprocessor.
268 (restore_fixed_argument_area): Likewise.
269 (mem_overlaps_already_clobbered_arg_p): Likewise.
270 (check_sibcall_argument_overlap): Likewise.
271 (expand_call): Likewise.
272 (emit_library_call_value_1): Likewise.
273 (store_one_arg): Likewise.
274 * function.c (assign_parms): Likewise.
275 (locate_and_pad_parm): Likewise.
276 (pad_to_arg_alignment): Likewise.
277 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
279 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
281 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
282 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
283 * calls.c (save_fixed_argument_area): Don't chekc if
284 ARGS_GROW_DOWNWARD is defined.
285 (restore_fixed_argument_area): Likewise.
286 (mem_overlaps_already_clobbered_arg_p): Likewise.
287 (check_sibcall_argument_overlap): Likewise.
288 (expand_call): Likewise.
289 (emit_library_call_value_1): Likewise.
290 (store_one_arg): Likewise.
291 * function.c (assign_parms): Likewise.
292 (locate_and_pad_parm): Likewise.
293 (pad_to_arg_alignment): Likewise.
294 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
296 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
298 * defaults.h (gen_epilogue): New function.
299 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
301 * cfgrtl.c (cfg_layout_finalize): Likewise.
302 * df-scan.c: Likewise.
303 * function.c (thread_prologue_and_epilogue_insns): Likewise.
304 (reposition_prologue_and_epilogue_notes): Likewise.
305 * reorg.c (find_end_label): Likewise.
306 * toplev.c: Likewise.
308 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
310 * bb-reorder.c (HAVE_return): Don't check if its undefined.
311 * defaults.h (gen_simple_return): New function.
312 (gen_simple_return): Likewise.
313 (HAVE_return): Add default definition to false.
314 (HAVE_simple_return): Likewise.
315 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
316 HAVE_return and HAVE_simple_return are defined.
317 * function.c (gen_return_pattern): Likewise.
318 (convert_jumps_to_returns): Likewise.
319 (thread_prologue_and_epilogue_insns): Likewise.
320 * reorg.c (find_end_label): Likewise.
321 (dbr_schedule): Likewise.
322 * shrink-wrap.c: Likewise.
323 * shrink-wrap.h: Likewise.
325 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
327 * defaults.h (EPILOGUE_USES): Add default definition of false.
328 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
329 * resource.c (init_resource_info): Likewise.
331 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
333 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
335 * dwarf2out.c (field_byte_offset): REmove check if
336 PCC_BITFIELD_TYPE_MATTERS is defined.
337 * stor-layout.c (layout_decl): Likewise.
338 (update_alignment_for_field): Likewise.
339 (place_field): Likewise.
341 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
343 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
345 * regrename.c (check_new_reg_p): Remove check if
346 HARD_REGNO_RENAME_OK is defined.
347 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
349 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
351 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
352 * cse.c (fold_rtx): Likewise.
353 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
354 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
355 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
356 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
357 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
358 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
359 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
360 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
361 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
362 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
364 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
365 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
366 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
367 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
368 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
369 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
370 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
371 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
372 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
373 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
374 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
375 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
376 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
377 * doc/tm.texi: Regenerate.
378 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
379 either true or false.
381 2015-04-27 Jeff Law <law@redhat.com>
383 PR tree-optimization/65217
384 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
385 of them has a single use, make sure it is the LHS of the implied
388 2015-04-28 Alan Modra <amodra@gmail.com>
391 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
392 (offsettable_ok_by_alignment): Use minimum of decl and toc
393 pointer alignment. Replace dead code with assertion.
394 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
395 case if size exceeds toc pointer alignment.
396 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
397 (rs6000_emit_move): Likewise.
398 * configure.ac: Add linker toc pointer alignment check.
399 * configure: Regenerate.
400 * config.in: Regenerate.
402 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
404 * config.gcc: Add h8300-*-linux.
405 * config/h8300/linux.h: New.
406 * config/h8300/t-linux: New.
407 * config/h8300/h8300.c (h8300_option_override): Normal mode
408 is not supported for h8300-*-linux.
409 (h8300_file_start): Target priority change.
410 (get_shift_alg): Likewise.
411 (h8300_shift_need_scratch_p): Likewise.
412 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
413 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
415 2015-04-27 Caroline Tice <cmtice@google.com>
417 * final.c (final_scan_insn): Output cold_function_name as function
419 * varasm.c (cold_function_name): Make global.
420 (assemble_start_function): Re-set cold_function_name.
421 (assemble_end_function): Output cold partition size.
422 * varasm.h (cold_function_name): Declare global.
424 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
426 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
427 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
429 (*movxi_internal_avx512f): Ditto.
430 (define_split): Check for xmm16+, when splitting scalar float_extend.
431 (*extendsfdf2_mixed): Use "v" constraint.
432 (define_split): Check for xmm16+, when splitting scalar float_truncate.
433 (*truncdfsf_fast_sse): Use "v" constraint.
434 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
435 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
436 (define_peephole2): Check for xmm16+, when converting scalar
438 (define_peephole2): Check for xmm16+, when converting scalar
440 (*fop_<mode>_comm_mixed): Use "v" constraint.
441 (*fop_<mode>_comm_sse): Ditto.
442 (*fop_<mode>_1_mixed): Ditto.
443 (*sqrt<mode>2_sse): Ditto.
444 (*ieee_s<ieee_maxmin><mode>3): Ditto.
446 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
448 * combine.c (simplify_if_then_else): Use std::swap instead
449 of manually swapping.
450 (known_cond): Likewise.
451 (simplify_comparison): Likewise.
453 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
456 * config/rs6000/htm.md: Remove all define_expands.
457 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
458 UNSPECV_HTM_TABORTWCI): Remove.
459 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
460 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
461 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
462 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
463 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
464 tabortwci_internal): Remove define_insns.
465 (tabort<wd>c, tabort<wd>ci): New define_insns.
466 (tabort): Use gpc_reg_operand.
467 (tcheck): Remove operand.
468 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
469 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
471 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
472 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
473 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
474 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
475 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
476 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
477 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
478 (tcheck): Remove builtin argument.
479 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
481 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
482 tabortdc and tabortdci builtins when not in 64-bit mode.
483 Modify code to handle the loss of the HTM define_expands.
484 Emit code to copy the CR register to TARGET.
485 (htm_init_builtins): Modify code to handle the loss of the HTM
487 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
488 (RS6000_BTC_64BIT): Likewise.
489 (RS6000_BTC_CR): New macro.
490 * doc/extend.texi: Update documentation for htm builtins.
492 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
494 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
495 of manually swapping.
496 (simplify_associative_operation): Likewise.
497 (simplify_binary_operation): Likewise.
498 (simplify_plus_minus): Likewise.
499 (simplify_relational_operation): Likewise.
500 (simplify_ternary_operation): Likewise.
502 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
504 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
505 (xs_hi_nonmemory_operand): Remove error.
506 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
507 general_operand rather than xs_hi_general_operand.
509 2015-04-27 Richard Biener <rguenther@suse.de>
511 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
512 (record_equivalences_from_stmt): Valueize rhs.
513 (record_equality): Canonicalize x and y order via
514 tree_swap_operands_p. Do not swap operands for same loop depth.
516 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
520 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
521 Add hint how to use own spec file.
523 2015-04-27 Jakub Jelinek <jakub@redhat.com>
525 PR tree-optimization/65875
526 * tree-vrp.c (update_value_range): If in is_new case setting
527 old_vr to VR_VARYING, also set new_vr to it. Remove
528 old_vr->type == VR_VARYING test.
529 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
530 SSA_PROP_INTERESTING if update_value_range returned true,
531 but new range is VR_VARYING.
533 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
535 * combine.c (sign_extend_short_imm): New.
536 (set_nonzero_bits_and_sign_copies): Use above new function for sign
537 extension of src short immediate.
538 (reg_nonzero_bits_for_combine): Likewise for tem.
540 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
542 * stor-layout.c (self_referential_component_ref_p): New predicate.
543 (copy_self_referential_tree_r): Use it.
544 (self_referential_size): Punt for simple operations directly involving
545 self-referential component references.
546 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
548 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
550 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
552 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
554 * vec.h (vec): Make splice arguments const. Update definitions
557 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
559 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
562 2015-04-26 Tom de Vries <tom@codesourcery.com>
564 PR tree-optimization/65826
565 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
567 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
569 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
570 (*madd3<mode>): Ditto.
571 (*msub4<mode>): Ditto.
572 (*msub3<mode>): Ditto.
573 (*nmadd4<mode>): Ditto.
574 (*nmadd3<mode>): Ditto.
575 (*nmadd4<mode>_fastmath): Ditto.
576 (*nmadd3<mode>_fastmath): Ditto.
577 (*nmsub4<mode>): Ditto.
578 (*nmsub3<mode>): Ditto.
579 (*nmsub4<mode>_fastmath): Ditto.
580 (*nmsub3<mode>_fastmath): Ditto.
582 2015-04-24 Jason Merrill <jason@redhat.com>
585 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
586 down when building TYPE_CANONICAL.
587 (build_pointer_type_for_mode): Likewise.
589 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
591 * genrecog.c (validate_pattern): Check matching constraint refers
592 to a lower numbered operand.
594 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
597 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
598 save to independent variables use the Save attribute. This will
599 allow these options to be modified with the #pragma/attribute
601 (-mallow-movmisalign): Likewise.
602 (-mallow-df-permute): Likewise.
603 (-msched-groups): Likewise.
604 (-malways-hint): Likewise.
605 (-malign-branch-targets): Likewise.
606 (-mvectorize-builtins): Likewise.
607 (-msave-toc-indirect): Likewise.
609 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
610 can be set via the #pragma/attribute target support.
611 (rs6000_opt_vars): Likewise.
612 (rs6000_inner_target_options): If VSX was set, also set
613 -mno-avoid-indexed-addresses.
615 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
617 * config/arm/iterators.md (shiftable_ops): Rename to...
618 (SHIFTABLE_OPS): ... This. Update use in comments.
619 (ior_xor): Rename to...
621 (vqh_ops): Rename to...
623 (vqhs_ops): Rename to...
624 (VQHS_OPS): ... This.
625 (rshifts): Rename to...
627 (returns): Rename to...
629 * config/arm/arm.md: Update uses of the above.
630 * config/arm/neon.md: Likewise.
632 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
634 * config.host (case ${host}): Add aarch64*-*-linux case.
635 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
636 fields to all the cores.
637 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
638 Add MCPU_MTUNE_NATIVE_SPECS.
639 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
640 field to all extensions.
641 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
642 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
643 Adjust definition of AARCH64_OPT_EXTENSION.
644 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
645 (MCPU_MTUNE_NATIVE_SPECS): Define.
646 * config/aarch64/driver-aarch64.c: New file.
647 * config/aarch64/x-arch64: New file.
648 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
651 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
652 Wei Mi <wmi@google.com>
654 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
655 * config/i386/i386.c (extract_base_offset_in_addr): New function.
656 (ix86_operands_ok_for_move_multiple): Ditto.
657 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
658 (movlpd/movhpd to movupd peephole2): Ditto.
660 2015-04-24 Marek Polacek <polacek@redhat.com>
663 * input.h (from_macro_expansion_at): Define.
666 * doc/invoke.texi: Update description of -Wlogical-op.
668 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
670 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
671 ternary operator in fprintf and harmonize spacing.
673 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
675 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
676 Mark operand1 commutative.
678 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
680 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
681 input operands in memory.
682 (*vec_concatv2si_sse4_1): Ditto.
683 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
684 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
686 (vec_extract_hi_v32hi): Ditto.
687 (vec_extract_hi_v64hi): Ditto.
688 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
690 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
691 Steven Bosscher <steven@gcc.gnu.org>
693 PR rtl-optimization/34503
694 * cprop.c (cprop_reg_p): New.
695 (hash_scan_set): Use above function to check if register can be
697 (find_avail_set): Return up to two sets, one whose source is a
698 register and one whose source is a constant. Sets are returned in an
699 array passed as parameter rather than as a return value.
700 (cprop_insn): Use a do while loop rather than a goto. Try each of the
701 sets returned by find_avail_set, starting with the one whose source is
702 a constant. Use cprop_reg_p to check if register can be propagated.
703 (do_local_cprop): Use cprop_reg_p to check if register can be
705 (implicit_set_cond_p): Likewise.
707 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
709 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
710 (sem_function::equals): IGNORED_NODES parameter is now unused;
711 update call of equals_private.
712 (sem_function::equals_private): Do not call equals_wpa; skip
713 gimple body matching if there is no body.
714 (sem_function::init): Add logic to hash tthunk info.
715 (sem_function::parse): Also parse thunks.
716 * ipa-icf.h (equals_private): Update declaration.
718 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
720 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
721 asterisk from name so this can be generated directly.
722 (*altivec_stvx_<mode>_internal): Likewise.
723 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
724 that this is never called during or after reload/lra.
725 (rs6000_frame_related): Remove split_reg
726 argument and logic that references it.
727 (emit_frame_save): Remove last parameter from call to
728 rs6000_frame_related.
729 (rs6000_emit_prologue): Remove last parameter from eight calls to
730 rs6000_frame_related. Force generation of stvx instruction for
731 Altivec register saves. Remove split_reg handling, which is no
733 (rs6000_emit_epilogue): Force generation of lvx instruction for
734 Altivec register restores.
736 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
738 * config/rs6000/rs6000.opt (mcrypto): Change option description to
739 match category changes in ISA 2.07B.
741 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
743 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
745 (cmp_op, cmp_type): New code attributes.
746 (NEON_VCMP, NEON_VACMP): New int iterators.
747 (cmp_op_unsp): New int attribute.
748 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
749 (neon_vceq<mode>): Delete.
750 (neon_vc<cmp_op><mode>_insn): New pattern.
751 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
752 (neon_vcgeu<mode>): Delete.
753 (neon_vcle<mode>): Likewise.
754 (neon_vclt<mode>: Likewise.
755 (neon_vcage<mode>): Likewise.
756 (neon_vcagt<mode>): Likewise.
757 (neon_vca<cmp_op><mode>): New define_expand.
758 (neon_vca<cmp_op><mode>_insn): New pattern.
759 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
761 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
763 * tree.h (attribute_value_equal): Declare.
764 * tree.c (attribute_value_equal): Export.
766 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
768 * ipa-icf.c (sem_item::compare_attributes): New function.
769 (sem_item::compare_referenced_symbol_properties): Compare variable
771 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
772 (sem_function::param_used_p): New function.
773 (sem_function::equals_wpa): Fix attribute comparsion; match
774 parameter type codes; do not compare paremter flags when
775 they are not used; compare edge flags; compare indirect calls.
776 (sem_item::update_hash_by_addr_refs): Hash reference type.
777 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
778 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
780 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
781 * ipa-icf.h (compare_attributes, param_used_p): Declare.
783 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
785 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
787 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
788 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
789 (sem_item::compare_referenced_symbol_properties): New.
790 (sem_item::hash_referenced_symbol_properties): New.
791 (sem_item::compare_cgraph_references): Rename to ...
792 (sem_item::compare_symbol_references): ... this one; use
793 compare_referenced_symbol_properties.
794 (sem_function::equals_wpa): Do not compare
795 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
796 DECL_IS_OPERATOR_NEW; compare pointer sizes.
797 (sem_item::update_hash_by_addr_refs): Call
798 hash_referenced_symbol_properties.
799 (sem_item::update_hash_by_local_refs): Cleanup.
800 (sem_function::merge): Do not mix up symbol properties.
801 (sem_variable::equals_wpa): Use compare_symbol_references.
802 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
803 (sem_item::hash_referenced_symbol_properties): New.
804 (sem_item::compare_symbol_references): New.
805 (sem_item::compare_cgraph_references): Remove.
807 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
810 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
813 2015-04-23 Nick Clifton <nickc@redhat.com>
815 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
816 ATTRIBUTE_UNUSED to x parameter.
817 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
819 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
821 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
822 TARGET_CRYPTO to TARGET_P8_VECTOR>
823 (crypto_vpermxor_<mode>): Likewise.
824 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
825 (BU_CRYPTO_3A): Likewise.
826 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
827 (BU_CRYPTO_OVERLOAD_3A): New #define.
828 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
832 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
833 (VPERMXOR_V4SI): Likewise.
834 (VPERMXOR_V8HI): Likewise.
835 (VPERMXOR_V16QI): Likewise.
836 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
837 BU_CRYPTO_OVERLOAD_2A.
838 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
839 BU_CRYPTO_OVERLOAD_3A.
840 * config/rs6000/rs6000.opt (mcrypto): Change description of
843 2015-04-23 Richard Biener <rguenther@suse.de>
845 * passes.def: Remove copy propagation passes run directly after CCP.
846 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
848 (ccp_visit_phi_node): Rework to handle first executable edge
851 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
853 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
854 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
855 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
856 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
857 (thumb_legimitimize_reload_address): Remove.
858 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
860 (thumb_legimitimize_reload_address): Remove.
862 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
864 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
866 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
868 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
870 (store_multiple): Likewise.
872 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
874 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
875 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
876 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
877 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
878 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
879 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
880 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
881 Specify issue_rate value.
882 (arm_issue_rate): Look up issue rate from tuning structs. Remove
883 large switch statement.
884 (arm_marvell_pj4_tune): New struct.
885 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
888 2015-04-23 Richard Biener <rguenther@suse.de>
890 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
891 (vect_find_last_store_in_slp_instance): Rename to ...
892 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
893 (vect_analyze_slp_cost_1): Use vector_load for constant defs
894 and vec_construct for external defs when estimating prologue cost.
895 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
896 Compute costs here only when vectorizing loops.
897 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
898 have been determined.
899 (vect_schedule_slp_instance): Simplify vectorized code placement
900 and prepare for in-BB external defs.
901 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
902 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
903 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
905 (vect_model_load_cost): Likewise.
906 (vectorizable_store): Instead add it here.
907 (vectorizable_load): Likewise.
908 (vect_is_simple_use): Dump def type textually.
910 2015-04-23 Richard Biener <rguenther@suse.de>
912 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
913 * cfgloop.c (verify_loop_structure): Verify the root loop node.
914 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
915 instead of get_eh_region_from_lp_number.
916 * loop-init.c (fix_loop_structure): If we removed a loop, reset
919 2015-04-23 Anton Blanchard <anton@samba.org>
921 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
922 need for -mprofile-kernel to save LR to stack.
924 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
926 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
928 (insn_is_swappable_p): Return 1 for a convert from double to
929 single precision when all of its uses are splats of BE element
932 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
934 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
936 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
939 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
940 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
941 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
943 (rs6000_builtin_mask_for_load): Return 0 for targets with
944 efficient unaligned VSX accesses so that the vectorizer will use
945 direct unaligned loads.
946 (rs6000_builtin_support_vector_misalignment): Always return true
947 for targets with efficient unaligned VSX accesses.
948 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
949 stores on targets with efficient unaligned VSX accesses is almost
950 always the same as the cost of an aligned load or store, so model
952 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
953 unaligned vectors if we have efficient unaligned VSX accesses.
954 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
957 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
960 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
962 * config.gcc (LIBC_MUSL): New tm_defines macro.
963 * config/linux.h (OPTION_MUSL): Define.
964 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
965 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
966 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
968 * config/linux.opt (mmusl): New option.
969 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
970 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
972 * configure: Regenerate.
974 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
976 * config.gcc (LIBC_MUSL): New tm_defines macro.
977 * config/linux.h (OPTION_MUSL): Define.
978 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
979 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
980 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
982 * config/linux.opt (mmusl): New option.
983 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
984 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
986 * configure: Regenerate.
988 2015-04-22 Yury Gribov <y.gribov@samsung.com>
990 * doc/invoke.texi (-fsanitize-sections): Update description.
991 * asan.c (set_sanitized_sections): Parse incoming arg.
992 (section_sanitized_p): Support wildcards.
994 2015-04-22 Tom de Vries <tom@codesourcery.com>
996 PR tree-optimization/65823
997 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
998 equality between ap_copy and ap.
1000 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1003 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
1005 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1008 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
1010 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1013 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
1014 remove already contained t-files.
1016 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1018 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
1019 Remove unneeded forward declarations.
1020 (suitable_for_tail_call_opt_p): Commentary typo fix.
1022 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1024 * varasm.c (emit_bss): Remove redundant guard.
1026 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1028 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
1030 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1032 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
1034 2015-04-22 Hale Wang <hale.wang@arm.com>
1035 Terry Guo <terry.guo@arm.com>
1037 PR rtl-optimization/64818
1038 * combine.c (can_combine_p): Don't combine user-specified
1039 register if it is in an asm input.
1041 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
1044 * passes.def (early_optimizations): Add pass_dse.
1046 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1048 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
1049 * reorg.c (redundant_insn): Remove ifdef
1050 INSN_REFERENCES_ARE_DELAYED.
1051 * resource.c (mark_referenced_resources): Likewise.
1053 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1055 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
1056 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
1057 * resource.c (mark_set_resources): Likewise.
1059 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1061 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
1062 * cfgcleanup.c (flow_find_cross_jump): Likewise.
1063 (flow_find_head_matching_sequence): Likewise.
1064 (try_head_merge_bb): Likewise.
1065 * combine.c (can_combine_p): Likewise.
1066 (try_combine): Likewise.
1067 (distribute_notes): Likewise.
1068 * df-problems.c (can_move_insns_across): Likewise.
1069 * final.c (final): Likewise.
1070 * gcse.c (insert_insn_end_basic_block): Likewise.
1071 * ira.c (find_moveable_pseudos): Likewise.
1072 * reorg.c (try_merge_delay_insns): Likewise.
1073 (fill_simple_delay_slots): Likewise.
1074 (fill_slots_from_thread): Likewise.
1075 * sched-deps.c (sched_analyze_2): Likewise.
1077 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1079 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
1080 PIC_OFFSET_TABLE_REGNUM.
1082 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1084 * alias.c (init_alias_target): Remove ifdef
1085 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
1086 * df-scan.c (df_insn_refs_collect): Likewise.
1087 (df_get_regular_block_artificial_uses): Likewise.
1088 (df_get_eh_block_artificial_uses): Likewise.
1089 (df_get_entry_block_def_set): Likewise.
1090 (df_get_exit_block_use_set): Likewise.
1091 * emit-rtl.c (gen_rtx_REG): Likewise.
1092 * ira.c (ira_setup_eliminable_regset): Likewise.
1093 * reginfo.c (init_reg_sets_1): Likewise.
1094 * regrename.c (rename_chains): Likewise.
1095 * reload1.c (reload): Likewise.
1096 (eliminate_regs_in_insn): Likewise.
1097 * resource.c (mark_referenced_resources): Likewise.
1098 (init_resource_info): Likewise.
1100 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1102 * defaults.h (MASK_RETURN_ADDR): New definition.
1103 * except.c (expand_builtin_extract_return_addr): Remove ifdef
1106 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1108 * defaults.h (RETURN_ADDR_OFFSET): New definition.
1109 * except.c (expand_builtin_extract_return_addr): Remove ifdef
1111 (expand_builtin_frob_return_addr): Likewise.
1113 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1115 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
1116 (try_redirect_by_replacing_jump): Likewise.
1117 (rtl_tidy_fallthru_edge): Likewise.
1118 * combine.c (insn_a_feeds_b): Likewise.
1119 (find_split_point): Likewise.
1120 (simplify_set): Likewise.
1121 * cprop.c (cprop_jump): Likewise.
1122 * cse.c (cse_extended_basic_block): Likewise.
1123 * df-problems.c (can_move_insns_across): Likewise.
1124 * function.c (emit_use_return_register_into_block): Likewise.
1125 * haifa-sched.c (sched_init): Likewise.
1126 * ira.c (find_moveable_pseudos): Likewise.
1127 * loop-invariant.c (find_invariant_insn): Likewise.
1128 * lra-constraints.c (curr_insn_transform): Likewise.
1129 * postreload.c (reload_combine_recognize_const_pattern):
1131 * reload.c (find_reloads): Likewise.
1132 * reorg.c (delete_scheduled_jump): Likewise.
1133 (steal_delay_list_from_target): Likewise.
1134 (steal_delay_list_from_fallthrough): Likewise.
1135 (redundant_insn): Likewise.
1136 (fill_simple_delay_slots): Likewise.
1137 (fill_slots_from_thread): Likewise.
1138 (delete_computation): Likewise.
1139 * sched-rgn.c (add_branch_dependences): Likewise.
1141 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1143 * genconfig.c (main): Always define HAVE_cc0.
1144 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
1146 * cfgcleanup.c (flow_find_cross_jump): Likewise.
1147 (flow_find_head_matching_sequence): Likewise.
1148 (try_head_merge_bb): Likewise.
1149 * cfgrtl.c (rtl_merge_blocks): Likewise.
1150 (try_redirect_by_replacing_jump): Likewise.
1151 (rtl_tidy_fallthru_edge): Likewise.
1152 * combine.c (do_SUBST_MODE): Likewise.
1153 (insn_a_feeds_b): Likewise.
1154 (combine_instructions): Likewise.
1155 (can_combine_p): Likewise.
1156 (try_combine): Likewise.
1157 (find_split_point): Likewise.
1159 (simplify_set): Likewise.
1160 (distribute_notes): Likewise.
1161 * cprop.c (cprop_jump): Likewise.
1162 * cse.c (cse_extended_basic_block): Likewise.
1163 * df-problems.c (can_move_insns_across): Likewise.
1164 * final.c (final): Likewise.
1165 (final_scan_insn): Likewise.
1166 * function.c (emit_use_return_register_into_block): Likewise.
1167 * gcse.c (insert_insn_end_basic_block): Likewise.
1168 * haifa-sched.c (sched_init): Likewise.
1169 * ira.c (find_moveable_pseudos): Likewise.
1170 * loop-invariant.c (find_invariant_insn): Likewise.
1171 * lra-constraints.c (curr_insn_transform): Likewise.
1172 * optabs.c (prepare_cmp_insn): Likewise.
1173 * postreload.c (reload_combine_recognize_const_pattern):
1175 * reload.c (find_reloads): Likewise.
1176 (find_reloads_address_1): Likewise.
1177 * reorg.c (delete_scheduled_jump): Likewise.
1178 (steal_delay_list_from_target): Likewise.
1179 (steal_delay_list_from_fallthrough): Likewise.
1180 (try_merge_delay_insns): Likewise.
1181 (redundant_insn): Likewise.
1182 (fill_simple_delay_slots): Likewise.
1183 (fill_slots_from_thread): Likewise.
1184 (delete_computation): Likewise.
1185 (relax_delay_slots): Likewise.
1186 * sched-deps.c (sched_analyze_2): Likewise.
1187 * sched-rgn.c (add_branch_dependences): Likewise.
1189 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1191 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
1192 that is trivially ded on non cc0 targets.
1193 (simplify_set): Likewise.
1194 (mark_used_regs_combine): Likewise.
1195 * cse.c (new_basic_block): Likewise.
1196 (fold_rtx): Likewise.
1197 (cse_insn): Likewise.
1198 (cse_extended_basic_block): Likewise.
1199 (set_live_p): Likewise.
1200 * rtlanal.c (canonicalize_condition): Likewise.
1201 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1203 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1205 * conditions.h: Define macros even if HAVE_cc0 is undefined.
1206 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
1207 * final.c: Likewise.
1209 * recog.c: Likewise.
1210 * recog.h: Declare functions even when HAVE_cc0 is undefined.
1211 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
1213 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1215 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
1216 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
1217 * builtins.c (expand_builtin): Remove check if
1218 EH_RETURN_DATA_REGNO is defined.
1219 * df-scan.c (df_bb_refs_collect): Likewise.
1220 (df_get_exit_block_use_set): Likewise.
1221 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1222 * ira-lives.c (process_bb_node_lives): Likewise.
1223 * lra-lives.c (process_bb_lives): Likewise.
1225 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
1227 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
1228 FIRST_PSEUDO_REG): New.
1229 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
1230 (ARG_POINTER_REGNUM): Define to ARGP_REG.
1231 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
1232 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
1233 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
1234 (FIRST_INT_REG): New.
1235 (LAST_INT_REG): New.
1236 (FIRST_*_REG): Define using *_REG.
1237 (LAST_*_REG): Ditto.
1238 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
1239 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
1240 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
1242 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1244 * expmed.c: (synth_mult): Only assume overlapping
1245 shift with previous steps in alg_sub_t_m2 case.
1247 2015-04-21 Richard Biener <rguenther@suse.de>
1249 PR tree-optimization/65650
1250 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
1251 transitions involving copies.
1252 (set_lattice_value): Adjust for copy lattice state.
1253 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
1254 if that doesn't dominate the merge point.
1255 (bit_value_unop): Adjust what we treat as varying mask.
1256 (bit_value_binop): Likewise.
1257 (bit_value_assume_aligned): Likewise.
1258 (evaluate_stmt): When we simplified to a SSA name record a copy
1259 instead of dropping to varying.
1260 (visit_assignment): Simplify.
1262 * gimple-match.h (gimple_simplify): Add another callback.
1263 * gimple-fold.c (fold_stmt_1): Adjust caller.
1264 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
1265 for the 2nd callback.
1266 * gimple-match-head.c (gimple_simplify): Add a callback that is
1267 used to valueize the stmt operands and use it that way.
1269 2015-04-21 Richard Biener <rguenther@suse.de>
1271 PR tree-optimization/65788
1272 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
1274 2015-04-21 Richard Biener <rguenther@suse.de>
1276 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
1277 vec_construct cost by vec_stmt_cost.
1279 2015-04-21 Richard Biener <rguenther@suse.de>
1281 * cfghooks.h (create_basic_block): Replace with two overloads
1283 (split_block): Likewise.
1284 * cfghooks.c (split_block): Rename to ...
1285 (split_block_1): ... this.
1286 (split_block): Add two type-safe overloads for RTL and GIMPLE.
1287 (split_block_after_labels): Call split_block_1.
1288 (create_basic_block): Rename to ...
1289 (create_basic_block_1): ... this.
1290 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
1291 (create_empty_bb): Call create_basic_block_1.
1292 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
1293 split_block_after_labels.
1294 * omp-low.c (expand_parallel_call): Likewise.
1295 (expand_omp_target): Likewise.
1296 (simd_clone_adjust): Likewise.
1297 * tree-chkp.c (chkp_get_entry_block): Likewise.
1298 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
1299 create_basic_block overload.
1300 (cgraph_node::expand_thunk): Likewise.
1301 * tree-cfg.c (make_blocks): Likewise.
1302 (handle_abnormal_edges): Likewise.
1303 * tree-inline.c (copy_bb): Likewise.
1305 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1307 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
1309 (*xor_one_cmplsidi3_ze): Likewise.
1311 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1313 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
1314 use df_remove_problem rather than manually removing problems, leaving
1315 holes in df->problems_in_order[].
1317 2015-04-21 Tom de Vries <tom@codesourcery.com>
1319 PR tree-optimization/65802
1320 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
1322 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1324 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
1326 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
1327 at '.'. Assert that there's enough space for everything.
1329 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
1331 PR tree-optimization/64950
1333 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
1336 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1339 2015-04-20 Shiva Chen <shiva0217@gmail.com>
1341 PR rtl-optimization/64916
1342 * cfgcleanup.c (values_equal_p): New function.
1343 (can_replace_by): Use it.
1345 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
1348 * doc/invoke.texi ([-Wnarrowing]): Update.
1350 2015-04-20 Jeff Law <law@redhat.com>
1352 PR tree-optimization/65658
1353 * tree-ssa-threadupdate.c (redirection_block_p): Remove
1354 redundant test for GIMPLE_ASSIGN in last change.
1356 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
1358 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
1359 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
1360 (legitimize_tls_address): Ditto.
1361 (ix86_expand_move): Ditto.
1362 (ix86_expand_binary_operator): Remove reload_in_progress checks.
1363 (ix86_expand_unary_operator): Ditto.
1364 * config/i386/predicates.md (index_register_operand): Ditto.
1366 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
1368 * reorg.c (try_merge_delay_insns): Improve correctness checking
1369 for targets with multiple delay slots.
1371 2015-04-20 Jeff Law <law@redhat.com>
1373 PR tree-optimization/65658
1374 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
1377 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
1379 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
1380 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
1383 2015-04-20 Jakub Jelinek <jakub@redhat.com>
1386 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
1388 2015-04-20 Richard Biener <rguenther@suse.de>
1390 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
1391 * gimple-fold.c (gimple_build_valueize): New function.
1392 (gimple_build): Always use gimple_build_valueize as valueize hook.
1394 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
1397 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
1398 and overwrite variable parts if <= 1/2 the elements are variable.
1400 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
1402 PR rtl-optimization/65805
1403 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
1404 Don't use difference of offset and previous offset if
1405 update_sp_offset is non-zero.
1406 (eliminate_regs_in_insn): Ditto.
1407 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
1408 lra_eliminate_regs_1 call.
1409 * lra-constraints.c (get_equiv_with_elimination): Ditto.
1411 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
1413 * hash-table.h: Remove version of hash_table that stored value_type *.
1414 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
1415 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
1416 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
1417 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
1418 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
1419 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
1420 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
1421 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
1422 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
1423 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
1424 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
1425 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
1426 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1427 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
1428 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
1429 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
1431 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1432 Jakub Jelinek <jakub@redhat.com>
1435 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
1436 subsequent SH_NONE operand does not overwrite an existing *special
1438 (adjust_extract): Handle case where a vec_extract operation is
1439 wrapped in a PARALLEL.
1441 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
1444 * config/i386/i386.c (ix86_binds_local_p): Define only if
1445 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
1447 2015-04-17 Jeff Law <law@redhat.com>
1449 PR tree-optimization/47679
1450 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
1451 * tree-ssa-scopedtables.c: New file.
1452 * tree-ssa-scopedtables.h: New file.
1453 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
1454 (const_and_copies): Change name/type.
1455 (record_const_or_copy): Move into tree-ssa-scopedtables.c
1456 (record_const_or_copy_1): Similarly.
1457 (restore_vars_to_original_value): Similarly.
1458 (pass_dominator::execute): Create and destroy const_and_copies table.
1459 (thread_across_edge): Update passing of const_and_copies.
1460 (record_temporary_equivalence): Use method calls rather than
1461 manipulating const_and_copies directly.
1462 (record_equality, cprop_into_successor_phis): Similarly.
1463 (dom_opt_dom_walker::before_dom_children): Similarly.
1464 (dom_opt_dom_walker::after_dom_children): Similarly.
1465 (eliminate_redundant_computations): Similarly.
1466 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
1467 (record_temporary_equivalence): Likewise.
1468 (invalidate_equivalences): Likewise.
1469 (record_temporary_equivalences_from_phis): Update due to type
1470 change of const_and_copies. Use method calls rather than
1471 manipulating the stack directly.
1472 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1473 (thread_through_normal_block, thread_across_edge): Likewise.
1474 (thread_across_edge): Likewise.
1475 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1476 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
1478 (identify_jump_threads): Update due to type change of equiv_stack.
1479 (finalize_jump_threads): Delete the equiv_stack when complete.
1481 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
1483 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
1484 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
1485 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
1487 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
1490 * config.gcc: Exit with a comment when we do not have a major version
1491 number for the FreeBSD target.
1493 2015-04-17 Jakub Jelinek <jakub@redhat.com>
1496 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
1497 maybe_allows_mem bitfields.
1498 (maybe_allows_none_start, maybe_allows_none_end,
1499 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
1500 maybe_allows_mem_end): New variables.
1501 (compute_maybe_allows): New function.
1502 (add_constraint): Use it to initialize maybe_allows_reg and
1503 maybe_allows_mem fields.
1504 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
1505 is_address constraints such that those that allow neither mem nor
1506 reg come first, then those that only allow reg but not mem, then
1507 those that only allow mem but not reg, then the rest.
1508 (write_allows_reg_mem_function): New function.
1509 (write_tm_preds_h): Call it.
1510 * stmt.c (parse_output_constraint, parse_input_constraint): Use
1511 the generated insn_extra_constraint_allows_reg_mem function
1512 instead of always setting *allows_reg = true; *allows_mem = true;
1513 for unknown extra constraints.
1515 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
1518 * output.h (default_binds_local_p_3): New.
1519 * varasm.c (default_binds_local_p_3): Make it public. Take an
1520 argument to indicate if common symbol may be local. If common
1521 symbol may be local, treat non-external variable as defined
1523 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
1524 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
1525 * config/i386/i386.c (ix86_binds_local_p): New.
1526 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
1529 2015-04-17 Jakub Jelinek <jakub@redhat.com>
1532 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
1533 trying mem_loc_descriptor on XEXP (rtl, 0).
1535 2015-04-17 Martin Liska <mliska@suse.cz>
1537 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
1538 Release symbol_compare_collection.
1539 * ipa-reference.c: Add TODO that a vector should be released.
1541 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
1544 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
1545 to new AVR-LibC file layout (bug #44574).
1546 (*avrlibc_devicelib): Same.
1547 * config/avr/avr-mcus.def: Adjust comments.
1548 * config/avr/avr.opt (nodevicelib): Adjust help.
1550 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
1552 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
1554 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
1557 * gimplify.c (gimplify_init_constructor): Always emit a
1558 side-effecting constructor.
1560 2015-04-17 Tom de Vries <tom@codesourcery.com>
1562 PR tree-optimization/64950
1563 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
1564 in cfun->curr_properties.
1565 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
1566 if we generate an IFN_VA_ARG.
1567 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
1568 function if PROP_gimple_lva is not set in src function.
1570 2015-04-17 Tom de Vries <tom@codesourcery.com>
1571 Michael Matz <matz@suse.de>
1573 PR tree-optimization/64950
1574 * gimple-iterator.c (update_modified_stmts): Remove static.
1575 * gimple-iterator.h (update_modified_stmts): Declare.
1576 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
1577 (gimplify_va_arg_internal): New function.
1578 (gimplify_va_arg_expr): Use IFN_VA_ARG.
1579 * gimplify.h (gimplify_va_arg_internal): Declare.
1580 * internal-fn.c (expand_VA_ARG): New unreachable function.
1581 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
1582 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
1583 (expand_ifn_va_arg): New function.
1584 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
1585 (pass_stdarg::execute): Call expand_ifn_va_arg.
1586 (pass_data_lower_vaarg): New pass_data.
1587 (pass_lower_vaarg): New gimple_opt_pass.
1588 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
1589 (make_pass_lower_vaarg): New function.
1590 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
1591 properties_required field.
1592 * passes.def (all_passes): Add pass_lower_vaarg.
1593 * tree-pass.h (PROP_gimple_lva): Add define.
1594 (make_pass_lower_vaarg): Declare.
1596 2015-04-17 Tom de Vries <tom@codesourcery.com>
1598 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
1599 * calls.c (call_expr_flags): Same.
1601 2015-04-17 Tom de Vries <tom@codesourcery.com>
1603 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
1604 (pass_stdarg::execute): ... here.
1606 2015-04-17 Tom de Vries <tom@codesourcery.com>
1607 Michael Matz <matz@suse.de>
1609 * tree-cfg.c (make_blocks_1): Factor out of ...
1610 (make_blocks): ... here.
1611 (make_edges_bb): Factor out of ...
1612 (make_edges): ... here.
1613 (gimple_find_sub_bbs): New function.
1614 * tree-cfg.h (gimple_find_sub_bbs): Declare.
1616 2015-04-17 Tom de Vries <tom@codesourcery.com>
1618 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
1620 2015-04-17 Yury Gribov <y.gribov@samsung.com>
1622 * asan.c (set_sanitized_sections): New function.
1623 (section_sanitized_p): Ditto.
1624 (asan_protect_global): Optionally sanitize user-defined
1626 * asan.h (set_sanitized_sections): Declare new function.
1627 * common.opt (fsanitize-sections): New option.
1628 * doc/invoke.texi (-fsanitize-sections): Document new option.
1629 * opts-global.c (handle_common_deferred_options): Handle new
1632 2015-04-17 Jakub Jelinek <jakub@redhat.com>
1635 * dwarf2out.c (loc_list_from_tree): Return NULL
1636 for DEBUG_EXPR_DECL.
1638 2015-04-17 Christian Bruel <christian.bruel@st.com>
1640 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
1643 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1645 * ira-color.c (setup_left_conflict_sizes_p): Do not process
1646 node itself when computing left conflict subnode size.
1648 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
1650 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
1651 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
1652 *fop_<mode>_1_sse using enabled attribute. Use
1653 register_mixssei387nonimm_operand operand 1 predicate. Change
1654 alternative 3 constraints from "x" to "v".
1656 2015-04-16 Richard Biener <rguenther@suse.de>
1658 PR tree-optimization/65774
1659 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
1660 bit-value tracking on.
1662 2015-04-16 Richard Biener <rguenther@suse.de>
1664 PR tree-optimization/64277
1665 * tree-vrp.c (check_array_ref): Fix anti-range handling,
1666 simplify upper bound handling.
1667 (search_for_addr_array): Simplify.
1668 (check_array_bounds): Handle ADDR_EXPRs here.
1669 (check_all_array_refs): Simplify.
1671 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
1673 * config/i386/i386.c (print_reg): Rewrite function.
1675 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1677 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
1678 Invert the condition.
1680 2015-04-16 Renlin Li <renlin.li@arm.com>
1682 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
1683 simplifications for UNSIGNED_FLOAT.
1685 2015-04-16 Nick Clifton <nickc@redhat.com>
1687 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
1689 (enum rl78_cpu_type): New.
1690 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
1691 (umulhi3_shift_virt): Remove m constraint from operand 1.
1692 (umulqihi3_virt): Likewise.
1693 * config/rl78/rl78.c (rl78_option_override): Add code to process
1694 -mcpu and -mmul options.
1695 (rl78_alloc_physical_registers): Add code to handle divhi and
1696 divsi valloc attributes.
1697 (set_origin): Likewise.
1698 * config/rl78/rl78.h (RL78_MUL_G14): Define.
1699 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
1700 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
1702 (ASM_SPEC): Pass -mcpu on to assembler.
1703 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
1704 (mulqi3_rl78): Likewise.
1705 (mulhi3_g13): Likewise.
1706 (mulhi3): Generate the G13 or G14 versions of the insn directly.
1708 (mulhi3_g14): Add clobbers of AX and BC.
1709 (mulsi3_g14): Likewise.
1710 (mulsi3_g13): Likewise.
1711 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
1712 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
1713 * config/rl78/rl78.opt (mmul): Initialise value to
1716 (m13, m14, mrl78): New option aliases.
1717 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
1718 (MULTILIB_DIRNAMES): Add g13 and g14.
1719 * doc/invoke.texi: Document -mcpu and -mmul options.
1721 2015-04-16 Richard Biener <rguenther@suse.de>
1723 * tree-ssa-ccp.c (likely_value): See if we have operands that
1724 are marked as never simulate again and return CONSTANT in this
1726 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
1727 not have any operands that will be simulated again as
1728 not being simulated again.
1730 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
1732 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
1733 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
1734 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
1736 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
1738 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
1739 *float<SWI48:mode><MODEF:mode>2_sse.
1740 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
1742 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
1745 2015-04-15 Tom de Vries <tom@codesourcery.com>
1748 * function.c (push_dummy_function): New function.
1749 (init_dummy_function_start): Use push_dummy_function.
1750 (pop_dummy_function): New function. Factored out of ...
1751 (expand_dummy_function_end): ... here.
1752 * function.h (push_dummy_function, pop_dummy_function): Declare.
1753 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
1755 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
1757 2015-04-15 Jeff Law <law@redhat.com>
1759 PR tree-optimization/47679
1760 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
1761 need for forward declaration in upcoming changes.
1762 (record_conditions, record_edge_info): Likewise.
1764 PR rtl-optimization/42522
1765 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
1766 SIGN_EXTRACT as a whole object rather than simplifying
1769 2015-04-15 Jakub Jelinek <jakub@redhat.com>
1772 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
1773 and GIMPLE_PREDICT use break instead of return true. For
1774 GIMPLE_EH_DISPATCH, compare dispatch region.
1776 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
1778 * doc/extend.texi (__sync Builtins): Simplify some text. Update
1779 details about the implementation. Make clear preference for
1780 __atomic builtins. Reduce possibility of future change.
1782 2015-04-15 Nick Clifton <nickc@redhat.com>
1784 * config/rx/rx.opt (mallow-string-insns): New option.
1785 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
1786 builtin if string instructions are denied.
1787 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
1788 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
1790 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
1791 * config/rx/rx.md (movstr): Enable pattern only if string
1792 instructions are allowed.
1793 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
1794 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
1795 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
1796 (MULTILIB_DIRNAMES): Add no-strings.
1797 * doc/invoke.texi: Document -mno-allow-string-insns.
1799 2015-04-15 Alan Modra <amodra@gmail.com>
1804 * calls.c (load_register_parameters): Don't load past end of
1805 mem unless suitably aligned.
1807 2015-04-15 Nick Clifton <nickc@redhat.com>
1809 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
1810 decrement instruction as being frame related.
1811 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
1813 If zero extending a function address enclose the operation in
1815 (rl78_preferred_reload_class): New function.
1816 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1817 * config/rl78/rl78.md: Remove useless constraints in expanders.
1818 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
1819 (mulhi3_rl78): Likewise.
1820 (mulhi3_g13): Likewise.
1821 (mulsi3_rl78): Likewise.
1822 (es_addr): Move to before the multiply patterns.
1824 2015-04-15 Alan Modra <amodra@gmail.com>
1826 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
1827 and sequence_stack. Add seq.
1828 (seq_stack): Delete.
1829 * function.c (prepare_function_start): Don't access x_last_insn.
1830 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
1831 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
1832 * emit_rtl.c (start_sequence, push_topmost_sequence,
1833 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
1835 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
1836 remove_insn): Likewise. Simplify.
1837 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
1838 and pop_topmost_sequence.
1839 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
1841 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
1843 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
1846 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
1849 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
1851 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
1852 (LEGACY_INT_REGNO_P): Ditto.
1853 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
1854 (ANY_MASK_REG_P): Remove.
1855 (BND_REG_P): Rename from ANY_BND_REG_P.
1856 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
1857 legacy integer registers. Do not handle MMX_REG_P in a special way.
1858 Merge 64byte and 32byte SSE handling.
1860 2015-04-14 Nick Clifton <nickc@redhat.com>
1862 * expr.c (expand_assignment): Force an address offset computation
1863 into a register before changing its mode.
1864 (expand_expr_real_1): Likewise.
1866 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
1868 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
1869 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
1870 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
1871 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
1872 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
1873 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
1874 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
1875 and __aarch64_vget_lane_any.
1877 2015-04-14 Jakub Jelinek <jakub@redhat.com>
1879 PR rtl-optimization/65761
1880 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
1881 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
1883 2015-04-14 Richard Biener <rguenther@suse.de>
1885 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
1886 (graphite_can_represent_scev): Use POINTER_TYPE_P.
1888 2015-04-14 Richard Biener <rguenther@suse.de>
1890 PR tree-optimization/65758
1891 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
1893 (ccp_lattice_meet): Likewise.
1894 (bit_value_unop): Likewise.
1895 (bit_value_binop): Likewise.
1896 (bit_value_assume_aligned): Likewise.
1898 2015-04-14 Christian Bruel <christian.bruel@st.com>
1900 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
1903 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
1905 PR tree-optimization/63387
1906 * match.pd ((x unord x) | (y unord y) -> (x unord y),
1907 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
1909 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
1911 * config/i386/predicates.md (any_QIreg_operand): Rename from
1912 q_regs_operand. Do not process subregs.
1913 (QIreg_operand): Use QI_REGNO_P predicate.
1914 (ext_QIreg_operand): Ditto.
1915 (ext_register_operand): Ditto.
1916 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
1917 (AND splitters): Ditto.
1918 (AND with -65536 splitter): Add SWI48 mode for operand 0.
1919 (AND with -256 splitter): Use any_QIreg_operand predicate and
1920 SWI248 mode for operand 0.
1921 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
1923 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
1925 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
1927 * doc/plugins.texi: Rewrite first introductory paragraph.
1929 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1931 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
1932 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
1934 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1936 * ipa-profie.c (ipa_profile): Check number of parameters
1937 and possible polymorphic call targets before
1940 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
1942 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
1943 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
1945 2015-04-13 Richard Biener <rguenther@suse.de>
1947 PR tree-optimization/65204
1948 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
1951 2015-04-13 Richard Biener <rguenther@suse.de>
1954 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
1955 and cond_not_taken_branch_cost to 4 and 2.
1956 (bdver2_cost): Likewise.
1957 (bdver3_cost): Likewise.
1958 (bdver4_cost): Likewise.
1960 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1962 * hash-table.h (hash_table constructor): Add mem stats.
1963 (alloc_entries): Likewise.
1965 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1967 * ipa-cp.c (ipcp_driver): Relase prev_edge.
1968 * passes.c (execute_one_pass): Only add transform if pass has one.
1970 2015-04-12 Joseph Myers <joseph@codesourcery.com>
1972 * config/i386/i386.c (ix86_option_override_internal): Don't set
1973 -fprefetch-loop-arrays if optimizing for size.
1975 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1976 Gerald Pfeifer <gerald@pfeifer.com>
1978 * doc/contrib.texi (Contributors): Add Martin Jambor and
1981 2015-04-12 Jakub Jelinek <jakub@redhat.com>
1983 * BASE-VER: Set to 6.0.0.
1985 PR tree-optimization/65747
1986 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
1987 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
1989 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1991 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
1992 sentence. Improve grammar.
1994 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1996 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
1998 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
2001 * ipa-inline-transform.c (speculation_removed): Remove static var.
2002 (check_speculations): New function.
2003 (clone_inlined_nodes): Do not check spculations.
2004 (inline_call): Call check_speculations.
2005 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
2006 consider non-invariants.
2008 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
2009 Martin Liska <mliska@suse.cz>
2012 * ipa-icf.c (sem_item::compare_cgraph_references): function and
2013 variable can not match.
2014 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
2015 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
2017 2015-04-11 Jakub Jelinek <jakub@redhat.com>
2019 PR tree-optimization/65735
2020 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
2021 Remove visited_phis argument, add visited_bbs, avoid recursing into the
2022 same bb rather than just into the same phi node.
2023 (thread_through_normal_block): Adjust caller.
2025 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
2027 * doc/contrib.texi (Contributors): Add Ira Rosen.
2029 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
2031 * gcov.c (find_source): Fix miswording in error message.
2032 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
2033 (ix86_expand_sse_comi_round): Fix typo in error message.
2035 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
2037 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
2039 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
2041 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
2043 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
2046 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
2047 Print bad_spills_num and insn_pseudos_num.
2049 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2052 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
2053 when creating +1 values for SImode.
2055 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
2058 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
2061 2015-04-10 Jakub Jelinek <jakub@redhat.com>
2062 Iain Sandoe <iain@codesourcery.com>
2065 * configure: Regenerate.
2067 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
2070 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
2072 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
2074 * doc/contrib.texi (Contributors): Add John Marino.
2076 2015-04-09 Jakub Jelinek <jakub@redhat.com>
2078 PR tree-optimization/65709
2079 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
2080 TREE_TYPE (TREE_TYPE (t)).
2082 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
2085 * lra-int.h (lra_bad_spill_regno_start): New.
2086 * lra.c (lra_bad_spill_regno_start): New.
2087 (lra): Set up lra_bad_spill_regno_start. Set up
2088 lra_constraint_new_regno_start unconditionally.
2089 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
2092 2015-04-09 Marek Polacek <polacek@redhat.com>
2093 Jakub Jelinek <jakub@redhat.com>
2096 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
2097 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
2100 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
2102 PR rtl-optimization/65693
2103 * combine.c (is_parallel_of_n_reg_sets): Move outside of
2106 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
2109 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
2110 device specs file if "device-specs%s" didn't resolve to a path.
2112 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
2115 * config/i386/i386.c (fixup_modeless_constant): New.
2116 (ix86_expand_args_builtin): Fixup modeless constant operand.
2117 (ix86_expand_round_builtin): Ditto.
2118 (ix86_expand_special_args_builtin): Ditto.
2119 (ix86_expand_builtin): Ditto.
2121 2015-04-09 Jakub Jelinek <jakub@redhat.com>
2124 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
2125 any pow2 integer in between 2 and 0x80000000U inclusive.
2127 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
2129 PR rtl-optimization/65693
2130 * combine.c (is_parallel_of_n_reg_sets): Change first argument
2131 from an rtx_insn * to an rtx.
2132 (try_combine): Adjust both callers. Use it once more.
2134 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2136 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
2137 (chkp_make_static_const_bounds): Search existing
2138 symbol by assembler name. Use make_decl_one_only.
2139 (chkp_get_zero_bounds_var): Remove node search which
2140 is now performed in chkp_make_static_const_bounds.
2141 (chkp_get_none_bounds_var): Likewise.
2143 2015-04-08 Michael Witten <mfwitten@gmail.com>
2145 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
2148 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2150 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
2152 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
2154 * doc/extend.texi (__sync Builtins): Fix grammar.
2156 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2158 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
2160 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2162 * varasm.c (emit_local): Move definition of align.
2164 2015-04-08 Julian Brown <julian@codesourcery.com>
2166 * config/nvptx/mkoffload.c (process): Support variable mapping.
2168 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
2170 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
2172 (alpha_write_one_linkage): Correct typo.
2174 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2176 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
2178 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
2180 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
2182 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2184 * tree-chkp.h (chkp_insert_retbnd_call): New.
2185 * tree-chkp.c (chkp_insert_retbnd_call): New.
2186 * ipa-split.c (insert_bndret_call_after): Remove.
2187 (split_function): Use chkp_insert_retbnd_call.
2188 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
2189 bounds for instrumented functions.
2191 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
2194 * calls.c (initialize_argument_information): When producing tail
2195 call also turn SSA_NAMES passed by references to original PARM_DECLs
2197 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
2200 * lra-remat.c (do_remat): Process input and non-input insn
2201 registers separately.
2203 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2206 * valtrack.c (debug_lowpart_subreg): New function.
2207 (dead_debug_insert_temp): Use it.
2210 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
2211 into signed HOST_WIDE_INT the same as negative bit_offset.
2213 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
2215 * ipa-comdats.c (ipa_comdats): Visit all thunks
2216 to set proper comdat group.
2218 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2221 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
2222 on constants for NEON VSTRUCT modes.
2224 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2225 Iain Sandoe <iain@codesourcery.com>
2228 * configure: Regenerate.
2230 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2233 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
2234 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
2235 that LFD is used to load double constants instead of LFS. Add
2236 defaults for all costs structures. Add comments for missing
2237 initialization fields.
2238 (size32_cost): Likewise.
2239 (size64_cost): Likewise.
2240 (rs64a_cost): Likewise.
2241 (mpccore_cost): Likewise.
2242 (ppc403_cost): Likewise.
2243 (ppc405_cost): Likewise.
2244 (ppc440_cost): Likewise.
2245 (ppc476_cost): Likewise.
2246 (ppc601_cost): Likewise.
2247 (ppc603_cost): Likewise.
2248 (ppc604_cost): Likewise.
2249 (ppc604e_cost): Likewise.
2250 (ppc620_cost): Likewise.
2251 (ppc630_cost): Likewise.
2252 (ppccell_cost): Likewise.
2253 (ppc750_cost): Likewise.
2254 (ppc7450_cost): Likewise.
2255 (ppc8540_cost): Likewise.
2256 (ppce300c2c3_cost): Likewise.
2257 (ppce500mc_cost): Likewise.
2258 (ppce500mc64_cost): Likewise.
2259 (ppce5500_cost): Likewise.
2260 (ppce6500_cost): Likewise.
2261 (titan_cost): Likewise.
2262 (power4_cost): Likewise.
2263 (power6_cost): Likewise.
2264 (power7_cost): Likewise.
2265 (power8_cost): Likewise.
2266 (ppca2_cost): Likewise.
2267 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
2269 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
2270 instead of XXLOR to copy SFmode to clear out dirty bits created
2271 when SFmode denormals are generated.
2272 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
2273 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
2275 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
2277 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
2278 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
2279 * config/aarch64/aarch64-tune.md: Regenerate.
2281 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
2283 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
2284 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
2285 * config/arm/arm-cores.def (exynos-m1): New core.
2286 * config/arm/arm-tune.md: Regenerate.
2287 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
2288 * config/arm/bpabi.h: Likewise.
2290 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
2292 * ipa-cp (set_single_call_flag): Remove too
2295 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2297 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
2298 GOMP_offload_unregister from the destructor.
2300 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
2302 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
2303 flags for instrumentation thunk.
2304 (chkp_produce_thunks): Likewise.
2306 2015-04-05 Martin Liska <mliska@suse.cz>
2309 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
2310 has computed data structure.
2311 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2313 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
2315 * invoke.texi (inline-unit-growth): Increase growth to 20%
2316 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
2318 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
2321 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
2323 (lra_rematerialization_iter): New.
2324 * lra.c (lra): Initialize lra_rematerialization_iter.
2325 Stop updating lra_constraint_new_regno_start after switching of
2326 inheritance and rematerialization.
2327 * lra-remat.c (lra_rematerialization_iter): New.
2328 (lra_remat): Add printing pass iteration. Do rematerialization
2329 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
2331 2015-04-04 Richard Biener <rguenther@suse.de>
2333 PR tree-optimization/64909
2334 PR tree-optimization/65660
2335 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
2336 to take a cost vector for scalar iteration cost.
2337 (vect_get_single_scalar_iteration_cost): Likewise.
2338 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
2339 Compute the scalar iteration cost into a cost vector.
2340 (vect_get_known_peeling_cost): Use the scalar cost vector to
2341 account for the cost of the peeled iterations.
2342 (vect_estimate_min_profitable_iters): Likewise.
2343 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2346 2015-04-04 Alan Modra <amodra@gmail.com>
2350 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
2351 0.0 constant unless TARGET_VSX.
2352 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
2355 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
2358 * ipa-inline-transform.c (inline_call): Skip sanity check to work
2361 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
2364 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
2365 speculative indirect edges to avoid ordering issue.
2367 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
2370 * ipa-inline.c (edge_badness): Add combined size to the denominator.
2372 2015-04-03 Jakub Jelinek <jakub@redhat.com>
2374 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
2375 TYPE_ARTIFICIAL on the .omp_data* types.
2377 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2379 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
2380 instrumentation thunks.
2382 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2384 * config/i386/i386.c (ix86_expand_call): Avoid nested
2385 PARALLEL in returned call value.
2387 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2389 * lto-cgraph.c (input_cgraph_1): Always link instrumented
2390 assembler name with original one.
2392 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
2394 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
2396 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
2398 Revert parts of r216820.
2399 * config/i386/i386.md (movqi_internal): Correct type calculation
2400 for alternatives 3 and 5.
2402 2015-04-02 Jakub Jelinek <jakub@redhat.com>
2404 PR preprocessor/61977
2405 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
2406 predefine __vector/__bool/__pixel macros nor context sensitive
2408 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
2410 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
2412 * config/pa/pa.c (pa_output_move_double): Directly handle register
2413 indexed memory operand. Simplify handling of scaled register indexed
2416 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2419 * config/i386/linux-common.h (MPX_SPEC): New.
2420 (CHKP_SPEC): Add MPX_SPEC.
2421 * doc/invoke.texi (-fcheck-pointer-boudns): Document
2422 possible issues with '-z bndplt' support in linker.
2424 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
2426 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
2427 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
2428 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
2429 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
2430 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
2432 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
2434 * config/i386/sync.md (UNSPEC_MOVA): Remove.
2435 (atomic_load<mode>): Change operand 0 predicate to
2436 nonimmediate_operand and fix up the destination when needed.
2438 (atomic_loaddi_fpu): Use UNSPEC_LDA.
2439 (atomic_store<mode>): Change operand 1 predicate to
2440 nonimmendate_operand and move the source to register when needed.
2442 (atomic_store<mode>_1): Use UNSPEC_STA.
2443 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
2444 Fix moves from memory operand. Use UNSPEC_STA.
2446 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2448 * expmed.c (strict_volatile_bitfield_p): Check that the access will
2449 not cross a MODESIZE boundary.
2450 (store_bit_field, extract_bit_field): Added assertions in the
2451 strict volatile bitfields code path.
2453 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
2456 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2457 Increase args array size by one to avoid buffer overflow.
2459 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
2461 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2463 * ipa-inline.c (edge_badness): Add wrapper penalty.
2464 (sum_callers): Move up.
2465 (inline_small_functions): Set single_caller.
2466 * ipa-inline.h (inline_summary): Add single_caller.
2467 * ipa-split.c (split_function): Set split_part.
2468 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
2469 * cgraph.h (cgraph_node): Add split_part.
2471 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
2474 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2475 Do not split operands 0 and operands 2 to halfmode.
2476 (atomic_compare_and_swap<mode>): Update for
2477 atomic_compare_and_swap<dwi>_doubleword changes.
2479 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
2481 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
2482 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
2485 2015-03-31 Martin Liska <mliska@suse.cz>
2488 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
2489 has already filled up function summary.
2490 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2492 2015-03-31 Richard Biener <rguenther@suse.de>
2494 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
2497 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
2499 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
2501 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
2502 (s390_asm_output_function_label): Adapt to new signature of
2503 s390_function_num_hotpatch_hw
2504 Optimise the code generating assembler output.
2505 Add comments to assembler file.
2507 2015-03-31 Richard Biener <rguenther@suse.de>
2510 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
2511 of the noreturn call so it is last and cleanup_control_flow_bb
2512 can do the CFG part.
2514 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
2517 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
2518 same_comdat_group for external symbols.
2519 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
2520 infinite same_comdat_group traversal loop.
2522 2015-03-31 Jakub Jelinek <jakub@redhat.com>
2525 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
2526 automatically to $headers.
2528 2015-03-30 Jakub Jelinek <jakub@redhat.com>
2531 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
2532 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
2534 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
2536 * ipa-prop.c (param_type_may_change_p): Likewise.
2537 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
2538 (remove_unused_scope_block_p): Add in_ctor_dtor_block
2539 argument. Before inlining, preserve
2540 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
2541 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
2543 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
2545 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2548 * ipa-inline.c (edge_badness): Base denominator on callee's
2551 2015-03-27 Martin Jambor <mjambor@suse.cz>
2554 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
2555 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
2556 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
2557 node_calling_single_call.
2558 * ipa-cp.c (count_callers): New function.
2559 (set_single_call_flag): Likewise.
2560 (initialize_node_lattices): Count callers and set single_flag_call if
2562 (incorporate_penalties): New function.
2563 (good_cloning_opportunity_p): Use it, dump new flags.
2564 (propagate_constants_topo): Set node_within_scc flag if appropriate.
2565 * doc/invoke.texi (ipa-cp-recursion-penalty,
2566 ipa-cp-single-call-pentalty): Document.
2568 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2571 * symtab.c (symtab_node::get_partitioning_class): Register vars
2573 * varpool.c (symbol_table::output_variables) Do not assemble unefined
2574 decls for non-symbols.
2576 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
2579 * output.h (default_binds_local_p_2): New.
2580 * varasm.c (default_binds_local_p_2): Renamed to ...
2581 (default_binds_local_p_3): This. Don't return true on protected
2582 data symbol if protected data may be external.
2583 (default_binds_local_p): Use default_binds_local_p_3.
2584 (default_binds_local_p_1): Likewise.
2585 (default_binds_local_p_2): New.
2586 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
2587 default_binds_local_p_2 if TARGET_MACHO is undefined.
2589 2015-03-27 Jakub Jelinek <jakub@redhat.com>
2592 * config/i386/i386.c (legitimize_pic_address): If base
2593 is SYMBOL_REF or LABEL_REF using %rip addressing, force
2594 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
2596 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2599 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
2602 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2605 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
2606 of optimized out indirect call.
2607 (redirect_to_unreachable): Always build symbol table node for
2608 BUILT_IN_UNREACHABLE
2610 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
2613 * ira-costs.c (record_reg_classes): Process all constraint string
2616 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
2618 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
2622 * config/c6x/constraints.md (S3): New constraint.
2623 * config/c6x/c6x.md (real_jump): Use it.
2625 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2628 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
2629 do redirection if the call is not optimized out.
2631 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
2634 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
2635 (fchkp-check-incomplete-type): Add LTO.
2636 (fchkp-zero-input-bounds-for-main): Likewise.
2637 (fchkp-first-field-has-own-bounds): Likewise.
2638 (fchkp-narrow-bounds): Likewise.
2639 (fchkp-narrow-to-innermost-array): Likewise.
2640 (fchkp-use-static-bounds): Likewise.
2641 (fchkp-use-static-const-bounds): Likewise.
2642 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2644 2015-03-27 Marek Polacek <polacek@redhat.com>
2646 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
2648 2015-03-27 Marek Polacek <polacek@redhat.com>
2651 * ubsan.c (ubsan_create_edge): New function.
2652 (instrument_bool_enum_load): Call it.
2653 (instrument_nonnull_arg): Likewise.
2654 (instrument_nonnull_return): Likewise.
2655 (instrument_object_size): Likewise.
2657 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2659 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
2662 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2665 * lto-streamer.h (class lto_location_cache): New.
2666 (struct data_in): Add location_cache.
2667 (lto_input_location): Update prototype.
2668 (stream_input_location_now): New.
2669 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
2670 pointer to location.
2671 (stream_input_location): Update.
2672 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
2673 (warn_odr): Apply location cache before warning.
2674 (lto_input_location): Update prototype.
2675 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
2676 Use stream_input_location_now.
2677 * lto-streamer-in.c (lto_location_cache::current_cache): New static
2679 (lto_location_cache::cmp_loc): New function.
2680 (lto_location_cache::apply_location_cache): New function.
2681 (lto_location_cache::accept_location_cache): New function.
2682 (lto_location_cache::revert_location_cache): New function.
2683 (lto_location_cache::input_location): New function.
2684 (lto_input_location): Do location caching.
2685 (stream_input_location_now): New function.
2686 (input_eh_region, input_struct_function_base): Use
2687 stream_input_location_now.
2688 (lto_data_in_create): use new.
2689 (lto_data_in_delete): Use delete.
2690 * tree-streamer-in.c (unpack_ts_block_value_fields,
2691 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
2692 lto_input_ts_exp_tree_pointers): Update for cached location api.
2694 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2697 * passes.def: Add pass_nothrow.
2698 * ipa-pure-const.c: (pass_data_nothrow): New.
2699 (pass_nothrow): New.
2700 (pass_nothrow::execute): New.
2701 (make_pass_nothrow): New.
2702 * tree-pass.h (make_pass_nothrow): Declare.
2704 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2706 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
2707 edge to change by speculation resolution or redirection.
2708 (edge_set_predicate): Likewise.
2709 (inline_summary_t::duplicate): Likewise.
2710 (remap_edge_summaries): Likewise.
2712 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2714 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
2716 (can_inline_edge_p): Relax option matching for always inline functions.
2718 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
2721 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
2722 Check operand 4 and operand 0 for equality.
2723 (avx512f_vextract<shuffletype>32x4_1_maskm):
2724 Check operand 6 and operand 0 for equality.
2725 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
2727 (vec_extract_hi_<mode>_maskm): Ditto.
2729 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2731 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
2732 dead calls back to live.
2733 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
2735 (cgraph_node::verify_node): ... here; verify only callee edges,
2737 * cif-code.def (CILK_SPAWN): New code.
2739 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2741 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
2742 (edge_set_predicate): Use it to mark unreachable edges.
2743 (inline_summary_t::duplicate): Remove unnecesary code.
2744 (remap_edge_summaries): Likewise.
2745 (dump_inline_summary): Report contains_cilk_spawn.
2746 (compute_inline_parameters): Compute contains_cilk_spawn.
2747 (inline_read_section, inline_write_summary): Stream
2748 contains_cilk_spawn.
2749 * ipa-inline.c (can_inline_edge_p): Do not touch
2750 DECL_STRUCT_FUNCTION that may not be available;
2751 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
2752 remove check for callee_fun->can_throw_non_call_exceptions and
2753 replace it by optimization attribute check; check for flag_exceptions.
2754 * ipa-inline-transform.c (inline_call): Maintain
2755 DECL_FUNCTION_PERSONALITY
2756 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
2758 2015-03-26 Jakub Jelinek <jakub@redhat.com>
2760 PR tree-optimization/65551
2761 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
2762 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
2764 2015-03-26 Richard Biener <rguenther@suse.de>
2767 * tree-cfg.c (verify_gimple_call): Do not require a call to
2768 have no LHS if it wasn't recognized as control altering yet.
2770 2015-03-26 Jakub Jelinek <jakub@redhat.com>
2772 PR tree-optimization/64715
2773 * passes.def: Add another instance of pass_object_sizes before ccp1.
2774 * tree-object-size.c (pass_object_sizes::execute): In
2775 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
2776 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
2777 __bos result and the computed constant. Remove redundant
2778 checks, obsoleted by gimple_call_builtin_p test.
2780 * var-tracking.c (variable_tracking_main_1): Don't track
2781 variables for targetm.no_register_allocation targets.
2783 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
2785 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
2786 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
2788 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2791 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
2792 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
2793 0.0 is correctly setup.
2794 (extenddftf2_internal): Likewise.
2796 2015-03-25 Sebastian Pop <s.pop@samsung.com>
2798 PR tree-optimization/65177
2799 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
2801 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
2802 edges not adjacent on the path to the original code.
2804 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
2807 * doc/install.texi (Building a native compiler): Document new
2808 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
2809 configuration assumes that the host supports the linker plugin.
2811 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
2814 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
2815 chain for generated call.
2817 2015-03-25 Richard Biener <rguenther@suse.de>
2819 * passes.c (pass_manager::execute_early_local_passes): Guard
2820 execution of pass_chkp_instrumentation_passes with
2821 flag_check_pointer_bounds.
2822 (pass_chkp_instrumentation_passes::gate): Likewise.
2824 2015-03-25 Martin Liska <mliska@suse.cz>
2826 PR tree-optimization/65538
2827 * symbol-summary.h (function_summary::~function_summary):
2828 Relese memory for allocated summaries.
2829 (function_summary::release): New function.
2831 2015-03-25 Jakub Jelinek <jakub@redhat.com>
2834 * lto-streamer-out.c (DFS::worklist): New struct.
2835 (DFS::worklist_vec): New data member.
2836 (DFS::next_dfs_num): Remove.
2837 (DFS::DFS): Rewritten using worklist instead of recursion,
2838 using most of code from DFS::DFS_write_tree.
2839 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
2840 pass it to DFS_write_tree calls.
2841 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
2842 quick initial checks push it into worklist_vec and return.
2844 2015-03-25 Richard Biener <rguenther@suse.de>
2847 * genmatch.c (expr::gen_transform): Re-write to avoid
2850 2015-03-25 Bin Cheng <bin.cheng@arm.com>
2852 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
2854 2015-03-25 Bin Cheng <bin.cheng@arm.com>
2856 * config/arm/arm.opt (print_tune_info): New option.
2857 * config/arm/arm.c (arm_print_tune_info): New function.
2858 (arm_file_start): Call arm_print_tune_info.
2859 * config/arm/arm-protos.h (struct tune_params): Add comment.
2860 * doc/invoke.texi (@item -mprint-tune-info): New item.
2861 (-mtune): mention it in ARM Option Summary.
2863 2015-03-25 DJ Delorie <dj@redhat.com>
2865 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
2868 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
2869 Martin Liska <mliska@suse.cz>
2871 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
2872 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
2873 (sem_item::add_type): New function.
2874 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
2875 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
2876 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
2877 (sem_function::equals_wpa): Fix typo.
2878 * ipa-icf.h (sem_item::add_type): New function.
2879 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
2882 2015-03-24 Jakub Jelinek <jakub@redhat.com>
2884 PR tree-optimization/65533
2885 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
2886 with swapped operands, call vect_free_slp_tree on
2887 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
2890 2015-03-24 Richard Biener <rguenther@suse.de>
2893 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
2894 for fixup if necessary.
2896 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
2898 * doc/extend.texi (Function Attributes): Add @cindex entries
2899 for all attributes and regularize their format. Delete text
2900 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
2901 information about "eightbit_data", "tiny_data", and "model"
2902 variable attributes to the Variable Attributes section. Fix
2903 some obvious typos and copy-editing issues.
2904 (Variable Attributes, Type Attributes): Likewise add/fix
2905 @cindex entries for all attributes.
2907 2015-03-23 Jakub Jelinek <jakub@redhat.com>
2910 * tree-chkp.c (chkp_build_returned_bound): Ignore
2911 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
2913 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
2916 * config/sh/predicates.md (simple_mem_operand,
2917 displacement_mem_operand): Add test for reg.
2918 (short_displacement_mem_operand): Test for displacement_mem_operand
2919 before invoking sh_disp_addr_displacement.
2920 * config/sh/constraints.md (Sdd, Sra): Simplify.
2921 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
2922 Remove redundant displacement_mem_operand tests.
2924 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
2927 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
2928 the same -mmcu=MCU more than once.
2930 2015-03-23 Jakub Jelinek <jakub@redhat.com>
2933 * ipa-devirt.c: Remove duplicate demangle.h include.
2936 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
2938 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
2939 REG_POINTER on *destptr after adjusting it for prologue size.
2942 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
2943 ultimate_alias_target ()->order ints instead of
2944 ultimate_alias_target () pointers.
2946 2015-03-23 Richard Biener <rguenther@suse.de>
2948 PR tree-optimization/65518
2949 * tree-vect-stmts.c (vectorizable_load): Reject single-element
2950 interleaving cases we generate absymal code for.
2952 2015-03-23 Richard Biener <rguenther@suse.de>
2954 PR tree-optimization/65494
2955 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
2957 (vect_analyze_slp_instance): But do that here, always and once.
2959 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2961 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
2962 adding T or multiplying by T+1 and subracting T.
2964 2015-03-22 Jeff Law <law@redhat.com>
2966 PR rtl-optimization/64317
2967 * Makefile.in (OBJS): Add gcse-common.c
2968 * gcse.c: Include gcse-common.h
2969 (struct modify_pair_s): Move structure definition to gcse-common.h
2970 (compute_transp): Move function to gcse-common.c.
2971 (canon_list_insert): Similarly.
2972 (record_last_mem_set_info): Break out some code and put it into
2973 gcse-common.c. Call into the new common code.
2974 (compute_local_properties): Pass additional arguments to compute_transp.
2975 * postreload-gcse.c: Include gcse-common.h and df.h
2976 (modify_mem_list_set, blocks_with_calls): New variables.
2977 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
2978 (get_bb_avail_insn): Pass in the expression index too.
2979 (alloc_mem): Allocate memory for the new bitmaps and lists.
2980 (free_mem): Free memory for the new bitmaps and lists.
2981 (insert_expr_in_table): Record a bitmap index for each entry we
2983 (record_last_mem_set_info): Call into common code in gcse-common.c.
2984 (get_bb_avail_insn): If no available insn was found in the requested
2985 BB. If BB has a single predecessor, see if the expression is
2986 transparent in BB and available in that single predecessor.
2987 (compute_expr_transp): New wrapper for compute_transp.
2988 (eliminate_partially_redundant_load): Pass expression's bitmap_index
2989 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
2990 (gcse_after_reload_main): If there are elements in the hash table,
2991 then compute transparency for all the elements in the hash table.
2992 * gcse-common.h: New file.
2993 * gcse-common.c: New file.
2995 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
2997 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
2999 (System Headers): Likewise.
3001 (Traditional macros): Likewise.
3002 (Invocation): Likewise.
3003 (Option Index): Likewise.
3004 * doc/cppopts.texi (-M): Likewise.
3005 (-finput-charset): Likewise.
3007 * doc.invoke.texi (AVR Options): Likewise.
3008 (V850 Options): Likewise.
3010 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
3013 * ipa-devirt.c: Include demangle.h
3014 (odr_type_d): Add field rtti_broken.
3015 (odr_subtypes_equivalent_p): Do not require name to match.
3016 (compare_virtual_tables): Fix typo; if type already has ODR violation,
3017 bypass the tests; be ready for function referneces in vtables that are
3018 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
3019 (warn_odr): Give up for nameless types.
3020 (warn_types_mismatch): Report mismatch in mangled names;
3021 report mismatch in anonymous namespaces; look into component types to
3022 give useful error; report when mismatch is dragged in from other ODR
3024 (odr_types_equivalent_p): Match types for being polymorphic; avoid
3025 duplicated diagnostics.
3026 (add_type_duplicate): Reorder checks so more informative ones come
3027 first; fix typo; do not output "the extra base is defined here" when
3029 (BINFO_N_BASE_BINFOS): Relax sanity check.
3031 2015-03-22 Martin Liska <mliska@suse.cz>
3032 Jakub Jelinek <jakub@redhat.com>
3034 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
3035 masks that can potentially include a builtin.
3036 (ix86_add_new_builtins): Introduce fast filter for isa values
3037 that cannot trigger builtin inclusion.
3039 2015-03-22 Martin Liska <mliska@suse.cz>
3041 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
3042 (sem_item::update_hash_by_local_refs): Likewise.
3043 (sem_variable::get_hash): Empty line is fixed.
3044 (sem_item_optimizer::execute): Include adding of hash references.
3045 (sem_item_optimizer::update_hash_by_addr_refs): New function.
3046 (sem_item_optimizer::build_hash_based_classes): Use local hash.
3047 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
3048 (sem_item::update_hash_by_local_refs): Likewise.
3050 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
3053 * ipa-comdats.c (enqueue_references): Walk through thunks.
3054 (ipa_comdats): Likewise.
3055 (set_comdat_group_1): New function.
3057 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
3060 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
3063 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
3064 Gerald Pfeifer <gerald@pfeifer.com>
3066 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
3068 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3069 Sandra Loosemore <sandra@codesourcery.com>
3071 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
3072 function parameter declaration.
3073 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
3074 Update arguments to nios2_adjust_call_address().
3075 (sibcall_internal): Rename from *sibcall.
3076 (sibcall_value_internal): Rename from *sibcall_value.
3077 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
3078 (nios2_large_got_address): Add target temp reg parameter.
3079 (nios2_got_address): Adjust call to nios2_large_got_address, add
3080 force_reg around it.
3081 (nios2_load_pic_address): Add target temp reg parameter, replace call
3082 to nios2_got_address with corresponding code.
3083 (nios2_legitimize_constant_address): Update call to
3084 nios2_load_pic_address.
3085 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
3086 to use temp reg for PIC loading purposes.
3087 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
3088 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
3089 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
3091 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
3093 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
3094 usage of "the @option{...}".
3095 (-Wopenmp-simd): Likewise.
3096 (-fsanitize-recover): Likewise.
3097 (-fsanitize-undefined-trap-on-error): Likewise.
3099 (tracer-dynamic-coverage-feedback): Likewise.
3100 (reorder-block-duplicate-feedback): Likewise.
3101 (loop-unroll-jam-size): Likewise.
3104 (-mabs=legacy): Likewise.
3105 (-mupper-regs-df): Likewise.
3106 (-mupper-regs-sf): Likewise.
3107 (-mpointers-to-nested-functions): Likewise.
3109 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
3111 * doc/extend.texi (Cilk Plus Builtins): Add markup.
3113 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
3115 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
3116 additional index entries and cross-references.
3117 (-fchkp-check-incomplete-type): Likewise.
3118 (-fchkp-first-field-has-own-bounds): Likewise.
3119 (-fchkp-narrow-to-innermost-array): Likewise.
3120 (-fchkp-use-fast-string-functions): Likewise.
3121 (-fchkp-use-nochk-string-functions): Likewise.
3122 (-fchkp-use-static-const-bounds): Likewise.
3123 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
3124 (-fchkp-instrument-marked-only): Likewise.
3125 (-fchkp-use-wrappers): Likewise.
3126 (-static-libmpx): Likewise.
3127 (-static-libmpxwrappers): Likewise.
3128 * doc/extend.texi (bnd_legacy): Likewise.
3129 (bnd_instrument): Likewise.
3130 (bnd_variable_size): Likewise.
3131 (Pointer Bounds Checker builtins): Likewise.
3133 2015-03-21 Tom de Vries <tom@codesourcery.com>
3135 PR tree-optimization/65458
3136 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
3137 * cgraph.h (cgraph_node): Add parallelized_function field.
3138 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
3139 (input_overwrite_node): Read parallelized_function field.
3140 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
3141 parallelized_function on cgraph_node for child_fn.
3142 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
3143 Remove include of gt-tree-parloops.h.
3144 (parallelized_functions): Remove static variable.
3145 (parallelized_function_p): Rewrite using parallelized_function field of
3147 (create_loop_fn): Remove adding to parallelized_functions.
3148 * Makefile.in (GTFILES): Remove tree-parloops.c
3150 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
3152 PR rtl-optimization/64366
3153 * lra.c (lra_update_insn_regno_info): Consider regs in
3154 CALL_INSN_FUNCTION_USAGE memory.
3156 2015-03-20 Richard Biener <rguenther@suse.de>
3159 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
3160 for type comparison and gcc_checking_assert.
3161 (chrec_fold_plus_poly_poly): Likewise.
3162 (chrec_fold_multiply_poly_poly): Likewise.
3163 (chrec_convert_1): Likewise.
3164 * gimplify.c (gimplify_expr): Remove premature folding of
3165 &X + CST to &MEM[&X, CST].
3167 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
3169 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
3171 (ipa_inline): Recompute inline_failed codes.
3172 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
3173 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
3176 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
3178 PR rtl-optimization/60851
3179 * recog.c (constrain_operands): Accept a pseudo register before reload
3180 for LRA enabled targets.
3182 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3185 * config/rs6000/predicates.md (easy_fp_constant): Remove special
3186 -ffast-math handling that kept non-0 constants live in the RTL
3187 until reload. Remove logic testing the number of instructions it
3188 took to create a constant in a GPR that was never used, due to a
3189 test for soft-float earlier.
3190 (memory_fp_constant): Delete, no longer used.
3192 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
3193 alternatives for loading non-0 constants into GPRs for hard
3194 floating point that is no longer needed due to changes in
3195 easy_fp_constant. Add support for loading 0.0 into GPRs.
3196 (mov<mode>_hardfloat32): Likewise.
3197 (mov<mode>_hardfloat64): Likewise.
3198 (mov<mode>_64bit_dm): Likewise.
3199 (movtd_64bit_nodm): Likewise.
3200 (pre-reload move FP constant define_split): Delete define_split,
3201 since it is no longer used.
3202 (extenddftf2_internal): Remove GHF constraints that are not valid
3205 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
3207 PR rtl-optimization/63491
3208 * lra-constraints.c (check_and_process_move): Use src instead of
3209 sreg. Remove some dead code.
3211 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
3214 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
3215 (sem_variable::merge): Likewise.
3217 2015-03-19 Martin Liska <mliska@suse.cz>
3220 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
3221 all fields of cgraph_thunk_info.
3223 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
3225 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
3226 clone instrumented thunks.
3228 2015-03-19 Richard Biener <rguenther@suse.de>
3231 2015-03-10 Richard Biener <rguenther@suse.de>
3234 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3235 * tree-ssa-coalesce.c: Include timevar.h.
3236 (attempt_coalesce): Handle graph being NULL.
3237 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3238 Split out abnormal coalescing to ...
3239 (perform_abnormal_coalescing): ... this function.
3240 (coalesce_ssa_name): Perform abnormal coalescing without computing
3242 (verify_ssa_coalescing_worker): New function.
3243 (verify_ssa_coalescing): Likewise.
3245 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3246 Jakub Jelinek <jakub@redhat.com>
3249 * tsan.c (instrument_gimple): Clear tail call flag on
3252 2015-03-19 Jakub Jelinek <jakub@redhat.com>
3255 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
3256 call in the return bb.
3257 (find_split_points): Add RETURN_BB argument, don't call
3259 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
3260 if true append TSAN_FUNC_EXIT internal call after the call to
3261 the split off function.
3262 (execute_split_functions): Call find_return_bb here.
3263 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
3264 Adjust find_split_points and split_function calls.
3266 2015-03-18 DJ Delorie <dj@redhat.com>
3268 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
3269 (iorqi3_virt): Likewise.
3271 2015-03-18 Tom de Vries <tom@codesourcery.com>
3273 * tree-parloops.c (parallelize_loops): Make static.
3274 * tree-parloops.h (parallelize_loops): Remove extern declaration.
3276 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
3280 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3282 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3283 condition would be removed due to undefined behaviour.
3285 2015-03-18 Martin Liska <mliska@suse.cz>
3288 * cgraph.c (cgraph_node::get_create): Remove unnecessary
3289 xstrdup_for_dump wrapper.
3290 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
3292 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
3293 with xstrdup_for_dump.
3294 (sem_variable::equals): Likewise.
3295 (sem_item_optimizer::read_section): Use symtab_node::name instead of
3297 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
3298 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
3299 symtab_node::asm_name with xstrdup_for_dump.
3300 (congruence_class::dump): Use symtab_node::name instead of
3302 * ipa-icf.h (symtab_node::name): Remove.
3303 (symtab_node::asm_name): Likewise.
3305 2015-03-18 Jakub Jelinek <jakub@redhat.com>
3307 PR tree-optimization/65450
3308 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
3310 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
3311 it instead of duplicate_ssa_name_ptr_info.
3314 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
3316 2015-03-18 Richard Biener <rguenther@suse.de>
3318 * tree-data-ref.h (struct access_matrix): Remove.
3319 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3320 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3321 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
3322 (am_vector_index_for_loop): Likewise.
3323 (struct data_reference): Remove access_matrix member.
3324 (DR_ACCESS_MATRIX): Remove.
3325 (lambda_vector_new): Add comment.
3326 (lambda_matrix_new): Use XOBNEWVEC.
3328 2015-03-18 Richard Biener <rguenther@suse.de>
3330 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
3331 (pass_ch::execute): Cleanup the CFG only if we did sth.
3332 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
3334 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3336 * expmed.c (synth_mult): Use std::swap instead of manually
3337 swapping algorithms.
3339 2015-03-18 Jakub Jelinek <jakub@redhat.com>
3342 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
3344 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
3347 * config/avr/avr.opt (-nodevicelib): New option.
3348 * doc/invoke.texi (AVR Options): Document it.
3349 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
3350 libgcc.a, libc.a, libm.a.
3351 * config/avr/specs.h: Same.
3352 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
3353 which don't (directly) depend on the device. Print more help.
3354 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
3355 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
3356 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
3358 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
3359 for specs file name.
3360 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
3361 * config/avr/avr-mcus.def: Adjust initializers and comments.
3363 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
3365 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
3366 DECL_ONE_ONLY to check if decl is one only.
3367 * ipa-split.c (consider_split): Limit splitt of one only functions.
3369 2015-03-16 Jakub Jelinek <jakub@redhat.com>
3371 PR tree-optimization/65427
3372 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
3374 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
3376 2015-03-16 Marek Polacek <polacek@redhat.com>
3378 * cgraph.h (add_new_static_var): Remove declaration.
3379 * varpool.c (add_new_static_var): Remove function.
3381 2015-03-16 Jakub Jelinek <jakub@redhat.com>
3383 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
3384 instead of vec<tree> * with vec_alloc and release for args.
3388 * omp-low.c (delete_omp_context): Only splay_tree_delete
3389 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
3390 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
3392 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
3395 * cfgexpand.c (align_base): New function.
3396 (alloc_stack_frame_space): Call it.
3397 (expand_stack_vars): Align prev_frame to be sure
3398 data->asan_vec elements aligned properly.
3400 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
3403 * expr.c (store_field): Do not do a direct block copy if the source is
3404 a PARALLEL with BLKmode.
3406 2015-03-16 Tom de Vries <tom@codesourcery.com>
3410 2015-03-12 Tom de Vries <tom@codesourcery.com>
3412 PR rtl-optimization/64895
3413 * lra-lives.c (check_pseudos_live_through_calls): Use
3414 actual_call_used_reg_set instead of call_used_reg_set, if available.
3416 2015-03-16 Alan Modra <amodra@gmail.com>
3419 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
3420 Modify Z->r bswapdi splitter to use dest in place of scratch.
3421 In r->Z and Z->r bswapdi splitter rename word_high, word_low
3422 to word1, word2 and rearrange logic to suit.
3423 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
3424 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
3425 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
3426 Add one '?' on r->r. Modify Z->r splitter to avoid need for
3429 2015-03-14 Jakub Jelinek <jakub@redhat.com>
3431 PR tree-optimization/65369
3432 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
3433 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
3434 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
3436 PR tree-optimization/65418
3437 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
3438 are casts in the first PLUS_EXPR operand, ensure tbias and
3439 *totallowp are in the inner type.
3441 PR rtl-optimization/65401
3442 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
3443 argument. If true, adjust_address_nv of x with big-endian
3444 correction for the mode widening to GET_MODE (y).
3445 (make_field_assignment): Don't do MEM mode widening here.
3446 Use MEM_P instead of GET_CODE == MEM.
3448 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
3450 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
3453 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3456 * config/arm/arm.c (arm_gen_constant, AND case): Use
3457 ARM_SIGN_EXTEND when constructing AND mask.
3459 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3461 * graph.c (print_graph_cfg): Make function names visible and append
3462 parenthesis to it. Also make groups of basic blocks belonging to the
3463 same function visible.
3465 2015-03-12 Richard Biener <rguenther@suse.de>
3468 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
3469 to avoid quadratic behavior with inline expansion splitting blocks.
3470 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
3471 with the successor if the predecessor will be merged with it.
3472 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
3473 entry block with its successor.
3475 2015-03-13 Richard Biener <rguenther@suse.de>
3478 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
3479 (cleanup_tree_cfg_1): Do not call it.
3480 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
3481 (fixup_noreturn_call): Mark the stmt as control altering.
3482 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
3484 (pass_data_fixup_cfg): Produce a dump file.
3485 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
3486 (need_noreturn_fixup): New global.
3487 (pass_dominator::execute): Fixup queued noreturn calls.
3488 (optimize_stmt): Queue calls that became noreturn for fixup.
3489 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
3490 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
3491 (el_to_fixup): New global.
3492 (eliminate_dom_walker::before_dom_childre): Queue calls that
3493 became noreturn for fixup.
3494 (eliminate): Fixup queued noreturn calls.
3495 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
3496 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
3497 (substitute_and_fold_dom_walker::before_dom_children): Queue
3498 alls that became noreturn for fixup.
3499 (substitute_and_fold): Fixup queued noreturn calls.
3501 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
3503 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
3504 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
3505 are building; for methods check ODR type of class they belong to if
3506 they may lead to a polymorphic call.
3507 (sem_function::compare_polymorphic_p): Be bit smarter about testing
3508 when function may lead to a polymorphic call.
3509 (sem_function::compare_type_list): Remove.
3510 (sem_variable::equals): Update use of compatible_types_p.
3511 (sem_variable::parse_tree_refs): Remove.
3512 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
3514 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
3516 (func_checker::compatible_polymorphic_types_p): Break out from ...
3517 (unc_checker::compatible_types_p): ... here.
3518 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
3520 (unc_checker::compatible_types_p): Update.
3521 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
3524 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3526 PR rtl-optimization/65235
3527 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
3528 When first element of vec_concat is const_int, calculate its size
3529 using second element.
3531 2015-03-12 Richard Biener <rguenther@suse.de>
3534 * fold-const.c (operand_equal_p): Fix ordering of resetting
3535 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
3537 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
3539 * config/s390/s390.c (s390_reorg): Move code to output nops after label
3541 (s390_asm_output_function_label): Likewise.
3542 * config/s390/s390.c (s390_asm_output_function_label):
3543 Fix function label alignment with -mhtopatch.
3544 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
3545 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
3546 ("nop_2_byte"): New define_insn.
3547 ("nop_4_byte"): Likewise.
3548 ("nop_6_byte"): Likewise.
3549 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
3550 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
3552 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
3555 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
3558 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
3561 * toplev.c (process_options): Restrict Pointer Bounds Checker
3562 usage with Address Sanitizer.
3564 2015-03-12 Richard Biener <rguenther@suse.de>
3566 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
3568 * omp-low.c (expand_omp_taskreg): Split block before removing
3570 (expand_omp_target): Likewise.
3571 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
3572 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
3573 stmt to split_block.
3575 2015-03-12 Tom de Vries <tom@codesourcery.com>
3577 PR rtl-optimization/64895
3578 * lra-lives.c (check_pseudos_live_through_calls): Use
3579 actual_call_used_reg_set instead of call_used_reg_set, if available.
3581 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
3583 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
3584 (cgraph_node::remove): Likewise.
3585 (cgraph_node::get_untransformed_body): Likewise.
3586 * varpool.c (varpool_node::remove): Likewise.
3587 (varpool_node::get_constructor): Add sanity check.
3589 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
3591 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
3593 (-fabi-compat-version): Likewise.
3594 (-ffriend-injection): Likewise.
3595 (-Wdeclaration-after-statement): Likewise.
3596 (-fomit-frame-pointer): Likewise.
3597 (-ftree-coalesce-inlined-vars): Likewise.
3598 (-fvisibility=): Likewise.
3599 * doc/extend.texi (Typeof): Likewise.
3600 (Zero Length): Likewise.
3601 (Escaped Newlines): Likewise.
3602 (Compound Literals): Likewise.
3603 (Function Attributes): Likewise.
3604 (Label Attributes): Likewise.
3605 (Type Attributes): Likewise.
3606 (Function Names): Likewise.
3607 (Other Builtins): Likewise.
3608 (Function Specific Option Pragmas): Likewise.
3609 (C++ Interface): Likewise.
3611 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
3613 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
3615 2015-03-11 Marek Polacek <polacek@redhat.com>
3617 PR tree-optimization/65388
3618 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
3620 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
3623 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
3624 * configure: Regenerate.
3625 * config.in: Regenerate.
3626 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
3627 [-mn-flash]: Document it.
3628 [__AVR_ARCH__]: Document avrtiny.
3630 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
3631 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
3632 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
3634 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3636 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
3638 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3641 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
3642 allow reloads of PLUS in floating point/VSX registers.
3644 2015-03-11 Junmo Park <junmoz.park@samsung.com>
3646 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
3648 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
3650 2015-03-11 Richard Biener <rguenther@suse.de>
3652 PR tree-optimization/65310
3653 * tree-sra.c (build_ref_for_offset): Also preserve larger
3656 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
3658 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
3660 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3663 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
3665 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
3667 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
3669 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
3670 (sem_function::equals_wpa): ... here.
3672 2015-03-10 Marek Polacek <polacek@redhat.com>
3673 Jakub Jelinek <jakub@redhat.com>
3676 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
3677 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
3680 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3683 * config/rs6000/t-linux: For powerpc64* target set
3684 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
3686 2015-03-10 Richard Biener <rguenther@suse.de>
3689 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
3690 for redirect_all_calls.
3692 2015-03-10 Marek Polacek <polacek@redhat.com>
3694 * gdbinit.in (pcfun): Define and document.
3696 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
3698 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
3699 of libgomp-plugin.h.
3700 (find_target_compiler): Support a case when the path to gcc is
3701 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
3702 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
3703 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
3705 (main): Use GCC_INSTALL_NAME as target_driver_name.
3706 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
3708 (mkoffload.o): Remove obsolete include path and defines.
3709 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
3711 2015-03-10 Richard Biener <rguenther@suse.de>
3714 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3715 * tree-ssa-coalesce.c: Include timevar.h.
3716 (attempt_coalesce): Handle graph being NULL.
3717 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3718 Split out abnormal coalescing to ...
3719 (perform_abnormal_coalescing): ... this function.
3720 (coalesce_ssa_name): Perform abnormal coalescing without computing
3722 (verify_ssa_coalescing_worker): New function.
3723 (verify_ssa_coalescing): Likewise.
3725 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
3728 * config.gcc (extra_options) [avr]: Remove.
3729 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
3730 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
3731 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
3733 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
3734 (-mmcu=): Add Var and MissingArgError properties.
3736 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
3737 * config/avr/t-multilib: Regenerate.
3738 * config/avr/specs.h: New file.
3739 * config/avr/driver-avr.c: New file.
3740 * config/avr/genopt.sh: Remove file.
3741 * config/avr/avr-tables.opt: Remove file.
3742 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
3743 * config/avr/avr-c.c: Same.
3745 (avr_current_device): Remove proto.
3746 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
3747 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
3748 (EXTRA_SPEC_FUNCTIONS): Define.
3749 (avr_devicespecs_file): New specs function proto.
3750 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
3751 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
3752 (avr_current_device): Remove definition and usage.
3753 (avr_set_core_architecture): New static function.
3754 (avr_option_override): Use it.
3755 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
3756 (mcu_name): New static array.
3757 (comparator, avr_archs_str, avr_mcus_str): New static functions.
3758 (avr_inform_devices, avr_inform_core_architectures): New functions.
3759 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
3760 (avrlibc.h) [WITH_AVRLIBC]: Include.
3761 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
3762 (print_mcu): Rewrite from scratch.
3763 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
3764 Forward to avr-specific specs defined in device-specs file.
3765 * config/avr/t-avr (driver-avr.o): New rule.
3766 (avr-devices.o): Depend on avr-arch.h.
3767 (avr-mcus): No more depend on avr-tables.opt.
3768 (avr-tables.opt): Remove rule.
3769 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
3771 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3773 * c-family/c.opt (fchkp-use-wrappers): New.
3774 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
3775 (chkp_wrap_function): New.
3776 (chkp_build_instrumented_fndecl): Support wrapped
3778 * doc/invoke.texi (-fcheck-pointer-bounds): New.
3779 (-fchkp-check-incomplete-type): New.
3780 (-fchkp-first-field-has-own-bounds): New.
3781 (-fchkp-narrow-bounds): New.
3782 (-fchkp-narrow-to-innermost-array): New.
3783 (-fchkp-optimize): New.
3784 (-fchkp-use-fast-string-functions): New.
3785 (-fchkp-use-nochk-string-functions): New.
3786 (-fchkp-use-static-bounds): New.
3787 (-fchkp-use-static-const-bounds): New.
3788 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
3789 (-fchkp-check-read): New.
3790 (-fchkp-check-write): New.
3791 (-fchkp-store-bounds): New.
3792 (-fchkp-instrument-calls): New.
3793 (-fchkp-instrument-marked-only): New.
3794 (-fchkp-use-wrappers): New.
3795 (-static-libmpx): New.
3796 (-static-libmpxwrappers): New.
3798 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3800 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
3801 (CHKP_SPEC): Add wrappers library.
3802 * c-family/c.opt (static-libmpxwrappers): New.
3804 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3806 * config/i386/linux-common.h (LIBMPX_LIBS): New.
3809 * gcc.c (CHKP_SPEC): New.
3810 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
3811 * c-family/c.opt (static-libmpx): New.
3813 2015-03-10 Richard Biener <rguenther@suse.de>
3816 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
3818 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
3819 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
3820 (cgraph_add_edge_to_call_site_hash): Likewise.
3821 (cgraph_node::get_edge): Likewise.
3822 (cgraph_edge::set_call_stmt): Likewise.
3823 (cgraph_edge::remove_caller): Likewise.
3825 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
3827 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
3828 (callee_saved_gpr_regs_size): ... this.
3829 (callee_saved_regs_first_regno): Rename to ...
3830 (callee_saved_first_gpr_regno): ... this.
3831 (callee_saved_regs_last_regno) Rename to ...
3832 (callee_saved_last_gpr_regno): ... this.
3833 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
3835 (nds32_initial_elimination_offset): Likewise.
3836 (nds32_expand_prologue): Likewise.
3837 (nds32_expand_epilogue): Likewise.
3838 (nds32_expand_prologue_v3push): Likewise.
3839 (nds32_expand_epilogue_v3pop): Likewise.
3840 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3841 Adjust renamed variables.
3842 (nds32_output_stack_pop): Likewise.
3844 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3846 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
3849 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3851 PR rtl-optimization/65321
3852 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
3854 * var-tracking.c (use_narrower_mode): Likewise.
3856 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
3858 PR tree-optimization/65355
3859 * varasm.c (notice_global_symbol): Do not produce RTL.
3860 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
3862 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3863 check for section anchors.
3865 2015-03-10 Alan Modra <amodra@gmail.com>
3868 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
3869 to be single-arch by default. Set cpu_is_64bit for powerpc64
3870 given --with-cpu=native.
3871 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
3872 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
3874 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
3875 rs6000_isa_flags rather than TARGET_64BIT.
3877 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
3878 Kaz Kojima <kkojima@gcc.gnu.org>
3880 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
3882 2015-03-09 Jakub Jelinek <jakub@redhat.com>
3885 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
3886 on a TREE_BINFO, instead use BINFO_TYPE.
3888 2015-03-09 Richard Biener <rguenther@suse.de>
3891 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
3892 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
3893 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
3894 of that. When comparing dereferences compare alignment.
3895 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
3897 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
3899 * ipa-inline-analysis.c (check_callers): Check
3900 node->can_remove_if_no_direct_calls_and_refs_p.
3901 (growth_likely_positive): Reorganize to call
3902 can_remove_if_no_direct_calls_p later.
3903 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
3904 will_be_removed_from_program_if_no_direct_calls_p): Add
3905 will_inline parameter.
3906 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
3907 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3908 Handle inliner case correctly.
3910 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
3912 PR tree-optimization/63743
3913 * cfgexpand.c (reorder_operands): Also reorder if only second operand
3914 had its definition forwarded by TER.
3916 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
3919 * ipa-utils.h (types_odr_comparable): Add strict argument.
3920 * ipa-devirt.c: Fix whitespace;
3921 (odr_hasher): Remove.
3922 (odr_name_hasher, odr_vtable_hasher): New hashers.
3923 (can_be_name_hashed_p): New predicate.
3924 (hash_type_name): remove.
3925 (hash_odr_name): New.
3926 (odr_name_hasher::hash): new.
3927 (can_be_vtable_hashed_p): New.
3928 (hash_odr_vtable): New.
3929 (odr_vtable_hasher::hash): New.
3930 (types_same_for_odr): Add strict parameter.
3931 (types_odr_comparable): Likewise.
3932 (odr_name_hasher::equal): New.
3933 (odr_vtable_hasher::equal): New.
3934 (odr_name_hasher::remove): New.
3935 (odr_hash_type): Change to hash_table<odr_name_hasher>.
3936 (odr_vtable_hash_type): New.
3937 (odr_vtable_hash): New.
3938 (odr_subtypes_equivalent_p): Do strict comparsion.
3939 (add_type_duplicate): Merge type names; cleanup; avoid type
3941 (register_odr_type): Initialize vtable hash.
3942 (build_type_inheritance_graph): Likewise
3943 (get_odr_type): Reorg to use two hashes.
3944 (dump_possible_polymorphic_call_targets): Move sanity check after debug
3946 (ipa_devirt): Dump type_inheritance_graph.
3947 (types_same_for_odr): Add strict mode.
3949 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3952 * cgraph.h (symtab_node): Add definition_alignment,
3953 can_increase_alignment_p and increase_alignment.
3954 * symtab.c (symtab_node::can_increase_alignment_p,
3955 increase_alignment_1, symtab_node::increase_alignment,
3956 symtab_node::definition_alignment): New.
3957 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
3958 can_increase_alignment_p.
3959 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
3960 * tree-vect-stmts.c (ensure_base_align): Likewise.
3961 * varasm.c (function_section_1): Use definition_alignment.
3962 (assemble_start_function): Likewise.
3963 (emit_local): likewise.
3964 (build_constant_desc): Likewsie.
3965 (output_constant_def_contents): Likewise.
3966 (place_block_symbol): Likewise.
3967 (output_object_block): Likewise.
3969 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3972 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
3973 when outputting debug.
3975 2015-03-07 Marek Polacek <polacek@redhat.com>
3976 Martin Uecker <uecker@eecs.berkeley.edu>
3979 * doc/invoke.texi: Update description of -fsanitize=bounds.
3981 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
3983 * tree-ssa-phiopt.c (neg_replacement): Remove.
3984 (tree_ssa_phiopt_worker): Remove negate optimization.
3986 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3989 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
3991 2015-03-06 Richard Biener <rguenther@suse.de>
3994 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
3995 and liveout_obstack members.
3996 (calculate_live_on_exit): Remove.
3997 (calculate_live_ranges): Change declaration.
3998 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
3999 (new_tree_live_info): Adjust.
4000 (calculate_live_ranges): Delete livein when not wanted.
4001 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
4002 Deal with partly deleted live info.
4003 (loe_visit_block): Remove temporary bitmap by using
4004 bitmap_ior_and_compl_into.
4005 (live_worklist): Adjust accordingly.
4006 (calculate_live_on_exit): Make static.
4007 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
4008 we do not need livein.
4010 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
4012 * real.c (real_from_string): Fix typo in assertion.
4014 2015-03-06 Alex Velenko <alex.velenko@arm.com>
4016 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
4019 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
4021 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
4023 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
4026 * lra-assigns.c (find_hard_regno_for): Rename to
4027 find_hard_regno_for_1. Add a new parameter.
4028 (find_hard_regno_for): New function using find_hard_regno_for_1.
4030 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4032 PR rtl-optimization/65067
4033 * expmed.c (store_bit_field, extract_bit_field): Reworked the
4034 strict volatile bitfield handling.
4036 2015-03-05 Martin Liska <mliska@suse.cz>
4039 * ipa-icf.c (sem_variable::equals): Compare variables types.
4041 2015-03-05 Richard Henderson <rth@redhat.com>
4044 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
4045 correctly check weak symbol binding.
4047 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
4050 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
4053 2015-03-05 Martin Liska <mliska@suse.cz>
4055 * ipa-inline.c (inline_small_functions): Set default value to
4056 prevent warning during bootstrap.
4057 * tree.h: Add pragma guard that ignores false positives during
4060 2015-03-05 Richard Biener <rguenther@suse.de>
4062 PR tree-optimization/65310
4063 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4064 Properly preserve alignment of the base of the access.
4066 2015-03-05 Richard Biener <rguenther@suse.de>
4069 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
4070 Compare dependence info.
4072 2015-03-05 Richard Biener <rguenther@suse.de>
4075 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
4077 (walk_ssa_copies): Revert last chage. Instead do not walk
4078 SSA names registered for SSA update.
4080 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
4083 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
4084 vtable references for their containing type.
4085 (sem_function::equals_wpa): Compare TYPE_RESTRICT
4086 and type attributes.
4088 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
4090 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
4092 * stor-layout.c (finalize_record_size): Revert latest change.
4094 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
4096 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
4098 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
4100 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
4101 for correct comdat handling.
4102 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
4104 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
4105 (used_from_object_file_p_worker): Remove.
4106 (cgraph_node::only_called_directly_or_alised): Add
4107 used_from_object_file_p.
4108 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
4109 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
4110 can_remove_if_no_direct_calls_and_refs_p.
4112 2015-03-04 Nick Clifton <nickc@redhat.com>
4114 * config/rl78/rl78.h (enum reg_class): Remove real registers from
4115 General register class.
4116 * config/rl78/rl78-real.md: Replace general register constraints
4117 with real+virtual register constraints.
4119 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4121 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
4122 from checking for -mhtm option.
4124 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
4126 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
4127 (struct ipa_sra_check_caller_data): Add has_thunk field.
4128 (ipa_sra_check_caller): Check for thunk.
4129 (ipa_sra_preliminary_function_checks): Give up on function with
4131 (ipa_early_sra): Use call_for_symbol_and_aliases.
4133 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
4136 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
4137 called for __stack_chk_guard symbol.
4139 2015-03-03 DJ Delorie <dj@redhat.com>
4141 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
4143 (*addhi3_real): Likewise.
4144 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
4145 pattern to match incrementing memory.
4146 * config/rl78/predicates.md (rl78_1_2_operand): New.
4147 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
4148 it's the same and only mem.
4149 (rl78_alloc_physical_registers_op2): If there's effectively only
4150 one MEM, transcode it into HL.
4151 (rl78_far_p): Reject addresses that aren't legitimate.
4153 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
4155 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
4158 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
4160 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
4162 Implement call0 ABI for xtensa
4163 * config/xtensa/constraints.md ("a" constraint): Include stack
4164 pointer in case of call0 ABI.
4165 ("q" constraint): Make empty in case of call0 ABI.
4166 ("D" constraint): Include stack pointer in case of call0 ABI.
4167 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
4168 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
4170 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
4172 (xtensa_regno_to_class): Make it a local variable in the
4173 function xtensa_regno_to_class.
4174 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
4175 macro, function prototype and implementation.
4176 (reg_nonleaf_alloc_order): Make it a local variable in the
4177 function order_regs_for_local_alloc.
4178 (xtensa_conditional_register_usage): New function.
4179 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
4180 (xtensa_valid_move): Allow direct moves to stack pointer
4181 register in call0 ABI.
4182 (xtensa_setup_frame_addresses): Only spill register windows in
4184 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
4185 call0 ABI respectively.
4186 (xtensa_function_arg_1): Only mark a7 register for copying in
4188 (xtensa_call_save_reg): New function.
4189 (compute_frame_size): Add space for callee saved register
4190 storage to the frame size in call0 ABI.
4191 (xtensa_expand_prologue): Generate code to set up stack frame
4192 and save callee-saved registers in call0 ABI.
4193 (xtensa_expand_epilogue): New function.
4194 (xtensa_set_return_address): New function.
4195 (xtensa_return_addr): Calculate return address in call0 ABI.
4196 (xtensa_builtin_saveregs): Only mark a7 register for copying and
4197 emit copying code in windowed ABI.
4198 (order_regs_for_local_alloc): Add preferred register allocation
4199 order for non-leaf function in call0 ABI.
4200 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
4201 (xtensa_asm_trampoline_template): Add trampoline generation for
4203 (xtensa_trampoline_init): Add trampoline initialization for
4205 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
4207 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
4208 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
4209 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
4210 ABI call-used registers.
4211 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
4212 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
4214 (REG_CLASS_CONTENTS): Include all registers into the preferred
4215 reload registers set, adjust the set in the
4216 xtensa_conditional_register_usage.
4217 (xtensa_regno_to_class): Drop variable declaration.
4218 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
4220 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
4222 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
4223 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
4224 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
4225 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
4226 location in call0 ABI.
4227 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
4228 stack adjustment size when handling exception.
4229 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
4230 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
4232 ("return" pattern): Generate ret.n/ret in call0 ABI.
4233 ("epilogue" pattern): Expand epilogue.
4234 ("nonlocal_goto" pattern): Use default in call0 ABI.
4235 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
4236 emit eh_set_a0_* depending on ABI.
4237 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
4238 ("eh_set_a0_call0", "blockage"): New patterns.
4240 2015-03-03 Martin Liska <mliska@suse.cz>
4243 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
4245 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4248 * config/rs6000/rs6000-tables.opt: Regenerate table.
4250 2015-03-03 Renlin Li <renlin.li@arm.com>
4252 * doc/md.texi (@item ^): Change ? into ^.
4254 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
4256 * doc/tm.texi: Regenerated.
4258 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
4260 * builtins.c (expand_builtin_return_addr): Add
4261 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
4263 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
4265 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
4267 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
4269 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
4272 2015-03-03 Martin Jambor <mjambor@suse.cz>
4273 Eric Botcazou <ebotcazou@adacore.com>
4275 * tree-sra.c (ipa_sra_check_caller_data): New type.
4276 (has_caller_p): Removed.
4277 (ipa_sra_check_caller): New function.
4278 (ipa_sra_preliminary_function_checks): Use it.
4280 2015-03-03 Martin Liska <mliska@suse.cz>
4282 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
4283 instead of if branch.
4285 2015-03-03 Martin Liska <mliska@suse.cz>
4288 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
4290 2015-03-23 Jeff Law <law@redhat.com>
4292 PR tree-optimization/65241
4293 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
4294 hash table if INSERT is true.
4296 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
4299 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
4301 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
4304 * config/avr/avr.c (context.h, tree-pass.h): Include them.
4305 (avr_pass_data_recompute_notes): New static variable.
4306 (avr_pass_recompute_notes): New class.
4307 (avr_register_passes): New static function.
4308 (avr_option_override): Call it.
4310 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
4312 Fix various problems with specs file generation.
4315 * config.gcc (extra_gcc_objs) [avr]: Remove.
4316 * config/avr/driver-avr.c: Remove file.
4317 * config/avr/t-avr (driver-avr.o): Remove rule.
4318 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
4319 INCLUDES to build. Depend on TM_H.
4320 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
4321 build warnings. Fix non-matching types and non-existing %-codes.
4323 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
4324 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
4325 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
4326 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
4327 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
4328 (LIBGCC_SPEC): Remove definitions.
4330 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
4332 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
4333 to create a register in testing mode.
4335 2015-03-03 Martin Liska <mliska@suse.cz>
4336 Jan Hubicka <hubicka@ucw.cz>
4339 * cgraph.c (cgraph_node::has_thunk_p): New function.
4340 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
4341 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
4342 (sem_function::merge): Assert is changed.
4344 2015-03-03 Martin Liska <mliska@suse.cz>
4345 Martin Jambor <mjambor@suse.cz>
4348 * ipa-icf.c (sem_item_optimizer::execute): Change function
4349 return value to boolean.
4350 (sem_item_optimizer::merge_classes): Likewise.
4351 (ipa_icf_driver): Return TODO_remove_functions in case there's
4352 a merge operation processed.
4353 * ipa-icf.h: Change function return value to boolean.
4355 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4358 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
4359 processor type for 64-bit little endian PowerPC.
4361 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4362 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
4363 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
4364 printing built-in mask so it does not pass NULL pointers.
4366 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
4369 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
4372 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
4373 !ISA_HAS_FP_CONDMOVE.
4375 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
4377 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
4380 2015-03-02 Ulrich Drepper <drepper@gmail.com>
4382 * doc/invoke.texi (Options for Code Generation Conventions):
4383 Fix URL of DSO paper.
4385 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
4388 * ipa-inline.c (check_callers): Looks for recursion.
4389 (inline_to_all_callers): Give up on uninlinable or recursive edges.
4390 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
4391 summary of inline clones.
4392 (do_estimate_growth_1): Fix recursion check.
4394 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
4397 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
4400 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
4401 Aldy Hernandez <aldyh@redhat.com>
4404 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
4405 when checking TYPE_BINFO.
4407 2015-03-02 Richard Biener <rguenther@suse.de>
4410 * ipa-icf-gimple.c: Include builtins.h.
4411 (func_checker::compare_memory_operand): Compare base alignment.
4413 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
4416 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
4417 are never passed by reference.
4419 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
4422 * tree-chkp.c (chkp_check_lower): Don't check against
4423 zero bounds for already instrumented functions.
4424 (chkp_check_upper): Likewise.
4425 (chkp_fini): Clean pass local data to avoid wrong reusage.
4427 2015-02-28 Martin Liska <mliska@suse.cz>
4428 Jan Hubicka <hubicka@ucw.cz>
4430 * ipa-icf.c (sem_variable::equals): Improve debug output;
4431 get variable constructor.
4432 (sem_variable::parse): Do not filter out too early; give up on
4433 volatile and register vars.
4434 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
4436 * ipa-icf.h (sem_variable::init): Do not set ctor.
4437 (sem_variable::ctor): Remove.
4439 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
4442 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
4444 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4446 * ipa-icf.c: Include stor-layout.h
4447 (sem_function::compare_cgraph_references): Rename to ...
4448 (sem_item::compare_cgraph_references): ... this one.
4449 (sem_variable::equals_wpa): New function
4450 (sem_variable::equals): Do not check stuff already verified by
4452 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
4453 * ipa-icf.h (sem_item): Add compare_cgraph_references.
4454 (sem_function): Remove compare_cgraph_references.
4455 (sem_variable): Turns equals_wpa into non-inline.
4457 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4459 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
4460 (sem_item::add_expr): New function.
4461 (sem_function::hash_stmt): Handle operands of most statements.
4462 (sem_variable::get_hash): Hash the actual constructor.
4463 * ipa-icf.h (sem_item): Add add_expr.
4464 (sem_function): Update prototype of hash_stmt
4466 2015-02-28 Martin Liska <mliska@suse.cz>
4467 Jan Hubicka <hubicka@ucw.cz>
4470 * ipa-icf-gimple.c (func_checker::compare_function_decl):
4472 (func_checker::compare_variable_decl): Skip symtab vars.
4473 (func_checker::compare_cst_or_decl): Update.
4474 * ipa-icf.c (sem_function::parse): Do not consider aliases.
4475 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
4476 use correct symtab predicates.
4477 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
4478 (sem_variable::parse): Update comment.
4479 (sem_item_optimizer::build_graph): Consider ultimate aliases
4482 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4484 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
4487 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4489 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
4490 (sem_variable::merge) Likewise.
4492 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4494 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
4495 target; also match flag_ipa_devirt.
4497 2015-03-01 Martin Liska <mliska@suse.cz>
4498 Jan Hubicka <hubicka@ucw.cz>
4500 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
4501 Validate variable alignment.
4502 * ipa-icf.c (sem_function::equals_private): Be more precise
4503 about non-common function attributes.
4504 (sem_variable::equals): Likewise.
4506 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4509 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
4510 across COMDAT group boundary.
4512 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4515 * ipa-icf.c (clear_decl_rtl): New function.
4516 (sem_function::merge): Clear RTL before forming alias.
4517 (sem_variable::merge): Clear RTL before forming alias.
4519 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4522 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
4524 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
4526 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
4529 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4531 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
4532 a typo in the description.
4534 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4537 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4538 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4539 * lra-constraints.c: Include "params.h".
4540 (EBB_PROBABILITY_CUTOFF): Use
4541 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
4542 (lra_inheritance): Use '<' instead of '<=' for
4543 EBB_PROBABILITY_CUTOFF.
4544 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
4547 2015-02-27 Martin Liska <mliska@suse.cz>
4549 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
4550 vector length condition.
4552 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
4554 * doc/extend.texi (x86 transactional memory intrinsics):
4555 Reorganize discussion of _xbegin. Clarify that the return
4556 value is a bit mask. Expand example and move to end of section.
4558 2015-02-26 Jakub Jelinek <jakub@redhat.com>
4559 Aldy Hernandez <aldyh@redhat.com>
4561 PR rtl-optimization/65220
4562 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
4564 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4567 * lra-remat.c (update_scratch_ops): New.
4568 (do_remat): Call it.
4569 * lra.c (lra_register_new_scratch_op): New. Take code from ...
4570 (remove_scratches): ... here.
4571 * lra-int.h (lra_register_new_scratch_op): New prototype.
4573 2015-02-27 Marek Polacek <polacek@redhat.com>
4576 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
4577 -Wformat-signedness anymore.
4579 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4581 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
4583 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
4585 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4587 * config/s390/s390.c (enum s390_builtin):
4588 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
4589 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
4590 (s390_init_builtins): Generate new builtin functions.
4591 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
4592 (s390_sfpc, s390_efpc): New pattern definitions.
4594 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4596 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
4597 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
4598 (s390_builtin_decls): New array.
4599 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
4600 (s390_builtin_decl): New function.
4601 (TARGET_BUILTIN_DECL): Define macro.
4603 2015-02-27 Richard Biener <rguenther@suse.de>
4606 * builtins.c (get_object_alignment_2): Make sure to re-apply
4607 the ANDed mask after recursing to its operand gets us a new
4608 misalignment bit position.
4610 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
4611 Martin Liska <mliska@suse.cz>
4614 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
4615 Use address_matters_p.
4616 (redirect_all_callers, set_addressable): New functions.
4617 (sem_function::merge): Reorganize and fix merging issues.
4618 (sem_variable::merge): Likewise.
4619 (sem_variable::compare_sections): Remove.
4620 * common.opt (fmerge-all-constants, fmerge-constants): Remove
4622 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
4624 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
4626 (address_matters_1): New function.
4627 (symtab_node::address_matters_p): New function.
4628 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
4629 check for merged flag.
4630 * cgraph.h (address_matters_p): Declare.
4631 (symtab_node::address_taken_from_non_vtable_p): Remove.
4632 (symtab_node::address_can_be_compared_p): New method.
4633 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
4634 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
4636 (comdat_can_be_unshared_p_1) Use address_matters_p.
4637 (update_vtable_references): Fix formating.
4638 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
4639 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
4640 * cgraphclones.c: Preserve merged and icf_merged flags.
4642 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
4644 * doc/extend.texi (Function Attributes): Fix spelling and typos.
4645 (Label Attributes): Likewise.
4646 (Cilk Plus Builtins): Likewise.
4647 (ARC SIMD Built-in Functions): Likewise.
4648 (ARM C Language Extensions (ACLE)): Likewise.
4649 (PowerPC Built-in Functions): Likewise.
4650 (PowerPC Hardware Transactional Memory Built-in Functions):
4653 2015-02-26 Jakub Jelinek <jakub@redhat.com>
4655 PR tree-optimization/65216
4656 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
4657 new stmt and new SSA_NAME for lhs whenever the arguments have
4658 changed and weren't just swapped. Fix comment typo.
4660 PR tree-optimization/65215
4661 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
4662 for PDP endian targets.
4663 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
4664 Fix up formatting issues.
4665 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
4666 size is smaller than the original, adjust MEM_REF offset by the
4667 difference of sizes. Use is_gimple_mem_ref_addr instead of
4668 is_gimple_min_invariant test to avoid adding address temporaries.
4670 2015-02-26 Martin Liska <mliska@suse.cz>
4671 Jan Hubicka <hubicka@ucw.cz>
4674 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
4675 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
4676 (sem_item_optimizer::process_cong_reduction): Include division by
4677 sensitive references.
4678 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
4679 * ipa-ref.c (ipa_ref::address_matters_p): New function.
4680 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
4682 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
4685 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
4687 * config/avr/avr.c: Same.
4688 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
4689 Refuse any constant address not in 0..0xbf.
4690 * config/avr/avr.md (*mov<mode>, *movsf): Remove
4691 tiny_valid_direct_memory_access_range from insn conditions.
4692 (mov<mode>): Don't special-case expansion of avrtiny addresses.
4694 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
4697 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
4698 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
4699 * config/sh/predicates.md (const_logical_operand): New predicate.
4700 * config/sh/sh.md: Add new peephole2 patterns.
4702 2015-02-26 Marek Polacek <polacek@redhat.com>
4705 * ipa-inline.c (early_inliner): Recompute inline parameters.
4707 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4710 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
4711 instructions with TImode operands are included in the analysis.
4713 2015-02-26 Sebastian Pop <s.pop@samsung.com>
4715 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
4716 of an EDGE_FSM_THREAD.
4718 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4720 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
4722 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
4725 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
4727 2015-02-26 Sebastian Pop <s.pop@samsung.com>
4729 PR tree-optimization/65048
4730 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
4731 (thread_through_all_blocks): Call valid_jump_thread_path.
4732 Remove invalid FSM jump-thread paths.
4734 2015-02-26 Jakub Jelinek <jakub@redhat.com>
4736 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
4737 (ipa_write_optimization_summaries): Likewise.
4738 * tree-streamer.h: Include data-streamer.h.
4739 (streamer_mode_table): Declare extern variable.
4740 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
4741 * lto-streamer-out.c (lto_output_init_mode_table,
4742 lto_write_mode_table): New functions.
4743 (produce_asm_for_decls): Call lto_write_mode_table when streaming
4745 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
4746 (lto_create_simple_input_block): Add mode_table argument to the
4747 lto_input_block constructors.
4748 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
4750 * data-streamer-in.c (string_for_index): Likewise.
4751 * ipa-inline-analysis.c (inline_read_section): Likewise.
4752 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
4753 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
4754 * lto-streamer-in.c (lto_read_body_or_constructor,
4755 lto_input_toplevel_asms): Likewise.
4756 (lto_input_mode_table): New function.
4757 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
4758 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
4759 Use bp_pack_machine_mode.
4760 * real.h (struct real_format): Add name field.
4761 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
4762 (class lto_input_block): Add mode_table member.
4763 (lto_input_block::lto_input_block): Add mode_table_ argument,
4764 initialize mode_table.
4765 (struct lto_file_decl_data): Add mode_table field.
4766 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
4767 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
4768 unpack_ts_decl_common_value_fields,
4769 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
4770 * tree-streamer.c (streamer_mode_table): New variable.
4771 * real.c (ieee_single_format, mips_single_format,
4772 motorola_single_format, spu_single_format, ieee_double_format,
4773 mips_double_format, motorola_double_format,
4774 ieee_extended_motorola_format, ieee_extended_intel_96_format,
4775 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4776 ibm_extended_format, mips_extended_format, ieee_quad_format,
4777 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4778 decimal_single_format, decimal_double_format, decimal_quad_format,
4779 ieee_half_format, arm_half_format, real_internal_format): Add name
4781 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4783 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
4786 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
4787 reordering for selective scheduling.
4789 2015-02-26 Terry Guo <terry.guo@arm.com>
4791 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
4792 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
4793 (arm_arch_no_volatile_ce): Declare new global variable.
4794 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
4795 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
4796 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
4797 (TARGET_NO_VOLATILE_CE): New macro.
4798 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
4799 volatile memory access in IT block
4801 2015-02-25 Kai Tietz <ktietz@redhat.com>
4803 PR tree-optimization/61917
4804 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
4805 that reduc_def_stmt is null.
4807 2015-02-25 Martin Liska <mliska@suse.cz>
4809 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
4810 hard register variables.
4812 2015-02-25 Kai Tietz <ktietz@redhat.com>
4815 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
4816 (symtab::noninterposable_alias): Likewise.
4818 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
4821 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
4823 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
4825 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
4828 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
4829 as split condition; force split via '#' in output pattern.
4831 2015-02-25 Richard Biener <rguenther@suse.de>
4832 Kai Tietz <ktietz@redhat.com>
4834 PR tree-optimization/61917
4835 * tree-vect-loop.c (vectorizable_reduction): Allow
4836 vect_internal_def without reduction to exit graceful.
4838 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
4841 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
4842 only with NONDEBUG_INSN_P.
4844 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
4846 Use variadic macros with avr-log.c.
4848 * config/avr/avr-protos.h (avr_vdump): New prototype.
4849 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
4850 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
4851 * config/avr/avr-log.c: Adjust comments.
4852 (avr_vdump): New function.
4853 (avr_vadump): Pass caller as 2nd argument instead of format string.
4854 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
4855 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
4857 2015-02-25 Jakub Jelinek <jakub@redhat.com>
4860 * target.def (target_option_stream_in): New target hook.
4861 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
4862 targetm.target_option.post_stream_in if non-NULL.
4863 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
4864 * doc/tm.texi: Updated.
4865 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
4867 (TARGET_OPTION_POST_STREAM_IN): Redefine.
4869 2015-02-24 Jeff Law <law@redhat.com>
4872 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
4873 of operand 0 and operand 2.
4874 (zero_cost_loop_end, loop_end): Similarly.
4876 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
4878 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
4881 2015-02-24 DJ Delorie <dj@redhat.com>
4883 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
4884 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
4885 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
4886 instead of hardcoding SImode.
4888 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
4890 * omp-low.c (create_omp_child_function): Tag entrypoint
4891 functions with a special attribute.
4893 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4896 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
4898 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
4900 PR rtl-optimization/65123
4901 * lra-remat.c (operand_to_remat): Check hard regs in insn
4904 2015-02-24 Nick Clifton <nickc@redhat.com>
4906 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
4909 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4912 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
4913 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
4914 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
4915 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
4916 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
4917 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
4918 (BUILT_IN_GOACC_PARALLEL): Specify as
4919 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
4920 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
4922 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4923 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4924 Remove function types.
4925 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
4926 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4927 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4930 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
4932 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
4934 2015-02-24 Jakub Jelinek <jakub@redhat.com>
4936 PR tree-optimization/65170
4937 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
4938 if val[1] < 0, clear also val[2] and return 3.
4940 2015-02-24 Alan Modra <amodra@gmail.com>
4943 * config/rs6000/rs6000.c (get_memref_parts): Only return true
4944 when *base is a reg. Handle nested plus addresses. Simplify
4947 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
4949 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
4950 use natural alignment when optimizing for size.
4952 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
4955 * config/sh/sh.md (movsicc_true+3): Remove peephole.
4956 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
4957 * config/sh/sh.c (replace_n_hard_rtx): Remove.
4959 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
4962 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
4963 too big for a wide_int. Implement missing wrapping operation.
4965 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
4968 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
4969 instead of const_int 4294901760.
4971 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
4973 * config/avr/t-avr: Fix typo in comment.
4975 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
4977 * doc/rtl.texi (fma): Clarify documentation.
4979 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
4982 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
4983 over input_location.
4985 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4987 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
4988 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
4989 restrict alignments to absolute_biggest_alignment.
4990 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
4992 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
4993 * doc/tm.texi: Regenerate.
4994 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
4996 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
4999 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
5001 2015-02-20 Richard Biener <rguenther@suse.de>
5003 PR tree-optimization/65136
5004 * tree-ssa-propagate.c: Include cfgloop.h.
5005 (replace_phi_args_in): Avoid replacing loop latch edge PHI
5006 arguments with constants.
5008 2015-02-20 Jakub Jelinek <jakub@redhat.com>
5009 Martin Liska <mliska@suse.cz>
5012 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
5013 don't try to create_thunk if stdarg_p. If
5014 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
5015 redirect_callers if possible.
5016 (sem_item_optimizer::execute): Call unregister_hooks here...
5017 (ipa_icf_driver): ... instead of here.
5019 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5021 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
5022 Mark operand 0 as earlyclobber in 2nd alternative.
5023 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
5024 Write negated shift amount into QI lowpart operand 0 and use it
5026 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5028 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
5030 * cgraph.h (clone_function_name_1): Declare.
5031 * cgraphclones.c (clone_function_name_1): New function.
5032 (clone_function_name): Use it.
5033 * lto-partition.c: Include "stringpool.h".
5034 (must_not_rename, maybe_rewrite_identifier)
5035 (validize_symbol_for_target): New static functions.
5036 (privatize_symbol_name): Use must_not_rename.
5037 (promote_symbol): Call validize_symbol_for_target.
5038 (lto_promote_cross_file_statics): Likewise.
5039 (lto_promote_statics_nonwpa): Likewise.
5041 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
5044 * config/avr/avr.md (pushhi_insn): New insn.
5045 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
5047 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
5048 Jakub Jelinek <jakub@redhat.com>
5050 * tree-streamer.c (preload_common_nodes): Don't preload
5051 TI_VA_LIST* for offloading.
5052 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
5055 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
5057 * config/pa/pa.c (pa_emit_move_sequence): Always force
5058 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
5061 * config/pa/pa.c (pa_reloc_rw_mask): New function.
5062 (TARGET_ASM_RELOC_RW_MASK): Define.
5063 (pa_cannot_force_const_mem): Revert previous change.
5065 2015-02-19 Martin Jambor <mjmabor@suse.cz>
5066 Jan Hubicka <hubicka@ucw.cz>
5069 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
5070 across jump functions.
5072 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
5074 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
5076 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
5078 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
5080 2015-02-19 Richard Henderson <rth@redhat.com>
5083 * varasm.c (default_binds_local_p_2): Don't test node->definition;
5084 test DECL_EXTERNAL independent of symtab_node.
5086 2015-02-19 Jakub Jelinek <jakub@redhat.com>
5089 * varpool.c (varpool_node::get_constructor): Return early
5090 if this->lto_file_data is NULL.
5092 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5094 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
5095 (rank_for_schedule_debug): Update.
5096 (ready_sort): Make static. Move sorting logic to ...
5097 (ready_sort_debug, ready_sort_real): New static functions.
5098 (schedule_block): Sort both debug insns and real insns in preparation
5099 for ready list trimming. Improve debug output.
5100 * sched-int.h (ready_sort): Remove global declaration.
5102 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
5104 * ipa-icf.c (sem_function::equals_private): Adjust.
5105 (sem_function::bb_dict_test): Take a vec<int> * instead of
5107 * ipa-icf.h (bb_dict_test): Likewise.
5109 2015-02-18 Jakub Jelinek <jakub@redhat.com>
5111 PR gcov-profile/64634
5112 * tree-eh.c (frob_into_branch_around): Fix up typos
5113 in function comment.
5114 (lower_catch): Put eh_seq resulting from EH lowering of
5115 the cleanup sequence after the cleanup rather than before it.
5117 2015-02-18 Tom de Vries <tom@codesourcery.com>
5119 * common.opt (fstdarg-opt): New option.
5120 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
5121 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
5122 (@item -fstdarg-opt): New item.
5124 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
5127 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
5130 2015-02-18 Jakub Jelinek <jakub@redhat.com>
5132 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
5134 (ALL_HOST_OBJS): Add mkoffload.o.
5135 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
5137 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
5139 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
5140 (compare_virtual_tables): Be smarter about skipping typeinfos;
5141 do sane output on virtual table table mismatch.
5142 (warn_odr): Be ready for forward declarations of enums;
5143 output sane info on base mismatch and virtual table mismatch.
5144 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
5145 when only one type is polymorphic.
5146 (get_odr_type): Fix hashtable corruption.
5147 (dump_odr_type): Dump mangled names.
5149 2015-02-18 Richard Biener <rguenther@suse.de>
5151 PR tree-optimization/65063
5152 * tree-predcom.c (determine_unroll_factor): Return 1 if we
5153 have replaced looparound PHIs.
5155 2015-02-18 Martin Liska <mliska@suse.cz>
5157 * lto-streamer.c (lto_streamer_init): Encapsulate
5158 streamer_check_handled_ts_structures with checking macro.
5160 2015-02-18 Jakub Jelinek <jakub@redhat.com>
5163 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
5164 section if !implicit_section.
5165 (cgraph_node::create_version_clone_with_body): Likewise.
5166 * trans-mem.c (ipa_tm_create_version): Likewise.
5168 2015-02-18 Richard Biener <rguenther@suse.de>
5170 PR tree-optimization/62217
5171 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
5174 2015-02-18 Marek Polacek <polacek@redhat.com>
5177 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
5178 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
5179 is in range [-16K, -1]. Don't issue run-time error if
5180 (ptr > ptr + offset).
5182 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
5184 * doc/install.texi (nvptx-*-none): New section.
5185 * doc/invoke.texi (Nvidia PTX Options): Likewise.
5186 * config/nvptx/nvptx.opt: Update.
5188 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
5189 (access_check): New functions, copied from
5190 config/i386/intelmic-mkoffload.c.
5191 (main): For non-installed testing, look in all COMPILER_PATHs for
5194 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
5196 2015-02-18 Andrew Pinski <apinski@cavium.com>
5197 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5199 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
5200 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
5202 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
5204 * ipa-visibility.c (function_and_variable_visibility): Only
5205 check locality if node is not already local.
5206 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5207 call_for_symbol_and_aliases instead of
5208 call_for_symbol_thunks_and_aliases.
5209 (ipa_inline): Likewise.
5210 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5212 * ipa.c (symbol_table::remove_unreachable_nodes): Use
5213 call_for_symbol_and_aliases.
5214 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5215 (ipa_propagate_frequency_1): Use it; use opt_for_fn
5216 (ipa_propagate_frequency): Update.
5217 (ipa_profile): Add opt_for_fn gueards.
5219 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
5221 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
5222 * doc/invoke.texi (SH options): Document it.
5223 * config/sh/sh.c (sh_insn_length_adjustment): Check
5224 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
5226 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
5228 * common.opt (fipa-cp-alignment): New.
5229 * ipa-cp.c (ipcp_store_alignment_results): Check
5230 flag_ipa_cp_alignment.
5231 * opts.c (default_options_table): Enable -fipa-cp-alignment for
5233 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
5234 * doc/invoke.texi: Document -fipa-cp-alignment.
5236 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
5239 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
5240 to nil. Adjust comments.
5242 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
5244 * ipa-visibility.c (function_and_variable_visibility): Only
5245 check locality if node is not already local.
5246 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5247 call_for_symbol_and_aliases instead of
5248 call_for_symbol_thunks_and_aliases.
5249 (ipa_inline): Likewise.
5250 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5252 * ipa.c (symbol_table::remove_unreachable_nodes): Use
5253 call_for_symbol_and_aliases.
5254 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5255 (ipa_propagate_frequency_1): Use it; use opt_for_fn
5256 (ipa_propagate_frequency): Update.
5257 (ipa_profile): Add opt_for_fn guards.
5259 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5261 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
5262 skipping of "strange" tokens.
5264 2015-02-17 Jeff Law <law@redhat.com>
5266 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
5269 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
5271 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
5272 as forcing a HARD_DEP between instructions, thereby
5273 disallowing rewriting to break dependencies.
5275 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
5277 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
5278 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
5279 variables in boundary that have no inlitalizer encoded and are
5281 * varasm.c (default_binds_local_p_2): External definitions do not
5282 count as definitions here.
5284 2015-02-16 Jeff Law <law@redhat.com>
5286 PR tree-optimization/64823
5287 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
5289 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5290 threading through blocks with PHIs, but no statements.
5291 (thread_through_normal_block): Distinguish between blocks where
5292 we did not process all the statements and blocks with no statements.
5294 2015-02-16 Jakub Jelinek <jakub@redhat.com>
5295 James Greenhalgh <james.greenhalgh@arm.com>
5298 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
5299 section if not linkonce. Fix up formatting.
5300 (cgraph_node::create_version_clone_with_body): Copy section.
5301 * trans-mem.c (ipa_tm_create_version): Likewise.
5303 2015-02-16 Richard Biener <rguenther@suse.de>
5305 PR tree-optimization/65077
5306 * tree-ssa-structalias.c (get_constraint_for_1): Handle
5307 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
5308 (find_func_aliases): Allow float values to carry pointers again.
5310 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5312 * doc/install.texi (Specific): Reorder targets list to put
5313 aarch64 in alphabetical order. Add a link to aarch64*-*-*
5316 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5317 David Edelsohn <dje.gcc@gmail.com>
5320 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
5321 mapping class to external variable or function reference.
5322 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
5325 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
5328 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
5329 ASM_WEAKEN_DECL if defined.
5331 2015-02-16 Richard Biener <rguenther@suse.de>
5334 * varasm.c (default_file_start): For LTO produced units
5335 emit <artificial> as file directive.
5337 2015-02-16 Richard Biener <rguenther@suse.de>
5339 PR tree-optimization/63593
5340 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
5341 stmts and releasing SSA names until...
5342 (execute_pred_commoning): ... after processing all chains.
5344 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
5347 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
5350 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
5352 * doc/bugreport.texi: Adjust section titles throughout the file
5353 to use "Title Case".
5354 * doc/extend.texi: Likewise.
5355 * doc/gcov.texi: Likewise.
5356 * doc/implement-c.texi: Likewise.
5357 * doc/implement-cxx.texi: Likewise.
5358 * doc/invoke.texi: Likewise.
5359 * doc/objc.texi: Likewise.
5360 * doc/standards.texi: Likewise.
5361 * doc/trouble.texi: Likewise.
5363 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
5365 * cgraph.h (symtab_node::has_aliases_p): Simplify.
5366 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
5367 * tree.c (lookup_binfo_at_offset): Make static.
5368 (get_binfo_at_offset): Do not shadow offset; add explanatory
5371 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
5373 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
5374 for all floading point loads and stores except those using a register
5376 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
5379 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
5381 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
5382 (do_estimate_growth_1): Record if any uninlinable edge was seen.
5383 (estimate_growth): Handle uninlinable edges correctly.
5384 (check_callers): New.
5385 (growth_likely_positive): Handle aliases correctly.
5387 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
5389 * ipa-chkp.c: Use iterate_direct_aliases.
5390 * symtab.c (resolution_used_from_other_file_p): Move inline.
5391 (symtab_node::create_reference): Fix formating.
5392 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5393 (symtab_node::iterate_reference): Move inline.
5394 (symtab_node::iterate_referring): Move inline.
5395 (symtab_node::iterate_direct_aliases): Move inline.
5396 (symtab_node::used_from_object_file_p_worker): Inline into ...
5397 (symtab_node::used_from_object_file_p): ... this one; move inline.
5398 (symtab_node::call_for_symbol_and_aliases): Move inline;
5399 use iterate_direct_aliases.
5400 (symtab_node::call_for_symbol_and_aliases_1): New method.
5401 (cgraph_node::call_for_symbol_and_aliases): Move inline;
5402 use iterate_direct_aliases.
5403 (cgraph_node::call_for_symbol_and_aliases_1): New method.
5404 (varpool_node::call_for_node_and_aliases): Rename to ...
5405 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
5406 use iterate_direct_aliases.
5407 (varpool_node::call_for_symbol_and_aliases_1): New method.
5408 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
5409 (ipa_discover_readonly_nonaddressable_var): Update.
5410 * ipa-devirt.c: Fix formating.
5411 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
5413 (cgraph_node::call_for_symbol_and_aliases): Move inline.
5414 (cgraph_node::call_for_symbol_and_aliases_1): New function..
5415 * cgraph.h (used_from_object_file_p_worker): Remove.
5416 (resolution_used_from_other_file_p): Move inline.
5417 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5418 (symtab_node::iterate_reference): Move inline.
5419 (symtab_node::iterate_referring): Move inline.
5420 (symtab_node::iterate_direct_aliases): Move inline.
5421 (symtab_node::used_from_object_file_p_worker): Inline into ...
5422 (symtab_node::used_from_object_file_p): Move inline.
5423 * tree-emutls.c (ipa_lower_emutls): Update.
5424 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
5425 (varpool_node::call_for_node_and_aliases): Remove.
5427 2015-02-14 Jakub Jelinek <jakub@redhat.com>
5429 PR tree-optimization/62209
5430 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
5431 op == range->exp, insert seq and gimplified code after labels
5432 instead of after the phi.
5434 2015-02-13 Jeff Law <law@redhat.com>
5437 Revert my change for tree-optimization/64823.
5439 2015-02-13 Jakub Jelinek <jakub@redhat.com>
5441 PR tree-optimization/65053
5442 * tree-ssa-phiopt.c (value_replacement): When moving assign before
5443 cond, either reset VR on lhs or set it to phi result VR.
5445 2015-02-13 Jeff Law <law@redhat.com>
5447 PR tree-optimization/64823
5448 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
5449 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5450 threading through blocks with PHIs, but no statements.
5451 (thread_through_normal_block): Distinguish between blocks where
5452 we did not process all the statements and blocks with no statements.
5454 PR rtl-optimization/47477
5455 * match.pd (convert (plus/minus (convert @0) (convert @1): New
5456 simplifier to narrow arithmetic.
5458 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
5461 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
5462 polymorphic call info when type is not known to be preserved.
5464 2015-02-13 Maritn Jambor <mjambor@suse.cz>
5467 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
5468 (inline_call): Use it.
5470 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
5472 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
5473 GOMP_DEVICE_NVIDIA_PTX.
5475 2015-02-13 Jakub Jelinek <jakub@redhat.com>
5478 * stmt.c (emit_case_nodes): Use void_type_node instead of
5479 NULL_TREE as LABEL_DECL type.
5481 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
5483 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
5485 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
5486 symbolic references to data to be forced to constant memory on the
5489 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
5491 PR tree-optimization/65002
5492 * tree-cfg.c (pass_data_fixup_cfg): Don't update
5494 * tree-sra.c (some_callers_have_no_vuse_p): New.
5495 (ipa_early_sra): Reject functions whose callers
5496 assume function is read only.
5498 2015-02-13 Richard Biener <rguenther@suse.de>
5501 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
5502 for LTO produced CUs.
5504 2015-02-13 Bin Cheng <bin.cheng@arm.com>
5506 PR tree-optimization/64705
5507 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
5508 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
5509 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
5510 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
5511 expand_simple_operations.
5513 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
5514 Richard Henderson <rth@redhat.com>
5517 * cgraphunit.c (cgraph_node::finalize_function): Set definition
5518 before notice_global_symbol.
5519 (varpool_node::finalize_decl): Likewise.
5520 * varasm.c (default_binds_local_p_2): Rename from
5521 default_binds_local_p_1, add weak_dominate argument. Use direct
5522 returns instead of assigning to local variable. Unify varpool and
5523 cgraph paths via symtab_node. Reject undef weak variables before
5524 testing visibility. Reorder tests for simplicity.
5525 (default_binds_local_p): Use default_binds_local_p_2.
5526 (default_binds_local_p_1): Likewise.
5527 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
5529 (default_elf_asm_output_external): Emit visibility when specified.
5531 2015-02-13 Alan Modra <amodra@gmail.com>
5533 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
5534 code setting up r11 for out-of-line fp restore.
5536 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
5538 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
5539 (muser-mode): Likewise.
5541 2015-02-13 Alan Modra <amodra@gmail.com>
5543 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
5544 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
5546 2015-02-12 David Howells <dhowells@redhat.com>
5548 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
5550 * tree-ssa-uninit.c (dump_predicates): Likewise.
5551 * opts.c (print_filtered_help): Likewise.
5553 2015-02-12 Jakub Jelinek <jakub@redhat.com>
5555 * dwarf2out.c (output_die): Use "%s", name instead of name to
5556 avoid -Wformat-security warning.
5558 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
5559 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5560 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
5561 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5563 2015-02-12 Jason Merrill <jason@redhat.com>
5565 * common.opt (-flifetime-dse): New.
5567 2015-02-12 Jakub Jelinek <jakub@redhat.com>
5570 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
5572 PR tree-optimization/65014
5573 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
5574 use original second operand of arg0 or arg1 instead of
5575 that adjusted by STRIP_NOPS.
5577 2015-02-11 Jeff Law <law@redhat.com>
5580 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
5581 that needs to be queued, just queue it for a single cycle.
5583 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
5585 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
5586 bodies of thunks; comment on why.
5587 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
5590 2015-02-11 Richard Henderson <rth@redhat.com>
5593 * tree-eh.c (mark_reachable_handlers): Mark source and destination
5594 regions of __builtin_eh_copy_values.
5596 2015-02-11 Jakub Jelinek <jakub@redhat.com>
5599 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
5600 ultimate alias is MEM with SYMBOL_REF satisfying
5601 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
5602 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
5604 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
5606 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
5607 "diagnostic-core.h".
5608 (main): Initialize progname, and call diagnostic_initialize.
5610 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
5611 instead of __OPENMP_TARGET__.
5613 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
5614 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
5617 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
5619 * doc/sourcebuild.texi (pie_enabled): Document.
5621 2015-02-11 Martin Liska <mliska@suse.cz>
5624 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
5625 a return value for call to a function that is noreturn.
5627 2015-02-11 Richard Biener <rguenther@suse.de>
5630 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
5633 2015-02-11 Andrew Pinski <apinski@cavium.com>
5636 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5637 Change the first argument type to size_type_node and add another
5639 (aarch64_simd_expand_builtin): Handle the new argument to
5640 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
5641 print an out when the first two arguments are not
5642 nonzero integer constants.
5643 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
5644 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
5646 2015-02-11 Jakub Jelinek <jakub@redhat.com>
5649 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
5650 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
5651 (ix86_set_current_function): Rewritten.
5652 (ix86_add_new_builtins): Temporarily clear current_target_pragma
5653 when creating builtin fndecls.
5655 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
5658 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
5660 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
5661 have no comdat group.
5662 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
5663 (lto_output_varpool_node): Always output alias info.
5664 (output_refs): Output refs of boundary aliases, too.
5665 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
5666 (output_symtab): Output call eges in thunks in boundary.
5667 (get_alias_symbol): Remove.
5668 (input_node, input_varpool_node): Do not special case weakrefs.
5669 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
5670 alias and thunks targets in the boundary; do not take removed symbols
5671 from their comdat groups.
5672 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
5673 (cgraph_node::global_info): Remove.
5674 (cgraph_node::rtl_info): Look through aliases and thunks.
5675 * cgrpah.h (global_info): Remove.
5676 (non_local_p): Remove.
5678 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5679 Sandra Loosemore <sandra@codesourcery.com>
5681 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
5682 to inline asm. List dialects in proper order.
5684 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5685 Sandra Loosemore <sandra@codesourcery.com>
5687 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
5689 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5691 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
5692 modified) reference to Solaris.
5694 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
5696 * doc/extend.texi (Extended Asm): Fix typos.
5698 2015-02-10 Jakub Jelinek <jakub@redhat.com>
5701 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
5703 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
5706 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5707 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5708 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
5709 * config/sh/constraints.md (Ara, Add): New constraints.
5710 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
5712 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
5713 atomic_mem_operand_0. Don't use force_reg on the memory address.
5714 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
5715 Sra constraint. Convert to insn_and_split. Add workaround for
5717 (atomic_compare_and_swap<mode>_hard): Copy to
5718 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
5719 Use atomic_mem_operand_0 predicate.
5720 (atomic_compare_and_swap<mode>_soft_gusa,
5721 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
5723 (atomic_compare_and_swap<mode>_soft_tcb,
5724 atomic_compare_and_swap<mode>_soft_imask,
5725 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
5726 atomic_mem_operand_0 predicate and SraSdd constraints.
5727 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
5729 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
5730 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
5731 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
5732 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
5733 force_reg on the memory address.
5734 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
5735 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
5736 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
5737 atomic_mem_operand_1 predicate and Sra constraint.
5738 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
5739 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
5740 Use atomic_mem_operand_1 predicate.
5741 (atomic_<fetchop_name><mode>_hard): Copy to
5742 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
5743 Use atomic_mem_operand_1 predicate.
5744 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
5745 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
5746 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
5747 insn_and_split. Use atomic_mem_operand_1 predicate.
5748 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
5749 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
5750 Use atomic_mem_operand_1 predicate.
5751 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
5752 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
5753 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
5754 in generated insn with original mem operand before emitting the insn.
5755 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
5756 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
5757 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
5758 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
5759 Use atomic_mem_operand_1 predicate and AraAdd constraints.
5760 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
5761 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
5762 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
5763 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
5764 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
5765 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
5766 atomic_not_fetch<mode>_soft_tcb,
5767 atomic_<fetchop_name>_fetch<mode>_soft_imask,
5768 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
5769 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
5770 Use atomic_mem_operand_1 predicate and SraSdd constraints.
5772 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
5774 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
5775 and 3 earlyclobber operands.
5777 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
5779 * common.opt (fstack-reuse): Mark as optimization.
5781 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
5784 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
5786 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
5788 PR tree-optimization/64326
5789 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
5791 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
5793 PR gcov-profile/61889
5794 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
5796 2015-02-10 Richard Biener <rguenther@suse.de>
5798 PR tree-optimization/64995
5799 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
5800 value we use is final.
5801 (visit_reference_op_store): Always valueize op.
5802 (visit_use): Properly valueize vuses.
5804 2015-02-10 Richard Biener <rguenther@suse.de>
5806 PR tree-optimization/64909
5807 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
5808 pass a scalar-stmt count estimate to the cost model.
5809 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
5811 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
5813 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
5814 enabled by default together with var-tracking.
5816 2015-02-10 Nick Clifton <nickc@redhat.com>
5818 * config/rl78/rl78.c: Remove DIV attribute code accidentally
5819 included in previous rl78 commit.
5821 2015-02-10 Richard Biener <rguenther@suse.de>
5823 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
5824 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
5827 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
5829 PR gcov-profile/61889
5830 * config.in: regenerate.
5831 * configure.in: Likewise.
5832 * configure.ac: Check for ftw.h.
5833 * gcov-tool.c: Check for ftw.h before using nftw.
5835 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
5838 * ipa-visibility.c (update_visibility_by_resolution_info): Only
5839 assert when not in lto mode.
5841 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5843 * ira-color.c (setup_left_conflict_sizes_p): Simplify
5844 initialization/assignment of conflict_size.
5846 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
5849 * ipa-cp.c (gather_caller_stats): Skip thunks.
5850 (propagate_constants_topo): Skip aliases.
5852 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
5855 * config/sh/sh.c (sh_option_override): Don't change
5856 -freorder-blocks-and-partition to -freorder-blocks even when
5857 unwinding is enabled.
5858 (sh_can_follow_jump): Return false if the followee jump is
5859 a crossing jump when -freorder-blocks-and-partition is specified.
5860 * config/sh/sh.md (*jump_compact_crossing): New insn.
5862 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
5863 Kaz Kojima <kkojima@gcc.gnu.org>
5866 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
5867 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
5868 (sh_can_redirect_branch): Rename to ...
5869 (sh_can_follow_jump): ... this. Constify argument types.
5870 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
5871 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
5872 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
5873 * doc/tm.texi: Regenerate.
5875 2015-02-09 Jakub Jelinek <jakub@redhat.com>
5878 * builtins.c (expand_builtin): Call targetm.expand_builtin
5879 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
5881 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5884 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
5886 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5889 * ipa-icf.c (set_local): New function.
5890 (sem_function::merge): Use it.
5892 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5894 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
5895 (add_type_duplicate): Fix comparison of BINFOs.
5897 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5899 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
5900 on getting VOID pointer.
5902 2015-02-09 Jakub Jelinek <jakub@redhat.com>
5905 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
5908 2015-02-09 Richard Biener <rguenther@suse.de>
5910 * genmatch.c (replace_id): Copy expr_type.
5912 2015-02-09 Richard Biener <rguenther@suse.de>
5914 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
5915 (streamer_write_tree_bitfields): Declare.
5916 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
5917 properly unpack padding.
5918 (unpack_value_fields): Inline ...
5919 (streamer_read_tree_bitfields): ... here.
5920 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
5921 and properly add padding bits.
5922 (streamer_pack_tree_bitfields): Fold into ...
5923 (streamer_write_tree_bitfields): ... this new function,
5924 exposing the bitpack object.
5925 * lto-streamer-out.c (lto_write_tree_1): Call
5926 streamer_write_tree_bitfields.
5928 2015-02-09 Richard Biener <rguenther@suse.de>
5930 PR tree-optimization/54000
5931 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
5932 (struct ivopts_data): Add loop_loc member.
5933 (tree_ssa_iv_optimize_loop): Dump loop location.
5934 (create_new_ivs): Likewise, also dump number of IVs generated.
5936 2015-02-09 Martin Liska <mliska@suse.cz>
5938 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
5939 just if not yet registered.
5940 (ipa_icf_generate_summary): Register callgraph hooks.
5942 2015-02-08 Andrew Pinski <apinski@cavium.com>
5944 * config/aarch64/aarch64.c (gty_dummy): Delete.
5946 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5949 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
5950 (cgraph_node::local_p): Remove thunk related FIXME.
5952 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5955 * i386.c (ix86_function_regparm): Look through aliases to see if callee
5956 is local and optimized.
5957 (ix86_function_sseregparm): Likewise; also use target's SSE math
5958 settings; error out instead of silently generating wrong code
5960 (init_cumulative_args): Look through aliases.
5962 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5965 * ipa-split.c (execute_split_functions): Split if function has aliases.
5967 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5970 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
5971 aliases before trying to expand it.
5972 (cgraph_node::expand_thunk): Fix formating.
5974 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
5976 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
5977 (Using Assembly Language with C): Expand introduction.
5978 (Basic Asm): Copy-edit. Add more information about uses of
5980 (Extended Asm): Copy-edit. Document new escape syntax and
5982 (Global Reg Vars): Copy-edit.
5983 (Local Reg Vars): Likewise.
5985 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
5989 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
5990 (DBX_CONTIN_CHAR): Define.
5992 2015-02-06 Sebastian Pop <s.pop@samsung.com>
5993 Brian Rzycki <b.rzycki@samsung.com>
5995 PR tree-optimization/64878
5996 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
5997 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
5998 Stop recursion at loop phi nodes after having visited a loop phi node.
6000 2015-02-06 Jakub Jelinek <jakub@redhat.com>
6002 * toplev.c (process_options): Change flag_ipa_ra before creating
6003 optimization_{default,current}_node.
6006 * cgraphunit.c (cgraph_node::expand_thunk): If
6007 restype is not is_gimple_reg_type nor the thunk_fndecl
6008 returns aggregate_value_p, set restmp to a temporary variable
6011 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
6013 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
6015 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6018 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
6019 add a general secondary reload handler for SDmode, unless we have
6020 both read/write support for SDmode.
6022 2015-02-06 Jakub Jelinek <jakub@redhat.com>
6025 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
6026 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
6027 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
6028 1 before, push it to abstract_vec.
6029 (dwarf2out_abstract_function): Adjust caller. Don't call
6030 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
6031 DECL_ABSTRACT_P flags for all abstract_vec elts.
6033 2015-02-06 Renlin Li <renlin.li@arm.com>
6035 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
6037 * tree-ssa.c (execute_update_addresses_taken): Likewise.
6039 2015-02-06 Jeff Law <law@redhat.com>
6042 * config/h8300/h8300.c (push): New argument "in_prologue".
6043 Pass "in_prologue" along to "F".
6044 (h8300_push_pop): Corresponding changes.
6045 (h8300_expand_prologue): Likewise.
6046 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
6048 2015-02-06 Jakub Jelinek <jakub@redhat.com>
6050 PR rtl-optimization/64957
6052 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
6053 IOR rather than for AND.
6055 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
6058 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
6059 of shift-add and (add + shift) operations. Rename local variable.
6061 2015-02-05 Jeff Law <law@redhat.com>
6064 * config/h8300/constraints.md (U): Correctly dectect
6065 "eightbit_data" memory addresses.
6066 * config/h8300/h8300.c (eightbit_constant_address_p): Also
6067 handle (const (plus (symbol_ref (x)))) where x is declared
6068 as an 8-bit data memory address.
6069 * config/h8300/h8300.md (call, call_value): Correctly detect
6070 "funcvec" functions.
6073 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
6074 24 to 28 bits for the H8/300.
6076 2015-02-06 Alan Modra <amodra@gmail.com>
6079 * config/rs6000/rs6000.c (chain_already_loaded): New function.
6080 (rs6000_call_aix): Use it.
6082 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
6084 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
6087 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
6089 * config/h8300/constraints.md ("U" constraint): Use strict
6090 variant of REG_OK_FOR_BASE_P after reload has started.
6092 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
6094 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
6095 define to zero if !TARGET_NEON.
6096 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
6098 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6099 Trevor Saunders <tsaunders@mozilla.com>
6102 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
6104 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6107 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
6108 when removing varpool nodes.
6110 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6113 * varpool.c (varpool_node::remove): Fix order of variables.
6115 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6118 * ipa-inline.c (inline_small_functions): Fix ordering issue between
6119 speculation resolution and key updates.
6121 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6123 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
6124 about not letting any speculative edges unupdated.
6126 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6129 * gcov-io.c (gcov_var): Export.
6131 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6134 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
6135 edges that become speculative.
6137 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6139 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
6140 or DW_LANG_Fortran08.
6141 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
6143 (gen_compile_unit_die): Handle "GNU Fortran2003" and
6144 "GNU Fortran2008" language strings.
6145 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
6146 * langhooks.h (lang_GNU_Fortran): New prototype.
6147 * langhooks.c (lang_GNU_Fortran): New function.
6148 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
6151 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
6153 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
6154 (RTX_OK_FOR_OLO10_P): Likewise.
6156 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
6158 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
6160 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6163 * gimple.c: Include gimple-ssa.h.
6164 (maybe_remove_unused_call_args): New function.
6165 * gimple.h (maybe_remove_unused_call_args): Declare.
6166 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6167 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6168 * gimple-fold.c (gimple_fold_call): Likewise.
6170 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
6172 PR rtl-optimization/64905
6173 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
6174 pointer alignment if it isn't needed.
6176 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
6178 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
6179 cortex-a72.cortex-a53.
6180 * config/aarch64/aarch64-tune.md: Regenerate.
6181 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
6183 2015-02-04 Nick Clifton <nickc@redhat.com>
6185 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
6188 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6190 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
6191 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
6192 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
6194 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
6195 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
6196 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
6197 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
6198 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
6199 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
6200 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
6201 * tree-core.h (enum built_in_function): In between
6202 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
6203 for builtins that use DEF_BUILTIN_CHKP macro.
6205 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
6208 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
6209 operands for tcc_comparison exprs. Fix typos.
6212 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
6213 of two XORs that have an intervening AND or IOR.
6216 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
6217 simplification of XOR of AND to not allocate new rtx before
6218 committing to a simplification.
6220 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6222 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
6223 manual swaps in all peepholes.
6225 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6227 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
6228 of manual swapping implementation.
6229 (aarch64_expand_vec_perm_const_1): Likewise.
6231 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
6233 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
6234 (generic_addrcost_table): Remove NAMED_PARAM.
6235 (cortexa57_addrcost_table): Likewise.
6236 (xgene1_addrcost_table): Likewise.
6237 (generic_regmove_table): Likewise.
6238 (cortexa53_regmove_table): Likewise.
6239 (xgene1_regmove_table): Likewise.
6240 (generic_vector_table): Likewise.
6241 (cortexa57_vector_table): Likewise.
6242 (xgene1_vector_table): Likewise.
6243 (generic_tunings): Likewise.
6244 (cortexa53_tunings): Likewise.
6245 (cortexa57_tunings): Likewise.
6246 (xgene1_tunings): Likewise.
6248 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
6250 * config/arm/arm-cores.def: Add cortex-a72 and
6251 cortex-a72.cortex-a53.
6252 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
6253 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6254 * config/arm/arm-tune.md: Regenerate.
6255 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
6256 "cortex-a72.cortex-a53".
6257 * doc/invoke.texi (ARM Options/-mtune): Likewise.
6259 2015-02-04 Nick Clifton <nickc@redhat.com>
6262 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
6264 (nonimmediate_di_operand): Likewise.
6266 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
6267 prefixes of known F5 using MSP430 MCUs.
6269 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6271 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
6272 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
6273 instead of __builtin_sqrt.
6275 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
6277 * varasm.c (do_assemble_alias): Follow transparent alias
6279 (default_assemble_visibility): Follow transparent alias
6280 chain for decl name.
6282 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6285 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
6286 to compute size of referenced value in the constant case.
6288 2015-02-03 Jakub Jelinek <jakub@redhat.com>
6290 PR rtl-optimization/64756
6291 * cse.c (invalidate_dest): New function.
6292 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
6293 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
6294 invalidate and do not record it.
6296 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6299 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
6300 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
6301 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
6302 atomic_nand<mode>_soft_tcb): New insns.
6303 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
6304 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
6305 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
6306 Split into atomic_not_fetchsi_hard if operands[0] is unused.
6307 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
6308 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6309 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
6310 atomic_not<mode>_hard if operands[0] is unused.
6311 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
6312 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
6313 if operands[0] is unused.
6314 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
6315 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
6316 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
6317 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6319 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
6320 into atomic_not<mode>_soft_tcb if operands[0] is unused.
6321 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
6322 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
6323 if operands[0] is unused.
6324 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
6325 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
6326 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
6327 atomic_nand_fetchsi_hard if operands[0] is unused.
6328 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
6329 atomic_nand<mode>_hard if operands[0] is unused.
6330 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
6331 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
6332 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
6333 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6334 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
6335 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
6336 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
6337 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6338 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
6339 atomic_not<mode>_hard if operands[0] is unused.
6340 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
6341 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6343 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
6344 into atomic_not<mode>_soft_tcb if operands[0] is unused.
6345 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
6346 atomic_nand<mode>_hard if operands[0] is unused.
6347 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
6348 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6350 2015-02-03 David Malcolm <dmalcolm@redhat.com>
6353 * Makefile.in (GCC_OBJS): Add gcc-main.o.
6354 * gcc-main.c: New file, containing "main" taken from gcc.c.
6355 * gcc.c (do_self_spec): Free decoded_options.
6356 (class driver): Move declaration to gcc.h.
6357 (main): Move declaration and implementation to new file
6359 (driver_get_configure_time_options): New function.
6360 * gcc.h (class driver): Move this declaration here, from
6362 (driver_get_configure_time_options): New declaration.
6364 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
6366 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
6367 cross-module inlining.
6368 * cgraph.h (cgraph_node): Add flag merged.
6369 * ipa-icf.c (sem_function::merge): Maintain it.
6371 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
6373 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
6374 instead of OBJECT_P.
6376 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
6379 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
6380 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
6381 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
6382 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
6384 2015-02-03 Jakub Jelinek <jakub@redhat.com>
6387 * combine.c (reg_n_sets_max): New variable.
6388 (can_change_dest_mode, reg_nonzero_bits_for_combine,
6389 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
6390 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
6391 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
6392 (rest_of_handle_combine): Initialize reg_n_sets_max.
6394 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
6396 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
6397 if some always_inline was inlined, apply changes before inlining
6400 2015-02-02 David Malcolm <dmalcolm@redhat.com>
6403 * config/arm/arm.c (arm_option_override): Set
6404 arm_selected_arch/cpu/tune to NULL on entry.
6406 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
6407 Andrew Pinski <pinskia@gcc.gnu.org>
6408 Jakub Jelinek <jakub@gcc.gnu.org>
6411 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
6412 integer typing for small model. Use IN_RANGE.
6414 2015-02-02 Richard Biener <rguenther@suse.de>
6416 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
6417 * tree-vrp.c (vrp_valueize_1): Likewise.
6419 2015-02-02 Alan Modra <amodra@gmail.com>
6421 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
6422 than mem for toc_restore.
6423 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
6424 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
6425 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
6427 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6430 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
6431 explicit default options.
6433 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
6436 * ipa-utils.c (ipa_merge_profiles): Add release argument.
6437 * ipa-icf.c (sem_function::merge): Do not release body when merging.
6438 * ipa-utils.h (ipa_merge_profiles): Update prototype.
6440 2015-02-01 Jakub Jelinek <jakub@redhat.com>
6443 * cfgexpand.c (deep_ter_debug_map): New variable.
6444 (avoid_deep_ter_for_debug): New function.
6445 (expand_debug_expr): If TERed SSA_NAME is in
6446 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
6447 instead of trying to expand SSA_NAME's def stmt.
6448 (expand_debug_locations): When expanding debug bind
6449 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
6450 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
6452 (pass_expand::execute): Call avoid_deep_ter_for_debug on
6453 all debug bind stmts. Delete deep_ter_debug_map after
6454 expand_debug_location if non-NULL and clear it.
6456 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
6459 * config/sh/sync.md (atomic_fetch_notsi_hard,
6460 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
6461 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
6462 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
6463 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
6464 atomic_not_fetch<mode>_soft_imask): New insns.
6466 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6468 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
6469 (rank_for_schedule_debug): Split from ...
6470 (rank_for_schedule): ... this.
6471 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
6472 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
6474 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
6476 * doc/md.texi (Machine Constraints): Alphabetize table by target.
6477 * doc/extend.texi (x86 Variable Attributes): Move section to
6478 correct alphabetization after renaming.
6479 (x86 Type Attributes): Likewise.
6480 (Target Builtins): Re-alphabetize menu.
6481 (x86 Built-in Functions): Move section to correct alphabetization
6483 (x86 transactional memory intrinsics): Likewise.
6484 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
6485 and x86 Windows Options in table and menu.
6486 (x86 Options): Move section to correct alphabetization after
6488 (x86 Windows Options): Likewise.
6490 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
6492 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
6493 preferred names of the architecture and its 32- and 64-bit
6495 * doc/invoke.texi: Likewise.
6496 * doc/md.texi: Likewise.
6498 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
6501 * config/i386/predicates.md (address_no_seg_operand): Reject
6502 non-CONST_INT_P operands in invalid mode.
6504 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
6506 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
6507 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
6508 * config/i386/predicates.md (address_no_seg_operand): Call
6509 address_operand with VOIDmode.
6510 (vsib_address_operand): Ditto.
6511 (address_mpx_no_base_operand): Ditto.
6512 (address_mpx_no_index_operand): Ditto.
6514 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
6517 * lra-constraints.c (original_subreg_reg_mode): New.
6518 (simplify_operand_subreg): Try to simplify subreg of const. Use
6519 original_subreg_reg_mode for it.
6520 (swap_operands): Update original_subreg_reg_mode.
6521 (curr_insn_transform): Set up original_subreg_reg_mode.
6523 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
6526 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
6528 (process_alt_operands): Use it.
6529 (curr_insn_transform): Check the optional reload pseudo class is
6532 2015-01-30 Joseph Myers <joseph@codesourcery.com>
6534 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
6535 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
6537 * toplev.h (init_asm_output): Update comment on use of
6538 UNKNOWN_LOCATION with fatal_error.
6539 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
6540 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
6541 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
6542 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
6543 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
6544 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
6545 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
6546 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
6547 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
6548 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
6549 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
6550 fatal_error changed to pass input_location as first argument.
6552 2015-01-30 Martin Liska <mliska@suse.cz>
6554 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
6555 in #pragma GCC diagnostic guards.
6557 2015-01-30 Richard Biener <rguenther@suse.de>
6559 PR tree-optimization/64829
6560 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
6561 not add a widening conversion pattern but hand off extra
6562 widenings to callers.
6563 (vect_recog_widen_mult_pattern): Handle extra widening produced
6564 by vect_handle_widen_op_by_const.
6565 (vect_recog_widen_shift_pattern): Likewise.
6566 (vect_pattern_recog_1): Remove excess vertical space in dumping.
6567 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6568 (vect_init_vector_1): Likewise.
6569 (vect_get_vec_def_for_operand): Likewise.
6570 (vect_finish_stmt_generation): Likewise.
6571 (vectorizable_load): Likewise.
6572 (vect_analyze_stmt): Likewise.
6573 (vect_is_simple_use): Likewise.
6575 2015-01-29 Jeff Law <law@redhat.com>
6577 * combine.c (try_combine): Fix typo in comment.
6579 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
6582 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
6583 (rs6000_stack_info): Add assert.
6584 (rs6000_output_savres_externs): New function, split off from...
6585 (rs6000_output_function_prologue): ... here. Do not call it for
6588 2015-01-29 Jeff Law <law@redhat.com>
6591 * combine.c (try_combine): If I0 is a memory load and I3 a store
6592 to a related address, increase the "goodness" of doing a 4-insn
6593 combination with I0-I3.
6594 (make_field_assignment): Handle SUBREGs in the ior+and case.
6596 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
6598 PR tree-optimization/64746
6599 * tree-if-conv.c (mask_exists): New function.
6600 (predicate_mem_writes): Save created mask with given size for further
6602 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
6603 (ifcvt_repair_bool_pattern): Collect all statements that are root
6604 of bool pattern and use iterative algorithm to remove multiple uses
6605 of predicates, display number of required iterations.
6607 2015-01-29 Richard Biener <rguenther@suse.de>
6609 PR tree-optimization/64853
6610 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
6611 stmt will get simulated again.
6612 * tree-ssa-ccp.c (valueize_op_1): Likewise.
6614 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6616 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
6617 return_in_pc. Remove redundant assignments.
6618 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
6619 (arm_expand_epilogue): Don't compare boolean with true in if condition.
6621 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
6623 * config/i386/i386.c (ix86_mode_after): Make static.
6625 2015-01-29 Richard Biener <rguenther@suse.de>
6627 PR tree-optimization/64844
6628 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
6629 dump cost model analysis.
6630 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6631 Do not register adjusted load/store costs here.
6633 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
6634 Uros Bizjak <ubizjak@gmail.com>
6636 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
6637 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
6638 using x86_use_pseudo_pic_reg.
6639 * config/i386/i386.c (ix86_conditional_register_usage): Remove
6640 support for fixed PIC register.
6641 (ix86_use_pseudo_pic_reg): Not static any more.
6643 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
6646 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
6647 to avoid error in cgraph node verification.
6649 2015-01-29 Marek Polacek <polacek@redhat.com>
6651 * doc/standards.texi: Reflect that the default for C is gnu11.
6653 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
6656 * reorg.c (switch_text_sections_between_p): New function.
6657 (relax_delay_slots): Call it when testing if the jump insn
6658 is removable. Use targetm.can_follow_jump when testing if
6659 the conditional branch can follow an unconditional jump.
6661 2015-01-27 Caroline Tice <cmtice@google.com>
6663 Committing VTV Cywin/Ming patch for Patrick Wollgast
6664 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
6665 if -fvtable-verify=preinit/std is used.
6666 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
6667 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
6668 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
6669 if -fvtable-verify=preinit/std is used.
6670 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
6671 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
6672 if -fvtable-verify=preinit/std is used.
6673 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
6674 * config/i386/mingw32.h (LIB_SPEC): Likewise.
6675 * varasm.c (assemble_variable): Add code to properly set the comdat
6676 section and name for the .vtable_map_vars section in case the
6677 target is PE or COFF.
6679 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
6682 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
6683 make sane BB profile.
6684 (cgraph_node::expand_thunk): Make sane BB profile.
6685 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
6686 * cgraph.h (init_lowered_empty_function): Update prototype.
6687 * config/i386/i386.c (make_resolver_func): Update call.
6688 * predict.c (gate): Disable branch prediction pass if
6689 profile is already there.
6691 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
6693 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
6694 * opth-gen.awk: Likewise.
6695 * common.opt: Mark flag_fp_contract_mode as Optimization.
6697 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
6699 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
6700 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
6702 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
6705 * config/sh/predicates.md (atomic_arith_operand,
6706 atomic_logical_operand): Remove.
6707 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
6708 (atomic_arith_operand_0): New predicate.
6709 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
6710 Use atomic_arith_operand_0 for input values.
6711 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
6712 atomic_compare_and_swap<mode>_soft_gusa,
6713 atomic_compare_and_swap<mode>_soft_tcb,
6714 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
6715 arith_reg_operand instead of register_operand.
6716 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
6717 atomic_arith_operand_0 for newval input.
6718 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
6719 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
6720 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
6721 arith_reg_operand instead of register_operand.
6722 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
6723 fetchop_predicate_1, fetchop_constraint_1_llcs,
6724 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
6725 fetchop_constraint_1_imask): New code iterator attributes.
6726 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
6727 register_operand. Use fetchop_predicate_1.
6728 (atomic_fetch_<fetchop_name>si_hard,
6729 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
6730 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
6731 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
6732 and arith_reg_operand instead of register_operand. Use
6733 fetchop_predicate_1, fetchop_constraint_1_gusa.
6734 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
6735 and arith_reg_operand instead of register_operand. Use
6736 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
6738 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
6739 and arith_reg_operand instead of register_operand. Use
6740 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
6742 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
6743 register_operand. Use atomic_logical_operand_1.
6744 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
6745 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
6746 arith_reg_operand instead of register_operand.
6747 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
6748 Use arith_reg_dest and arith_reg_operand instead of register_operand.
6749 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
6750 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
6751 register_operand. Use fetchop_predicate_1.
6752 (atomic_<fetchop_name>_fetchsi_hard,
6753 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
6754 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6755 fetchop_constraint_1_llcs.
6756 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
6757 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6758 fetchop_constraint_1_gusa.
6759 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
6760 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6761 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
6762 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
6763 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6764 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
6765 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
6766 register_operand. Use atomic_logical_operand_1.
6767 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
6768 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
6769 arith_reg_operand instead of register_operand.
6770 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
6771 arith_reg_operand instead of register_operand. Use logical_operand
6772 and K08. Adjust asm sequence to allow R0 usage.
6773 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
6774 arith_reg_operand instead of register_operand. Use logical_operand
6777 2015-01-28 Jakub Jelinek <jakub@redhat.com>
6780 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
6781 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
6782 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
6783 only get_full_len HOST_WIDE_INTs from get_val () array rather than
6784 all bits in *val_wide.
6786 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
6788 * varpool.c (tls_model_names): Fix names.
6789 (varpool_node::dump): Dump tls- prefix for tls models.
6791 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
6792 Bernd Schmidt <bernds@codesourcery.com>
6793 Nathan Sidwell <nathan@codesourcery.com>
6795 * config/nvptx/mkoffload.c: New file.
6796 * config/nvptx/t-nvptx: Add build rules for it.
6797 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
6798 (extra_programs): Add mkoffload.
6799 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
6801 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
6803 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
6806 * cfgexpand.c (reorder_operands): Skip debug gimples.
6808 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
6810 PR tree-optimization/64277
6811 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
6812 range info when possible to refine estimation.
6814 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6816 PR tree-optimization/64718
6817 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
6818 be a 16bit unsigned integer when n->range is 16.
6819 (bswap_replace): Convert src to that type if necessary for all bswap
6820 sizes. Fix rotation right notation in nearby comment. Use bswap_type
6821 set in pass_optimize_bswap::execute ().
6823 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
6825 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
6826 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
6827 integer and floating point variants.
6828 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
6830 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
6832 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
6833 for all vector modes.
6835 2015-01-28 Jakub Jelinek <jakub@redhat.com>
6838 * doc/sourcebuild.texi (comdat_group): Document.
6840 2015-01-28 Terry Guo <terry.guo@arm.com>
6842 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
6844 2015-01-27 David Malcolm <dmalcolm@redhat.com>
6846 * toplev.c (print_version): Add param "show_global_state", and
6847 only print GGC and plugin information if it is true.
6848 (init_asm_output): Pass in "true" for the new param when calling
6850 (process_options): Likewise.
6851 (toplev::main): Likewise.
6852 * toplev.h (print_version): Add new param to decl.
6854 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
6858 * tree.c (lookup_binfo_at_offset): New function.
6859 (get_binfo_at_offset): Use it.
6861 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
6864 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
6865 on vtable being vtable.
6867 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6869 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
6870 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
6872 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
6873 -mno-hotpatch options. Change syntax of -mhotpatch= option.
6874 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
6876 (s390_hotpatch_trampoline_halfwords_max): Renamed.
6877 (s390_hotpatch_hw_max): New name.
6878 (s390_hotpatch_trampoline_halfwords): Renamed.
6879 (s390_hotpatch_hw_before_label): New name.
6880 (get_hotpatch_attribute): Removed.
6881 (s390_hotpatch_hw_after_label): New name.
6882 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
6884 (s390_attribute_table): Ditto.
6885 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
6886 (s390_function_num_hotpatch_hw): New name.
6887 Remove special handling of inline functions and hotpatching.
6888 Return number of nops before and after the function label.
6889 (s390_can_inline_p): Removed.
6890 (s390_asm_output_function_label): Emit a configurable number of nops
6891 after the function label.
6892 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
6893 (TARGET_CAN_INLINE_P) Removed.
6894 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
6896 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6897 Jiong Wang <jiong.wang@arm.com>
6899 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
6901 (cb<optab><mode>1): Likewise.
6902 * config/aarch64/iterators.md (bcond): New define_code_attr.
6904 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6906 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
6909 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6911 * config/s390/s390.c (s390_register_move_cost): Increase costs for
6914 2015-01-27 Richard Biener <rguenther@suse.de>
6916 * tree-vrp.c (update_value_range): Intersect the range with
6917 old recorded SSA name range information.
6919 2015-01-27 Nick Clifton <nickc@redhat.com>
6921 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
6922 BC, DE and HL registers directly, not via AX.
6923 When decrementing the stack pointer by a large amount, transfer SP
6924 into AX and perform the subtraction there.
6925 (rl78_expand_epilogue): Perform the inverse of the above
6928 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6930 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
6932 2015-01-27 Jakub Jelinek <jakub@redhat.com>
6933 Yury Gribov <y.gribov@samsung.com>
6936 * ubsan.c (ubsan_source_location): Refactor code.
6937 (ubsan_type_descriptor): Update type size. Refactor code.
6939 2015-01-27 Richard Biener <rguenther@suse.de>
6941 PR tree-optimization/56273
6942 PR tree-optimization/59124
6943 PR tree-optimization/64277
6944 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
6945 from the first VRP pass.
6947 2015-01-27 Jakub Jelinek <jakub@redhat.com>
6950 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
6951 handle the first argument in the same loop as all the other arguments.
6953 PR rtl-optimization/61058
6954 * jump.c (cleanup_barriers): Update basic block boundaries
6955 if BLOCK_FOR_INSN is non-NULL on PREV.
6957 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
6959 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
6960 bounds narrowing, already instrumented calls and calls to
6961 not instrumentable functions.
6963 2015-01-27 Jakub Jelinek <jakub@redhat.com>
6965 PR tree-optimization/64807
6966 * wide-int.cc (wi::divmod_internal): Clear
6967 b_dividend[dividend_blocks_needed].
6969 2015-01-26 DJ Delorie <dj@redhat.com>
6971 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
6972 volatile memory references.
6974 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
6977 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
6979 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
6980 shifts if it already fits into K08.
6982 2015-01-26 Jakub Jelinek <jakub@redhat.com>
6985 * ipa-inline.c (inline_small_functions): Print "unknown" even
6986 if edge->call_stmt is non-NULL, but has builtins or unknown
6990 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
6991 with asterisk, skip the first character.
6993 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
6996 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
6999 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
7002 * config/i386/i386.md (*movdi_internal): Also check operand 0
7003 to determine TYPE_LEA operand.
7004 (*movsi_internal): Ditto.
7006 2015-01-26 Jakub Jelinek <jakub@redhat.com>
7008 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
7009 OPTION_MASK_QUAD_MEMORY_ATOMIC.
7011 2015-01-26 Renlin Li <renlin.li@arm.com>
7013 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
7015 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
7018 2015-01-26 Richard Biener <rguenther@suse.de>
7021 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
7022 combining two BIT_AND_EXPR predicates.
7024 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
7027 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
7029 2015-01-26 Terry Guo <terry.guo@arm.com>
7031 * config/arm/arm.c (arm_file_start): Update the assignment of
7034 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
7036 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
7038 config/arm/arm.md: Include the new Cortex-A57 model.
7039 (generic_sched): Don't use generic_sched when tuning for
7042 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
7043 Uros Bizjak <ubizjak@gmail.com>
7045 * config/i386/i386.c (get_builtin_code_for_version): Add
7046 support for BMI and BMI2 multiversion functions.
7048 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7050 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
7051 (extract_bit_field): Likewise.
7052 (extract_low_bits): Likewise.
7053 (expand_mult): Likewise.
7054 (expand_mult_highpart_adjust): Likewise.
7056 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
7058 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
7059 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
7060 * config/i386/i386.c (processor_model): Add
7061 M_INTEL_COREI7_BROADWELL.
7062 (arch_names_table): Add "broadwell".
7064 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
7073 * config/sh/sh-protos.h
7074 (sh_extending_set_of_reg::can_use_as_unextended_reg,
7075 sh_extending_set_of_reg::use_as_unextended_reg,
7076 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
7077 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
7078 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
7079 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
7080 (sh_treg_insns): New class.
7081 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
7082 (scope_counter): New class.
7083 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
7084 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
7085 sh_extending_set_of_reg::can_use_as_unextended_reg,
7086 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
7087 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
7088 sh_split_treg_set_expr): New functions.
7089 (addsubcosts): Handle treg_set_expr.
7090 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
7091 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
7092 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
7093 (sh_insn_operands_modified_between_p): Make non-static.
7094 * config/sh/predicates.md (zero_extend_movu_operand): Allow
7095 simple_mem_operand in addition to displacement_mem_operand.
7096 (zero_extend_operand): Don't allow zero_extend_movu_operand.
7097 (treg_set_expr, treg_set_expr_not_const01,
7098 arith_reg_or_treg_set_expr): New predicates.
7099 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
7100 arith_or_int_operand instead of logical_operand. Convert to
7101 insn_and_split. Try to optimize constant operand in splitter.
7102 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
7103 (*tstqi_t_zero): Delete.
7104 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
7105 (tstsi_t_and_not): Delete.
7106 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
7107 Convert to insn_and_split.
7108 (unnamed split, tstsi_t_zero_extract_xor,
7109 tstsi_t_zero_extract_subreg_xor_little,
7110 tstsi_t_zero_extract_subreg_xor_big): Delete.
7111 (*tstsi_t_shift_mask): New insn_and_split.
7112 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
7113 to recombine with surrounding insns when splitting.
7114 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
7115 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
7116 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
7117 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
7118 (*cbranch_div0s: Delete.
7119 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
7120 Try to recombine with surrounding insns when splitting. Add operand
7122 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
7123 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
7124 *addc_r_r_msb, *addc_2r_msb): Delete.
7125 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
7127 (*addc_negreg_t): New insn_and_split.
7128 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
7129 Try to recombine with surrounding insns when splitting.
7130 Add operand order variants.
7131 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
7132 insn_and_split patterns.
7133 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
7134 surrounding insns when splitting.
7135 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
7136 (*rotcl): Likewise. Add zero_extract variant.
7137 (*ashrsi2_31): New insn_and_split.
7138 (*negc): Convert to insn_and_split. Use treg_set_expr.
7139 (*zero_extend<mode>si2_disp_mem): Update comment.
7140 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
7142 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
7143 with surrounding insns when splitting.
7144 (any_treg_expr_to_reg): New insn_and_split.
7145 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
7146 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
7147 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
7148 *zero_extract_2): New single bit zero extract patterns.
7149 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
7150 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
7151 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
7152 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
7154 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
7155 register_operand for set source.
7157 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
7159 * i386.opt (prefetch_sse): New targetsave.
7160 * i386.c (ix86_function_specific_save): Save prefetch_sse.
7161 (ix86_function_specific_restore): Restore prefetch_sse and initialize
7162 ix86_cost/ix86_tune_cost.
7164 2015-01-23 David Malcolm <dmalcolm@redhat.com>
7166 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7167 Support the JIT by using 0 as the language type.
7169 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
7172 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
7173 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
7174 (mark_regno_live, process_bb_lives): Pass new parameter value to
7175 make_hard_regno_born.
7177 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7179 PR rtl-optimization/63637
7180 PR rtl-optimization/60663
7181 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
7182 if elt->cost is MAX_COST for ASM_OPERANDS.
7183 (find_sets_in_insn): Fix up comment typo.
7184 (cse_insn): Don't set src_volatile for all non-volatile
7185 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
7186 or with "memory" clobber. Set elt->cost to MAX_COST
7187 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
7188 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
7190 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
7192 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
7195 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
7197 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
7198 libgcc/config/i386/elf-lib.h.
7200 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7203 * gcc.c (print_configuration): Don't print a blank line at the end
7205 (run_attempt): ... but here unstead.
7208 * omp-low.c (scan_sharing_clauses): Don't ignore
7209 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
7210 on target data/update constructs.
7212 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7215 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
7216 (DEBUG_RELOAD): Removed define.
7217 (m32c_limit_reload_class): Enable traces with if DEBUG0.
7218 (m32c_function_arg): Added a type cast.
7219 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
7220 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
7221 * config/m32c/bitops.md (andqi3_16): Likewise.
7222 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
7223 (push_a01_l): Likewise.
7225 2015-01-23 David Malcolm <dmalcolm@redhat.com>
7228 * main.c (main): Construct toplev instances with init_signals=true.
7229 * toplev.c (general_init): Add param "init_signals", and use it to
7230 conditionalize the calls to signal and host_hooks.extra_signals.
7231 (toplev::toplev): Add param "init_signals".
7232 (toplev::main): When invoking general_init, pass m_init_signals
7233 to control whether signal-handlers are installed.
7234 * toplev.h (toplev::toplev): Add param "init_signals".
7235 (toplev::m_init_signals): New field.
7237 2015-01-23 David Malcolm <dmalcolm@redhat.com>
7240 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
7241 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
7242 latter may be affected by the former (e.g. on i686).
7244 2015-01-23 Martin Liska <mliska@suse.cz>
7246 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
7247 false positive during profiledbootstrap.
7249 2015-01-23 Tom de Vries <tom@codesourcery.com>
7252 * lto-opts.c (lto_write_options): Output non-explicit conservative
7254 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
7255 (append_compiler_options): Pass -fopenacc through.
7257 2015-01-23 Tom de Vries <tom@codesourcery.com>
7260 * lto-opts.c (lto_write_options): Output non-explicit conservative
7262 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
7263 (append_compiler_options): Pass -fopenmp through.
7265 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7268 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
7271 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
7272 * diagnostic.def (DK_ICE_NOBT): New kind.
7273 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
7274 like DK_ICE, but never print backtrace.
7275 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
7276 (internal_error_no_backtrace): New function.
7277 * gcc.c (execute): Use internal_error_no_backtrace instead of
7280 2015-01-22 Jeff Law <law@redhat.com>
7283 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
7284 improve code density for small immediate to memory case.
7285 (insv): Better handle bitfield assignments when the field is
7286 being set to all ones.
7287 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
7290 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7291 Jakub Jelinek <jakub@redhat.com>
7293 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
7294 for !TARGET_LIBC_PROVIDES_SSP version and
7295 -fstack-protector-{all,strong,explicit} otherwise.
7296 * config/freebsd.h (LINK_SSP_SPEC): Handle
7297 -fstack-protector-{strong,explicit}.
7299 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
7300 H.J. Lu <hongjiu.lu@intel.com>
7303 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
7306 2015-01-22 Wei Mi <wmi@google.com>
7308 PR rtl-optimization/64557
7309 * dse.c (record_store): Call get_addr for mem_addr.
7310 (check_mem_read_rtx): Likewise.
7312 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
7314 * fold-const.c (const_binop): Add early return for non-tcc_binary.
7316 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
7318 * toplev.c (init_local_tick): Process the failure when read
7319 fails for random_seed.
7321 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
7322 'pretty_name' to avoid memory overflow.
7324 2015-01-22 Richard Biener <rguenther@suse.de>
7327 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
7328 abnormal coalescing on undefined SSA names.
7330 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
7334 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
7336 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
7338 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
7341 * fold-const.c (fold_checksum_tree): Don't include value of
7342 expr->decl_with_vis.symtab_node in the checksum.
7344 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7346 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
7348 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
7351 * gcc.c (insert_comments): New function.
7352 (try_generate_repro): Call it.
7353 (append_text): Removed.
7355 2015-01-22 Richard Biener <rguenther@suse.de>
7357 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
7358 with IL incompatible options. Properly honor user optimize
7361 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
7363 PR rtl-optimization/64682
7364 * combine.c (distribute_notes): When moving a death note for
7365 a register that is set in the new I2, make sure to put it
7368 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
7370 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
7373 2015-01-21 Jakub Jelinek <jakub@redhat.com>
7376 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
7377 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
7378 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
7381 * doc/invoke.texi (-fsanitize=vptr): Document.
7383 PR rtl-optimization/62078
7384 * dse.c: Include cfgcleanup.h.
7385 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
7386 anything call purge_all_dead_edges and cleanup_cfg at the end
7389 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
7391 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
7394 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7396 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
7399 2015-01-21 David Sherwood <david.sherwood@arm.com>
7400 Tejas Belagod <Tejas.Belagod@arm.com>
7402 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
7403 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
7404 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
7407 2015-01-21 David Sherwood <david.sherwood@arm.com>
7408 Tejas Belagod <Tejas.Belagod@arm.com>
7410 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
7411 (aarch64_reverse_mask): New decls.
7412 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
7413 (insn_count): New mode_attr.
7414 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
7415 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
7416 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
7417 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
7418 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
7419 (aarch64_simd_st4): New patterns.
7420 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
7421 (aarch64_reverse_mask): New functions.
7423 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
7425 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
7427 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
7428 addressing modes for BE.
7429 (aarch64_print_operand): Add 'R' specifier.
7430 (aarch64_simd_disambiguate_copy): Delete.
7431 (aarch64_simd_emit_reg_reg_move): New function.
7432 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
7433 in define_splits for structural moves.
7434 (mov<mode>): Use less restrictive predicates.
7435 (*aarch64_mov<mode>): Simplify and only allow for LE.
7436 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
7438 2015-01-21 Alan Hayward <alan.hayward@arm.com>
7440 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
7442 2015-01-21 Richard Henderson <rth@redhat.com>
7445 * ccmp.c (used_in_cond_stmt_p): Remove.
7446 (expand_ccmp_expr): Don't use it.
7448 2015-01-21 Nick Clifton <nickc@redhat.com>
7450 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
7453 2015-01-21 Richard Biener <rguenther@suse.de>
7456 * tree-core.h (builtin_info, builtin_info_type): Turn from
7457 an object with two arrays into an array of an object with
7458 decl and two flags, implicit_p and declared_p.
7459 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
7460 set_builtin_decl, set_builtin_decl_implicit_p,
7461 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
7462 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
7463 * builtins.c (builtin_info): Adjust.
7464 * gimplify.c (gimplify_addr_expr): References to builtins
7465 that have been declared by the user makes them eligible for
7466 use by the compiler. Call set_builtin_decl_implicit_p on them.
7468 2015-01-20 Jeff Law <law@redhat.com>
7471 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
7472 allow pc-relative addresses in operand predicates or constraints.
7474 2015-01-21 Bin Cheng <bin.cheng@arm.com>
7476 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
7477 neon on aarch32 processors for stringops.
7479 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7482 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
7484 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7487 * ipa-inline.c: Include lto-streamer.h
7488 (report_inline_failed_reason): Output source file differences and
7489 flags on optimization/target node mismatch.
7490 (can_inline_edge_p): Consider caller to be the outer inline function;
7491 be less restrictive about matching opimize and optimize_size attributes.
7492 (inline_account_function_p): Break out from ...
7493 (inline_small_functions): ... here.
7494 * ipa-inline-transform.c (clone_inlined_nodes): Use
7495 inline_account_function_p.
7496 (inline_call): Use optimize attribution; use inline_account_function_p.
7497 (inline_transform): Use opt_for_fn.
7498 * ipa-inline.h (inline_account_function_p): Declare.
7500 2015-01-20 Jakub Jelinek <jakub@redhat.com>
7503 * dwarf2out.c (decl_piece_node): Don't put bitsize into
7504 mode if bitsize <= 0.
7505 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
7506 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
7507 sizes and positions.
7509 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
7511 * config/nios2/nios2.c (nios2_asm_file_end): Implement
7512 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
7514 (TARGET_ASM_FILE_END): Define.
7516 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7518 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
7519 (struct tune_params): Use the enum.
7520 * arm.c (arm_*_tune): Update.
7521 (arm_option_override): Update.
7523 2015-01-20 Richard Biener <rguenther@suse.de>
7526 * ipa-reference.c (add_static_var): Inline ...
7527 (analyze_function): ... here after splitting out from ...
7528 (is_proper_for_analysis): ... this.
7530 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
7533 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
7534 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
7535 replace the conditional with it's true branch.
7536 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
7537 (arm_lra_p): Remove.
7539 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
7541 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
7543 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7545 * config/tilegx/mul-tables.c: Move symtab.h include after
7546 coretypes.h include.
7547 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
7548 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
7549 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
7550 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
7551 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
7553 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
7557 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
7559 PR rtl-optimization/64081
7560 * loop-iv.c (def_pred_latch_p): New function.
7561 (latch_dominating_def): Allow specific cases with non-single
7563 (iv_get_reaching_def): Likewise.
7564 (check_complex_exit_p): New function.
7565 (check_simple_exit): Use check_complex_exit_p to allow certain cases
7566 with exits not executing on any iteration.
7568 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7571 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
7574 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7577 * i386.c (gate): Check flag_expensive_optimizations and
7579 (ix86_option_override_internal): Drop optimize_size condition
7580 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
7581 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
7583 (ix86_avx256_split_vector_move_misalign,
7584 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
7585 * sse.md (all uses of TARGET_PREFER_AVX128): Add
7586 optimize_insn_for_speed_p check.
7588 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
7590 * config/mips/mips.h (FP_ASM_SPEC): New define.
7591 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
7594 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
7597 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
7598 nullptr for insn when reaching the first insn.
7599 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
7600 (sh_insn_operands_modified_between_p): Add nullptr check.
7601 (sh_find_extending_set_of_reg): Fix log message. Don't accept
7602 sign extending mem load if the insn contains any UNSPEC or
7605 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7607 * params.def (inline-unit-growth): Drop to 15%.
7608 * invoke.texi (inline-unit-growth): Document change.
7610 2015-01-19 Martin Liska <mliska@suse.cz>
7613 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
7614 function for second argument of OBJ_TYPE_REF.
7616 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7619 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
7620 whether function is an alias.
7622 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7624 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
7627 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
7629 PR rtl-optimization/64671
7630 * lra-remat.c (operand_to_remat): Don't consider jump and call
7633 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
7636 * config/rs6000/default64.h: Include rs6000-cpus.def.
7637 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
7638 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
7639 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
7641 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
7643 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
7644 pseudo-op to specify assembler dialect.
7646 2015-01-19 Martin Liska <mliska@suse.cz>
7649 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
7650 Handle safe potentially removed nodes during filtering.
7652 2015-01-19 Martin Liska <mliska@suse.cz>
7654 * doc/extend.texi (no_icf): Add new attribute description.
7655 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
7656 where the pass attempts to merge a function with no_icf attribute.
7658 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7661 * doc/md.texi (ARM Options): Document register constraints.
7663 2015-01-19 Jiong Wang <jiong.wang@arm.com>
7664 Andrew Pinski <apinski@cavium.com>
7667 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
7668 (ashl<mode>3): Don't expand if operands[2] is not constant.
7670 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7673 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
7674 Match xor-and-xor RTL pattern.
7676 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
7678 PR rtl-optimization/64081
7679 * loop-iv.c (def_pred_latch_p): New function.
7680 (latch_dominating_def): Allow specific cases with non-single
7682 (iv_get_reaching_def): Likewise.
7683 (check_complex_exit_p): New function.
7684 (check_simple_exit): Use check_complex_exit_p to allow certain cases
7685 with exits not executing on any iteration.
7687 2015-01-19 Jakub Jelinek <jakub@redhat.com>
7689 * common.opt (fgraphite): Fix a typo.
7691 2015-01-19 Felix Yang <felix.yang@huawei.com>
7693 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
7695 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
7696 uminp, smax_nanp, smin_nanp): New builtins.
7697 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
7698 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
7699 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
7700 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
7701 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
7702 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
7703 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
7704 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
7705 vpminnms_f32): Rewrite using builtin functions.
7707 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7710 * omp-low.c (offload_symbol_decl): Remove variable.
7711 (get_offload_symbol_decl): Remove function.
7712 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
7713 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
7714 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
7715 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
7716 BUILT_IN_GOACC_UPDATE don't pass it at all.
7718 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
7720 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
7723 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
7725 * ipa-chkp.c (chkp_produce_thunks): Add early param
7726 to split thunks production into two passes. Keep
7727 'always_inline' function bodies after the first pass.
7728 (pass_data_ipa_chkp_early_produce_thunks): New.
7729 (pass_ipa_chkp_early_produce_thunks): New.
7730 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
7731 chkp_produce_thunks signature.
7732 (make_pass_ipa_chkp_early_produce_thunks): New.
7733 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
7734 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
7735 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
7737 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
7739 * cgraph.c (cgraph_node::dump): Dump profile flags.
7741 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
7744 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
7745 reg appear first in the parallel.
7747 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
7749 * ipa-reference.c (set_reference_optimization_summary,
7750 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
7752 (ignore_module_statics): New static var.
7753 (propagate_bits): If ipa-reference is disabled, do not look into local
7755 (analyze_function): Disable analysis when ipa_reference is disabled.
7756 (generate_summary): Do not dump when reference is disabled;
7757 collect vars accessed from functions with ipa-reference disabled.
7758 (get_read_write_all_from_node): When ipa-reference is disabled, use the
7760 (gate): Enable for LTO.
7761 (ignore_edge_p): New function.
7762 (propagate): Skip functions w/o ipa-reference analysis.
7763 * optc-save-gen.awk: Handle optimize_debug correctly.
7764 * opth-gen.awk: Likewise.
7765 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
7766 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
7767 fira-share-save-slots, fira-share-spill-slots,
7768 fmodulo-sched-allow-regmoves, fpartial-inlining,
7769 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
7770 ftracer, ftree-parallelize-loops, fassociative-math,
7771 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
7773 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
7774 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
7776 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
7779 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
7782 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
7784 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
7786 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
7788 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
7789 Remove duplicate option listings.
7791 2015-01-18 Felix Yang <felix.yang@huawei.com>
7793 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
7794 (autofdo_source_profile::get_callsite_total_count,
7795 function_instance::get_function_instance_by_decl,
7796 string_table::get_index, string_table::get_index_by_decl,
7797 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
7798 Fix comment typos. Reformatting and minor code rearrangement.
7800 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7802 * config/rs6000/rs6000.md (probe_stack): Delete.
7803 (probe_stack_address): New.
7805 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7807 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
7808 to test for 32-bit ABIs, not !TARGET_POWERPC64.
7810 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7812 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
7813 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
7814 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
7816 (rs6000_libcall_value): Use the new function.
7818 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
7820 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
7822 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
7824 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
7825 implement a more precise life analysis for it during backward scan.
7827 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7829 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
7831 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
7833 PR rtl-optimization/52773
7834 * calls.c (emit_library_call_value): When pushing arguments use
7835 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
7836 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
7837 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
7839 2015-01-17 Jeff Law <law@redhat.com>
7841 PR rtl-optimization/32790
7842 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
7843 not ZERO_EXTEND in SET_DESTs.
7845 2015-01-17 Alan Modra <amodra@gmail.com>
7847 * cprop.c (do_local_cprop): Revert last change.
7849 2015-01-16 DJ Delorie <dj@redhat.com>
7850 Nick Clifton <nickc@redhat.com>
7852 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
7853 (addhi3_real): Likewise. Fix [HL+0] syntax.
7854 (subqi3_real): Likewise.
7855 (subhi3_real): Likewise.
7856 (cbranchqi4_real): Likewise. Allow saddr,#imm.
7857 (cbranchhi4_real): Likewise.
7858 (cbranchhi4_real_inverted): Likewise.
7859 (cbranchsi4_real_lt): Likewise.
7860 (cbranchsi4_real_ge): Likewise.
7861 (cbranchsi4_real_ge): Likewise.
7862 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
7863 (sub<mode>3_virt): Likewise.
7864 (cbranchqi4_virt): Likewise.
7865 (cbranchhi4_virt): Likewise.
7866 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
7867 always use '[reg+imm]' even when imm is zero.
7868 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
7869 (rl78_general_operand): New.
7870 (rl78_nonimmediate_operand): New.
7871 (rl78_nonfar_operand): Use them.
7872 (rl78_nonfar_nonimm_operand): Likewise.
7873 (rl78_stack_based_mem): Fix.
7874 * config/rl78/constraints.md (Ibqi): New.
7879 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
7882 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
7884 * config/rl78/constrains (Qs8): New constraint.
7885 * config/rl78/rl78.c (rl78_flags_already_set): New function.
7886 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
7887 * config/rl78/rl78-real.md (update_Z): New attribute.
7888 Update patterns to set it.
7889 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
7890 shorter compare and branch sequence can be used.
7891 (cbranchhi4_real): Likewise.
7892 (cbranchhi4_real_inverted): Likewise.
7894 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
7895 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
7897 * config/rl78/rl78.c (rl78_get_name_encoding): New.
7898 (rl78_option_override): Allow -mes0 only if C.
7899 (characterize_address): Support subregs of symbol_refs.
7900 (rl78_addr_space_address_mode): Move. Add __near.
7901 (rl78_far_p): Likewise.
7902 (rl78_addr_space_pointer_mode): Likewise.
7903 (rl78_as_legitimate_address): Likewise.
7904 (rl78_addr_space_subset_p): Likewise.
7905 (rl78_addr_space_convert): Likewise.
7906 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
7908 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
7910 (rl78_alloc_physical_registers_op1): Change logic to prefer
7911 symbol[BC] addressing.
7912 (frodata_section): New.
7913 (rl78_asm_init_sections): Initialize it.
7914 (rl78_select_section): Put __far readonly symbols in .frodata.
7915 (rl78_make_type_far): New.
7916 (rl78_insert_attributes): Force all readonly symbols to be
7918 (rl78_asm_out_integer): New.
7919 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
7920 * config/rl78/rl78.opt (-mes0): New.
7922 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
7923 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7924 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7925 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
7926 (rl78_saddr_p): New.
7927 (rl78_output_aligned_common): New.
7928 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
7929 (rl78_handle_saddr_attribute): New.
7930 (rl78_handle_naked_attribute): New.
7931 (rl78_attribute_table): Add saddr.
7932 (rl78_print_operand_1): Don't print '!' on saddr operands.
7933 (rl78_print_operand_1): Strip encodings.
7935 (rl78_strip_name_encoding): New.
7936 (rl78_attrlist_to_encoding): New.
7937 (rl78_encode_section_info): New.
7938 (rl78_asm_init_sections): New.
7939 (rl78_select_section): New.
7940 (rl78_output_labelref): New.
7941 (rl78_output_aligned_common): New.
7942 (rl78_asm_out_integer): New.
7943 (rl78_asm_ctor_dtor): New.
7944 (rl78_asm_constructor): New.
7945 (rl78_asm_destructor): New.
7947 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
7948 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
7949 (transcode_memory_rtx): Update.
7950 (rl78_expand_epilogue): Use A_REG instead of 0.
7952 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7954 * config/arm/arm-protos.h (struct tune_params): New field
7955 sched_autopref_queue_depth.
7956 * config/arm/arm.c (sched-int.h): Include header.
7957 (arm_first_cycle_multipass_dfa_lookahead_guard,)
7958 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
7959 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
7960 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
7961 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
7962 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
7963 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
7964 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
7965 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
7966 * config/arm/t-arm (arm.o): Update.
7967 * haifa-sched.c (update_insn_after_change): Update.
7968 (rank_for_schedule): Use auto-prefetcher model, if requested.
7969 (autopref_multipass_init): New static function.
7970 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
7971 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
7972 variable for debug dumps.
7973 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
7974 (autopref_multipass_dfa_lookahead_guard): New global function that
7975 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
7976 (init_h_i_d): Update.
7977 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
7978 * sched-int.h (enum autopref_multipass_data_status): New const enum.
7979 (autopref_multipass_data_): Structure for auto-prefetcher data.
7980 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
7981 (struct _haifa_insn_data:autopref_multipass_data): New field.
7982 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
7983 (autopref_multipass_dfa_lookahead_guard): Declare.
7985 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7987 * rtlanal.c (get_base_term): Handle SCRATCH.
7989 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7991 * config/aarch64/aarch64.c
7992 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
7993 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7995 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
7996 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7998 2015-01-17 Alan Modra <amodra@gmail.com>
8000 * cprop.c (do_local_cprop): Disallow replacement of fixed
8003 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8006 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
8009 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
8011 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
8012 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
8014 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8016 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
8017 * config/arm/thumb1.md: ... Here.
8019 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
8021 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
8022 TImode for TARGET_32BIT.
8024 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
8026 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
8027 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
8029 (rs6000_abi_word_mode): New function.
8031 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
8033 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
8034 instead of UNITS_PER_WORD to describe the size of stack slots.
8036 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
8038 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
8039 as rs6000_promote_function_mode. Move comment to there.
8040 (rs6000_promote_function_mode): New function.
8042 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
8044 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
8045 -mpowerpc64 is active.
8047 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
8050 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
8053 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
8055 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
8056 introduced in revision 219724.
8058 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8059 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8062 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
8063 destination is not a GP reg.
8064 (*movdi_aarch64): Likewise.
8066 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
8069 * config/rs6000/default64.h: Revert ISA change.
8071 2015-01-16 Richard Biener <rguenther@suse.de>
8074 * tree-ssa-uninit.c: Include tree-cfg.h.
8075 (MAX_SWITCH_CASES): New define.
8076 (convert_control_dep_chain_into_preds): Handle switch statements.
8077 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
8078 (normalize_one_pred_1): Do not split bit-manipulations.
8081 2015-01-16 Richard Biener <rguenther@suse.de>
8083 PR tree-optimization/64568
8084 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
8085 complex load rewriting for TARGET_MEM_REFs.
8087 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
8089 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
8091 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
8094 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
8096 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
8097 (aarch64_lra_p): Remove.
8099 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
8102 * ipa-chkp.h (chkp_instrumentable_p): New.
8103 * ipa-chkp.c: Include tree-inline.h.
8104 (chkp_instrumentable_p): New.
8105 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
8106 Fix processing of not instrumentable functions.
8107 (chkp_versioning): Use chkp_instrumentable_p. Warn about
8108 not instrumentable functions.
8109 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
8110 chkp_instrumentable_p.
8111 * tree-inline.h (copy_forbidden): New.
8112 * tree-inline.c (copy_forbidden): Not static anymore.
8114 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8116 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
8119 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
8121 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
8122 type OP_OUT to OP_INOUT.
8124 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
8126 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
8127 (high x) y) to y if x and y have the same base.
8129 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
8131 * config/arm/cortex-a57.md: New.
8132 * config/aarch64/aarch64.md: Include it.
8133 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
8134 * config/aarch64/aarch64-tune.md: Regenerate.
8136 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
8139 * ccmp.c (expand_ccmp_next): New function.
8140 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
8141 and compare insn sequence.
8142 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
8143 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
8144 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
8145 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
8146 (*ccmp_ior): Changed to ccmp_ior<mode>.
8147 (cmp<mode>): New pattern.
8148 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
8150 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
8152 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
8154 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
8155 _mm256_bsrli_epi128): New.
8156 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
8158 2015-01-15 Jiong Wang <jiong.wang@arm.com>
8160 * expmed.c (store_bit_field_using_insv): Improve warning message.
8161 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
8163 2015-01-15 Jiong Wang <jiong.wang@arm.com>
8165 PR rtl-optimization/64011
8166 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
8167 there is partial overflow.
8169 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8171 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
8173 (nds32_expand_epilogue_v3pop): Likewise.
8174 * config/nds32/nds32.md (sibcall): Define this for sibling call
8176 (sibcall_register): Likewise.
8177 (sibcall_immediate): Likewise.
8178 (sibcall_value): Likewise.
8179 (sibcall_value_register): Likewise.
8180 (sibcall_value_immediate): Likewise.
8181 (sibcall_epilogue): Likewise.
8182 (epilogue): Pass false to indicate this is not a sibcall epilogue.
8183 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
8184 (nds32_expand_epilogue_v3pop): Likewise.
8186 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8188 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
8189 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
8190 (return_internal): New.
8191 (return): Define this named pattern.
8192 (simple_return): Define this named pattern.
8193 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
8194 pattern instead of unspec_volatile_func_return.
8195 (nds32_expand_epilogue_v3pop): Likewise.
8196 (nds32_can_use_return_insn): New function.
8198 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8200 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
8201 * config/nds32/nds32.md (pop25return): New.
8202 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
8203 pop25return pattern.
8205 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8207 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
8208 -mforbid-fp-as-gp, and -mex9 options.
8210 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8212 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
8213 remove -mgp-direct option.
8215 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8217 * doc/invoke.texi (--param early-inlining-insns): Update default value.
8218 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
8220 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8222 * ipa-inline.c (inline_small_functions): Work around hints
8225 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
8228 * doc/invoke.texi (Option Summary): Document new Nios II
8230 (Nios II Options): Likewise.
8231 * config/nios2/nios2.opt: Add -mgpopt= option support.
8232 Modify existing -mgpopt and -mno-gpopt options to be aliases.
8233 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
8234 * config/nios2/nios2.c (nios2_option_override): Adjust
8236 (nios2_in_small_data_p): Return true for explicit small data
8237 sections even with -G0.
8238 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
8241 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8244 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
8246 (inline_call): Fix removal of aliases.
8248 2015-01-15 Jakub Jelinek <jakub@redhat.com>
8250 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
8251 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
8252 * opts.c (common_handle_option): Add -fsanitize=vptr.
8253 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
8254 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
8255 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
8256 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
8257 (ubsan_expand_vptr_ifn): New prototype.
8258 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
8259 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
8260 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
8261 expand_LOOP_VECTORIZED): Make argument nameless, remove
8263 (expand_UBSAN_VPTR): New function.
8264 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
8266 (UBSAN_VPTR): New internal function.
8267 * sanopt.c (tree_map_traits): Renamed to ...
8268 (sanopt_tree_map_traits): ... this.
8269 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
8270 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
8271 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
8272 (maybe_optimize_ubsan_vptr_ifn): New function.
8273 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
8274 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
8276 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
8277 internal calls like pure functions for aliasing, even when they
8278 have other side-effects that prevent making them ECF_PURE.
8279 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
8280 (ubsan_expand_vptr_ifn): New function.
8282 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
8284 PR rtl-optimization/64110
8285 * stmt.c (parse_output_constraint): Process '^' and '$'.
8286 (parse_input_constraint): Ditto.
8287 * lra-constraints.c (process_alt_operands): Process the new
8289 * ira-costs.c (record_reg_classes): Process the new constraint
8291 * genoutput.c (indep_constraints): Add '^' and '$'.
8292 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
8293 * doc/md.texi: Add description of the new constraints.
8295 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8296 Bernd Schmidt <bernds@codesourcery.com>
8297 Cesar Philippidis <cesar@codesourcery.com>
8298 James Norris <jnorris@codesourcery.com>
8299 Tom de Vries <tom@codesourcery.com>
8300 Ilmir Usmanov <i.usmanov@samsung.com>
8301 Dmitry Bocharnikov <dmitry.b@samsung.com>
8302 Evgeny Gavrin <e.gavrin@samsung.com>
8303 Jakub Jelinek <jakub@redhat.com>
8305 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
8306 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8307 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8309 * builtins.c: Include "gomp-constants.h".
8310 (expand_builtin_acc_on_device): New function.
8311 (expand_builtin, is_inexpensive_builtin): Handle
8312 BUILT_IN_ACC_ON_DEVICE.
8313 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
8315 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
8317 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
8318 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
8319 i386/intelmic-offload.h.
8320 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
8321 to libgomp and its dependencies.
8322 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
8323 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8324 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8325 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8326 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8327 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8328 * doc/generic.texi: Update for OpenACC changes.
8329 * doc/gimple.texi: Likewise.
8330 * doc/invoke.texi: Likewise.
8331 * doc/sourcebuild.texi: Likewise.
8332 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8333 GF_OMP_FOR_KIND_OACC_LOOP.
8334 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
8335 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
8336 GF_OMP_TARGET_KIND_OACC_UPDATE,
8337 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8339 * gimple.c: Update comments for OpenACC changes.
8340 * gimple.def: Likewise.
8341 * gimple.h: Likewise.
8342 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
8343 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8344 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
8345 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8346 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
8348 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
8349 * gimplify.c: Include "gomp-constants.h".
8350 Update comments for OpenACC changes.
8351 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
8352 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
8353 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8354 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8355 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8356 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8357 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
8358 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8359 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
8361 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
8362 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
8363 OMP_CLAUSE_SET_MAP_KIND.
8364 (gimplify_oacc_cache): New function.
8365 (gimplify_omp_for): Handle OACC_LOOP.
8366 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
8368 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
8369 OACC_EXIT_DATA, OACC_UPDATE.
8370 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
8371 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
8372 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
8373 (gimplify_body): Consider flag_openacc next to flag_openmp.
8374 * lto-streamer-out.c: Include "gomp-constants.h".
8375 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
8376 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
8377 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
8378 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
8379 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
8380 (BUILT_IN_ACC_ON_DEVICE): New builtins.
8381 * omp-low.c: Include "gomp-constants.h".
8382 Update comments for OpenACC changes.
8383 (struct omp_context): Add reduction_map, gwv_below, gwv_this
8385 (extract_omp_for_data, use_pointer_for_field, install_var_field)
8386 (new_omp_context, delete_omp_context, scan_sharing_clauses)
8387 (create_omp_child_function, scan_omp_for, scan_omp_target)
8388 (check_omp_nesting_restrictions, lower_reduction_clauses)
8389 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
8390 Update for OpenACC changes.
8391 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
8392 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
8393 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
8394 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8395 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
8396 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
8398 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8399 Handle GF_OMP_FOR_KIND_OACC_LOOP.
8400 (expand_omp_target, lower_omp_target): Handle
8401 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8402 GF_OMP_TARGET_KIND_OACC_UPDATE,
8403 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
8404 GF_OMP_TARGET_KIND_OACC_DATA.
8405 (pass_expand_omp::execute, execute_lower_omp)
8406 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
8408 (offload_symbol_decl): New variable.
8409 (oacc_get_reduction_array_id, oacc_max_threads)
8410 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
8411 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
8412 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
8413 (oacc_gimple_assign, oacc_initialize_reduction_data)
8414 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
8416 (is_targetreg_ctx): Remove function.
8417 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
8418 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
8419 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8420 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
8421 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
8422 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
8423 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
8424 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
8425 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
8426 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
8427 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
8428 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
8429 * tree-core.h: Update comments for OpenACC changes.
8430 (enum omp_clause_map_kind): Remove.
8431 (struct tree_omp_clause): Change type of map_kind member from enum
8432 omp_clause_map_kind to unsigned char.
8433 * tree-inline.c: Update comments for OpenACC changes.
8434 * tree-nested.c: Likewise. Include "gomp-constants.h".
8435 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
8436 (convert_tramp_reference_stmt, convert_gimple_call): Update for
8437 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
8438 OMP_CLAUSE_SET_MAP_KIND.
8439 * tree-pretty-print.c: Include "gomp-constants.h".
8440 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
8441 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
8442 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
8443 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
8444 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8445 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
8446 instead of OMP_CLAUSE_MAP_*.
8447 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
8448 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
8449 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8450 * tree-streamer-in.c: Include "gomp-constants.h".
8451 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
8452 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
8453 * tree-streamer-out.c: Include "gomp-constants.h".
8454 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
8456 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
8457 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
8458 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
8459 * tree.c (omp_clause_num_ops): Update accordingly.
8460 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
8462 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
8463 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
8464 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
8465 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
8466 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
8467 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
8468 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
8469 (OMP_CLAUSE_SET_MAP_KIND): New macro.
8470 * varpool.c (varpool_node::get_create): Consider flag_openacc next
8472 * config/i386/intelmic-offload.h: New file.
8473 * config/nvptx/offload.h: Likewise.
8475 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8477 * explow.h: Remove duplicate contents.
8478 * dojump.h: Likewise.
8480 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
8482 * arm.c (arm_xgene_tune): Add default initializer for instruction
8485 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8489 * ipa.c (symbol_table::remove_unreachable_nodes):
8490 Do not put abstract origins into boundary.
8492 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
8494 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
8495 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
8497 2015-01-15 Steve Ellcey <sellcey@mips.com>
8499 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
8500 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
8501 builtins.def, and chkp-builtins.def.
8503 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
8505 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
8508 2015-01-15 Richard Biener <rguenther@suse.de>
8510 PR tree-optimization/61743
8511 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
8512 information on PHIs for some simple cases.
8514 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8516 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
8518 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
8519 * config/arm/arm-cores.def (xgene1): New entry.
8520 * config/arm/arm-tables.opt: Regenerate.
8521 * config/arm/arm-tune.md: Regenerate.
8522 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
8524 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
8526 * tree-if-conv.c: Include hash-map.h.
8527 (aggressive_if_conv): New variable.
8528 (fold_build_cond_expr): Add simplification of non-zero condition.
8529 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
8530 destination block is not always executed.
8531 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
8532 than two predecessors if AGGRESSIVE_IF_CONV is true.
8533 (if_convertible_stmt_p): Fix commentary.
8534 (all_preds_critical_p): New function.
8535 (has_pred_critical_p): New function.
8536 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
8537 BB can have more than two predecessors and all incoming edges can be
8539 (predicate_bbs): Skip predication for loop exit block, use build2_loc
8540 to compute predicate for true edge.
8541 (find_phi_replacement_condition): Delete this function.
8542 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
8543 Allow interchange PHI arguments if EXTENDED is false.
8544 Change check that block containing reduction statement candidate
8545 is predecessor of phi-block since phi may have more than two arguments.
8546 (phi_args_hash_traits): New helper structure.
8547 (struct phi_args_hash_traits): New type.
8548 (phi_args_hash_traits::hash): New function.
8549 (phi_args_hash_traits::equal_keys): New function.
8550 (gen_phi_arg_condition): New function.
8551 (predicate_scalar_phi): Add handling of phi nodes with more than two
8552 arguments, delete COND and TRUE_BB arguments, insert body of
8553 find_phi_replacement_condition to predicate ordinary phi nodes.
8554 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
8555 delete call of find_phi_replacement_condition and invoke
8556 predicate_scalar_phi with two arguments.
8557 (insert_gimplified_predicates): Add assert that non-predicated block
8558 don't have statements to insert.
8559 (ifcvt_split_critical_edges): New function.
8560 (ifcvt_split_def_stmt): Likewise.
8561 (ifcvt_walk_pattern_tree): Likewise.
8562 (stmt_is_root_of_bool_pattern): Likewise.
8563 (ifcvt_repair_bool_pattern): Likewise.
8564 (ifcvt_local_dce): Likewise.
8565 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
8566 is copy of inner or outer loop force_vectorize field, invoke
8567 ifcvt_split_critical_edges, ifcvt_local_dce and
8568 ifcvt_repair_bool_pattern for aggressive if-conversion.
8570 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
8572 * config/aarch64/aarch64.md: Include xgene1.md.
8573 * config/aarch64/xgene1.md: New file.
8575 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8577 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
8578 xgene1 (APM XGene-1) core definition.
8579 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
8580 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
8581 * doc/invoke.texi: Document -mcpu=xgene1.
8583 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8585 * dojump.h: New header file.
8586 * explow.h: Likewise.
8587 * expr.h: Remove includes.
8588 Move expmed.c prototypes to expmed.h.
8589 Move dojump.c prototypes to dojump.h.
8590 Move alias.c prototypes to alias.h.
8591 Move explow.c prototypes to explow.h.
8592 Move calls.c prototypes to calls.h.
8593 Move emit-rtl.c prototypes to emit-rtl.h.
8594 Move varasm.c prototypes to varasm.h.
8595 Move stmt.c prototypes to stmt.h.
8596 (saved_pending_stack_adjust): Move to dojump.h.
8597 (adjust_address): Move to explow.h.
8598 (adjust_address_nv): Move to emit-rtl.h.
8599 (adjust_bitfield_address): Likewise.
8600 (adjust_bitfield_address_size): Likewise.
8601 (adjust_bitfield_address_nv): Likewise.
8602 (adjust_automodify_address_nv): Likewise.
8603 * explow.c (expr_size): Move to expr.c.
8604 (int_expr_size): Likewise.
8605 (tree_expr_size): Likewise.
8606 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8607 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8608 * genemit.c (main): Generate includes statistics.h, real.h,
8609 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
8611 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
8612 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
8613 explow.h, emit-rtl.h, stmt.h.
8614 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
8615 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
8616 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
8617 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
8618 emit-rtl.h, varasm.h, stmt.h.
8619 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
8620 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
8621 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
8622 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
8623 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
8624 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
8625 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
8626 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
8627 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
8628 tm.h tree.h varasm.h vec.h wide-int.h.
8629 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8630 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8631 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
8632 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
8633 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
8634 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
8635 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
8636 * loop-iv.c: Likewise.
8637 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
8638 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
8639 statistics.h stmt.h tree.h varasm.h wide-int.h.
8640 * lra-constraints.c: Likewise.
8641 * lra-eliminations.c: Likewise.
8642 * lra-lives.c: Likewise.
8643 * lra-remat.c: Likewise.
8644 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8645 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
8646 statistics.h stmt.h tree.h varasm.h wide-int.h.
8647 * hw-doloop.c: Likewise.
8648 * ira-color.c: Likewise.
8649 * ira-emit.c: Likewise.
8650 * loop-doloop.c: Likewise.
8651 * loop-invariant.c: Likewise.
8652 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8653 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
8654 statistics.h stmt.h tree.h varasm.h wide-int.h.
8655 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
8656 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
8657 statistics.h stmt.h tree.h varasm.h wide-int.h.
8658 * combine-stack-adj.c: Likewise.
8661 * ifcvt.c: Likewise.
8662 * ira-costs.c: Likewise.
8664 * lra-coalesce.c: Likewise.
8665 * lra-spills.c: Likewise.
8666 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8667 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
8668 stmt.h varasm.h wide-int.h.
8669 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8670 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8672 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
8673 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
8674 statistics.h stmt.h varasm.h wide-int.h.
8675 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
8676 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
8677 varasm.h wide-int.h.
8678 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
8679 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8680 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
8681 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
8682 statistics.h stmt.h.
8683 * config/tilepro/tilepro.c: Likewise.
8684 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
8685 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
8686 * config/pdp11/pdp11.c: Likewise.
8687 * config/xtensa/xtensa.c: Likewise.
8688 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
8689 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8691 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8692 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8693 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
8694 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8695 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8696 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
8697 * rtl-chkp.c: Likewise.
8698 * tree-chkp-opt.c: Likewise.
8699 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
8700 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8701 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
8702 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8703 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8704 statistics.h stmt.h.
8705 * tree-vect-data-refs.c: Likewise.
8706 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
8707 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8708 rtl.h statistics.h stmt.h varasm.h.
8709 * internal-fn.c: Likewise.
8710 * ipa-icf-gimple.c: Likewise.
8711 * lto-section-out.c: Likewise.
8712 * tree-data-ref.c: Likewise.
8713 * tree-nested.c: Likewise.
8714 * tree-outof-ssa.c: Likewise.
8715 * tree-predcom.c: Likewise.
8716 * tree-pretty-print.c: Likewise.
8717 * tree-scalar-evolution.c: Likewise.
8718 * tree-ssa-strlen.c: Likewise.
8719 * tree-vect-loop.c: Likewise.
8720 * tree-vect-patterns.c: Likewise.
8721 * tree-vect-slp.c: Likewise.
8722 * tree-vect-stmts.c: Likewise.
8724 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8725 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
8727 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
8728 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8729 statistics.h stmt.h varasm.h.
8730 * loop-unroll.c: Likewise.
8731 * ubsan.c: Likewise.
8732 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
8733 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
8735 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8736 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
8737 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
8738 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8739 statistics.h stmt.h.
8740 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
8741 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8742 statistics.h stmt.h varasm.h.
8743 * gimple-match-head.c: Likewise.
8744 * lto-cgraph.c: Likewise.
8745 * lto-section-in.c: Likewise.
8746 * lto-streamer-in.c: Likewise.
8747 * lto-streamer-out.c: Likewise.
8748 * tree-affine.c: Likewise.
8749 * tree-cfg.c: Likewise.
8750 * tree-cfgcleanup.c: Likewise.
8751 * tree-if-conv.c: Likewise.
8752 * tree-into-ssa.c: Likewise.
8753 * tree-ssa-alias.c: Likewise.
8754 * tree-ssa-copyrename.c: Likewise.
8755 * tree-ssa-dse.c: Likewise.
8756 * tree-ssa-forwprop.c: Likewise.
8757 * tree-ssa-live.c: Likewise.
8758 * tree-ssa-math-opts.c: Likewise.
8759 * tree-ssa-pre.c: Likewise.
8760 * tree-ssa-sccvn.c: Likewise.
8761 * tree-tailcall.c: Likewise.
8762 * tree-vect-generic.c: Likewise.
8763 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8764 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
8765 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8766 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
8767 * varasm.c: Likewise.
8768 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8769 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
8771 * init-regs.c: Likewise.
8773 * omp-low.c: Likewise.
8774 * stack-ptr-mod.c: Likewise.
8775 * tree-ssa-reassoc.c: Likewise.
8776 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8777 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
8779 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8780 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
8781 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8782 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
8783 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8784 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
8785 * tree-ssa-phiopt.c: Likewise.
8786 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8787 fixed-value.h hashtab.h real.h statistics.h stmt.h.
8788 * config/fr30/fr30.c: Likewise.
8789 * config/frv/frv.c: Likewise.
8791 * final.c: Likewise.
8792 * optabs.c: Likewise.
8793 * passes.c: Likewise.
8794 * simplify-rtx.c: Likewise.
8796 * toplev.c: Likewise.
8797 * var-tracking.c: Likewise.
8798 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8799 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8800 * lower-subreg.c: Likewise.
8801 * postreload-gcse.c: Likewise.
8803 * reginfo.c: Likewise.
8804 * store-motion.c: Likewise.
8805 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8806 fixed-value.h hashtab.h real.h stmt.h varasm.h.
8807 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8808 fixed-value.h hashtab.h statistics.h stmt.h.
8809 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8810 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8811 * except.c: Likewise.
8812 * explow.c: Likewise.
8813 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8814 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
8816 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8817 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
8818 * tree-ssa-structalias.c: Likewise.
8819 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8820 fixed-value.h insn-config.h real.h statistics.h.
8821 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8822 fixed-value.h insn-config.h real.h statistics.h stmt.h.
8823 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8824 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8825 * cfgbuild.c: Likewise.
8826 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8827 fixed-value.h real.h rtl.h statistics.h stmt.h.
8828 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8829 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8830 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8831 fixed-value.h real.h statistics.h stmt.h.
8832 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8833 fixed-value.h real.h statistics.h stmt.h varasm.h.
8834 * cprop.c: Likewise.
8835 * modulo-sched.c: Likewise.
8836 * postreload.c: Likewise.
8837 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8838 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
8839 statistics.h stmt.h varasm.h.
8840 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
8841 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8842 rtl.h statistics.h stmt.h varasm.h.
8843 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
8844 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
8846 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8847 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
8849 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
8850 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
8852 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
8853 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8854 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8855 function.h real.h statistics.h stmt.h varasm.h.
8856 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8857 insn-config.h real.h statistics.h stmt.h.
8858 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8859 statistics.h stmt.h.
8860 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
8861 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
8862 statistics.h stmt.h varasm.h.
8863 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
8864 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
8865 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8866 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
8867 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
8868 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8869 statistics.h stmt.h varasm.h.
8870 * ipa-polymorphic-call.c: Likewise.
8871 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
8872 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8873 statistics.h stmt.h.
8874 * config/c6x/c6x.c: Likewise.
8875 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
8876 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8877 statistics.h stmt.h varasm.h.
8878 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
8879 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
8881 * ipa-split.c: Likewise.
8882 * tree-eh.c: Likewise.
8883 * tree-ssa-dce.c: Likewise.
8884 * tree-ssa-loop-niter.c: Likewise.
8885 * tree-vrp.c: Likewise.
8886 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
8887 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
8889 * config/nds32/nds32-fp-as-gp.c: Likewise.
8890 * config/nds32/nds32-intrinsic.c: Likewise.
8891 * config/nds32/nds32-isr.c: Likewise.
8892 * config/nds32/nds32-md-auxiliary.c: Likewise.
8893 * config/nds32/nds32-memory-manipulation.c: Likewise.
8894 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8895 * config/nds32/nds32-predicates.c: Likewise.
8896 * config/nds32/nds32.c: Likewise.
8897 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
8898 fixed-value.h hashtab.h real.h statistics.h.
8899 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
8900 fixed-value.h hashtab.h real.h statistics.h stmt.h.
8901 * config/arm/arm.c: Likewise.
8902 * config/avr/avr.c: Likewise.
8903 * config/bfin/bfin.c: Likewise.
8904 * config/h8300/h8300.c: Likewise.
8905 * config/i386/i386.c: Likewise.
8906 * config/ia64/ia64.c: Likewise.
8907 * config/iq2000/iq2000.c: Likewise.
8908 * config/m32c/m32c.c: Likewise.
8909 * config/m32r/m32r.c: Likewise.
8910 * config/m68k/m68k.c: Likewise.
8911 * config/mcore/mcore.c: Likewise.
8912 * config/mep/mep.c: Likewise.
8913 * config/mips/mips.c: Likewise.
8914 * config/mn10300/mn10300.c: Likewise.
8915 * config/moxie/moxie.c: Likewise.
8916 * config/pa/pa.c: Likewise.
8917 * config/rl78/rl78.c: Likewise.
8918 * config/rx/rx.c: Likewise.
8919 * config/s390/s390.c: Likewise.
8920 * config/sh/sh.c: Likewise.
8921 * config/sparc/sparc.c: Likewise.
8922 * config/spu/spu.c: Likewise.
8923 * config/stormy16/stormy16.c: Likewise.
8924 * config/v850/v850.c: Likewise.
8925 * config/vax/vax.c: Likewise.
8926 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
8927 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8928 * config/msp430/msp430.c: Likewise.
8929 * predict.c: Likewise.
8930 * value-prof.c: Likewise.
8931 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
8932 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
8933 * config/microblaze/microblaze.c: Likewise.
8934 * config/nios2/nios2.c: Likewise.
8935 * config/rs6000/rs6000.c: Likewise.
8936 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8937 insn-config.h real.h rtl.h statistics.h stmt.h.
8938 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8939 insn-config.h real.h statistics.h stmt.h.
8940 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
8941 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8942 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
8943 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8944 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
8945 fixed-value.h real.h statistics.h stmt.h.
8946 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
8947 fixed-value.h statistics.h stmt.h.
8948 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
8951 2015-01-15 Jakub Jelinek <jakub@redhat.com>
8953 * gengtype.c (create_user_defined_type): Workaround
8954 -Wmaybe-uninitialized false positives.
8955 * cse.c (fold_rtx): Likewise.
8956 * loop-invariant.c (gain_for_invariant): Likewise.
8958 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
8960 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
8961 set the memory attributes in all cases but clear MEM_EXPR if need be.
8963 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
8965 PR tree-optimization/64434
8966 * cfgexpand.c (reorder_operands): New function.
8967 (expand_gimple_basic_block): Insert call of reorder_operands if
8970 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
8972 * config/mips/micromips.md (*swp): Remove explicit parallel.
8973 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
8974 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
8975 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
8976 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
8977 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
8978 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
8979 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
8980 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
8981 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
8982 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
8983 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
8984 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
8985 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
8986 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
8987 (mips_wrdsp): Likewise.
8988 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
8990 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
8991 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
8992 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
8993 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
8994 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
8995 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
8996 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
8997 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
8998 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
9000 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
9002 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
9003 (mips_print_operand): Support 'y' to print exact log2 in decimal
9005 * config/mips/mips.h (ISA_HAS_LSA): New define.
9006 (ISA_HAS_DLSA): Likewise.
9007 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
9008 * config/mips/predicates.md (const_immlsa_operand): New predicate.
9010 2015-01-15 Martin Liska <mliska@suse.cz>
9013 * optc-save-gen.awk: Add support for array types.
9015 2015-01-15 Richard Biener <rguenther@suse.de>
9018 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
9019 for MEM_REF access functions with the same base can never partially
9022 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
9024 * common.opt: New option -fstack-protector-explicit.
9025 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
9026 (stack_protect_decl_phase): Handle stack_protect attribute for
9027 explicit stack protection requests.
9028 (expand_used_vars): Similarly.
9029 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
9030 * doc/extend.texi: Add documentation for "stack_protect" attribute.
9031 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
9033 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
9036 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
9038 (sh_extending_set_of_reg): New struct.
9039 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
9040 sh_remove_reg_dead_or_unused_notes): New Declarations.
9041 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
9042 sh_find_extending_set_of_reg, sh_split_tst_subregs,
9043 sh_extending_set_of_reg::use_as_extended_reg): New functions.
9044 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
9045 convert to insn_and_split and use new function sh_split_tst_subregs.
9047 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
9049 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
9051 (Optimization Options): Move -fuse-ld documentation to...
9052 (Link Options): ...here.
9054 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
9056 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
9058 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
9059 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
9060 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
9061 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
9062 instead of ZR for the memory operand of LL/SC.
9063 (compare_and_swap_12, sync_add<mode>): Likewise.
9064 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
9065 (sync_new_<optab>_12, sync_nand_12): Likewise.
9066 (sync_old_nand_12, sync_new_nand_12): Likewise.
9067 (sync_sub<mode>, sync_old_add<mode>): Likewise.
9068 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
9069 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
9070 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
9071 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
9072 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
9073 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
9074 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
9075 * doc/md.texi (ZC): Update description.
9077 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
9079 * builtins.c (expand_builtin_atomic_exchange): Remove error when
9080 memory model is CONSUME.
9081 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
9082 expand_builtin_atomic_store): Change invalid memory model errors to
9084 (expand_builtin_atomic_clear): Change invalid model errors to warnings
9085 and issue warning for CONSUME.
9087 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
9089 * lto-cgraph: Update function comments for
9090 lto_symtab_encoder_encode_*.
9092 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
9094 * Makefile.in (site.exp): Do not set ENABLE_LTO.
9096 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
9098 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
9099 * lto-cgraph.c (select_what_to_stream): Remove argument, use
9100 lto_stream_offload_p instead.
9101 * lto-streamer.h (select_what_to_stream): Remove argument.
9102 * passes.c (ipa_write_summaries): Likewise.
9103 * tree-pass.h (ipa_write_summaries): Likewise.
9105 2015-01-14 Richard Biener <rguenther@suse.de>
9107 PR tree-optimization/59354
9108 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
9109 groups larger than the slp group size as having gaps.
9111 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
9114 * builtins.c (get_memmodel): Promote consume to acquire always.
9116 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9119 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
9122 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9125 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
9127 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
9128 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
9129 AVX512VBMI, as it implies AVX512BW.
9131 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9134 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
9135 (vec_unpacks_hi_v16sf): Ditto.
9137 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9139 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
9142 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9144 * doc/invoke.texi (mapcs): Mention deprecation.
9145 (mapcs-frame): Likewise.
9147 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9150 * config/arm/arm.c (callee_saved_reg_p): Define.
9151 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
9152 register is callee saved instead of !call_used_regs[reg].
9153 (thumb1_compute_save_reg_mask): Likewise.
9155 2015-01-14 Hale Wang <hale.wang@arm.com>
9157 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
9160 2015-01-14 Richard Biener <rguenther@suse.de>
9163 * tree-inline.c (insert_debug_decl_map): Check destination
9164 function MAY_HAVE_DEBUG_STMTS.
9165 (insert_init_debug_bind): Likewise.
9166 (insert_init_stmt): Remove redundant check.
9167 (remap_gimple_stmt): Drop debug stmts if the destination
9168 function has var-tracking assignments disabled.
9170 2015-01-14 Martin Liska <mliska@suse.cz>
9172 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
9173 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
9175 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9178 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
9179 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
9181 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
9183 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
9184 level from an ARCH; do not inject the default.
9185 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
9186 MIPS_ISA_LEVEL_SPEC.
9187 (MIPS_ISA_NAN2008_SPEC): Update comment.
9188 (BASE_DRIVER_SELF_SPECS): Likewise.
9189 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
9190 MIPS_DEFAULT_ISA_LEVEL_SPEC.
9191 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
9192 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
9193 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
9195 2015-01-14 Richard Biener <rguenther@suse.de>
9197 PR tree-optimization/64493
9198 PR tree-optimization/64495
9199 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
9200 assign the proper vectorized PHI to the inner loop exit PHIs.
9202 2015-01-14 Joey Ye <joey.ye@arm.com>
9204 * config/arm/arm.c (arm_compute_save_reg_mask):
9205 Do not save lr in case of tail call.
9206 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
9208 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
9210 * tree-vrp.c (check_array_ref): Emit more warnings
9211 for warn_array_bounds >= 2.
9212 * common.opt: New option -Warray-bounds=.
9213 * doc/invoke.texi: Document -Warray-bounds=.
9215 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
9217 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
9218 (mforbid-fp-as-gp): Remove.
9220 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
9221 (nds32_symbol_load_store_p): Remove.
9222 (nds32_fp_as_gp_check_available): Clean up implementation.
9223 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
9225 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
9226 fp-as-gp and ex9 cases.
9228 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
9230 * tree-profile.c (init_ic_make_global_vars): Drop workaround
9231 for bintuils bug 14342.
9232 (init_ic_make_global_vars): Likewise.
9233 (gimple_init_edge_profiler): Likewise.
9234 (gimple_gen_ic_func_profiler): Likewise.
9236 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9238 * ipa-inline.c (inline_small_functions): Swap the operands in
9241 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
9244 * ipa-inline-analysis.c (node_growth_cache): Remove.
9245 (initialize_growth_caches): Do not initialize it.
9246 (free_growth_caches): Do not free it.
9247 (do_estimate_growth): Rename to ...
9248 (estimate_growth): ... this one; drop growth cache code.
9249 (growth_likely_positive): Always go the heuristics way.
9250 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
9251 (reset_edge_caches): Do not reset node growth.
9252 (heap_edge_removal_hook): Do not maintain cache.
9253 (inline_small_functions): Likewise; strenghten sanity check.
9254 (ipa_inline): Do not maintain caches.
9255 * ipa-inline.h (node_growth_cache): Remove.
9256 (do_estimate_growth): Remove to ...
9257 (estimate_growth): this one; remove inline version.
9258 (reset_node_growth_cache): Remove.
9260 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
9263 * ipa-inline.c (inline_small_functions): Update callee keys after
9264 resolving speculation
9265 (inline_small_functions): Always check monotonicity of the queue.
9267 2015-01-13 Marek Polacek <polacek@redhat.com>
9270 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
9272 2015-01-13 Jakub Jelinek <jakub@redhat.com>
9274 PR rtl-optimization/64286
9275 * ree.c (combine_reaching_defs): Move part of comment earlier,
9276 remove !SCALAR_INT_MODE_P check.
9277 (add_removable_extension): Don't add vector mode
9278 extensions if all uses of the source register aren't the same
9281 2015-01-13 Renlin Li <renlin.li@arm.com>
9283 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
9284 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9286 2015-01-13 Martin Liska <mliska@suse.cz>
9288 * ipa-icf.c (sem_function::equals_private): Call new functions
9289 cl_target_option_print_diff and cl_optimization_print_diff.
9290 * optc-save-gen.awk (cl_target_option_print_diff): New function.
9291 (cl_optimization_print_diff): Likewise.
9292 * opth-gen.awk: Likewise.
9294 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
9296 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
9297 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
9298 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
9299 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
9300 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
9301 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
9303 2015-01-13 Andrew Pinski <apinski@cavium.com>
9305 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
9306 instead of src mode.
9308 2015-01-13 Richard Biener <rguenther@suse.de>
9311 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
9314 2015-01-13 Andrew Pinski <apinski@cavium.com>
9316 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
9318 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9320 2015-01-13 Jakub Jelinek <jakub@redhat.com>
9323 * cfgexpand.c (expand_computed_goto): Don't call
9324 convert_memory_address here.
9326 2015-01-13 Richard Biener <rguenther@suse.de>
9328 PR tree-optimization/64406
9329 * tree-loop-distibution.c (pass_loop_distribution::execute):
9330 Reset the SCEV hashtable if we distributed anything.
9332 2015-01-13 Richard Biener <rguenther@suse.de>
9334 PR tree-optimization/64404
9335 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
9336 SLP types for CSEd loads.
9338 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9340 PR tree-optimization/64436
9341 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
9342 merge of two symbolic numbers for a bitwise OR to ...
9343 (perform_symbolic_merge): This. Also fix computation of the range and
9344 end of the symbolic number corresponding to the result of a bitwise OR.
9346 2015-01-13 Richard Biener <rguenther@suse.de>
9348 PR tree-optimization/64568
9349 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
9350 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
9352 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9354 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
9355 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
9357 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9359 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
9360 target-specific symbol_ref flag.
9361 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
9362 resides in rodata section.
9363 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
9364 (nds32_encode_section_info): New function.
9366 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9368 * config/nds32/nds32.md (call): Use pseudo instruction bal which
9369 clobbers TA_REGNUM if large code model is specified.
9370 (call_register): Likewise.
9371 (call_immediate): Likewise.
9372 (call_value): Likewise.
9373 (call_value_register): Likewise.
9374 (call_value_immediate): Likewise.
9376 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9378 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
9379 (TARGET_CMODEL_MEDIUM): New macro.
9380 (TARGET_CMODEL_LARGE): New macro.
9381 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
9382 code model setting in assembly code.
9384 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9386 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
9387 Remove MASK_GP_DIRECT flag.
9388 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
9389 one of the multilib default options.
9390 * config/nds32/nds32.opt (mgp-direct): Remove.
9391 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
9392 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
9394 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9396 * config/nds32/nds32.opt (mcmodel): Add new option.
9397 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
9398 to describe code model.
9400 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
9403 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
9405 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
9407 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
9408 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
9409 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
9410 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
9411 __builtin_sh_set_fpscr.
9413 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
9415 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
9416 after a funtion name just to indicate it is a function.
9417 ([-fsanitize-undefined-trap-on-error]): Likewise.
9418 ([-fdbg-cnt=]): Likewise.
9419 ([-mmemcpy]): Likewise.
9420 ([-mflush-func]): Likewise.
9421 ([-msynci]): Likewise.
9423 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
9425 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
9428 2015-01-12 Jakub Jelinek <jakub@redhat.com>
9430 PR tree-optimization/64563
9431 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
9432 instead of != VR_VARYING.
9435 * config/i386/i386.c (ix86_expand_prologue): Add
9436 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
9438 PR tree-optimization/64454
9439 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
9440 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
9441 for signed or [0, op1 - 1] for unsigned modulo.
9442 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9443 even if op1 does not satisfy integer_pow2p.
9446 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
9448 2015-01-12 Jeff Law <law@redhat.com>
9451 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
9452 (trunchiqi2, truncsihi2): Similarly.
9454 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
9455 rather than calling F.
9457 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
9459 * tsan.c (instrument_expr): Use force_gimple_operand.
9460 Use may_be_nonaddressable_p instead of is_gimple_addressable.
9462 2015-01-12 Richard Biener <rguenther@suse.de>
9464 PR tree-optimization/64530
9465 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
9468 2015-01-12 Richard Biener <rguenther@suse.de>
9471 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
9474 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9476 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
9477 Cortex-A17 tuning parameters.
9478 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
9480 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9482 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
9483 * config/arm/arm.c (arm_macro_fusion_p): New function.
9484 (arm_macro_fusion_pair_p): Likewise.
9485 (TARGET_SCHED_MACRO_FUSION_P): Define.
9486 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
9487 (ARM_FUSE_NOTHING): Likewise.
9488 (ARM_FUSE_MOVW_MOVT): Likewise.
9489 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
9490 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
9491 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
9492 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
9493 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
9494 arm_cortex_a5_tune): Specify fuseable_ops value.
9496 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
9499 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
9500 test for PIE with copy reloc.
9501 * configure: Regenerated.
9503 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9505 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
9507 (arm_tls_descseq_addr): Likewise.
9508 (arm_gen_movmemqi): Likewise.
9509 (arm_expand_epilogue_apcs_frame): Likewise.
9510 (arm_expand_epilogue): Likewise.
9511 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
9514 2015-01-12 Martin Liska <mliska@suse.cz>
9517 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
9518 volatility for correct operands.
9520 2015-01-12 Martin Liska <mliska@suse.cz>
9522 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9523 that a function is not leaf.
9524 (sem_function::compare_polymorphic_p): Likewise.
9526 2015-01-12 Martin Liska <mliska@suse.cz>
9528 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9529 that a function is not leaf.
9530 (sem_function::compare_polymorphic_p): Likewise.
9532 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9534 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
9535 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
9536 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
9537 fold-const.h, tree-check.h.
9539 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
9543 * ipa-inline.c (compute_uninlined_call_time,
9544 compute_inlined_call_time): Use counts for extra precision when
9546 (big_speedup_p): Fix formating.
9547 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
9548 (relative_time_benefit): Remove.
9549 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
9550 merge guessed and read profile paths.
9551 (inline_small_functions): Count only !optimize_size functions into
9552 initial size; be more lax about sanity check when profile is used;
9553 be sure to update inlined function profile when profile is read.
9555 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
9558 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
9559 cost when edge becomes direct.
9560 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
9561 is resolved or when introducing new speculation.
9563 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
9567 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
9568 '||' to fix typo issue.
9570 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
9571 accept and return NULL.
9573 2015-01-12 Martin Liska <mliska@suse.cz>
9575 * cgraph.c (cgraph_edge::remove_callee): Move function to header
9576 file for being inlined.
9577 (cgraph_set_edge_callee): Delete.
9578 (cgraph_edge::redirect_callee): Move function to header file
9580 (cgraph_edge::make_direct): Use new function.
9581 (cgraph_edge::dump_edge_flags): New function created from
9582 static dump_edge_flags function.
9583 (cgraph_node::dump): Use new function.
9584 (cgraph_edge::verify_count_and_frequency): New function created
9585 from verify_edge_count_and_frequency.
9586 (cgraph_edge::verify_corresponds_to_fndecl): New function created
9587 from verify_edge_corresponds_to_fndecl.
9588 (verify_edge_corresponds_to_fndecl): Delete.
9589 (cgraph_node::verify_node): Use new function.
9590 * cgraph.h (cgraph_edge::set_callee): New function.
9591 (cgraph_edge::dump_edge_flags): Likewise.
9592 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
9594 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
9596 * ipa-utils.c (estimate_function_body_sizes): Do not
9597 free node params when called late with early=true.
9599 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
9601 * doc/md.texi (Instruction Patterns): Rewrite text for
9603 (Example): Likewise.
9605 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
9607 * doc/invoke.texi (Option Summary): Break long lines.
9608 [(-fdiagnostics-color)]: Put long literal in @smallexample
9610 [(-fsanitize-recover)]: Likewise.
9611 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
9612 [(-ffast-math)]: Likewise.
9613 [(--param max-inline-insns-recursive)]: Likewise.
9614 [(--param max-inline-recursive-depth)]: Likewise.
9615 [(-mno-text-section-literals)]: Likewise.
9617 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9619 * doc/install.texi: Update for libgomp being renamed from "GNU
9620 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
9622 * doc/sourcebuild.texi: Likewise.
9624 2015-01-10 Anthony Green <green@moxielogic.com>
9626 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
9627 mul.x availability for moxiebox configuration.
9629 2015-01-09 Anthony Green <green@moxielogic.com>
9631 * config/moxie/moxie.md: Tabify assembly output.
9633 2015-01-09 Anthony Green <green@moxielogic.com>
9635 * config/moxie/moxie.md (CC_REG): Correct register definition.
9637 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
9639 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
9640 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
9643 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9645 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
9647 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
9648 Jakub Jelinek <jakub@redhat.com>
9651 * lto-streamer.h (lto_stream_offload_p): New declaration.
9652 * lto-streamer.c (lto_stream_offload_p): New variable.
9653 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
9654 at the same time as section_name_prefix.
9655 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
9656 if lto_stream_offload_p.
9657 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
9658 stream TREE_TARGET_OPTION if lto_stream_offload_p.
9659 (write_ts_function_decl_tree_pointers): Don't
9660 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
9661 * tree-streamer-in.c (unpack_value_fields): Don't stream
9662 TREE_TARGET_OPTION in if ACCEL_COMPILER.
9663 (lto_input_ts_function_decl_tree_pointers): Don't stream
9664 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
9665 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
9666 instead of section_name_prefix string comparisons.
9668 2015-01-09 Jakub Jelinek <jakub@redhat.com>
9670 PR rtl-optimization/64536
9671 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
9674 2015-01-09 Michael Collison <michael.collison@linaro.org>
9676 PR tree-optimization/64322
9677 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
9678 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
9680 2015-01-09 Tom de Vries <tom@codesourcery.com>
9682 PR rtl-optimization/64539
9683 * regcprop.c (kill_clobbered_values): Factor out of ...
9684 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
9685 instead of note_stores with kill_clobbered_value.
9687 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9689 * ginclude/unwind-arm-common.h: Revert previous commit.
9691 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9693 * config.gcc (arm*-*-freebsd*): New configuration.
9694 * config/arm/freebsd.h: New file.
9695 * config.host: Add extra components for arm*-*-freebsd*.
9696 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
9697 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
9699 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9701 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
9703 * config/rs6000/t-rtems: Add e6500 multilibs.
9705 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9707 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
9710 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9712 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
9713 MULTILIB_EXCEPTIONS.
9715 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9717 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
9718 MULTILIB_EXCEPTIONS.
9720 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9722 * config/arm/t-rtems-eabi: Rename to...
9723 * config/arm/t-rtems: ...this.
9724 * config/arm/rtems-eabi.h: Rename to...
9725 * config/arm/rtems.h: ...this.
9726 * config.gcc (arm*-*-rtems*): Reflect changes above.
9728 2015-01-09 Richard Biener <rguenther@suse.de>
9730 PR tree-optimization/64410
9731 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
9733 (execute_update_addresses_taken): Deal with that.
9734 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
9735 loads/stores for complex variables.
9737 2015-01-09 Martin Liska <mliska@suse.cz>
9739 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
9741 (func_checker::compare_memory_operand): New function.
9742 (func_checker::compare_operand): Split case to newly
9744 (func_checker::compare_cst_or_decl): New function.
9745 (func_checker::compare_gimple_call): Identify
9747 (func_checker::compare_gimple_assign): Likewise.
9748 * ipa-icf-gimple.h: New function.
9750 2015-01-09 Martin Liska <mliska@suse.cz>
9753 * sreal.c (sreal::dump): Change unsigned format to signed for
9755 (sreal::to_double): Replace exp2 with scalbln.
9757 2015-01-09 Martin Liska <mliska@suse.cz>
9759 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
9760 * ipa-icf.c (sem_function::equals_private): Add support for target and
9761 (sem_item_optimizer::merge_classes): Remove redundant function
9762 optimization flags comparison.
9763 * tree.h (target_opts_for_fn): New function.
9765 2015-01-09 Tom de Vries <tom@codesourcery.com>
9767 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
9769 2015-01-09 Kito Cheng <kito@0xlab.org>
9771 PR rtl-optimization/64348
9772 * lra-constraints.c (split_reg): Fix caller-save store/restore
9773 instruction generation.
9775 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
9777 PR gcov-profile/61790
9778 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
9779 long long. Fallback to int64_t if host doesn't have long long and
9780 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
9782 2015-01-08 Jakub Jelinek <jakub@redhat.com>
9784 PR tree-optimization/63989
9785 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
9787 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
9788 (get_stridx): If we don't have a record for certain SSA_NAME,
9789 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
9790 constant offset, call get_stridx_plus_constant.
9791 (get_stridx_plus_constant): New function.
9792 (zero_length_string): Don't use get_stridx here.
9796 * dse.c (struct insn_info): Mention frame_read set also
9797 before reload for tail calls on some targets.
9798 (scan_insn): Revert 2014-12-22 change. Set frame_read
9799 also before reload for tail calls if
9800 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
9801 instead of add_non_frame_wild_read for non-const/memset
9802 tail calls after reload.
9804 2015-01-08 Jason Merrill <jason@redhat.com>
9806 * ubsan.c (do_ubsan_in_current_function): New.
9807 (pass_ubsan::gate): Use it.
9808 * ubsan.h: Declare it.
9809 * convert.c (convert_to_integer): Use it.
9811 2015-01-08 Jakub Jelinek <jakub@redhat.com>
9814 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
9815 compare_code when it is unconditionally overwritten afterwards.
9816 Use ix86_reverse_condition instead of reverse_condition. Don't
9817 change code if *reverse_condition* returned UNKNOWN and don't
9818 swap ct/cf and negate diff in that case.
9820 2015-01-08 Mike Stump <mikestump@comcast.net>
9822 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
9823 (pass_tsan_O0::gate): Likewise.
9824 * extend.texi (Function Attributes): Add no_sanitize_thread
9827 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9829 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
9830 for registering builtins.
9831 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
9832 add -fopenmp to the argv_obstack used when invoking
9835 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
9836 add "-m32" or "-m64" to argv_obstack.
9837 (generate_host_descr_file): Likewise, when invoking host_compiler.
9838 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
9841 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
9843 * config/sh/sh-mem.cc: Use constant as second operand when emitting
9846 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
9849 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
9850 constant load if constant operand fits into I08.
9852 2015-01-08 Jakub Jelinek <jakub@redhat.com>
9855 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
9856 and TREE_THIS_VOLATILE for MEM_REFs.
9857 (build5_stat): Fix up initialization of TREE_READONLY and
9858 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
9860 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
9863 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
9864 of r for the second alternative of the destination operand.
9866 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
9869 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
9871 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
9873 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
9875 ([-fivar-visibility], [-fvisibility]): Likewise.
9877 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
9879 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
9880 the file where @code, @command, etc is more appropriate.
9882 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
9884 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
9885 of -mrecip= documentation.
9887 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9890 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
9891 correct reload handler if -m32 -mpowerpc64 is used.
9893 2015-01-06 Tom de Vries <tom@codesourcery.com>
9895 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
9897 2015-01-08 Christian Bruel <christian.bruel@st.com>
9900 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
9902 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9904 PR tree-optimization/63259
9905 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
9906 if optab exists for 16bit byteswap.
9908 2015-01-06 Jakub Jelinek <jakub@redhat.com>
9910 * opts.c (common_handle_option): Add support for
9911 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
9912 * doc/invoke.texi: Document -fno-sanitize=all,
9913 -f{,no-}sanitize-recover=all. Document that
9914 -fsanitize=float-cast-overflow is not enabled
9915 by -fsanitize=undefined. Fix up documentation
9916 of -f{,no-}sanitize-recover.
9918 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
9920 * config.gcc: Add Visium support.
9921 * configure.ac: Likewise.
9922 * configure: Regenerate.
9923 * doc/extend.texi (interrupt attribute): Add Visium.
9924 * doc/invoke.texi: Document Visium options.
9925 * doc/install.texi: Document Visium target.
9926 * doc/md.texi: Document Visium constraints.
9927 * common/config/visium: New directory.
9928 * config/visium: Likewise.
9930 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
9932 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
9933 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
9935 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
9937 * combine.c (combine_validate_cost): Do not count the cost of a
9938 split I2 twice. Do not display it twice in the dump, either.
9940 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
9942 Revert parts of r219199.
9943 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
9945 ([-Wtraditional]): Restore markup on <limits.h>.
9947 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
9950 * doc/invoke.texi: Document -Wsuggest-override.
9952 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
9954 PR rtl-optimization/64287
9955 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
9956 (process_options): Disable flag_ipa_ra if profiling.
9958 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
9960 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
9962 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
9964 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
9965 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
9966 put under #if TARGET_LOOPS guard.
9968 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
9970 * config/i386/i386.c (output_387_binary_op): Use std::swap.
9972 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
9974 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
9975 * rtl.h (refers_to_regno_p): Add overload.
9977 * bt-load.c: Likewise.
9978 * combine.c: Likewise.
9979 * df-scan.c: Likewise.
9980 * sched-deps.c: Likewise.
9981 * config/s390/s390.c: Likewise.
9982 * config/m32r/m32r.c: Likewise.
9983 * config/rs6000/spe.md: Likewise.
9984 * config/rs6000/rs6000.c: Likewise.
9985 * config/pa/pa.c: Likewise.
9986 * config/stormy16/stormy16.c: Likewise.
9987 * config/cris/cris.c: Likewise.
9988 * config/arc/arc.md: Likewise.
9989 * config/arc/arc.c: Likewise.
9990 * config/sh/sh.md: Likewise.
9991 * config/sh/sh.c: Likewise.
9992 * config/frv/frv.c: Likewise.
9994 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9997 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
9998 call as cleanup of the whole body.
9999 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
10000 * tsan.c (replace_func_exit): New function.
10001 (instrument_func_exit): Moved earlier.
10002 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
10003 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
10005 (tsan_pass): Don't call instrument_func_exit.
10006 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
10007 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
10011 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
10012 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
10013 it to libubsan handler instead of EXPR. Fold comparisons earlier,
10014 if the result is integer_zerop, return NULL_TREE.
10015 * convert.c (convert_to_integer): Pass expr as ARG.
10017 PR tree-optimization/64465
10018 * tree-inline.c (redirect_all_calls): During inlining
10019 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
10020 changed the stmt to a non-throwing call.
10022 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
10024 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
10025 etc markup throughout the file.
10027 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
10029 Enable experimental TSAN support for Ada.
10030 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
10032 2015-01-05 Jakub Jelinek <jakub@redhat.com>
10034 PR tree-optimization/64494
10035 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
10036 clear SSA_NAME_ANTI_RANGE_P flag.
10038 2015-01-05 Marek Polacek <polacek@redhat.com>
10040 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
10042 2015-01-05 Jakub Jelinek <jakub@redhat.com>
10044 Update copyright years.
10046 * gcc.c (process_command): Update copyright notice dates.
10047 * gcov-dump.c: Ditto.
10049 * doc/cpp.texi: Bump @copying's copyright year.
10050 * doc/cppinternals.texi: Ditto.
10051 * doc/gcc.texi: Ditto.
10052 * doc/gccint.texi: Ditto.
10053 * doc/gcov.texi: Ditto.
10054 * doc/install.texi: Ditto.
10055 * doc/invoke.texi: Ditto.
10057 * auto-profile.c, auto-profile.h: Fix up Copyright line.
10059 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
10061 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
10063 ([-fvtable-verify], [-fvtv-debug]): Likewise.
10064 ([-Wabi]): Likewise.
10065 ([-fmessage-length]): Likewise.
10066 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
10067 ([-Wno-discarded-qualifiers]): Likewise.
10068 ([-Wnodiscarded-array-qualifiers]): Likewise.
10069 ([-Wno-virtual-move-assign]): Likewise.
10070 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
10071 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
10072 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
10073 ([-fsanitize-undefined-trap-on-error]): Likewise.
10074 ([-floop-interchange]): Likewise.
10075 ([-ftree-coalesce-inlined-vars]): Likewise.
10076 ([-fvect-cost-model]): Likewise.
10077 ([-flto]): Likewise.
10078 ([--param]): Likewise.
10079 (Spec Files): Likewise.
10080 ([-mstrict-align]): Likewise.
10081 ([-mfix-cortex-a53-835769]): Likewise.
10082 ([-march], [-mtune]): Likewise.
10083 ([-mpic-register]): Likewise.
10084 ([-munaligned-access]): Likewise.
10085 ([-msp8]): Likewise.
10086 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
10087 (AVR Built-in Macros): Likewise.
10088 ([-mpreferred-stack-boundary]): Likewise.
10089 ([-mtune-crtl]): Likewise.
10090 ([-mashf]): Likewise.
10091 ([-mmcu=]): Likewise.
10092 ([-minrt]): Likewise.
10093 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
10094 ([-mupper-regs]): Likewise.
10095 ([-matomic-model]): Likewise.
10096 ([-mdiv]): Likewise.
10097 ([-mzdcbranch]): Likewise.
10098 ([-mdisable-callt]): Likewise.
10099 ([-msoft-float]): Likewise.
10100 ([-m8byte-align]): Likewise.
10101 ([-fstack-reuse]): Likewise.
10103 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10105 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
10106 Fix markup, light copy-editing.
10107 ([-fauto-profile]): Rewrite to fix formatting and content
10110 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10112 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
10113 Copy-edit description.
10114 ([-fisolate-erroneous-paths-attribute]): Likewise.
10115 * common.opt (fisolate-erroneous-paths-dereference):
10116 Copy-edit description.
10117 (fisolate-erroneous-paths-attribute): Likewise.
10119 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10121 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
10124 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10126 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
10127 ([-fvtv-debug]): Likewise.
10128 ([-Wc++-compat]): Likewise.
10129 ([-Wc++11-compat]): Likewise.
10130 ([-Wc++14-compat]): Likewise.
10131 ([-Wno-sized-deallocation]): Likewise.
10132 ([-femit-class-debug-always]): Likewise.
10133 ([-femit-struct-debug-detailed]): Likewise.
10134 ([-fno-keep-inline-dllexport]): Likewise.
10135 ([-fira-algorithm]): Likewise.
10136 ([-fira-region]): Likewise.
10137 ([-flra-remat]): Likewise.
10138 ([-fipa-ra]): Likewise.
10139 ([-fhoist-adjacent-loads]): Likewise.
10140 ([-fisolate-erroneous-paths-dereference]): Likewise.
10141 ([-fisolate-erroneous-paths-attribute]): Likewise.
10142 ([-ftree-switch-conversion]): Likewise.
10143 ([-ftree-tail-merge]): Likewise.
10144 ([-ftree-loop-if-convert]): Likewise.
10145 ([-ftree-loop-if-convert-stores]): Likewise.
10146 ([-ftree-loop-distribution]): Likewise.
10147 ([-ftree-loop-distribute-patterns]): Likewise.
10148 ([-flto-compression-level]): Likewise.
10149 ([-flto-report]): Likewise.
10150 ([-flto-report-wpa]): Likewise.
10151 ([-fuse-linker-plugin]): Likewise.
10152 ([-mfix-cortex-a53-835769]): Likewise.
10153 ([-mno-fix-cortex-a53-835769]): Likewise.
10154 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
10155 explicit listing; add a note to the discussion indicating they
10156 exist. Reorder table to group similar options. Add missing
10157 @opindex entries. Add @need commands throughout the table to
10158 allow it to be split across multiple pages.
10159 ([-m8bit-idiv]): Fix @opindex.
10160 ([-mavx256-split-unaligned-load]): Likewise.
10161 ([-mavx256-split-unaligned-store]): Likewise.
10162 ([-mstack-protector-guard]): Likewise.
10163 ([-mcpu=]): Likewise.
10164 ([-mcpu]): Likewise.
10165 ([-mpointer-size=]): Likewise.
10167 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
10169 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
10170 instead of `m' constraint. Likewise for unnamed movb comparison
10171 patterns using reg_before_reload_operand predicate.
10172 * config/pa/predicates.md (reg_before_reload_operand): Tighten
10173 predicate to reject register index and LO_SUM DLT memory forms
10176 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
10178 * doc/invoke.texi (Option Summary): Fix spelling of
10179 -fdevirtualize-at-ltrans.
10180 ([-fdevirtualize]): Fix markup.
10181 ([-fdevirtualize-speculatively]): Fix typo.
10182 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
10183 implementor-speaky.
10184 * common.opt (fdevirtualize-at-ltrans): Likewise.
10185 * ipa-devirt.c: Fix typos in comments throughout the file.
10186 (ipa_devirt): Fix typos in format strings for dump output.
10188 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
10190 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
10191 discussion of defaults, light copy-editing.
10193 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10195 * tsan.c (instrument_expr): corrected previous checkin.
10197 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10199 Instrument bit field and unaligned accesses for TSAN.
10200 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
10201 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
10202 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
10203 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
10204 unaligned memory regions.
10206 2015-01-01 Anthony Green <green@moxielogic.com>
10208 * config/moxie/predicates.md (moxie_general_movsrc_operand):
10209 Restrict move source register offsets to 16 bits.
10211 Copyright (C) 2015 Free Software Foundation, Inc.
10213 Copying and distribution of this file, with or without modification,
10214 are permitted in any medium without royalty provided the copyright
10215 notice and this notice are preserved.