1 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3 * loop-iv.c (canon_condition): Generalize to all types of integer
6 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
8 * gimple-walk.c: Prune duplicate or unneeded includes.
9 (walk_gimple_asm): Only call parse_input_constraint or
10 parse_output_constraint if their findings are used.
11 Honour parse_input_constraint and parse_output_constraint
14 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
16 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18 2015-04-29 Tom de Vries <tom@codesourcery.com>
20 PR tree-optimization/65893
21 * passes.def (pass_all_optimizations): Move pass_stdarg to after
24 2015-04-29 Richard Biener <rguenther@suse.de>
26 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27 compute GROUP_SIZE for basic-block SLP.
28 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
29 take into account gaps.
30 (vect_get_mask_element): Properly reject references to previous
32 (vect_transform_slp_perm_load): Likewise.
34 2015-04-29 Christian Bruel <christian.bruel@st.com>
37 * config/i386/i386.c (ix86_default_align): New function.
38 (ix86_override_options_after_change): Call ix86_default_align.
39 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
40 (ix86_override_options_after_change): New function.
42 2015-04-28 Jeff Law <law@redhat.com>
44 * tree-ssa-dom.c (record_equality); Fix comment typos.
46 2015-04-28 Tom de Vries <tom@codesourcery.com>
48 PR tree-optimization/65887
49 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
51 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
53 * doc/extend.texi (Declaring Attributes of Functions): Split into
54 subsections by target. Alphabetize the table of common attributes.
55 Rewrite some of the introductory text to reflect the new structure.
56 Update some cross-references to point to the new subsections.
57 (Attribute Syntax): Put paragraph about "__" naming here. Remove
58 duplicate copies in the discussion of function, label, and type
61 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
64 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
66 2015-04-28 Jason Merrill <jason@redhat.com>
69 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
70 (finalize_type_size): Respect TYPE_USER_ALIGN.
71 (layout_type) [ARRAY_TYPE]: Likewise.
73 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
75 * config/arm/arm.md (*arm_movt): Fix type attribute.
76 (*cmpsi_shiftsi): Likewise.
77 (*cmpsi_shiftsi_swp): Likewise.
78 (*movsicc_insn): Likewise.
79 (*cond_move): Likewise.
80 (*if_plus_move): Likewise.
81 (*if_move_plus): Likewise.
82 (*if_arith_move): Likewise.
83 (*if_move_arith): Likewise.
84 (*if_shift_move): Likewise.
85 (*if_move_shift): Likewise.
86 (*arm_movtas_ze): Likewise.
87 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
88 redundancy and type attribute.
89 (*thumb2_movsi_insn): Fix type attribute.
90 (*thumb2_addsi_short): Likewise.
91 (thumb2_addsi3_compare0): Likewise.
92 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
93 attributes accordingly.
95 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
98 * function.c (pad_to_arg_alignment): Add parentheses.
100 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
102 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
103 libgcc/config/frv/elf-lib.h.
105 2015-04-28 Tom de Vries <tom@codesourcery.com>
107 * tree-call-cdce.c: Fix example in header comment.
109 2015-04-28 Richard Biener <rguenther@suse.de>
111 PR tree-optimization/62283
112 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
113 fails fatally and we are vectorizing a basic-block simply
114 cause the child to be constructed piecewise.
115 (vect_analyze_slp_cost_1): Adjust.
116 (vect_detect_hybrid_slp_stmts): Likewise.
117 (vect_bb_slp_scalar_cost): Likewise.
118 (vect_get_constant_vectors): For piecewise constructed
119 constants place them after the last def.
120 (vect_get_slp_defs): Adjust.
121 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
122 externals for basic-block vectorization.
124 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
127 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
129 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
130 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
131 (AARCH64_TUNE_FMA_STEERING): Likewise.
132 * config/aarch64/aarch64-cores.def: Set
133 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
134 FMUL/FMADD instructions.
135 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
136 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
137 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
138 * config/aarch64/cortex-a57-fma-steering.h: New file.
139 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
141 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
143 * gensupport.c (std_preds): Add missing codes to address_operand entry.
145 2015-04-28 Richard Biener <rguenther@suse.de>
147 PR tree-optimization/65851
148 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
149 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
150 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
151 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
152 (ccp_visit_phi_node): Adjust.
153 (evaluate_stmt): For simplifications to SSA names return its
154 lattice value if that isn't VARYING. Return immediately when
155 simplified to a constant.
156 (visit_assignment): Adjust.
157 (ccp_visit_stmt): Likewise.
159 2015-04-28 Tom de Vries <tom@codesourcery.com>
161 PR tree-optimization/65818
162 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
165 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
167 * calls.c (save_fixed_argument_area): Don't check
168 ARGS_GROW_DOWNWARD with the preprocessor.
169 (restore_fixed_argument_area): Likewise.
170 (mem_overlaps_already_clobbered_arg_p): Likewise.
171 (check_sibcall_argument_overlap): Likewise.
172 (expand_call): Likewise.
173 (emit_library_call_value_1): Likewise.
174 (store_one_arg): Likewise.
175 * function.c (assign_parms): Likewise.
176 (locate_and_pad_parm): Likewise.
177 (pad_to_arg_alignment): Likewise.
178 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
180 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
182 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
183 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
184 * calls.c (save_fixed_argument_area): Don't chekc if
185 ARGS_GROW_DOWNWARD is defined.
186 (restore_fixed_argument_area): Likewise.
187 (mem_overlaps_already_clobbered_arg_p): Likewise.
188 (check_sibcall_argument_overlap): Likewise.
189 (expand_call): Likewise.
190 (emit_library_call_value_1): Likewise.
191 (store_one_arg): Likewise.
192 * function.c (assign_parms): Likewise.
193 (locate_and_pad_parm): Likewise.
194 (pad_to_arg_alignment): Likewise.
195 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
197 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
199 * defaults.h (gen_epilogue): New function.
200 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
202 * cfgrtl.c (cfg_layout_finalize): Likewise.
203 * df-scan.c: Likewise.
204 * function.c (thread_prologue_and_epilogue_insns): Likewise.
205 (reposition_prologue_and_epilogue_notes): Likewise.
206 * reorg.c (find_end_label): Likewise.
207 * toplev.c: Likewise.
209 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
211 * bb-reorder.c (HAVE_return): Don't check if its undefined.
212 * defaults.h (gen_simple_return): New function.
213 (gen_simple_return): Likewise.
214 (HAVE_return): Add default definition to false.
215 (HAVE_simple_return): Likewise.
216 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
217 HAVE_return and HAVE_simple_return are defined.
218 * function.c (gen_return_pattern): Likewise.
219 (convert_jumps_to_returns): Likewise.
220 (thread_prologue_and_epilogue_insns): Likewise.
221 * reorg.c (find_end_label): Likewise.
222 (dbr_schedule): Likewise.
223 * shrink-wrap.c: Likewise.
224 * shrink-wrap.h: Likewise.
226 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
228 * defaults.h (EPILOGUE_USES): Add default definition of false.
229 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
230 * resource.c (init_resource_info): Likewise.
232 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
234 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
236 * dwarf2out.c (field_byte_offset): REmove check if
237 PCC_BITFIELD_TYPE_MATTERS is defined.
238 * stor-layout.c (layout_decl): Likewise.
239 (update_alignment_for_field): Likewise.
240 (place_field): Likewise.
242 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
244 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
246 * regrename.c (check_new_reg_p): Remove check if
247 HARD_REGNO_RENAME_OK is defined.
248 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
250 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
252 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
253 * cse.c (fold_rtx): Likewise.
254 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
255 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
256 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
257 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
258 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
259 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
260 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
261 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
262 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
263 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
265 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
266 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
267 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
268 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
269 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
270 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
271 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
272 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
273 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
274 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
275 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
276 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
277 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
278 * doc/tm.texi: Regenerate.
279 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
280 either true or false.
282 2015-04-27 Jeff Law <law@redhat.com>
284 PR tree-optimization/65217
285 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
286 of them has a single use, make sure it is the LHS of the implied
289 2015-04-28 Alan Modra <amodra@gmail.com>
292 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
293 (offsettable_ok_by_alignment): Use minimum of decl and toc
294 pointer alignment. Replace dead code with assertion.
295 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
296 case if size exceeds toc pointer alignment.
297 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
298 (rs6000_emit_move): Likewise.
299 * configure.ac: Add linker toc pointer alignment check.
300 * configure: Regenerate.
301 * config.in: Regenerate.
303 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
305 * config.gcc: Add h8300-*-linux.
306 * config/h8300/linux.h: New.
307 * config/h8300/t-linux: New.
308 * config/h8300/h8300.c (h8300_option_override): Normal mode
309 is not supported for h8300-*-linux.
310 (h8300_file_start): Target priority change.
311 (get_shift_alg): Likewise.
312 (h8300_shift_need_scratch_p): Likewise.
313 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
314 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
316 2015-04-27 Caroline Tice <cmtice@google.com>
318 * final.c (final_scan_insn): Output cold_function_name as function
320 * varasm.c (cold_function_name): Make global.
321 (assemble_start_function): Re-set cold_function_name.
322 (assemble_end_function): Output cold partition size.
323 * varasm.h (cold_function_name): Declare global.
325 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
327 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
328 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
330 (*movxi_internal_avx512f): Ditto.
331 (define_split): Check for xmm16+, when splitting scalar float_extend.
332 (*extendsfdf2_mixed): Use "v" constraint.
333 (define_split): Check for xmm16+, when splitting scalar float_truncate.
334 (*truncdfsf_fast_sse): Use "v" constraint.
335 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
336 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
337 (define_peephole2): Check for xmm16+, when converting scalar
339 (define_peephole2): Check for xmm16+, when converting scalar
341 (*fop_<mode>_comm_mixed): Use "v" constraint.
342 (*fop_<mode>_comm_sse): Ditto.
343 (*fop_<mode>_1_mixed): Ditto.
344 (*sqrt<mode>2_sse): Ditto.
345 (*ieee_s<ieee_maxmin><mode>3): Ditto.
347 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
349 * combine.c (simplify_if_then_else): Use std::swap instead
350 of manually swapping.
351 (known_cond): Likewise.
352 (simplify_comparison): Likewise.
354 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
357 * config/rs6000/htm.md: Remove all define_expands.
358 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
359 UNSPECV_HTM_TABORTWCI): Remove.
360 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
361 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
362 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
363 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
364 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
365 tabortwci_internal): Remove define_insns.
366 (tabort<wd>c, tabort<wd>ci): New define_insns.
367 (tabort): Use gpc_reg_operand.
368 (tcheck): Remove operand.
369 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
370 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
372 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
373 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
374 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
375 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
376 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
377 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
378 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
379 (tcheck): Remove builtin argument.
380 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
382 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
383 tabortdc and tabortdci builtins when not in 64-bit mode.
384 Modify code to handle the loss of the HTM define_expands.
385 Emit code to copy the CR register to TARGET.
386 (htm_init_builtins): Modify code to handle the loss of the HTM
388 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
389 (RS6000_BTC_64BIT): Likewise.
390 (RS6000_BTC_CR): New macro.
391 * doc/extend.texi: Update documentation for htm builtins.
393 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
395 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
396 of manually swapping.
397 (simplify_associative_operation): Likewise.
398 (simplify_binary_operation): Likewise.
399 (simplify_plus_minus): Likewise.
400 (simplify_relational_operation): Likewise.
401 (simplify_ternary_operation): Likewise.
403 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
405 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
406 (xs_hi_nonmemory_operand): Remove error.
407 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
408 general_operand rather than xs_hi_general_operand.
410 2015-04-27 Richard Biener <rguenther@suse.de>
412 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
413 (record_equivalences_from_stmt): Valueize rhs.
414 (record_equality): Canonicalize x and y order via
415 tree_swap_operands_p. Do not swap operands for same loop depth.
417 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
421 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
422 Add hint how to use own spec file.
424 2015-04-27 Jakub Jelinek <jakub@redhat.com>
426 PR tree-optimization/65875
427 * tree-vrp.c (update_value_range): If in is_new case setting
428 old_vr to VR_VARYING, also set new_vr to it. Remove
429 old_vr->type == VR_VARYING test.
430 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
431 SSA_PROP_INTERESTING if update_value_range returned true,
432 but new range is VR_VARYING.
434 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
436 * combine.c (sign_extend_short_imm): New.
437 (set_nonzero_bits_and_sign_copies): Use above new function for sign
438 extension of src short immediate.
439 (reg_nonzero_bits_for_combine): Likewise for tem.
441 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
443 * stor-layout.c (self_referential_component_ref_p): New predicate.
444 (copy_self_referential_tree_r): Use it.
445 (self_referential_size): Punt for simple operations directly involving
446 self-referential component references.
447 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
449 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
451 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
453 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
455 * vec.h (vec): Make splice arguments const. Update definitions
458 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
460 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
463 2015-04-26 Tom de Vries <tom@codesourcery.com>
465 PR tree-optimization/65826
466 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
468 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
470 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
471 (*madd3<mode>): Ditto.
472 (*msub4<mode>): Ditto.
473 (*msub3<mode>): Ditto.
474 (*nmadd4<mode>): Ditto.
475 (*nmadd3<mode>): Ditto.
476 (*nmadd4<mode>_fastmath): Ditto.
477 (*nmadd3<mode>_fastmath): Ditto.
478 (*nmsub4<mode>): Ditto.
479 (*nmsub3<mode>): Ditto.
480 (*nmsub4<mode>_fastmath): Ditto.
481 (*nmsub3<mode>_fastmath): Ditto.
483 2015-04-24 Jason Merrill <jason@redhat.com>
486 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
487 down when building TYPE_CANONICAL.
488 (build_pointer_type_for_mode): Likewise.
490 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
492 * genrecog.c (validate_pattern): Check matching constraint refers
493 to a lower numbered operand.
495 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
498 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
499 save to independent variables use the Save attribute. This will
500 allow these options to be modified with the #pragma/attribute
502 (-mallow-movmisalign): Likewise.
503 (-mallow-df-permute): Likewise.
504 (-msched-groups): Likewise.
505 (-malways-hint): Likewise.
506 (-malign-branch-targets): Likewise.
507 (-mvectorize-builtins): Likewise.
508 (-msave-toc-indirect): Likewise.
510 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
511 can be set via the #pragma/attribute target support.
512 (rs6000_opt_vars): Likewise.
513 (rs6000_inner_target_options): If VSX was set, also set
514 -mno-avoid-indexed-addresses.
516 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
518 * config/arm/iterators.md (shiftable_ops): Rename to...
519 (SHIFTABLE_OPS): ... This. Update use in comments.
520 (ior_xor): Rename to...
522 (vqh_ops): Rename to...
524 (vqhs_ops): Rename to...
525 (VQHS_OPS): ... This.
526 (rshifts): Rename to...
528 (returns): Rename to...
530 * config/arm/arm.md: Update uses of the above.
531 * config/arm/neon.md: Likewise.
533 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
535 * config.host (case ${host}): Add aarch64*-*-linux case.
536 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
537 fields to all the cores.
538 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
539 Add MCPU_MTUNE_NATIVE_SPECS.
540 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
541 field to all extensions.
542 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
543 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
544 Adjust definition of AARCH64_OPT_EXTENSION.
545 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
546 (MCPU_MTUNE_NATIVE_SPECS): Define.
547 * config/aarch64/driver-aarch64.c: New file.
548 * config/aarch64/x-arch64: New file.
549 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
552 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
553 Wei Mi <wmi@google.com>
555 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
556 * config/i386/i386.c (extract_base_offset_in_addr): New function.
557 (ix86_operands_ok_for_move_multiple): Ditto.
558 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
559 (movlpd/movhpd to movupd peephole2): Ditto.
561 2015-04-24 Marek Polacek <polacek@redhat.com>
564 * input.h (from_macro_expansion_at): Define.
567 * doc/invoke.texi: Update description of -Wlogical-op.
569 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
571 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
572 ternary operator in fprintf and harmonize spacing.
574 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
576 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
577 Mark operand1 commutative.
579 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
582 input operands in memory.
583 (*vec_concatv2si_sse4_1): Ditto.
584 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
585 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
587 (vec_extract_hi_v32hi): Ditto.
588 (vec_extract_hi_v64hi): Ditto.
589 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
591 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
592 Steven Bosscher <steven@gcc.gnu.org>
594 PR rtl-optimization/34503
595 * cprop.c (cprop_reg_p): New.
596 (hash_scan_set): Use above function to check if register can be
598 (find_avail_set): Return up to two sets, one whose source is a
599 register and one whose source is a constant. Sets are returned in an
600 array passed as parameter rather than as a return value.
601 (cprop_insn): Use a do while loop rather than a goto. Try each of the
602 sets returned by find_avail_set, starting with the one whose source is
603 a constant. Use cprop_reg_p to check if register can be propagated.
604 (do_local_cprop): Use cprop_reg_p to check if register can be
606 (implicit_set_cond_p): Likewise.
608 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
610 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
611 (sem_function::equals): IGNORED_NODES parameter is now unused;
612 update call of equals_private.
613 (sem_function::equals_private): Do not call equals_wpa; skip
614 gimple body matching if there is no body.
615 (sem_function::init): Add logic to hash tthunk info.
616 (sem_function::parse): Also parse thunks.
617 * ipa-icf.h (equals_private): Update declaration.
619 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
621 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
622 asterisk from name so this can be generated directly.
623 (*altivec_stvx_<mode>_internal): Likewise.
624 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
625 that this is never called during or after reload/lra.
626 (rs6000_frame_related): Remove split_reg
627 argument and logic that references it.
628 (emit_frame_save): Remove last parameter from call to
629 rs6000_frame_related.
630 (rs6000_emit_prologue): Remove last parameter from eight calls to
631 rs6000_frame_related. Force generation of stvx instruction for
632 Altivec register saves. Remove split_reg handling, which is no
634 (rs6000_emit_epilogue): Force generation of lvx instruction for
635 Altivec register restores.
637 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
639 * config/rs6000/rs6000.opt (mcrypto): Change option description to
640 match category changes in ISA 2.07B.
642 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
644 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
646 (cmp_op, cmp_type): New code attributes.
647 (NEON_VCMP, NEON_VACMP): New int iterators.
648 (cmp_op_unsp): New int attribute.
649 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
650 (neon_vceq<mode>): Delete.
651 (neon_vc<cmp_op><mode>_insn): New pattern.
652 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
653 (neon_vcgeu<mode>): Delete.
654 (neon_vcle<mode>): Likewise.
655 (neon_vclt<mode>: Likewise.
656 (neon_vcage<mode>): Likewise.
657 (neon_vcagt<mode>): Likewise.
658 (neon_vca<cmp_op><mode>): New define_expand.
659 (neon_vca<cmp_op><mode>_insn): New pattern.
660 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
662 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
664 * tree.h (attribute_value_equal): Declare.
665 * tree.c (attribute_value_equal): Export.
667 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
669 * ipa-icf.c (sem_item::compare_attributes): New function.
670 (sem_item::compare_referenced_symbol_properties): Compare variable
672 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
673 (sem_function::param_used_p): New function.
674 (sem_function::equals_wpa): Fix attribute comparsion; match
675 parameter type codes; do not compare paremter flags when
676 they are not used; compare edge flags; compare indirect calls.
677 (sem_item::update_hash_by_addr_refs): Hash reference type.
678 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
679 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
681 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
682 * ipa-icf.h (compare_attributes, param_used_p): Declare.
684 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
686 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
688 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
689 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
690 (sem_item::compare_referenced_symbol_properties): New.
691 (sem_item::hash_referenced_symbol_properties): New.
692 (sem_item::compare_cgraph_references): Rename to ...
693 (sem_item::compare_symbol_references): ... this one; use
694 compare_referenced_symbol_properties.
695 (sem_function::equals_wpa): Do not compare
696 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
697 DECL_IS_OPERATOR_NEW; compare pointer sizes.
698 (sem_item::update_hash_by_addr_refs): Call
699 hash_referenced_symbol_properties.
700 (sem_item::update_hash_by_local_refs): Cleanup.
701 (sem_function::merge): Do not mix up symbol properties.
702 (sem_variable::equals_wpa): Use compare_symbol_references.
703 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
704 (sem_item::hash_referenced_symbol_properties): New.
705 (sem_item::compare_symbol_references): New.
706 (sem_item::compare_cgraph_references): Remove.
708 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
711 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
714 2015-04-23 Nick Clifton <nickc@redhat.com>
716 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
717 ATTRIBUTE_UNUSED to x parameter.
718 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
720 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
722 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
723 TARGET_CRYPTO to TARGET_P8_VECTOR>
724 (crypto_vpermxor_<mode>): Likewise.
725 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
726 (BU_CRYPTO_3A): Likewise.
727 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
728 (BU_CRYPTO_OVERLOAD_3A): New #define.
729 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
733 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
734 (VPERMXOR_V4SI): Likewise.
735 (VPERMXOR_V8HI): Likewise.
736 (VPERMXOR_V16QI): Likewise.
737 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
738 BU_CRYPTO_OVERLOAD_2A.
739 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
740 BU_CRYPTO_OVERLOAD_3A.
741 * config/rs6000/rs6000.opt (mcrypto): Change description of
744 2015-04-23 Richard Biener <rguenther@suse.de>
746 * passes.def: Remove copy propagation passes run directly after CCP.
747 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
749 (ccp_visit_phi_node): Rework to handle first executable edge
752 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
754 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
755 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
756 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
757 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
758 (thumb_legimitimize_reload_address): Remove.
759 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
761 (thumb_legimitimize_reload_address): Remove.
763 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
765 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
767 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
769 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
771 (store_multiple): Likewise.
773 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
775 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
776 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
777 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
778 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
779 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
780 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
781 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
782 Specify issue_rate value.
783 (arm_issue_rate): Look up issue rate from tuning structs. Remove
784 large switch statement.
785 (arm_marvell_pj4_tune): New struct.
786 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
789 2015-04-23 Richard Biener <rguenther@suse.de>
791 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
792 (vect_find_last_store_in_slp_instance): Rename to ...
793 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
794 (vect_analyze_slp_cost_1): Use vector_load for constant defs
795 and vec_construct for external defs when estimating prologue cost.
796 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
797 Compute costs here only when vectorizing loops.
798 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
799 have been determined.
800 (vect_schedule_slp_instance): Simplify vectorized code placement
801 and prepare for in-BB external defs.
802 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
803 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
804 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
806 (vect_model_load_cost): Likewise.
807 (vectorizable_store): Instead add it here.
808 (vectorizable_load): Likewise.
809 (vect_is_simple_use): Dump def type textually.
811 2015-04-23 Richard Biener <rguenther@suse.de>
813 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
814 * cfgloop.c (verify_loop_structure): Verify the root loop node.
815 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
816 instead of get_eh_region_from_lp_number.
817 * loop-init.c (fix_loop_structure): If we removed a loop, reset
820 2015-04-23 Anton Blanchard <anton@samba.org>
822 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
823 need for -mprofile-kernel to save LR to stack.
825 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
827 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
829 (insn_is_swappable_p): Return 1 for a convert from double to
830 single precision when all of its uses are splats of BE element
833 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
835 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
837 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
840 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
841 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
842 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
844 (rs6000_builtin_mask_for_load): Return 0 for targets with
845 efficient unaligned VSX accesses so that the vectorizer will use
846 direct unaligned loads.
847 (rs6000_builtin_support_vector_misalignment): Always return true
848 for targets with efficient unaligned VSX accesses.
849 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
850 stores on targets with efficient unaligned VSX accesses is almost
851 always the same as the cost of an aligned load or store, so model
853 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
854 unaligned vectors if we have efficient unaligned VSX accesses.
855 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
858 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
861 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
863 * config.gcc (LIBC_MUSL): New tm_defines macro.
864 * config/linux.h (OPTION_MUSL): Define.
865 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
866 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
867 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
869 * config/linux.opt (mmusl): New option.
870 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
871 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
873 * configure: Regenerate.
875 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
877 * config.gcc (LIBC_MUSL): New tm_defines macro.
878 * config/linux.h (OPTION_MUSL): Define.
879 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
880 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
881 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
883 * config/linux.opt (mmusl): New option.
884 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
885 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
887 * configure: Regenerate.
889 2015-04-22 Yury Gribov <y.gribov@samsung.com>
891 * doc/invoke.texi (-fsanitize-sections): Update description.
892 * asan.c (set_sanitized_sections): Parse incoming arg.
893 (section_sanitized_p): Support wildcards.
895 2015-04-22 Tom de Vries <tom@codesourcery.com>
897 PR tree-optimization/65823
898 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
899 equality between ap_copy and ap.
901 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
904 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
906 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
909 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
911 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
914 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
915 remove already contained t-files.
917 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
919 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
920 Remove unneeded forward declarations.
921 (suitable_for_tail_call_opt_p): Commentary typo fix.
923 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
925 * varasm.c (emit_bss): Remove redundant guard.
927 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
929 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
931 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
933 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
935 2015-04-22 Hale Wang <hale.wang@arm.com>
936 Terry Guo <terry.guo@arm.com>
938 PR rtl-optimization/64818
939 * combine.c (can_combine_p): Don't combine user-specified
940 register if it is in an asm input.
942 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
945 * passes.def (early_optimizations): Add pass_dse.
947 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
949 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
950 * reorg.c (redundant_insn): Remove ifdef
951 INSN_REFERENCES_ARE_DELAYED.
952 * resource.c (mark_referenced_resources): Likewise.
954 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
956 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
957 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
958 * resource.c (mark_set_resources): Likewise.
960 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
962 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
963 * cfgcleanup.c (flow_find_cross_jump): Likewise.
964 (flow_find_head_matching_sequence): Likewise.
965 (try_head_merge_bb): Likewise.
966 * combine.c (can_combine_p): Likewise.
967 (try_combine): Likewise.
968 (distribute_notes): Likewise.
969 * df-problems.c (can_move_insns_across): Likewise.
970 * final.c (final): Likewise.
971 * gcse.c (insert_insn_end_basic_block): Likewise.
972 * ira.c (find_moveable_pseudos): Likewise.
973 * reorg.c (try_merge_delay_insns): Likewise.
974 (fill_simple_delay_slots): Likewise.
975 (fill_slots_from_thread): Likewise.
976 * sched-deps.c (sched_analyze_2): Likewise.
978 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
980 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
981 PIC_OFFSET_TABLE_REGNUM.
983 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
985 * alias.c (init_alias_target): Remove ifdef
986 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
987 * df-scan.c (df_insn_refs_collect): Likewise.
988 (df_get_regular_block_artificial_uses): Likewise.
989 (df_get_eh_block_artificial_uses): Likewise.
990 (df_get_entry_block_def_set): Likewise.
991 (df_get_exit_block_use_set): Likewise.
992 * emit-rtl.c (gen_rtx_REG): Likewise.
993 * ira.c (ira_setup_eliminable_regset): Likewise.
994 * reginfo.c (init_reg_sets_1): Likewise.
995 * regrename.c (rename_chains): Likewise.
996 * reload1.c (reload): Likewise.
997 (eliminate_regs_in_insn): Likewise.
998 * resource.c (mark_referenced_resources): Likewise.
999 (init_resource_info): Likewise.
1001 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1003 * defaults.h (MASK_RETURN_ADDR): New definition.
1004 * except.c (expand_builtin_extract_return_addr): Remove ifdef
1007 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1009 * defaults.h (RETURN_ADDR_OFFSET): New definition.
1010 * except.c (expand_builtin_extract_return_addr): Remove ifdef
1012 (expand_builtin_frob_return_addr): Likewise.
1014 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1016 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
1017 (try_redirect_by_replacing_jump): Likewise.
1018 (rtl_tidy_fallthru_edge): Likewise.
1019 * combine.c (insn_a_feeds_b): Likewise.
1020 (find_split_point): Likewise.
1021 (simplify_set): Likewise.
1022 * cprop.c (cprop_jump): Likewise.
1023 * cse.c (cse_extended_basic_block): Likewise.
1024 * df-problems.c (can_move_insns_across): Likewise.
1025 * function.c (emit_use_return_register_into_block): Likewise.
1026 * haifa-sched.c (sched_init): Likewise.
1027 * ira.c (find_moveable_pseudos): Likewise.
1028 * loop-invariant.c (find_invariant_insn): Likewise.
1029 * lra-constraints.c (curr_insn_transform): Likewise.
1030 * postreload.c (reload_combine_recognize_const_pattern):
1032 * reload.c (find_reloads): Likewise.
1033 * reorg.c (delete_scheduled_jump): Likewise.
1034 (steal_delay_list_from_target): Likewise.
1035 (steal_delay_list_from_fallthrough): Likewise.
1036 (redundant_insn): Likewise.
1037 (fill_simple_delay_slots): Likewise.
1038 (fill_slots_from_thread): Likewise.
1039 (delete_computation): Likewise.
1040 * sched-rgn.c (add_branch_dependences): Likewise.
1042 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1044 * genconfig.c (main): Always define HAVE_cc0.
1045 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
1047 * cfgcleanup.c (flow_find_cross_jump): Likewise.
1048 (flow_find_head_matching_sequence): Likewise.
1049 (try_head_merge_bb): Likewise.
1050 * cfgrtl.c (rtl_merge_blocks): Likewise.
1051 (try_redirect_by_replacing_jump): Likewise.
1052 (rtl_tidy_fallthru_edge): Likewise.
1053 * combine.c (do_SUBST_MODE): Likewise.
1054 (insn_a_feeds_b): Likewise.
1055 (combine_instructions): Likewise.
1056 (can_combine_p): Likewise.
1057 (try_combine): Likewise.
1058 (find_split_point): Likewise.
1060 (simplify_set): Likewise.
1061 (distribute_notes): Likewise.
1062 * cprop.c (cprop_jump): Likewise.
1063 * cse.c (cse_extended_basic_block): Likewise.
1064 * df-problems.c (can_move_insns_across): Likewise.
1065 * final.c (final): Likewise.
1066 (final_scan_insn): Likewise.
1067 * function.c (emit_use_return_register_into_block): Likewise.
1068 * gcse.c (insert_insn_end_basic_block): Likewise.
1069 * haifa-sched.c (sched_init): Likewise.
1070 * ira.c (find_moveable_pseudos): Likewise.
1071 * loop-invariant.c (find_invariant_insn): Likewise.
1072 * lra-constraints.c (curr_insn_transform): Likewise.
1073 * optabs.c (prepare_cmp_insn): Likewise.
1074 * postreload.c (reload_combine_recognize_const_pattern):
1076 * reload.c (find_reloads): Likewise.
1077 (find_reloads_address_1): Likewise.
1078 * reorg.c (delete_scheduled_jump): Likewise.
1079 (steal_delay_list_from_target): Likewise.
1080 (steal_delay_list_from_fallthrough): Likewise.
1081 (try_merge_delay_insns): Likewise.
1082 (redundant_insn): Likewise.
1083 (fill_simple_delay_slots): Likewise.
1084 (fill_slots_from_thread): Likewise.
1085 (delete_computation): Likewise.
1086 (relax_delay_slots): Likewise.
1087 * sched-deps.c (sched_analyze_2): Likewise.
1088 * sched-rgn.c (add_branch_dependences): Likewise.
1090 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1092 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
1093 that is trivially ded on non cc0 targets.
1094 (simplify_set): Likewise.
1095 (mark_used_regs_combine): Likewise.
1096 * cse.c (new_basic_block): Likewise.
1097 (fold_rtx): Likewise.
1098 (cse_insn): Likewise.
1099 (cse_extended_basic_block): Likewise.
1100 (set_live_p): Likewise.
1101 * rtlanal.c (canonicalize_condition): Likewise.
1102 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1104 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1106 * conditions.h: Define macros even if HAVE_cc0 is undefined.
1107 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
1108 * final.c: Likewise.
1110 * recog.c: Likewise.
1111 * recog.h: Declare functions even when HAVE_cc0 is undefined.
1112 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
1114 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1116 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
1117 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
1118 * builtins.c (expand_builtin): Remove check if
1119 EH_RETURN_DATA_REGNO is defined.
1120 * df-scan.c (df_bb_refs_collect): Likewise.
1121 (df_get_exit_block_use_set): Likewise.
1122 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1123 * ira-lives.c (process_bb_node_lives): Likewise.
1124 * lra-lives.c (process_bb_lives): Likewise.
1126 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
1128 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
1129 FIRST_PSEUDO_REG): New.
1130 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
1131 (ARG_POINTER_REGNUM): Define to ARGP_REG.
1132 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
1133 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
1134 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
1135 (FIRST_INT_REG): New.
1136 (LAST_INT_REG): New.
1137 (FIRST_*_REG): Define using *_REG.
1138 (LAST_*_REG): Ditto.
1139 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
1140 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
1141 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
1143 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1145 * expmed.c: (synth_mult): Only assume overlapping
1146 shift with previous steps in alg_sub_t_m2 case.
1148 2015-04-21 Richard Biener <rguenther@suse.de>
1150 PR tree-optimization/65650
1151 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
1152 transitions involving copies.
1153 (set_lattice_value): Adjust for copy lattice state.
1154 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
1155 if that doesn't dominate the merge point.
1156 (bit_value_unop): Adjust what we treat as varying mask.
1157 (bit_value_binop): Likewise.
1158 (bit_value_assume_aligned): Likewise.
1159 (evaluate_stmt): When we simplified to a SSA name record a copy
1160 instead of dropping to varying.
1161 (visit_assignment): Simplify.
1163 * gimple-match.h (gimple_simplify): Add another callback.
1164 * gimple-fold.c (fold_stmt_1): Adjust caller.
1165 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
1166 for the 2nd callback.
1167 * gimple-match-head.c (gimple_simplify): Add a callback that is
1168 used to valueize the stmt operands and use it that way.
1170 2015-04-21 Richard Biener <rguenther@suse.de>
1172 PR tree-optimization/65788
1173 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
1175 2015-04-21 Richard Biener <rguenther@suse.de>
1177 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
1178 vec_construct cost by vec_stmt_cost.
1180 2015-04-21 Richard Biener <rguenther@suse.de>
1182 * cfghooks.h (create_basic_block): Replace with two overloads
1184 (split_block): Likewise.
1185 * cfghooks.c (split_block): Rename to ...
1186 (split_block_1): ... this.
1187 (split_block): Add two type-safe overloads for RTL and GIMPLE.
1188 (split_block_after_labels): Call split_block_1.
1189 (create_basic_block): Rename to ...
1190 (create_basic_block_1): ... this.
1191 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
1192 (create_empty_bb): Call create_basic_block_1.
1193 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
1194 split_block_after_labels.
1195 * omp-low.c (expand_parallel_call): Likewise.
1196 (expand_omp_target): Likewise.
1197 (simd_clone_adjust): Likewise.
1198 * tree-chkp.c (chkp_get_entry_block): Likewise.
1199 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
1200 create_basic_block overload.
1201 (cgraph_node::expand_thunk): Likewise.
1202 * tree-cfg.c (make_blocks): Likewise.
1203 (handle_abnormal_edges): Likewise.
1204 * tree-inline.c (copy_bb): Likewise.
1206 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1208 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
1210 (*xor_one_cmplsidi3_ze): Likewise.
1212 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1214 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
1215 use df_remove_problem rather than manually removing problems, leaving
1216 holes in df->problems_in_order[].
1218 2015-04-21 Tom de Vries <tom@codesourcery.com>
1220 PR tree-optimization/65802
1221 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
1223 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1225 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
1227 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
1228 at '.'. Assert that there's enough space for everything.
1230 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
1232 PR tree-optimization/64950
1234 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
1237 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1240 2015-04-20 Shiva Chen <shiva0217@gmail.com>
1242 PR rtl-optimization/64916
1243 * cfgcleanup.c (values_equal_p): New function.
1244 (can_replace_by): Use it.
1246 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
1249 * doc/invoke.texi ([-Wnarrowing]): Update.
1251 2015-04-20 Jeff Law <law@redhat.com>
1253 PR tree-optimization/65658
1254 * tree-ssa-threadupdate.c (redirection_block_p): Remove
1255 redundant test for GIMPLE_ASSIGN in last change.
1257 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
1259 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
1260 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
1261 (legitimize_tls_address): Ditto.
1262 (ix86_expand_move): Ditto.
1263 (ix86_expand_binary_operator): Remove reload_in_progress checks.
1264 (ix86_expand_unary_operator): Ditto.
1265 * config/i386/predicates.md (index_register_operand): Ditto.
1267 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
1269 * reorg.c (try_merge_delay_insns): Improve correctness checking
1270 for targets with multiple delay slots.
1272 2015-04-20 Jeff Law <law@redhat.com>
1274 PR tree-optimization/65658
1275 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
1278 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
1280 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
1281 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
1284 2015-04-20 Jakub Jelinek <jakub@redhat.com>
1287 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
1289 2015-04-20 Richard Biener <rguenther@suse.de>
1291 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
1292 * gimple-fold.c (gimple_build_valueize): New function.
1293 (gimple_build): Always use gimple_build_valueize as valueize hook.
1295 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
1298 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
1299 and overwrite variable parts if <= 1/2 the elements are variable.
1301 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
1303 PR rtl-optimization/65805
1304 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
1305 Don't use difference of offset and previous offset if
1306 update_sp_offset is non-zero.
1307 (eliminate_regs_in_insn): Ditto.
1308 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
1309 lra_eliminate_regs_1 call.
1310 * lra-constraints.c (get_equiv_with_elimination): Ditto.
1312 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
1314 * hash-table.h: Remove version of hash_table that stored value_type *.
1315 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
1316 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
1317 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
1318 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
1319 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
1320 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
1321 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
1322 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
1323 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
1324 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
1325 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
1326 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
1327 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1328 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
1329 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
1330 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
1332 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1333 Jakub Jelinek <jakub@redhat.com>
1336 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
1337 subsequent SH_NONE operand does not overwrite an existing *special
1339 (adjust_extract): Handle case where a vec_extract operation is
1340 wrapped in a PARALLEL.
1342 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
1345 * config/i386/i386.c (ix86_binds_local_p): Define only if
1346 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
1348 2015-04-17 Jeff Law <law@redhat.com>
1350 PR tree-optimization/47679
1351 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
1352 * tree-ssa-scopedtables.c: New file.
1353 * tree-ssa-scopedtables.h: New file.
1354 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
1355 (const_and_copies): Change name/type.
1356 (record_const_or_copy): Move into tree-ssa-scopedtables.c
1357 (record_const_or_copy_1): Similarly.
1358 (restore_vars_to_original_value): Similarly.
1359 (pass_dominator::execute): Create and destroy const_and_copies table.
1360 (thread_across_edge): Update passing of const_and_copies.
1361 (record_temporary_equivalence): Use method calls rather than
1362 manipulating const_and_copies directly.
1363 (record_equality, cprop_into_successor_phis): Similarly.
1364 (dom_opt_dom_walker::before_dom_children): Similarly.
1365 (dom_opt_dom_walker::after_dom_children): Similarly.
1366 (eliminate_redundant_computations): Similarly.
1367 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
1368 (record_temporary_equivalence): Likewise.
1369 (invalidate_equivalences): Likewise.
1370 (record_temporary_equivalences_from_phis): Update due to type
1371 change of const_and_copies. Use method calls rather than
1372 manipulating the stack directly.
1373 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1374 (thread_through_normal_block, thread_across_edge): Likewise.
1375 (thread_across_edge): Likewise.
1376 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1377 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
1379 (identify_jump_threads): Update due to type change of equiv_stack.
1380 (finalize_jump_threads): Delete the equiv_stack when complete.
1382 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
1384 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
1385 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
1386 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
1388 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
1391 * config.gcc: Exit with a comment when we do not have a major version
1392 number for the FreeBSD target.
1394 2015-04-17 Jakub Jelinek <jakub@redhat.com>
1397 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
1398 maybe_allows_mem bitfields.
1399 (maybe_allows_none_start, maybe_allows_none_end,
1400 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
1401 maybe_allows_mem_end): New variables.
1402 (compute_maybe_allows): New function.
1403 (add_constraint): Use it to initialize maybe_allows_reg and
1404 maybe_allows_mem fields.
1405 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
1406 is_address constraints such that those that allow neither mem nor
1407 reg come first, then those that only allow reg but not mem, then
1408 those that only allow mem but not reg, then the rest.
1409 (write_allows_reg_mem_function): New function.
1410 (write_tm_preds_h): Call it.
1411 * stmt.c (parse_output_constraint, parse_input_constraint): Use
1412 the generated insn_extra_constraint_allows_reg_mem function
1413 instead of always setting *allows_reg = true; *allows_mem = true;
1414 for unknown extra constraints.
1416 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
1419 * output.h (default_binds_local_p_3): New.
1420 * varasm.c (default_binds_local_p_3): Make it public. Take an
1421 argument to indicate if common symbol may be local. If common
1422 symbol may be local, treat non-external variable as defined
1424 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
1425 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
1426 * config/i386/i386.c (ix86_binds_local_p): New.
1427 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
1430 2015-04-17 Jakub Jelinek <jakub@redhat.com>
1433 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
1434 trying mem_loc_descriptor on XEXP (rtl, 0).
1436 2015-04-17 Martin Liska <mliska@suse.cz>
1438 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
1439 Release symbol_compare_collection.
1440 * ipa-reference.c: Add TODO that a vector should be released.
1442 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
1445 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
1446 to new AVR-LibC file layout (bug #44574).
1447 (*avrlibc_devicelib): Same.
1448 * config/avr/avr-mcus.def: Adjust comments.
1449 * config/avr/avr.opt (nodevicelib): Adjust help.
1451 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
1453 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
1455 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
1458 * gimplify.c (gimplify_init_constructor): Always emit a
1459 side-effecting constructor.
1461 2015-04-17 Tom de Vries <tom@codesourcery.com>
1463 PR tree-optimization/64950
1464 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
1465 in cfun->curr_properties.
1466 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
1467 if we generate an IFN_VA_ARG.
1468 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
1469 function if PROP_gimple_lva is not set in src function.
1471 2015-04-17 Tom de Vries <tom@codesourcery.com>
1472 Michael Matz <matz@suse.de>
1474 PR tree-optimization/64950
1475 * gimple-iterator.c (update_modified_stmts): Remove static.
1476 * gimple-iterator.h (update_modified_stmts): Declare.
1477 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
1478 (gimplify_va_arg_internal): New function.
1479 (gimplify_va_arg_expr): Use IFN_VA_ARG.
1480 * gimplify.h (gimplify_va_arg_internal): Declare.
1481 * internal-fn.c (expand_VA_ARG): New unreachable function.
1482 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
1483 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
1484 (expand_ifn_va_arg): New function.
1485 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
1486 (pass_stdarg::execute): Call expand_ifn_va_arg.
1487 (pass_data_lower_vaarg): New pass_data.
1488 (pass_lower_vaarg): New gimple_opt_pass.
1489 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
1490 (make_pass_lower_vaarg): New function.
1491 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
1492 properties_required field.
1493 * passes.def (all_passes): Add pass_lower_vaarg.
1494 * tree-pass.h (PROP_gimple_lva): Add define.
1495 (make_pass_lower_vaarg): Declare.
1497 2015-04-17 Tom de Vries <tom@codesourcery.com>
1499 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
1500 * calls.c (call_expr_flags): Same.
1502 2015-04-17 Tom de Vries <tom@codesourcery.com>
1504 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
1505 (pass_stdarg::execute): ... here.
1507 2015-04-17 Tom de Vries <tom@codesourcery.com>
1508 Michael Matz <matz@suse.de>
1510 * tree-cfg.c (make_blocks_1): Factor out of ...
1511 (make_blocks): ... here.
1512 (make_edges_bb): Factor out of ...
1513 (make_edges): ... here.
1514 (gimple_find_sub_bbs): New function.
1515 * tree-cfg.h (gimple_find_sub_bbs): Declare.
1517 2015-04-17 Tom de Vries <tom@codesourcery.com>
1519 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
1521 2015-04-17 Yury Gribov <y.gribov@samsung.com>
1523 * asan.c (set_sanitized_sections): New function.
1524 (section_sanitized_p): Ditto.
1525 (asan_protect_global): Optionally sanitize user-defined
1527 * asan.h (set_sanitized_sections): Declare new function.
1528 * common.opt (fsanitize-sections): New option.
1529 * doc/invoke.texi (-fsanitize-sections): Document new option.
1530 * opts-global.c (handle_common_deferred_options): Handle new
1533 2015-04-17 Jakub Jelinek <jakub@redhat.com>
1536 * dwarf2out.c (loc_list_from_tree): Return NULL
1537 for DEBUG_EXPR_DECL.
1539 2015-04-17 Christian Bruel <christian.bruel@st.com>
1541 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
1544 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1546 * ira-color.c (setup_left_conflict_sizes_p): Do not process
1547 node itself when computing left conflict subnode size.
1549 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
1551 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
1552 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
1553 *fop_<mode>_1_sse using enabled attribute. Use
1554 register_mixssei387nonimm_operand operand 1 predicate. Change
1555 alternative 3 constraints from "x" to "v".
1557 2015-04-16 Richard Biener <rguenther@suse.de>
1559 PR tree-optimization/65774
1560 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
1561 bit-value tracking on.
1563 2015-04-16 Richard Biener <rguenther@suse.de>
1565 PR tree-optimization/64277
1566 * tree-vrp.c (check_array_ref): Fix anti-range handling,
1567 simplify upper bound handling.
1568 (search_for_addr_array): Simplify.
1569 (check_array_bounds): Handle ADDR_EXPRs here.
1570 (check_all_array_refs): Simplify.
1572 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
1574 * config/i386/i386.c (print_reg): Rewrite function.
1576 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1578 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
1579 Invert the condition.
1581 2015-04-16 Renlin Li <renlin.li@arm.com>
1583 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
1584 simplifications for UNSIGNED_FLOAT.
1586 2015-04-16 Nick Clifton <nickc@redhat.com>
1588 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
1590 (enum rl78_cpu_type): New.
1591 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
1592 (umulhi3_shift_virt): Remove m constraint from operand 1.
1593 (umulqihi3_virt): Likewise.
1594 * config/rl78/rl78.c (rl78_option_override): Add code to process
1595 -mcpu and -mmul options.
1596 (rl78_alloc_physical_registers): Add code to handle divhi and
1597 divsi valloc attributes.
1598 (set_origin): Likewise.
1599 * config/rl78/rl78.h (RL78_MUL_G14): Define.
1600 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
1601 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
1603 (ASM_SPEC): Pass -mcpu on to assembler.
1604 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
1605 (mulqi3_rl78): Likewise.
1606 (mulhi3_g13): Likewise.
1607 (mulhi3): Generate the G13 or G14 versions of the insn directly.
1609 (mulhi3_g14): Add clobbers of AX and BC.
1610 (mulsi3_g14): Likewise.
1611 (mulsi3_g13): Likewise.
1612 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
1613 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
1614 * config/rl78/rl78.opt (mmul): Initialise value to
1617 (m13, m14, mrl78): New option aliases.
1618 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
1619 (MULTILIB_DIRNAMES): Add g13 and g14.
1620 * doc/invoke.texi: Document -mcpu and -mmul options.
1622 2015-04-16 Richard Biener <rguenther@suse.de>
1624 * tree-ssa-ccp.c (likely_value): See if we have operands that
1625 are marked as never simulate again and return CONSTANT in this
1627 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
1628 not have any operands that will be simulated again as
1629 not being simulated again.
1631 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
1633 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
1634 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
1635 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
1637 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
1639 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
1640 *float<SWI48:mode><MODEF:mode>2_sse.
1641 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
1643 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
1646 2015-04-15 Tom de Vries <tom@codesourcery.com>
1649 * function.c (push_dummy_function): New function.
1650 (init_dummy_function_start): Use push_dummy_function.
1651 (pop_dummy_function): New function. Factored out of ...
1652 (expand_dummy_function_end): ... here.
1653 * function.h (push_dummy_function, pop_dummy_function): Declare.
1654 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
1656 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
1658 2015-04-15 Jeff Law <law@redhat.com>
1660 PR tree-optimization/47679
1661 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
1662 need for forward declaration in upcoming changes.
1663 (record_conditions, record_edge_info): Likewise.
1665 PR rtl-optimization/42522
1666 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
1667 SIGN_EXTRACT as a whole object rather than simplifying
1670 2015-04-15 Jakub Jelinek <jakub@redhat.com>
1673 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
1674 and GIMPLE_PREDICT use break instead of return true. For
1675 GIMPLE_EH_DISPATCH, compare dispatch region.
1677 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
1679 * doc/extend.texi (__sync Builtins): Simplify some text. Update
1680 details about the implementation. Make clear preference for
1681 __atomic builtins. Reduce possibility of future change.
1683 2015-04-15 Nick Clifton <nickc@redhat.com>
1685 * config/rx/rx.opt (mallow-string-insns): New option.
1686 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
1687 builtin if string instructions are denied.
1688 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
1689 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
1691 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
1692 * config/rx/rx.md (movstr): Enable pattern only if string
1693 instructions are allowed.
1694 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
1695 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
1696 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
1697 (MULTILIB_DIRNAMES): Add no-strings.
1698 * doc/invoke.texi: Document -mno-allow-string-insns.
1700 2015-04-15 Alan Modra <amodra@gmail.com>
1705 * calls.c (load_register_parameters): Don't load past end of
1706 mem unless suitably aligned.
1708 2015-04-15 Nick Clifton <nickc@redhat.com>
1710 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
1711 decrement instruction as being frame related.
1712 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
1714 If zero extending a function address enclose the operation in
1716 (rl78_preferred_reload_class): New function.
1717 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1718 * config/rl78/rl78.md: Remove useless constraints in expanders.
1719 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
1720 (mulhi3_rl78): Likewise.
1721 (mulhi3_g13): Likewise.
1722 (mulsi3_rl78): Likewise.
1723 (es_addr): Move to before the multiply patterns.
1725 2015-04-15 Alan Modra <amodra@gmail.com>
1727 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
1728 and sequence_stack. Add seq.
1729 (seq_stack): Delete.
1730 * function.c (prepare_function_start): Don't access x_last_insn.
1731 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
1732 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
1733 * emit_rtl.c (start_sequence, push_topmost_sequence,
1734 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
1736 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
1737 remove_insn): Likewise. Simplify.
1738 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
1739 and pop_topmost_sequence.
1740 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
1742 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
1744 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
1747 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
1750 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
1752 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
1753 (LEGACY_INT_REGNO_P): Ditto.
1754 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
1755 (ANY_MASK_REG_P): Remove.
1756 (BND_REG_P): Rename from ANY_BND_REG_P.
1757 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
1758 legacy integer registers. Do not handle MMX_REG_P in a special way.
1759 Merge 64byte and 32byte SSE handling.
1761 2015-04-14 Nick Clifton <nickc@redhat.com>
1763 * expr.c (expand_assignment): Force an address offset computation
1764 into a register before changing its mode.
1765 (expand_expr_real_1): Likewise.
1767 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
1769 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
1770 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
1771 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
1772 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
1773 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
1774 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
1775 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
1776 and __aarch64_vget_lane_any.
1778 2015-04-14 Jakub Jelinek <jakub@redhat.com>
1780 PR rtl-optimization/65761
1781 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
1782 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
1784 2015-04-14 Richard Biener <rguenther@suse.de>
1786 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
1787 (graphite_can_represent_scev): Use POINTER_TYPE_P.
1789 2015-04-14 Richard Biener <rguenther@suse.de>
1791 PR tree-optimization/65758
1792 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
1794 (ccp_lattice_meet): Likewise.
1795 (bit_value_unop): Likewise.
1796 (bit_value_binop): Likewise.
1797 (bit_value_assume_aligned): Likewise.
1799 2015-04-14 Christian Bruel <christian.bruel@st.com>
1801 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
1804 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
1806 PR tree-optimization/63387
1807 * match.pd ((x unord x) | (y unord y) -> (x unord y),
1808 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
1810 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
1812 * config/i386/predicates.md (any_QIreg_operand): Rename from
1813 q_regs_operand. Do not process subregs.
1814 (QIreg_operand): Use QI_REGNO_P predicate.
1815 (ext_QIreg_operand): Ditto.
1816 (ext_register_operand): Ditto.
1817 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
1818 (AND splitters): Ditto.
1819 (AND with -65536 splitter): Add SWI48 mode for operand 0.
1820 (AND with -256 splitter): Use any_QIreg_operand predicate and
1821 SWI248 mode for operand 0.
1822 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
1824 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
1826 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
1828 * doc/plugins.texi: Rewrite first introductory paragraph.
1830 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1832 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
1833 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
1835 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1837 * ipa-profie.c (ipa_profile): Check number of parameters
1838 and possible polymorphic call targets before
1841 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
1843 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
1844 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
1846 2015-04-13 Richard Biener <rguenther@suse.de>
1848 PR tree-optimization/65204
1849 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
1852 2015-04-13 Richard Biener <rguenther@suse.de>
1855 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
1856 and cond_not_taken_branch_cost to 4 and 2.
1857 (bdver2_cost): Likewise.
1858 (bdver3_cost): Likewise.
1859 (bdver4_cost): Likewise.
1861 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1863 * hash-table.h (hash_table constructor): Add mem stats.
1864 (alloc_entries): Likewise.
1866 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1868 * ipa-cp.c (ipcp_driver): Relase prev_edge.
1869 * passes.c (execute_one_pass): Only add transform if pass has one.
1871 2015-04-12 Joseph Myers <joseph@codesourcery.com>
1873 * config/i386/i386.c (ix86_option_override_internal): Don't set
1874 -fprefetch-loop-arrays if optimizing for size.
1876 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
1877 Gerald Pfeifer <gerald@pfeifer.com>
1879 * doc/contrib.texi (Contributors): Add Martin Jambor and
1882 2015-04-12 Jakub Jelinek <jakub@redhat.com>
1884 * BASE-VER: Set to 6.0.0.
1886 PR tree-optimization/65747
1887 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
1888 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
1890 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1892 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
1893 sentence. Improve grammar.
1895 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1897 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
1899 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
1902 * ipa-inline-transform.c (speculation_removed): Remove static var.
1903 (check_speculations): New function.
1904 (clone_inlined_nodes): Do not check spculations.
1905 (inline_call): Call check_speculations.
1906 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
1907 consider non-invariants.
1909 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
1910 Martin Liska <mliska@suse.cz>
1913 * ipa-icf.c (sem_item::compare_cgraph_references): function and
1914 variable can not match.
1915 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
1916 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
1918 2015-04-11 Jakub Jelinek <jakub@redhat.com>
1920 PR tree-optimization/65735
1921 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
1922 Remove visited_phis argument, add visited_bbs, avoid recursing into the
1923 same bb rather than just into the same phi node.
1924 (thread_through_normal_block): Adjust caller.
1926 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
1928 * doc/contrib.texi (Contributors): Add Ira Rosen.
1930 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
1932 * gcov.c (find_source): Fix miswording in error message.
1933 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
1934 (ix86_expand_sse_comi_round): Fix typo in error message.
1936 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
1938 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
1940 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
1942 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
1944 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
1947 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
1948 Print bad_spills_num and insn_pseudos_num.
1950 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1953 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
1954 when creating +1 values for SImode.
1956 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
1959 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
1962 2015-04-10 Jakub Jelinek <jakub@redhat.com>
1963 Iain Sandoe <iain@codesourcery.com>
1966 * configure: Regenerate.
1968 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
1971 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
1973 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
1975 * doc/contrib.texi (Contributors): Add John Marino.
1977 2015-04-09 Jakub Jelinek <jakub@redhat.com>
1979 PR tree-optimization/65709
1980 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
1981 TREE_TYPE (TREE_TYPE (t)).
1983 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
1986 * lra-int.h (lra_bad_spill_regno_start): New.
1987 * lra.c (lra_bad_spill_regno_start): New.
1988 (lra): Set up lra_bad_spill_regno_start. Set up
1989 lra_constraint_new_regno_start unconditionally.
1990 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
1993 2015-04-09 Marek Polacek <polacek@redhat.com>
1994 Jakub Jelinek <jakub@redhat.com>
1997 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
1998 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
2001 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
2003 PR rtl-optimization/65693
2004 * combine.c (is_parallel_of_n_reg_sets): Move outside of
2007 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
2010 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
2011 device specs file if "device-specs%s" didn't resolve to a path.
2013 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
2016 * config/i386/i386.c (fixup_modeless_constant): New.
2017 (ix86_expand_args_builtin): Fixup modeless constant operand.
2018 (ix86_expand_round_builtin): Ditto.
2019 (ix86_expand_special_args_builtin): Ditto.
2020 (ix86_expand_builtin): Ditto.
2022 2015-04-09 Jakub Jelinek <jakub@redhat.com>
2025 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
2026 any pow2 integer in between 2 and 0x80000000U inclusive.
2028 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
2030 PR rtl-optimization/65693
2031 * combine.c (is_parallel_of_n_reg_sets): Change first argument
2032 from an rtx_insn * to an rtx.
2033 (try_combine): Adjust both callers. Use it once more.
2035 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2037 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
2038 (chkp_make_static_const_bounds): Search existing
2039 symbol by assembler name. Use make_decl_one_only.
2040 (chkp_get_zero_bounds_var): Remove node search which
2041 is now performed in chkp_make_static_const_bounds.
2042 (chkp_get_none_bounds_var): Likewise.
2044 2015-04-08 Michael Witten <mfwitten@gmail.com>
2046 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
2049 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2051 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
2053 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
2055 * doc/extend.texi (__sync Builtins): Fix grammar.
2057 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2059 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
2061 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2063 * varasm.c (emit_local): Move definition of align.
2065 2015-04-08 Julian Brown <julian@codesourcery.com>
2067 * config/nvptx/mkoffload.c (process): Support variable mapping.
2069 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
2071 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
2073 (alpha_write_one_linkage): Correct typo.
2075 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2077 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
2079 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
2081 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
2083 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
2085 * tree-chkp.h (chkp_insert_retbnd_call): New.
2086 * tree-chkp.c (chkp_insert_retbnd_call): New.
2087 * ipa-split.c (insert_bndret_call_after): Remove.
2088 (split_function): Use chkp_insert_retbnd_call.
2089 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
2090 bounds for instrumented functions.
2092 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
2095 * calls.c (initialize_argument_information): When producing tail
2096 call also turn SSA_NAMES passed by references to original PARM_DECLs
2098 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
2101 * lra-remat.c (do_remat): Process input and non-input insn
2102 registers separately.
2104 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2107 * valtrack.c (debug_lowpart_subreg): New function.
2108 (dead_debug_insert_temp): Use it.
2111 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
2112 into signed HOST_WIDE_INT the same as negative bit_offset.
2114 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
2116 * ipa-comdats.c (ipa_comdats): Visit all thunks
2117 to set proper comdat group.
2119 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2122 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
2123 on constants for NEON VSTRUCT modes.
2125 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2126 Iain Sandoe <iain@codesourcery.com>
2129 * configure: Regenerate.
2131 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2134 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
2135 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
2136 that LFD is used to load double constants instead of LFS. Add
2137 defaults for all costs structures. Add comments for missing
2138 initialization fields.
2139 (size32_cost): Likewise.
2140 (size64_cost): Likewise.
2141 (rs64a_cost): Likewise.
2142 (mpccore_cost): Likewise.
2143 (ppc403_cost): Likewise.
2144 (ppc405_cost): Likewise.
2145 (ppc440_cost): Likewise.
2146 (ppc476_cost): Likewise.
2147 (ppc601_cost): Likewise.
2148 (ppc603_cost): Likewise.
2149 (ppc604_cost): Likewise.
2150 (ppc604e_cost): Likewise.
2151 (ppc620_cost): Likewise.
2152 (ppc630_cost): Likewise.
2153 (ppccell_cost): Likewise.
2154 (ppc750_cost): Likewise.
2155 (ppc7450_cost): Likewise.
2156 (ppc8540_cost): Likewise.
2157 (ppce300c2c3_cost): Likewise.
2158 (ppce500mc_cost): Likewise.
2159 (ppce500mc64_cost): Likewise.
2160 (ppce5500_cost): Likewise.
2161 (ppce6500_cost): Likewise.
2162 (titan_cost): Likewise.
2163 (power4_cost): Likewise.
2164 (power6_cost): Likewise.
2165 (power7_cost): Likewise.
2166 (power8_cost): Likewise.
2167 (ppca2_cost): Likewise.
2168 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
2170 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
2171 instead of XXLOR to copy SFmode to clear out dirty bits created
2172 when SFmode denormals are generated.
2173 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
2174 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
2176 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
2178 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
2179 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
2180 * config/aarch64/aarch64-tune.md: Regenerate.
2182 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
2184 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
2185 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
2186 * config/arm/arm-cores.def (exynos-m1): New core.
2187 * config/arm/arm-tune.md: Regenerate.
2188 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
2189 * config/arm/bpabi.h: Likewise.
2191 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
2193 * ipa-cp (set_single_call_flag): Remove too
2196 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2198 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
2199 GOMP_offload_unregister from the destructor.
2201 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
2203 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
2204 flags for instrumentation thunk.
2205 (chkp_produce_thunks): Likewise.
2207 2015-04-05 Martin Liska <mliska@suse.cz>
2210 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
2211 has computed data structure.
2212 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2214 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
2216 * invoke.texi (inline-unit-growth): Increase growth to 20%
2217 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
2219 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
2222 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
2224 (lra_rematerialization_iter): New.
2225 * lra.c (lra): Initialize lra_rematerialization_iter.
2226 Stop updating lra_constraint_new_regno_start after switching of
2227 inheritance and rematerialization.
2228 * lra-remat.c (lra_rematerialization_iter): New.
2229 (lra_remat): Add printing pass iteration. Do rematerialization
2230 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
2232 2015-04-04 Richard Biener <rguenther@suse.de>
2234 PR tree-optimization/64909
2235 PR tree-optimization/65660
2236 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
2237 to take a cost vector for scalar iteration cost.
2238 (vect_get_single_scalar_iteration_cost): Likewise.
2239 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
2240 Compute the scalar iteration cost into a cost vector.
2241 (vect_get_known_peeling_cost): Use the scalar cost vector to
2242 account for the cost of the peeled iterations.
2243 (vect_estimate_min_profitable_iters): Likewise.
2244 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2247 2015-04-04 Alan Modra <amodra@gmail.com>
2251 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
2252 0.0 constant unless TARGET_VSX.
2253 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
2256 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
2259 * ipa-inline-transform.c (inline_call): Skip sanity check to work
2262 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
2265 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
2266 speculative indirect edges to avoid ordering issue.
2268 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
2271 * ipa-inline.c (edge_badness): Add combined size to the denominator.
2273 2015-04-03 Jakub Jelinek <jakub@redhat.com>
2275 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
2276 TYPE_ARTIFICIAL on the .omp_data* types.
2278 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2280 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
2281 instrumentation thunks.
2283 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2285 * config/i386/i386.c (ix86_expand_call): Avoid nested
2286 PARALLEL in returned call value.
2288 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2290 * lto-cgraph.c (input_cgraph_1): Always link instrumented
2291 assembler name with original one.
2293 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
2295 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
2297 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
2299 Revert parts of r216820.
2300 * config/i386/i386.md (movqi_internal): Correct type calculation
2301 for alternatives 3 and 5.
2303 2015-04-02 Jakub Jelinek <jakub@redhat.com>
2305 PR preprocessor/61977
2306 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
2307 predefine __vector/__bool/__pixel macros nor context sensitive
2309 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
2311 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
2313 * config/pa/pa.c (pa_output_move_double): Directly handle register
2314 indexed memory operand. Simplify handling of scaled register indexed
2317 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
2320 * config/i386/linux-common.h (MPX_SPEC): New.
2321 (CHKP_SPEC): Add MPX_SPEC.
2322 * doc/invoke.texi (-fcheck-pointer-boudns): Document
2323 possible issues with '-z bndplt' support in linker.
2325 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
2327 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
2328 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
2329 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
2330 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
2331 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
2333 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
2335 * config/i386/sync.md (UNSPEC_MOVA): Remove.
2336 (atomic_load<mode>): Change operand 0 predicate to
2337 nonimmediate_operand and fix up the destination when needed.
2339 (atomic_loaddi_fpu): Use UNSPEC_LDA.
2340 (atomic_store<mode>): Change operand 1 predicate to
2341 nonimmendate_operand and move the source to register when needed.
2343 (atomic_store<mode>_1): Use UNSPEC_STA.
2344 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
2345 Fix moves from memory operand. Use UNSPEC_STA.
2347 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2349 * expmed.c (strict_volatile_bitfield_p): Check that the access will
2350 not cross a MODESIZE boundary.
2351 (store_bit_field, extract_bit_field): Added assertions in the
2352 strict volatile bitfields code path.
2354 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
2357 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2358 Increase args array size by one to avoid buffer overflow.
2360 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
2362 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2364 * ipa-inline.c (edge_badness): Add wrapper penalty.
2365 (sum_callers): Move up.
2366 (inline_small_functions): Set single_caller.
2367 * ipa-inline.h (inline_summary): Add single_caller.
2368 * ipa-split.c (split_function): Set split_part.
2369 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
2370 * cgraph.h (cgraph_node): Add split_part.
2372 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
2375 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2376 Do not split operands 0 and operands 2 to halfmode.
2377 (atomic_compare_and_swap<mode>): Update for
2378 atomic_compare_and_swap<dwi>_doubleword changes.
2380 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
2382 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
2383 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
2386 2015-03-31 Martin Liska <mliska@suse.cz>
2389 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
2390 has already filled up function summary.
2391 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2393 2015-03-31 Richard Biener <rguenther@suse.de>
2395 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
2398 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
2400 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
2402 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
2403 (s390_asm_output_function_label): Adapt to new signature of
2404 s390_function_num_hotpatch_hw
2405 Optimise the code generating assembler output.
2406 Add comments to assembler file.
2408 2015-03-31 Richard Biener <rguenther@suse.de>
2411 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
2412 of the noreturn call so it is last and cleanup_control_flow_bb
2413 can do the CFG part.
2415 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
2418 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
2419 same_comdat_group for external symbols.
2420 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
2421 infinite same_comdat_group traversal loop.
2423 2015-03-31 Jakub Jelinek <jakub@redhat.com>
2426 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
2427 automatically to $headers.
2429 2015-03-30 Jakub Jelinek <jakub@redhat.com>
2432 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
2433 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
2435 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
2437 * ipa-prop.c (param_type_may_change_p): Likewise.
2438 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
2439 (remove_unused_scope_block_p): Add in_ctor_dtor_block
2440 argument. Before inlining, preserve
2441 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
2442 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
2444 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
2446 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2449 * ipa-inline.c (edge_badness): Base denominator on callee's
2452 2015-03-27 Martin Jambor <mjambor@suse.cz>
2455 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
2456 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
2457 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
2458 node_calling_single_call.
2459 * ipa-cp.c (count_callers): New function.
2460 (set_single_call_flag): Likewise.
2461 (initialize_node_lattices): Count callers and set single_flag_call if
2463 (incorporate_penalties): New function.
2464 (good_cloning_opportunity_p): Use it, dump new flags.
2465 (propagate_constants_topo): Set node_within_scc flag if appropriate.
2466 * doc/invoke.texi (ipa-cp-recursion-penalty,
2467 ipa-cp-single-call-pentalty): Document.
2469 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2472 * symtab.c (symtab_node::get_partitioning_class): Register vars
2474 * varpool.c (symbol_table::output_variables) Do not assemble unefined
2475 decls for non-symbols.
2477 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
2480 * output.h (default_binds_local_p_2): New.
2481 * varasm.c (default_binds_local_p_2): Renamed to ...
2482 (default_binds_local_p_3): This. Don't return true on protected
2483 data symbol if protected data may be external.
2484 (default_binds_local_p): Use default_binds_local_p_3.
2485 (default_binds_local_p_1): Likewise.
2486 (default_binds_local_p_2): New.
2487 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
2488 default_binds_local_p_2 if TARGET_MACHO is undefined.
2490 2015-03-27 Jakub Jelinek <jakub@redhat.com>
2493 * config/i386/i386.c (legitimize_pic_address): If base
2494 is SYMBOL_REF or LABEL_REF using %rip addressing, force
2495 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
2497 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2500 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
2503 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
2506 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
2507 of optimized out indirect call.
2508 (redirect_to_unreachable): Always build symbol table node for
2509 BUILT_IN_UNREACHABLE
2511 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
2514 * ira-costs.c (record_reg_classes): Process all constraint string
2517 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
2519 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
2523 * config/c6x/constraints.md (S3): New constraint.
2524 * config/c6x/c6x.md (real_jump): Use it.
2526 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2529 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
2530 do redirection if the call is not optimized out.
2532 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
2535 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
2536 (fchkp-check-incomplete-type): Add LTO.
2537 (fchkp-zero-input-bounds-for-main): Likewise.
2538 (fchkp-first-field-has-own-bounds): Likewise.
2539 (fchkp-narrow-bounds): Likewise.
2540 (fchkp-narrow-to-innermost-array): Likewise.
2541 (fchkp-use-static-bounds): Likewise.
2542 (fchkp-use-static-const-bounds): Likewise.
2543 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2545 2015-03-27 Marek Polacek <polacek@redhat.com>
2547 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
2549 2015-03-27 Marek Polacek <polacek@redhat.com>
2552 * ubsan.c (ubsan_create_edge): New function.
2553 (instrument_bool_enum_load): Call it.
2554 (instrument_nonnull_arg): Likewise.
2555 (instrument_nonnull_return): Likewise.
2556 (instrument_object_size): Likewise.
2558 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2560 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
2563 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2566 * lto-streamer.h (class lto_location_cache): New.
2567 (struct data_in): Add location_cache.
2568 (lto_input_location): Update prototype.
2569 (stream_input_location_now): New.
2570 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
2571 pointer to location.
2572 (stream_input_location): Update.
2573 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
2574 (warn_odr): Apply location cache before warning.
2575 (lto_input_location): Update prototype.
2576 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
2577 Use stream_input_location_now.
2578 * lto-streamer-in.c (lto_location_cache::current_cache): New static
2580 (lto_location_cache::cmp_loc): New function.
2581 (lto_location_cache::apply_location_cache): New function.
2582 (lto_location_cache::accept_location_cache): New function.
2583 (lto_location_cache::revert_location_cache): New function.
2584 (lto_location_cache::input_location): New function.
2585 (lto_input_location): Do location caching.
2586 (stream_input_location_now): New function.
2587 (input_eh_region, input_struct_function_base): Use
2588 stream_input_location_now.
2589 (lto_data_in_create): use new.
2590 (lto_data_in_delete): Use delete.
2591 * tree-streamer-in.c (unpack_ts_block_value_fields,
2592 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
2593 lto_input_ts_exp_tree_pointers): Update for cached location api.
2595 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2598 * passes.def: Add pass_nothrow.
2599 * ipa-pure-const.c: (pass_data_nothrow): New.
2600 (pass_nothrow): New.
2601 (pass_nothrow::execute): New.
2602 (make_pass_nothrow): New.
2603 * tree-pass.h (make_pass_nothrow): Declare.
2605 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2607 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
2608 edge to change by speculation resolution or redirection.
2609 (edge_set_predicate): Likewise.
2610 (inline_summary_t::duplicate): Likewise.
2611 (remap_edge_summaries): Likewise.
2613 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2615 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
2617 (can_inline_edge_p): Relax option matching for always inline functions.
2619 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
2622 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
2623 Check operand 4 and operand 0 for equality.
2624 (avx512f_vextract<shuffletype>32x4_1_maskm):
2625 Check operand 6 and operand 0 for equality.
2626 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
2628 (vec_extract_hi_<mode>_maskm): Ditto.
2630 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2632 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
2633 dead calls back to live.
2634 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
2636 (cgraph_node::verify_node): ... here; verify only callee edges,
2638 * cif-code.def (CILK_SPAWN): New code.
2640 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
2642 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
2643 (edge_set_predicate): Use it to mark unreachable edges.
2644 (inline_summary_t::duplicate): Remove unnecesary code.
2645 (remap_edge_summaries): Likewise.
2646 (dump_inline_summary): Report contains_cilk_spawn.
2647 (compute_inline_parameters): Compute contains_cilk_spawn.
2648 (inline_read_section, inline_write_summary): Stream
2649 contains_cilk_spawn.
2650 * ipa-inline.c (can_inline_edge_p): Do not touch
2651 DECL_STRUCT_FUNCTION that may not be available;
2652 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
2653 remove check for callee_fun->can_throw_non_call_exceptions and
2654 replace it by optimization attribute check; check for flag_exceptions.
2655 * ipa-inline-transform.c (inline_call): Maintain
2656 DECL_FUNCTION_PERSONALITY
2657 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
2659 2015-03-26 Jakub Jelinek <jakub@redhat.com>
2661 PR tree-optimization/65551
2662 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
2663 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
2665 2015-03-26 Richard Biener <rguenther@suse.de>
2668 * tree-cfg.c (verify_gimple_call): Do not require a call to
2669 have no LHS if it wasn't recognized as control altering yet.
2671 2015-03-26 Jakub Jelinek <jakub@redhat.com>
2673 PR tree-optimization/64715
2674 * passes.def: Add another instance of pass_object_sizes before ccp1.
2675 * tree-object-size.c (pass_object_sizes::execute): In
2676 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
2677 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
2678 __bos result and the computed constant. Remove redundant
2679 checks, obsoleted by gimple_call_builtin_p test.
2681 * var-tracking.c (variable_tracking_main_1): Don't track
2682 variables for targetm.no_register_allocation targets.
2684 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
2686 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
2687 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
2689 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2692 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
2693 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
2694 0.0 is correctly setup.
2695 (extenddftf2_internal): Likewise.
2697 2015-03-25 Sebastian Pop <s.pop@samsung.com>
2699 PR tree-optimization/65177
2700 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
2702 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
2703 edges not adjacent on the path to the original code.
2705 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
2708 * doc/install.texi (Building a native compiler): Document new
2709 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
2710 configuration assumes that the host supports the linker plugin.
2712 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
2715 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
2716 chain for generated call.
2718 2015-03-25 Richard Biener <rguenther@suse.de>
2720 * passes.c (pass_manager::execute_early_local_passes): Guard
2721 execution of pass_chkp_instrumentation_passes with
2722 flag_check_pointer_bounds.
2723 (pass_chkp_instrumentation_passes::gate): Likewise.
2725 2015-03-25 Martin Liska <mliska@suse.cz>
2727 PR tree-optimization/65538
2728 * symbol-summary.h (function_summary::~function_summary):
2729 Relese memory for allocated summaries.
2730 (function_summary::release): New function.
2732 2015-03-25 Jakub Jelinek <jakub@redhat.com>
2735 * lto-streamer-out.c (DFS::worklist): New struct.
2736 (DFS::worklist_vec): New data member.
2737 (DFS::next_dfs_num): Remove.
2738 (DFS::DFS): Rewritten using worklist instead of recursion,
2739 using most of code from DFS::DFS_write_tree.
2740 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
2741 pass it to DFS_write_tree calls.
2742 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
2743 quick initial checks push it into worklist_vec and return.
2745 2015-03-25 Richard Biener <rguenther@suse.de>
2748 * genmatch.c (expr::gen_transform): Re-write to avoid
2751 2015-03-25 Bin Cheng <bin.cheng@arm.com>
2753 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
2755 2015-03-25 Bin Cheng <bin.cheng@arm.com>
2757 * config/arm/arm.opt (print_tune_info): New option.
2758 * config/arm/arm.c (arm_print_tune_info): New function.
2759 (arm_file_start): Call arm_print_tune_info.
2760 * config/arm/arm-protos.h (struct tune_params): Add comment.
2761 * doc/invoke.texi (@item -mprint-tune-info): New item.
2762 (-mtune): mention it in ARM Option Summary.
2764 2015-03-25 DJ Delorie <dj@redhat.com>
2766 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
2769 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
2770 Martin Liska <mliska@suse.cz>
2772 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
2773 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
2774 (sem_item::add_type): New function.
2775 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
2776 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
2777 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
2778 (sem_function::equals_wpa): Fix typo.
2779 * ipa-icf.h (sem_item::add_type): New function.
2780 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
2783 2015-03-24 Jakub Jelinek <jakub@redhat.com>
2785 PR tree-optimization/65533
2786 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
2787 with swapped operands, call vect_free_slp_tree on
2788 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
2791 2015-03-24 Richard Biener <rguenther@suse.de>
2794 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
2795 for fixup if necessary.
2797 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
2799 * doc/extend.texi (Function Attributes): Add @cindex entries
2800 for all attributes and regularize their format. Delete text
2801 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
2802 information about "eightbit_data", "tiny_data", and "model"
2803 variable attributes to the Variable Attributes section. Fix
2804 some obvious typos and copy-editing issues.
2805 (Variable Attributes, Type Attributes): Likewise add/fix
2806 @cindex entries for all attributes.
2808 2015-03-23 Jakub Jelinek <jakub@redhat.com>
2811 * tree-chkp.c (chkp_build_returned_bound): Ignore
2812 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
2814 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
2817 * config/sh/predicates.md (simple_mem_operand,
2818 displacement_mem_operand): Add test for reg.
2819 (short_displacement_mem_operand): Test for displacement_mem_operand
2820 before invoking sh_disp_addr_displacement.
2821 * config/sh/constraints.md (Sdd, Sra): Simplify.
2822 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
2823 Remove redundant displacement_mem_operand tests.
2825 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
2828 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
2829 the same -mmcu=MCU more than once.
2831 2015-03-23 Jakub Jelinek <jakub@redhat.com>
2834 * ipa-devirt.c: Remove duplicate demangle.h include.
2837 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
2839 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
2840 REG_POINTER on *destptr after adjusting it for prologue size.
2843 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
2844 ultimate_alias_target ()->order ints instead of
2845 ultimate_alias_target () pointers.
2847 2015-03-23 Richard Biener <rguenther@suse.de>
2849 PR tree-optimization/65518
2850 * tree-vect-stmts.c (vectorizable_load): Reject single-element
2851 interleaving cases we generate absymal code for.
2853 2015-03-23 Richard Biener <rguenther@suse.de>
2855 PR tree-optimization/65494
2856 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
2858 (vect_analyze_slp_instance): But do that here, always and once.
2860 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2862 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
2863 adding T or multiplying by T+1 and subracting T.
2865 2015-03-22 Jeff Law <law@redhat.com>
2867 PR rtl-optimization/64317
2868 * Makefile.in (OBJS): Add gcse-common.c
2869 * gcse.c: Include gcse-common.h
2870 (struct modify_pair_s): Move structure definition to gcse-common.h
2871 (compute_transp): Move function to gcse-common.c.
2872 (canon_list_insert): Similarly.
2873 (record_last_mem_set_info): Break out some code and put it into
2874 gcse-common.c. Call into the new common code.
2875 (compute_local_properties): Pass additional arguments to compute_transp.
2876 * postreload-gcse.c: Include gcse-common.h and df.h
2877 (modify_mem_list_set, blocks_with_calls): New variables.
2878 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
2879 (get_bb_avail_insn): Pass in the expression index too.
2880 (alloc_mem): Allocate memory for the new bitmaps and lists.
2881 (free_mem): Free memory for the new bitmaps and lists.
2882 (insert_expr_in_table): Record a bitmap index for each entry we
2884 (record_last_mem_set_info): Call into common code in gcse-common.c.
2885 (get_bb_avail_insn): If no available insn was found in the requested
2886 BB. If BB has a single predecessor, see if the expression is
2887 transparent in BB and available in that single predecessor.
2888 (compute_expr_transp): New wrapper for compute_transp.
2889 (eliminate_partially_redundant_load): Pass expression's bitmap_index
2890 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
2891 (gcse_after_reload_main): If there are elements in the hash table,
2892 then compute transparency for all the elements in the hash table.
2893 * gcse-common.h: New file.
2894 * gcse-common.c: New file.
2896 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
2898 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
2900 (System Headers): Likewise.
2902 (Traditional macros): Likewise.
2903 (Invocation): Likewise.
2904 (Option Index): Likewise.
2905 * doc/cppopts.texi (-M): Likewise.
2906 (-finput-charset): Likewise.
2908 * doc.invoke.texi (AVR Options): Likewise.
2909 (V850 Options): Likewise.
2911 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
2914 * ipa-devirt.c: Include demangle.h
2915 (odr_type_d): Add field rtti_broken.
2916 (odr_subtypes_equivalent_p): Do not require name to match.
2917 (compare_virtual_tables): Fix typo; if type already has ODR violation,
2918 bypass the tests; be ready for function referneces in vtables that are
2919 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
2920 (warn_odr): Give up for nameless types.
2921 (warn_types_mismatch): Report mismatch in mangled names;
2922 report mismatch in anonymous namespaces; look into component types to
2923 give useful error; report when mismatch is dragged in from other ODR
2925 (odr_types_equivalent_p): Match types for being polymorphic; avoid
2926 duplicated diagnostics.
2927 (add_type_duplicate): Reorder checks so more informative ones come
2928 first; fix typo; do not output "the extra base is defined here" when
2930 (BINFO_N_BASE_BINFOS): Relax sanity check.
2932 2015-03-22 Martin Liska <mliska@suse.cz>
2933 Jakub Jelinek <jakub@redhat.com>
2935 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
2936 masks that can potentially include a builtin.
2937 (ix86_add_new_builtins): Introduce fast filter for isa values
2938 that cannot trigger builtin inclusion.
2940 2015-03-22 Martin Liska <mliska@suse.cz>
2942 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
2943 (sem_item::update_hash_by_local_refs): Likewise.
2944 (sem_variable::get_hash): Empty line is fixed.
2945 (sem_item_optimizer::execute): Include adding of hash references.
2946 (sem_item_optimizer::update_hash_by_addr_refs): New function.
2947 (sem_item_optimizer::build_hash_based_classes): Use local hash.
2948 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
2949 (sem_item::update_hash_by_local_refs): Likewise.
2951 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
2954 * ipa-comdats.c (enqueue_references): Walk through thunks.
2955 (ipa_comdats): Likewise.
2956 (set_comdat_group_1): New function.
2958 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
2961 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
2964 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
2965 Gerald Pfeifer <gerald@pfeifer.com>
2967 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
2969 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
2970 Sandra Loosemore <sandra@codesourcery.com>
2972 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
2973 function parameter declaration.
2974 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
2975 Update arguments to nios2_adjust_call_address().
2976 (sibcall_internal): Rename from *sibcall.
2977 (sibcall_value_internal): Rename from *sibcall_value.
2978 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
2979 (nios2_large_got_address): Add target temp reg parameter.
2980 (nios2_got_address): Adjust call to nios2_large_got_address, add
2981 force_reg around it.
2982 (nios2_load_pic_address): Add target temp reg parameter, replace call
2983 to nios2_got_address with corresponding code.
2984 (nios2_legitimize_constant_address): Update call to
2985 nios2_load_pic_address.
2986 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
2987 to use temp reg for PIC loading purposes.
2988 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
2989 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
2990 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
2992 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
2994 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
2995 usage of "the @option{...}".
2996 (-Wopenmp-simd): Likewise.
2997 (-fsanitize-recover): Likewise.
2998 (-fsanitize-undefined-trap-on-error): Likewise.
3000 (tracer-dynamic-coverage-feedback): Likewise.
3001 (reorder-block-duplicate-feedback): Likewise.
3002 (loop-unroll-jam-size): Likewise.
3005 (-mabs=legacy): Likewise.
3006 (-mupper-regs-df): Likewise.
3007 (-mupper-regs-sf): Likewise.
3008 (-mpointers-to-nested-functions): Likewise.
3010 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
3012 * doc/extend.texi (Cilk Plus Builtins): Add markup.
3014 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
3016 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
3017 additional index entries and cross-references.
3018 (-fchkp-check-incomplete-type): Likewise.
3019 (-fchkp-first-field-has-own-bounds): Likewise.
3020 (-fchkp-narrow-to-innermost-array): Likewise.
3021 (-fchkp-use-fast-string-functions): Likewise.
3022 (-fchkp-use-nochk-string-functions): Likewise.
3023 (-fchkp-use-static-const-bounds): Likewise.
3024 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
3025 (-fchkp-instrument-marked-only): Likewise.
3026 (-fchkp-use-wrappers): Likewise.
3027 (-static-libmpx): Likewise.
3028 (-static-libmpxwrappers): Likewise.
3029 * doc/extend.texi (bnd_legacy): Likewise.
3030 (bnd_instrument): Likewise.
3031 (bnd_variable_size): Likewise.
3032 (Pointer Bounds Checker builtins): Likewise.
3034 2015-03-21 Tom de Vries <tom@codesourcery.com>
3036 PR tree-optimization/65458
3037 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
3038 * cgraph.h (cgraph_node): Add parallelized_function field.
3039 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
3040 (input_overwrite_node): Read parallelized_function field.
3041 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
3042 parallelized_function on cgraph_node for child_fn.
3043 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
3044 Remove include of gt-tree-parloops.h.
3045 (parallelized_functions): Remove static variable.
3046 (parallelized_function_p): Rewrite using parallelized_function field of
3048 (create_loop_fn): Remove adding to parallelized_functions.
3049 * Makefile.in (GTFILES): Remove tree-parloops.c
3051 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
3053 PR rtl-optimization/64366
3054 * lra.c (lra_update_insn_regno_info): Consider regs in
3055 CALL_INSN_FUNCTION_USAGE memory.
3057 2015-03-20 Richard Biener <rguenther@suse.de>
3060 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
3061 for type comparison and gcc_checking_assert.
3062 (chrec_fold_plus_poly_poly): Likewise.
3063 (chrec_fold_multiply_poly_poly): Likewise.
3064 (chrec_convert_1): Likewise.
3065 * gimplify.c (gimplify_expr): Remove premature folding of
3066 &X + CST to &MEM[&X, CST].
3068 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
3070 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
3072 (ipa_inline): Recompute inline_failed codes.
3073 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
3074 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
3077 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
3079 PR rtl-optimization/60851
3080 * recog.c (constrain_operands): Accept a pseudo register before reload
3081 for LRA enabled targets.
3083 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3086 * config/rs6000/predicates.md (easy_fp_constant): Remove special
3087 -ffast-math handling that kept non-0 constants live in the RTL
3088 until reload. Remove logic testing the number of instructions it
3089 took to create a constant in a GPR that was never used, due to a
3090 test for soft-float earlier.
3091 (memory_fp_constant): Delete, no longer used.
3093 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
3094 alternatives for loading non-0 constants into GPRs for hard
3095 floating point that is no longer needed due to changes in
3096 easy_fp_constant. Add support for loading 0.0 into GPRs.
3097 (mov<mode>_hardfloat32): Likewise.
3098 (mov<mode>_hardfloat64): Likewise.
3099 (mov<mode>_64bit_dm): Likewise.
3100 (movtd_64bit_nodm): Likewise.
3101 (pre-reload move FP constant define_split): Delete define_split,
3102 since it is no longer used.
3103 (extenddftf2_internal): Remove GHF constraints that are not valid
3106 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
3108 PR rtl-optimization/63491
3109 * lra-constraints.c (check_and_process_move): Use src instead of
3110 sreg. Remove some dead code.
3112 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
3115 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
3116 (sem_variable::merge): Likewise.
3118 2015-03-19 Martin Liska <mliska@suse.cz>
3121 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
3122 all fields of cgraph_thunk_info.
3124 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
3126 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
3127 clone instrumented thunks.
3129 2015-03-19 Richard Biener <rguenther@suse.de>
3132 2015-03-10 Richard Biener <rguenther@suse.de>
3135 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3136 * tree-ssa-coalesce.c: Include timevar.h.
3137 (attempt_coalesce): Handle graph being NULL.
3138 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3139 Split out abnormal coalescing to ...
3140 (perform_abnormal_coalescing): ... this function.
3141 (coalesce_ssa_name): Perform abnormal coalescing without computing
3143 (verify_ssa_coalescing_worker): New function.
3144 (verify_ssa_coalescing): Likewise.
3146 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3147 Jakub Jelinek <jakub@redhat.com>
3150 * tsan.c (instrument_gimple): Clear tail call flag on
3153 2015-03-19 Jakub Jelinek <jakub@redhat.com>
3156 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
3157 call in the return bb.
3158 (find_split_points): Add RETURN_BB argument, don't call
3160 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
3161 if true append TSAN_FUNC_EXIT internal call after the call to
3162 the split off function.
3163 (execute_split_functions): Call find_return_bb here.
3164 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
3165 Adjust find_split_points and split_function calls.
3167 2015-03-18 DJ Delorie <dj@redhat.com>
3169 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
3170 (iorqi3_virt): Likewise.
3172 2015-03-18 Tom de Vries <tom@codesourcery.com>
3174 * tree-parloops.c (parallelize_loops): Make static.
3175 * tree-parloops.h (parallelize_loops): Remove extern declaration.
3177 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
3181 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3183 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3184 condition would be removed due to undefined behaviour.
3186 2015-03-18 Martin Liska <mliska@suse.cz>
3189 * cgraph.c (cgraph_node::get_create): Remove unnecessary
3190 xstrdup_for_dump wrapper.
3191 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
3193 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
3194 with xstrdup_for_dump.
3195 (sem_variable::equals): Likewise.
3196 (sem_item_optimizer::read_section): Use symtab_node::name instead of
3198 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
3199 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
3200 symtab_node::asm_name with xstrdup_for_dump.
3201 (congruence_class::dump): Use symtab_node::name instead of
3203 * ipa-icf.h (symtab_node::name): Remove.
3204 (symtab_node::asm_name): Likewise.
3206 2015-03-18 Jakub Jelinek <jakub@redhat.com>
3208 PR tree-optimization/65450
3209 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
3211 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
3212 it instead of duplicate_ssa_name_ptr_info.
3215 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
3217 2015-03-18 Richard Biener <rguenther@suse.de>
3219 * tree-data-ref.h (struct access_matrix): Remove.
3220 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3221 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3222 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
3223 (am_vector_index_for_loop): Likewise.
3224 (struct data_reference): Remove access_matrix member.
3225 (DR_ACCESS_MATRIX): Remove.
3226 (lambda_vector_new): Add comment.
3227 (lambda_matrix_new): Use XOBNEWVEC.
3229 2015-03-18 Richard Biener <rguenther@suse.de>
3231 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
3232 (pass_ch::execute): Cleanup the CFG only if we did sth.
3233 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
3235 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3237 * expmed.c (synth_mult): Use std::swap instead of manually
3238 swapping algorithms.
3240 2015-03-18 Jakub Jelinek <jakub@redhat.com>
3243 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
3245 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
3248 * config/avr/avr.opt (-nodevicelib): New option.
3249 * doc/invoke.texi (AVR Options): Document it.
3250 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
3251 libgcc.a, libc.a, libm.a.
3252 * config/avr/specs.h: Same.
3253 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
3254 which don't (directly) depend on the device. Print more help.
3255 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
3256 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
3257 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
3259 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
3260 for specs file name.
3261 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
3262 * config/avr/avr-mcus.def: Adjust initializers and comments.
3264 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
3266 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
3267 DECL_ONE_ONLY to check if decl is one only.
3268 * ipa-split.c (consider_split): Limit splitt of one only functions.
3270 2015-03-16 Jakub Jelinek <jakub@redhat.com>
3272 PR tree-optimization/65427
3273 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
3275 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
3277 2015-03-16 Marek Polacek <polacek@redhat.com>
3279 * cgraph.h (add_new_static_var): Remove declaration.
3280 * varpool.c (add_new_static_var): Remove function.
3282 2015-03-16 Jakub Jelinek <jakub@redhat.com>
3284 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
3285 instead of vec<tree> * with vec_alloc and release for args.
3289 * omp-low.c (delete_omp_context): Only splay_tree_delete
3290 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
3291 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
3293 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
3296 * cfgexpand.c (align_base): New function.
3297 (alloc_stack_frame_space): Call it.
3298 (expand_stack_vars): Align prev_frame to be sure
3299 data->asan_vec elements aligned properly.
3301 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
3304 * expr.c (store_field): Do not do a direct block copy if the source is
3305 a PARALLEL with BLKmode.
3307 2015-03-16 Tom de Vries <tom@codesourcery.com>
3311 2015-03-12 Tom de Vries <tom@codesourcery.com>
3313 PR rtl-optimization/64895
3314 * lra-lives.c (check_pseudos_live_through_calls): Use
3315 actual_call_used_reg_set instead of call_used_reg_set, if available.
3317 2015-03-16 Alan Modra <amodra@gmail.com>
3320 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
3321 Modify Z->r bswapdi splitter to use dest in place of scratch.
3322 In r->Z and Z->r bswapdi splitter rename word_high, word_low
3323 to word1, word2 and rearrange logic to suit.
3324 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
3325 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
3326 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
3327 Add one '?' on r->r. Modify Z->r splitter to avoid need for
3330 2015-03-14 Jakub Jelinek <jakub@redhat.com>
3332 PR tree-optimization/65369
3333 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
3334 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
3335 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
3337 PR tree-optimization/65418
3338 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
3339 are casts in the first PLUS_EXPR operand, ensure tbias and
3340 *totallowp are in the inner type.
3342 PR rtl-optimization/65401
3343 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
3344 argument. If true, adjust_address_nv of x with big-endian
3345 correction for the mode widening to GET_MODE (y).
3346 (make_field_assignment): Don't do MEM mode widening here.
3347 Use MEM_P instead of GET_CODE == MEM.
3349 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
3351 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
3354 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3357 * config/arm/arm.c (arm_gen_constant, AND case): Use
3358 ARM_SIGN_EXTEND when constructing AND mask.
3360 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3362 * graph.c (print_graph_cfg): Make function names visible and append
3363 parenthesis to it. Also make groups of basic blocks belonging to the
3364 same function visible.
3366 2015-03-12 Richard Biener <rguenther@suse.de>
3369 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
3370 to avoid quadratic behavior with inline expansion splitting blocks.
3371 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
3372 with the successor if the predecessor will be merged with it.
3373 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
3374 entry block with its successor.
3376 2015-03-13 Richard Biener <rguenther@suse.de>
3379 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
3380 (cleanup_tree_cfg_1): Do not call it.
3381 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
3382 (fixup_noreturn_call): Mark the stmt as control altering.
3383 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
3385 (pass_data_fixup_cfg): Produce a dump file.
3386 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
3387 (need_noreturn_fixup): New global.
3388 (pass_dominator::execute): Fixup queued noreturn calls.
3389 (optimize_stmt): Queue calls that became noreturn for fixup.
3390 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
3391 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
3392 (el_to_fixup): New global.
3393 (eliminate_dom_walker::before_dom_childre): Queue calls that
3394 became noreturn for fixup.
3395 (eliminate): Fixup queued noreturn calls.
3396 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
3397 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
3398 (substitute_and_fold_dom_walker::before_dom_children): Queue
3399 alls that became noreturn for fixup.
3400 (substitute_and_fold): Fixup queued noreturn calls.
3402 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
3404 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
3405 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
3406 are building; for methods check ODR type of class they belong to if
3407 they may lead to a polymorphic call.
3408 (sem_function::compare_polymorphic_p): Be bit smarter about testing
3409 when function may lead to a polymorphic call.
3410 (sem_function::compare_type_list): Remove.
3411 (sem_variable::equals): Update use of compatible_types_p.
3412 (sem_variable::parse_tree_refs): Remove.
3413 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
3415 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
3417 (func_checker::compatible_polymorphic_types_p): Break out from ...
3418 (unc_checker::compatible_types_p): ... here.
3419 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
3421 (unc_checker::compatible_types_p): Update.
3422 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
3425 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3427 PR rtl-optimization/65235
3428 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
3429 When first element of vec_concat is const_int, calculate its size
3430 using second element.
3432 2015-03-12 Richard Biener <rguenther@suse.de>
3435 * fold-const.c (operand_equal_p): Fix ordering of resetting
3436 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
3438 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
3440 * config/s390/s390.c (s390_reorg): Move code to output nops after label
3442 (s390_asm_output_function_label): Likewise.
3443 * config/s390/s390.c (s390_asm_output_function_label):
3444 Fix function label alignment with -mhtopatch.
3445 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
3446 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
3447 ("nop_2_byte"): New define_insn.
3448 ("nop_4_byte"): Likewise.
3449 ("nop_6_byte"): Likewise.
3450 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
3451 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
3453 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
3456 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
3459 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
3462 * toplev.c (process_options): Restrict Pointer Bounds Checker
3463 usage with Address Sanitizer.
3465 2015-03-12 Richard Biener <rguenther@suse.de>
3467 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
3469 * omp-low.c (expand_omp_taskreg): Split block before removing
3471 (expand_omp_target): Likewise.
3472 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
3473 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
3474 stmt to split_block.
3476 2015-03-12 Tom de Vries <tom@codesourcery.com>
3478 PR rtl-optimization/64895
3479 * lra-lives.c (check_pseudos_live_through_calls): Use
3480 actual_call_used_reg_set instead of call_used_reg_set, if available.
3482 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
3484 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
3485 (cgraph_node::remove): Likewise.
3486 (cgraph_node::get_untransformed_body): Likewise.
3487 * varpool.c (varpool_node::remove): Likewise.
3488 (varpool_node::get_constructor): Add sanity check.
3490 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
3492 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
3494 (-fabi-compat-version): Likewise.
3495 (-ffriend-injection): Likewise.
3496 (-Wdeclaration-after-statement): Likewise.
3497 (-fomit-frame-pointer): Likewise.
3498 (-ftree-coalesce-inlined-vars): Likewise.
3499 (-fvisibility=): Likewise.
3500 * doc/extend.texi (Typeof): Likewise.
3501 (Zero Length): Likewise.
3502 (Escaped Newlines): Likewise.
3503 (Compound Literals): Likewise.
3504 (Function Attributes): Likewise.
3505 (Label Attributes): Likewise.
3506 (Type Attributes): Likewise.
3507 (Function Names): Likewise.
3508 (Other Builtins): Likewise.
3509 (Function Specific Option Pragmas): Likewise.
3510 (C++ Interface): Likewise.
3512 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
3514 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
3516 2015-03-11 Marek Polacek <polacek@redhat.com>
3518 PR tree-optimization/65388
3519 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
3521 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
3524 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
3525 * configure: Regenerate.
3526 * config.in: Regenerate.
3527 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
3528 [-mn-flash]: Document it.
3529 [__AVR_ARCH__]: Document avrtiny.
3531 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
3532 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
3533 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
3535 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3537 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
3539 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3542 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
3543 allow reloads of PLUS in floating point/VSX registers.
3545 2015-03-11 Junmo Park <junmoz.park@samsung.com>
3547 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
3549 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
3551 2015-03-11 Richard Biener <rguenther@suse.de>
3553 PR tree-optimization/65310
3554 * tree-sra.c (build_ref_for_offset): Also preserve larger
3557 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
3559 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
3561 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3564 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
3566 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
3568 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
3570 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
3571 (sem_function::equals_wpa): ... here.
3573 2015-03-10 Marek Polacek <polacek@redhat.com>
3574 Jakub Jelinek <jakub@redhat.com>
3577 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
3578 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
3581 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3584 * config/rs6000/t-linux: For powerpc64* target set
3585 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
3587 2015-03-10 Richard Biener <rguenther@suse.de>
3590 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
3591 for redirect_all_calls.
3593 2015-03-10 Marek Polacek <polacek@redhat.com>
3595 * gdbinit.in (pcfun): Define and document.
3597 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
3599 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
3600 of libgomp-plugin.h.
3601 (find_target_compiler): Support a case when the path to gcc is
3602 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
3603 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
3604 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
3606 (main): Use GCC_INSTALL_NAME as target_driver_name.
3607 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
3609 (mkoffload.o): Remove obsolete include path and defines.
3610 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
3612 2015-03-10 Richard Biener <rguenther@suse.de>
3615 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3616 * tree-ssa-coalesce.c: Include timevar.h.
3617 (attempt_coalesce): Handle graph being NULL.
3618 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3619 Split out abnormal coalescing to ...
3620 (perform_abnormal_coalescing): ... this function.
3621 (coalesce_ssa_name): Perform abnormal coalescing without computing
3623 (verify_ssa_coalescing_worker): New function.
3624 (verify_ssa_coalescing): Likewise.
3626 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
3629 * config.gcc (extra_options) [avr]: Remove.
3630 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
3631 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
3632 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
3634 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
3635 (-mmcu=): Add Var and MissingArgError properties.
3637 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
3638 * config/avr/t-multilib: Regenerate.
3639 * config/avr/specs.h: New file.
3640 * config/avr/driver-avr.c: New file.
3641 * config/avr/genopt.sh: Remove file.
3642 * config/avr/avr-tables.opt: Remove file.
3643 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
3644 * config/avr/avr-c.c: Same.
3646 (avr_current_device): Remove proto.
3647 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
3648 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
3649 (EXTRA_SPEC_FUNCTIONS): Define.
3650 (avr_devicespecs_file): New specs function proto.
3651 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
3652 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
3653 (avr_current_device): Remove definition and usage.
3654 (avr_set_core_architecture): New static function.
3655 (avr_option_override): Use it.
3656 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
3657 (mcu_name): New static array.
3658 (comparator, avr_archs_str, avr_mcus_str): New static functions.
3659 (avr_inform_devices, avr_inform_core_architectures): New functions.
3660 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
3661 (avrlibc.h) [WITH_AVRLIBC]: Include.
3662 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
3663 (print_mcu): Rewrite from scratch.
3664 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
3665 Forward to avr-specific specs defined in device-specs file.
3666 * config/avr/t-avr (driver-avr.o): New rule.
3667 (avr-devices.o): Depend on avr-arch.h.
3668 (avr-mcus): No more depend on avr-tables.opt.
3669 (avr-tables.opt): Remove rule.
3670 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
3672 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3674 * c-family/c.opt (fchkp-use-wrappers): New.
3675 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
3676 (chkp_wrap_function): New.
3677 (chkp_build_instrumented_fndecl): Support wrapped
3679 * doc/invoke.texi (-fcheck-pointer-bounds): New.
3680 (-fchkp-check-incomplete-type): New.
3681 (-fchkp-first-field-has-own-bounds): New.
3682 (-fchkp-narrow-bounds): New.
3683 (-fchkp-narrow-to-innermost-array): New.
3684 (-fchkp-optimize): New.
3685 (-fchkp-use-fast-string-functions): New.
3686 (-fchkp-use-nochk-string-functions): New.
3687 (-fchkp-use-static-bounds): New.
3688 (-fchkp-use-static-const-bounds): New.
3689 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
3690 (-fchkp-check-read): New.
3691 (-fchkp-check-write): New.
3692 (-fchkp-store-bounds): New.
3693 (-fchkp-instrument-calls): New.
3694 (-fchkp-instrument-marked-only): New.
3695 (-fchkp-use-wrappers): New.
3696 (-static-libmpx): New.
3697 (-static-libmpxwrappers): New.
3699 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3701 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
3702 (CHKP_SPEC): Add wrappers library.
3703 * c-family/c.opt (static-libmpxwrappers): New.
3705 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
3707 * config/i386/linux-common.h (LIBMPX_LIBS): New.
3710 * gcc.c (CHKP_SPEC): New.
3711 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
3712 * c-family/c.opt (static-libmpx): New.
3714 2015-03-10 Richard Biener <rguenther@suse.de>
3717 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
3719 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
3720 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
3721 (cgraph_add_edge_to_call_site_hash): Likewise.
3722 (cgraph_node::get_edge): Likewise.
3723 (cgraph_edge::set_call_stmt): Likewise.
3724 (cgraph_edge::remove_caller): Likewise.
3726 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
3728 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
3729 (callee_saved_gpr_regs_size): ... this.
3730 (callee_saved_regs_first_regno): Rename to ...
3731 (callee_saved_first_gpr_regno): ... this.
3732 (callee_saved_regs_last_regno) Rename to ...
3733 (callee_saved_last_gpr_regno): ... this.
3734 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
3736 (nds32_initial_elimination_offset): Likewise.
3737 (nds32_expand_prologue): Likewise.
3738 (nds32_expand_epilogue): Likewise.
3739 (nds32_expand_prologue_v3push): Likewise.
3740 (nds32_expand_epilogue_v3pop): Likewise.
3741 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3742 Adjust renamed variables.
3743 (nds32_output_stack_pop): Likewise.
3745 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3747 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
3750 2015-03-10 Jakub Jelinek <jakub@redhat.com>
3752 PR rtl-optimization/65321
3753 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
3755 * var-tracking.c (use_narrower_mode): Likewise.
3757 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
3759 PR tree-optimization/65355
3760 * varasm.c (notice_global_symbol): Do not produce RTL.
3761 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
3763 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3764 check for section anchors.
3766 2015-03-10 Alan Modra <amodra@gmail.com>
3769 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
3770 to be single-arch by default. Set cpu_is_64bit for powerpc64
3771 given --with-cpu=native.
3772 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
3773 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
3775 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
3776 rs6000_isa_flags rather than TARGET_64BIT.
3778 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
3779 Kaz Kojima <kkojima@gcc.gnu.org>
3781 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
3783 2015-03-09 Jakub Jelinek <jakub@redhat.com>
3786 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
3787 on a TREE_BINFO, instead use BINFO_TYPE.
3789 2015-03-09 Richard Biener <rguenther@suse.de>
3792 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
3793 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
3794 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
3795 of that. When comparing dereferences compare alignment.
3796 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
3798 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
3800 * ipa-inline-analysis.c (check_callers): Check
3801 node->can_remove_if_no_direct_calls_and_refs_p.
3802 (growth_likely_positive): Reorganize to call
3803 can_remove_if_no_direct_calls_p later.
3804 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
3805 will_be_removed_from_program_if_no_direct_calls_p): Add
3806 will_inline parameter.
3807 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
3808 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3809 Handle inliner case correctly.
3811 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
3813 PR tree-optimization/63743
3814 * cfgexpand.c (reorder_operands): Also reorder if only second operand
3815 had its definition forwarded by TER.
3817 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
3820 * ipa-utils.h (types_odr_comparable): Add strict argument.
3821 * ipa-devirt.c: Fix whitespace;
3822 (odr_hasher): Remove.
3823 (odr_name_hasher, odr_vtable_hasher): New hashers.
3824 (can_be_name_hashed_p): New predicate.
3825 (hash_type_name): remove.
3826 (hash_odr_name): New.
3827 (odr_name_hasher::hash): new.
3828 (can_be_vtable_hashed_p): New.
3829 (hash_odr_vtable): New.
3830 (odr_vtable_hasher::hash): New.
3831 (types_same_for_odr): Add strict parameter.
3832 (types_odr_comparable): Likewise.
3833 (odr_name_hasher::equal): New.
3834 (odr_vtable_hasher::equal): New.
3835 (odr_name_hasher::remove): New.
3836 (odr_hash_type): Change to hash_table<odr_name_hasher>.
3837 (odr_vtable_hash_type): New.
3838 (odr_vtable_hash): New.
3839 (odr_subtypes_equivalent_p): Do strict comparsion.
3840 (add_type_duplicate): Merge type names; cleanup; avoid type
3842 (register_odr_type): Initialize vtable hash.
3843 (build_type_inheritance_graph): Likewise
3844 (get_odr_type): Reorg to use two hashes.
3845 (dump_possible_polymorphic_call_targets): Move sanity check after debug
3847 (ipa_devirt): Dump type_inheritance_graph.
3848 (types_same_for_odr): Add strict mode.
3850 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3853 * cgraph.h (symtab_node): Add definition_alignment,
3854 can_increase_alignment_p and increase_alignment.
3855 * symtab.c (symtab_node::can_increase_alignment_p,
3856 increase_alignment_1, symtab_node::increase_alignment,
3857 symtab_node::definition_alignment): New.
3858 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
3859 can_increase_alignment_p.
3860 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
3861 * tree-vect-stmts.c (ensure_base_align): Likewise.
3862 * varasm.c (function_section_1): Use definition_alignment.
3863 (assemble_start_function): Likewise.
3864 (emit_local): likewise.
3865 (build_constant_desc): Likewsie.
3866 (output_constant_def_contents): Likewise.
3867 (place_block_symbol): Likewise.
3868 (output_object_block): Likewise.
3870 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3873 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
3874 when outputting debug.
3876 2015-03-07 Marek Polacek <polacek@redhat.com>
3877 Martin Uecker <uecker@eecs.berkeley.edu>
3880 * doc/invoke.texi: Update description of -fsanitize=bounds.
3882 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
3884 * tree-ssa-phiopt.c (neg_replacement): Remove.
3885 (tree_ssa_phiopt_worker): Remove negate optimization.
3887 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3890 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
3892 2015-03-06 Richard Biener <rguenther@suse.de>
3895 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
3896 and liveout_obstack members.
3897 (calculate_live_on_exit): Remove.
3898 (calculate_live_ranges): Change declaration.
3899 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
3900 (new_tree_live_info): Adjust.
3901 (calculate_live_ranges): Delete livein when not wanted.
3902 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
3903 Deal with partly deleted live info.
3904 (loe_visit_block): Remove temporary bitmap by using
3905 bitmap_ior_and_compl_into.
3906 (live_worklist): Adjust accordingly.
3907 (calculate_live_on_exit): Make static.
3908 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
3909 we do not need livein.
3911 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
3913 * real.c (real_from_string): Fix typo in assertion.
3915 2015-03-06 Alex Velenko <alex.velenko@arm.com>
3917 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
3920 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
3922 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
3924 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
3927 * lra-assigns.c (find_hard_regno_for): Rename to
3928 find_hard_regno_for_1. Add a new parameter.
3929 (find_hard_regno_for): New function using find_hard_regno_for_1.
3931 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3933 PR rtl-optimization/65067
3934 * expmed.c (store_bit_field, extract_bit_field): Reworked the
3935 strict volatile bitfield handling.
3937 2015-03-05 Martin Liska <mliska@suse.cz>
3940 * ipa-icf.c (sem_variable::equals): Compare variables types.
3942 2015-03-05 Richard Henderson <rth@redhat.com>
3945 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
3946 correctly check weak symbol binding.
3948 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
3951 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
3954 2015-03-05 Martin Liska <mliska@suse.cz>
3956 * ipa-inline.c (inline_small_functions): Set default value to
3957 prevent warning during bootstrap.
3958 * tree.h: Add pragma guard that ignores false positives during
3961 2015-03-05 Richard Biener <rguenther@suse.de>
3963 PR tree-optimization/65310
3964 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3965 Properly preserve alignment of the base of the access.
3967 2015-03-05 Richard Biener <rguenther@suse.de>
3970 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
3971 Compare dependence info.
3973 2015-03-05 Richard Biener <rguenther@suse.de>
3976 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
3978 (walk_ssa_copies): Revert last chage. Instead do not walk
3979 SSA names registered for SSA update.
3981 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
3984 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
3985 vtable references for their containing type.
3986 (sem_function::equals_wpa): Compare TYPE_RESTRICT
3987 and type attributes.
3989 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
3991 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
3993 * stor-layout.c (finalize_record_size): Revert latest change.
3995 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
3997 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
3999 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
4001 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
4002 for correct comdat handling.
4003 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
4005 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
4006 (used_from_object_file_p_worker): Remove.
4007 (cgraph_node::only_called_directly_or_alised): Add
4008 used_from_object_file_p.
4009 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
4010 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
4011 can_remove_if_no_direct_calls_and_refs_p.
4013 2015-03-04 Nick Clifton <nickc@redhat.com>
4015 * config/rl78/rl78.h (enum reg_class): Remove real registers from
4016 General register class.
4017 * config/rl78/rl78-real.md: Replace general register constraints
4018 with real+virtual register constraints.
4020 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4022 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
4023 from checking for -mhtm option.
4025 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
4027 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
4028 (struct ipa_sra_check_caller_data): Add has_thunk field.
4029 (ipa_sra_check_caller): Check for thunk.
4030 (ipa_sra_preliminary_function_checks): Give up on function with
4032 (ipa_early_sra): Use call_for_symbol_and_aliases.
4034 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
4037 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
4038 called for __stack_chk_guard symbol.
4040 2015-03-03 DJ Delorie <dj@redhat.com>
4042 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
4044 (*addhi3_real): Likewise.
4045 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
4046 pattern to match incrementing memory.
4047 * config/rl78/predicates.md (rl78_1_2_operand): New.
4048 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
4049 it's the same and only mem.
4050 (rl78_alloc_physical_registers_op2): If there's effectively only
4051 one MEM, transcode it into HL.
4052 (rl78_far_p): Reject addresses that aren't legitimate.
4054 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
4056 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
4059 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
4061 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
4063 Implement call0 ABI for xtensa
4064 * config/xtensa/constraints.md ("a" constraint): Include stack
4065 pointer in case of call0 ABI.
4066 ("q" constraint): Make empty in case of call0 ABI.
4067 ("D" constraint): Include stack pointer in case of call0 ABI.
4068 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
4069 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
4071 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
4073 (xtensa_regno_to_class): Make it a local variable in the
4074 function xtensa_regno_to_class.
4075 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
4076 macro, function prototype and implementation.
4077 (reg_nonleaf_alloc_order): Make it a local variable in the
4078 function order_regs_for_local_alloc.
4079 (xtensa_conditional_register_usage): New function.
4080 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
4081 (xtensa_valid_move): Allow direct moves to stack pointer
4082 register in call0 ABI.
4083 (xtensa_setup_frame_addresses): Only spill register windows in
4085 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
4086 call0 ABI respectively.
4087 (xtensa_function_arg_1): Only mark a7 register for copying in
4089 (xtensa_call_save_reg): New function.
4090 (compute_frame_size): Add space for callee saved register
4091 storage to the frame size in call0 ABI.
4092 (xtensa_expand_prologue): Generate code to set up stack frame
4093 and save callee-saved registers in call0 ABI.
4094 (xtensa_expand_epilogue): New function.
4095 (xtensa_set_return_address): New function.
4096 (xtensa_return_addr): Calculate return address in call0 ABI.
4097 (xtensa_builtin_saveregs): Only mark a7 register for copying and
4098 emit copying code in windowed ABI.
4099 (order_regs_for_local_alloc): Add preferred register allocation
4100 order for non-leaf function in call0 ABI.
4101 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
4102 (xtensa_asm_trampoline_template): Add trampoline generation for
4104 (xtensa_trampoline_init): Add trampoline initialization for
4106 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
4108 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
4109 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
4110 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
4111 ABI call-used registers.
4112 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
4113 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
4115 (REG_CLASS_CONTENTS): Include all registers into the preferred
4116 reload registers set, adjust the set in the
4117 xtensa_conditional_register_usage.
4118 (xtensa_regno_to_class): Drop variable declaration.
4119 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
4121 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
4123 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
4124 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
4125 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
4126 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
4127 location in call0 ABI.
4128 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
4129 stack adjustment size when handling exception.
4130 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
4131 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
4133 ("return" pattern): Generate ret.n/ret in call0 ABI.
4134 ("epilogue" pattern): Expand epilogue.
4135 ("nonlocal_goto" pattern): Use default in call0 ABI.
4136 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
4137 emit eh_set_a0_* depending on ABI.
4138 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
4139 ("eh_set_a0_call0", "blockage"): New patterns.
4141 2015-03-03 Martin Liska <mliska@suse.cz>
4144 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
4146 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4149 * config/rs6000/rs6000-tables.opt: Regenerate table.
4151 2015-03-03 Renlin Li <renlin.li@arm.com>
4153 * doc/md.texi (@item ^): Change ? into ^.
4155 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
4157 * doc/tm.texi: Regenerated.
4159 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
4161 * builtins.c (expand_builtin_return_addr): Add
4162 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
4164 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
4166 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
4168 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
4170 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
4173 2015-03-03 Martin Jambor <mjambor@suse.cz>
4174 Eric Botcazou <ebotcazou@adacore.com>
4176 * tree-sra.c (ipa_sra_check_caller_data): New type.
4177 (has_caller_p): Removed.
4178 (ipa_sra_check_caller): New function.
4179 (ipa_sra_preliminary_function_checks): Use it.
4181 2015-03-03 Martin Liska <mliska@suse.cz>
4183 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
4184 instead of if branch.
4186 2015-03-03 Martin Liska <mliska@suse.cz>
4189 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
4191 2015-03-23 Jeff Law <law@redhat.com>
4193 PR tree-optimization/65241
4194 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
4195 hash table if INSERT is true.
4197 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
4200 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
4202 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
4205 * config/avr/avr.c (context.h, tree-pass.h): Include them.
4206 (avr_pass_data_recompute_notes): New static variable.
4207 (avr_pass_recompute_notes): New class.
4208 (avr_register_passes): New static function.
4209 (avr_option_override): Call it.
4211 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
4213 Fix various problems with specs file generation.
4216 * config.gcc (extra_gcc_objs) [avr]: Remove.
4217 * config/avr/driver-avr.c: Remove file.
4218 * config/avr/t-avr (driver-avr.o): Remove rule.
4219 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
4220 INCLUDES to build. Depend on TM_H.
4221 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
4222 build warnings. Fix non-matching types and non-existing %-codes.
4224 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
4225 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
4226 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
4227 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
4228 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
4229 (LIBGCC_SPEC): Remove definitions.
4231 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
4233 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
4234 to create a register in testing mode.
4236 2015-03-03 Martin Liska <mliska@suse.cz>
4237 Jan Hubicka <hubicka@ucw.cz>
4240 * cgraph.c (cgraph_node::has_thunk_p): New function.
4241 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
4242 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
4243 (sem_function::merge): Assert is changed.
4245 2015-03-03 Martin Liska <mliska@suse.cz>
4246 Martin Jambor <mjambor@suse.cz>
4249 * ipa-icf.c (sem_item_optimizer::execute): Change function
4250 return value to boolean.
4251 (sem_item_optimizer::merge_classes): Likewise.
4252 (ipa_icf_driver): Return TODO_remove_functions in case there's
4253 a merge operation processed.
4254 * ipa-icf.h: Change function return value to boolean.
4256 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4259 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
4260 processor type for 64-bit little endian PowerPC.
4262 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4263 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
4264 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
4265 printing built-in mask so it does not pass NULL pointers.
4267 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
4270 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
4273 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
4274 !ISA_HAS_FP_CONDMOVE.
4276 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
4278 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
4281 2015-03-02 Ulrich Drepper <drepper@gmail.com>
4283 * doc/invoke.texi (Options for Code Generation Conventions):
4284 Fix URL of DSO paper.
4286 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
4289 * ipa-inline.c (check_callers): Looks for recursion.
4290 (inline_to_all_callers): Give up on uninlinable or recursive edges.
4291 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
4292 summary of inline clones.
4293 (do_estimate_growth_1): Fix recursion check.
4295 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
4298 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
4301 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
4302 Aldy Hernandez <aldyh@redhat.com>
4305 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
4306 when checking TYPE_BINFO.
4308 2015-03-02 Richard Biener <rguenther@suse.de>
4311 * ipa-icf-gimple.c: Include builtins.h.
4312 (func_checker::compare_memory_operand): Compare base alignment.
4314 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
4317 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
4318 are never passed by reference.
4320 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
4323 * tree-chkp.c (chkp_check_lower): Don't check against
4324 zero bounds for already instrumented functions.
4325 (chkp_check_upper): Likewise.
4326 (chkp_fini): Clean pass local data to avoid wrong reusage.
4328 2015-02-28 Martin Liska <mliska@suse.cz>
4329 Jan Hubicka <hubicka@ucw.cz>
4331 * ipa-icf.c (sem_variable::equals): Improve debug output;
4332 get variable constructor.
4333 (sem_variable::parse): Do not filter out too early; give up on
4334 volatile and register vars.
4335 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
4337 * ipa-icf.h (sem_variable::init): Do not set ctor.
4338 (sem_variable::ctor): Remove.
4340 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
4343 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
4345 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4347 * ipa-icf.c: Include stor-layout.h
4348 (sem_function::compare_cgraph_references): Rename to ...
4349 (sem_item::compare_cgraph_references): ... this one.
4350 (sem_variable::equals_wpa): New function
4351 (sem_variable::equals): Do not check stuff already verified by
4353 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
4354 * ipa-icf.h (sem_item): Add compare_cgraph_references.
4355 (sem_function): Remove compare_cgraph_references.
4356 (sem_variable): Turns equals_wpa into non-inline.
4358 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4360 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
4361 (sem_item::add_expr): New function.
4362 (sem_function::hash_stmt): Handle operands of most statements.
4363 (sem_variable::get_hash): Hash the actual constructor.
4364 * ipa-icf.h (sem_item): Add add_expr.
4365 (sem_function): Update prototype of hash_stmt
4367 2015-02-28 Martin Liska <mliska@suse.cz>
4368 Jan Hubicka <hubicka@ucw.cz>
4371 * ipa-icf-gimple.c (func_checker::compare_function_decl):
4373 (func_checker::compare_variable_decl): Skip symtab vars.
4374 (func_checker::compare_cst_or_decl): Update.
4375 * ipa-icf.c (sem_function::parse): Do not consider aliases.
4376 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
4377 use correct symtab predicates.
4378 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
4379 (sem_variable::parse): Update comment.
4380 (sem_item_optimizer::build_graph): Consider ultimate aliases
4383 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4385 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
4388 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4390 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
4391 (sem_variable::merge) Likewise.
4393 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4395 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
4396 target; also match flag_ipa_devirt.
4398 2015-03-01 Martin Liska <mliska@suse.cz>
4399 Jan Hubicka <hubicka@ucw.cz>
4401 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
4402 Validate variable alignment.
4403 * ipa-icf.c (sem_function::equals_private): Be more precise
4404 about non-common function attributes.
4405 (sem_variable::equals): Likewise.
4407 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4410 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
4411 across COMDAT group boundary.
4413 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4416 * ipa-icf.c (clear_decl_rtl): New function.
4417 (sem_function::merge): Clear RTL before forming alias.
4418 (sem_variable::merge): Clear RTL before forming alias.
4420 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
4423 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
4425 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
4427 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
4430 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4432 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
4433 a typo in the description.
4435 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4438 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4439 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4440 * lra-constraints.c: Include "params.h".
4441 (EBB_PROBABILITY_CUTOFF): Use
4442 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
4443 (lra_inheritance): Use '<' instead of '<=' for
4444 EBB_PROBABILITY_CUTOFF.
4445 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
4448 2015-02-27 Martin Liska <mliska@suse.cz>
4450 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
4451 vector length condition.
4453 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
4455 * doc/extend.texi (x86 transactional memory intrinsics):
4456 Reorganize discussion of _xbegin. Clarify that the return
4457 value is a bit mask. Expand example and move to end of section.
4459 2015-02-26 Jakub Jelinek <jakub@redhat.com>
4460 Aldy Hernandez <aldyh@redhat.com>
4462 PR rtl-optimization/65220
4463 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
4465 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
4468 * lra-remat.c (update_scratch_ops): New.
4469 (do_remat): Call it.
4470 * lra.c (lra_register_new_scratch_op): New. Take code from ...
4471 (remove_scratches): ... here.
4472 * lra-int.h (lra_register_new_scratch_op): New prototype.
4474 2015-02-27 Marek Polacek <polacek@redhat.com>
4477 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
4478 -Wformat-signedness anymore.
4480 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4482 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
4484 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
4486 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4488 * config/s390/s390.c (enum s390_builtin):
4489 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
4490 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
4491 (s390_init_builtins): Generate new builtin functions.
4492 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
4493 (s390_sfpc, s390_efpc): New pattern definitions.
4495 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4497 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
4498 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
4499 (s390_builtin_decls): New array.
4500 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
4501 (s390_builtin_decl): New function.
4502 (TARGET_BUILTIN_DECL): Define macro.
4504 2015-02-27 Richard Biener <rguenther@suse.de>
4507 * builtins.c (get_object_alignment_2): Make sure to re-apply
4508 the ANDed mask after recursing to its operand gets us a new
4509 misalignment bit position.
4511 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
4512 Martin Liska <mliska@suse.cz>
4515 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
4516 Use address_matters_p.
4517 (redirect_all_callers, set_addressable): New functions.
4518 (sem_function::merge): Reorganize and fix merging issues.
4519 (sem_variable::merge): Likewise.
4520 (sem_variable::compare_sections): Remove.
4521 * common.opt (fmerge-all-constants, fmerge-constants): Remove
4523 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
4525 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
4527 (address_matters_1): New function.
4528 (symtab_node::address_matters_p): New function.
4529 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
4530 check for merged flag.
4531 * cgraph.h (address_matters_p): Declare.
4532 (symtab_node::address_taken_from_non_vtable_p): Remove.
4533 (symtab_node::address_can_be_compared_p): New method.
4534 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
4535 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
4537 (comdat_can_be_unshared_p_1) Use address_matters_p.
4538 (update_vtable_references): Fix formating.
4539 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
4540 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
4541 * cgraphclones.c: Preserve merged and icf_merged flags.
4543 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
4545 * doc/extend.texi (Function Attributes): Fix spelling and typos.
4546 (Label Attributes): Likewise.
4547 (Cilk Plus Builtins): Likewise.
4548 (ARC SIMD Built-in Functions): Likewise.
4549 (ARM C Language Extensions (ACLE)): Likewise.
4550 (PowerPC Built-in Functions): Likewise.
4551 (PowerPC Hardware Transactional Memory Built-in Functions):
4554 2015-02-26 Jakub Jelinek <jakub@redhat.com>
4556 PR tree-optimization/65216
4557 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
4558 new stmt and new SSA_NAME for lhs whenever the arguments have
4559 changed and weren't just swapped. Fix comment typo.
4561 PR tree-optimization/65215
4562 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
4563 for PDP endian targets.
4564 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
4565 Fix up formatting issues.
4566 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
4567 size is smaller than the original, adjust MEM_REF offset by the
4568 difference of sizes. Use is_gimple_mem_ref_addr instead of
4569 is_gimple_min_invariant test to avoid adding address temporaries.
4571 2015-02-26 Martin Liska <mliska@suse.cz>
4572 Jan Hubicka <hubicka@ucw.cz>
4575 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
4576 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
4577 (sem_item_optimizer::process_cong_reduction): Include division by
4578 sensitive references.
4579 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
4580 * ipa-ref.c (ipa_ref::address_matters_p): New function.
4581 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
4583 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
4586 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
4588 * config/avr/avr.c: Same.
4589 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
4590 Refuse any constant address not in 0..0xbf.
4591 * config/avr/avr.md (*mov<mode>, *movsf): Remove
4592 tiny_valid_direct_memory_access_range from insn conditions.
4593 (mov<mode>): Don't special-case expansion of avrtiny addresses.
4595 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
4598 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
4599 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
4600 * config/sh/predicates.md (const_logical_operand): New predicate.
4601 * config/sh/sh.md: Add new peephole2 patterns.
4603 2015-02-26 Marek Polacek <polacek@redhat.com>
4606 * ipa-inline.c (early_inliner): Recompute inline parameters.
4608 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4611 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
4612 instructions with TImode operands are included in the analysis.
4614 2015-02-26 Sebastian Pop <s.pop@samsung.com>
4616 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
4617 of an EDGE_FSM_THREAD.
4619 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4621 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
4623 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
4626 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
4628 2015-02-26 Sebastian Pop <s.pop@samsung.com>
4630 PR tree-optimization/65048
4631 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
4632 (thread_through_all_blocks): Call valid_jump_thread_path.
4633 Remove invalid FSM jump-thread paths.
4635 2015-02-26 Jakub Jelinek <jakub@redhat.com>
4637 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
4638 (ipa_write_optimization_summaries): Likewise.
4639 * tree-streamer.h: Include data-streamer.h.
4640 (streamer_mode_table): Declare extern variable.
4641 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
4642 * lto-streamer-out.c (lto_output_init_mode_table,
4643 lto_write_mode_table): New functions.
4644 (produce_asm_for_decls): Call lto_write_mode_table when streaming
4646 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
4647 (lto_create_simple_input_block): Add mode_table argument to the
4648 lto_input_block constructors.
4649 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
4651 * data-streamer-in.c (string_for_index): Likewise.
4652 * ipa-inline-analysis.c (inline_read_section): Likewise.
4653 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
4654 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
4655 * lto-streamer-in.c (lto_read_body_or_constructor,
4656 lto_input_toplevel_asms): Likewise.
4657 (lto_input_mode_table): New function.
4658 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
4659 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
4660 Use bp_pack_machine_mode.
4661 * real.h (struct real_format): Add name field.
4662 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
4663 (class lto_input_block): Add mode_table member.
4664 (lto_input_block::lto_input_block): Add mode_table_ argument,
4665 initialize mode_table.
4666 (struct lto_file_decl_data): Add mode_table field.
4667 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
4668 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
4669 unpack_ts_decl_common_value_fields,
4670 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
4671 * tree-streamer.c (streamer_mode_table): New variable.
4672 * real.c (ieee_single_format, mips_single_format,
4673 motorola_single_format, spu_single_format, ieee_double_format,
4674 mips_double_format, motorola_double_format,
4675 ieee_extended_motorola_format, ieee_extended_intel_96_format,
4676 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4677 ibm_extended_format, mips_extended_format, ieee_quad_format,
4678 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4679 decimal_single_format, decimal_double_format, decimal_quad_format,
4680 ieee_half_format, arm_half_format, real_internal_format): Add name
4682 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4684 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
4687 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
4688 reordering for selective scheduling.
4690 2015-02-26 Terry Guo <terry.guo@arm.com>
4692 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
4693 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
4694 (arm_arch_no_volatile_ce): Declare new global variable.
4695 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
4696 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
4697 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
4698 (TARGET_NO_VOLATILE_CE): New macro.
4699 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
4700 volatile memory access in IT block
4702 2015-02-25 Kai Tietz <ktietz@redhat.com>
4704 PR tree-optimization/61917
4705 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
4706 that reduc_def_stmt is null.
4708 2015-02-25 Martin Liska <mliska@suse.cz>
4710 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
4711 hard register variables.
4713 2015-02-25 Kai Tietz <ktietz@redhat.com>
4716 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
4717 (symtab::noninterposable_alias): Likewise.
4719 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
4722 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
4724 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
4726 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
4729 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
4730 as split condition; force split via '#' in output pattern.
4732 2015-02-25 Richard Biener <rguenther@suse.de>
4733 Kai Tietz <ktietz@redhat.com>
4735 PR tree-optimization/61917
4736 * tree-vect-loop.c (vectorizable_reduction): Allow
4737 vect_internal_def without reduction to exit graceful.
4739 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
4742 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
4743 only with NONDEBUG_INSN_P.
4745 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
4747 Use variadic macros with avr-log.c.
4749 * config/avr/avr-protos.h (avr_vdump): New prototype.
4750 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
4751 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
4752 * config/avr/avr-log.c: Adjust comments.
4753 (avr_vdump): New function.
4754 (avr_vadump): Pass caller as 2nd argument instead of format string.
4755 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
4756 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
4758 2015-02-25 Jakub Jelinek <jakub@redhat.com>
4761 * target.def (target_option_stream_in): New target hook.
4762 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
4763 targetm.target_option.post_stream_in if non-NULL.
4764 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
4765 * doc/tm.texi: Updated.
4766 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
4768 (TARGET_OPTION_POST_STREAM_IN): Redefine.
4770 2015-02-24 Jeff Law <law@redhat.com>
4773 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
4774 of operand 0 and operand 2.
4775 (zero_cost_loop_end, loop_end): Similarly.
4777 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
4779 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
4782 2015-02-24 DJ Delorie <dj@redhat.com>
4784 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
4785 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
4786 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
4787 instead of hardcoding SImode.
4789 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
4791 * omp-low.c (create_omp_child_function): Tag entrypoint
4792 functions with a special attribute.
4794 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4797 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
4799 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
4801 PR rtl-optimization/65123
4802 * lra-remat.c (operand_to_remat): Check hard regs in insn
4805 2015-02-24 Nick Clifton <nickc@redhat.com>
4807 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
4810 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4813 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
4814 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
4815 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
4816 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
4817 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
4818 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
4819 (BUILT_IN_GOACC_PARALLEL): Specify as
4820 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
4821 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
4823 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4824 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4825 Remove function types.
4826 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
4827 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4828 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4831 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
4833 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
4835 2015-02-24 Jakub Jelinek <jakub@redhat.com>
4837 PR tree-optimization/65170
4838 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
4839 if val[1] < 0, clear also val[2] and return 3.
4841 2015-02-24 Alan Modra <amodra@gmail.com>
4844 * config/rs6000/rs6000.c (get_memref_parts): Only return true
4845 when *base is a reg. Handle nested plus addresses. Simplify
4848 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
4850 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
4851 use natural alignment when optimizing for size.
4853 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
4856 * config/sh/sh.md (movsicc_true+3): Remove peephole.
4857 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
4858 * config/sh/sh.c (replace_n_hard_rtx): Remove.
4860 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
4863 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
4864 too big for a wide_int. Implement missing wrapping operation.
4866 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
4869 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
4870 instead of const_int 4294901760.
4872 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
4874 * config/avr/t-avr: Fix typo in comment.
4876 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
4878 * doc/rtl.texi (fma): Clarify documentation.
4880 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
4883 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
4884 over input_location.
4886 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4888 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
4889 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
4890 restrict alignments to absolute_biggest_alignment.
4891 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
4893 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
4894 * doc/tm.texi: Regenerate.
4895 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
4897 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
4900 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
4902 2015-02-20 Richard Biener <rguenther@suse.de>
4904 PR tree-optimization/65136
4905 * tree-ssa-propagate.c: Include cfgloop.h.
4906 (replace_phi_args_in): Avoid replacing loop latch edge PHI
4907 arguments with constants.
4909 2015-02-20 Jakub Jelinek <jakub@redhat.com>
4910 Martin Liska <mliska@suse.cz>
4913 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
4914 don't try to create_thunk if stdarg_p. If
4915 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
4916 redirect_callers if possible.
4917 (sem_item_optimizer::execute): Call unregister_hooks here...
4918 (ipa_icf_driver): ... instead of here.
4920 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4922 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
4923 Mark operand 0 as earlyclobber in 2nd alternative.
4924 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
4925 Write negated shift amount into QI lowpart operand 0 and use it
4927 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4929 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4931 * cgraph.h (clone_function_name_1): Declare.
4932 * cgraphclones.c (clone_function_name_1): New function.
4933 (clone_function_name): Use it.
4934 * lto-partition.c: Include "stringpool.h".
4935 (must_not_rename, maybe_rewrite_identifier)
4936 (validize_symbol_for_target): New static functions.
4937 (privatize_symbol_name): Use must_not_rename.
4938 (promote_symbol): Call validize_symbol_for_target.
4939 (lto_promote_cross_file_statics): Likewise.
4940 (lto_promote_statics_nonwpa): Likewise.
4942 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
4945 * config/avr/avr.md (pushhi_insn): New insn.
4946 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
4948 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
4949 Jakub Jelinek <jakub@redhat.com>
4951 * tree-streamer.c (preload_common_nodes): Don't preload
4952 TI_VA_LIST* for offloading.
4953 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
4956 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
4958 * config/pa/pa.c (pa_emit_move_sequence): Always force
4959 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
4962 * config/pa/pa.c (pa_reloc_rw_mask): New function.
4963 (TARGET_ASM_RELOC_RW_MASK): Define.
4964 (pa_cannot_force_const_mem): Revert previous change.
4966 2015-02-19 Martin Jambor <mjmabor@suse.cz>
4967 Jan Hubicka <hubicka@ucw.cz>
4970 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
4971 across jump functions.
4973 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
4975 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
4977 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
4979 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
4981 2015-02-19 Richard Henderson <rth@redhat.com>
4984 * varasm.c (default_binds_local_p_2): Don't test node->definition;
4985 test DECL_EXTERNAL independent of symtab_node.
4987 2015-02-19 Jakub Jelinek <jakub@redhat.com>
4990 * varpool.c (varpool_node::get_constructor): Return early
4991 if this->lto_file_data is NULL.
4993 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4995 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
4996 (rank_for_schedule_debug): Update.
4997 (ready_sort): Make static. Move sorting logic to ...
4998 (ready_sort_debug, ready_sort_real): New static functions.
4999 (schedule_block): Sort both debug insns and real insns in preparation
5000 for ready list trimming. Improve debug output.
5001 * sched-int.h (ready_sort): Remove global declaration.
5003 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
5005 * ipa-icf.c (sem_function::equals_private): Adjust.
5006 (sem_function::bb_dict_test): Take a vec<int> * instead of
5008 * ipa-icf.h (bb_dict_test): Likewise.
5010 2015-02-18 Jakub Jelinek <jakub@redhat.com>
5012 PR gcov-profile/64634
5013 * tree-eh.c (frob_into_branch_around): Fix up typos
5014 in function comment.
5015 (lower_catch): Put eh_seq resulting from EH lowering of
5016 the cleanup sequence after the cleanup rather than before it.
5018 2015-02-18 Tom de Vries <tom@codesourcery.com>
5020 * common.opt (fstdarg-opt): New option.
5021 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
5022 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
5023 (@item -fstdarg-opt): New item.
5025 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
5028 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
5031 2015-02-18 Jakub Jelinek <jakub@redhat.com>
5033 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
5035 (ALL_HOST_OBJS): Add mkoffload.o.
5036 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
5038 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
5040 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
5041 (compare_virtual_tables): Be smarter about skipping typeinfos;
5042 do sane output on virtual table table mismatch.
5043 (warn_odr): Be ready for forward declarations of enums;
5044 output sane info on base mismatch and virtual table mismatch.
5045 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
5046 when only one type is polymorphic.
5047 (get_odr_type): Fix hashtable corruption.
5048 (dump_odr_type): Dump mangled names.
5050 2015-02-18 Richard Biener <rguenther@suse.de>
5052 PR tree-optimization/65063
5053 * tree-predcom.c (determine_unroll_factor): Return 1 if we
5054 have replaced looparound PHIs.
5056 2015-02-18 Martin Liska <mliska@suse.cz>
5058 * lto-streamer.c (lto_streamer_init): Encapsulate
5059 streamer_check_handled_ts_structures with checking macro.
5061 2015-02-18 Jakub Jelinek <jakub@redhat.com>
5064 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
5065 section if !implicit_section.
5066 (cgraph_node::create_version_clone_with_body): Likewise.
5067 * trans-mem.c (ipa_tm_create_version): Likewise.
5069 2015-02-18 Richard Biener <rguenther@suse.de>
5071 PR tree-optimization/62217
5072 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
5075 2015-02-18 Marek Polacek <polacek@redhat.com>
5078 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
5079 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
5080 is in range [-16K, -1]. Don't issue run-time error if
5081 (ptr > ptr + offset).
5083 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
5085 * doc/install.texi (nvptx-*-none): New section.
5086 * doc/invoke.texi (Nvidia PTX Options): Likewise.
5087 * config/nvptx/nvptx.opt: Update.
5089 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
5090 (access_check): New functions, copied from
5091 config/i386/intelmic-mkoffload.c.
5092 (main): For non-installed testing, look in all COMPILER_PATHs for
5095 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
5097 2015-02-18 Andrew Pinski <apinski@cavium.com>
5098 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5100 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
5101 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
5103 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
5105 * ipa-visibility.c (function_and_variable_visibility): Only
5106 check locality if node is not already local.
5107 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5108 call_for_symbol_and_aliases instead of
5109 call_for_symbol_thunks_and_aliases.
5110 (ipa_inline): Likewise.
5111 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5113 * ipa.c (symbol_table::remove_unreachable_nodes): Use
5114 call_for_symbol_and_aliases.
5115 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5116 (ipa_propagate_frequency_1): Use it; use opt_for_fn
5117 (ipa_propagate_frequency): Update.
5118 (ipa_profile): Add opt_for_fn gueards.
5120 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
5122 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
5123 * doc/invoke.texi (SH options): Document it.
5124 * config/sh/sh.c (sh_insn_length_adjustment): Check
5125 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
5127 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
5129 * common.opt (fipa-cp-alignment): New.
5130 * ipa-cp.c (ipcp_store_alignment_results): Check
5131 flag_ipa_cp_alignment.
5132 * opts.c (default_options_table): Enable -fipa-cp-alignment for
5134 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
5135 * doc/invoke.texi: Document -fipa-cp-alignment.
5137 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
5140 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
5141 to nil. Adjust comments.
5143 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
5145 * ipa-visibility.c (function_and_variable_visibility): Only
5146 check locality if node is not already local.
5147 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5148 call_for_symbol_and_aliases instead of
5149 call_for_symbol_thunks_and_aliases.
5150 (ipa_inline): Likewise.
5151 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5153 * ipa.c (symbol_table::remove_unreachable_nodes): Use
5154 call_for_symbol_and_aliases.
5155 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5156 (ipa_propagate_frequency_1): Use it; use opt_for_fn
5157 (ipa_propagate_frequency): Update.
5158 (ipa_profile): Add opt_for_fn guards.
5160 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5162 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
5163 skipping of "strange" tokens.
5165 2015-02-17 Jeff Law <law@redhat.com>
5167 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
5170 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
5172 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
5173 as forcing a HARD_DEP between instructions, thereby
5174 disallowing rewriting to break dependencies.
5176 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
5178 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
5179 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
5180 variables in boundary that have no inlitalizer encoded and are
5182 * varasm.c (default_binds_local_p_2): External definitions do not
5183 count as definitions here.
5185 2015-02-16 Jeff Law <law@redhat.com>
5187 PR tree-optimization/64823
5188 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
5190 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5191 threading through blocks with PHIs, but no statements.
5192 (thread_through_normal_block): Distinguish between blocks where
5193 we did not process all the statements and blocks with no statements.
5195 2015-02-16 Jakub Jelinek <jakub@redhat.com>
5196 James Greenhalgh <james.greenhalgh@arm.com>
5199 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
5200 section if not linkonce. Fix up formatting.
5201 (cgraph_node::create_version_clone_with_body): Copy section.
5202 * trans-mem.c (ipa_tm_create_version): Likewise.
5204 2015-02-16 Richard Biener <rguenther@suse.de>
5206 PR tree-optimization/65077
5207 * tree-ssa-structalias.c (get_constraint_for_1): Handle
5208 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
5209 (find_func_aliases): Allow float values to carry pointers again.
5211 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5213 * doc/install.texi (Specific): Reorder targets list to put
5214 aarch64 in alphabetical order. Add a link to aarch64*-*-*
5217 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5218 David Edelsohn <dje.gcc@gmail.com>
5221 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
5222 mapping class to external variable or function reference.
5223 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
5226 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
5229 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
5230 ASM_WEAKEN_DECL if defined.
5232 2015-02-16 Richard Biener <rguenther@suse.de>
5235 * varasm.c (default_file_start): For LTO produced units
5236 emit <artificial> as file directive.
5238 2015-02-16 Richard Biener <rguenther@suse.de>
5240 PR tree-optimization/63593
5241 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
5242 stmts and releasing SSA names until...
5243 (execute_pred_commoning): ... after processing all chains.
5245 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
5248 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
5251 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
5253 * doc/bugreport.texi: Adjust section titles throughout the file
5254 to use "Title Case".
5255 * doc/extend.texi: Likewise.
5256 * doc/gcov.texi: Likewise.
5257 * doc/implement-c.texi: Likewise.
5258 * doc/implement-cxx.texi: Likewise.
5259 * doc/invoke.texi: Likewise.
5260 * doc/objc.texi: Likewise.
5261 * doc/standards.texi: Likewise.
5262 * doc/trouble.texi: Likewise.
5264 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
5266 * cgraph.h (symtab_node::has_aliases_p): Simplify.
5267 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
5268 * tree.c (lookup_binfo_at_offset): Make static.
5269 (get_binfo_at_offset): Do not shadow offset; add explanatory
5272 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
5274 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
5275 for all floading point loads and stores except those using a register
5277 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
5280 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
5282 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
5283 (do_estimate_growth_1): Record if any uninlinable edge was seen.
5284 (estimate_growth): Handle uninlinable edges correctly.
5285 (check_callers): New.
5286 (growth_likely_positive): Handle aliases correctly.
5288 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
5290 * ipa-chkp.c: Use iterate_direct_aliases.
5291 * symtab.c (resolution_used_from_other_file_p): Move inline.
5292 (symtab_node::create_reference): Fix formating.
5293 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5294 (symtab_node::iterate_reference): Move inline.
5295 (symtab_node::iterate_referring): Move inline.
5296 (symtab_node::iterate_direct_aliases): Move inline.
5297 (symtab_node::used_from_object_file_p_worker): Inline into ...
5298 (symtab_node::used_from_object_file_p): ... this one; move inline.
5299 (symtab_node::call_for_symbol_and_aliases): Move inline;
5300 use iterate_direct_aliases.
5301 (symtab_node::call_for_symbol_and_aliases_1): New method.
5302 (cgraph_node::call_for_symbol_and_aliases): Move inline;
5303 use iterate_direct_aliases.
5304 (cgraph_node::call_for_symbol_and_aliases_1): New method.
5305 (varpool_node::call_for_node_and_aliases): Rename to ...
5306 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
5307 use iterate_direct_aliases.
5308 (varpool_node::call_for_symbol_and_aliases_1): New method.
5309 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
5310 (ipa_discover_readonly_nonaddressable_var): Update.
5311 * ipa-devirt.c: Fix formating.
5312 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
5314 (cgraph_node::call_for_symbol_and_aliases): Move inline.
5315 (cgraph_node::call_for_symbol_and_aliases_1): New function..
5316 * cgraph.h (used_from_object_file_p_worker): Remove.
5317 (resolution_used_from_other_file_p): Move inline.
5318 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5319 (symtab_node::iterate_reference): Move inline.
5320 (symtab_node::iterate_referring): Move inline.
5321 (symtab_node::iterate_direct_aliases): Move inline.
5322 (symtab_node::used_from_object_file_p_worker): Inline into ...
5323 (symtab_node::used_from_object_file_p): Move inline.
5324 * tree-emutls.c (ipa_lower_emutls): Update.
5325 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
5326 (varpool_node::call_for_node_and_aliases): Remove.
5328 2015-02-14 Jakub Jelinek <jakub@redhat.com>
5330 PR tree-optimization/62209
5331 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
5332 op == range->exp, insert seq and gimplified code after labels
5333 instead of after the phi.
5335 2015-02-13 Jeff Law <law@redhat.com>
5338 Revert my change for tree-optimization/64823.
5340 2015-02-13 Jakub Jelinek <jakub@redhat.com>
5342 PR tree-optimization/65053
5343 * tree-ssa-phiopt.c (value_replacement): When moving assign before
5344 cond, either reset VR on lhs or set it to phi result VR.
5346 2015-02-13 Jeff Law <law@redhat.com>
5348 PR tree-optimization/64823
5349 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
5350 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5351 threading through blocks with PHIs, but no statements.
5352 (thread_through_normal_block): Distinguish between blocks where
5353 we did not process all the statements and blocks with no statements.
5355 PR rtl-optimization/47477
5356 * match.pd (convert (plus/minus (convert @0) (convert @1): New
5357 simplifier to narrow arithmetic.
5359 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
5362 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
5363 polymorphic call info when type is not known to be preserved.
5365 2015-02-13 Maritn Jambor <mjambor@suse.cz>
5368 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
5369 (inline_call): Use it.
5371 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
5373 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
5374 GOMP_DEVICE_NVIDIA_PTX.
5376 2015-02-13 Jakub Jelinek <jakub@redhat.com>
5379 * stmt.c (emit_case_nodes): Use void_type_node instead of
5380 NULL_TREE as LABEL_DECL type.
5382 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
5384 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
5386 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
5387 symbolic references to data to be forced to constant memory on the
5390 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
5392 PR tree-optimization/65002
5393 * tree-cfg.c (pass_data_fixup_cfg): Don't update
5395 * tree-sra.c (some_callers_have_no_vuse_p): New.
5396 (ipa_early_sra): Reject functions whose callers
5397 assume function is read only.
5399 2015-02-13 Richard Biener <rguenther@suse.de>
5402 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
5403 for LTO produced CUs.
5405 2015-02-13 Bin Cheng <bin.cheng@arm.com>
5407 PR tree-optimization/64705
5408 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
5409 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
5410 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
5411 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
5412 expand_simple_operations.
5414 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
5415 Richard Henderson <rth@redhat.com>
5418 * cgraphunit.c (cgraph_node::finalize_function): Set definition
5419 before notice_global_symbol.
5420 (varpool_node::finalize_decl): Likewise.
5421 * varasm.c (default_binds_local_p_2): Rename from
5422 default_binds_local_p_1, add weak_dominate argument. Use direct
5423 returns instead of assigning to local variable. Unify varpool and
5424 cgraph paths via symtab_node. Reject undef weak variables before
5425 testing visibility. Reorder tests for simplicity.
5426 (default_binds_local_p): Use default_binds_local_p_2.
5427 (default_binds_local_p_1): Likewise.
5428 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
5430 (default_elf_asm_output_external): Emit visibility when specified.
5432 2015-02-13 Alan Modra <amodra@gmail.com>
5434 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
5435 code setting up r11 for out-of-line fp restore.
5437 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
5439 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
5440 (muser-mode): Likewise.
5442 2015-02-13 Alan Modra <amodra@gmail.com>
5444 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
5445 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
5447 2015-02-12 David Howells <dhowells@redhat.com>
5449 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
5451 * tree-ssa-uninit.c (dump_predicates): Likewise.
5452 * opts.c (print_filtered_help): Likewise.
5454 2015-02-12 Jakub Jelinek <jakub@redhat.com>
5456 * dwarf2out.c (output_die): Use "%s", name instead of name to
5457 avoid -Wformat-security warning.
5459 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
5460 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5461 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
5462 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5464 2015-02-12 Jason Merrill <jason@redhat.com>
5466 * common.opt (-flifetime-dse): New.
5468 2015-02-12 Jakub Jelinek <jakub@redhat.com>
5471 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
5473 PR tree-optimization/65014
5474 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
5475 use original second operand of arg0 or arg1 instead of
5476 that adjusted by STRIP_NOPS.
5478 2015-02-11 Jeff Law <law@redhat.com>
5481 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
5482 that needs to be queued, just queue it for a single cycle.
5484 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
5486 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
5487 bodies of thunks; comment on why.
5488 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
5491 2015-02-11 Richard Henderson <rth@redhat.com>
5494 * tree-eh.c (mark_reachable_handlers): Mark source and destination
5495 regions of __builtin_eh_copy_values.
5497 2015-02-11 Jakub Jelinek <jakub@redhat.com>
5500 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
5501 ultimate alias is MEM with SYMBOL_REF satisfying
5502 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
5503 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
5505 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
5507 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
5508 "diagnostic-core.h".
5509 (main): Initialize progname, and call diagnostic_initialize.
5511 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
5512 instead of __OPENMP_TARGET__.
5514 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
5515 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
5518 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
5520 * doc/sourcebuild.texi (pie_enabled): Document.
5522 2015-02-11 Martin Liska <mliska@suse.cz>
5525 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
5526 a return value for call to a function that is noreturn.
5528 2015-02-11 Richard Biener <rguenther@suse.de>
5531 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
5534 2015-02-11 Andrew Pinski <apinski@cavium.com>
5537 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5538 Change the first argument type to size_type_node and add another
5540 (aarch64_simd_expand_builtin): Handle the new argument to
5541 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
5542 print an out when the first two arguments are not
5543 nonzero integer constants.
5544 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
5545 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
5547 2015-02-11 Jakub Jelinek <jakub@redhat.com>
5550 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
5551 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
5552 (ix86_set_current_function): Rewritten.
5553 (ix86_add_new_builtins): Temporarily clear current_target_pragma
5554 when creating builtin fndecls.
5556 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
5559 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
5561 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
5562 have no comdat group.
5563 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
5564 (lto_output_varpool_node): Always output alias info.
5565 (output_refs): Output refs of boundary aliases, too.
5566 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
5567 (output_symtab): Output call eges in thunks in boundary.
5568 (get_alias_symbol): Remove.
5569 (input_node, input_varpool_node): Do not special case weakrefs.
5570 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
5571 alias and thunks targets in the boundary; do not take removed symbols
5572 from their comdat groups.
5573 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
5574 (cgraph_node::global_info): Remove.
5575 (cgraph_node::rtl_info): Look through aliases and thunks.
5576 * cgrpah.h (global_info): Remove.
5577 (non_local_p): Remove.
5579 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5580 Sandra Loosemore <sandra@codesourcery.com>
5582 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
5583 to inline asm. List dialects in proper order.
5585 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5586 Sandra Loosemore <sandra@codesourcery.com>
5588 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
5590 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
5592 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
5593 modified) reference to Solaris.
5595 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
5597 * doc/extend.texi (Extended Asm): Fix typos.
5599 2015-02-10 Jakub Jelinek <jakub@redhat.com>
5602 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
5604 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
5607 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5608 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5609 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
5610 * config/sh/constraints.md (Ara, Add): New constraints.
5611 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
5613 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
5614 atomic_mem_operand_0. Don't use force_reg on the memory address.
5615 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
5616 Sra constraint. Convert to insn_and_split. Add workaround for
5618 (atomic_compare_and_swap<mode>_hard): Copy to
5619 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
5620 Use atomic_mem_operand_0 predicate.
5621 (atomic_compare_and_swap<mode>_soft_gusa,
5622 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
5624 (atomic_compare_and_swap<mode>_soft_tcb,
5625 atomic_compare_and_swap<mode>_soft_imask,
5626 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
5627 atomic_mem_operand_0 predicate and SraSdd constraints.
5628 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
5630 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
5631 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
5632 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
5633 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
5634 force_reg on the memory address.
5635 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
5636 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
5637 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
5638 atomic_mem_operand_1 predicate and Sra constraint.
5639 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
5640 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
5641 Use atomic_mem_operand_1 predicate.
5642 (atomic_<fetchop_name><mode>_hard): Copy to
5643 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
5644 Use atomic_mem_operand_1 predicate.
5645 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
5646 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
5647 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
5648 insn_and_split. Use atomic_mem_operand_1 predicate.
5649 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
5650 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
5651 Use atomic_mem_operand_1 predicate.
5652 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
5653 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
5654 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
5655 in generated insn with original mem operand before emitting the insn.
5656 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
5657 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
5658 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
5659 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
5660 Use atomic_mem_operand_1 predicate and AraAdd constraints.
5661 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
5662 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
5663 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
5664 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
5665 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
5666 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
5667 atomic_not_fetch<mode>_soft_tcb,
5668 atomic_<fetchop_name>_fetch<mode>_soft_imask,
5669 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
5670 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
5671 Use atomic_mem_operand_1 predicate and SraSdd constraints.
5673 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
5675 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
5676 and 3 earlyclobber operands.
5678 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
5680 * common.opt (fstack-reuse): Mark as optimization.
5682 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
5685 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
5687 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
5689 PR tree-optimization/64326
5690 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
5692 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
5694 PR gcov-profile/61889
5695 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
5697 2015-02-10 Richard Biener <rguenther@suse.de>
5699 PR tree-optimization/64995
5700 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
5701 value we use is final.
5702 (visit_reference_op_store): Always valueize op.
5703 (visit_use): Properly valueize vuses.
5705 2015-02-10 Richard Biener <rguenther@suse.de>
5707 PR tree-optimization/64909
5708 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
5709 pass a scalar-stmt count estimate to the cost model.
5710 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
5712 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
5714 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
5715 enabled by default together with var-tracking.
5717 2015-02-10 Nick Clifton <nickc@redhat.com>
5719 * config/rl78/rl78.c: Remove DIV attribute code accidentally
5720 included in previous rl78 commit.
5722 2015-02-10 Richard Biener <rguenther@suse.de>
5724 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
5725 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
5728 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
5730 PR gcov-profile/61889
5731 * config.in: regenerate.
5732 * configure.in: Likewise.
5733 * configure.ac: Check for ftw.h.
5734 * gcov-tool.c: Check for ftw.h before using nftw.
5736 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
5739 * ipa-visibility.c (update_visibility_by_resolution_info): Only
5740 assert when not in lto mode.
5742 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5744 * ira-color.c (setup_left_conflict_sizes_p): Simplify
5745 initialization/assignment of conflict_size.
5747 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
5750 * ipa-cp.c (gather_caller_stats): Skip thunks.
5751 (propagate_constants_topo): Skip aliases.
5753 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
5756 * config/sh/sh.c (sh_option_override): Don't change
5757 -freorder-blocks-and-partition to -freorder-blocks even when
5758 unwinding is enabled.
5759 (sh_can_follow_jump): Return false if the followee jump is
5760 a crossing jump when -freorder-blocks-and-partition is specified.
5761 * config/sh/sh.md (*jump_compact_crossing): New insn.
5763 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
5764 Kaz Kojima <kkojima@gcc.gnu.org>
5767 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
5768 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
5769 (sh_can_redirect_branch): Rename to ...
5770 (sh_can_follow_jump): ... this. Constify argument types.
5771 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
5772 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
5773 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
5774 * doc/tm.texi: Regenerate.
5776 2015-02-09 Jakub Jelinek <jakub@redhat.com>
5779 * builtins.c (expand_builtin): Call targetm.expand_builtin
5780 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
5782 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5785 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
5787 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5790 * ipa-icf.c (set_local): New function.
5791 (sem_function::merge): Use it.
5793 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5795 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
5796 (add_type_duplicate): Fix comparison of BINFOs.
5798 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5800 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
5801 on getting VOID pointer.
5803 2015-02-09 Jakub Jelinek <jakub@redhat.com>
5806 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
5809 2015-02-09 Richard Biener <rguenther@suse.de>
5811 * genmatch.c (replace_id): Copy expr_type.
5813 2015-02-09 Richard Biener <rguenther@suse.de>
5815 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
5816 (streamer_write_tree_bitfields): Declare.
5817 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
5818 properly unpack padding.
5819 (unpack_value_fields): Inline ...
5820 (streamer_read_tree_bitfields): ... here.
5821 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
5822 and properly add padding bits.
5823 (streamer_pack_tree_bitfields): Fold into ...
5824 (streamer_write_tree_bitfields): ... this new function,
5825 exposing the bitpack object.
5826 * lto-streamer-out.c (lto_write_tree_1): Call
5827 streamer_write_tree_bitfields.
5829 2015-02-09 Richard Biener <rguenther@suse.de>
5831 PR tree-optimization/54000
5832 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
5833 (struct ivopts_data): Add loop_loc member.
5834 (tree_ssa_iv_optimize_loop): Dump loop location.
5835 (create_new_ivs): Likewise, also dump number of IVs generated.
5837 2015-02-09 Martin Liska <mliska@suse.cz>
5839 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
5840 just if not yet registered.
5841 (ipa_icf_generate_summary): Register callgraph hooks.
5843 2015-02-08 Andrew Pinski <apinski@cavium.com>
5845 * config/aarch64/aarch64.c (gty_dummy): Delete.
5847 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5850 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
5851 (cgraph_node::local_p): Remove thunk related FIXME.
5853 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5856 * i386.c (ix86_function_regparm): Look through aliases to see if callee
5857 is local and optimized.
5858 (ix86_function_sseregparm): Likewise; also use target's SSE math
5859 settings; error out instead of silently generating wrong code
5861 (init_cumulative_args): Look through aliases.
5863 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5866 * ipa-split.c (execute_split_functions): Split if function has aliases.
5868 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
5871 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
5872 aliases before trying to expand it.
5873 (cgraph_node::expand_thunk): Fix formating.
5875 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
5877 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
5878 (Using Assembly Language with C): Expand introduction.
5879 (Basic Asm): Copy-edit. Add more information about uses of
5881 (Extended Asm): Copy-edit. Document new escape syntax and
5883 (Global Reg Vars): Copy-edit.
5884 (Local Reg Vars): Likewise.
5886 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
5890 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
5891 (DBX_CONTIN_CHAR): Define.
5893 2015-02-06 Sebastian Pop <s.pop@samsung.com>
5894 Brian Rzycki <b.rzycki@samsung.com>
5896 PR tree-optimization/64878
5897 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
5898 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
5899 Stop recursion at loop phi nodes after having visited a loop phi node.
5901 2015-02-06 Jakub Jelinek <jakub@redhat.com>
5903 * toplev.c (process_options): Change flag_ipa_ra before creating
5904 optimization_{default,current}_node.
5907 * cgraphunit.c (cgraph_node::expand_thunk): If
5908 restype is not is_gimple_reg_type nor the thunk_fndecl
5909 returns aggregate_value_p, set restmp to a temporary variable
5912 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
5914 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
5916 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5919 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
5920 add a general secondary reload handler for SDmode, unless we have
5921 both read/write support for SDmode.
5923 2015-02-06 Jakub Jelinek <jakub@redhat.com>
5926 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
5927 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
5928 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
5929 1 before, push it to abstract_vec.
5930 (dwarf2out_abstract_function): Adjust caller. Don't call
5931 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
5932 DECL_ABSTRACT_P flags for all abstract_vec elts.
5934 2015-02-06 Renlin Li <renlin.li@arm.com>
5936 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
5938 * tree-ssa.c (execute_update_addresses_taken): Likewise.
5940 2015-02-06 Jeff Law <law@redhat.com>
5943 * config/h8300/h8300.c (push): New argument "in_prologue".
5944 Pass "in_prologue" along to "F".
5945 (h8300_push_pop): Corresponding changes.
5946 (h8300_expand_prologue): Likewise.
5947 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
5949 2015-02-06 Jakub Jelinek <jakub@redhat.com>
5951 PR rtl-optimization/64957
5953 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
5954 IOR rather than for AND.
5956 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
5959 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
5960 of shift-add and (add + shift) operations. Rename local variable.
5962 2015-02-05 Jeff Law <law@redhat.com>
5965 * config/h8300/constraints.md (U): Correctly dectect
5966 "eightbit_data" memory addresses.
5967 * config/h8300/h8300.c (eightbit_constant_address_p): Also
5968 handle (const (plus (symbol_ref (x)))) where x is declared
5969 as an 8-bit data memory address.
5970 * config/h8300/h8300.md (call, call_value): Correctly detect
5971 "funcvec" functions.
5974 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
5975 24 to 28 bits for the H8/300.
5977 2015-02-06 Alan Modra <amodra@gmail.com>
5980 * config/rs6000/rs6000.c (chain_already_loaded): New function.
5981 (rs6000_call_aix): Use it.
5983 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
5985 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
5988 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
5990 * config/h8300/constraints.md ("U" constraint): Use strict
5991 variant of REG_OK_FOR_BASE_P after reload has started.
5993 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
5995 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
5996 define to zero if !TARGET_NEON.
5997 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
5999 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6000 Trevor Saunders <tsaunders@mozilla.com>
6003 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
6005 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6008 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
6009 when removing varpool nodes.
6011 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6014 * varpool.c (varpool_node::remove): Fix order of variables.
6016 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6019 * ipa-inline.c (inline_small_functions): Fix ordering issue between
6020 speculation resolution and key updates.
6022 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6024 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
6025 about not letting any speculative edges unupdated.
6027 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6030 * gcov-io.c (gcov_var): Export.
6032 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6035 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
6036 edges that become speculative.
6038 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6040 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
6041 or DW_LANG_Fortran08.
6042 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
6044 (gen_compile_unit_die): Handle "GNU Fortran2003" and
6045 "GNU Fortran2008" language strings.
6046 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
6047 * langhooks.h (lang_GNU_Fortran): New prototype.
6048 * langhooks.c (lang_GNU_Fortran): New function.
6049 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
6052 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
6054 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
6055 (RTX_OK_FOR_OLO10_P): Likewise.
6057 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
6059 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
6061 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
6064 * gimple.c: Include gimple-ssa.h.
6065 (maybe_remove_unused_call_args): New function.
6066 * gimple.h (maybe_remove_unused_call_args): Declare.
6067 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6068 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6069 * gimple-fold.c (gimple_fold_call): Likewise.
6071 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
6073 PR rtl-optimization/64905
6074 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
6075 pointer alignment if it isn't needed.
6077 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
6079 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
6080 cortex-a72.cortex-a53.
6081 * config/aarch64/aarch64-tune.md: Regenerate.
6082 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
6084 2015-02-04 Nick Clifton <nickc@redhat.com>
6086 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
6089 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6091 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
6092 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
6093 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
6095 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
6096 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
6097 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
6098 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
6099 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
6100 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
6101 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
6102 * tree-core.h (enum built_in_function): In between
6103 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
6104 for builtins that use DEF_BUILTIN_CHKP macro.
6106 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
6109 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
6110 operands for tcc_comparison exprs. Fix typos.
6113 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
6114 of two XORs that have an intervening AND or IOR.
6117 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
6118 simplification of XOR of AND to not allocate new rtx before
6119 committing to a simplification.
6121 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6123 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
6124 manual swaps in all peepholes.
6126 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6128 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
6129 of manual swapping implementation.
6130 (aarch64_expand_vec_perm_const_1): Likewise.
6132 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
6134 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
6135 (generic_addrcost_table): Remove NAMED_PARAM.
6136 (cortexa57_addrcost_table): Likewise.
6137 (xgene1_addrcost_table): Likewise.
6138 (generic_regmove_table): Likewise.
6139 (cortexa53_regmove_table): Likewise.
6140 (xgene1_regmove_table): Likewise.
6141 (generic_vector_table): Likewise.
6142 (cortexa57_vector_table): Likewise.
6143 (xgene1_vector_table): Likewise.
6144 (generic_tunings): Likewise.
6145 (cortexa53_tunings): Likewise.
6146 (cortexa57_tunings): Likewise.
6147 (xgene1_tunings): Likewise.
6149 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
6151 * config/arm/arm-cores.def: Add cortex-a72 and
6152 cortex-a72.cortex-a53.
6153 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
6154 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6155 * config/arm/arm-tune.md: Regenerate.
6156 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
6157 "cortex-a72.cortex-a53".
6158 * doc/invoke.texi (ARM Options/-mtune): Likewise.
6160 2015-02-04 Nick Clifton <nickc@redhat.com>
6163 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
6165 (nonimmediate_di_operand): Likewise.
6167 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
6168 prefixes of known F5 using MSP430 MCUs.
6170 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6172 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
6173 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
6174 instead of __builtin_sqrt.
6176 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
6178 * varasm.c (do_assemble_alias): Follow transparent alias
6180 (default_assemble_visibility): Follow transparent alias
6181 chain for decl name.
6183 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6186 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
6187 to compute size of referenced value in the constant case.
6189 2015-02-03 Jakub Jelinek <jakub@redhat.com>
6191 PR rtl-optimization/64756
6192 * cse.c (invalidate_dest): New function.
6193 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
6194 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
6195 invalidate and do not record it.
6197 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6200 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
6201 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
6202 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
6203 atomic_nand<mode>_soft_tcb): New insns.
6204 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
6205 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
6206 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
6207 Split into atomic_not_fetchsi_hard if operands[0] is unused.
6208 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
6209 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6210 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
6211 atomic_not<mode>_hard if operands[0] is unused.
6212 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
6213 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
6214 if operands[0] is unused.
6215 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
6216 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
6217 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
6218 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6220 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
6221 into atomic_not<mode>_soft_tcb if operands[0] is unused.
6222 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
6223 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
6224 if operands[0] is unused.
6225 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
6226 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
6227 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
6228 atomic_nand_fetchsi_hard if operands[0] is unused.
6229 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
6230 atomic_nand<mode>_hard if operands[0] is unused.
6231 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
6232 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
6233 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
6234 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6235 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
6236 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
6237 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
6238 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6239 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
6240 atomic_not<mode>_hard if operands[0] is unused.
6241 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
6242 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6244 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
6245 into atomic_not<mode>_soft_tcb if operands[0] is unused.
6246 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
6247 atomic_nand<mode>_hard if operands[0] is unused.
6248 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
6249 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6251 2015-02-03 David Malcolm <dmalcolm@redhat.com>
6254 * Makefile.in (GCC_OBJS): Add gcc-main.o.
6255 * gcc-main.c: New file, containing "main" taken from gcc.c.
6256 * gcc.c (do_self_spec): Free decoded_options.
6257 (class driver): Move declaration to gcc.h.
6258 (main): Move declaration and implementation to new file
6260 (driver_get_configure_time_options): New function.
6261 * gcc.h (class driver): Move this declaration here, from
6263 (driver_get_configure_time_options): New declaration.
6265 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
6267 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
6268 cross-module inlining.
6269 * cgraph.h (cgraph_node): Add flag merged.
6270 * ipa-icf.c (sem_function::merge): Maintain it.
6272 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
6274 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
6275 instead of OBJECT_P.
6277 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
6280 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
6281 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
6282 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
6283 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
6285 2015-02-03 Jakub Jelinek <jakub@redhat.com>
6288 * combine.c (reg_n_sets_max): New variable.
6289 (can_change_dest_mode, reg_nonzero_bits_for_combine,
6290 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
6291 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
6292 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
6293 (rest_of_handle_combine): Initialize reg_n_sets_max.
6295 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
6297 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
6298 if some always_inline was inlined, apply changes before inlining
6301 2015-02-02 David Malcolm <dmalcolm@redhat.com>
6304 * config/arm/arm.c (arm_option_override): Set
6305 arm_selected_arch/cpu/tune to NULL on entry.
6307 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
6308 Andrew Pinski <pinskia@gcc.gnu.org>
6309 Jakub Jelinek <jakub@gcc.gnu.org>
6312 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
6313 integer typing for small model. Use IN_RANGE.
6315 2015-02-02 Richard Biener <rguenther@suse.de>
6317 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
6318 * tree-vrp.c (vrp_valueize_1): Likewise.
6320 2015-02-02 Alan Modra <amodra@gmail.com>
6322 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
6323 than mem for toc_restore.
6324 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
6325 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
6326 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
6328 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6331 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
6332 explicit default options.
6334 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
6337 * ipa-utils.c (ipa_merge_profiles): Add release argument.
6338 * ipa-icf.c (sem_function::merge): Do not release body when merging.
6339 * ipa-utils.h (ipa_merge_profiles): Update prototype.
6341 2015-02-01 Jakub Jelinek <jakub@redhat.com>
6344 * cfgexpand.c (deep_ter_debug_map): New variable.
6345 (avoid_deep_ter_for_debug): New function.
6346 (expand_debug_expr): If TERed SSA_NAME is in
6347 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
6348 instead of trying to expand SSA_NAME's def stmt.
6349 (expand_debug_locations): When expanding debug bind
6350 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
6351 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
6353 (pass_expand::execute): Call avoid_deep_ter_for_debug on
6354 all debug bind stmts. Delete deep_ter_debug_map after
6355 expand_debug_location if non-NULL and clear it.
6357 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
6360 * config/sh/sync.md (atomic_fetch_notsi_hard,
6361 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
6362 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
6363 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
6364 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
6365 atomic_not_fetch<mode>_soft_imask): New insns.
6367 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6369 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
6370 (rank_for_schedule_debug): Split from ...
6371 (rank_for_schedule): ... this.
6372 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
6373 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
6375 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
6377 * doc/md.texi (Machine Constraints): Alphabetize table by target.
6378 * doc/extend.texi (x86 Variable Attributes): Move section to
6379 correct alphabetization after renaming.
6380 (x86 Type Attributes): Likewise.
6381 (Target Builtins): Re-alphabetize menu.
6382 (x86 Built-in Functions): Move section to correct alphabetization
6384 (x86 transactional memory intrinsics): Likewise.
6385 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
6386 and x86 Windows Options in table and menu.
6387 (x86 Options): Move section to correct alphabetization after
6389 (x86 Windows Options): Likewise.
6391 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
6393 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
6394 preferred names of the architecture and its 32- and 64-bit
6396 * doc/invoke.texi: Likewise.
6397 * doc/md.texi: Likewise.
6399 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
6402 * config/i386/predicates.md (address_no_seg_operand): Reject
6403 non-CONST_INT_P operands in invalid mode.
6405 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
6407 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
6408 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
6409 * config/i386/predicates.md (address_no_seg_operand): Call
6410 address_operand with VOIDmode.
6411 (vsib_address_operand): Ditto.
6412 (address_mpx_no_base_operand): Ditto.
6413 (address_mpx_no_index_operand): Ditto.
6415 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
6418 * lra-constraints.c (original_subreg_reg_mode): New.
6419 (simplify_operand_subreg): Try to simplify subreg of const. Use
6420 original_subreg_reg_mode for it.
6421 (swap_operands): Update original_subreg_reg_mode.
6422 (curr_insn_transform): Set up original_subreg_reg_mode.
6424 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
6427 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
6429 (process_alt_operands): Use it.
6430 (curr_insn_transform): Check the optional reload pseudo class is
6433 2015-01-30 Joseph Myers <joseph@codesourcery.com>
6435 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
6436 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
6438 * toplev.h (init_asm_output): Update comment on use of
6439 UNKNOWN_LOCATION with fatal_error.
6440 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
6441 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
6442 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
6443 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
6444 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
6445 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
6446 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
6447 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
6448 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
6449 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
6450 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
6451 fatal_error changed to pass input_location as first argument.
6453 2015-01-30 Martin Liska <mliska@suse.cz>
6455 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
6456 in #pragma GCC diagnostic guards.
6458 2015-01-30 Richard Biener <rguenther@suse.de>
6460 PR tree-optimization/64829
6461 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
6462 not add a widening conversion pattern but hand off extra
6463 widenings to callers.
6464 (vect_recog_widen_mult_pattern): Handle extra widening produced
6465 by vect_handle_widen_op_by_const.
6466 (vect_recog_widen_shift_pattern): Likewise.
6467 (vect_pattern_recog_1): Remove excess vertical space in dumping.
6468 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6469 (vect_init_vector_1): Likewise.
6470 (vect_get_vec_def_for_operand): Likewise.
6471 (vect_finish_stmt_generation): Likewise.
6472 (vectorizable_load): Likewise.
6473 (vect_analyze_stmt): Likewise.
6474 (vect_is_simple_use): Likewise.
6476 2015-01-29 Jeff Law <law@redhat.com>
6478 * combine.c (try_combine): Fix typo in comment.
6480 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
6483 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
6484 (rs6000_stack_info): Add assert.
6485 (rs6000_output_savres_externs): New function, split off from...
6486 (rs6000_output_function_prologue): ... here. Do not call it for
6489 2015-01-29 Jeff Law <law@redhat.com>
6492 * combine.c (try_combine): If I0 is a memory load and I3 a store
6493 to a related address, increase the "goodness" of doing a 4-insn
6494 combination with I0-I3.
6495 (make_field_assignment): Handle SUBREGs in the ior+and case.
6497 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
6499 PR tree-optimization/64746
6500 * tree-if-conv.c (mask_exists): New function.
6501 (predicate_mem_writes): Save created mask with given size for further
6503 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
6504 (ifcvt_repair_bool_pattern): Collect all statements that are root
6505 of bool pattern and use iterative algorithm to remove multiple uses
6506 of predicates, display number of required iterations.
6508 2015-01-29 Richard Biener <rguenther@suse.de>
6510 PR tree-optimization/64853
6511 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
6512 stmt will get simulated again.
6513 * tree-ssa-ccp.c (valueize_op_1): Likewise.
6515 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6517 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
6518 return_in_pc. Remove redundant assignments.
6519 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
6520 (arm_expand_epilogue): Don't compare boolean with true in if condition.
6522 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
6524 * config/i386/i386.c (ix86_mode_after): Make static.
6526 2015-01-29 Richard Biener <rguenther@suse.de>
6528 PR tree-optimization/64844
6529 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
6530 dump cost model analysis.
6531 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6532 Do not register adjusted load/store costs here.
6534 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
6535 Uros Bizjak <ubizjak@gmail.com>
6537 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
6538 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
6539 using x86_use_pseudo_pic_reg.
6540 * config/i386/i386.c (ix86_conditional_register_usage): Remove
6541 support for fixed PIC register.
6542 (ix86_use_pseudo_pic_reg): Not static any more.
6544 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
6547 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
6548 to avoid error in cgraph node verification.
6550 2015-01-29 Marek Polacek <polacek@redhat.com>
6552 * doc/standards.texi: Reflect that the default for C is gnu11.
6554 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
6557 * reorg.c (switch_text_sections_between_p): New function.
6558 (relax_delay_slots): Call it when testing if the jump insn
6559 is removable. Use targetm.can_follow_jump when testing if
6560 the conditional branch can follow an unconditional jump.
6562 2015-01-27 Caroline Tice <cmtice@google.com>
6564 Committing VTV Cywin/Ming patch for Patrick Wollgast
6565 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
6566 if -fvtable-verify=preinit/std is used.
6567 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
6568 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
6569 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
6570 if -fvtable-verify=preinit/std is used.
6571 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
6572 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
6573 if -fvtable-verify=preinit/std is used.
6574 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
6575 * config/i386/mingw32.h (LIB_SPEC): Likewise.
6576 * varasm.c (assemble_variable): Add code to properly set the comdat
6577 section and name for the .vtable_map_vars section in case the
6578 target is PE or COFF.
6580 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
6583 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
6584 make sane BB profile.
6585 (cgraph_node::expand_thunk): Make sane BB profile.
6586 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
6587 * cgraph.h (init_lowered_empty_function): Update prototype.
6588 * config/i386/i386.c (make_resolver_func): Update call.
6589 * predict.c (gate): Disable branch prediction pass if
6590 profile is already there.
6592 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
6594 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
6595 * opth-gen.awk: Likewise.
6596 * common.opt: Mark flag_fp_contract_mode as Optimization.
6598 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
6600 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
6601 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
6603 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
6606 * config/sh/predicates.md (atomic_arith_operand,
6607 atomic_logical_operand): Remove.
6608 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
6609 (atomic_arith_operand_0): New predicate.
6610 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
6611 Use atomic_arith_operand_0 for input values.
6612 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
6613 atomic_compare_and_swap<mode>_soft_gusa,
6614 atomic_compare_and_swap<mode>_soft_tcb,
6615 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
6616 arith_reg_operand instead of register_operand.
6617 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
6618 atomic_arith_operand_0 for newval input.
6619 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
6620 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
6621 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
6622 arith_reg_operand instead of register_operand.
6623 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
6624 fetchop_predicate_1, fetchop_constraint_1_llcs,
6625 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
6626 fetchop_constraint_1_imask): New code iterator attributes.
6627 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
6628 register_operand. Use fetchop_predicate_1.
6629 (atomic_fetch_<fetchop_name>si_hard,
6630 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
6631 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
6632 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
6633 and arith_reg_operand instead of register_operand. Use
6634 fetchop_predicate_1, fetchop_constraint_1_gusa.
6635 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
6636 and arith_reg_operand instead of register_operand. Use
6637 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
6639 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
6640 and arith_reg_operand instead of register_operand. Use
6641 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
6643 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
6644 register_operand. Use atomic_logical_operand_1.
6645 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
6646 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
6647 arith_reg_operand instead of register_operand.
6648 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
6649 Use arith_reg_dest and arith_reg_operand instead of register_operand.
6650 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
6651 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
6652 register_operand. Use fetchop_predicate_1.
6653 (atomic_<fetchop_name>_fetchsi_hard,
6654 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
6655 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6656 fetchop_constraint_1_llcs.
6657 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
6658 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6659 fetchop_constraint_1_gusa.
6660 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
6661 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6662 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
6663 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
6664 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
6665 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
6666 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
6667 register_operand. Use atomic_logical_operand_1.
6668 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
6669 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
6670 arith_reg_operand instead of register_operand.
6671 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
6672 arith_reg_operand instead of register_operand. Use logical_operand
6673 and K08. Adjust asm sequence to allow R0 usage.
6674 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
6675 arith_reg_operand instead of register_operand. Use logical_operand
6678 2015-01-28 Jakub Jelinek <jakub@redhat.com>
6681 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
6682 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
6683 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
6684 only get_full_len HOST_WIDE_INTs from get_val () array rather than
6685 all bits in *val_wide.
6687 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
6689 * varpool.c (tls_model_names): Fix names.
6690 (varpool_node::dump): Dump tls- prefix for tls models.
6692 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
6693 Bernd Schmidt <bernds@codesourcery.com>
6694 Nathan Sidwell <nathan@codesourcery.com>
6696 * config/nvptx/mkoffload.c: New file.
6697 * config/nvptx/t-nvptx: Add build rules for it.
6698 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
6699 (extra_programs): Add mkoffload.
6700 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
6702 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
6704 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
6707 * cfgexpand.c (reorder_operands): Skip debug gimples.
6709 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
6711 PR tree-optimization/64277
6712 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
6713 range info when possible to refine estimation.
6715 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6717 PR tree-optimization/64718
6718 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
6719 be a 16bit unsigned integer when n->range is 16.
6720 (bswap_replace): Convert src to that type if necessary for all bswap
6721 sizes. Fix rotation right notation in nearby comment. Use bswap_type
6722 set in pass_optimize_bswap::execute ().
6724 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
6726 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
6727 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
6728 integer and floating point variants.
6729 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
6731 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
6733 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
6734 for all vector modes.
6736 2015-01-28 Jakub Jelinek <jakub@redhat.com>
6739 * doc/sourcebuild.texi (comdat_group): Document.
6741 2015-01-28 Terry Guo <terry.guo@arm.com>
6743 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
6745 2015-01-27 David Malcolm <dmalcolm@redhat.com>
6747 * toplev.c (print_version): Add param "show_global_state", and
6748 only print GGC and plugin information if it is true.
6749 (init_asm_output): Pass in "true" for the new param when calling
6751 (process_options): Likewise.
6752 (toplev::main): Likewise.
6753 * toplev.h (print_version): Add new param to decl.
6755 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
6759 * tree.c (lookup_binfo_at_offset): New function.
6760 (get_binfo_at_offset): Use it.
6762 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
6765 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
6766 on vtable being vtable.
6768 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6770 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
6771 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
6773 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
6774 -mno-hotpatch options. Change syntax of -mhotpatch= option.
6775 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
6777 (s390_hotpatch_trampoline_halfwords_max): Renamed.
6778 (s390_hotpatch_hw_max): New name.
6779 (s390_hotpatch_trampoline_halfwords): Renamed.
6780 (s390_hotpatch_hw_before_label): New name.
6781 (get_hotpatch_attribute): Removed.
6782 (s390_hotpatch_hw_after_label): New name.
6783 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
6785 (s390_attribute_table): Ditto.
6786 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
6787 (s390_function_num_hotpatch_hw): New name.
6788 Remove special handling of inline functions and hotpatching.
6789 Return number of nops before and after the function label.
6790 (s390_can_inline_p): Removed.
6791 (s390_asm_output_function_label): Emit a configurable number of nops
6792 after the function label.
6793 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
6794 (TARGET_CAN_INLINE_P) Removed.
6795 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
6797 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6798 Jiong Wang <jiong.wang@arm.com>
6800 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
6802 (cb<optab><mode>1): Likewise.
6803 * config/aarch64/iterators.md (bcond): New define_code_attr.
6805 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6807 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
6810 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6812 * config/s390/s390.c (s390_register_move_cost): Increase costs for
6815 2015-01-27 Richard Biener <rguenther@suse.de>
6817 * tree-vrp.c (update_value_range): Intersect the range with
6818 old recorded SSA name range information.
6820 2015-01-27 Nick Clifton <nickc@redhat.com>
6822 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
6823 BC, DE and HL registers directly, not via AX.
6824 When decrementing the stack pointer by a large amount, transfer SP
6825 into AX and perform the subtraction there.
6826 (rl78_expand_epilogue): Perform the inverse of the above
6829 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6831 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
6833 2015-01-27 Jakub Jelinek <jakub@redhat.com>
6834 Yury Gribov <y.gribov@samsung.com>
6837 * ubsan.c (ubsan_source_location): Refactor code.
6838 (ubsan_type_descriptor): Update type size. Refactor code.
6840 2015-01-27 Richard Biener <rguenther@suse.de>
6842 PR tree-optimization/56273
6843 PR tree-optimization/59124
6844 PR tree-optimization/64277
6845 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
6846 from the first VRP pass.
6848 2015-01-27 Jakub Jelinek <jakub@redhat.com>
6851 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
6852 handle the first argument in the same loop as all the other arguments.
6854 PR rtl-optimization/61058
6855 * jump.c (cleanup_barriers): Update basic block boundaries
6856 if BLOCK_FOR_INSN is non-NULL on PREV.
6858 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
6860 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
6861 bounds narrowing, already instrumented calls and calls to
6862 not instrumentable functions.
6864 2015-01-27 Jakub Jelinek <jakub@redhat.com>
6866 PR tree-optimization/64807
6867 * wide-int.cc (wi::divmod_internal): Clear
6868 b_dividend[dividend_blocks_needed].
6870 2015-01-26 DJ Delorie <dj@redhat.com>
6872 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
6873 volatile memory references.
6875 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
6878 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
6880 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
6881 shifts if it already fits into K08.
6883 2015-01-26 Jakub Jelinek <jakub@redhat.com>
6886 * ipa-inline.c (inline_small_functions): Print "unknown" even
6887 if edge->call_stmt is non-NULL, but has builtins or unknown
6891 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
6892 with asterisk, skip the first character.
6894 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
6897 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
6900 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
6903 * config/i386/i386.md (*movdi_internal): Also check operand 0
6904 to determine TYPE_LEA operand.
6905 (*movsi_internal): Ditto.
6907 2015-01-26 Jakub Jelinek <jakub@redhat.com>
6909 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
6910 OPTION_MASK_QUAD_MEMORY_ATOMIC.
6912 2015-01-26 Renlin Li <renlin.li@arm.com>
6914 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
6916 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
6919 2015-01-26 Richard Biener <rguenther@suse.de>
6922 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
6923 combining two BIT_AND_EXPR predicates.
6925 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
6928 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
6930 2015-01-26 Terry Guo <terry.guo@arm.com>
6932 * config/arm/arm.c (arm_file_start): Update the assignment of
6935 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
6937 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
6939 config/arm/arm.md: Include the new Cortex-A57 model.
6940 (generic_sched): Don't use generic_sched when tuning for
6943 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
6944 Uros Bizjak <ubizjak@gmail.com>
6946 * config/i386/i386.c (get_builtin_code_for_version): Add
6947 support for BMI and BMI2 multiversion functions.
6949 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6951 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
6952 (extract_bit_field): Likewise.
6953 (extract_low_bits): Likewise.
6954 (expand_mult): Likewise.
6955 (expand_mult_highpart_adjust): Likewise.
6957 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
6959 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
6960 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
6961 * config/i386/i386.c (processor_model): Add
6962 M_INTEL_COREI7_BROADWELL.
6963 (arch_names_table): Add "broadwell".
6965 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
6974 * config/sh/sh-protos.h
6975 (sh_extending_set_of_reg::can_use_as_unextended_reg,
6976 sh_extending_set_of_reg::use_as_unextended_reg,
6977 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
6978 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
6979 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
6980 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
6981 (sh_treg_insns): New class.
6982 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
6983 (scope_counter): New class.
6984 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
6985 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
6986 sh_extending_set_of_reg::can_use_as_unextended_reg,
6987 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
6988 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
6989 sh_split_treg_set_expr): New functions.
6990 (addsubcosts): Handle treg_set_expr.
6991 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
6992 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
6993 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
6994 (sh_insn_operands_modified_between_p): Make non-static.
6995 * config/sh/predicates.md (zero_extend_movu_operand): Allow
6996 simple_mem_operand in addition to displacement_mem_operand.
6997 (zero_extend_operand): Don't allow zero_extend_movu_operand.
6998 (treg_set_expr, treg_set_expr_not_const01,
6999 arith_reg_or_treg_set_expr): New predicates.
7000 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
7001 arith_or_int_operand instead of logical_operand. Convert to
7002 insn_and_split. Try to optimize constant operand in splitter.
7003 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
7004 (*tstqi_t_zero): Delete.
7005 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
7006 (tstsi_t_and_not): Delete.
7007 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
7008 Convert to insn_and_split.
7009 (unnamed split, tstsi_t_zero_extract_xor,
7010 tstsi_t_zero_extract_subreg_xor_little,
7011 tstsi_t_zero_extract_subreg_xor_big): Delete.
7012 (*tstsi_t_shift_mask): New insn_and_split.
7013 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
7014 to recombine with surrounding insns when splitting.
7015 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
7016 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
7017 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
7018 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
7019 (*cbranch_div0s: Delete.
7020 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
7021 Try to recombine with surrounding insns when splitting. Add operand
7023 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
7024 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
7025 *addc_r_r_msb, *addc_2r_msb): Delete.
7026 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
7028 (*addc_negreg_t): New insn_and_split.
7029 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
7030 Try to recombine with surrounding insns when splitting.
7031 Add operand order variants.
7032 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
7033 insn_and_split patterns.
7034 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
7035 surrounding insns when splitting.
7036 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
7037 (*rotcl): Likewise. Add zero_extract variant.
7038 (*ashrsi2_31): New insn_and_split.
7039 (*negc): Convert to insn_and_split. Use treg_set_expr.
7040 (*zero_extend<mode>si2_disp_mem): Update comment.
7041 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
7043 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
7044 with surrounding insns when splitting.
7045 (any_treg_expr_to_reg): New insn_and_split.
7046 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
7047 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
7048 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
7049 *zero_extract_2): New single bit zero extract patterns.
7050 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
7051 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
7052 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
7053 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
7055 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
7056 register_operand for set source.
7058 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
7060 * i386.opt (prefetch_sse): New targetsave.
7061 * i386.c (ix86_function_specific_save): Save prefetch_sse.
7062 (ix86_function_specific_restore): Restore prefetch_sse and initialize
7063 ix86_cost/ix86_tune_cost.
7065 2015-01-23 David Malcolm <dmalcolm@redhat.com>
7067 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7068 Support the JIT by using 0 as the language type.
7070 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
7073 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
7074 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
7075 (mark_regno_live, process_bb_lives): Pass new parameter value to
7076 make_hard_regno_born.
7078 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7080 PR rtl-optimization/63637
7081 PR rtl-optimization/60663
7082 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
7083 if elt->cost is MAX_COST for ASM_OPERANDS.
7084 (find_sets_in_insn): Fix up comment typo.
7085 (cse_insn): Don't set src_volatile for all non-volatile
7086 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
7087 or with "memory" clobber. Set elt->cost to MAX_COST
7088 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
7089 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
7091 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
7093 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
7096 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
7098 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
7099 libgcc/config/i386/elf-lib.h.
7101 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7104 * gcc.c (print_configuration): Don't print a blank line at the end
7106 (run_attempt): ... but here unstead.
7109 * omp-low.c (scan_sharing_clauses): Don't ignore
7110 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
7111 on target data/update constructs.
7113 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
7116 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
7117 (DEBUG_RELOAD): Removed define.
7118 (m32c_limit_reload_class): Enable traces with if DEBUG0.
7119 (m32c_function_arg): Added a type cast.
7120 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
7121 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
7122 * config/m32c/bitops.md (andqi3_16): Likewise.
7123 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
7124 (push_a01_l): Likewise.
7126 2015-01-23 David Malcolm <dmalcolm@redhat.com>
7129 * main.c (main): Construct toplev instances with init_signals=true.
7130 * toplev.c (general_init): Add param "init_signals", and use it to
7131 conditionalize the calls to signal and host_hooks.extra_signals.
7132 (toplev::toplev): Add param "init_signals".
7133 (toplev::main): When invoking general_init, pass m_init_signals
7134 to control whether signal-handlers are installed.
7135 * toplev.h (toplev::toplev): Add param "init_signals".
7136 (toplev::m_init_signals): New field.
7138 2015-01-23 David Malcolm <dmalcolm@redhat.com>
7141 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
7142 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
7143 latter may be affected by the former (e.g. on i686).
7145 2015-01-23 Martin Liska <mliska@suse.cz>
7147 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
7148 false positive during profiledbootstrap.
7150 2015-01-23 Tom de Vries <tom@codesourcery.com>
7153 * lto-opts.c (lto_write_options): Output non-explicit conservative
7155 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
7156 (append_compiler_options): Pass -fopenacc through.
7158 2015-01-23 Tom de Vries <tom@codesourcery.com>
7161 * lto-opts.c (lto_write_options): Output non-explicit conservative
7163 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
7164 (append_compiler_options): Pass -fopenmp through.
7166 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7169 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
7172 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
7173 * diagnostic.def (DK_ICE_NOBT): New kind.
7174 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
7175 like DK_ICE, but never print backtrace.
7176 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
7177 (internal_error_no_backtrace): New function.
7178 * gcc.c (execute): Use internal_error_no_backtrace instead of
7181 2015-01-22 Jeff Law <law@redhat.com>
7184 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
7185 improve code density for small immediate to memory case.
7186 (insv): Better handle bitfield assignments when the field is
7187 being set to all ones.
7188 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
7191 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7192 Jakub Jelinek <jakub@redhat.com>
7194 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
7195 for !TARGET_LIBC_PROVIDES_SSP version and
7196 -fstack-protector-{all,strong,explicit} otherwise.
7197 * config/freebsd.h (LINK_SSP_SPEC): Handle
7198 -fstack-protector-{strong,explicit}.
7200 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
7201 H.J. Lu <hongjiu.lu@intel.com>
7204 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
7207 2015-01-22 Wei Mi <wmi@google.com>
7209 PR rtl-optimization/64557
7210 * dse.c (record_store): Call get_addr for mem_addr.
7211 (check_mem_read_rtx): Likewise.
7213 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
7215 * fold-const.c (const_binop): Add early return for non-tcc_binary.
7217 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
7219 * toplev.c (init_local_tick): Process the failure when read
7220 fails for random_seed.
7222 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
7223 'pretty_name' to avoid memory overflow.
7225 2015-01-22 Richard Biener <rguenther@suse.de>
7228 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
7229 abnormal coalescing on undefined SSA names.
7231 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
7235 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
7237 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
7239 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
7242 * fold-const.c (fold_checksum_tree): Don't include value of
7243 expr->decl_with_vis.symtab_node in the checksum.
7245 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7247 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
7249 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
7252 * gcc.c (insert_comments): New function.
7253 (try_generate_repro): Call it.
7254 (append_text): Removed.
7256 2015-01-22 Richard Biener <rguenther@suse.de>
7258 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
7259 with IL incompatible options. Properly honor user optimize
7262 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
7264 PR rtl-optimization/64682
7265 * combine.c (distribute_notes): When moving a death note for
7266 a register that is set in the new I2, make sure to put it
7269 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
7271 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
7274 2015-01-21 Jakub Jelinek <jakub@redhat.com>
7277 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
7278 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
7279 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
7282 * doc/invoke.texi (-fsanitize=vptr): Document.
7284 PR rtl-optimization/62078
7285 * dse.c: Include cfgcleanup.h.
7286 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
7287 anything call purge_all_dead_edges and cleanup_cfg at the end
7290 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
7292 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
7295 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7297 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
7300 2015-01-21 David Sherwood <david.sherwood@arm.com>
7301 Tejas Belagod <Tejas.Belagod@arm.com>
7303 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
7304 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
7305 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
7308 2015-01-21 David Sherwood <david.sherwood@arm.com>
7309 Tejas Belagod <Tejas.Belagod@arm.com>
7311 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
7312 (aarch64_reverse_mask): New decls.
7313 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
7314 (insn_count): New mode_attr.
7315 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
7316 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
7317 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
7318 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
7319 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
7320 (aarch64_simd_st4): New patterns.
7321 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
7322 (aarch64_reverse_mask): New functions.
7324 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
7326 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
7328 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
7329 addressing modes for BE.
7330 (aarch64_print_operand): Add 'R' specifier.
7331 (aarch64_simd_disambiguate_copy): Delete.
7332 (aarch64_simd_emit_reg_reg_move): New function.
7333 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
7334 in define_splits for structural moves.
7335 (mov<mode>): Use less restrictive predicates.
7336 (*aarch64_mov<mode>): Simplify and only allow for LE.
7337 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
7339 2015-01-21 Alan Hayward <alan.hayward@arm.com>
7341 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
7343 2015-01-21 Richard Henderson <rth@redhat.com>
7346 * ccmp.c (used_in_cond_stmt_p): Remove.
7347 (expand_ccmp_expr): Don't use it.
7349 2015-01-21 Nick Clifton <nickc@redhat.com>
7351 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
7354 2015-01-21 Richard Biener <rguenther@suse.de>
7357 * tree-core.h (builtin_info, builtin_info_type): Turn from
7358 an object with two arrays into an array of an object with
7359 decl and two flags, implicit_p and declared_p.
7360 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
7361 set_builtin_decl, set_builtin_decl_implicit_p,
7362 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
7363 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
7364 * builtins.c (builtin_info): Adjust.
7365 * gimplify.c (gimplify_addr_expr): References to builtins
7366 that have been declared by the user makes them eligible for
7367 use by the compiler. Call set_builtin_decl_implicit_p on them.
7369 2015-01-20 Jeff Law <law@redhat.com>
7372 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
7373 allow pc-relative addresses in operand predicates or constraints.
7375 2015-01-21 Bin Cheng <bin.cheng@arm.com>
7377 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
7378 neon on aarch32 processors for stringops.
7380 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7383 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
7385 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7388 * ipa-inline.c: Include lto-streamer.h
7389 (report_inline_failed_reason): Output source file differences and
7390 flags on optimization/target node mismatch.
7391 (can_inline_edge_p): Consider caller to be the outer inline function;
7392 be less restrictive about matching opimize and optimize_size attributes.
7393 (inline_account_function_p): Break out from ...
7394 (inline_small_functions): ... here.
7395 * ipa-inline-transform.c (clone_inlined_nodes): Use
7396 inline_account_function_p.
7397 (inline_call): Use optimize attribution; use inline_account_function_p.
7398 (inline_transform): Use opt_for_fn.
7399 * ipa-inline.h (inline_account_function_p): Declare.
7401 2015-01-20 Jakub Jelinek <jakub@redhat.com>
7404 * dwarf2out.c (decl_piece_node): Don't put bitsize into
7405 mode if bitsize <= 0.
7406 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
7407 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
7408 sizes and positions.
7410 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
7412 * config/nios2/nios2.c (nios2_asm_file_end): Implement
7413 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
7415 (TARGET_ASM_FILE_END): Define.
7417 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7419 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
7420 (struct tune_params): Use the enum.
7421 * arm.c (arm_*_tune): Update.
7422 (arm_option_override): Update.
7424 2015-01-20 Richard Biener <rguenther@suse.de>
7427 * ipa-reference.c (add_static_var): Inline ...
7428 (analyze_function): ... here after splitting out from ...
7429 (is_proper_for_analysis): ... this.
7431 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
7434 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
7435 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
7436 replace the conditional with it's true branch.
7437 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
7438 (arm_lra_p): Remove.
7440 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
7442 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
7444 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7446 * config/tilegx/mul-tables.c: Move symtab.h include after
7447 coretypes.h include.
7448 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
7449 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
7450 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
7451 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
7452 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
7454 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
7458 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
7460 PR rtl-optimization/64081
7461 * loop-iv.c (def_pred_latch_p): New function.
7462 (latch_dominating_def): Allow specific cases with non-single
7464 (iv_get_reaching_def): Likewise.
7465 (check_complex_exit_p): New function.
7466 (check_simple_exit): Use check_complex_exit_p to allow certain cases
7467 with exits not executing on any iteration.
7469 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7472 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
7475 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7478 * i386.c (gate): Check flag_expensive_optimizations and
7480 (ix86_option_override_internal): Drop optimize_size condition
7481 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
7482 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
7484 (ix86_avx256_split_vector_move_misalign,
7485 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
7486 * sse.md (all uses of TARGET_PREFER_AVX128): Add
7487 optimize_insn_for_speed_p check.
7489 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
7491 * config/mips/mips.h (FP_ASM_SPEC): New define.
7492 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
7495 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
7498 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
7499 nullptr for insn when reaching the first insn.
7500 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
7501 (sh_insn_operands_modified_between_p): Add nullptr check.
7502 (sh_find_extending_set_of_reg): Fix log message. Don't accept
7503 sign extending mem load if the insn contains any UNSPEC or
7506 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7508 * params.def (inline-unit-growth): Drop to 15%.
7509 * invoke.texi (inline-unit-growth): Document change.
7511 2015-01-19 Martin Liska <mliska@suse.cz>
7514 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
7515 function for second argument of OBJ_TYPE_REF.
7517 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7520 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
7521 whether function is an alias.
7523 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
7525 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
7528 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
7530 PR rtl-optimization/64671
7531 * lra-remat.c (operand_to_remat): Don't consider jump and call
7534 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
7537 * config/rs6000/default64.h: Include rs6000-cpus.def.
7538 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
7539 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
7540 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
7542 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
7544 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
7545 pseudo-op to specify assembler dialect.
7547 2015-01-19 Martin Liska <mliska@suse.cz>
7550 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
7551 Handle safe potentially removed nodes during filtering.
7553 2015-01-19 Martin Liska <mliska@suse.cz>
7555 * doc/extend.texi (no_icf): Add new attribute description.
7556 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
7557 where the pass attempts to merge a function with no_icf attribute.
7559 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7562 * doc/md.texi (ARM Options): Document register constraints.
7564 2015-01-19 Jiong Wang <jiong.wang@arm.com>
7565 Andrew Pinski <apinski@cavium.com>
7568 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
7569 (ashl<mode>3): Don't expand if operands[2] is not constant.
7571 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7574 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
7575 Match xor-and-xor RTL pattern.
7577 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
7579 PR rtl-optimization/64081
7580 * loop-iv.c (def_pred_latch_p): New function.
7581 (latch_dominating_def): Allow specific cases with non-single
7583 (iv_get_reaching_def): Likewise.
7584 (check_complex_exit_p): New function.
7585 (check_simple_exit): Use check_complex_exit_p to allow certain cases
7586 with exits not executing on any iteration.
7588 2015-01-19 Jakub Jelinek <jakub@redhat.com>
7590 * common.opt (fgraphite): Fix a typo.
7592 2015-01-19 Felix Yang <felix.yang@huawei.com>
7594 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
7596 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
7597 uminp, smax_nanp, smin_nanp): New builtins.
7598 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
7599 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
7600 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
7601 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
7602 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
7603 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
7604 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
7605 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
7606 vpminnms_f32): Rewrite using builtin functions.
7608 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7611 * omp-low.c (offload_symbol_decl): Remove variable.
7612 (get_offload_symbol_decl): Remove function.
7613 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
7614 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
7615 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
7616 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
7617 BUILT_IN_GOACC_UPDATE don't pass it at all.
7619 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
7621 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
7624 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
7626 * ipa-chkp.c (chkp_produce_thunks): Add early param
7627 to split thunks production into two passes. Keep
7628 'always_inline' function bodies after the first pass.
7629 (pass_data_ipa_chkp_early_produce_thunks): New.
7630 (pass_ipa_chkp_early_produce_thunks): New.
7631 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
7632 chkp_produce_thunks signature.
7633 (make_pass_ipa_chkp_early_produce_thunks): New.
7634 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
7635 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
7636 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
7638 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
7640 * cgraph.c (cgraph_node::dump): Dump profile flags.
7642 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
7645 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
7646 reg appear first in the parallel.
7648 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
7650 * ipa-reference.c (set_reference_optimization_summary,
7651 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
7653 (ignore_module_statics): New static var.
7654 (propagate_bits): If ipa-reference is disabled, do not look into local
7656 (analyze_function): Disable analysis when ipa_reference is disabled.
7657 (generate_summary): Do not dump when reference is disabled;
7658 collect vars accessed from functions with ipa-reference disabled.
7659 (get_read_write_all_from_node): When ipa-reference is disabled, use the
7661 (gate): Enable for LTO.
7662 (ignore_edge_p): New function.
7663 (propagate): Skip functions w/o ipa-reference analysis.
7664 * optc-save-gen.awk: Handle optimize_debug correctly.
7665 * opth-gen.awk: Likewise.
7666 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
7667 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
7668 fira-share-save-slots, fira-share-spill-slots,
7669 fmodulo-sched-allow-regmoves, fpartial-inlining,
7670 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
7671 ftracer, ftree-parallelize-loops, fassociative-math,
7672 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
7674 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
7675 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
7677 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
7680 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
7683 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
7685 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
7687 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
7689 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
7690 Remove duplicate option listings.
7692 2015-01-18 Felix Yang <felix.yang@huawei.com>
7694 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
7695 (autofdo_source_profile::get_callsite_total_count,
7696 function_instance::get_function_instance_by_decl,
7697 string_table::get_index, string_table::get_index_by_decl,
7698 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
7699 Fix comment typos. Reformatting and minor code rearrangement.
7701 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7703 * config/rs6000/rs6000.md (probe_stack): Delete.
7704 (probe_stack_address): New.
7706 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7708 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
7709 to test for 32-bit ABIs, not !TARGET_POWERPC64.
7711 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
7713 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
7714 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
7715 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
7717 (rs6000_libcall_value): Use the new function.
7719 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
7721 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
7723 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
7725 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
7726 implement a more precise life analysis for it during backward scan.
7728 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7730 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
7732 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
7734 PR rtl-optimization/52773
7735 * calls.c (emit_library_call_value): When pushing arguments use
7736 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
7737 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
7738 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
7740 2015-01-17 Jeff Law <law@redhat.com>
7742 PR rtl-optimization/32790
7743 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
7744 not ZERO_EXTEND in SET_DESTs.
7746 2015-01-17 Alan Modra <amodra@gmail.com>
7748 * cprop.c (do_local_cprop): Revert last change.
7750 2015-01-16 DJ Delorie <dj@redhat.com>
7751 Nick Clifton <nickc@redhat.com>
7753 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
7754 (addhi3_real): Likewise. Fix [HL+0] syntax.
7755 (subqi3_real): Likewise.
7756 (subhi3_real): Likewise.
7757 (cbranchqi4_real): Likewise. Allow saddr,#imm.
7758 (cbranchhi4_real): Likewise.
7759 (cbranchhi4_real_inverted): Likewise.
7760 (cbranchsi4_real_lt): Likewise.
7761 (cbranchsi4_real_ge): Likewise.
7762 (cbranchsi4_real_ge): Likewise.
7763 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
7764 (sub<mode>3_virt): Likewise.
7765 (cbranchqi4_virt): Likewise.
7766 (cbranchhi4_virt): Likewise.
7767 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
7768 always use '[reg+imm]' even when imm is zero.
7769 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
7770 (rl78_general_operand): New.
7771 (rl78_nonimmediate_operand): New.
7772 (rl78_nonfar_operand): Use them.
7773 (rl78_nonfar_nonimm_operand): Likewise.
7774 (rl78_stack_based_mem): Fix.
7775 * config/rl78/constraints.md (Ibqi): New.
7780 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
7783 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
7785 * config/rl78/constrains (Qs8): New constraint.
7786 * config/rl78/rl78.c (rl78_flags_already_set): New function.
7787 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
7788 * config/rl78/rl78-real.md (update_Z): New attribute.
7789 Update patterns to set it.
7790 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
7791 shorter compare and branch sequence can be used.
7792 (cbranchhi4_real): Likewise.
7793 (cbranchhi4_real_inverted): Likewise.
7795 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
7796 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
7798 * config/rl78/rl78.c (rl78_get_name_encoding): New.
7799 (rl78_option_override): Allow -mes0 only if C.
7800 (characterize_address): Support subregs of symbol_refs.
7801 (rl78_addr_space_address_mode): Move. Add __near.
7802 (rl78_far_p): Likewise.
7803 (rl78_addr_space_pointer_mode): Likewise.
7804 (rl78_as_legitimate_address): Likewise.
7805 (rl78_addr_space_subset_p): Likewise.
7806 (rl78_addr_space_convert): Likewise.
7807 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
7809 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
7811 (rl78_alloc_physical_registers_op1): Change logic to prefer
7812 symbol[BC] addressing.
7813 (frodata_section): New.
7814 (rl78_asm_init_sections): Initialize it.
7815 (rl78_select_section): Put __far readonly symbols in .frodata.
7816 (rl78_make_type_far): New.
7817 (rl78_insert_attributes): Force all readonly symbols to be
7819 (rl78_asm_out_integer): New.
7820 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
7821 * config/rl78/rl78.opt (-mes0): New.
7823 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
7824 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7825 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7826 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
7827 (rl78_saddr_p): New.
7828 (rl78_output_aligned_common): New.
7829 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
7830 (rl78_handle_saddr_attribute): New.
7831 (rl78_handle_naked_attribute): New.
7832 (rl78_attribute_table): Add saddr.
7833 (rl78_print_operand_1): Don't print '!' on saddr operands.
7834 (rl78_print_operand_1): Strip encodings.
7836 (rl78_strip_name_encoding): New.
7837 (rl78_attrlist_to_encoding): New.
7838 (rl78_encode_section_info): New.
7839 (rl78_asm_init_sections): New.
7840 (rl78_select_section): New.
7841 (rl78_output_labelref): New.
7842 (rl78_output_aligned_common): New.
7843 (rl78_asm_out_integer): New.
7844 (rl78_asm_ctor_dtor): New.
7845 (rl78_asm_constructor): New.
7846 (rl78_asm_destructor): New.
7848 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
7849 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
7850 (transcode_memory_rtx): Update.
7851 (rl78_expand_epilogue): Use A_REG instead of 0.
7853 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7855 * config/arm/arm-protos.h (struct tune_params): New field
7856 sched_autopref_queue_depth.
7857 * config/arm/arm.c (sched-int.h): Include header.
7858 (arm_first_cycle_multipass_dfa_lookahead_guard,)
7859 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
7860 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
7861 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
7862 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
7863 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
7864 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
7865 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
7866 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
7867 * config/arm/t-arm (arm.o): Update.
7868 * haifa-sched.c (update_insn_after_change): Update.
7869 (rank_for_schedule): Use auto-prefetcher model, if requested.
7870 (autopref_multipass_init): New static function.
7871 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
7872 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
7873 variable for debug dumps.
7874 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
7875 (autopref_multipass_dfa_lookahead_guard): New global function that
7876 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
7877 (init_h_i_d): Update.
7878 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
7879 * sched-int.h (enum autopref_multipass_data_status): New const enum.
7880 (autopref_multipass_data_): Structure for auto-prefetcher data.
7881 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
7882 (struct _haifa_insn_data:autopref_multipass_data): New field.
7883 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
7884 (autopref_multipass_dfa_lookahead_guard): Declare.
7886 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7888 * rtlanal.c (get_base_term): Handle SCRATCH.
7890 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7892 * config/aarch64/aarch64.c
7893 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
7894 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7896 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
7897 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7899 2015-01-17 Alan Modra <amodra@gmail.com>
7901 * cprop.c (do_local_cprop): Disallow replacement of fixed
7904 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7907 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
7910 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7912 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
7913 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
7915 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7917 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
7918 * config/arm/thumb1.md: ... Here.
7920 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7922 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
7923 TImode for TARGET_32BIT.
7925 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7927 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
7928 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
7930 (rs6000_abi_word_mode): New function.
7932 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7934 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
7935 instead of UNITS_PER_WORD to describe the size of stack slots.
7937 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7939 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
7940 as rs6000_promote_function_mode. Move comment to there.
7941 (rs6000_promote_function_mode): New function.
7943 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
7945 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
7946 -mpowerpc64 is active.
7948 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
7951 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
7954 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
7956 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
7957 introduced in revision 219724.
7959 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7960 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7963 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
7964 destination is not a GP reg.
7965 (*movdi_aarch64): Likewise.
7967 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
7970 * config/rs6000/default64.h: Revert ISA change.
7972 2015-01-16 Richard Biener <rguenther@suse.de>
7975 * tree-ssa-uninit.c: Include tree-cfg.h.
7976 (MAX_SWITCH_CASES): New define.
7977 (convert_control_dep_chain_into_preds): Handle switch statements.
7978 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
7979 (normalize_one_pred_1): Do not split bit-manipulations.
7982 2015-01-16 Richard Biener <rguenther@suse.de>
7984 PR tree-optimization/64568
7985 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
7986 complex load rewriting for TARGET_MEM_REFs.
7988 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
7990 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
7992 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
7995 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
7997 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
7998 (aarch64_lra_p): Remove.
8000 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
8003 * ipa-chkp.h (chkp_instrumentable_p): New.
8004 * ipa-chkp.c: Include tree-inline.h.
8005 (chkp_instrumentable_p): New.
8006 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
8007 Fix processing of not instrumentable functions.
8008 (chkp_versioning): Use chkp_instrumentable_p. Warn about
8009 not instrumentable functions.
8010 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
8011 chkp_instrumentable_p.
8012 * tree-inline.h (copy_forbidden): New.
8013 * tree-inline.c (copy_forbidden): Not static anymore.
8015 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8017 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
8020 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
8022 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
8023 type OP_OUT to OP_INOUT.
8025 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
8027 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
8028 (high x) y) to y if x and y have the same base.
8030 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
8032 * config/arm/cortex-a57.md: New.
8033 * config/aarch64/aarch64.md: Include it.
8034 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
8035 * config/aarch64/aarch64-tune.md: Regenerate.
8037 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
8040 * ccmp.c (expand_ccmp_next): New function.
8041 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
8042 and compare insn sequence.
8043 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
8044 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
8045 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
8046 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
8047 (*ccmp_ior): Changed to ccmp_ior<mode>.
8048 (cmp<mode>): New pattern.
8049 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
8051 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
8053 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
8055 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
8056 _mm256_bsrli_epi128): New.
8057 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
8059 2015-01-15 Jiong Wang <jiong.wang@arm.com>
8061 * expmed.c (store_bit_field_using_insv): Improve warning message.
8062 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
8064 2015-01-15 Jiong Wang <jiong.wang@arm.com>
8066 PR rtl-optimization/64011
8067 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
8068 there is partial overflow.
8070 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8072 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
8074 (nds32_expand_epilogue_v3pop): Likewise.
8075 * config/nds32/nds32.md (sibcall): Define this for sibling call
8077 (sibcall_register): Likewise.
8078 (sibcall_immediate): Likewise.
8079 (sibcall_value): Likewise.
8080 (sibcall_value_register): Likewise.
8081 (sibcall_value_immediate): Likewise.
8082 (sibcall_epilogue): Likewise.
8083 (epilogue): Pass false to indicate this is not a sibcall epilogue.
8084 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
8085 (nds32_expand_epilogue_v3pop): Likewise.
8087 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8089 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
8090 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
8091 (return_internal): New.
8092 (return): Define this named pattern.
8093 (simple_return): Define this named pattern.
8094 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
8095 pattern instead of unspec_volatile_func_return.
8096 (nds32_expand_epilogue_v3pop): Likewise.
8097 (nds32_can_use_return_insn): New function.
8099 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8101 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
8102 * config/nds32/nds32.md (pop25return): New.
8103 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
8104 pop25return pattern.
8106 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8108 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
8109 -mforbid-fp-as-gp, and -mex9 options.
8111 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
8113 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
8114 remove -mgp-direct option.
8116 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8118 * doc/invoke.texi (--param early-inlining-insns): Update default value.
8119 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
8121 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8123 * ipa-inline.c (inline_small_functions): Work around hints
8126 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
8129 * doc/invoke.texi (Option Summary): Document new Nios II
8131 (Nios II Options): Likewise.
8132 * config/nios2/nios2.opt: Add -mgpopt= option support.
8133 Modify existing -mgpopt and -mno-gpopt options to be aliases.
8134 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
8135 * config/nios2/nios2.c (nios2_option_override): Adjust
8137 (nios2_in_small_data_p): Return true for explicit small data
8138 sections even with -G0.
8139 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
8142 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8145 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
8147 (inline_call): Fix removal of aliases.
8149 2015-01-15 Jakub Jelinek <jakub@redhat.com>
8151 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
8152 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
8153 * opts.c (common_handle_option): Add -fsanitize=vptr.
8154 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
8155 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
8156 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
8157 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
8158 (ubsan_expand_vptr_ifn): New prototype.
8159 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
8160 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
8161 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
8162 expand_LOOP_VECTORIZED): Make argument nameless, remove
8164 (expand_UBSAN_VPTR): New function.
8165 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
8167 (UBSAN_VPTR): New internal function.
8168 * sanopt.c (tree_map_traits): Renamed to ...
8169 (sanopt_tree_map_traits): ... this.
8170 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
8171 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
8172 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
8173 (maybe_optimize_ubsan_vptr_ifn): New function.
8174 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
8175 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
8177 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
8178 internal calls like pure functions for aliasing, even when they
8179 have other side-effects that prevent making them ECF_PURE.
8180 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
8181 (ubsan_expand_vptr_ifn): New function.
8183 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
8185 PR rtl-optimization/64110
8186 * stmt.c (parse_output_constraint): Process '^' and '$'.
8187 (parse_input_constraint): Ditto.
8188 * lra-constraints.c (process_alt_operands): Process the new
8190 * ira-costs.c (record_reg_classes): Process the new constraint
8192 * genoutput.c (indep_constraints): Add '^' and '$'.
8193 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
8194 * doc/md.texi: Add description of the new constraints.
8196 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8197 Bernd Schmidt <bernds@codesourcery.com>
8198 Cesar Philippidis <cesar@codesourcery.com>
8199 James Norris <jnorris@codesourcery.com>
8200 Tom de Vries <tom@codesourcery.com>
8201 Ilmir Usmanov <i.usmanov@samsung.com>
8202 Dmitry Bocharnikov <dmitry.b@samsung.com>
8203 Evgeny Gavrin <e.gavrin@samsung.com>
8204 Jakub Jelinek <jakub@redhat.com>
8206 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
8207 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8208 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8210 * builtins.c: Include "gomp-constants.h".
8211 (expand_builtin_acc_on_device): New function.
8212 (expand_builtin, is_inexpensive_builtin): Handle
8213 BUILT_IN_ACC_ON_DEVICE.
8214 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
8216 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
8218 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
8219 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
8220 i386/intelmic-offload.h.
8221 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
8222 to libgomp and its dependencies.
8223 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
8224 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8225 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8226 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8227 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8228 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8229 * doc/generic.texi: Update for OpenACC changes.
8230 * doc/gimple.texi: Likewise.
8231 * doc/invoke.texi: Likewise.
8232 * doc/sourcebuild.texi: Likewise.
8233 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8234 GF_OMP_FOR_KIND_OACC_LOOP.
8235 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
8236 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
8237 GF_OMP_TARGET_KIND_OACC_UPDATE,
8238 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8240 * gimple.c: Update comments for OpenACC changes.
8241 * gimple.def: Likewise.
8242 * gimple.h: Likewise.
8243 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
8244 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8245 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
8246 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8247 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
8249 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
8250 * gimplify.c: Include "gomp-constants.h".
8251 Update comments for OpenACC changes.
8252 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
8253 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
8254 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8255 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8256 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8257 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8258 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
8259 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8260 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
8262 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
8263 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
8264 OMP_CLAUSE_SET_MAP_KIND.
8265 (gimplify_oacc_cache): New function.
8266 (gimplify_omp_for): Handle OACC_LOOP.
8267 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
8269 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
8270 OACC_EXIT_DATA, OACC_UPDATE.
8271 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
8272 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
8273 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
8274 (gimplify_body): Consider flag_openacc next to flag_openmp.
8275 * lto-streamer-out.c: Include "gomp-constants.h".
8276 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
8277 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
8278 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
8279 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
8280 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
8281 (BUILT_IN_ACC_ON_DEVICE): New builtins.
8282 * omp-low.c: Include "gomp-constants.h".
8283 Update comments for OpenACC changes.
8284 (struct omp_context): Add reduction_map, gwv_below, gwv_this
8286 (extract_omp_for_data, use_pointer_for_field, install_var_field)
8287 (new_omp_context, delete_omp_context, scan_sharing_clauses)
8288 (create_omp_child_function, scan_omp_for, scan_omp_target)
8289 (check_omp_nesting_restrictions, lower_reduction_clauses)
8290 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
8291 Update for OpenACC changes.
8292 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
8293 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
8294 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
8295 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8296 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
8297 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
8299 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8300 Handle GF_OMP_FOR_KIND_OACC_LOOP.
8301 (expand_omp_target, lower_omp_target): Handle
8302 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8303 GF_OMP_TARGET_KIND_OACC_UPDATE,
8304 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
8305 GF_OMP_TARGET_KIND_OACC_DATA.
8306 (pass_expand_omp::execute, execute_lower_omp)
8307 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
8309 (offload_symbol_decl): New variable.
8310 (oacc_get_reduction_array_id, oacc_max_threads)
8311 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
8312 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
8313 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
8314 (oacc_gimple_assign, oacc_initialize_reduction_data)
8315 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
8317 (is_targetreg_ctx): Remove function.
8318 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
8319 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
8320 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8321 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
8322 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
8323 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
8324 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
8325 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
8326 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
8327 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
8328 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
8329 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
8330 * tree-core.h: Update comments for OpenACC changes.
8331 (enum omp_clause_map_kind): Remove.
8332 (struct tree_omp_clause): Change type of map_kind member from enum
8333 omp_clause_map_kind to unsigned char.
8334 * tree-inline.c: Update comments for OpenACC changes.
8335 * tree-nested.c: Likewise. Include "gomp-constants.h".
8336 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
8337 (convert_tramp_reference_stmt, convert_gimple_call): Update for
8338 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
8339 OMP_CLAUSE_SET_MAP_KIND.
8340 * tree-pretty-print.c: Include "gomp-constants.h".
8341 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
8342 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
8343 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
8344 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
8345 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8346 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
8347 instead of OMP_CLAUSE_MAP_*.
8348 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
8349 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
8350 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8351 * tree-streamer-in.c: Include "gomp-constants.h".
8352 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
8353 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
8354 * tree-streamer-out.c: Include "gomp-constants.h".
8355 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
8357 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
8358 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
8359 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
8360 * tree.c (omp_clause_num_ops): Update accordingly.
8361 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
8363 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
8364 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
8365 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
8366 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
8367 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
8368 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
8369 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
8370 (OMP_CLAUSE_SET_MAP_KIND): New macro.
8371 * varpool.c (varpool_node::get_create): Consider flag_openacc next
8373 * config/i386/intelmic-offload.h: New file.
8374 * config/nvptx/offload.h: Likewise.
8376 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8378 * explow.h: Remove duplicate contents.
8379 * dojump.h: Likewise.
8381 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
8383 * arm.c (arm_xgene_tune): Add default initializer for instruction
8386 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
8390 * ipa.c (symbol_table::remove_unreachable_nodes):
8391 Do not put abstract origins into boundary.
8393 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
8395 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
8396 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
8398 2015-01-15 Steve Ellcey <sellcey@mips.com>
8400 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
8401 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
8402 builtins.def, and chkp-builtins.def.
8404 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
8406 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
8409 2015-01-15 Richard Biener <rguenther@suse.de>
8411 PR tree-optimization/61743
8412 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
8413 information on PHIs for some simple cases.
8415 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8417 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
8419 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
8420 * config/arm/arm-cores.def (xgene1): New entry.
8421 * config/arm/arm-tables.opt: Regenerate.
8422 * config/arm/arm-tune.md: Regenerate.
8423 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
8425 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
8427 * tree-if-conv.c: Include hash-map.h.
8428 (aggressive_if_conv): New variable.
8429 (fold_build_cond_expr): Add simplification of non-zero condition.
8430 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
8431 destination block is not always executed.
8432 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
8433 than two predecessors if AGGRESSIVE_IF_CONV is true.
8434 (if_convertible_stmt_p): Fix commentary.
8435 (all_preds_critical_p): New function.
8436 (has_pred_critical_p): New function.
8437 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
8438 BB can have more than two predecessors and all incoming edges can be
8440 (predicate_bbs): Skip predication for loop exit block, use build2_loc
8441 to compute predicate for true edge.
8442 (find_phi_replacement_condition): Delete this function.
8443 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
8444 Allow interchange PHI arguments if EXTENDED is false.
8445 Change check that block containing reduction statement candidate
8446 is predecessor of phi-block since phi may have more than two arguments.
8447 (phi_args_hash_traits): New helper structure.
8448 (struct phi_args_hash_traits): New type.
8449 (phi_args_hash_traits::hash): New function.
8450 (phi_args_hash_traits::equal_keys): New function.
8451 (gen_phi_arg_condition): New function.
8452 (predicate_scalar_phi): Add handling of phi nodes with more than two
8453 arguments, delete COND and TRUE_BB arguments, insert body of
8454 find_phi_replacement_condition to predicate ordinary phi nodes.
8455 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
8456 delete call of find_phi_replacement_condition and invoke
8457 predicate_scalar_phi with two arguments.
8458 (insert_gimplified_predicates): Add assert that non-predicated block
8459 don't have statements to insert.
8460 (ifcvt_split_critical_edges): New function.
8461 (ifcvt_split_def_stmt): Likewise.
8462 (ifcvt_walk_pattern_tree): Likewise.
8463 (stmt_is_root_of_bool_pattern): Likewise.
8464 (ifcvt_repair_bool_pattern): Likewise.
8465 (ifcvt_local_dce): Likewise.
8466 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
8467 is copy of inner or outer loop force_vectorize field, invoke
8468 ifcvt_split_critical_edges, ifcvt_local_dce and
8469 ifcvt_repair_bool_pattern for aggressive if-conversion.
8471 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
8473 * config/aarch64/aarch64.md: Include xgene1.md.
8474 * config/aarch64/xgene1.md: New file.
8476 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8478 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
8479 xgene1 (APM XGene-1) core definition.
8480 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
8481 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
8482 * doc/invoke.texi: Document -mcpu=xgene1.
8484 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8486 * dojump.h: New header file.
8487 * explow.h: Likewise.
8488 * expr.h: Remove includes.
8489 Move expmed.c prototypes to expmed.h.
8490 Move dojump.c prototypes to dojump.h.
8491 Move alias.c prototypes to alias.h.
8492 Move explow.c prototypes to explow.h.
8493 Move calls.c prototypes to calls.h.
8494 Move emit-rtl.c prototypes to emit-rtl.h.
8495 Move varasm.c prototypes to varasm.h.
8496 Move stmt.c prototypes to stmt.h.
8497 (saved_pending_stack_adjust): Move to dojump.h.
8498 (adjust_address): Move to explow.h.
8499 (adjust_address_nv): Move to emit-rtl.h.
8500 (adjust_bitfield_address): Likewise.
8501 (adjust_bitfield_address_size): Likewise.
8502 (adjust_bitfield_address_nv): Likewise.
8503 (adjust_automodify_address_nv): Likewise.
8504 * explow.c (expr_size): Move to expr.c.
8505 (int_expr_size): Likewise.
8506 (tree_expr_size): Likewise.
8507 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8508 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8509 * genemit.c (main): Generate includes statistics.h, real.h,
8510 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
8512 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
8513 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
8514 explow.h, emit-rtl.h, stmt.h.
8515 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
8516 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
8517 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
8518 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
8519 emit-rtl.h, varasm.h, stmt.h.
8520 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
8521 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
8522 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
8523 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
8524 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
8525 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
8526 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
8527 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
8528 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
8529 tm.h tree.h varasm.h vec.h wide-int.h.
8530 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8531 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8532 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
8533 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
8534 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
8535 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
8536 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
8537 * loop-iv.c: Likewise.
8538 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
8539 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
8540 statistics.h stmt.h tree.h varasm.h wide-int.h.
8541 * lra-constraints.c: Likewise.
8542 * lra-eliminations.c: Likewise.
8543 * lra-lives.c: Likewise.
8544 * lra-remat.c: Likewise.
8545 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8546 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
8547 statistics.h stmt.h tree.h varasm.h wide-int.h.
8548 * hw-doloop.c: Likewise.
8549 * ira-color.c: Likewise.
8550 * ira-emit.c: Likewise.
8551 * loop-doloop.c: Likewise.
8552 * loop-invariant.c: Likewise.
8553 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8554 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
8555 statistics.h stmt.h tree.h varasm.h wide-int.h.
8556 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
8557 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
8558 statistics.h stmt.h tree.h varasm.h wide-int.h.
8559 * combine-stack-adj.c: Likewise.
8562 * ifcvt.c: Likewise.
8563 * ira-costs.c: Likewise.
8565 * lra-coalesce.c: Likewise.
8566 * lra-spills.c: Likewise.
8567 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8568 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
8569 stmt.h varasm.h wide-int.h.
8570 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8571 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8573 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
8574 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
8575 statistics.h stmt.h varasm.h wide-int.h.
8576 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
8577 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
8578 varasm.h wide-int.h.
8579 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
8580 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8581 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
8582 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
8583 statistics.h stmt.h.
8584 * config/tilepro/tilepro.c: Likewise.
8585 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
8586 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
8587 * config/pdp11/pdp11.c: Likewise.
8588 * config/xtensa/xtensa.c: Likewise.
8589 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
8590 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8592 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8593 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8594 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
8595 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8596 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8597 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
8598 * rtl-chkp.c: Likewise.
8599 * tree-chkp-opt.c: Likewise.
8600 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
8601 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8602 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
8603 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8604 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8605 statistics.h stmt.h.
8606 * tree-vect-data-refs.c: Likewise.
8607 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
8608 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8609 rtl.h statistics.h stmt.h varasm.h.
8610 * internal-fn.c: Likewise.
8611 * ipa-icf-gimple.c: Likewise.
8612 * lto-section-out.c: Likewise.
8613 * tree-data-ref.c: Likewise.
8614 * tree-nested.c: Likewise.
8615 * tree-outof-ssa.c: Likewise.
8616 * tree-predcom.c: Likewise.
8617 * tree-pretty-print.c: Likewise.
8618 * tree-scalar-evolution.c: Likewise.
8619 * tree-ssa-strlen.c: Likewise.
8620 * tree-vect-loop.c: Likewise.
8621 * tree-vect-patterns.c: Likewise.
8622 * tree-vect-slp.c: Likewise.
8623 * tree-vect-stmts.c: Likewise.
8625 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8626 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
8628 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
8629 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8630 statistics.h stmt.h varasm.h.
8631 * loop-unroll.c: Likewise.
8632 * ubsan.c: Likewise.
8633 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
8634 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
8636 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8637 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
8638 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
8639 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8640 statistics.h stmt.h.
8641 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
8642 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8643 statistics.h stmt.h varasm.h.
8644 * gimple-match-head.c: Likewise.
8645 * lto-cgraph.c: Likewise.
8646 * lto-section-in.c: Likewise.
8647 * lto-streamer-in.c: Likewise.
8648 * lto-streamer-out.c: Likewise.
8649 * tree-affine.c: Likewise.
8650 * tree-cfg.c: Likewise.
8651 * tree-cfgcleanup.c: Likewise.
8652 * tree-if-conv.c: Likewise.
8653 * tree-into-ssa.c: Likewise.
8654 * tree-ssa-alias.c: Likewise.
8655 * tree-ssa-copyrename.c: Likewise.
8656 * tree-ssa-dse.c: Likewise.
8657 * tree-ssa-forwprop.c: Likewise.
8658 * tree-ssa-live.c: Likewise.
8659 * tree-ssa-math-opts.c: Likewise.
8660 * tree-ssa-pre.c: Likewise.
8661 * tree-ssa-sccvn.c: Likewise.
8662 * tree-tailcall.c: Likewise.
8663 * tree-vect-generic.c: Likewise.
8664 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8665 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
8666 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8667 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
8668 * varasm.c: Likewise.
8669 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8670 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
8672 * init-regs.c: Likewise.
8674 * omp-low.c: Likewise.
8675 * stack-ptr-mod.c: Likewise.
8676 * tree-ssa-reassoc.c: Likewise.
8677 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8678 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
8680 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8681 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
8682 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8683 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
8684 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8685 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
8686 * tree-ssa-phiopt.c: Likewise.
8687 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8688 fixed-value.h hashtab.h real.h statistics.h stmt.h.
8689 * config/fr30/fr30.c: Likewise.
8690 * config/frv/frv.c: Likewise.
8692 * final.c: Likewise.
8693 * optabs.c: Likewise.
8694 * passes.c: Likewise.
8695 * simplify-rtx.c: Likewise.
8697 * toplev.c: Likewise.
8698 * var-tracking.c: Likewise.
8699 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8700 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8701 * lower-subreg.c: Likewise.
8702 * postreload-gcse.c: Likewise.
8704 * reginfo.c: Likewise.
8705 * store-motion.c: Likewise.
8706 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8707 fixed-value.h hashtab.h real.h stmt.h varasm.h.
8708 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8709 fixed-value.h hashtab.h statistics.h stmt.h.
8710 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8711 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8712 * except.c: Likewise.
8713 * explow.c: Likewise.
8714 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8715 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
8717 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8718 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
8719 * tree-ssa-structalias.c: Likewise.
8720 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8721 fixed-value.h insn-config.h real.h statistics.h.
8722 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8723 fixed-value.h insn-config.h real.h statistics.h stmt.h.
8724 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8725 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8726 * cfgbuild.c: Likewise.
8727 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8728 fixed-value.h real.h rtl.h statistics.h stmt.h.
8729 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8730 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8731 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8732 fixed-value.h real.h statistics.h stmt.h.
8733 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8734 fixed-value.h real.h statistics.h stmt.h varasm.h.
8735 * cprop.c: Likewise.
8736 * modulo-sched.c: Likewise.
8737 * postreload.c: Likewise.
8738 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8739 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
8740 statistics.h stmt.h varasm.h.
8741 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
8742 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8743 rtl.h statistics.h stmt.h varasm.h.
8744 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
8745 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
8747 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8748 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
8750 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
8751 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
8753 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
8754 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8755 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8756 function.h real.h statistics.h stmt.h varasm.h.
8757 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8758 insn-config.h real.h statistics.h stmt.h.
8759 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8760 statistics.h stmt.h.
8761 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
8762 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
8763 statistics.h stmt.h varasm.h.
8764 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
8765 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
8766 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8767 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
8768 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
8769 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8770 statistics.h stmt.h varasm.h.
8771 * ipa-polymorphic-call.c: Likewise.
8772 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
8773 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8774 statistics.h stmt.h.
8775 * config/c6x/c6x.c: Likewise.
8776 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
8777 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8778 statistics.h stmt.h varasm.h.
8779 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
8780 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
8782 * ipa-split.c: Likewise.
8783 * tree-eh.c: Likewise.
8784 * tree-ssa-dce.c: Likewise.
8785 * tree-ssa-loop-niter.c: Likewise.
8786 * tree-vrp.c: Likewise.
8787 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
8788 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
8790 * config/nds32/nds32-fp-as-gp.c: Likewise.
8791 * config/nds32/nds32-intrinsic.c: Likewise.
8792 * config/nds32/nds32-isr.c: Likewise.
8793 * config/nds32/nds32-md-auxiliary.c: Likewise.
8794 * config/nds32/nds32-memory-manipulation.c: Likewise.
8795 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8796 * config/nds32/nds32-predicates.c: Likewise.
8797 * config/nds32/nds32.c: Likewise.
8798 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
8799 fixed-value.h hashtab.h real.h statistics.h.
8800 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
8801 fixed-value.h hashtab.h real.h statistics.h stmt.h.
8802 * config/arm/arm.c: Likewise.
8803 * config/avr/avr.c: Likewise.
8804 * config/bfin/bfin.c: Likewise.
8805 * config/h8300/h8300.c: Likewise.
8806 * config/i386/i386.c: Likewise.
8807 * config/ia64/ia64.c: Likewise.
8808 * config/iq2000/iq2000.c: Likewise.
8809 * config/m32c/m32c.c: Likewise.
8810 * config/m32r/m32r.c: Likewise.
8811 * config/m68k/m68k.c: Likewise.
8812 * config/mcore/mcore.c: Likewise.
8813 * config/mep/mep.c: Likewise.
8814 * config/mips/mips.c: Likewise.
8815 * config/mn10300/mn10300.c: Likewise.
8816 * config/moxie/moxie.c: Likewise.
8817 * config/pa/pa.c: Likewise.
8818 * config/rl78/rl78.c: Likewise.
8819 * config/rx/rx.c: Likewise.
8820 * config/s390/s390.c: Likewise.
8821 * config/sh/sh.c: Likewise.
8822 * config/sparc/sparc.c: Likewise.
8823 * config/spu/spu.c: Likewise.
8824 * config/stormy16/stormy16.c: Likewise.
8825 * config/v850/v850.c: Likewise.
8826 * config/vax/vax.c: Likewise.
8827 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
8828 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8829 * config/msp430/msp430.c: Likewise.
8830 * predict.c: Likewise.
8831 * value-prof.c: Likewise.
8832 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
8833 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
8834 * config/microblaze/microblaze.c: Likewise.
8835 * config/nios2/nios2.c: Likewise.
8836 * config/rs6000/rs6000.c: Likewise.
8837 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8838 insn-config.h real.h rtl.h statistics.h stmt.h.
8839 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8840 insn-config.h real.h statistics.h stmt.h.
8841 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
8842 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8843 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
8844 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8845 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
8846 fixed-value.h real.h statistics.h stmt.h.
8847 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
8848 fixed-value.h statistics.h stmt.h.
8849 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
8852 2015-01-15 Jakub Jelinek <jakub@redhat.com>
8854 * gengtype.c (create_user_defined_type): Workaround
8855 -Wmaybe-uninitialized false positives.
8856 * cse.c (fold_rtx): Likewise.
8857 * loop-invariant.c (gain_for_invariant): Likewise.
8859 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
8861 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
8862 set the memory attributes in all cases but clear MEM_EXPR if need be.
8864 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
8866 PR tree-optimization/64434
8867 * cfgexpand.c (reorder_operands): New function.
8868 (expand_gimple_basic_block): Insert call of reorder_operands if
8871 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
8873 * config/mips/micromips.md (*swp): Remove explicit parallel.
8874 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
8875 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
8876 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
8877 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
8878 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
8879 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
8880 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
8881 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
8882 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
8883 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
8884 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
8885 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
8886 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
8887 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
8888 (mips_wrdsp): Likewise.
8889 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
8891 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
8892 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
8893 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
8894 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
8895 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
8896 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
8897 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
8898 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
8899 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
8901 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
8903 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
8904 (mips_print_operand): Support 'y' to print exact log2 in decimal
8906 * config/mips/mips.h (ISA_HAS_LSA): New define.
8907 (ISA_HAS_DLSA): Likewise.
8908 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
8909 * config/mips/predicates.md (const_immlsa_operand): New predicate.
8911 2015-01-15 Martin Liska <mliska@suse.cz>
8914 * optc-save-gen.awk: Add support for array types.
8916 2015-01-15 Richard Biener <rguenther@suse.de>
8919 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
8920 for MEM_REF access functions with the same base can never partially
8923 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
8925 * common.opt: New option -fstack-protector-explicit.
8926 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
8927 (stack_protect_decl_phase): Handle stack_protect attribute for
8928 explicit stack protection requests.
8929 (expand_used_vars): Similarly.
8930 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
8931 * doc/extend.texi: Add documentation for "stack_protect" attribute.
8932 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
8934 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
8937 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
8939 (sh_extending_set_of_reg): New struct.
8940 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
8941 sh_remove_reg_dead_or_unused_notes): New Declarations.
8942 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
8943 sh_find_extending_set_of_reg, sh_split_tst_subregs,
8944 sh_extending_set_of_reg::use_as_extended_reg): New functions.
8945 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
8946 convert to insn_and_split and use new function sh_split_tst_subregs.
8948 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
8950 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
8952 (Optimization Options): Move -fuse-ld documentation to...
8953 (Link Options): ...here.
8955 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
8957 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
8959 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
8960 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
8961 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
8962 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
8963 instead of ZR for the memory operand of LL/SC.
8964 (compare_and_swap_12, sync_add<mode>): Likewise.
8965 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
8966 (sync_new_<optab>_12, sync_nand_12): Likewise.
8967 (sync_old_nand_12, sync_new_nand_12): Likewise.
8968 (sync_sub<mode>, sync_old_add<mode>): Likewise.
8969 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
8970 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
8971 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
8972 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
8973 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
8974 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
8975 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
8976 * doc/md.texi (ZC): Update description.
8978 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
8980 * builtins.c (expand_builtin_atomic_exchange): Remove error when
8981 memory model is CONSUME.
8982 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
8983 expand_builtin_atomic_store): Change invalid memory model errors to
8985 (expand_builtin_atomic_clear): Change invalid model errors to warnings
8986 and issue warning for CONSUME.
8988 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
8990 * lto-cgraph: Update function comments for
8991 lto_symtab_encoder_encode_*.
8993 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
8995 * Makefile.in (site.exp): Do not set ENABLE_LTO.
8997 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
8999 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
9000 * lto-cgraph.c (select_what_to_stream): Remove argument, use
9001 lto_stream_offload_p instead.
9002 * lto-streamer.h (select_what_to_stream): Remove argument.
9003 * passes.c (ipa_write_summaries): Likewise.
9004 * tree-pass.h (ipa_write_summaries): Likewise.
9006 2015-01-14 Richard Biener <rguenther@suse.de>
9008 PR tree-optimization/59354
9009 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
9010 groups larger than the slp group size as having gaps.
9012 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
9015 * builtins.c (get_memmodel): Promote consume to acquire always.
9017 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9020 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
9023 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9026 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
9028 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
9029 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
9030 AVX512VBMI, as it implies AVX512BW.
9032 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
9035 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
9036 (vec_unpacks_hi_v16sf): Ditto.
9038 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9040 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
9043 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9045 * doc/invoke.texi (mapcs): Mention deprecation.
9046 (mapcs-frame): Likewise.
9048 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9051 * config/arm/arm.c (callee_saved_reg_p): Define.
9052 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
9053 register is callee saved instead of !call_used_regs[reg].
9054 (thumb1_compute_save_reg_mask): Likewise.
9056 2015-01-14 Hale Wang <hale.wang@arm.com>
9058 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
9061 2015-01-14 Richard Biener <rguenther@suse.de>
9064 * tree-inline.c (insert_debug_decl_map): Check destination
9065 function MAY_HAVE_DEBUG_STMTS.
9066 (insert_init_debug_bind): Likewise.
9067 (insert_init_stmt): Remove redundant check.
9068 (remap_gimple_stmt): Drop debug stmts if the destination
9069 function has var-tracking assignments disabled.
9071 2015-01-14 Martin Liska <mliska@suse.cz>
9073 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
9074 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
9076 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9079 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
9080 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
9082 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
9084 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
9085 level from an ARCH; do not inject the default.
9086 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
9087 MIPS_ISA_LEVEL_SPEC.
9088 (MIPS_ISA_NAN2008_SPEC): Update comment.
9089 (BASE_DRIVER_SELF_SPECS): Likewise.
9090 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
9091 MIPS_DEFAULT_ISA_LEVEL_SPEC.
9092 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
9093 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
9094 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
9096 2015-01-14 Richard Biener <rguenther@suse.de>
9098 PR tree-optimization/64493
9099 PR tree-optimization/64495
9100 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
9101 assign the proper vectorized PHI to the inner loop exit PHIs.
9103 2015-01-14 Joey Ye <joey.ye@arm.com>
9105 * config/arm/arm.c (arm_compute_save_reg_mask):
9106 Do not save lr in case of tail call.
9107 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
9109 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
9111 * tree-vrp.c (check_array_ref): Emit more warnings
9112 for warn_array_bounds >= 2.
9113 * common.opt: New option -Warray-bounds=.
9114 * doc/invoke.texi: Document -Warray-bounds=.
9116 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
9118 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
9119 (mforbid-fp-as-gp): Remove.
9121 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
9122 (nds32_symbol_load_store_p): Remove.
9123 (nds32_fp_as_gp_check_available): Clean up implementation.
9124 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
9126 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
9127 fp-as-gp and ex9 cases.
9129 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
9131 * tree-profile.c (init_ic_make_global_vars): Drop workaround
9132 for bintuils bug 14342.
9133 (init_ic_make_global_vars): Likewise.
9134 (gimple_init_edge_profiler): Likewise.
9135 (gimple_gen_ic_func_profiler): Likewise.
9137 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9139 * ipa-inline.c (inline_small_functions): Swap the operands in
9142 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
9145 * ipa-inline-analysis.c (node_growth_cache): Remove.
9146 (initialize_growth_caches): Do not initialize it.
9147 (free_growth_caches): Do not free it.
9148 (do_estimate_growth): Rename to ...
9149 (estimate_growth): ... this one; drop growth cache code.
9150 (growth_likely_positive): Always go the heuristics way.
9151 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
9152 (reset_edge_caches): Do not reset node growth.
9153 (heap_edge_removal_hook): Do not maintain cache.
9154 (inline_small_functions): Likewise; strenghten sanity check.
9155 (ipa_inline): Do not maintain caches.
9156 * ipa-inline.h (node_growth_cache): Remove.
9157 (do_estimate_growth): Remove to ...
9158 (estimate_growth): this one; remove inline version.
9159 (reset_node_growth_cache): Remove.
9161 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
9164 * ipa-inline.c (inline_small_functions): Update callee keys after
9165 resolving speculation
9166 (inline_small_functions): Always check monotonicity of the queue.
9168 2015-01-13 Marek Polacek <polacek@redhat.com>
9171 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
9173 2015-01-13 Jakub Jelinek <jakub@redhat.com>
9175 PR rtl-optimization/64286
9176 * ree.c (combine_reaching_defs): Move part of comment earlier,
9177 remove !SCALAR_INT_MODE_P check.
9178 (add_removable_extension): Don't add vector mode
9179 extensions if all uses of the source register aren't the same
9182 2015-01-13 Renlin Li <renlin.li@arm.com>
9184 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
9185 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9187 2015-01-13 Martin Liska <mliska@suse.cz>
9189 * ipa-icf.c (sem_function::equals_private): Call new functions
9190 cl_target_option_print_diff and cl_optimization_print_diff.
9191 * optc-save-gen.awk (cl_target_option_print_diff): New function.
9192 (cl_optimization_print_diff): Likewise.
9193 * opth-gen.awk: Likewise.
9195 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
9197 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
9198 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
9199 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
9200 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
9201 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
9202 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
9204 2015-01-13 Andrew Pinski <apinski@cavium.com>
9206 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
9207 instead of src mode.
9209 2015-01-13 Richard Biener <rguenther@suse.de>
9212 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
9215 2015-01-13 Andrew Pinski <apinski@cavium.com>
9217 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
9219 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9221 2015-01-13 Jakub Jelinek <jakub@redhat.com>
9224 * cfgexpand.c (expand_computed_goto): Don't call
9225 convert_memory_address here.
9227 2015-01-13 Richard Biener <rguenther@suse.de>
9229 PR tree-optimization/64406
9230 * tree-loop-distibution.c (pass_loop_distribution::execute):
9231 Reset the SCEV hashtable if we distributed anything.
9233 2015-01-13 Richard Biener <rguenther@suse.de>
9235 PR tree-optimization/64404
9236 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
9237 SLP types for CSEd loads.
9239 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9241 PR tree-optimization/64436
9242 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
9243 merge of two symbolic numbers for a bitwise OR to ...
9244 (perform_symbolic_merge): This. Also fix computation of the range and
9245 end of the symbolic number corresponding to the result of a bitwise OR.
9247 2015-01-13 Richard Biener <rguenther@suse.de>
9249 PR tree-optimization/64568
9250 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
9251 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
9253 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9255 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
9256 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
9258 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9260 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
9261 target-specific symbol_ref flag.
9262 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
9263 resides in rodata section.
9264 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
9265 (nds32_encode_section_info): New function.
9267 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9269 * config/nds32/nds32.md (call): Use pseudo instruction bal which
9270 clobbers TA_REGNUM if large code model is specified.
9271 (call_register): Likewise.
9272 (call_immediate): Likewise.
9273 (call_value): Likewise.
9274 (call_value_register): Likewise.
9275 (call_value_immediate): Likewise.
9277 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9279 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
9280 (TARGET_CMODEL_MEDIUM): New macro.
9281 (TARGET_CMODEL_LARGE): New macro.
9282 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
9283 code model setting in assembly code.
9285 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9287 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
9288 Remove MASK_GP_DIRECT flag.
9289 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
9290 one of the multilib default options.
9291 * config/nds32/nds32.opt (mgp-direct): Remove.
9292 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
9293 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
9295 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
9297 * config/nds32/nds32.opt (mcmodel): Add new option.
9298 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
9299 to describe code model.
9301 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
9304 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
9306 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
9308 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
9309 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
9310 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
9311 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
9312 __builtin_sh_set_fpscr.
9314 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
9316 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
9317 after a funtion name just to indicate it is a function.
9318 ([-fsanitize-undefined-trap-on-error]): Likewise.
9319 ([-fdbg-cnt=]): Likewise.
9320 ([-mmemcpy]): Likewise.
9321 ([-mflush-func]): Likewise.
9322 ([-msynci]): Likewise.
9324 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
9326 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
9329 2015-01-12 Jakub Jelinek <jakub@redhat.com>
9331 PR tree-optimization/64563
9332 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
9333 instead of != VR_VARYING.
9336 * config/i386/i386.c (ix86_expand_prologue): Add
9337 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
9339 PR tree-optimization/64454
9340 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
9341 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
9342 for signed or [0, op1 - 1] for unsigned modulo.
9343 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9344 even if op1 does not satisfy integer_pow2p.
9347 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
9349 2015-01-12 Jeff Law <law@redhat.com>
9352 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
9353 (trunchiqi2, truncsihi2): Similarly.
9355 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
9356 rather than calling F.
9358 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
9360 * tsan.c (instrument_expr): Use force_gimple_operand.
9361 Use may_be_nonaddressable_p instead of is_gimple_addressable.
9363 2015-01-12 Richard Biener <rguenther@suse.de>
9365 PR tree-optimization/64530
9366 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
9369 2015-01-12 Richard Biener <rguenther@suse.de>
9372 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
9375 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9377 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
9378 Cortex-A17 tuning parameters.
9379 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
9381 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9383 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
9384 * config/arm/arm.c (arm_macro_fusion_p): New function.
9385 (arm_macro_fusion_pair_p): Likewise.
9386 (TARGET_SCHED_MACRO_FUSION_P): Define.
9387 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
9388 (ARM_FUSE_NOTHING): Likewise.
9389 (ARM_FUSE_MOVW_MOVT): Likewise.
9390 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
9391 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
9392 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
9393 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
9394 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
9395 arm_cortex_a5_tune): Specify fuseable_ops value.
9397 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
9400 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
9401 test for PIE with copy reloc.
9402 * configure: Regenerated.
9404 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9406 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
9408 (arm_tls_descseq_addr): Likewise.
9409 (arm_gen_movmemqi): Likewise.
9410 (arm_expand_epilogue_apcs_frame): Likewise.
9411 (arm_expand_epilogue): Likewise.
9412 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
9415 2015-01-12 Martin Liska <mliska@suse.cz>
9418 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
9419 volatility for correct operands.
9421 2015-01-12 Martin Liska <mliska@suse.cz>
9423 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9424 that a function is not leaf.
9425 (sem_function::compare_polymorphic_p): Likewise.
9427 2015-01-12 Martin Liska <mliska@suse.cz>
9429 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9430 that a function is not leaf.
9431 (sem_function::compare_polymorphic_p): Likewise.
9433 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9435 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
9436 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
9437 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
9438 fold-const.h, tree-check.h.
9440 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
9444 * ipa-inline.c (compute_uninlined_call_time,
9445 compute_inlined_call_time): Use counts for extra precision when
9447 (big_speedup_p): Fix formating.
9448 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
9449 (relative_time_benefit): Remove.
9450 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
9451 merge guessed and read profile paths.
9452 (inline_small_functions): Count only !optimize_size functions into
9453 initial size; be more lax about sanity check when profile is used;
9454 be sure to update inlined function profile when profile is read.
9456 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
9459 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
9460 cost when edge becomes direct.
9461 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
9462 is resolved or when introducing new speculation.
9464 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
9468 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
9469 '||' to fix typo issue.
9471 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
9472 accept and return NULL.
9474 2015-01-12 Martin Liska <mliska@suse.cz>
9476 * cgraph.c (cgraph_edge::remove_callee): Move function to header
9477 file for being inlined.
9478 (cgraph_set_edge_callee): Delete.
9479 (cgraph_edge::redirect_callee): Move function to header file
9481 (cgraph_edge::make_direct): Use new function.
9482 (cgraph_edge::dump_edge_flags): New function created from
9483 static dump_edge_flags function.
9484 (cgraph_node::dump): Use new function.
9485 (cgraph_edge::verify_count_and_frequency): New function created
9486 from verify_edge_count_and_frequency.
9487 (cgraph_edge::verify_corresponds_to_fndecl): New function created
9488 from verify_edge_corresponds_to_fndecl.
9489 (verify_edge_corresponds_to_fndecl): Delete.
9490 (cgraph_node::verify_node): Use new function.
9491 * cgraph.h (cgraph_edge::set_callee): New function.
9492 (cgraph_edge::dump_edge_flags): Likewise.
9493 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
9495 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
9497 * ipa-utils.c (estimate_function_body_sizes): Do not
9498 free node params when called late with early=true.
9500 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
9502 * doc/md.texi (Instruction Patterns): Rewrite text for
9504 (Example): Likewise.
9506 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
9508 * doc/invoke.texi (Option Summary): Break long lines.
9509 [(-fdiagnostics-color)]: Put long literal in @smallexample
9511 [(-fsanitize-recover)]: Likewise.
9512 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
9513 [(-ffast-math)]: Likewise.
9514 [(--param max-inline-insns-recursive)]: Likewise.
9515 [(--param max-inline-recursive-depth)]: Likewise.
9516 [(-mno-text-section-literals)]: Likewise.
9518 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
9520 * doc/install.texi: Update for libgomp being renamed from "GNU
9521 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
9523 * doc/sourcebuild.texi: Likewise.
9525 2015-01-10 Anthony Green <green@moxielogic.com>
9527 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
9528 mul.x availability for moxiebox configuration.
9530 2015-01-09 Anthony Green <green@moxielogic.com>
9532 * config/moxie/moxie.md: Tabify assembly output.
9534 2015-01-09 Anthony Green <green@moxielogic.com>
9536 * config/moxie/moxie.md (CC_REG): Correct register definition.
9538 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
9540 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
9541 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
9544 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9546 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
9548 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
9549 Jakub Jelinek <jakub@redhat.com>
9552 * lto-streamer.h (lto_stream_offload_p): New declaration.
9553 * lto-streamer.c (lto_stream_offload_p): New variable.
9554 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
9555 at the same time as section_name_prefix.
9556 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
9557 if lto_stream_offload_p.
9558 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
9559 stream TREE_TARGET_OPTION if lto_stream_offload_p.
9560 (write_ts_function_decl_tree_pointers): Don't
9561 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
9562 * tree-streamer-in.c (unpack_value_fields): Don't stream
9563 TREE_TARGET_OPTION in if ACCEL_COMPILER.
9564 (lto_input_ts_function_decl_tree_pointers): Don't stream
9565 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
9566 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
9567 instead of section_name_prefix string comparisons.
9569 2015-01-09 Jakub Jelinek <jakub@redhat.com>
9571 PR rtl-optimization/64536
9572 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
9575 2015-01-09 Michael Collison <michael.collison@linaro.org>
9577 PR tree-optimization/64322
9578 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
9579 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
9581 2015-01-09 Tom de Vries <tom@codesourcery.com>
9583 PR rtl-optimization/64539
9584 * regcprop.c (kill_clobbered_values): Factor out of ...
9585 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
9586 instead of note_stores with kill_clobbered_value.
9588 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9590 * ginclude/unwind-arm-common.h: Revert previous commit.
9592 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
9594 * config.gcc (arm*-*-freebsd*): New configuration.
9595 * config/arm/freebsd.h: New file.
9596 * config.host: Add extra components for arm*-*-freebsd*.
9597 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
9598 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
9600 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9602 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
9604 * config/rs6000/t-rtems: Add e6500 multilibs.
9606 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9608 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
9611 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9613 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
9614 MULTILIB_EXCEPTIONS.
9616 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9618 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
9619 MULTILIB_EXCEPTIONS.
9621 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9623 * config/arm/t-rtems-eabi: Rename to...
9624 * config/arm/t-rtems: ...this.
9625 * config/arm/rtems-eabi.h: Rename to...
9626 * config/arm/rtems.h: ...this.
9627 * config.gcc (arm*-*-rtems*): Reflect changes above.
9629 2015-01-09 Richard Biener <rguenther@suse.de>
9631 PR tree-optimization/64410
9632 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
9634 (execute_update_addresses_taken): Deal with that.
9635 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
9636 loads/stores for complex variables.
9638 2015-01-09 Martin Liska <mliska@suse.cz>
9640 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
9642 (func_checker::compare_memory_operand): New function.
9643 (func_checker::compare_operand): Split case to newly
9645 (func_checker::compare_cst_or_decl): New function.
9646 (func_checker::compare_gimple_call): Identify
9648 (func_checker::compare_gimple_assign): Likewise.
9649 * ipa-icf-gimple.h: New function.
9651 2015-01-09 Martin Liska <mliska@suse.cz>
9654 * sreal.c (sreal::dump): Change unsigned format to signed for
9656 (sreal::to_double): Replace exp2 with scalbln.
9658 2015-01-09 Martin Liska <mliska@suse.cz>
9660 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
9661 * ipa-icf.c (sem_function::equals_private): Add support for target and
9662 (sem_item_optimizer::merge_classes): Remove redundant function
9663 optimization flags comparison.
9664 * tree.h (target_opts_for_fn): New function.
9666 2015-01-09 Tom de Vries <tom@codesourcery.com>
9668 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
9670 2015-01-09 Kito Cheng <kito@0xlab.org>
9672 PR rtl-optimization/64348
9673 * lra-constraints.c (split_reg): Fix caller-save store/restore
9674 instruction generation.
9676 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
9678 PR gcov-profile/61790
9679 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
9680 long long. Fallback to int64_t if host doesn't have long long and
9681 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
9683 2015-01-08 Jakub Jelinek <jakub@redhat.com>
9685 PR tree-optimization/63989
9686 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
9688 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
9689 (get_stridx): If we don't have a record for certain SSA_NAME,
9690 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
9691 constant offset, call get_stridx_plus_constant.
9692 (get_stridx_plus_constant): New function.
9693 (zero_length_string): Don't use get_stridx here.
9697 * dse.c (struct insn_info): Mention frame_read set also
9698 before reload for tail calls on some targets.
9699 (scan_insn): Revert 2014-12-22 change. Set frame_read
9700 also before reload for tail calls if
9701 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
9702 instead of add_non_frame_wild_read for non-const/memset
9703 tail calls after reload.
9705 2015-01-08 Jason Merrill <jason@redhat.com>
9707 * ubsan.c (do_ubsan_in_current_function): New.
9708 (pass_ubsan::gate): Use it.
9709 * ubsan.h: Declare it.
9710 * convert.c (convert_to_integer): Use it.
9712 2015-01-08 Jakub Jelinek <jakub@redhat.com>
9715 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
9716 compare_code when it is unconditionally overwritten afterwards.
9717 Use ix86_reverse_condition instead of reverse_condition. Don't
9718 change code if *reverse_condition* returned UNKNOWN and don't
9719 swap ct/cf and negate diff in that case.
9721 2015-01-08 Mike Stump <mikestump@comcast.net>
9723 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
9724 (pass_tsan_O0::gate): Likewise.
9725 * extend.texi (Function Attributes): Add no_sanitize_thread
9728 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
9730 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
9731 for registering builtins.
9732 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
9733 add -fopenmp to the argv_obstack used when invoking
9736 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
9737 add "-m32" or "-m64" to argv_obstack.
9738 (generate_host_descr_file): Likewise, when invoking host_compiler.
9739 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
9742 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
9744 * config/sh/sh-mem.cc: Use constant as second operand when emitting
9747 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
9750 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
9751 constant load if constant operand fits into I08.
9753 2015-01-08 Jakub Jelinek <jakub@redhat.com>
9756 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
9757 and TREE_THIS_VOLATILE for MEM_REFs.
9758 (build5_stat): Fix up initialization of TREE_READONLY and
9759 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
9761 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
9764 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
9765 of r for the second alternative of the destination operand.
9767 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
9770 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
9772 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
9774 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
9776 ([-fivar-visibility], [-fvisibility]): Likewise.
9778 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
9780 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
9781 the file where @code, @command, etc is more appropriate.
9783 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
9785 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
9786 of -mrecip= documentation.
9788 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9791 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
9792 correct reload handler if -m32 -mpowerpc64 is used.
9794 2015-01-06 Tom de Vries <tom@codesourcery.com>
9796 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
9798 2015-01-08 Christian Bruel <christian.bruel@st.com>
9801 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
9803 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9805 PR tree-optimization/63259
9806 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
9807 if optab exists for 16bit byteswap.
9809 2015-01-06 Jakub Jelinek <jakub@redhat.com>
9811 * opts.c (common_handle_option): Add support for
9812 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
9813 * doc/invoke.texi: Document -fno-sanitize=all,
9814 -f{,no-}sanitize-recover=all. Document that
9815 -fsanitize=float-cast-overflow is not enabled
9816 by -fsanitize=undefined. Fix up documentation
9817 of -f{,no-}sanitize-recover.
9819 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
9821 * config.gcc: Add Visium support.
9822 * configure.ac: Likewise.
9823 * configure: Regenerate.
9824 * doc/extend.texi (interrupt attribute): Add Visium.
9825 * doc/invoke.texi: Document Visium options.
9826 * doc/install.texi: Document Visium target.
9827 * doc/md.texi: Document Visium constraints.
9828 * common/config/visium: New directory.
9829 * config/visium: Likewise.
9831 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
9833 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
9834 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
9836 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
9838 * combine.c (combine_validate_cost): Do not count the cost of a
9839 split I2 twice. Do not display it twice in the dump, either.
9841 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
9843 Revert parts of r219199.
9844 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
9846 ([-Wtraditional]): Restore markup on <limits.h>.
9848 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
9851 * doc/invoke.texi: Document -Wsuggest-override.
9853 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
9855 PR rtl-optimization/64287
9856 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
9857 (process_options): Disable flag_ipa_ra if profiling.
9859 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
9861 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
9863 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
9865 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
9866 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
9867 put under #if TARGET_LOOPS guard.
9869 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
9871 * config/i386/i386.c (output_387_binary_op): Use std::swap.
9873 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
9875 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
9876 * rtl.h (refers_to_regno_p): Add overload.
9878 * bt-load.c: Likewise.
9879 * combine.c: Likewise.
9880 * df-scan.c: Likewise.
9881 * sched-deps.c: Likewise.
9882 * config/s390/s390.c: Likewise.
9883 * config/m32r/m32r.c: Likewise.
9884 * config/rs6000/spe.md: Likewise.
9885 * config/rs6000/rs6000.c: Likewise.
9886 * config/pa/pa.c: Likewise.
9887 * config/stormy16/stormy16.c: Likewise.
9888 * config/cris/cris.c: Likewise.
9889 * config/arc/arc.md: Likewise.
9890 * config/arc/arc.c: Likewise.
9891 * config/sh/sh.md: Likewise.
9892 * config/sh/sh.c: Likewise.
9893 * config/frv/frv.c: Likewise.
9895 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9898 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
9899 call as cleanup of the whole body.
9900 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
9901 * tsan.c (replace_func_exit): New function.
9902 (instrument_func_exit): Moved earlier.
9903 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
9904 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
9906 (tsan_pass): Don't call instrument_func_exit.
9907 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
9908 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
9912 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
9913 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
9914 it to libubsan handler instead of EXPR. Fold comparisons earlier,
9915 if the result is integer_zerop, return NULL_TREE.
9916 * convert.c (convert_to_integer): Pass expr as ARG.
9918 PR tree-optimization/64465
9919 * tree-inline.c (redirect_all_calls): During inlining
9920 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
9921 changed the stmt to a non-throwing call.
9923 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
9925 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
9926 etc markup throughout the file.
9928 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
9930 Enable experimental TSAN support for Ada.
9931 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
9933 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9935 PR tree-optimization/64494
9936 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
9937 clear SSA_NAME_ANTI_RANGE_P flag.
9939 2015-01-05 Marek Polacek <polacek@redhat.com>
9941 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
9943 2015-01-05 Jakub Jelinek <jakub@redhat.com>
9945 Update copyright years.
9947 * gcc.c (process_command): Update copyright notice dates.
9948 * gcov-dump.c: Ditto.
9950 * doc/cpp.texi: Bump @copying's copyright year.
9951 * doc/cppinternals.texi: Ditto.
9952 * doc/gcc.texi: Ditto.
9953 * doc/gccint.texi: Ditto.
9954 * doc/gcov.texi: Ditto.
9955 * doc/install.texi: Ditto.
9956 * doc/invoke.texi: Ditto.
9958 * auto-profile.c, auto-profile.h: Fix up Copyright line.
9960 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
9962 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
9964 ([-fvtable-verify], [-fvtv-debug]): Likewise.
9965 ([-Wabi]): Likewise.
9966 ([-fmessage-length]): Likewise.
9967 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
9968 ([-Wno-discarded-qualifiers]): Likewise.
9969 ([-Wnodiscarded-array-qualifiers]): Likewise.
9970 ([-Wno-virtual-move-assign]): Likewise.
9971 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
9972 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
9973 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
9974 ([-fsanitize-undefined-trap-on-error]): Likewise.
9975 ([-floop-interchange]): Likewise.
9976 ([-ftree-coalesce-inlined-vars]): Likewise.
9977 ([-fvect-cost-model]): Likewise.
9978 ([-flto]): Likewise.
9979 ([--param]): Likewise.
9980 (Spec Files): Likewise.
9981 ([-mstrict-align]): Likewise.
9982 ([-mfix-cortex-a53-835769]): Likewise.
9983 ([-march], [-mtune]): Likewise.
9984 ([-mpic-register]): Likewise.
9985 ([-munaligned-access]): Likewise.
9986 ([-msp8]): Likewise.
9987 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
9988 (AVR Built-in Macros): Likewise.
9989 ([-mpreferred-stack-boundary]): Likewise.
9990 ([-mtune-crtl]): Likewise.
9991 ([-mashf]): Likewise.
9992 ([-mmcu=]): Likewise.
9993 ([-minrt]): Likewise.
9994 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
9995 ([-mupper-regs]): Likewise.
9996 ([-matomic-model]): Likewise.
9997 ([-mdiv]): Likewise.
9998 ([-mzdcbranch]): Likewise.
9999 ([-mdisable-callt]): Likewise.
10000 ([-msoft-float]): Likewise.
10001 ([-m8byte-align]): Likewise.
10002 ([-fstack-reuse]): Likewise.
10004 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10006 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
10007 Fix markup, light copy-editing.
10008 ([-fauto-profile]): Rewrite to fix formatting and content
10011 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10013 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
10014 Copy-edit description.
10015 ([-fisolate-erroneous-paths-attribute]): Likewise.
10016 * common.opt (fisolate-erroneous-paths-dereference):
10017 Copy-edit description.
10018 (fisolate-erroneous-paths-attribute): Likewise.
10020 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10022 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
10025 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
10027 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
10028 ([-fvtv-debug]): Likewise.
10029 ([-Wc++-compat]): Likewise.
10030 ([-Wc++11-compat]): Likewise.
10031 ([-Wc++14-compat]): Likewise.
10032 ([-Wno-sized-deallocation]): Likewise.
10033 ([-femit-class-debug-always]): Likewise.
10034 ([-femit-struct-debug-detailed]): Likewise.
10035 ([-fno-keep-inline-dllexport]): Likewise.
10036 ([-fira-algorithm]): Likewise.
10037 ([-fira-region]): Likewise.
10038 ([-flra-remat]): Likewise.
10039 ([-fipa-ra]): Likewise.
10040 ([-fhoist-adjacent-loads]): Likewise.
10041 ([-fisolate-erroneous-paths-dereference]): Likewise.
10042 ([-fisolate-erroneous-paths-attribute]): Likewise.
10043 ([-ftree-switch-conversion]): Likewise.
10044 ([-ftree-tail-merge]): Likewise.
10045 ([-ftree-loop-if-convert]): Likewise.
10046 ([-ftree-loop-if-convert-stores]): Likewise.
10047 ([-ftree-loop-distribution]): Likewise.
10048 ([-ftree-loop-distribute-patterns]): Likewise.
10049 ([-flto-compression-level]): Likewise.
10050 ([-flto-report]): Likewise.
10051 ([-flto-report-wpa]): Likewise.
10052 ([-fuse-linker-plugin]): Likewise.
10053 ([-mfix-cortex-a53-835769]): Likewise.
10054 ([-mno-fix-cortex-a53-835769]): Likewise.
10055 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
10056 explicit listing; add a note to the discussion indicating they
10057 exist. Reorder table to group similar options. Add missing
10058 @opindex entries. Add @need commands throughout the table to
10059 allow it to be split across multiple pages.
10060 ([-m8bit-idiv]): Fix @opindex.
10061 ([-mavx256-split-unaligned-load]): Likewise.
10062 ([-mavx256-split-unaligned-store]): Likewise.
10063 ([-mstack-protector-guard]): Likewise.
10064 ([-mcpu=]): Likewise.
10065 ([-mcpu]): Likewise.
10066 ([-mpointer-size=]): Likewise.
10068 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
10070 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
10071 instead of `m' constraint. Likewise for unnamed movb comparison
10072 patterns using reg_before_reload_operand predicate.
10073 * config/pa/predicates.md (reg_before_reload_operand): Tighten
10074 predicate to reject register index and LO_SUM DLT memory forms
10077 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
10079 * doc/invoke.texi (Option Summary): Fix spelling of
10080 -fdevirtualize-at-ltrans.
10081 ([-fdevirtualize]): Fix markup.
10082 ([-fdevirtualize-speculatively]): Fix typo.
10083 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
10084 implementor-speaky.
10085 * common.opt (fdevirtualize-at-ltrans): Likewise.
10086 * ipa-devirt.c: Fix typos in comments throughout the file.
10087 (ipa_devirt): Fix typos in format strings for dump output.
10089 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
10091 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
10092 discussion of defaults, light copy-editing.
10094 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10096 * tsan.c (instrument_expr): corrected previous checkin.
10098 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10100 Instrument bit field and unaligned accesses for TSAN.
10101 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
10102 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
10103 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
10104 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
10105 unaligned memory regions.
10107 2015-01-01 Anthony Green <green@moxielogic.com>
10109 * config/moxie/predicates.md (moxie_general_movsrc_operand):
10110 Restrict move source register offsets to 16 bits.
10112 Copyright (C) 2015 Free Software Foundation, Inc.
10114 Copying and distribution of this file, with or without modification,
10115 are permitted in any medium without royalty provided the copyright
10116 notice and this notice are preserved.