1 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
3 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
4 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
6 2015-05-20 Jeff Law <law@redhat.com>
8 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
9 dispose of the jump thread path when the jump threading
10 opportunity is cancelled.
12 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
15 when printing the caret character.
17 2015-05-20 Marek Polacek <polacek@redhat.com>
19 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21 2015-05-20 Marek Polacek <polacek@redhat.com>
23 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25 * gimple-fold.c (canonicalize_bool): Likewise.
26 (same_bool_result_p): Likewise.
27 * tree-if-conv.c (parse_predicate): Likewise.
29 2015-05-20 Marek Polacek <polacek@redhat.com>
31 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
32 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
34 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
37 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
40 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
42 * config/mips/mips.h (micromips_globals): Declare.
44 2015-05-20 David Malcolm <dmalcolm@redhat.com>
46 * timevar.def (TV_INITIALIZE_RTL): New.
47 * toplev.c (initialize_rtl): Use an auto_timevar to account this
48 function's time to TV_INITIALIZE_RTL.
50 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
52 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
53 gimple_build_nop calls.
54 (chkp_find_bounds_for_elem): Likewise.
55 (chkp_get_zero_bounds): Likewise.
56 (chkp_get_none_bounds): Likewise.
57 (chkp_get_bounds_by_definition): Likewise.
58 (chkp_generate_extern_var_bounds): Likewise.
59 (chkp_get_bounds_for_decl_addr): Likewise.
60 (chkp_get_bounds_for_string_cst): Likewise.
62 2015-05-20 Bin Cheng <bin.cheng@arm.com>
64 PR tree-optimization/65447
65 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
66 (dump_use, dump_uses): Support to dump sub use.
67 (record_use): New parameters to support sub use. Remove call to
69 (record_sub_use, record_group_use): New functions.
70 (compute_max_addr_offset, split_all_small_groups): New functions.
71 (group_address_uses, rewrite_use_address): New functions.
72 (strip_offset): New declaration.
73 (find_interesting_uses_address): Call record_group_use.
74 (add_candidate): New assertion.
75 (infinite_cost_p): Move definition forward.
76 (add_costs): Check INFTY cost and return immediately.
77 (get_computation_cost_at): Clear setup cost and dependent bitmap
79 (determine_use_iv_cost_address): Compute cost for sub uses.
80 (rewrite_use_address_1): Rename from old rewrite_use_address.
81 (free_loop_data): Free sub uses.
82 (tree_ssa_iv_optimize_loop): Call group_address_uses.
84 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
85 Jim Wilson <jim.wilson@linaro.org>
87 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
88 new fields loadv and storev.
89 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
90 Initialize loadv and storev.
91 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
92 (cortexa53_extra_costs): Likewise.
93 (cortexa57_extra_costs): Likewise.
94 (xgene1_extra_costs): Likewise.
95 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
98 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
100 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
102 (cortexa8_extra_costs): Likewise.
103 (cortexa5_extra_costs): Likewise.
104 (cortexa7_extra_costs): Likewise.
105 (cortexa12_extra_costs): Likewise.
106 (cortexa15_extra_costs): Likewise.
107 (v7m_extra_costs): Likewise.
109 2015-05-20 Jeff Law <law@redhat.com>
111 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
112 instead of open-coded version. Also delete the jump thread created
113 within this function.
115 2015-05-20 Alan Modra <amodra@gmail.com>
117 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
118 stack adjusting insn. Formatting.
119 (rs6000_emit_prologue): Track stack adjusting insn, and use of
120 r12. If possible, emit first -fsplit-stack arg pointer insn
121 before stack adjust. Don't use r12 to save cr if split-stack.
123 2015-05-20 Alan Modra <amodra@gmail.com>
125 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
127 (rs6000_supports_split_stack): New function.
128 * gcc/config/rs6000/rs6000.c (machine_function): Add
129 split_stack_arg_pointer.
130 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
131 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
132 rather than virtual_incoming_args_rtx.
133 (rs6000_va_start): Likewise.
134 (split_stack_arg_pointer_used_p): New function.
135 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
136 (morestack_ref): New var.
137 (gen_add3_const, rs6000_expand_split_stack_prologue,
138 rs6000_internal_arg_pointer, rs6000_live_on_entry,
139 rs6000_split_stack_space_check): New functions.
140 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
141 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
142 (UNSPECV_SPLIT_STACK_RETURN): Define.
143 (split_stack_prologue, load_split_stack_limit,
144 load_split_stack_limit_di, load_split_stack_limit_si,
145 split_stack_return, split_stack_space_check): New expands and insns.
146 * gcc/config/rs6000/rs6000-protos.h
147 (rs6000_expand_split_stack_prologue): Declare.
148 (rs6000_split_stack_space_check): Declare.
150 2015-05-20 Alan Modra <amodra@gmail.com>
152 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
153 (rs6000_stack_info): Don't zero offsets when not saving registers.
154 (debug_stack_info): Adjust to omit printing unused offsets,
156 (direct_return): Test vrsave_size rather than vrsave_mask.
157 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
158 (rs6000_emit_epilogue): Likewise.
160 2015-05-20 Alan Modra <amodra@gmail.com>
162 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
163 when not saving registers.
164 (debug_stack_info): Adjust to omit printing unused offsets,
166 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
169 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
172 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
173 value_type to const char *.
175 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
177 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
178 to build a biarch toolchain again.
180 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
182 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
183 or implicit declarations.
184 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
186 (get_odr_type): Check type has linkage before adding bases.
187 (register_odr_type): Check that type has linkage before adding it.
188 (type_known_to_have_no_deriavations_p): Rename to ..
189 (type_known_to_have_no_derivations_p): This one.
190 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
191 (type_known_to_have_no_derivations_p): This one.
192 * ipa-polymorphic-call.c
193 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
196 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
198 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
199 (layout_type): Use RECORD_OR_UNION_TYPE_P.
201 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
203 * config/s390/s390.c (s390_vector_bool_type_p): New function.
204 (s390_invalid_binary_op): New function.
205 (TARGET_INVALID_BINARY_OP): Define macro.
207 2015-05-19 David Sherwood <david.sherwood@arm.com>
209 * loop-invariant.c (create_new_invariant): Don't calculate address cost
210 if mode is not a scalar integer.
211 (get_inv_cost): Increase computational cost for unused invariants.
213 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
215 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
216 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
217 * config/s390/s390-builtin-types.def: New file.
218 * config/s390/s390-builtins.def: New file.
219 * config/s390/s390-builtins.h: New file.
220 * config/s390/s390-c.c: New file.
221 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
222 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
223 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
224 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
226 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
228 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
229 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
230 variable definitions.
231 (s390_const_operand_ok): New function.
232 (s390_expand_builtin): Rewrite.
233 (s390_init_builtins): New function.
234 (s390_handle_vectorbool_attribute): New function.
235 (s390_attribute_table): Add s390_vector_bool attribute.
236 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
237 (s390_branch_condition_mask): Generate masks for new modes.
238 (s390_expand_vec_compare_cc): New function.
239 (s390_mangle_type): Add mangling for vector bool types.
240 (enum s390_builtin): Remove.
241 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
243 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
244 s390_cpu_cpp_builtins.
245 (REGISTER_TARGET_PRAGMAS): New macro.
246 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
247 (insn_cmp mode attribute): Add new CC modes.
248 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
249 (lcbb): New pattern definition.
250 * config/s390/s390intrin.h: Include vecintrin.h.
251 * config/s390/t-s390: New file.
252 * config/s390/vecintrin.h: New file.
253 * config/s390/vector.md: Include vx-builtins.md.
254 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
257 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
259 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
261 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
262 (s390_select_ccmode): Likewise.
263 (s390_canonicalize_comparison): Swap operands if necessary.
264 (s390_expand_vec_compare_scalar): Expand DFmode compare using
265 single element vector instructions.
266 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
267 (s390_branch_condition_mask): Generate CC masks for the new modes.
268 * config/s390/s390.md (v0, vf, vd): New mode attributes.
269 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
270 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
271 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
272 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
273 (*extend<DSF:mode><BFP:mode>2): New insn definition.
274 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
275 (extend<DSF:mode><BFP:mode>2): Turn into expander.
276 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
277 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
278 (sqrt<mode>2): Add vector instruction.
280 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
282 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
284 * config/s390/predicates.md (const0_operand, constm1_operand)
285 (constable_operand): Accept vector operands.
286 * config/s390/s390-modes.def: Add supported vector modes.
287 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
288 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
289 (s390_bytemask_vector_p, s390_expand_vec_strlen)
290 (s390_expand_vec_compare, s390_expand_vcond)
291 (s390_expand_vec_init): Add prototypes.
292 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
293 (s390_vector_mode_supported_p): New function.
294 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
295 (s390_contiguous_bitmask_vector_p): New function.
296 (s390_bytemask_vector_p): New function.
297 (s390_split_ok_p): Vector regs don't work either.
298 (regclass_map): Add VEC_REGS.
299 (s390_legitimate_constant_p): Handle vector constants.
300 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
301 (legitimate_reload_vector_constant_p): New function.
302 (s390_preferred_reload_class): Handle CONST_VECTOR.
303 (s390_reload_symref_address): Likewise.
304 (s390_secondary_reload): Vector memory instructions only support
305 short displacements. Rename reload*_nonoffmem* to reload*_la*.
306 (s390_emit_ccraw_jump): New function.
307 (s390_expand_vec_strlen): New function.
308 (s390_expand_vec_compare): New function.
309 (s390_expand_vcond): New function.
310 (s390_expand_vec_init): New function.
311 (s390_dwarf_frame_reg_mode): New function.
312 (print_operand): Handle addresses with 'O' and 'R' constraints.
313 (NR_C_MODES, constant_modes): Add vector modes.
314 (s390_output_pool_entry): Handle vector constants.
315 (s390_hard_regno_mode_ok): Handle vector registers.
316 (s390_class_max_nregs): Likewise.
317 (s390_cannot_change_mode_class): New function.
318 (s390_invalid_arg_for_unprototyped_fn): New function.
319 (s390_function_arg_vector): New function.
320 (s390_function_arg_float): Remove size variable.
321 (s390_pass_by_reference): Handle vector arguments.
322 (s390_function_arg_advance): Likewise.
323 (s390_function_arg): Likewise.
324 (s390_return_in_memory): Vector values are returned in a VR if
326 (s390_function_and_libcall_value): Handle vector arguments.
327 (s390_gimplify_va_arg): Likewise.
328 (s390_call_saved_register_used): Consider the arguments named.
329 (s390_conditional_register_usage): Disable v16-v31 for non-vec
331 (s390_preferred_simd_mode): New function.
332 (s390_support_vector_misalignment): New function.
333 (s390_vector_alignment): New function.
334 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
335 (TARGET_VECTOR_MODE_SUPPORTED_P)
336 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
337 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
338 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
339 (TARGET_VECTOR_ALIGNMENT): Define target macro.
340 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
341 (FIRST_PSEUDO_REGISTER): Increase value.
342 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
343 (VECTOR_REG_P): Define macros.
344 (FIXED_REGISTERS, CALL_USED_REGISTERS)
345 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
346 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
347 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
348 Add vector registers.
349 (CANNOT_CHANGE_MODE_CLASS): Call C function.
350 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
351 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
353 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
354 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
355 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
356 (VR*_REGNUM): New constants.
357 (ALL): New mode iterator.
358 (INTALL): Remove mode iterator.
360 (movti): Implement TImode moves for VRs.
361 Disable TImode splitter for VR targets.
362 Implement splitting TImode GPR<->VR moves.
363 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
364 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
365 reload<mode>_la_in, reload<mode>_la_out.
366 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
367 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
368 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
369 (mov<mode> SF SD): Prefer lder, lde for loading.
370 Add lrl and strl instructions.
371 Add vector instructions.
372 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
373 Call s390_expand_vec_strlen on z13.
374 (*cc_to_int): Change predicate to nonimmediate_operand.
375 (addti3): Rename to *addti3. New expander.
376 (subti3): Rename to *subti3. New expander.
377 * config/s390/vector.md: New file.
379 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
381 * common/config/s390/s390-common.c (processor_flags_table): Add
383 * config.gcc: Add z13.
384 * config/s390/s390-opts.h (enum processor_type): Add
386 * config/s390/s390.c (s390_adjust_priority): Check for
388 (s390_reorg): Likewise.
389 (s390_sched_reorder): Likewise.
390 (s390_sched_variable_issue): Likewise.
391 (s390_loop_unroll_adjust): Likewise.
392 (s390_option_override): Likewise. Default to -mvx when available.
393 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
394 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
395 (TARGET_VX_ABI): Define macros.
397 (TARGET_DEFAULT): Add MASK_OPT_VX.
398 * config/s390/s390.md ("cpu" attribute): Add z13.
399 ("cpu_facility" attribute): Add vec.
400 * config/s390/s390.opt (processor_type): Add z13.
402 * doc/invoke.texi: Add z13 option for -march.
404 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
406 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
407 mode check to make sure that only scalar integer values are
410 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
412 * tree.c (verify_type_variant): Fix #undef.
413 (gimple_canonical_types_compatible_p): Move here from lto.c
414 (verify_type): Verify TYPE_CANONICAL compatibility.
415 * tree.h (gimple_canonical_types_compatible_p): Declare.
417 2015-05-19 Jakub Jelinek <jakub@redhat.com>
420 * tree.h (OMP_TEAMS_COMBINED): Define.
421 * gimplify.c (enum gimplify_omp_var_data): Add
422 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
423 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
424 (omp_notice_variable): Accept both ORT_TEAMS
425 and ORT_COMBINED_TEAMS. Don't recurse if
426 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
427 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
429 (omp_no_lastprivate): New function.
430 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
431 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
432 notice_outer and set appropriate bits, otherwise make
433 sure default(none) combined constructs won't complain.
434 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
435 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
436 omp_no_lastprivate either remove the clause or turn it
437 into OMP_CLAUSE_PRIVATE.
438 (gimplify_omp_for): Fix up handling of implicit
439 lastprivate or linear iterators.
440 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
442 * omp-low.c (lower_omp_for_lastprivate): For combined
443 for simd use fd.loop.n2 from the for rather than simd.
445 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
447 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
448 instead of gen_rtx_raw_REG.
449 (cris_expand_epilogue): Likewise.
450 * config/microblaze/microblaze.c (microblaze_classify_address):
452 * config/sparc/sparc.md: Likewise.
454 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
456 * config/alpha/alpha.c (alpha_legitimize_reload_address)
457 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
458 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
459 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
460 Use CASE_CONST_SCALAR_INT.
461 (print_operand) <case 'M'>: Use mode_width_operand to check the
462 value of the constant.
463 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
464 * config/alpha/predicates.md (input_operand): Use general_operand
465 instead of match_code as operand check.
466 (symbolic_operand): Use match_code with subexpression digits.
467 * config/alpha/constraints.md (Q): Ditto.
469 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
471 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
473 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
475 * config/s390/s390.c (s390_secondary_reload): Fix check for
478 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
480 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
481 alternative_mask to uint64_t.
483 2015-05-19 Jakub Jelinek <jakub@redhat.com>
485 PR tree-optimization/66187
486 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
487 Pass TYPE_SIGN to tree_int_cst_min_precision. If
488 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
490 2015-05-19 David Malcolm <dmalcolm@redhat.com>
492 * diagnostic.c (diagnostic_report_current_module): Strengthen
493 local "new_map" from const line_map * to
494 const line_map_ordinary *.
495 * genmatch.c (error_cb): Likewise for local "map".
496 (output_line_directive): Likewise for local "map".
497 * input.c (expand_location_1): Likewise for local "map".
498 Pass NULL rather than &map to
499 linemap_unwind_to_first_non_reserved_loc, since the value is never
500 read from there, and the value written back not read from here.
501 (is_location_from_builtin_token): Strengthen local "map" from
502 const line_map * to const line_map_ordinary *.
503 (dump_location_info): Strengthen locals "map" from
504 line_map *, one to const line_map_ordinary *, the other
505 to const line_map_macro *.
506 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
507 const line_map * to const line_map_macro *.
508 (maybe_unwind_expanded_macro_loc): Add a call to
509 linemap_check_macro when writing to the "map" field of the
511 Introduce local const line_map_ordinary * "ord_map", using it in
512 place of "map" in the part of the function where we know we have
513 an ordinary map. Strengthen local "m" from const line_map * to
514 const line_map_ordinary *.
516 2015-05-19 Nick Clifton <nickc@redhat.com>
519 * config/msp430/msp430.md (zero_extendhisi2): Add support for
520 separate source and destination registers.
522 2015-05-19 Richard Biener <rguenther@suse.de>
524 PR tree-optimization/66165
525 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
526 for no load permutation.
528 PR tree-optimization/66185
529 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
530 when building the SLP node from scalars.
532 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
533 Tristan Gingold <gingold@adacore.com>
535 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
536 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
537 (expand_stack_restore): Call record_new_stack_level.
538 (expand_stack_save): Do not call do_pending_stack_adjust.
539 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
540 * calls.c (expand_call): Call record_new_stack_level for alloca.
541 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
542 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
543 (update_sjlj_context): New global function.
544 * except.h (update_sjlj_context): Declare.
545 * explow.c (record_new_stack_level): New global function.
546 (allocate_dynamic_stack_space): Call record_new_stack_level.
547 * explow.h (record_new_stack_level): Declare.
548 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
549 * cfgrtl.c (duplicate_insn_chain): Likewise.
551 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
553 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
554 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
555 STACK_GROWS_DOWNWARD as normal if.
556 (expand_call): Likewise.
558 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
561 * config/sh/sh.md (*round_int_even): New insn_and_split and
562 accompanying new unnamed split.
564 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
566 * bitmap.c (bitmap_set_range): Handle count==1 specially.
567 (bitmap_clear_range): Likewise.
568 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
569 bitmap_set_range unconditionally.
570 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
571 * df-scan.c (df_mark_reg): Likewise.
572 * haifa-sched.c (setup_ref_regs): Likewise.
573 * sched-rgn.c (update_live_1): Likewise.
575 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
577 * regs.h (END_HARD_REGNO): Delete.
578 (END_REGNO): Move to...
580 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
581 * caller-save.c (mark_set_regs): Likewise.
582 * combine.c (move_deaths, distribute_notes): Likewise.
583 * cse.c (invalidate, invalidate_for_call): Likewise.
584 * df-scan.c (df_ref_record): Likewise.
585 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
586 (record_last_reg_set_info): Likewise.
587 * reg-stack.c (convert_regs_exit): Likewise.
588 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
589 * resource.c (update_live_status): Likewise.
590 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
592 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
594 * rtl.h (reg_info): Add an nregs field.
596 (SET_REGNO_RAW): Delete.
597 (set_regno_raw): New function.
598 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
599 (END_REGNO): Redefine in terms of REG_NREGS.
600 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
602 * emit-rtl.c (set_mode_and_regno): Likewise.
603 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
604 instead of SET_REGNO_RAW.
606 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
608 * rtl.h (PUT_MODE_RAW): New macro.
609 (PUT_REG_NOTE_KIND): Use it.
610 (set_mode_and_regno): Declare.
611 (gen_raw_REG): Change regno to "unsigned int".
612 (gen_rtx_REG): Change "unsigned" to "unsigned int".
613 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
614 use set_mode_and_regno to change the mode of registers.
615 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
616 * emit-rtl.c (set_mode_and_regno): New function.
617 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
618 * caller-save.c (reg_save_code): Use set_mode_and_regno.
619 * expr.c (init_expr_target): Likewise.
620 * ira.c (setup_prohibited_mode_move_regs): Likewise.
621 * postreload.c (reload_cse_simplify_operands): Likewise.
623 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
625 * caller-save.c (init_caller_save): Use word_mode and
626 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
627 * expr.c (init_expr_target): Likewise.
628 * ira.c (setup_prohibited_mode_move_regs): Likewise.
629 * postreload.c (reload_cse_regs_1): Likewise.
631 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
633 * rtl.def (REG): Change format to "r".
634 * rtl.h (rtunion): Remove rt_reg.
635 (reg_info): New structure.
636 (rtx_def): Add reg field to main union.
638 (REG_CHECK): New macro.
639 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
640 * rtl.c (rtx_format): Document "r".
641 (rtx_code_size): Handle REG specially.
642 * gengenrtl.c (special_format): Return true for formats
644 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
645 Deal with REG_ATTRS after the field loop.
646 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
647 * expmed.c (init_expmed): Call gen_raw_REG instead of
649 * expr.c (init_expr_target): Likewise.
650 * regcprop.c (maybe_mode_change): Likewise.
651 * varasm.c (make_decl_rtl): Likewise.
652 * final.c (leaf_renumber_regs_insn): Return early after
654 * genemit.c (gen_exp): Handle 'r' fields.
655 * genpeep.c (match_rtx): Likewise.
656 * gensupport.c (subst_pattern_match): Likewise.
657 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
658 (alter_constraints, subst_dup): Likewise.
659 * read-rtl.c (read_rtx_code): Likewise.
660 * print-rtl.c (print_rtx): Likewise.
661 * genrecog.c (find_operand, find_matching_operand): Likewise.
662 (validate_pattern, match_pattern_2): Likewise.
663 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
664 (rtx_test::regno_field): New function.
665 (operator ==, safe_to_hoist_p, transition_parameter_type)
666 (parameter_type_string, print_parameter_value)
667 (print_nonbool_test, print_test): Handle new enum values.
668 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
669 * lra-constraints.c (operands_match_p): Likewise.
671 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
673 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
674 Change type of new_regno to unsigned int.
675 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
676 new_regno to unsigned int.
677 (df_ref_change_reg_with_loc): Remove old_regno parameter.
678 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
679 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
680 (SET_REGNO_RAW): Add space after ",".
682 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
684 * rtl.h (REG_NREGS): New macro
685 * alias.c (record_set): Use it.
686 * cfgcleanup.c (mark_effect): Likewise.
687 * combine.c (likely_spilled_retval_1): Likewise.
688 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
689 (move_deaths, distribute_notes): Likewise.
690 * cselib.c (cselib_record_set): Likewise.
691 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
692 * df-scan.c (df_mark_reg): Likewise.
693 * dse.c (look_for_hardregs): Likewise.
694 * dwarf2out.c (reg_loc_descriptor): Likewise.
695 (multiple_reg_loc_descriptor): Likewise.
696 * expr.c (write_complex_part, read_complex_part): Likewise.
697 (emit_move_complex): Likewise.
698 * haifa-sched.c (setup_ref_regs): Likewise.
699 * ira-lives.c (mark_hard_reg_live): Likewise.
700 * lra.c (lra_set_insn_recog_data): Likewise.
701 * mode-switching.c (create_pre_exit): Likewise.
702 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
703 (reload_combine_recognize_pattern): Likewise.
704 (reload_combine_note_use, move2add_record_mode): Likewise.
705 (reload_cse_move2add): Likewise.
706 * reg-stack.c (subst_stack_regs_pat): Likewise.
707 * regcprop.c (kill_value, copy_value): Likewise.
708 (copyprop_hardreg_forward_1): Likewise.
709 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
710 (build_def_use): Likewise.
711 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
712 (deps_analyze_insn): Likewise.
713 * sched-rgn.c (check_live_1, update_live_1): Likewise.
714 * sel-sched.c (count_occurrences_equiv): Likewise.
715 * valtrack.c (dead_debug_insert_temp): Likewise.
717 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
719 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
720 * dse.c (note_add_store): Likewise.
721 * ira-lives.c (mark_hard_reg_dead): Likewise.
722 * loop-invariant.c (mark_reg_store): Likewise.
723 (mark_reg_death): Likewise.
724 * postreload.c (reload_combine): Likewise.
725 (reload_combine_note_store): Likewise.
726 (reload_combine_note_use): Likewise.
727 * recog.c (peep2_reg_dead_p): Likewise.
729 2015-05-19 Alan Modra <amodra@gmail.com>
731 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
732 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
733 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
735 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
736 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
737 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
738 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
740 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
742 * config/mips/mips.md (JOIN_MODE): New mode iterator.
743 (join2_load_Store<JOIN_MODE:mode>): New pattern.
744 (join2_loadhi): Likewise.
745 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
746 load-load and store-stores.
747 * config/mips/mips.opt (mload-store-pairs): New option.
748 (TARGET_LOAD_STORE_PAIRS): New macro.
749 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
750 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
751 * config/mips/mips.c (mips_load_store_bonding_p): New function.
753 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
755 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
757 * dojump.c (do_compare_rtx_and_jump): Likewise.
758 * expmed.c (emit_store_flag_1): Likewise.
759 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
760 * final.c (sprint_ul): Use std::reverse for reversing a string.
761 * fold-const.c (extract_muldiv_1): Use std::swap.
762 * genmodes.c (emit_mode_int_n): Likewise.
763 * ifcvt.c (dead_or_predicable): Likewise.
764 * ira-build.c (ira_merge_live_ranges): Likewise.
765 (swap_allocno_copy_ends_if_necessary): Likewise.
766 * ira.c (ira_setup_alts): Likewise.
767 * loop-iv.c (iv_analyze_expr): Likewise.
768 (implies_p): Likewise.
769 (canon_condition): Likewise.
770 * lra-constraints.c (swap_operands): Likewise.
771 * lra-lives.c (lra_merge_live_ranges): Likewise.
772 * omega.c (swap): Remove.
774 (omega_unprotect_1): Use std::swap.
775 (omega_solve_geq): Likewise.
776 * optabs.c (expand_binop_directly): Likewise.
777 (expand_binop): Likewise.
778 (emit_conditional_move): Likewise.
779 (emit_conditional_add): Likewise.
780 * postreload.c (reload_cse_simplify_operands): Likewise.
781 * reg-stack.c (emit_swap_insn): Likewise.
782 (swap_to_top): Likewise.
783 (compare_for_stack_reg): Likewise.
784 (subst_asm_stack_regs): Likewise.
785 * reload.c (find_reloads): Likewise.
786 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
787 * sel-sched.c (invoke_reorder_hooks): Likewise.
788 (create_block_for_bookkeeping): Likewise.
789 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
790 (lambda_matrix_right_hermite): Use std::swap.
791 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
792 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
793 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
794 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
795 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
796 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
797 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
798 * tree-vrp.c (compare_ranges): Likewise.
799 * var-tracking.c (add_with_sets): Likewise.
800 (vt_find_locations): Likewise.
802 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
804 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
806 (FBSD_ENDFILE_SPEC): Likewise.
807 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
808 config/freebsd-spec.h.
809 (ENDFILE_SPEC): Likewise.
811 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
812 Richard Henderson <rth@redhat.com>
815 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
816 Check for a memory location that is not a reference (using an AND)
817 to an unaligned location here.
818 * config/alpha/predicates.md (normal_memory_operand): Remove.
820 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
822 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
823 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
825 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
827 * config/mips/mips.c (micromips_globals): New variable.
828 (mips_set_compression_mode): Save and reinitialize target-dependent
831 2015-05-18 Martin Liska <mliska@suse.cz>
833 * dbgcnt.def: Add new counter.
834 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
836 2015-05-18 Martin Liska <mliska@suse.cz>
838 * dbgcnt.def: Sort counters.
839 * opts.c (common_handle_option): Do not compile if
840 -fdbg-cnt-list is enabled.
842 2015-05-18 Tom de Vries <tom@codesourcery.com>
844 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
845 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
846 address operator to va_list operand.
847 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
849 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
851 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
852 * config/s390/s390.c (s390_gimplify_va_arg): Same.
853 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
855 2015-05-18 Tom de Vries <tom@codesourcery.com>
857 * tree-ssa-tail-merge.c: Fix whitespace.
859 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
861 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
862 cortex-a17, and cortex-a17.cortex-a7.
864 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
867 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
869 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
872 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
873 QImode inner modes for TARGET_AVX512BW. Force mask operand
874 to a register for AVX512F modes.
876 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
878 * toplev.c (emit_debug_global_declarations): Do not output debug info
879 when doing slim LTO objects.
881 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
883 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
884 odr_types_equivalent_p): Declare.
885 (odr_type_p): Use gcc_checking_assert.
886 (type_in_anonymous_namespace_p) Declare.
887 (type_with_linkage_p): Declare.
888 * common.opt (Wlto-type-mismatch): New warning.
889 * ipa-devirt.c (compound_type_base): New function.
890 (odr_or_derived_type_p): New function.
891 (odr_types_equivalent_p): New function.
892 (add_type_duplicate): Simplify.
893 (type_with_linkage_p): Add hack to prevent false positives on C types
894 (type_in_anonymous_namespace_p): Likewise.
895 * tree.c (need_assembler_name_p): Use type_with_linkage.
896 * tree.h (type_in_anonymous_namespace_p): Remove.
897 * doc/invoke.texi (-Wlto-type-mismatch): Document
899 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
901 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
902 (verify_type): Verify STRING_FLAG.
904 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
907 * tree-pretty-print.c (percent_K_format): Replace locus pointer
908 with accessor function.
909 * tree-diagnostic.c (diagnostic_report_current_function): Use
910 diagnostic_location function.
911 (maybe_unwind_expanded_macro_loc): Likewise.
912 (virt_loc_aware_diagnostic_finalizer): Likewise.
913 (default_tree_printer): Replace locus pointer with accessor function.
914 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
915 (diagnostic_set_info_translated): Initialize second location.
916 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
917 (diagnostic_show_locus): Handle two locations. Call
918 diagnostic_print_caret_line.
919 (diagnostic_print_caret_line): New.
920 (default_diagnostic_starter): Use diagnostic_location function.
921 (diagnostic_report_diagnostic): Use diagnostic_location function.
922 (verbatim): Do not set text.locus.
923 * diagnostic.h (struct diagnostic_info): Remove location field.
924 (struct diagnostic_context): Make caret_chars an array of two.
925 (diagnostic_location): New inline.
926 (diagnostic_expand_location): Handle two locations.
927 (diagnostic_same_line): New inline.
928 (diagnostic_print_caret_line): Declare.
929 (CARET_LINE_MARGIN): New constant.
930 * pretty-print.c (pp_printf): Do not set text.locus.
931 (pp_verbatim): Do not set text.locus.
932 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
933 (struct text_info): Replace locus pointer with locations
934 array. Add accessor functions.
936 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
937 Zhenqiang Chen <zhenqiang.chen@linaro.org>
940 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
941 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
942 large constants in register instead of splitting them.
944 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
947 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
948 replacements in memory addresses.
949 (get_unaligned_address): Ditto.
951 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
953 PR tree-optimization/64454
954 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
955 (-1 - A -> ~A): Remove unnecessary condition.
957 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
959 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
960 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
961 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
963 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
965 * ipa-chkp.h (chkp_wrap_function): New.
966 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
967 (chkp_wrap_function_name): New.
968 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
970 * lto-cgraph.c: Include ipa-chkp.h.
971 (input_cgraph_1): Avoid alias chain for wrappers.
973 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
976 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
977 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
979 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
981 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
982 (AARCH64_FL_SLOWMUL): Delete.
983 (AARCH64_FL_CRC): Redefine to 1<<3.
984 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
986 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
988 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
991 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
993 * config/alpha/alpha.md (extendqidi2): Use general_operand
994 instead of some_operand for operand[1] predicate.
995 (extendhidi2): Ditto.
996 (cbranchdi4): Use general_operand instead of some_operand
997 for operand[1] and operands[2] predicates.
999 * config/alpha/predicates.md (some_operand): Remove unused predicate.
1000 (some_ni_operand): Ditto.
1002 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
1004 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
1005 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
1006 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
1007 low part of the constant using alpha_emit_set_const_1.
1008 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
1010 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
1012 * varasm.c (output_constant_pool_1): Pass down alignment from
1013 constant pool entry's descriptor to output_constant_pool_2.
1014 (output_object_block): Add comment prior to call to
1015 output_constant_pool_1.
1017 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
1019 PR rtl-optimization/65862
1020 * target.def (ira_change_pseudo_allocno_class): New hook.
1021 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
1023 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
1024 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
1026 * ira-costs.c (find_costs_and_classes): Call the hook and change
1027 classes when it is necessary.
1028 * doc/tm.texi: Update.
1030 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
1032 * config/i386/i386.md (sibcall_memory): Check that register with
1033 callee address is not also used as one of the arguments, instead
1034 of checking that it is not live after the sibcall.
1035 (sibcall_pop_memory): Ditto.
1036 (sibcall_value_memory): Ditto.
1037 (sibcall_value_pop_memory): Ditto.
1039 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
1041 * generic-match-head.c (types_match): Handle non-types.
1042 * gimple-match-head.c (types_match): Likewise.
1043 * match.pd: Remove unnecessary TREE_TYPE for types_match.
1045 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
1047 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
1048 (csneg3<mode>_insn): Enable expansion of pattern.
1050 2015-05-14 Nick Clifton <nickc@redhat.com>
1052 * config/rl78/rl78.c (rl78_select_section): Select the correct
1053 default section based upon the category of the decl.
1055 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1057 PR rtl-optimization/30967
1058 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1059 destination mode for the cost of scc patterns.
1061 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
1063 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
1064 using SWIM248 mode iterator.
1065 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
1066 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
1067 for operand[2] constraint.
1068 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
1070 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1073 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1074 make sure it is never noreturn, even when the task body does not
1076 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1077 right before GIMPLE_OMP_RETURN.
1078 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1079 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
1080 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1082 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1084 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
1085 * tree-ssa-math-opts.c: Include params.h
1086 (pow_synth_sqrt_info): New struct.
1087 (representable_as_half_series_p): New function.
1088 (get_fn_chain): Likewise.
1089 (print_nested_fn): Likewise.
1090 (dump_fractional_sqrt_sequence): Likewise.
1091 (dump_integer_part): Likewise.
1092 (expand_pow_as_sqrts): Likewise.
1093 (gimple_expand_builtin_pow): Use above to attempt to expand
1094 pow as series of square roots. Removed now unused variables.
1096 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
1098 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
1099 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
1100 Remove *p0 and *p1 arguments. Rewrite function.
1101 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
1102 (alpha_split_const_mov): Update calls to alpha_extract_integer and
1103 alpha_emit_set_long_const.
1104 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
1105 (alpha_output_mi_thunk_osf): Ditto.
1106 * config/alpha/alpha.md (movti): Do not check operands[1]
1109 2015-05-13 Richard Biener <rguenther@suse.de>
1111 PR tree-optimization/66129
1112 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
1114 (vect_schedule_slp_instance): Fix typo.
1116 2015-05-13 David Malcolm <dmalcolm@redhat.com>
1118 * common.opt (fdump-internal-locations): New option.
1119 * input.c: Include diagnostic-core.h.
1120 (get_end_location): New function.
1121 (write_digit): New function.
1122 (write_digit_row): New function.
1123 (dump_location_range): New function.
1124 (dump_labelled_location_range): New function.
1125 (dump_location_info): New function.
1126 * input.h (dump_location_info): New prototype.
1127 * toplev.c (compile_file): Handle flag_dump_locations.
1129 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1131 * gimple-expr.h (is_gimple_constant): Reorder.
1132 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
1134 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1136 * combine.c (simplify_set): When generating a CC set, if the
1137 source already is in the correct mode, do not wrap it in a
1138 compare. Simplify the rest of that code.
1140 2015-05-13 Richard Biener <rguenther@suse.de>
1142 PR tree-optimization/66123
1143 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
1146 2015-05-13 Richard Biener <rguenther@suse.de>
1149 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
1151 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
1153 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1155 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
1156 * aclocal.m4: Regenerated with automake-1.11.6.
1158 2015-05-13 Tom de Vries <tom@codesourcery.com>
1160 PR tree-optimization/66010
1161 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
1162 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
1163 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
1164 and rval based on do_deref.
1166 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1169 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
1170 link time constants into adress expressions and therefore set
1173 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1176 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
1177 Use SWI248 iterator instead of SWI.
1178 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
1179 Use eq_attr "alternative" "0" instead of match_test in
1180 length_immediate attribute computation.
1181 (*mulvhi4, *mulvhi4_1): New define_insns.
1184 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
1185 SIGNED to get precision of non-negative value.
1187 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1190 * function.c (diddle_return_value_1): Process bounds first.
1191 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
1194 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1196 PR rtl-optimization/64616
1197 * loop-invariant.c (can_move_invariant_reg): New.
1198 (move_invariant_reg): Call above new function to decide whether
1199 instruction can just be moved, skipping creation of temporary
1202 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
1205 * i386.c (ix86_function_sseregparm): Only return -1 if local function
1206 with implied regparm is called from -mno-sse function.
1207 (init_cumulative_args): Output error if ix86_function_sseregparm
1208 return -1 and SSE register would be needed.
1209 (function_arg_advance_32): Likewise.
1210 (function_arg_32): Likewise.
1211 * i386.h (ix86_args): Add decl field.
1213 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
1216 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
1217 inlines across optimization boundary.
1219 2015-05-12 Jason Merrill <jason@redhat.com>
1221 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
1222 string literal and macro name.
1224 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
1226 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
1227 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
1228 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
1230 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1232 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
1233 (-Wmisleading-indentation): New option.
1234 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
1236 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
1238 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
1239 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
1240 (alpha_extract_integer): Ditto.
1241 (alpha_legitimate_constant_p): Ditto.
1242 (alpha_split_tmode_pair): Ditto.
1243 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
1244 (alpha_expand_mov): Ditto.
1245 (print_operand): Remove handling of 'H' modifier.
1246 <case 'm'>: Remove CONST_DOUBLE handling.
1247 (summarize_insn): Handle CONST_WIDE_INT.
1248 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
1250 (movti): Handle CONST_WIDE_INT.
1251 * config/alpha/constraints.md ('H'): Remove constraint definition.
1252 ('G'): Do not match MODE_FLOAT class.
1253 * config/alpha/predicates.md (const0_operand): Also match
1255 (non_add_const_operand): Ditto.
1256 (non_zero_const_operand): Ditto.
1257 (some_operand): Ditto.
1258 (input_operand): Ditto. Handle CONST_WIDE_INT.
1259 (and_operand): Do not match const_double.
1260 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
1262 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
1265 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
1266 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
1267 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1268 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
1269 is_mm_seq_cst, is_mm_sync): New accessor functions.
1270 * builtins.c (expand_builtin_sync_operation,
1271 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
1272 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
1273 (get_memmodel, expand_builtin_atomic_compare_exchange,
1274 expand_builtin_atomic_load, expand_builtin_atomic_store,
1275 expand_builtin_atomic_clear): Use new accessor routines.
1276 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
1277 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
1278 (maybe_emit_sync_lock_test_and_set): Use new accessors and
1279 MEMMODEL_SYNC_ACQUIRE.
1280 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
1281 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
1282 expand_atomic_store): Use new accessors.
1283 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
1284 * tsan.c (instrument_builtin_call): Update check for memory model beyond
1285 final enum to use MEMMODEL_LAST.
1286 * c-family/c-common.c: Use new accessor for memmodel_base.
1287 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
1289 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
1290 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
1291 mem_thread_fence, *dmb): Likewise.
1292 * config/alpha/alpha.c (alpha_split_compare_and_swap,
1293 alpha_split_compare_and_swap_12): Likewise.
1294 * config/arm/arm.c (arm_expand_compare_and_swap,
1295 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
1296 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
1297 atomic_loaddi): Likewise.
1298 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
1300 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
1301 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
1303 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
1304 atomic_store<mode>, atomic_compare_and_swap<mode>,
1305 atomic_exchange<mode>): Use new accessors.
1306 * config/mips/mips.c (mips_process_sync_loop): Likewise.
1307 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
1308 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
1309 rs6000_post_atomic_barrier): Add new cases.
1310 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
1311 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
1312 (atomic_load<mode>): Add new cases and use new accessors.
1313 (store_quadpti): Add new cases.
1314 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
1316 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
1317 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
1320 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
1322 * ipa-devirt.c (type_with_linkage_p): New function.
1323 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
1325 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
1326 (can_be_name_hashed_p): Simplify.
1327 (hash_odr_name): Check that type has linkage before checking if it is
1329 (types_same_for_odr): Likewise.
1330 (odr_name_hasher::equal): Likewise.
1331 (odr_subtypes_equivalent_p): Likewise.
1332 (warn_types_mismatch): Likewise.
1333 (get_odr_type): Likewise.
1334 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
1335 * ipa-utils.h (odr_type_p): Move offline.
1336 * tree.c (need_assembler_name_p): Fix handling of types
1338 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
1340 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1342 * timevar.c (timevar_enable): Delete in favor of...
1343 (g_timer): New global.
1344 (struct timevar_def): Move to timevar.h inside class timer.
1345 (struct timevar_stack_def): Likewise.
1346 (timevars): Delete global in favor of field "m_timevars" within
1347 class timer in timevar.h
1348 (stack): Likewise, in favor of field "m_stack".
1349 (unused_stack_instances): Likewise, in favor of field
1350 "m_unused_stack_instances".
1351 (start_time): Likewise, in favor of field "m_start_time".
1352 (get_time): Eliminate check for timevar_enable.
1353 (timer::timer): New function, built from part of timevar_init.
1354 (timevar_init): Rewrite idempotency test from using
1355 "timevar_enable" bool to using dynamic allocation of "g_timer".
1356 Move rest of implementation into timer's constructor.
1357 (timevar_push_1): Rename to...
1358 (timer::push): ...this, adding "m_" prefixes to variables that
1359 are now fields of timer.
1360 (timevar_pop_1): Likewise, rename to...
1361 (timer::pop): ...this, and add "m_" prefixes.
1362 (timevar_start): Replace test for "timevar_enable" with one for
1363 "g_timer", and move bulk of implementation to...
1364 (timer::start): ...here, adding "m_" prefixes.
1365 (timevar_stop): Likewise, from here...
1366 (timer::stop): ...to here.
1367 (timevar_cond_start): Likewise, from here...
1368 (timer::cond_start): ...to here.
1369 (timevar_cond_stop): Likewise, from here...
1370 (timer::cond_stop): ...to here.
1371 (validate_phases): Rename to...
1372 (timer::validate_phases): ...this, and add "m_" prefixes. Make
1373 locals "total" and "tv" const.
1374 (timevar_print): Rename to...
1375 (timer::print): ...this, and add "m_" prefixes. Make locals
1376 "total" and "tv" const. Eliminate test for timevar_enable.
1377 * timevar.h (timevar_enable): Eliminate.
1378 (g_timer): New declaration.
1379 (timevar_push_1): Eliminate.
1380 (timevar_pop_1): Eliminate.
1381 (timevar_print): Eliminate.
1382 (class timer): New class.
1383 (timevar_push): Rewrite to use g_timer.
1384 (timevar_pop): Likewise.
1385 * toplev.c (toplev::~toplev): Likewise.
1387 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
1389 * arm-protos.h (arm_sched_autopref): Delete.
1390 (tune_params): Re-organize, use enums for flag values.
1391 (FUSE_OPS): New macro.
1392 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
1393 (ARM_PREFETCH_BENEFICIAL): Likewise.
1394 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
1395 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1396 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
1397 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
1398 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
1399 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
1400 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
1401 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
1403 (arm_option_override, thumb2_reorg, arm_print_tune_info)
1404 (aarch_macro_fusion_pair_p): Update uses of current_tune.
1405 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
1407 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
1409 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
1412 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
1413 Sandra Loosemore <sandra@codesourcery.com>
1415 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
1417 (REG_CLASS_NAMES): Add "IJMP_REGS".
1418 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
1419 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
1420 use new "c" register constraint.
1421 * config/nios2/constraint.md (c): New register constraint
1422 corresponding to IJMP_REGS.
1424 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1426 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
1427 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
1428 define_splits): Delete, revamp, transmogrify into ...
1429 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
1430 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
1431 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
1434 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1436 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
1437 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
1439 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1441 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
1442 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
1443 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
1444 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
1445 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
1446 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
1447 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
1448 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
1449 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
1450 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
1451 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
1452 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
1453 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
1454 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
1455 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
1456 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
1457 and 30 corresponding splitters): Delete.
1459 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1461 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
1464 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1466 * combine.c (recog_for_combine_1): New function, factored out
1467 from recog_for_combine.
1468 (change_zero_ext): New function.
1469 (recog_for_combine): If recog fails, try again with the pattern
1470 modified by change_zero_ext; if that still fails, restore the
1473 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1475 * combine.c (get_undo_marker): New function.
1476 (undo_to_marker): New function, largely factored out from ...
1477 (undo_all): ... this. Adjust.
1479 2015-05-12 Richard Biener <rguenther@suse.de>
1481 PR tree-optimization/66101
1482 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
1483 fixup if we turn a loop exit edge to a fallthru edge.
1485 2015-05-12 Richard Biener <rguenther@suse.de>
1487 PR tree-optimization/37021
1488 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
1489 (SLP_TREE_TWO_OPERATORS): New define.
1490 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1491 SLP_TREE_TWO_OPERATORS.
1492 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
1494 (vect_build_slp_tree): Adjust.
1495 (vect_analyze_slp_cost_1): Likewise.
1496 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
1497 emitting two vector stmts and mixing the results.
1499 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1501 * call.c (print_z_candidates): Remove dead code.
1503 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1505 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
1506 and zEC12_simple_fp.
1507 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
1510 2015-05-12 Tom de Vries <tom@codesourcery.com>
1512 PR tree-optimization/66010
1513 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
1515 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
1516 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
1517 va_lists are passed, and remove corresponding handling.
1518 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
1519 do_deref argument to ifn_va_arg.
1520 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
1523 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1526 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
1527 REG before taking its REGNO.
1529 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1531 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
1532 rsp->sign_bit_copies and rsp->nonzero_bits into ...
1533 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
1534 present to get more accurate information about the number of sign bit
1535 copies and non zero bits.
1537 2015-05-12 Richard Biener <rguenther@suse.de>
1539 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
1540 do not allow unrolling.
1542 2015-05-11 Richard Henderson <rth@redhat.com>
1544 * config/i386/i386-modes.def (CCP): New.
1545 * config/i386/i386.c (put_condition_code): Handle it.
1546 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
1548 2015-05-11 Richard Henderson <rth@redhat.com>
1550 * target.def (md_asm_clobbers): Replace with...
1551 (md_asm_adjust): this.
1552 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
1553 (TARGET_MD_ASM_ADJUST): New.
1555 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
1556 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
1557 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
1559 * cfgexpand.c (check_operand_nalternatives): Accept vector of
1560 constraints instead of lists of outputs and inputs.
1561 (expand_asm_stmt): Save and restore input_location around the
1562 body of the function. Move asm data into vectors instead of
1563 building tree lists. Generate cleanup sequences as needed,
1564 rather than waiting til the end. Use new md_asm_adjust hook.
1566 * config/vxworks.c: Include vec.h before target.h.
1567 * gimple.c: Likewise.
1568 * incpath.c: Likewise.
1569 * mode-switching.c: Likewise.
1571 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
1572 (cris_md_asm_adjust): this.
1573 (TARGET_MD_ASM_CLOBBERS): Remove.
1574 (TARGET_MD_ASM_ADJUST): New.
1575 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
1576 (ix86_md_asm_adjust): this.
1577 (TARGET_MD_ASM_CLOBBERS): Remove.
1578 (TARGET_MD_ASM_ADJUST): New.
1579 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
1580 (mn10300_md_asm_adjust): this.
1581 (TARGET_MD_ASM_CLOBBERS): Remove.
1582 (TARGET_MD_ASM_ADJUST): New.
1583 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
1584 (rs6000_md_asm_adjust): this.
1585 (TARGET_MD_ASM_CLOBBERS): Remove.
1586 (TARGET_MD_ASM_ADJUST): New.
1587 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
1588 (visium_md_asm_adjust): this.
1589 (TARGET_MD_ASM_CLOBBERS): Remove.
1590 (TARGET_MD_ASM_ADJUST): New.
1592 2015-05-11 Richard Henderson <rth@redhat.com>
1594 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
1595 if noutputs is zero.
1596 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
1598 * cfgexpand.c (expand_asm_operands): Merge into...
1599 (expand_asm_stmt): ... here.
1601 * cfgexpand.c (expand_asm_operands): Don't call
1602 resolve_asm_operand_names.
1603 * stmt.c (resolve_asm_operand_names): Clarify block comment.
1605 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
1607 * dwarf2out.c (gen_member_die): Sanity check that we access
1608 TYPE_MAIN_VARIANT for TYPE_METHODS.
1609 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
1610 checking TYPE_METHODS.
1611 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
1613 (build_distinct_type_copy): Clear TYPE_METHODS.
1614 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
1615 (verify_type): Allow TYPE_METHODS to be error_mark_node.
1616 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
1618 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
1620 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
1621 (emit_pattern_before_setloc): Likewise.
1623 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
1625 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
1626 for define_peephole2s.
1627 (get_peephole2_pattern): New function.
1628 (main): Use it. Call validate_pattern.
1630 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1632 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
1633 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
1634 (Last callee saved reg is different for AVR_TINY architecture)
1636 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
1638 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
1639 when looking for memory references.
1641 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
1644 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
1645 via function pointers.
1647 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
1649 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
1650 indirect call by forcing address into a pseudo with -fno-plt.
1651 * common.opt (flag_plt): New option.
1652 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
1653 ([-fno-plt]): Document.
1655 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
1658 * config/rs6000/option-defaults.h: Add space between string literal
1661 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
1663 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
1664 accross ARM targets.
1666 2015-05-11 Christian Bruel <christian.bruel@st.com>
1668 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
1669 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
1671 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
1673 PR rtl-optimization/66076
1674 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
1675 Don't grow the heap array if it is already big enough from a
1678 2015-05-11 Christian Bruel <christian.bruel@st.com>
1680 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
1681 (is_called_in_ARM_mode): Remove.
1682 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
1683 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
1684 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
1685 arm_declare_function_name.
1687 2015-05-11 Christian Bruel <christian.bruel@st.com>
1689 * config/arm/arm.c (arm_option_override): Reoganized and split into :
1690 (arm_option_params_internal); New function.
1691 (arm_option_check_internal): New function.
1692 (arm_option_override_internal): New function.
1693 (thumb_code, thumb1_code): Remove.
1694 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
1695 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
1696 (thumb_code, thumb1_code): Remove.
1697 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
1699 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
1701 * config/alpha/alpha.c (alpha_emit_set_const_1)
1702 (alpha_emit_set_long_const, alpha_extract_integer)
1703 (alpha_legitimate_constant_p, alpha_split_const_mov)
1704 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
1705 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1706 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
1708 * config/alpha/predicates.md (mode_mask_operand): Do not match
1710 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1711 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
1712 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
1713 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1714 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
1716 2015-05-11 Jakub Jelinek <jakub@redhat.com>
1719 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
1720 default_binds_local_p_2.
1721 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
1722 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
1724 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1726 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
1728 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1730 Patch by Richard Biener
1731 * coverage.c (coverage_obj_init): Delay building of type variant
1732 until the type is finished.
1734 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1736 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
1737 mismatch between C and C++ type; compoare correctly ARG_TYPES
1738 for non-prototypes and output correctly parameter index for METHOD_TYPE.
1739 (odr_types_equivalent_p): Fix wording of warning about attributes;
1740 it is OK to match prototype and non-prototype.
1742 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1744 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
1745 TYPE_ARG_TYPES list.
1746 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
1747 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
1749 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
1751 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
1752 * tree.h (is_lang_specific): Constify.
1754 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
1756 PR tree-optimization/64454
1757 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
1760 2015-05-08 Jason Merrill <jason@redhat.com>
1762 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
1763 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
1764 config/darwin.h, config/darwin9.h, config/elfos.h,
1765 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
1766 config/microblaze/microblaze.h, config/mips/mips.h,
1767 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
1768 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
1769 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1770 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
1771 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
1772 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
1773 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
1774 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
1775 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
1776 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
1777 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
1778 between string literal and macro name.
1780 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1782 * jump.c: Change argument types to rtx_insn *.
1785 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1787 * lra-constraints.c: Change argument type to rtx_insn *.
1789 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1791 * df-problems.c: Change argument type to rtx_insn *.
1793 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1795 * combine.c: Change argument type to rtx_insn *.
1797 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1800 * rtlanal.c: Change argument type to rtx_insn *.
1802 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1804 * sched-deps.c: Change argument types to rtx_insn *.
1805 * sched-int.h: Adjust.
1807 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1809 * dwarf2cfi.c: Change argument type to rtx_insn *.
1811 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1813 * ira.c (decrease_live_ranges_number): Changetype of local
1814 variable to rtx_insn *.
1815 * recog.c: Change argument types to rtx_insn *.
1818 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1820 * reorg.c: Change argument types to rtx_insn *.
1822 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1824 * ira-color.c: Change argument types to rtx_insn *.
1825 * lra-eliminations.c: Likewise.
1828 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1830 * gcse.c: Change argument types to rtx_insn *.
1832 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1834 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
1836 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1838 * emit-rtl.c (emit_debug_insn_before): Change argument type to
1842 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1844 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
1847 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1849 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
1852 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1854 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
1857 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1859 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
1862 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1864 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
1868 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1870 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
1874 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1876 * except.c (can_nonlocal_goto): Change type of argument to
1880 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1882 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
1885 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1887 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
1888 * cfgrtl.c (can_delete_label_p): Adjust.
1891 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1893 * reorg.c (stop_search_p): Change argument to rtx_insn *.
1895 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1897 * except.c (make_reg_eh_region_note): Change argument to
1899 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
1902 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1904 * mode-switching.c (commit_mode_sets): Change type of local
1905 variable from rtx to rtx_insn *.
1907 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
1909 * doc/install.texi (--enable-languages): Add missing jit and lto info.
1910 Add ^ to grep command.
1911 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
1912 arg to last gimple_simplify declaration. Add missing gimple_build
1913 declaration for built-in function case with four tree args.
1915 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
1916 Szabolcs Nagy <szabolcs.nagy@arm.com>
1918 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1919 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
1920 (GNU_USER_DYNAMIC_LINKERN32): Update.
1922 2015-05-08 Richard Biener <rguenther@suse.de>
1924 PR tree-optimization/66036
1925 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1926 Handle strided group loads.
1927 (vect_verify_datarefs_alignment): Likewise.
1928 (vect_enhance_data_refs_alignment): Likewise.
1929 (vect_analyze_group_access): Likewise.
1930 (vect_analyze_data_ref_access): Likewise.
1931 (vect_analyze_data_ref_accesses): Likewise.
1932 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
1933 (vectorizable_load): Likewise.
1935 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
1937 * config/rs6000/rs6000.md: Require operand inequality in one
1940 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
1941 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1943 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
1945 * config/rx/rx.md (movdi, movdf): Likewise.
1946 Likewise for define_peephole2s.
1948 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
1950 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
1951 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
1952 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
1953 vtst_u64): Rewrite using gcc vector extensions.
1955 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
1957 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
1958 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
1960 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
1962 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
1964 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1966 * config/glibc-stdint.h (OPTION_MUSL): Define.
1967 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
1968 Change the definition based on OPTION_MUSL for 64 bit targets.
1969 * config/linux.h (OPTION_MUSL): Redefine.
1970 * config/alpha/linux.h (OPTION_MUSL): Redefine.
1971 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
1972 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
1974 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
1975 Szabolcs Nagy <szabolcs.nagy@arm.com>
1977 * config.gcc (LIBC_MUSL): New tm_defines macro.
1978 * config/linux.h (OPTION_MUSL): Define.
1979 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
1980 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
1981 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1982 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1983 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1984 * config/linux.opt (mmusl): New option.
1985 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
1986 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
1987 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
1988 * configure: Regenerate.
1990 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
1991 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1994 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
1995 * config/i386/knetbsd-gnu64.h: New file.
1997 2015-05-08 Marek Polacek <polacek@redhat.com>
2000 * doc/invoke.texi: Document -Woverride-init-side-effects.
2002 2015-05-07 Marek Polacek <polacek@redhat.com>
2005 * doc/invoke.texi: Document -Wshift-negative-value.
2007 2015-05-06 Aditya Kumar <hiraditya@msn.com>
2009 * gcov-tool.c (do_merge): Refactore to remove int ret.
2010 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
2011 !type == FUNC to type != FUNC.
2012 * reload.h (struct target_reload): Changee to type of
2013 x_spill_indirect_levels from bool to unsigned char.
2015 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
2017 * rtl.h (always_void_p): New function.
2018 * gengenrtl.c (always_void_p): Likewise.
2019 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
2020 with code foo are always VOIDmode.
2021 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
2022 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
2023 compare-elim.c, config/aarch64/aarch64.c,
2024 config/aarch64/aarch64.md, config/alpha/alpha.c,
2025 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
2026 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
2027 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
2028 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2029 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
2030 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
2031 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
2032 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
2033 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
2034 config/ia64/vect.md, config/iq2000/iq2000.c,
2035 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
2036 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
2037 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
2038 config/mep/mep.c, config/microblaze/microblaze.c,
2039 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
2040 config/mn10300/mn10300.c, config/msp430/msp430.c,
2041 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
2042 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
2043 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
2044 config/rs6000/altivec.md, config/rs6000/rs6000.c,
2045 config/rs6000/rs6000.md, config/rs6000/vector.md,
2046 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
2047 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
2048 config/sh/sh.md, config/sh/sh_treg_combine.cc,
2049 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
2050 config/spu/spu.md, config/stormy16/stormy16.c,
2051 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
2052 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
2053 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
2054 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
2055 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
2056 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
2057 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
2058 var-tracking.c: Update calls accordingly.
2060 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2064 * varasm.c (function_mergeable_rodata_prefix): New function.
2065 (mergeable_string_section): Use it.
2066 (mergeable_constant_section): Use it.
2068 2015-05-07 Jeff Law <law@redhat.com>
2070 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2071 simplifier to narrow arithmetic.
2072 * generic-match-head.c: (types_match, single_use): New functions.
2073 * gimple-match-head.c: (types_match, single_use): New functions.
2075 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2077 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
2080 2015-05-07 Richard Biener <rguenther@suse.de>
2082 PR tree-optimization/66002
2083 * passes.def: Schedule another pass_merge_phi after ifcombine, right
2086 2015-05-07 Marek Polacek <polacek@redhat.com>
2087 Martin Uecker <uecker@eecs.berkeley.edu>
2089 * doc/invoke.texi: Document -fsanitize=bounds-strict.
2090 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
2091 into SANITIZE_NONDEFAULT.
2092 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
2094 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
2097 * config/alpha/alpha.c (alpha_override_options_after_change): New.
2098 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2099 (alpha_override_options): Move align_loops, align_jumps and
2100 align_functions handling into alpha_override_options_after_change.
2102 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
2103 Chris Jones <chrisj@nvidia.com>
2104 Joshua Conner <jconner@nvidia.com>
2106 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
2107 linking of crtfastmath.o.
2108 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
2110 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2112 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
2113 (cstore<mode>4_unsigned_imm): New expander.
2114 (cstore<mode>4): Remove empty constraint strings. Use the new
2117 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
2120 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
2123 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2125 * config/aarch64/geniterators.sh: Use standard BRE in sed.
2127 2015-05-06 Alan Modra <amodra@gmail.com>
2130 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
2131 (UNSPEC_NOP): Define.
2132 (reload_vsx_from_gpr<mode>): Add missing DONE.
2133 (reload_gpr_from_vsx<mode>): Likewise.
2134 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
2135 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
2137 2015-05-06 Christian Bruel <christian.bruel@st.com>
2140 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
2141 align_jumps, align_functions into aarch64_override_options_after_change.
2143 2015-05-06 Richard Biener <rguenther@suse.de>
2145 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
2146 vect_transform_slp_perm_load to check if we support a permutation
2147 for basic-block vectorization.
2149 2015-05-06 Nick Clifton <nickc@redhat.com>
2151 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
2152 used, even if it is not being used as a frame pointer.
2154 2015-05-05 Jason Merrill <jason@redhat.com>
2156 * dwarf2out.c (gen_member_die): Don't emit anything for an
2157 anonymous class constructor.
2159 2015-05-05 David Malcolm <dmalcolm@redhat.com>
2161 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
2162 that it reflects the block structure.
2163 (afdo_propagate_edge): Likewise.
2164 (afdo_calculate_branch_prob): Likewise.
2165 (afdo_annotate_cfg): Likewise.
2166 * cfgcleanup.c (equal_different_set_p): Likewise.
2167 (try_crossjump_to_edge): Likewise.
2168 * cgraph.c (cgraph_node::verify_node): Likewise.
2169 * cgraphunit.c (expand_all_functions): Likewise.
2170 * config/i386/i386.c (ix86_expand_copysign): Likewise.
2171 (exact_dependency_1): Likewise.
2172 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
2173 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
2174 * gensupport.c (process_define_subst): Likewise.
2175 * lto-wrapper.c (merge_and_complain): Likewise.
2176 * tree-if-conv.c (if_convertible_bb_p): Likewise.
2177 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
2178 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
2179 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2180 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2181 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2182 * tree-vect-stmts.c (vectorizable_shift): Likewise.
2183 * tree-vrp.c (vrp_finalize): Likewise.
2184 * tree.c (variably_modified_type_p): Likewise.
2186 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
2188 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
2189 on darwin12 and later.
2190 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
2191 file to pass -rdynamic on darwin12 and later.
2192 * config/darwin.opt (rdynamic): Add.
2194 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2196 * doc/extend.texi (C Extensions): Update menu for moved Variable
2197 Attributes and Type Attributes sections.
2199 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2202 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
2203 if rep_8byte stringop strategy was specified for 32-bit target.
2205 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
2208 * config/i386/i386.md (vector convert to float spltiter): Check for
2209 xmm16+, when splitting scalar float conversion.
2210 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
2212 2015-05-05 Nick Clifton <nickc@redhat.com>
2214 * config/msp430/msp430-opts.h (enum msp430_regions): New.
2215 * config/msp430/msp430.c (msp430_override_options): Complain if
2216 -mcode-region or -mdata-region is used on a non MSP430X.
2217 (msp430_section_attr): New function. Checks lower, upper and
2219 (msp430_attribute_table): Add lower, upper and either.
2220 (gen_prefix): New function. Generates a prefix for a section
2222 (msp430_select_section): New function - handles the choice of
2223 section for an object. Takes into account memory region
2224 attributes and options.
2225 (msp430_function_section): Use gen_prefix.
2226 (TARGET_SECTION_TYPE_FLAGS): Define.
2227 (msp430_section_type_flags): New function.
2228 (TARGET_ASM_UNIQUE_SECTION): Define.
2229 (msp430_unique_section): New function.
2230 (msp430_output_aligned_decl_common): New function.
2231 (msp430_do_not_relax_short_jumps): New function.
2232 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
2234 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2235 * config/msp430/msp430-protos.h
2236 (msp430_do_not_relax_short_jumps): New prototype.
2237 (msp430_output_aligned_decl_common): New prototype.
2238 * config/msp430/msp430.md (length): New attribute.
2239 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
2240 then use a long code sequence for short jumps.
2241 * config/msp430/msp430.opt (mcode-region): New.
2242 (mdata-region): New.
2243 * doc/invoke.texi: Document new options.
2244 * doc/extend.texi: Document new attributes.
2246 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
2248 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
2249 (tune_params): Add field branch_costs.
2250 (aarch64_branch_cost): Declare.
2251 * gcc/config/aarch64.c (generic_branch_cost): New.
2252 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
2253 (cortexa53_tunings): Likewise.
2254 (cortexa57_tunings): Likewise.
2255 (thunderx_tunings): Likewise.
2256 (xgene1_tunings): Likewise.
2257 (aarch64_branch_cost): Define.
2258 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
2260 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2262 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
2263 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
2264 * config/i386/i386.md: Ditto.
2265 * config/i386/winnt.c: Ditto.
2267 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
2269 * doc/extend.texi (__atomic Builtins): Move implementation details
2270 to the end of the description, rewrite opening paragraphs, state
2271 difference with __sync builtins, state C11/C++11 assumptions,
2272 weaken itemized descriptions, add explanation of memory model
2273 behaviour, expand description of compare-exchange, simplify text.
2275 2015-05-05 Renlin Li <renlin.li@arm.com>
2277 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
2279 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
2281 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
2282 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2283 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
2284 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2285 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
2286 * configure: Regenerate.
2287 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
2288 * doc/install.texi (aarch64*-*-*): Document new
2289 --enable-fix-cortex-a53-843419 option.
2290 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
2291 and -mno-fix-cortex-a53-843419 options.
2293 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2296 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
2298 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
2300 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
2301 fix overactive TYPE_MIN_VALUE check and add FIXME for type
2302 compatibility problems.
2304 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
2306 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
2308 (cbranchsi4_reg): New.
2309 * config/microblaze/microblaze.c
2310 (microblaze_expand_conditional_branch_reg): New.
2311 * config/microblaze/microblaze-protos.h
2312 (microblaze_expand_conditional_branch_reg): New prototype.
2314 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
2316 * config/microblaze/microblaze.md (peephole2): New.
2318 2015-05-04 Jeff Law <law@redhat.com>
2321 2015-05-04 Jeff Law <law@redhat.com>
2323 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2324 simplifier to narrow arithmetic.
2325 * generic-match-head.c: (types_match, single_use): New functions.
2326 * gimple-match-head.c: (types_match, single_use): New functions.
2328 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
2331 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
2332 (split_branches): Likewise.
2334 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
2336 * common.opt (fdelete-null-pointer-checks): Init to -1.
2337 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
2338 override flag_delete_null_pointer_checks default.
2339 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
2340 behavior re address zero. Better document target-specific behavior.
2341 (-fisolate-errneous-paths-dereference): Mention relationship to
2342 -fdelete-null-pointer-checks.
2344 2015-05-04 Jakub Jelinek <jakub@redhat.com>
2346 PR tree-optimization/65984
2347 * ubsan.c: Include tree-cfg.h.
2348 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
2349 stmt_could_throw_p test, rename can_throw variable to ends_bb.
2351 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
2353 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
2354 to CONST_DOUBLE_P predicate.
2355 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
2356 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
2357 allow only operands that satisfy standard_sse_constant_p predicate.
2358 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
2359 to CONST_DOUBLE_P predicate.
2361 2015-05-04 Jeff Law <law@redhat.com>
2363 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2364 simplifier to narrow arithmetic.
2365 * generic-match-head.c: (types_match, single_use): New functions.
2366 * gimple-match-head.c: (types_match, single_use): New functions.
2368 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
2370 * config/arm/arm.c: Restore bootstrap.
2372 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
2374 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
2375 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
2376 as CONST_WIDE_INT, not CONST_DOUBLE.
2377 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
2378 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
2379 (ix86_find_base_term): Do not check for CONST_DOUBLE.
2380 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
2381 (ix86_build_signbit_mask): Rewrite using wide ints.
2382 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
2383 (ix86_rtx_costs): Handle CONST_WIDE_INT.
2384 (find_constant): Ditto.
2385 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
2387 * config/i386/predicates.md (x86_64_immediate_operand)
2388 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2389 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
2390 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2391 (const0_operand): Also match const_wide_int.
2392 (constm1_operand): Ditto.
2393 (const1_operand): Ditto.
2395 2015-05-04 Richard Biener <rguenther@suse.de>
2397 PR tree-optimization/65965
2398 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2399 store groups at gaps.
2401 2015-05-04 Richard Biener <rguenther@suse.de>
2403 PR tree-optimization/65935
2404 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
2405 then make sure to apply that swapping to the IL.
2407 2015-05-04 Jakub Jelinek <jakub@redhat.com>
2409 * Makefile.in (PATCHLEVEL_c): New variable.
2410 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
2411 expand the same way as if DEVPHASE_c was non-empty.
2413 2015-05-04 Kai Tietz <ktietz@redhat.com>
2416 * lto-wrapper.c (run_gcc): Open filename
2419 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
2421 * doc/extend.texi (Variable Attributes, Type Attributes): Move
2422 sections up in file, to immediately after the Function Attributes
2425 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
2427 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
2429 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2431 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
2432 (insert_partition_copy_on_edge): Adjust.
2433 (insert_rtx_to_part_on_edge): Likewise.
2434 (insert_part_to_rtx_on_edge): Likewise.
2436 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2438 * function.c (set_return_jump_label): Change type of argument to
2440 * function.h (set_return_jump_label): Adjust.
2442 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2444 * reload.h (struct reg_equivs_t): Change type of init to
2446 * ira.c (fix_reg_equiv_init): Adjust.
2447 * reload1.c (eliminate_regs_1): Likewise.
2448 (init_eliminable_invariants): Likewise.
2450 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2452 * cselib.c (fp_setter_insn): Take a rtx_insn *.
2453 * cselib.h (fp_setter_insn): Adjust.
2455 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2457 * recog.c (struct validate_replace_src_data): Change type of
2458 insn field to rtx_insn *.
2459 (validate_replace_src_group): Change type of argument to rtx_insn *.
2460 * recog.h (validate_replace_src_group): Adjust.
2462 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2464 * haifa-sched.c: Change the type of some variables to rtx_insn *.
2465 * sched-deps.c: Likewise.
2466 * sched-int.h: Likewise.
2467 * sched-rgn.c: Likewise.
2468 * sel-sched.c: Likewise.
2470 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2473 * config/i386/i386.c: Change the type of some arguments to
2475 * config/arm/arm.c: Likewise.
2477 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2479 * lra-constraints.c: Change type of some arguments to rtx_insn *.
2481 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2483 * regcprop.c (kill_autoinc_value): Change type of argument to
2486 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2488 * genrecog.c (print_subroutine): Adjust.
2489 * recog.c (get_bool_attr_mask_uncached): Likewise.
2490 * recog.h (struct recog_data_d): Change the type of insn to
2493 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2495 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
2497 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2499 * df-problems.c (df_set_note): Change type of argument to
2502 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2504 * builtins.c (expand_builtin_trap): Change type of local
2505 variable to rtx_insn *.
2506 (add_sched_insns_for_speculation): Likewise.
2507 (ix86_emit_save_regs): Likewise.
2508 (get_scratch_register_on_entry): Likewise.
2509 (ix86_emit_restore_reg_using_pop): Likewise.
2510 (ix86_emit_leave): Likewise.
2511 (ix86_emit_restore_regs_using_mov): Likewise.
2512 (ix86_expand_epilogue): Likewise.
2514 (rl78_alloc_physical_registers_umul): Likewise.
2515 * cselib.c (discard_useless_locs): Likewise.
2516 (cselib_invalidate_regno): Likewise.
2517 (cselib_invalidate_mem): Likewise.
2518 * function.c (expand_function_start): Likewise.
2519 (emit_use_return_register_into_block): Likewise.
2521 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
2522 * ifcvt.c (noce_get_alt_condition): Likewise.
2523 * loop-doloop.c (doloop_condition_get): Likewise.
2524 * lra-constraints.c (inherit_in_ebb): Likewise.
2525 * modulo-sched.c (sms_schedule_by_order): Likewise.
2526 * recog.c (next_insn_tests_no_inequality): Likewise.
2527 * reorg.c (emit_delay_sequence): Likewise.
2528 (update_reg_dead_notes): Likewise.
2529 (fix_reg_dead_note): Likewise.
2530 (fill_slots_from_thread): Likewise.
2531 (delete_computation): Likewise.
2533 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
2535 * doc/extend.texi (Variable Attributes): Add menu and proper
2536 @nodes to subsections. Move Microsoft Windows attributes to
2537 their own subsection.
2538 (Type Attributes): Reorganize introduction to remove duplicate
2539 list of attributes. Add menu and proper @nodes to subsections.
2540 Alphabetize the main table of common attributes.
2542 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
2544 * match.pd: New simplification patterns.
2545 (x + (x & 1)) -> ((x + 1) & ~1)
2546 (x & ~(x & y)) -> ((x & ~y))
2547 (x | ~(x | y)) -> ((x | ~y))
2549 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2551 * target.def (attribute_table): Mention that struct attribute_spec
2552 is defined in tree-core.h rather than tree.h
2553 * doc/tm.texi: Regenerate.
2555 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
2557 * genrecog.c (test): Rename to rtx_test. Update rest of file
2560 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
2562 PR translation/65959
2563 * params.h (DEFPARAM): Rename msgid to nocmsgid.
2565 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2567 * gcc/config/aarch64/aarch64-protos.h (tune_params):
2568 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
2569 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
2570 Return value depending on target.
2571 (generic_tunings): Initialize new target settings.
2572 (cortexa53_tunings): Likewise.
2573 (cortexa57_tunings): Likewise.
2574 (thunderx_tunings): Likewise.
2575 (xgene1_tunings): Likewise.
2577 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2579 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
2580 Make Cortex-A53 shift costs more accurate.
2582 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2584 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
2587 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2589 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
2590 Calculate cost of op0 and op1 in PLUS and MINUS cases.
2592 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2594 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
2595 Add cost of op0 in the compare-with-fpzero case.
2597 2015-04-30 David Malcolm <dmalcolm@redhat.com>
2599 * builtins.c (fold_builtin_1): Remove spurious second
2601 * cgraph.h (symtab_node::get_availability): Likewise.
2602 * opts.c (common_handle_option): Remove spurious second semicolon.
2603 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
2604 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2606 2015-04-30 Caroline Tice <cmtice@google.com>
2608 PR gcov-profile/65929
2609 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
2610 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
2611 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
2612 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
2613 * doc/tm.texi: Regenerate.
2614 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
2615 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
2616 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
2617 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
2619 2015-04-30 Marek Polacek <polacek@redhat.com>
2621 * varasm.c (handle_cache_entry): Fix logic.
2623 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
2626 (*extrsi5_insn_uxtw_alt): Likewise.
2627 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
2628 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
2631 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2633 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
2636 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2638 * config/aarch64/aarch64.md
2639 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
2640 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
2641 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
2642 appropriately. Handle alternative EON form.
2644 2015-04-30 Renlin Li <renlin.li@arm.com>
2646 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
2647 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
2649 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
2652 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
2653 -fstrict-aliasing boundaries.
2655 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2657 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
2658 and [SU]MNEGL patterns.
2660 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2662 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
2663 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
2664 combined arithmetic-shift ops. Properly handle all shift and extend
2665 operations that can occur in combination with PLUS/MINUS.
2666 Rename maybe_fma to compound_p.
2667 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
2668 arithmetic and shift operations.
2670 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2672 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
2673 rather than arith_shift cost when costing ADD/MINUS of an
2676 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
2679 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
2682 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
2684 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
2685 are for the same position.
2687 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
2689 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
2691 (vectorize_loops): Use it.
2693 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
2695 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
2696 for aggregate types.
2697 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
2699 * tree.c (need_assembler_name_p): Compute mangled name for
2700 non-fundamental types and integer types.
2702 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
2704 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
2706 * expr.c (expand_expr_real_2): Likewise.
2708 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
2710 * tree.c (build_common_builtin_nodes): Do not build
2711 __builtin_alloca_with_align as equivalent of library alloca.
2713 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
2715 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
2716 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
2718 * tree.c: Include print-tree.h and ipa-utils.h
2719 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
2720 (free_lang_data_in_cgraph): Call verify_type.
2721 (verify_type_variant): New function.
2722 (verify_type): New function.
2723 * tree.h (verify_type): Declare.
2725 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
2727 * config/mips/mips-cpus.def: (mips4): Change default processor
2728 from PROCESSOR_R8000 to PROCESSOR_R10000.
2730 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
2732 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
2733 la/jalr instead of jal.
2735 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
2738 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
2739 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
2740 (setcc+movzbl peephole2): Check also clobbered reg.
2741 (setcc+andl peephole2): Ditto.
2743 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2746 * config/nvptx/mkoffload.c (target_ilp32): New variable.
2747 (main): Set it depending on "-foffload-abi=[...]".
2748 (compile_native, main): Use it to pass "-m32" or "-m64" to the
2751 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
2754 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
2755 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
2756 Flip lane index back at assembly time for bigendian.
2758 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2760 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
2761 * gimplify.c (gimplify_omp_workshare): Use it.
2763 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
2765 * Makefile.in (build/genrecog.o): Depend on inchash.h.
2766 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
2768 * genrecog.c: Rewrite most of the code except for the third page.
2770 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
2772 * inchash.h, inchash.c: Include bconfig.h for build objects.
2773 * Makefile.in (build/inchash.o): New rule.
2775 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
2778 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
2779 number in type attribute expression.
2781 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
2783 * loop-iv.c (canon_condition): Generalize to all types of integer
2786 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
2788 * gimple-walk.c: Prune duplicate or unneeded includes.
2789 (walk_gimple_asm): Only call parse_input_constraint or
2790 parse_output_constraint if their findings are used.
2791 Honour parse_input_constraint and parse_output_constraint
2794 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
2796 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
2798 2015-04-29 Tom de Vries <tom@codesourcery.com>
2800 PR tree-optimization/65893
2801 * passes.def (pass_all_optimizations): Move pass_stdarg to after
2804 2015-04-29 Richard Biener <rguenther@suse.de>
2806 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2807 compute GROUP_SIZE for basic-block SLP.
2808 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
2809 take into account gaps.
2810 (vect_get_mask_element): Properly reject references to previous
2812 (vect_transform_slp_perm_load): Likewise.
2814 2015-04-29 Christian Bruel <christian.bruel@st.com>
2817 * config/i386/i386.c (ix86_default_align): New function.
2818 (ix86_override_options_after_change): Call ix86_default_align.
2819 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
2820 (ix86_override_options_after_change): New function.
2822 2015-04-28 Jeff Law <law@redhat.com>
2824 * tree-ssa-dom.c (record_equality); Fix comment typos.
2826 2015-04-28 Tom de Vries <tom@codesourcery.com>
2828 PR tree-optimization/65887
2829 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
2831 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
2833 * doc/extend.texi (Declaring Attributes of Functions): Split into
2834 subsections by target. Alphabetize the table of common attributes.
2835 Rewrite some of the introductory text to reflect the new structure.
2836 Update some cross-references to point to the new subsections.
2837 (Attribute Syntax): Put paragraph about "__" naming here. Remove
2838 duplicate copies in the discussion of function, label, and type
2841 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
2844 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
2846 2015-04-28 Jason Merrill <jason@redhat.com>
2849 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
2850 (finalize_type_size): Respect TYPE_USER_ALIGN.
2851 (layout_type) [ARRAY_TYPE]: Likewise.
2853 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
2855 * config/arm/arm.md (*arm_movt): Fix type attribute.
2856 (*cmpsi_shiftsi): Likewise.
2857 (*cmpsi_shiftsi_swp): Likewise.
2858 (*movsicc_insn): Likewise.
2859 (*cond_move): Likewise.
2860 (*if_plus_move): Likewise.
2861 (*if_move_plus): Likewise.
2862 (*if_arith_move): Likewise.
2863 (*if_move_arith): Likewise.
2864 (*if_shift_move): Likewise.
2865 (*if_move_shift): Likewise.
2866 (*arm_movtas_ze): Likewise.
2867 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
2868 redundancy and type attribute.
2869 (*thumb2_movsi_insn): Fix type attribute.
2870 (*thumb2_addsi_short): Likewise.
2871 (thumb2_addsi3_compare0): Likewise.
2872 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
2873 attributes accordingly.
2875 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2878 * function.c (pad_to_arg_alignment): Add parentheses.
2880 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
2882 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
2883 libgcc/config/frv/elf-lib.h.
2885 2015-04-28 Tom de Vries <tom@codesourcery.com>
2887 * tree-call-cdce.c: Fix example in header comment.
2889 2015-04-28 Richard Biener <rguenther@suse.de>
2891 PR tree-optimization/62283
2892 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
2893 fails fatally and we are vectorizing a basic-block simply
2894 cause the child to be constructed piecewise.
2895 (vect_analyze_slp_cost_1): Adjust.
2896 (vect_detect_hybrid_slp_stmts): Likewise.
2897 (vect_bb_slp_scalar_cost): Likewise.
2898 (vect_get_constant_vectors): For piecewise constructed
2899 constants place them after the last def.
2900 (vect_get_slp_defs): Adjust.
2901 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
2902 externals for basic-block vectorization.
2904 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2907 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
2909 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
2910 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
2911 (AARCH64_TUNE_FMA_STEERING): Likewise.
2912 * config/aarch64/aarch64-cores.def: Set
2913 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
2914 FMUL/FMADD instructions.
2915 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
2916 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
2917 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
2918 * config/aarch64/cortex-a57-fma-steering.h: New file.
2919 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2921 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
2923 * gensupport.c (std_preds): Add missing codes to address_operand entry.
2925 2015-04-28 Richard Biener <rguenther@suse.de>
2927 PR tree-optimization/65851
2928 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
2929 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
2930 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
2931 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
2932 (ccp_visit_phi_node): Adjust.
2933 (evaluate_stmt): For simplifications to SSA names return its
2934 lattice value if that isn't VARYING. Return immediately when
2935 simplified to a constant.
2936 (visit_assignment): Adjust.
2937 (ccp_visit_stmt): Likewise.
2939 2015-04-28 Tom de Vries <tom@codesourcery.com>
2941 PR tree-optimization/65818
2942 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
2945 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2947 * calls.c (save_fixed_argument_area): Don't check
2948 ARGS_GROW_DOWNWARD with the preprocessor.
2949 (restore_fixed_argument_area): Likewise.
2950 (mem_overlaps_already_clobbered_arg_p): Likewise.
2951 (check_sibcall_argument_overlap): Likewise.
2952 (expand_call): Likewise.
2953 (emit_library_call_value_1): Likewise.
2954 (store_one_arg): Likewise.
2955 * function.c (assign_parms): Likewise.
2956 (locate_and_pad_parm): Likewise.
2957 (pad_to_arg_alignment): Likewise.
2958 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2960 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2962 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
2963 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
2964 * calls.c (save_fixed_argument_area): Don't chekc if
2965 ARGS_GROW_DOWNWARD is defined.
2966 (restore_fixed_argument_area): Likewise.
2967 (mem_overlaps_already_clobbered_arg_p): Likewise.
2968 (check_sibcall_argument_overlap): Likewise.
2969 (expand_call): Likewise.
2970 (emit_library_call_value_1): Likewise.
2971 (store_one_arg): Likewise.
2972 * function.c (assign_parms): Likewise.
2973 (locate_and_pad_parm): Likewise.
2974 (pad_to_arg_alignment): Likewise.
2975 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
2977 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2979 * defaults.h (gen_epilogue): New function.
2980 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
2982 * cfgrtl.c (cfg_layout_finalize): Likewise.
2983 * df-scan.c: Likewise.
2984 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2985 (reposition_prologue_and_epilogue_notes): Likewise.
2986 * reorg.c (find_end_label): Likewise.
2987 * toplev.c: Likewise.
2989 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2991 * bb-reorder.c (HAVE_return): Don't check if its undefined.
2992 * defaults.h (gen_simple_return): New function.
2993 (gen_simple_return): Likewise.
2994 (HAVE_return): Add default definition to false.
2995 (HAVE_simple_return): Likewise.
2996 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
2997 HAVE_return and HAVE_simple_return are defined.
2998 * function.c (gen_return_pattern): Likewise.
2999 (convert_jumps_to_returns): Likewise.
3000 (thread_prologue_and_epilogue_insns): Likewise.
3001 * reorg.c (find_end_label): Likewise.
3002 (dbr_schedule): Likewise.
3003 * shrink-wrap.c: Likewise.
3004 * shrink-wrap.h: Likewise.
3006 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3008 * defaults.h (EPILOGUE_USES): Add default definition of false.
3009 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
3010 * resource.c (init_resource_info): Likewise.
3012 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3014 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
3016 * dwarf2out.c (field_byte_offset): REmove check if
3017 PCC_BITFIELD_TYPE_MATTERS is defined.
3018 * stor-layout.c (layout_decl): Likewise.
3019 (update_alignment_for_field): Likewise.
3020 (place_field): Likewise.
3022 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3024 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
3026 * regrename.c (check_new_reg_p): Remove check if
3027 HARD_REGNO_RENAME_OK is defined.
3028 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
3030 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3032 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
3033 * cse.c (fold_rtx): Likewise.
3034 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
3035 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
3036 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
3037 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
3038 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
3039 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
3040 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
3041 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
3042 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
3043 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
3045 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
3046 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
3047 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
3048 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
3049 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
3050 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
3051 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
3052 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
3053 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
3054 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
3055 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
3056 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
3057 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
3058 * doc/tm.texi: Regenerate.
3059 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
3060 either true or false.
3062 2015-04-27 Jeff Law <law@redhat.com>
3064 PR tree-optimization/65217
3065 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
3066 of them has a single use, make sure it is the LHS of the implied
3069 2015-04-28 Alan Modra <amodra@gmail.com>
3072 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
3073 (offsettable_ok_by_alignment): Use minimum of decl and toc
3074 pointer alignment. Replace dead code with assertion.
3075 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
3076 case if size exceeds toc pointer alignment.
3077 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
3078 (rs6000_emit_move): Likewise.
3079 * configure.ac: Add linker toc pointer alignment check.
3080 * configure: Regenerate.
3081 * config.in: Regenerate.
3083 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
3085 * config.gcc: Add h8300-*-linux.
3086 * config/h8300/linux.h: New.
3087 * config/h8300/t-linux: New.
3088 * config/h8300/h8300.c (h8300_option_override): Normal mode
3089 is not supported for h8300-*-linux.
3090 (h8300_file_start): Target priority change.
3091 (get_shift_alg): Likewise.
3092 (h8300_shift_need_scratch_p): Likewise.
3093 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3094 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
3096 2015-04-27 Caroline Tice <cmtice@google.com>
3098 * final.c (final_scan_insn): Output cold_function_name as function
3100 * varasm.c (cold_function_name): Make global.
3101 (assemble_start_function): Re-set cold_function_name.
3102 (assemble_end_function): Output cold partition size.
3103 * varasm.h (cold_function_name): Declare global.
3105 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
3107 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
3108 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
3110 (*movxi_internal_avx512f): Ditto.
3111 (define_split): Check for xmm16+, when splitting scalar float_extend.
3112 (*extendsfdf2_mixed): Use "v" constraint.
3113 (define_split): Check for xmm16+, when splitting scalar float_truncate.
3114 (*truncdfsf_fast_sse): Use "v" constraint.
3115 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
3116 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
3117 (define_peephole2): Check for xmm16+, when converting scalar
3119 (define_peephole2): Check for xmm16+, when converting scalar
3121 (*fop_<mode>_comm_mixed): Use "v" constraint.
3122 (*fop_<mode>_comm_sse): Ditto.
3123 (*fop_<mode>_1_mixed): Ditto.
3124 (*sqrt<mode>2_sse): Ditto.
3125 (*ieee_s<ieee_maxmin><mode>3): Ditto.
3127 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3129 * combine.c (simplify_if_then_else): Use std::swap instead
3130 of manually swapping.
3131 (known_cond): Likewise.
3132 (simplify_comparison): Likewise.
3134 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
3137 * config/rs6000/htm.md: Remove all define_expands.
3138 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
3139 UNSPECV_HTM_TABORTWCI): Remove.
3140 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
3141 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
3142 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
3143 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
3144 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
3145 tabortwci_internal): Remove define_insns.
3146 (tabort<wd>c, tabort<wd>ci): New define_insns.
3147 (tabort): Use gpc_reg_operand.
3148 (tcheck): Remove operand.
3149 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
3150 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
3152 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
3153 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
3154 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
3155 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
3156 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
3157 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
3158 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
3159 (tcheck): Remove builtin argument.
3160 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
3162 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
3163 tabortdc and tabortdci builtins when not in 64-bit mode.
3164 Modify code to handle the loss of the HTM define_expands.
3165 Emit code to copy the CR register to TARGET.
3166 (htm_init_builtins): Modify code to handle the loss of the HTM
3168 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
3169 (RS6000_BTC_64BIT): Likewise.
3170 (RS6000_BTC_CR): New macro.
3171 * doc/extend.texi: Update documentation for htm builtins.
3173 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3175 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
3176 of manually swapping.
3177 (simplify_associative_operation): Likewise.
3178 (simplify_binary_operation): Likewise.
3179 (simplify_plus_minus): Likewise.
3180 (simplify_relational_operation): Likewise.
3181 (simplify_ternary_operation): Likewise.
3183 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
3185 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
3186 (xs_hi_nonmemory_operand): Remove error.
3187 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
3188 general_operand rather than xs_hi_general_operand.
3190 2015-04-27 Richard Biener <rguenther@suse.de>
3192 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
3193 (record_equivalences_from_stmt): Valueize rhs.
3194 (record_equality): Canonicalize x and y order via
3195 tree_swap_operands_p. Do not swap operands for same loop depth.
3197 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
3201 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
3202 Add hint how to use own spec file.
3204 2015-04-27 Jakub Jelinek <jakub@redhat.com>
3206 PR tree-optimization/65875
3207 * tree-vrp.c (update_value_range): If in is_new case setting
3208 old_vr to VR_VARYING, also set new_vr to it. Remove
3209 old_vr->type == VR_VARYING test.
3210 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
3211 SSA_PROP_INTERESTING if update_value_range returned true,
3212 but new range is VR_VARYING.
3214 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
3216 * combine.c (sign_extend_short_imm): New.
3217 (set_nonzero_bits_and_sign_copies): Use above new function for sign
3218 extension of src short immediate.
3219 (reg_nonzero_bits_for_combine): Likewise for tem.
3221 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
3223 * stor-layout.c (self_referential_component_ref_p): New predicate.
3224 (copy_self_referential_tree_r): Use it.
3225 (self_referential_size): Punt for simple operations directly involving
3226 self-referential component references.
3227 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
3229 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
3231 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
3233 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
3235 * vec.h (vec): Make splice arguments const. Update definitions
3238 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
3240 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
3243 2015-04-26 Tom de Vries <tom@codesourcery.com>
3245 PR tree-optimization/65826
3246 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
3248 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
3250 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
3251 (*madd3<mode>): Ditto.
3252 (*msub4<mode>): Ditto.
3253 (*msub3<mode>): Ditto.
3254 (*nmadd4<mode>): Ditto.
3255 (*nmadd3<mode>): Ditto.
3256 (*nmadd4<mode>_fastmath): Ditto.
3257 (*nmadd3<mode>_fastmath): Ditto.
3258 (*nmsub4<mode>): Ditto.
3259 (*nmsub3<mode>): Ditto.
3260 (*nmsub4<mode>_fastmath): Ditto.
3261 (*nmsub3<mode>_fastmath): Ditto.
3263 2015-04-24 Jason Merrill <jason@redhat.com>
3266 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
3267 down when building TYPE_CANONICAL.
3268 (build_pointer_type_for_mode): Likewise.
3270 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
3272 * genrecog.c (validate_pattern): Check matching constraint refers
3273 to a lower numbered operand.
3275 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3278 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
3279 save to independent variables use the Save attribute. This will
3280 allow these options to be modified with the #pragma/attribute
3282 (-mallow-movmisalign): Likewise.
3283 (-mallow-df-permute): Likewise.
3284 (-msched-groups): Likewise.
3285 (-malways-hint): Likewise.
3286 (-malign-branch-targets): Likewise.
3287 (-mvectorize-builtins): Likewise.
3288 (-msave-toc-indirect): Likewise.
3290 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
3291 can be set via the #pragma/attribute target support.
3292 (rs6000_opt_vars): Likewise.
3293 (rs6000_inner_target_options): If VSX was set, also set
3294 -mno-avoid-indexed-addresses.
3296 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3298 * config/arm/iterators.md (shiftable_ops): Rename to...
3299 (SHIFTABLE_OPS): ... This. Update use in comments.
3300 (ior_xor): Rename to...
3301 (IOR_XOR): ... This.
3302 (vqh_ops): Rename to...
3303 (VQH_OPS): ... This.
3304 (vqhs_ops): Rename to...
3305 (VQHS_OPS): ... This.
3306 (rshifts): Rename to...
3307 (RSHIFTS): ... This.
3308 (returns): Rename to...
3309 (RETURNS): ... This.
3310 * config/arm/arm.md: Update uses of the above.
3311 * config/arm/neon.md: Likewise.
3313 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3315 * config.host (case ${host}): Add aarch64*-*-linux case.
3316 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
3317 fields to all the cores.
3318 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
3319 Add MCPU_MTUNE_NATIVE_SPECS.
3320 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
3321 field to all extensions.
3322 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
3323 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
3324 Adjust definition of AARCH64_OPT_EXTENSION.
3325 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
3326 (MCPU_MTUNE_NATIVE_SPECS): Define.
3327 * config/aarch64/driver-aarch64.c: New file.
3328 * config/aarch64/x-arch64: New file.
3329 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
3332 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3333 Wei Mi <wmi@google.com>
3335 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
3336 * config/i386/i386.c (extract_base_offset_in_addr): New function.
3337 (ix86_operands_ok_for_move_multiple): Ditto.
3338 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
3339 (movlpd/movhpd to movupd peephole2): Ditto.
3341 2015-04-24 Marek Polacek <polacek@redhat.com>
3344 * input.h (from_macro_expansion_at): Define.
3347 * doc/invoke.texi: Update description of -Wlogical-op.
3349 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3351 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
3352 ternary operator in fprintf and harmonize spacing.
3354 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3356 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
3357 Mark operand1 commutative.
3359 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3361 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
3362 input operands in memory.
3363 (*vec_concatv2si_sse4_1): Ditto.
3364 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
3365 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
3367 (vec_extract_hi_v32hi): Ditto.
3368 (vec_extract_hi_v64hi): Ditto.
3369 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3371 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3372 Steven Bosscher <steven@gcc.gnu.org>
3374 PR rtl-optimization/34503
3375 * cprop.c (cprop_reg_p): New.
3376 (hash_scan_set): Use above function to check if register can be
3378 (find_avail_set): Return up to two sets, one whose source is a
3379 register and one whose source is a constant. Sets are returned in an
3380 array passed as parameter rather than as a return value.
3381 (cprop_insn): Use a do while loop rather than a goto. Try each of the
3382 sets returned by find_avail_set, starting with the one whose source is
3383 a constant. Use cprop_reg_p to check if register can be propagated.
3384 (do_local_cprop): Use cprop_reg_p to check if register can be
3386 (implicit_set_cond_p): Likewise.
3388 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3390 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
3391 (sem_function::equals): IGNORED_NODES parameter is now unused;
3392 update call of equals_private.
3393 (sem_function::equals_private): Do not call equals_wpa; skip
3394 gimple body matching if there is no body.
3395 (sem_function::init): Add logic to hash tthunk info.
3396 (sem_function::parse): Also parse thunks.
3397 * ipa-icf.h (equals_private): Update declaration.
3399 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3401 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
3402 asterisk from name so this can be generated directly.
3403 (*altivec_stvx_<mode>_internal): Likewise.
3404 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
3405 that this is never called during or after reload/lra.
3406 (rs6000_frame_related): Remove split_reg
3407 argument and logic that references it.
3408 (emit_frame_save): Remove last parameter from call to
3409 rs6000_frame_related.
3410 (rs6000_emit_prologue): Remove last parameter from eight calls to
3411 rs6000_frame_related. Force generation of stvx instruction for
3412 Altivec register saves. Remove split_reg handling, which is no
3414 (rs6000_emit_epilogue): Force generation of lvx instruction for
3415 Altivec register restores.
3417 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3419 * config/rs6000/rs6000.opt (mcrypto): Change option description to
3420 match category changes in ISA 2.07B.
3422 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3424 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
3426 (cmp_op, cmp_type): New code attributes.
3427 (NEON_VCMP, NEON_VACMP): New int iterators.
3428 (cmp_op_unsp): New int attribute.
3429 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
3430 (neon_vceq<mode>): Delete.
3431 (neon_vc<cmp_op><mode>_insn): New pattern.
3432 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
3433 (neon_vcgeu<mode>): Delete.
3434 (neon_vcle<mode>): Likewise.
3435 (neon_vclt<mode>: Likewise.
3436 (neon_vcage<mode>): Likewise.
3437 (neon_vcagt<mode>): Likewise.
3438 (neon_vca<cmp_op><mode>): New define_expand.
3439 (neon_vca<cmp_op><mode>_insn): New pattern.
3440 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
3442 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3444 * tree.h (attribute_value_equal): Declare.
3445 * tree.c (attribute_value_equal): Export.
3447 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3449 * ipa-icf.c (sem_item::compare_attributes): New function.
3450 (sem_item::compare_referenced_symbol_properties): Compare variable
3452 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
3453 (sem_function::param_used_p): New function.
3454 (sem_function::equals_wpa): Fix attribute comparsion; match
3455 parameter type codes; do not compare paremter flags when
3456 they are not used; compare edge flags; compare indirect calls.
3457 (sem_item::update_hash_by_addr_refs): Hash reference type.
3458 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
3459 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
3461 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
3462 * ipa-icf.h (compare_attributes, param_used_p): Declare.
3464 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3466 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
3468 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
3469 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
3470 (sem_item::compare_referenced_symbol_properties): New.
3471 (sem_item::hash_referenced_symbol_properties): New.
3472 (sem_item::compare_cgraph_references): Rename to ...
3473 (sem_item::compare_symbol_references): ... this one; use
3474 compare_referenced_symbol_properties.
3475 (sem_function::equals_wpa): Do not compare
3476 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
3477 DECL_IS_OPERATOR_NEW; compare pointer sizes.
3478 (sem_item::update_hash_by_addr_refs): Call
3479 hash_referenced_symbol_properties.
3480 (sem_item::update_hash_by_local_refs): Cleanup.
3481 (sem_function::merge): Do not mix up symbol properties.
3482 (sem_variable::equals_wpa): Use compare_symbol_references.
3483 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
3484 (sem_item::hash_referenced_symbol_properties): New.
3485 (sem_item::compare_symbol_references): New.
3486 (sem_item::compare_cgraph_references): Remove.
3488 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
3491 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
3494 2015-04-23 Nick Clifton <nickc@redhat.com>
3496 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
3497 ATTRIBUTE_UNUSED to x parameter.
3498 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
3500 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3502 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
3503 TARGET_CRYPTO to TARGET_P8_VECTOR>
3504 (crypto_vpermxor_<mode>): Likewise.
3505 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
3506 (BU_CRYPTO_3A): Likewise.
3507 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
3508 (BU_CRYPTO_OVERLOAD_3A): New #define.
3509 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
3510 (VPMSUMH): Likewise.
3511 (VPMSUMW): Likewise.
3512 (VPMSUMD): Likewise.
3513 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
3514 (VPERMXOR_V4SI): Likewise.
3515 (VPERMXOR_V8HI): Likewise.
3516 (VPERMXOR_V16QI): Likewise.
3517 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
3518 BU_CRYPTO_OVERLOAD_2A.
3519 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
3520 BU_CRYPTO_OVERLOAD_3A.
3521 * config/rs6000/rs6000.opt (mcrypto): Change description of
3524 2015-04-23 Richard Biener <rguenther@suse.de>
3526 * passes.def: Remove copy propagation passes run directly after CCP.
3527 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
3529 (ccp_visit_phi_node): Rework to handle first executable edge
3532 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
3534 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
3535 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
3536 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
3537 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
3538 (thumb_legimitimize_reload_address): Remove.
3539 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
3541 (thumb_legimitimize_reload_address): Remove.
3543 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3545 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
3547 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3549 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
3551 (store_multiple): Likewise.
3553 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3555 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
3556 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
3557 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
3558 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
3559 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
3560 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
3561 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
3562 Specify issue_rate value.
3563 (arm_issue_rate): Look up issue rate from tuning structs. Remove
3564 large switch statement.
3565 (arm_marvell_pj4_tune): New struct.
3566 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
3569 2015-04-23 Richard Biener <rguenther@suse.de>
3571 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
3572 (vect_find_last_store_in_slp_instance): Rename to ...
3573 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
3574 (vect_analyze_slp_cost_1): Use vector_load for constant defs
3575 and vec_construct for external defs when estimating prologue cost.
3576 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
3577 Compute costs here only when vectorizing loops.
3578 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
3579 have been determined.
3580 (vect_schedule_slp_instance): Simplify vectorized code placement
3581 and prepare for in-BB external defs.
3582 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
3583 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
3584 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
3586 (vect_model_load_cost): Likewise.
3587 (vectorizable_store): Instead add it here.
3588 (vectorizable_load): Likewise.
3589 (vect_is_simple_use): Dump def type textually.
3591 2015-04-23 Richard Biener <rguenther@suse.de>
3593 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
3594 * cfgloop.c (verify_loop_structure): Verify the root loop node.
3595 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
3596 instead of get_eh_region_from_lp_number.
3597 * loop-init.c (fix_loop_structure): If we removed a loop, reset
3600 2015-04-23 Anton Blanchard <anton@samba.org>
3602 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
3603 need for -mprofile-kernel to save LR to stack.
3605 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3607 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
3609 (insn_is_swappable_p): Return 1 for a convert from double to
3610 single precision when all of its uses are splats of BE element
3613 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3615 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
3617 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3620 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
3621 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
3622 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
3624 (rs6000_builtin_mask_for_load): Return 0 for targets with
3625 efficient unaligned VSX accesses so that the vectorizer will use
3626 direct unaligned loads.
3627 (rs6000_builtin_support_vector_misalignment): Always return true
3628 for targets with efficient unaligned VSX accesses.
3629 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
3630 stores on targets with efficient unaligned VSX accesses is almost
3631 always the same as the cost of an aligned load or store, so model
3633 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
3634 unaligned vectors if we have efficient unaligned VSX accesses.
3635 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
3636 undocumented option.
3638 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3641 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
3643 * config.gcc (LIBC_MUSL): New tm_defines macro.
3644 * config/linux.h (OPTION_MUSL): Define.
3645 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3646 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3647 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3649 * config/linux.opt (mmusl): New option.
3650 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
3651 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
3653 * configure: Regenerate.
3655 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
3657 * config.gcc (LIBC_MUSL): New tm_defines macro.
3658 * config/linux.h (OPTION_MUSL): Define.
3659 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3660 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3661 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3663 * config/linux.opt (mmusl): New option.
3664 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
3665 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
3667 * configure: Regenerate.
3669 2015-04-22 Yury Gribov <y.gribov@samsung.com>
3671 * doc/invoke.texi (-fsanitize-sections): Update description.
3672 * asan.c (set_sanitized_sections): Parse incoming arg.
3673 (section_sanitized_p): Support wildcards.
3675 2015-04-22 Tom de Vries <tom@codesourcery.com>
3677 PR tree-optimization/65823
3678 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
3679 equality between ap_copy and ap.
3681 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3684 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
3686 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3689 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
3691 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3694 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
3695 remove already contained t-files.
3697 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3699 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
3700 Remove unneeded forward declarations.
3701 (suitable_for_tail_call_opt_p): Commentary typo fix.
3703 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3705 * varasm.c (emit_bss): Remove redundant guard.
3707 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3709 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
3711 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3713 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
3715 2015-04-22 Hale Wang <hale.wang@arm.com>
3716 Terry Guo <terry.guo@arm.com>
3718 PR rtl-optimization/64818
3719 * combine.c (can_combine_p): Don't combine user-specified
3720 register if it is in an asm input.
3722 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
3725 * passes.def (early_optimizations): Add pass_dse.
3727 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3729 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
3730 * reorg.c (redundant_insn): Remove ifdef
3731 INSN_REFERENCES_ARE_DELAYED.
3732 * resource.c (mark_referenced_resources): Likewise.
3734 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3736 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
3737 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
3738 * resource.c (mark_set_resources): Likewise.
3740 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3742 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
3743 * cfgcleanup.c (flow_find_cross_jump): Likewise.
3744 (flow_find_head_matching_sequence): Likewise.
3745 (try_head_merge_bb): Likewise.
3746 * combine.c (can_combine_p): Likewise.
3747 (try_combine): Likewise.
3748 (distribute_notes): Likewise.
3749 * df-problems.c (can_move_insns_across): Likewise.
3750 * final.c (final): Likewise.
3751 * gcse.c (insert_insn_end_basic_block): Likewise.
3752 * ira.c (find_moveable_pseudos): Likewise.
3753 * reorg.c (try_merge_delay_insns): Likewise.
3754 (fill_simple_delay_slots): Likewise.
3755 (fill_slots_from_thread): Likewise.
3756 * sched-deps.c (sched_analyze_2): Likewise.
3758 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3760 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
3761 PIC_OFFSET_TABLE_REGNUM.
3763 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3765 * alias.c (init_alias_target): Remove ifdef
3766 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
3767 * df-scan.c (df_insn_refs_collect): Likewise.
3768 (df_get_regular_block_artificial_uses): Likewise.
3769 (df_get_eh_block_artificial_uses): Likewise.
3770 (df_get_entry_block_def_set): Likewise.
3771 (df_get_exit_block_use_set): Likewise.
3772 * emit-rtl.c (gen_rtx_REG): Likewise.
3773 * ira.c (ira_setup_eliminable_regset): Likewise.
3774 * reginfo.c (init_reg_sets_1): Likewise.
3775 * regrename.c (rename_chains): Likewise.
3776 * reload1.c (reload): Likewise.
3777 (eliminate_regs_in_insn): Likewise.
3778 * resource.c (mark_referenced_resources): Likewise.
3779 (init_resource_info): Likewise.
3781 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3783 * defaults.h (MASK_RETURN_ADDR): New definition.
3784 * except.c (expand_builtin_extract_return_addr): Remove ifdef
3787 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3789 * defaults.h (RETURN_ADDR_OFFSET): New definition.
3790 * except.c (expand_builtin_extract_return_addr): Remove ifdef
3792 (expand_builtin_frob_return_addr): Likewise.
3794 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3796 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
3797 (try_redirect_by_replacing_jump): Likewise.
3798 (rtl_tidy_fallthru_edge): Likewise.
3799 * combine.c (insn_a_feeds_b): Likewise.
3800 (find_split_point): Likewise.
3801 (simplify_set): Likewise.
3802 * cprop.c (cprop_jump): Likewise.
3803 * cse.c (cse_extended_basic_block): Likewise.
3804 * df-problems.c (can_move_insns_across): Likewise.
3805 * function.c (emit_use_return_register_into_block): Likewise.
3806 * haifa-sched.c (sched_init): Likewise.
3807 * ira.c (find_moveable_pseudos): Likewise.
3808 * loop-invariant.c (find_invariant_insn): Likewise.
3809 * lra-constraints.c (curr_insn_transform): Likewise.
3810 * postreload.c (reload_combine_recognize_const_pattern):
3812 * reload.c (find_reloads): Likewise.
3813 * reorg.c (delete_scheduled_jump): Likewise.
3814 (steal_delay_list_from_target): Likewise.
3815 (steal_delay_list_from_fallthrough): Likewise.
3816 (redundant_insn): Likewise.
3817 (fill_simple_delay_slots): Likewise.
3818 (fill_slots_from_thread): Likewise.
3819 (delete_computation): Likewise.
3820 * sched-rgn.c (add_branch_dependences): Likewise.
3822 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3824 * genconfig.c (main): Always define HAVE_cc0.
3825 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
3827 * cfgcleanup.c (flow_find_cross_jump): Likewise.
3828 (flow_find_head_matching_sequence): Likewise.
3829 (try_head_merge_bb): Likewise.
3830 * cfgrtl.c (rtl_merge_blocks): Likewise.
3831 (try_redirect_by_replacing_jump): Likewise.
3832 (rtl_tidy_fallthru_edge): Likewise.
3833 * combine.c (do_SUBST_MODE): Likewise.
3834 (insn_a_feeds_b): Likewise.
3835 (combine_instructions): Likewise.
3836 (can_combine_p): Likewise.
3837 (try_combine): Likewise.
3838 (find_split_point): Likewise.
3840 (simplify_set): Likewise.
3841 (distribute_notes): Likewise.
3842 * cprop.c (cprop_jump): Likewise.
3843 * cse.c (cse_extended_basic_block): Likewise.
3844 * df-problems.c (can_move_insns_across): Likewise.
3845 * final.c (final): Likewise.
3846 (final_scan_insn): Likewise.
3847 * function.c (emit_use_return_register_into_block): Likewise.
3848 * gcse.c (insert_insn_end_basic_block): Likewise.
3849 * haifa-sched.c (sched_init): Likewise.
3850 * ira.c (find_moveable_pseudos): Likewise.
3851 * loop-invariant.c (find_invariant_insn): Likewise.
3852 * lra-constraints.c (curr_insn_transform): Likewise.
3853 * optabs.c (prepare_cmp_insn): Likewise.
3854 * postreload.c (reload_combine_recognize_const_pattern):
3856 * reload.c (find_reloads): Likewise.
3857 (find_reloads_address_1): Likewise.
3858 * reorg.c (delete_scheduled_jump): Likewise.
3859 (steal_delay_list_from_target): Likewise.
3860 (steal_delay_list_from_fallthrough): Likewise.
3861 (try_merge_delay_insns): Likewise.
3862 (redundant_insn): Likewise.
3863 (fill_simple_delay_slots): Likewise.
3864 (fill_slots_from_thread): Likewise.
3865 (delete_computation): Likewise.
3866 (relax_delay_slots): Likewise.
3867 * sched-deps.c (sched_analyze_2): Likewise.
3868 * sched-rgn.c (add_branch_dependences): Likewise.
3870 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3872 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
3873 that is trivially ded on non cc0 targets.
3874 (simplify_set): Likewise.
3875 (mark_used_regs_combine): Likewise.
3876 * cse.c (new_basic_block): Likewise.
3877 (fold_rtx): Likewise.
3878 (cse_insn): Likewise.
3879 (cse_extended_basic_block): Likewise.
3880 (set_live_p): Likewise.
3881 * rtlanal.c (canonicalize_condition): Likewise.
3882 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3884 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3886 * conditions.h: Define macros even if HAVE_cc0 is undefined.
3887 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
3888 * final.c: Likewise.
3890 * recog.c: Likewise.
3891 * recog.h: Declare functions even when HAVE_cc0 is undefined.
3892 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
3894 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3896 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
3897 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
3898 * builtins.c (expand_builtin): Remove check if
3899 EH_RETURN_DATA_REGNO is defined.
3900 * df-scan.c (df_bb_refs_collect): Likewise.
3901 (df_get_exit_block_use_set): Likewise.
3902 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3903 * ira-lives.c (process_bb_node_lives): Likewise.
3904 * lra-lives.c (process_bb_lives): Likewise.
3906 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
3908 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
3909 FIRST_PSEUDO_REG): New.
3910 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
3911 (ARG_POINTER_REGNUM): Define to ARGP_REG.
3912 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
3913 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
3914 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
3915 (FIRST_INT_REG): New.
3916 (LAST_INT_REG): New.
3917 (FIRST_*_REG): Define using *_REG.
3918 (LAST_*_REG): Ditto.
3919 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
3920 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
3921 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
3923 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3925 * expmed.c: (synth_mult): Only assume overlapping
3926 shift with previous steps in alg_sub_t_m2 case.
3928 2015-04-21 Richard Biener <rguenther@suse.de>
3930 PR tree-optimization/65650
3931 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
3932 transitions involving copies.
3933 (set_lattice_value): Adjust for copy lattice state.
3934 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
3935 if that doesn't dominate the merge point.
3936 (bit_value_unop): Adjust what we treat as varying mask.
3937 (bit_value_binop): Likewise.
3938 (bit_value_assume_aligned): Likewise.
3939 (evaluate_stmt): When we simplified to a SSA name record a copy
3940 instead of dropping to varying.
3941 (visit_assignment): Simplify.
3943 * gimple-match.h (gimple_simplify): Add another callback.
3944 * gimple-fold.c (fold_stmt_1): Adjust caller.
3945 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
3946 for the 2nd callback.
3947 * gimple-match-head.c (gimple_simplify): Add a callback that is
3948 used to valueize the stmt operands and use it that way.
3950 2015-04-21 Richard Biener <rguenther@suse.de>
3952 PR tree-optimization/65788
3953 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
3955 2015-04-21 Richard Biener <rguenther@suse.de>
3957 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
3958 vec_construct cost by vec_stmt_cost.
3960 2015-04-21 Richard Biener <rguenther@suse.de>
3962 * cfghooks.h (create_basic_block): Replace with two overloads
3964 (split_block): Likewise.
3965 * cfghooks.c (split_block): Rename to ...
3966 (split_block_1): ... this.
3967 (split_block): Add two type-safe overloads for RTL and GIMPLE.
3968 (split_block_after_labels): Call split_block_1.
3969 (create_basic_block): Rename to ...
3970 (create_basic_block_1): ... this.
3971 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
3972 (create_empty_bb): Call create_basic_block_1.
3973 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
3974 split_block_after_labels.
3975 * omp-low.c (expand_parallel_call): Likewise.
3976 (expand_omp_target): Likewise.
3977 (simd_clone_adjust): Likewise.
3978 * tree-chkp.c (chkp_get_entry_block): Likewise.
3979 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
3980 create_basic_block overload.
3981 (cgraph_node::expand_thunk): Likewise.
3982 * tree-cfg.c (make_blocks): Likewise.
3983 (handle_abnormal_edges): Likewise.
3984 * tree-inline.c (copy_bb): Likewise.
3986 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3988 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
3990 (*xor_one_cmplsidi3_ze): Likewise.
3992 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
3994 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
3995 use df_remove_problem rather than manually removing problems, leaving
3996 holes in df->problems_in_order[].
3998 2015-04-21 Tom de Vries <tom@codesourcery.com>
4000 PR tree-optimization/65802
4001 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
4003 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4005 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
4007 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
4008 at '.'. Assert that there's enough space for everything.
4010 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
4012 PR tree-optimization/64950
4014 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
4017 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4020 2015-04-20 Shiva Chen <shiva0217@gmail.com>
4022 PR rtl-optimization/64916
4023 * cfgcleanup.c (values_equal_p): New function.
4024 (can_replace_by): Use it.
4026 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
4029 * doc/invoke.texi ([-Wnarrowing]): Update.
4031 2015-04-20 Jeff Law <law@redhat.com>
4033 PR tree-optimization/65658
4034 * tree-ssa-threadupdate.c (redirection_block_p): Remove
4035 redundant test for GIMPLE_ASSIGN in last change.
4037 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
4039 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
4040 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
4041 (legitimize_tls_address): Ditto.
4042 (ix86_expand_move): Ditto.
4043 (ix86_expand_binary_operator): Remove reload_in_progress checks.
4044 (ix86_expand_unary_operator): Ditto.
4045 * config/i386/predicates.md (index_register_operand): Ditto.
4047 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
4049 * reorg.c (try_merge_delay_insns): Improve correctness checking
4050 for targets with multiple delay slots.
4052 2015-04-20 Jeff Law <law@redhat.com>
4054 PR tree-optimization/65658
4055 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
4058 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
4060 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
4061 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
4064 2015-04-20 Jakub Jelinek <jakub@redhat.com>
4067 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
4069 2015-04-20 Richard Biener <rguenther@suse.de>
4071 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
4072 * gimple-fold.c (gimple_build_valueize): New function.
4073 (gimple_build): Always use gimple_build_valueize as valueize hook.
4075 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
4078 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
4079 and overwrite variable parts if <= 1/2 the elements are variable.
4081 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
4083 PR rtl-optimization/65805
4084 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
4085 Don't use difference of offset and previous offset if
4086 update_sp_offset is non-zero.
4087 (eliminate_regs_in_insn): Ditto.
4088 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
4089 lra_eliminate_regs_1 call.
4090 * lra-constraints.c (get_equiv_with_elimination): Ditto.
4092 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
4094 * hash-table.h: Remove version of hash_table that stored value_type *.
4095 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
4096 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
4097 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
4098 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
4099 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
4100 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
4101 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4102 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
4103 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
4104 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
4105 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
4106 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
4107 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4108 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4109 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4110 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
4112 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4113 Jakub Jelinek <jakub@redhat.com>
4116 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
4117 subsequent SH_NONE operand does not overwrite an existing *special
4119 (adjust_extract): Handle case where a vec_extract operation is
4120 wrapped in a PARALLEL.
4122 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
4125 * config/i386/i386.c (ix86_binds_local_p): Define only if
4126 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
4128 2015-04-17 Jeff Law <law@redhat.com>
4130 PR tree-optimization/47679
4131 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
4132 * tree-ssa-scopedtables.c: New file.
4133 * tree-ssa-scopedtables.h: New file.
4134 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
4135 (const_and_copies): Change name/type.
4136 (record_const_or_copy): Move into tree-ssa-scopedtables.c
4137 (record_const_or_copy_1): Similarly.
4138 (restore_vars_to_original_value): Similarly.
4139 (pass_dominator::execute): Create and destroy const_and_copies table.
4140 (thread_across_edge): Update passing of const_and_copies.
4141 (record_temporary_equivalence): Use method calls rather than
4142 manipulating const_and_copies directly.
4143 (record_equality, cprop_into_successor_phis): Similarly.
4144 (dom_opt_dom_walker::before_dom_children): Similarly.
4145 (dom_opt_dom_walker::after_dom_children): Similarly.
4146 (eliminate_redundant_computations): Similarly.
4147 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
4148 (record_temporary_equivalence): Likewise.
4149 (invalidate_equivalences): Likewise.
4150 (record_temporary_equivalences_from_phis): Update due to type
4151 change of const_and_copies. Use method calls rather than
4152 manipulating the stack directly.
4153 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4154 (thread_through_normal_block, thread_across_edge): Likewise.
4155 (thread_across_edge): Likewise.
4156 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4157 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
4159 (identify_jump_threads): Update due to type change of equiv_stack.
4160 (finalize_jump_threads): Delete the equiv_stack when complete.
4162 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
4164 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4165 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
4166 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
4168 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
4171 * config.gcc: Exit with a comment when we do not have a major version
4172 number for the FreeBSD target.
4174 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4177 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
4178 maybe_allows_mem bitfields.
4179 (maybe_allows_none_start, maybe_allows_none_end,
4180 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
4181 maybe_allows_mem_end): New variables.
4182 (compute_maybe_allows): New function.
4183 (add_constraint): Use it to initialize maybe_allows_reg and
4184 maybe_allows_mem fields.
4185 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
4186 is_address constraints such that those that allow neither mem nor
4187 reg come first, then those that only allow reg but not mem, then
4188 those that only allow mem but not reg, then the rest.
4189 (write_allows_reg_mem_function): New function.
4190 (write_tm_preds_h): Call it.
4191 * stmt.c (parse_output_constraint, parse_input_constraint): Use
4192 the generated insn_extra_constraint_allows_reg_mem function
4193 instead of always setting *allows_reg = true; *allows_mem = true;
4194 for unknown extra constraints.
4196 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
4199 * output.h (default_binds_local_p_3): New.
4200 * varasm.c (default_binds_local_p_3): Make it public. Take an
4201 argument to indicate if common symbol may be local. If common
4202 symbol may be local, treat non-external variable as defined
4204 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
4205 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
4206 * config/i386/i386.c (ix86_binds_local_p): New.
4207 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
4210 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4213 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
4214 trying mem_loc_descriptor on XEXP (rtl, 0).
4216 2015-04-17 Martin Liska <mliska@suse.cz>
4218 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4219 Release symbol_compare_collection.
4220 * ipa-reference.c: Add TODO that a vector should be released.
4222 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
4225 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
4226 to new AVR-LibC file layout (bug #44574).
4227 (*avrlibc_devicelib): Same.
4228 * config/avr/avr-mcus.def: Adjust comments.
4229 * config/avr/avr.opt (nodevicelib): Adjust help.
4231 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
4233 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
4235 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
4238 * gimplify.c (gimplify_init_constructor): Always emit a
4239 side-effecting constructor.
4241 2015-04-17 Tom de Vries <tom@codesourcery.com>
4243 PR tree-optimization/64950
4244 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
4245 in cfun->curr_properties.
4246 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
4247 if we generate an IFN_VA_ARG.
4248 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
4249 function if PROP_gimple_lva is not set in src function.
4251 2015-04-17 Tom de Vries <tom@codesourcery.com>
4252 Michael Matz <matz@suse.de>
4254 PR tree-optimization/64950
4255 * gimple-iterator.c (update_modified_stmts): Remove static.
4256 * gimple-iterator.h (update_modified_stmts): Declare.
4257 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
4258 (gimplify_va_arg_internal): New function.
4259 (gimplify_va_arg_expr): Use IFN_VA_ARG.
4260 * gimplify.h (gimplify_va_arg_internal): Declare.
4261 * internal-fn.c (expand_VA_ARG): New unreachable function.
4262 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
4263 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
4264 (expand_ifn_va_arg): New function.
4265 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
4266 (pass_stdarg::execute): Call expand_ifn_va_arg.
4267 (pass_data_lower_vaarg): New pass_data.
4268 (pass_lower_vaarg): New gimple_opt_pass.
4269 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
4270 (make_pass_lower_vaarg): New function.
4271 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
4272 properties_required field.
4273 * passes.def (all_passes): Add pass_lower_vaarg.
4274 * tree-pass.h (PROP_gimple_lva): Add define.
4275 (make_pass_lower_vaarg): Declare.
4277 2015-04-17 Tom de Vries <tom@codesourcery.com>
4279 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
4280 * calls.c (call_expr_flags): Same.
4282 2015-04-17 Tom de Vries <tom@codesourcery.com>
4284 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
4285 (pass_stdarg::execute): ... here.
4287 2015-04-17 Tom de Vries <tom@codesourcery.com>
4288 Michael Matz <matz@suse.de>
4290 * tree-cfg.c (make_blocks_1): Factor out of ...
4291 (make_blocks): ... here.
4292 (make_edges_bb): Factor out of ...
4293 (make_edges): ... here.
4294 (gimple_find_sub_bbs): New function.
4295 * tree-cfg.h (gimple_find_sub_bbs): Declare.
4297 2015-04-17 Tom de Vries <tom@codesourcery.com>
4299 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
4301 2015-04-17 Yury Gribov <y.gribov@samsung.com>
4303 * asan.c (set_sanitized_sections): New function.
4304 (section_sanitized_p): Ditto.
4305 (asan_protect_global): Optionally sanitize user-defined
4307 * asan.h (set_sanitized_sections): Declare new function.
4308 * common.opt (fsanitize-sections): New option.
4309 * doc/invoke.texi (-fsanitize-sections): Document new option.
4310 * opts-global.c (handle_common_deferred_options): Handle new
4313 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4316 * dwarf2out.c (loc_list_from_tree): Return NULL
4317 for DEBUG_EXPR_DECL.
4319 2015-04-17 Christian Bruel <christian.bruel@st.com>
4321 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
4324 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4326 * ira-color.c (setup_left_conflict_sizes_p): Do not process
4327 node itself when computing left conflict subnode size.
4329 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
4331 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
4332 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
4333 *fop_<mode>_1_sse using enabled attribute. Use
4334 register_mixssei387nonimm_operand operand 1 predicate. Change
4335 alternative 3 constraints from "x" to "v".
4337 2015-04-16 Richard Biener <rguenther@suse.de>
4339 PR tree-optimization/65774
4340 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
4341 bit-value tracking on.
4343 2015-04-16 Richard Biener <rguenther@suse.de>
4345 PR tree-optimization/64277
4346 * tree-vrp.c (check_array_ref): Fix anti-range handling,
4347 simplify upper bound handling.
4348 (search_for_addr_array): Simplify.
4349 (check_array_bounds): Handle ADDR_EXPRs here.
4350 (check_all_array_refs): Simplify.
4352 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
4354 * config/i386/i386.c (print_reg): Rewrite function.
4356 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4358 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
4359 Invert the condition.
4361 2015-04-16 Renlin Li <renlin.li@arm.com>
4363 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
4364 simplifications for UNSIGNED_FLOAT.
4366 2015-04-16 Nick Clifton <nickc@redhat.com>
4368 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
4370 (enum rl78_cpu_type): New.
4371 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
4372 (umulhi3_shift_virt): Remove m constraint from operand 1.
4373 (umulqihi3_virt): Likewise.
4374 * config/rl78/rl78.c (rl78_option_override): Add code to process
4375 -mcpu and -mmul options.
4376 (rl78_alloc_physical_registers): Add code to handle divhi and
4377 divsi valloc attributes.
4378 (set_origin): Likewise.
4379 * config/rl78/rl78.h (RL78_MUL_G14): Define.
4380 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
4381 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
4383 (ASM_SPEC): Pass -mcpu on to assembler.
4384 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
4385 (mulqi3_rl78): Likewise.
4386 (mulhi3_g13): Likewise.
4387 (mulhi3): Generate the G13 or G14 versions of the insn directly.
4389 (mulhi3_g14): Add clobbers of AX and BC.
4390 (mulsi3_g14): Likewise.
4391 (mulsi3_g13): Likewise.
4392 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
4393 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
4394 * config/rl78/rl78.opt (mmul): Initialise value to
4397 (m13, m14, mrl78): New option aliases.
4398 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
4399 (MULTILIB_DIRNAMES): Add g13 and g14.
4400 * doc/invoke.texi: Document -mcpu and -mmul options.
4402 2015-04-16 Richard Biener <rguenther@suse.de>
4404 * tree-ssa-ccp.c (likely_value): See if we have operands that
4405 are marked as never simulate again and return CONSTANT in this
4407 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
4408 not have any operands that will be simulated again as
4409 not being simulated again.
4411 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
4413 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
4414 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
4415 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
4417 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
4419 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
4420 *float<SWI48:mode><MODEF:mode>2_sse.
4421 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
4423 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
4426 2015-04-15 Tom de Vries <tom@codesourcery.com>
4429 * function.c (push_dummy_function): New function.
4430 (init_dummy_function_start): Use push_dummy_function.
4431 (pop_dummy_function): New function. Factored out of ...
4432 (expand_dummy_function_end): ... here.
4433 * function.h (push_dummy_function, pop_dummy_function): Declare.
4434 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
4436 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
4438 2015-04-15 Jeff Law <law@redhat.com>
4440 PR tree-optimization/47679
4441 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
4442 need for forward declaration in upcoming changes.
4443 (record_conditions, record_edge_info): Likewise.
4445 PR rtl-optimization/42522
4446 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
4447 SIGN_EXTRACT as a whole object rather than simplifying
4450 2015-04-15 Jakub Jelinek <jakub@redhat.com>
4453 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
4454 and GIMPLE_PREDICT use break instead of return true. For
4455 GIMPLE_EH_DISPATCH, compare dispatch region.
4457 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
4459 * doc/extend.texi (__sync Builtins): Simplify some text. Update
4460 details about the implementation. Make clear preference for
4461 __atomic builtins. Reduce possibility of future change.
4463 2015-04-15 Nick Clifton <nickc@redhat.com>
4465 * config/rx/rx.opt (mallow-string-insns): New option.
4466 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
4467 builtin if string instructions are denied.
4468 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
4469 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
4471 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
4472 * config/rx/rx.md (movstr): Enable pattern only if string
4473 instructions are allowed.
4474 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
4475 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
4476 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
4477 (MULTILIB_DIRNAMES): Add no-strings.
4478 * doc/invoke.texi: Document -mno-allow-string-insns.
4480 2015-04-15 Alan Modra <amodra@gmail.com>
4485 * calls.c (load_register_parameters): Don't load past end of
4486 mem unless suitably aligned.
4488 2015-04-15 Nick Clifton <nickc@redhat.com>
4490 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
4491 decrement instruction as being frame related.
4492 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
4494 If zero extending a function address enclose the operation in
4496 (rl78_preferred_reload_class): New function.
4497 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4498 * config/rl78/rl78.md: Remove useless constraints in expanders.
4499 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
4500 (mulhi3_rl78): Likewise.
4501 (mulhi3_g13): Likewise.
4502 (mulsi3_rl78): Likewise.
4503 (es_addr): Move to before the multiply patterns.
4505 2015-04-15 Alan Modra <amodra@gmail.com>
4507 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
4508 and sequence_stack. Add seq.
4509 (seq_stack): Delete.
4510 * function.c (prepare_function_start): Don't access x_last_insn.
4511 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
4512 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
4513 * emit_rtl.c (start_sequence, push_topmost_sequence,
4514 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
4516 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
4517 remove_insn): Likewise. Simplify.
4518 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
4519 and pop_topmost_sequence.
4520 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
4522 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
4524 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
4527 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
4530 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
4532 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
4533 (LEGACY_INT_REGNO_P): Ditto.
4534 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
4535 (ANY_MASK_REG_P): Remove.
4536 (BND_REG_P): Rename from ANY_BND_REG_P.
4537 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
4538 legacy integer registers. Do not handle MMX_REG_P in a special way.
4539 Merge 64byte and 32byte SSE handling.
4541 2015-04-14 Nick Clifton <nickc@redhat.com>
4543 * expr.c (expand_assignment): Force an address offset computation
4544 into a register before changing its mode.
4545 (expand_expr_real_1): Likewise.
4547 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
4549 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
4550 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
4551 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
4552 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
4553 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
4554 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
4555 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
4556 and __aarch64_vget_lane_any.
4558 2015-04-14 Jakub Jelinek <jakub@redhat.com>
4560 PR rtl-optimization/65761
4561 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
4562 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
4564 2015-04-14 Richard Biener <rguenther@suse.de>
4566 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
4567 (graphite_can_represent_scev): Use POINTER_TYPE_P.
4569 2015-04-14 Richard Biener <rguenther@suse.de>
4571 PR tree-optimization/65758
4572 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
4574 (ccp_lattice_meet): Likewise.
4575 (bit_value_unop): Likewise.
4576 (bit_value_binop): Likewise.
4577 (bit_value_assume_aligned): Likewise.
4579 2015-04-14 Christian Bruel <christian.bruel@st.com>
4581 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
4584 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
4586 PR tree-optimization/63387
4587 * match.pd ((x unord x) | (y unord y) -> (x unord y),
4588 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
4590 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
4592 * config/i386/predicates.md (any_QIreg_operand): Rename from
4593 q_regs_operand. Do not process subregs.
4594 (QIreg_operand): Use QI_REGNO_P predicate.
4595 (ext_QIreg_operand): Ditto.
4596 (ext_register_operand): Ditto.
4597 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
4598 (AND splitters): Ditto.
4599 (AND with -65536 splitter): Add SWI48 mode for operand 0.
4600 (AND with -256 splitter): Use any_QIreg_operand predicate and
4601 SWI248 mode for operand 0.
4602 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
4604 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
4606 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
4608 * doc/plugins.texi: Rewrite first introductory paragraph.
4610 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
4612 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
4613 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
4615 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
4617 * ipa-profie.c (ipa_profile): Check number of parameters
4618 and possible polymorphic call targets before
4621 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
4623 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
4624 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
4626 2015-04-13 Richard Biener <rguenther@suse.de>
4628 PR tree-optimization/65204
4629 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
4632 2015-04-13 Richard Biener <rguenther@suse.de>
4635 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
4636 and cond_not_taken_branch_cost to 4 and 2.
4637 (bdver2_cost): Likewise.
4638 (bdver3_cost): Likewise.
4639 (bdver4_cost): Likewise.
4641 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
4643 * hash-table.h (hash_table constructor): Add mem stats.
4644 (alloc_entries): Likewise.
4646 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
4648 * ipa-cp.c (ipcp_driver): Relase prev_edge.
4649 * passes.c (execute_one_pass): Only add transform if pass has one.
4651 2015-04-12 Joseph Myers <joseph@codesourcery.com>
4653 * config/i386/i386.c (ix86_option_override_internal): Don't set
4654 -fprefetch-loop-arrays if optimizing for size.
4656 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
4657 Gerald Pfeifer <gerald@pfeifer.com>
4659 * doc/contrib.texi (Contributors): Add Martin Jambor and
4662 2015-04-12 Jakub Jelinek <jakub@redhat.com>
4664 * BASE-VER: Set to 6.0.0.
4666 PR tree-optimization/65747
4667 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
4668 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
4670 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
4672 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
4673 sentence. Improve grammar.
4675 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
4677 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
4679 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
4682 * ipa-inline-transform.c (speculation_removed): Remove static var.
4683 (check_speculations): New function.
4684 (clone_inlined_nodes): Do not check spculations.
4685 (inline_call): Call check_speculations.
4686 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
4687 consider non-invariants.
4689 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
4690 Martin Liska <mliska@suse.cz>
4693 * ipa-icf.c (sem_item::compare_cgraph_references): function and
4694 variable can not match.
4695 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
4696 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
4698 2015-04-11 Jakub Jelinek <jakub@redhat.com>
4700 PR tree-optimization/65735
4701 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
4702 Remove visited_phis argument, add visited_bbs, avoid recursing into the
4703 same bb rather than just into the same phi node.
4704 (thread_through_normal_block): Adjust caller.
4706 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
4708 * doc/contrib.texi (Contributors): Add Ira Rosen.
4710 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
4712 * gcov.c (find_source): Fix miswording in error message.
4713 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
4714 (ix86_expand_sse_comi_round): Fix typo in error message.
4716 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
4718 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
4720 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
4722 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
4724 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
4727 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
4728 Print bad_spills_num and insn_pseudos_num.
4730 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4733 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
4734 when creating +1 values for SImode.
4736 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
4739 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
4742 2015-04-10 Jakub Jelinek <jakub@redhat.com>
4743 Iain Sandoe <iain@codesourcery.com>
4746 * configure: Regenerate.
4748 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
4751 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
4753 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
4755 * doc/contrib.texi (Contributors): Add John Marino.
4757 2015-04-09 Jakub Jelinek <jakub@redhat.com>
4759 PR tree-optimization/65709
4760 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
4761 TREE_TYPE (TREE_TYPE (t)).
4763 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
4766 * lra-int.h (lra_bad_spill_regno_start): New.
4767 * lra.c (lra_bad_spill_regno_start): New.
4768 (lra): Set up lra_bad_spill_regno_start. Set up
4769 lra_constraint_new_regno_start unconditionally.
4770 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
4773 2015-04-09 Marek Polacek <polacek@redhat.com>
4774 Jakub Jelinek <jakub@redhat.com>
4777 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
4778 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
4781 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
4783 PR rtl-optimization/65693
4784 * combine.c (is_parallel_of_n_reg_sets): Move outside of
4787 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
4790 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
4791 device specs file if "device-specs%s" didn't resolve to a path.
4793 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
4796 * config/i386/i386.c (fixup_modeless_constant): New.
4797 (ix86_expand_args_builtin): Fixup modeless constant operand.
4798 (ix86_expand_round_builtin): Ditto.
4799 (ix86_expand_special_args_builtin): Ditto.
4800 (ix86_expand_builtin): Ditto.
4802 2015-04-09 Jakub Jelinek <jakub@redhat.com>
4805 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
4806 any pow2 integer in between 2 and 0x80000000U inclusive.
4808 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
4810 PR rtl-optimization/65693
4811 * combine.c (is_parallel_of_n_reg_sets): Change first argument
4812 from an rtx_insn * to an rtx.
4813 (try_combine): Adjust both callers. Use it once more.
4815 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
4817 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
4818 (chkp_make_static_const_bounds): Search existing
4819 symbol by assembler name. Use make_decl_one_only.
4820 (chkp_get_zero_bounds_var): Remove node search which
4821 is now performed in chkp_make_static_const_bounds.
4822 (chkp_get_none_bounds_var): Likewise.
4824 2015-04-08 Michael Witten <mfwitten@gmail.com>
4826 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
4829 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4831 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
4833 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
4835 * doc/extend.texi (__sync Builtins): Fix grammar.
4837 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4839 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
4841 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4843 * varasm.c (emit_local): Move definition of align.
4845 2015-04-08 Julian Brown <julian@codesourcery.com>
4847 * config/nvptx/mkoffload.c (process): Support variable mapping.
4849 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
4851 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
4853 (alpha_write_one_linkage): Correct typo.
4855 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
4857 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
4859 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
4861 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
4863 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
4865 * tree-chkp.h (chkp_insert_retbnd_call): New.
4866 * tree-chkp.c (chkp_insert_retbnd_call): New.
4867 * ipa-split.c (insert_bndret_call_after): Remove.
4868 (split_function): Use chkp_insert_retbnd_call.
4869 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
4870 bounds for instrumented functions.
4872 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
4875 * calls.c (initialize_argument_information): When producing tail
4876 call also turn SSA_NAMES passed by references to original PARM_DECLs
4878 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
4881 * lra-remat.c (do_remat): Process input and non-input insn
4882 registers separately.
4884 2015-04-07 Jakub Jelinek <jakub@redhat.com>
4887 * valtrack.c (debug_lowpart_subreg): New function.
4888 (dead_debug_insert_temp): Use it.
4891 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
4892 into signed HOST_WIDE_INT the same as negative bit_offset.
4894 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
4896 * ipa-comdats.c (ipa_comdats): Visit all thunks
4897 to set proper comdat group.
4899 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4902 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
4903 on constants for NEON VSTRUCT modes.
4905 2015-04-07 Jakub Jelinek <jakub@redhat.com>
4906 Iain Sandoe <iain@codesourcery.com>
4909 * configure: Regenerate.
4911 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4914 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
4915 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
4916 that LFD is used to load double constants instead of LFS. Add
4917 defaults for all costs structures. Add comments for missing
4918 initialization fields.
4919 (size32_cost): Likewise.
4920 (size64_cost): Likewise.
4921 (rs64a_cost): Likewise.
4922 (mpccore_cost): Likewise.
4923 (ppc403_cost): Likewise.
4924 (ppc405_cost): Likewise.
4925 (ppc440_cost): Likewise.
4926 (ppc476_cost): Likewise.
4927 (ppc601_cost): Likewise.
4928 (ppc603_cost): Likewise.
4929 (ppc604_cost): Likewise.
4930 (ppc604e_cost): Likewise.
4931 (ppc620_cost): Likewise.
4932 (ppc630_cost): Likewise.
4933 (ppccell_cost): Likewise.
4934 (ppc750_cost): Likewise.
4935 (ppc7450_cost): Likewise.
4936 (ppc8540_cost): Likewise.
4937 (ppce300c2c3_cost): Likewise.
4938 (ppce500mc_cost): Likewise.
4939 (ppce500mc64_cost): Likewise.
4940 (ppce5500_cost): Likewise.
4941 (ppce6500_cost): Likewise.
4942 (titan_cost): Likewise.
4943 (power4_cost): Likewise.
4944 (power6_cost): Likewise.
4945 (power7_cost): Likewise.
4946 (power8_cost): Likewise.
4947 (ppca2_cost): Likewise.
4948 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
4950 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
4951 instead of XXLOR to copy SFmode to clear out dirty bits created
4952 when SFmode denormals are generated.
4953 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
4954 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
4956 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
4958 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
4959 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
4960 * config/aarch64/aarch64-tune.md: Regenerate.
4962 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
4964 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
4965 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
4966 * config/arm/arm-cores.def (exynos-m1): New core.
4967 * config/arm/arm-tune.md: Regenerate.
4968 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
4969 * config/arm/bpabi.h: Likewise.
4971 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
4973 * ipa-cp (set_single_call_flag): Remove too
4976 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
4978 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
4979 GOMP_offload_unregister from the destructor.
4981 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
4983 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
4984 flags for instrumentation thunk.
4985 (chkp_produce_thunks): Likewise.
4987 2015-04-05 Martin Liska <mliska@suse.cz>
4990 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
4991 has computed data structure.
4992 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
4994 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
4996 * invoke.texi (inline-unit-growth): Increase growth to 20%
4997 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
4999 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
5002 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
5004 (lra_rematerialization_iter): New.
5005 * lra.c (lra): Initialize lra_rematerialization_iter.
5006 Stop updating lra_constraint_new_regno_start after switching of
5007 inheritance and rematerialization.
5008 * lra-remat.c (lra_rematerialization_iter): New.
5009 (lra_remat): Add printing pass iteration. Do rematerialization
5010 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
5012 2015-04-04 Richard Biener <rguenther@suse.de>
5014 PR tree-optimization/64909
5015 PR tree-optimization/65660
5016 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
5017 to take a cost vector for scalar iteration cost.
5018 (vect_get_single_scalar_iteration_cost): Likewise.
5019 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
5020 Compute the scalar iteration cost into a cost vector.
5021 (vect_get_known_peeling_cost): Use the scalar cost vector to
5022 account for the cost of the peeled iterations.
5023 (vect_estimate_min_profitable_iters): Likewise.
5024 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5027 2015-04-04 Alan Modra <amodra@gmail.com>
5031 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
5032 0.0 constant unless TARGET_VSX.
5033 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
5036 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5039 * ipa-inline-transform.c (inline_call): Skip sanity check to work
5042 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5045 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
5046 speculative indirect edges to avoid ordering issue.
5048 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5051 * ipa-inline.c (edge_badness): Add combined size to the denominator.
5053 2015-04-03 Jakub Jelinek <jakub@redhat.com>
5055 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
5056 TYPE_ARTIFICIAL on the .omp_data* types.
5058 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5060 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
5061 instrumentation thunks.
5063 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5065 * config/i386/i386.c (ix86_expand_call): Avoid nested
5066 PARALLEL in returned call value.
5068 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5070 * lto-cgraph.c (input_cgraph_1): Always link instrumented
5071 assembler name with original one.
5073 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5075 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
5077 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5079 Revert parts of r216820.
5080 * config/i386/i386.md (movqi_internal): Correct type calculation
5081 for alternatives 3 and 5.
5083 2015-04-02 Jakub Jelinek <jakub@redhat.com>
5085 PR preprocessor/61977
5086 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
5087 predefine __vector/__bool/__pixel macros nor context sensitive
5089 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
5091 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
5093 * config/pa/pa.c (pa_output_move_double): Directly handle register
5094 indexed memory operand. Simplify handling of scaled register indexed
5097 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5100 * config/i386/linux-common.h (MPX_SPEC): New.
5101 (CHKP_SPEC): Add MPX_SPEC.
5102 * doc/invoke.texi (-fcheck-pointer-boudns): Document
5103 possible issues with '-z bndplt' support in linker.
5105 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5107 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
5108 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
5109 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
5110 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
5111 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
5113 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
5115 * config/i386/sync.md (UNSPEC_MOVA): Remove.
5116 (atomic_load<mode>): Change operand 0 predicate to
5117 nonimmediate_operand and fix up the destination when needed.
5119 (atomic_loaddi_fpu): Use UNSPEC_LDA.
5120 (atomic_store<mode>): Change operand 1 predicate to
5121 nonimmendate_operand and move the source to register when needed.
5123 (atomic_store<mode>_1): Use UNSPEC_STA.
5124 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
5125 Fix moves from memory operand. Use UNSPEC_STA.
5127 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5129 * expmed.c (strict_volatile_bitfield_p): Check that the access will
5130 not cross a MODESIZE boundary.
5131 (store_bit_field, extract_bit_field): Added assertions in the
5132 strict volatile bitfields code path.
5134 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
5137 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5138 Increase args array size by one to avoid buffer overflow.
5140 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
5142 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5144 * ipa-inline.c (edge_badness): Add wrapper penalty.
5145 (sum_callers): Move up.
5146 (inline_small_functions): Set single_caller.
5147 * ipa-inline.h (inline_summary): Add single_caller.
5148 * ipa-split.c (split_function): Set split_part.
5149 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
5150 * cgraph.h (cgraph_node): Add split_part.
5152 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
5155 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5156 Do not split operands 0 and operands 2 to halfmode.
5157 (atomic_compare_and_swap<mode>): Update for
5158 atomic_compare_and_swap<dwi>_doubleword changes.
5160 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
5162 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
5163 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
5166 2015-03-31 Martin Liska <mliska@suse.cz>
5169 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
5170 has already filled up function summary.
5171 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5173 2015-03-31 Richard Biener <rguenther@suse.de>
5175 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
5178 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
5180 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
5182 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
5183 (s390_asm_output_function_label): Adapt to new signature of
5184 s390_function_num_hotpatch_hw
5185 Optimise the code generating assembler output.
5186 Add comments to assembler file.
5188 2015-03-31 Richard Biener <rguenther@suse.de>
5191 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
5192 of the noreturn call so it is last and cleanup_control_flow_bb
5193 can do the CFG part.
5195 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
5198 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
5199 same_comdat_group for external symbols.
5200 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
5201 infinite same_comdat_group traversal loop.
5203 2015-03-31 Jakub Jelinek <jakub@redhat.com>
5206 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
5207 automatically to $headers.
5209 2015-03-30 Jakub Jelinek <jakub@redhat.com>
5212 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
5213 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
5215 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
5217 * ipa-prop.c (param_type_may_change_p): Likewise.
5218 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
5219 (remove_unused_scope_block_p): Add in_ctor_dtor_block
5220 argument. Before inlining, preserve
5221 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
5222 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
5224 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
5226 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5229 * ipa-inline.c (edge_badness): Base denominator on callee's
5232 2015-03-27 Martin Jambor <mjambor@suse.cz>
5235 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
5236 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
5237 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
5238 node_calling_single_call.
5239 * ipa-cp.c (count_callers): New function.
5240 (set_single_call_flag): Likewise.
5241 (initialize_node_lattices): Count callers and set single_flag_call if
5243 (incorporate_penalties): New function.
5244 (good_cloning_opportunity_p): Use it, dump new flags.
5245 (propagate_constants_topo): Set node_within_scc flag if appropriate.
5246 * doc/invoke.texi (ipa-cp-recursion-penalty,
5247 ipa-cp-single-call-pentalty): Document.
5249 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5252 * symtab.c (symtab_node::get_partitioning_class): Register vars
5254 * varpool.c (symbol_table::output_variables) Do not assemble unefined
5255 decls for non-symbols.
5257 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
5260 * output.h (default_binds_local_p_2): New.
5261 * varasm.c (default_binds_local_p_2): Renamed to ...
5262 (default_binds_local_p_3): This. Don't return true on protected
5263 data symbol if protected data may be external.
5264 (default_binds_local_p): Use default_binds_local_p_3.
5265 (default_binds_local_p_1): Likewise.
5266 (default_binds_local_p_2): New.
5267 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
5268 default_binds_local_p_2 if TARGET_MACHO is undefined.
5270 2015-03-27 Jakub Jelinek <jakub@redhat.com>
5273 * config/i386/i386.c (legitimize_pic_address): If base
5274 is SYMBOL_REF or LABEL_REF using %rip addressing, force
5275 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
5277 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5280 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
5283 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5286 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
5287 of optimized out indirect call.
5288 (redirect_to_unreachable): Always build symbol table node for
5289 BUILT_IN_UNREACHABLE
5291 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
5294 * ira-costs.c (record_reg_classes): Process all constraint string
5297 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
5299 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
5303 * config/c6x/constraints.md (S3): New constraint.
5304 * config/c6x/c6x.md (real_jump): Use it.
5306 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5309 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
5310 do redirection if the call is not optimized out.
5312 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
5315 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
5316 (fchkp-check-incomplete-type): Add LTO.
5317 (fchkp-zero-input-bounds-for-main): Likewise.
5318 (fchkp-first-field-has-own-bounds): Likewise.
5319 (fchkp-narrow-bounds): Likewise.
5320 (fchkp-narrow-to-innermost-array): Likewise.
5321 (fchkp-use-static-bounds): Likewise.
5322 (fchkp-use-static-const-bounds): Likewise.
5323 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
5325 2015-03-27 Marek Polacek <polacek@redhat.com>
5327 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
5329 2015-03-27 Marek Polacek <polacek@redhat.com>
5332 * ubsan.c (ubsan_create_edge): New function.
5333 (instrument_bool_enum_load): Call it.
5334 (instrument_nonnull_arg): Likewise.
5335 (instrument_nonnull_return): Likewise.
5336 (instrument_object_size): Likewise.
5338 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5340 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
5343 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5346 * lto-streamer.h (class lto_location_cache): New.
5347 (struct data_in): Add location_cache.
5348 (lto_input_location): Update prototype.
5349 (stream_input_location_now): New.
5350 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
5351 pointer to location.
5352 (stream_input_location): Update.
5353 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
5354 (warn_odr): Apply location cache before warning.
5355 (lto_input_location): Update prototype.
5356 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
5357 Use stream_input_location_now.
5358 * lto-streamer-in.c (lto_location_cache::current_cache): New static
5360 (lto_location_cache::cmp_loc): New function.
5361 (lto_location_cache::apply_location_cache): New function.
5362 (lto_location_cache::accept_location_cache): New function.
5363 (lto_location_cache::revert_location_cache): New function.
5364 (lto_location_cache::input_location): New function.
5365 (lto_input_location): Do location caching.
5366 (stream_input_location_now): New function.
5367 (input_eh_region, input_struct_function_base): Use
5368 stream_input_location_now.
5369 (lto_data_in_create): use new.
5370 (lto_data_in_delete): Use delete.
5371 * tree-streamer-in.c (unpack_ts_block_value_fields,
5372 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
5373 lto_input_ts_exp_tree_pointers): Update for cached location api.
5375 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5378 * passes.def: Add pass_nothrow.
5379 * ipa-pure-const.c: (pass_data_nothrow): New.
5380 (pass_nothrow): New.
5381 (pass_nothrow::execute): New.
5382 (make_pass_nothrow): New.
5383 * tree-pass.h (make_pass_nothrow): Declare.
5385 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5387 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
5388 edge to change by speculation resolution or redirection.
5389 (edge_set_predicate): Likewise.
5390 (inline_summary_t::duplicate): Likewise.
5391 (remap_edge_summaries): Likewise.
5393 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5395 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
5397 (can_inline_edge_p): Relax option matching for always inline functions.
5399 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
5402 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
5403 Check operand 4 and operand 0 for equality.
5404 (avx512f_vextract<shuffletype>32x4_1_maskm):
5405 Check operand 6 and operand 0 for equality.
5406 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
5408 (vec_extract_hi_<mode>_maskm): Ditto.
5410 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5412 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
5413 dead calls back to live.
5414 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
5416 (cgraph_node::verify_node): ... here; verify only callee edges,
5418 * cif-code.def (CILK_SPAWN): New code.
5420 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5422 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
5423 (edge_set_predicate): Use it to mark unreachable edges.
5424 (inline_summary_t::duplicate): Remove unnecesary code.
5425 (remap_edge_summaries): Likewise.
5426 (dump_inline_summary): Report contains_cilk_spawn.
5427 (compute_inline_parameters): Compute contains_cilk_spawn.
5428 (inline_read_section, inline_write_summary): Stream
5429 contains_cilk_spawn.
5430 * ipa-inline.c (can_inline_edge_p): Do not touch
5431 DECL_STRUCT_FUNCTION that may not be available;
5432 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
5433 remove check for callee_fun->can_throw_non_call_exceptions and
5434 replace it by optimization attribute check; check for flag_exceptions.
5435 * ipa-inline-transform.c (inline_call): Maintain
5436 DECL_FUNCTION_PERSONALITY
5437 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
5439 2015-03-26 Jakub Jelinek <jakub@redhat.com>
5441 PR tree-optimization/65551
5442 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
5443 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
5445 2015-03-26 Richard Biener <rguenther@suse.de>
5448 * tree-cfg.c (verify_gimple_call): Do not require a call to
5449 have no LHS if it wasn't recognized as control altering yet.
5451 2015-03-26 Jakub Jelinek <jakub@redhat.com>
5453 PR tree-optimization/64715
5454 * passes.def: Add another instance of pass_object_sizes before ccp1.
5455 * tree-object-size.c (pass_object_sizes::execute): In
5456 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
5457 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
5458 __bos result and the computed constant. Remove redundant
5459 checks, obsoleted by gimple_call_builtin_p test.
5461 * var-tracking.c (variable_tracking_main_1): Don't track
5462 variables for targetm.no_register_allocation targets.
5464 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
5466 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
5467 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
5469 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5472 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
5473 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
5474 0.0 is correctly setup.
5475 (extenddftf2_internal): Likewise.
5477 2015-03-25 Sebastian Pop <s.pop@samsung.com>
5479 PR tree-optimization/65177
5480 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
5482 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
5483 edges not adjacent on the path to the original code.
5485 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
5488 * doc/install.texi (Building a native compiler): Document new
5489 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
5490 configuration assumes that the host supports the linker plugin.
5492 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
5495 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
5496 chain for generated call.
5498 2015-03-25 Richard Biener <rguenther@suse.de>
5500 * passes.c (pass_manager::execute_early_local_passes): Guard
5501 execution of pass_chkp_instrumentation_passes with
5502 flag_check_pointer_bounds.
5503 (pass_chkp_instrumentation_passes::gate): Likewise.
5505 2015-03-25 Martin Liska <mliska@suse.cz>
5507 PR tree-optimization/65538
5508 * symbol-summary.h (function_summary::~function_summary):
5509 Relese memory for allocated summaries.
5510 (function_summary::release): New function.
5512 2015-03-25 Jakub Jelinek <jakub@redhat.com>
5515 * lto-streamer-out.c (DFS::worklist): New struct.
5516 (DFS::worklist_vec): New data member.
5517 (DFS::next_dfs_num): Remove.
5518 (DFS::DFS): Rewritten using worklist instead of recursion,
5519 using most of code from DFS::DFS_write_tree.
5520 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
5521 pass it to DFS_write_tree calls.
5522 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
5523 quick initial checks push it into worklist_vec and return.
5525 2015-03-25 Richard Biener <rguenther@suse.de>
5528 * genmatch.c (expr::gen_transform): Re-write to avoid
5531 2015-03-25 Bin Cheng <bin.cheng@arm.com>
5533 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
5535 2015-03-25 Bin Cheng <bin.cheng@arm.com>
5537 * config/arm/arm.opt (print_tune_info): New option.
5538 * config/arm/arm.c (arm_print_tune_info): New function.
5539 (arm_file_start): Call arm_print_tune_info.
5540 * config/arm/arm-protos.h (struct tune_params): Add comment.
5541 * doc/invoke.texi (@item -mprint-tune-info): New item.
5542 (-mtune): mention it in ARM Option Summary.
5544 2015-03-25 DJ Delorie <dj@redhat.com>
5546 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
5549 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
5550 Martin Liska <mliska@suse.cz>
5552 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
5553 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
5554 (sem_item::add_type): New function.
5555 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
5556 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
5557 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
5558 (sem_function::equals_wpa): Fix typo.
5559 * ipa-icf.h (sem_item::add_type): New function.
5560 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
5563 2015-03-24 Jakub Jelinek <jakub@redhat.com>
5565 PR tree-optimization/65533
5566 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
5567 with swapped operands, call vect_free_slp_tree on
5568 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
5571 2015-03-24 Richard Biener <rguenther@suse.de>
5574 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
5575 for fixup if necessary.
5577 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
5579 * doc/extend.texi (Function Attributes): Add @cindex entries
5580 for all attributes and regularize their format. Delete text
5581 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
5582 information about "eightbit_data", "tiny_data", and "model"
5583 variable attributes to the Variable Attributes section. Fix
5584 some obvious typos and copy-editing issues.
5585 (Variable Attributes, Type Attributes): Likewise add/fix
5586 @cindex entries for all attributes.
5588 2015-03-23 Jakub Jelinek <jakub@redhat.com>
5591 * tree-chkp.c (chkp_build_returned_bound): Ignore
5592 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
5594 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
5597 * config/sh/predicates.md (simple_mem_operand,
5598 displacement_mem_operand): Add test for reg.
5599 (short_displacement_mem_operand): Test for displacement_mem_operand
5600 before invoking sh_disp_addr_displacement.
5601 * config/sh/constraints.md (Sdd, Sra): Simplify.
5602 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
5603 Remove redundant displacement_mem_operand tests.
5605 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
5608 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
5609 the same -mmcu=MCU more than once.
5611 2015-03-23 Jakub Jelinek <jakub@redhat.com>
5614 * ipa-devirt.c: Remove duplicate demangle.h include.
5617 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
5619 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
5620 REG_POINTER on *destptr after adjusting it for prologue size.
5623 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
5624 ultimate_alias_target ()->order ints instead of
5625 ultimate_alias_target () pointers.
5627 2015-03-23 Richard Biener <rguenther@suse.de>
5629 PR tree-optimization/65518
5630 * tree-vect-stmts.c (vectorizable_load): Reject single-element
5631 interleaving cases we generate absymal code for.
5633 2015-03-23 Richard Biener <rguenther@suse.de>
5635 PR tree-optimization/65494
5636 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
5638 (vect_analyze_slp_instance): But do that here, always and once.
5640 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5642 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
5643 adding T or multiplying by T+1 and subracting T.
5645 2015-03-22 Jeff Law <law@redhat.com>
5647 PR rtl-optimization/64317
5648 * Makefile.in (OBJS): Add gcse-common.c
5649 * gcse.c: Include gcse-common.h
5650 (struct modify_pair_s): Move structure definition to gcse-common.h
5651 (compute_transp): Move function to gcse-common.c.
5652 (canon_list_insert): Similarly.
5653 (record_last_mem_set_info): Break out some code and put it into
5654 gcse-common.c. Call into the new common code.
5655 (compute_local_properties): Pass additional arguments to compute_transp.
5656 * postreload-gcse.c: Include gcse-common.h and df.h
5657 (modify_mem_list_set, blocks_with_calls): New variables.
5658 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
5659 (get_bb_avail_insn): Pass in the expression index too.
5660 (alloc_mem): Allocate memory for the new bitmaps and lists.
5661 (free_mem): Free memory for the new bitmaps and lists.
5662 (insert_expr_in_table): Record a bitmap index for each entry we
5664 (record_last_mem_set_info): Call into common code in gcse-common.c.
5665 (get_bb_avail_insn): If no available insn was found in the requested
5666 BB. If BB has a single predecessor, see if the expression is
5667 transparent in BB and available in that single predecessor.
5668 (compute_expr_transp): New wrapper for compute_transp.
5669 (eliminate_partially_redundant_load): Pass expression's bitmap_index
5670 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
5671 (gcse_after_reload_main): If there are elements in the hash table,
5672 then compute transparency for all the elements in the hash table.
5673 * gcse-common.h: New file.
5674 * gcse-common.c: New file.
5676 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
5678 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
5680 (System Headers): Likewise.
5682 (Traditional macros): Likewise.
5683 (Invocation): Likewise.
5684 (Option Index): Likewise.
5685 * doc/cppopts.texi (-M): Likewise.
5686 (-finput-charset): Likewise.
5688 * doc.invoke.texi (AVR Options): Likewise.
5689 (V850 Options): Likewise.
5691 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
5694 * ipa-devirt.c: Include demangle.h
5695 (odr_type_d): Add field rtti_broken.
5696 (odr_subtypes_equivalent_p): Do not require name to match.
5697 (compare_virtual_tables): Fix typo; if type already has ODR violation,
5698 bypass the tests; be ready for function referneces in vtables that are
5699 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
5700 (warn_odr): Give up for nameless types.
5701 (warn_types_mismatch): Report mismatch in mangled names;
5702 report mismatch in anonymous namespaces; look into component types to
5703 give useful error; report when mismatch is dragged in from other ODR
5705 (odr_types_equivalent_p): Match types for being polymorphic; avoid
5706 duplicated diagnostics.
5707 (add_type_duplicate): Reorder checks so more informative ones come
5708 first; fix typo; do not output "the extra base is defined here" when
5710 (BINFO_N_BASE_BINFOS): Relax sanity check.
5712 2015-03-22 Martin Liska <mliska@suse.cz>
5713 Jakub Jelinek <jakub@redhat.com>
5715 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
5716 masks that can potentially include a builtin.
5717 (ix86_add_new_builtins): Introduce fast filter for isa values
5718 that cannot trigger builtin inclusion.
5720 2015-03-22 Martin Liska <mliska@suse.cz>
5722 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
5723 (sem_item::update_hash_by_local_refs): Likewise.
5724 (sem_variable::get_hash): Empty line is fixed.
5725 (sem_item_optimizer::execute): Include adding of hash references.
5726 (sem_item_optimizer::update_hash_by_addr_refs): New function.
5727 (sem_item_optimizer::build_hash_based_classes): Use local hash.
5728 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
5729 (sem_item::update_hash_by_local_refs): Likewise.
5731 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
5734 * ipa-comdats.c (enqueue_references): Walk through thunks.
5735 (ipa_comdats): Likewise.
5736 (set_comdat_group_1): New function.
5738 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
5741 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
5744 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
5745 Gerald Pfeifer <gerald@pfeifer.com>
5747 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
5749 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5750 Sandra Loosemore <sandra@codesourcery.com>
5752 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
5753 function parameter declaration.
5754 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
5755 Update arguments to nios2_adjust_call_address().
5756 (sibcall_internal): Rename from *sibcall.
5757 (sibcall_value_internal): Rename from *sibcall_value.
5758 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
5759 (nios2_large_got_address): Add target temp reg parameter.
5760 (nios2_got_address): Adjust call to nios2_large_got_address, add
5761 force_reg around it.
5762 (nios2_load_pic_address): Add target temp reg parameter, replace call
5763 to nios2_got_address with corresponding code.
5764 (nios2_legitimize_constant_address): Update call to
5765 nios2_load_pic_address.
5766 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
5767 to use temp reg for PIC loading purposes.
5768 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
5769 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
5770 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
5772 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
5774 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
5775 usage of "the @option{...}".
5776 (-Wopenmp-simd): Likewise.
5777 (-fsanitize-recover): Likewise.
5778 (-fsanitize-undefined-trap-on-error): Likewise.
5780 (tracer-dynamic-coverage-feedback): Likewise.
5781 (reorder-block-duplicate-feedback): Likewise.
5782 (loop-unroll-jam-size): Likewise.
5785 (-mabs=legacy): Likewise.
5786 (-mupper-regs-df): Likewise.
5787 (-mupper-regs-sf): Likewise.
5788 (-mpointers-to-nested-functions): Likewise.
5790 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
5792 * doc/extend.texi (Cilk Plus Builtins): Add markup.
5794 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
5796 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
5797 additional index entries and cross-references.
5798 (-fchkp-check-incomplete-type): Likewise.
5799 (-fchkp-first-field-has-own-bounds): Likewise.
5800 (-fchkp-narrow-to-innermost-array): Likewise.
5801 (-fchkp-use-fast-string-functions): Likewise.
5802 (-fchkp-use-nochk-string-functions): Likewise.
5803 (-fchkp-use-static-const-bounds): Likewise.
5804 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
5805 (-fchkp-instrument-marked-only): Likewise.
5806 (-fchkp-use-wrappers): Likewise.
5807 (-static-libmpx): Likewise.
5808 (-static-libmpxwrappers): Likewise.
5809 * doc/extend.texi (bnd_legacy): Likewise.
5810 (bnd_instrument): Likewise.
5811 (bnd_variable_size): Likewise.
5812 (Pointer Bounds Checker builtins): Likewise.
5814 2015-03-21 Tom de Vries <tom@codesourcery.com>
5816 PR tree-optimization/65458
5817 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
5818 * cgraph.h (cgraph_node): Add parallelized_function field.
5819 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
5820 (input_overwrite_node): Read parallelized_function field.
5821 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
5822 parallelized_function on cgraph_node for child_fn.
5823 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
5824 Remove include of gt-tree-parloops.h.
5825 (parallelized_functions): Remove static variable.
5826 (parallelized_function_p): Rewrite using parallelized_function field of
5828 (create_loop_fn): Remove adding to parallelized_functions.
5829 * Makefile.in (GTFILES): Remove tree-parloops.c
5831 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
5833 PR rtl-optimization/64366
5834 * lra.c (lra_update_insn_regno_info): Consider regs in
5835 CALL_INSN_FUNCTION_USAGE memory.
5837 2015-03-20 Richard Biener <rguenther@suse.de>
5840 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
5841 for type comparison and gcc_checking_assert.
5842 (chrec_fold_plus_poly_poly): Likewise.
5843 (chrec_fold_multiply_poly_poly): Likewise.
5844 (chrec_convert_1): Likewise.
5845 * gimplify.c (gimplify_expr): Remove premature folding of
5846 &X + CST to &MEM[&X, CST].
5848 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
5850 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
5852 (ipa_inline): Recompute inline_failed codes.
5853 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
5854 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
5857 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
5859 PR rtl-optimization/60851
5860 * recog.c (constrain_operands): Accept a pseudo register before reload
5861 for LRA enabled targets.
5863 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
5866 * config/rs6000/predicates.md (easy_fp_constant): Remove special
5867 -ffast-math handling that kept non-0 constants live in the RTL
5868 until reload. Remove logic testing the number of instructions it
5869 took to create a constant in a GPR that was never used, due to a
5870 test for soft-float earlier.
5871 (memory_fp_constant): Delete, no longer used.
5873 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
5874 alternatives for loading non-0 constants into GPRs for hard
5875 floating point that is no longer needed due to changes in
5876 easy_fp_constant. Add support for loading 0.0 into GPRs.
5877 (mov<mode>_hardfloat32): Likewise.
5878 (mov<mode>_hardfloat64): Likewise.
5879 (mov<mode>_64bit_dm): Likewise.
5880 (movtd_64bit_nodm): Likewise.
5881 (pre-reload move FP constant define_split): Delete define_split,
5882 since it is no longer used.
5883 (extenddftf2_internal): Remove GHF constraints that are not valid
5886 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
5888 PR rtl-optimization/63491
5889 * lra-constraints.c (check_and_process_move): Use src instead of
5890 sreg. Remove some dead code.
5892 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
5895 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
5896 (sem_variable::merge): Likewise.
5898 2015-03-19 Martin Liska <mliska@suse.cz>
5901 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
5902 all fields of cgraph_thunk_info.
5904 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
5906 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
5907 clone instrumented thunks.
5909 2015-03-19 Richard Biener <rguenther@suse.de>
5912 2015-03-10 Richard Biener <rguenther@suse.de>
5915 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
5916 * tree-ssa-coalesce.c: Include timevar.h.
5917 (attempt_coalesce): Handle graph being NULL.
5918 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
5919 Split out abnormal coalescing to ...
5920 (perform_abnormal_coalescing): ... this function.
5921 (coalesce_ssa_name): Perform abnormal coalescing without computing
5923 (verify_ssa_coalescing_worker): New function.
5924 (verify_ssa_coalescing): Likewise.
5926 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5927 Jakub Jelinek <jakub@redhat.com>
5930 * tsan.c (instrument_gimple): Clear tail call flag on
5933 2015-03-19 Jakub Jelinek <jakub@redhat.com>
5936 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
5937 call in the return bb.
5938 (find_split_points): Add RETURN_BB argument, don't call
5940 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
5941 if true append TSAN_FUNC_EXIT internal call after the call to
5942 the split off function.
5943 (execute_split_functions): Call find_return_bb here.
5944 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
5945 Adjust find_split_points and split_function calls.
5947 2015-03-18 DJ Delorie <dj@redhat.com>
5949 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
5950 (iorqi3_virt): Likewise.
5952 2015-03-18 Tom de Vries <tom@codesourcery.com>
5954 * tree-parloops.c (parallelize_loops): Make static.
5955 * tree-parloops.h (parallelize_loops): Remove extern declaration.
5957 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
5961 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
5963 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
5964 condition would be removed due to undefined behaviour.
5966 2015-03-18 Martin Liska <mliska@suse.cz>
5969 * cgraph.c (cgraph_node::get_create): Remove unnecessary
5970 xstrdup_for_dump wrapper.
5971 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
5973 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
5974 with xstrdup_for_dump.
5975 (sem_variable::equals): Likewise.
5976 (sem_item_optimizer::read_section): Use symtab_node::name instead of
5978 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
5979 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
5980 symtab_node::asm_name with xstrdup_for_dump.
5981 (congruence_class::dump): Use symtab_node::name instead of
5983 * ipa-icf.h (symtab_node::name): Remove.
5984 (symtab_node::asm_name): Likewise.
5986 2015-03-18 Jakub Jelinek <jakub@redhat.com>
5988 PR tree-optimization/65450
5989 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
5991 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
5992 it instead of duplicate_ssa_name_ptr_info.
5995 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
5997 2015-03-18 Richard Biener <rguenther@suse.de>
5999 * tree-data-ref.h (struct access_matrix): Remove.
6000 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6001 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6002 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
6003 (am_vector_index_for_loop): Likewise.
6004 (struct data_reference): Remove access_matrix member.
6005 (DR_ACCESS_MATRIX): Remove.
6006 (lambda_vector_new): Add comment.
6007 (lambda_matrix_new): Use XOBNEWVEC.
6009 2015-03-18 Richard Biener <rguenther@suse.de>
6011 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
6012 (pass_ch::execute): Cleanup the CFG only if we did sth.
6013 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
6015 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6017 * expmed.c (synth_mult): Use std::swap instead of manually
6018 swapping algorithms.
6020 2015-03-18 Jakub Jelinek <jakub@redhat.com>
6023 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
6025 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
6028 * config/avr/avr.opt (-nodevicelib): New option.
6029 * doc/invoke.texi (AVR Options): Document it.
6030 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
6031 libgcc.a, libc.a, libm.a.
6032 * config/avr/specs.h: Same.
6033 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
6034 which don't (directly) depend on the device. Print more help.
6035 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
6036 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
6037 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
6039 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
6040 for specs file name.
6041 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
6042 * config/avr/avr-mcus.def: Adjust initializers and comments.
6044 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
6046 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
6047 DECL_ONE_ONLY to check if decl is one only.
6048 * ipa-split.c (consider_split): Limit splitt of one only functions.
6050 2015-03-16 Jakub Jelinek <jakub@redhat.com>
6052 PR tree-optimization/65427
6053 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
6055 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
6057 2015-03-16 Marek Polacek <polacek@redhat.com>
6059 * cgraph.h (add_new_static_var): Remove declaration.
6060 * varpool.c (add_new_static_var): Remove function.
6062 2015-03-16 Jakub Jelinek <jakub@redhat.com>
6064 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
6065 instead of vec<tree> * with vec_alloc and release for args.
6069 * omp-low.c (delete_omp_context): Only splay_tree_delete
6070 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
6071 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
6073 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
6076 * cfgexpand.c (align_base): New function.
6077 (alloc_stack_frame_space): Call it.
6078 (expand_stack_vars): Align prev_frame to be sure
6079 data->asan_vec elements aligned properly.
6081 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
6084 * expr.c (store_field): Do not do a direct block copy if the source is
6085 a PARALLEL with BLKmode.
6087 2015-03-16 Tom de Vries <tom@codesourcery.com>
6091 2015-03-12 Tom de Vries <tom@codesourcery.com>
6093 PR rtl-optimization/64895
6094 * lra-lives.c (check_pseudos_live_through_calls): Use
6095 actual_call_used_reg_set instead of call_used_reg_set, if available.
6097 2015-03-16 Alan Modra <amodra@gmail.com>
6100 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
6101 Modify Z->r bswapdi splitter to use dest in place of scratch.
6102 In r->Z and Z->r bswapdi splitter rename word_high, word_low
6103 to word1, word2 and rearrange logic to suit.
6104 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
6105 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
6106 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
6107 Add one '?' on r->r. Modify Z->r splitter to avoid need for
6110 2015-03-14 Jakub Jelinek <jakub@redhat.com>
6112 PR tree-optimization/65369
6113 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
6114 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
6115 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
6117 PR tree-optimization/65418
6118 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
6119 are casts in the first PLUS_EXPR operand, ensure tbias and
6120 *totallowp are in the inner type.
6122 PR rtl-optimization/65401
6123 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
6124 argument. If true, adjust_address_nv of x with big-endian
6125 correction for the mode widening to GET_MODE (y).
6126 (make_field_assignment): Don't do MEM mode widening here.
6127 Use MEM_P instead of GET_CODE == MEM.
6129 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6131 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
6134 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6137 * config/arm/arm.c (arm_gen_constant, AND case): Use
6138 ARM_SIGN_EXTEND when constructing AND mask.
6140 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6142 * graph.c (print_graph_cfg): Make function names visible and append
6143 parenthesis to it. Also make groups of basic blocks belonging to the
6144 same function visible.
6146 2015-03-12 Richard Biener <rguenther@suse.de>
6149 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
6150 to avoid quadratic behavior with inline expansion splitting blocks.
6151 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
6152 with the successor if the predecessor will be merged with it.
6153 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
6154 entry block with its successor.
6156 2015-03-13 Richard Biener <rguenther@suse.de>
6159 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
6160 (cleanup_tree_cfg_1): Do not call it.
6161 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
6162 (fixup_noreturn_call): Mark the stmt as control altering.
6163 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
6165 (pass_data_fixup_cfg): Produce a dump file.
6166 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
6167 (need_noreturn_fixup): New global.
6168 (pass_dominator::execute): Fixup queued noreturn calls.
6169 (optimize_stmt): Queue calls that became noreturn for fixup.
6170 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
6171 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
6172 (el_to_fixup): New global.
6173 (eliminate_dom_walker::before_dom_childre): Queue calls that
6174 became noreturn for fixup.
6175 (eliminate): Fixup queued noreturn calls.
6176 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
6177 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
6178 (substitute_and_fold_dom_walker::before_dom_children): Queue
6179 alls that became noreturn for fixup.
6180 (substitute_and_fold): Fixup queued noreturn calls.
6182 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
6184 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
6185 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
6186 are building; for methods check ODR type of class they belong to if
6187 they may lead to a polymorphic call.
6188 (sem_function::compare_polymorphic_p): Be bit smarter about testing
6189 when function may lead to a polymorphic call.
6190 (sem_function::compare_type_list): Remove.
6191 (sem_variable::equals): Update use of compatible_types_p.
6192 (sem_variable::parse_tree_refs): Remove.
6193 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
6195 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
6197 (func_checker::compatible_polymorphic_types_p): Break out from ...
6198 (unc_checker::compatible_types_p): ... here.
6199 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
6201 (unc_checker::compatible_types_p): Update.
6202 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
6205 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6207 PR rtl-optimization/65235
6208 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
6209 When first element of vec_concat is const_int, calculate its size
6210 using second element.
6212 2015-03-12 Richard Biener <rguenther@suse.de>
6215 * fold-const.c (operand_equal_p): Fix ordering of resetting
6216 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
6218 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
6220 * config/s390/s390.c (s390_reorg): Move code to output nops after label
6222 (s390_asm_output_function_label): Likewise.
6223 * config/s390/s390.c (s390_asm_output_function_label):
6224 Fix function label alignment with -mhtopatch.
6225 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
6226 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
6227 ("nop_2_byte"): New define_insn.
6228 ("nop_4_byte"): Likewise.
6229 ("nop_6_byte"): Likewise.
6230 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
6231 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
6233 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
6236 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
6239 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
6242 * toplev.c (process_options): Restrict Pointer Bounds Checker
6243 usage with Address Sanitizer.
6245 2015-03-12 Richard Biener <rguenther@suse.de>
6247 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
6249 * omp-low.c (expand_omp_taskreg): Split block before removing
6251 (expand_omp_target): Likewise.
6252 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
6253 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
6254 stmt to split_block.
6256 2015-03-12 Tom de Vries <tom@codesourcery.com>
6258 PR rtl-optimization/64895
6259 * lra-lives.c (check_pseudos_live_through_calls): Use
6260 actual_call_used_reg_set instead of call_used_reg_set, if available.
6262 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
6264 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
6265 (cgraph_node::remove): Likewise.
6266 (cgraph_node::get_untransformed_body): Likewise.
6267 * varpool.c (varpool_node::remove): Likewise.
6268 (varpool_node::get_constructor): Add sanity check.
6270 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
6272 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
6274 (-fabi-compat-version): Likewise.
6275 (-ffriend-injection): Likewise.
6276 (-Wdeclaration-after-statement): Likewise.
6277 (-fomit-frame-pointer): Likewise.
6278 (-ftree-coalesce-inlined-vars): Likewise.
6279 (-fvisibility=): Likewise.
6280 * doc/extend.texi (Typeof): Likewise.
6281 (Zero Length): Likewise.
6282 (Escaped Newlines): Likewise.
6283 (Compound Literals): Likewise.
6284 (Function Attributes): Likewise.
6285 (Label Attributes): Likewise.
6286 (Type Attributes): Likewise.
6287 (Function Names): Likewise.
6288 (Other Builtins): Likewise.
6289 (Function Specific Option Pragmas): Likewise.
6290 (C++ Interface): Likewise.
6292 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
6294 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
6296 2015-03-11 Marek Polacek <polacek@redhat.com>
6298 PR tree-optimization/65388
6299 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
6301 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
6304 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
6305 * configure: Regenerate.
6306 * config.in: Regenerate.
6307 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
6308 [-mn-flash]: Document it.
6309 [__AVR_ARCH__]: Document avrtiny.
6311 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
6312 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
6313 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
6315 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6317 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
6319 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6322 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
6323 allow reloads of PLUS in floating point/VSX registers.
6325 2015-03-11 Junmo Park <junmoz.park@samsung.com>
6327 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
6329 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
6331 2015-03-11 Richard Biener <rguenther@suse.de>
6333 PR tree-optimization/65310
6334 * tree-sra.c (build_ref_for_offset): Also preserve larger
6337 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
6339 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
6341 2015-03-10 Jakub Jelinek <jakub@redhat.com>
6344 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
6346 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
6348 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
6350 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
6351 (sem_function::equals_wpa): ... here.
6353 2015-03-10 Marek Polacek <polacek@redhat.com>
6354 Jakub Jelinek <jakub@redhat.com>
6357 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
6358 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
6361 2015-03-10 Jakub Jelinek <jakub@redhat.com>
6364 * config/rs6000/t-linux: For powerpc64* target set
6365 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
6367 2015-03-10 Richard Biener <rguenther@suse.de>
6370 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
6371 for redirect_all_calls.
6373 2015-03-10 Marek Polacek <polacek@redhat.com>
6375 * gdbinit.in (pcfun): Define and document.
6377 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
6379 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
6380 of libgomp-plugin.h.
6381 (find_target_compiler): Support a case when the path to gcc is
6382 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
6383 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
6384 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
6386 (main): Use GCC_INSTALL_NAME as target_driver_name.
6387 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
6389 (mkoffload.o): Remove obsolete include path and defines.
6390 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
6392 2015-03-10 Richard Biener <rguenther@suse.de>
6395 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6396 * tree-ssa-coalesce.c: Include timevar.h.
6397 (attempt_coalesce): Handle graph being NULL.
6398 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6399 Split out abnormal coalescing to ...
6400 (perform_abnormal_coalescing): ... this function.
6401 (coalesce_ssa_name): Perform abnormal coalescing without computing
6403 (verify_ssa_coalescing_worker): New function.
6404 (verify_ssa_coalescing): Likewise.
6406 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
6409 * config.gcc (extra_options) [avr]: Remove.
6410 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
6411 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
6412 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
6414 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
6415 (-mmcu=): Add Var and MissingArgError properties.
6417 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
6418 * config/avr/t-multilib: Regenerate.
6419 * config/avr/specs.h: New file.
6420 * config/avr/driver-avr.c: New file.
6421 * config/avr/genopt.sh: Remove file.
6422 * config/avr/avr-tables.opt: Remove file.
6423 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
6424 * config/avr/avr-c.c: Same.
6426 (avr_current_device): Remove proto.
6427 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
6428 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
6429 (EXTRA_SPEC_FUNCTIONS): Define.
6430 (avr_devicespecs_file): New specs function proto.
6431 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
6432 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
6433 (avr_current_device): Remove definition and usage.
6434 (avr_set_core_architecture): New static function.
6435 (avr_option_override): Use it.
6436 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
6437 (mcu_name): New static array.
6438 (comparator, avr_archs_str, avr_mcus_str): New static functions.
6439 (avr_inform_devices, avr_inform_core_architectures): New functions.
6440 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
6441 (avrlibc.h) [WITH_AVRLIBC]: Include.
6442 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
6443 (print_mcu): Rewrite from scratch.
6444 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
6445 Forward to avr-specific specs defined in device-specs file.
6446 * config/avr/t-avr (driver-avr.o): New rule.
6447 (avr-devices.o): Depend on avr-arch.h.
6448 (avr-mcus): No more depend on avr-tables.opt.
6449 (avr-tables.opt): Remove rule.
6450 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
6452 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
6454 * c-family/c.opt (fchkp-use-wrappers): New.
6455 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
6456 (chkp_wrap_function): New.
6457 (chkp_build_instrumented_fndecl): Support wrapped
6459 * doc/invoke.texi (-fcheck-pointer-bounds): New.
6460 (-fchkp-check-incomplete-type): New.
6461 (-fchkp-first-field-has-own-bounds): New.
6462 (-fchkp-narrow-bounds): New.
6463 (-fchkp-narrow-to-innermost-array): New.
6464 (-fchkp-optimize): New.
6465 (-fchkp-use-fast-string-functions): New.
6466 (-fchkp-use-nochk-string-functions): New.
6467 (-fchkp-use-static-bounds): New.
6468 (-fchkp-use-static-const-bounds): New.
6469 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
6470 (-fchkp-check-read): New.
6471 (-fchkp-check-write): New.
6472 (-fchkp-store-bounds): New.
6473 (-fchkp-instrument-calls): New.
6474 (-fchkp-instrument-marked-only): New.
6475 (-fchkp-use-wrappers): New.
6476 (-static-libmpx): New.
6477 (-static-libmpxwrappers): New.
6479 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
6481 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
6482 (CHKP_SPEC): Add wrappers library.
6483 * c-family/c.opt (static-libmpxwrappers): New.
6485 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
6487 * config/i386/linux-common.h (LIBMPX_LIBS): New.
6490 * gcc.c (CHKP_SPEC): New.
6491 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
6492 * c-family/c.opt (static-libmpx): New.
6494 2015-03-10 Richard Biener <rguenther@suse.de>
6497 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
6499 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
6500 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
6501 (cgraph_add_edge_to_call_site_hash): Likewise.
6502 (cgraph_node::get_edge): Likewise.
6503 (cgraph_edge::set_call_stmt): Likewise.
6504 (cgraph_edge::remove_caller): Likewise.
6506 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
6508 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
6509 (callee_saved_gpr_regs_size): ... this.
6510 (callee_saved_regs_first_regno): Rename to ...
6511 (callee_saved_first_gpr_regno): ... this.
6512 (callee_saved_regs_last_regno) Rename to ...
6513 (callee_saved_last_gpr_regno): ... this.
6514 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
6516 (nds32_initial_elimination_offset): Likewise.
6517 (nds32_expand_prologue): Likewise.
6518 (nds32_expand_epilogue): Likewise.
6519 (nds32_expand_prologue_v3push): Likewise.
6520 (nds32_expand_epilogue_v3pop): Likewise.
6521 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6522 Adjust renamed variables.
6523 (nds32_output_stack_pop): Likewise.
6525 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
6527 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
6530 2015-03-10 Jakub Jelinek <jakub@redhat.com>
6532 PR rtl-optimization/65321
6533 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
6535 * var-tracking.c (use_narrower_mode): Likewise.
6537 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
6539 PR tree-optimization/65355
6540 * varasm.c (notice_global_symbol): Do not produce RTL.
6541 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
6543 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6544 check for section anchors.
6546 2015-03-10 Alan Modra <amodra@gmail.com>
6549 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
6550 to be single-arch by default. Set cpu_is_64bit for powerpc64
6551 given --with-cpu=native.
6552 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
6553 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
6555 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
6556 rs6000_isa_flags rather than TARGET_64BIT.
6558 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
6559 Kaz Kojima <kkojima@gcc.gnu.org>
6561 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
6563 2015-03-09 Jakub Jelinek <jakub@redhat.com>
6566 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
6567 on a TREE_BINFO, instead use BINFO_TYPE.
6569 2015-03-09 Richard Biener <rguenther@suse.de>
6572 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
6573 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
6574 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
6575 of that. When comparing dereferences compare alignment.
6576 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
6578 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
6580 * ipa-inline-analysis.c (check_callers): Check
6581 node->can_remove_if_no_direct_calls_and_refs_p.
6582 (growth_likely_positive): Reorganize to call
6583 can_remove_if_no_direct_calls_p later.
6584 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
6585 will_be_removed_from_program_if_no_direct_calls_p): Add
6586 will_inline parameter.
6587 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
6588 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
6589 Handle inliner case correctly.
6591 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
6593 PR tree-optimization/63743
6594 * cfgexpand.c (reorder_operands): Also reorder if only second operand
6595 had its definition forwarded by TER.
6597 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
6600 * ipa-utils.h (types_odr_comparable): Add strict argument.
6601 * ipa-devirt.c: Fix whitespace;
6602 (odr_hasher): Remove.
6603 (odr_name_hasher, odr_vtable_hasher): New hashers.
6604 (can_be_name_hashed_p): New predicate.
6605 (hash_type_name): remove.
6606 (hash_odr_name): New.
6607 (odr_name_hasher::hash): new.
6608 (can_be_vtable_hashed_p): New.
6609 (hash_odr_vtable): New.
6610 (odr_vtable_hasher::hash): New.
6611 (types_same_for_odr): Add strict parameter.
6612 (types_odr_comparable): Likewise.
6613 (odr_name_hasher::equal): New.
6614 (odr_vtable_hasher::equal): New.
6615 (odr_name_hasher::remove): New.
6616 (odr_hash_type): Change to hash_table<odr_name_hasher>.
6617 (odr_vtable_hash_type): New.
6618 (odr_vtable_hash): New.
6619 (odr_subtypes_equivalent_p): Do strict comparsion.
6620 (add_type_duplicate): Merge type names; cleanup; avoid type
6622 (register_odr_type): Initialize vtable hash.
6623 (build_type_inheritance_graph): Likewise
6624 (get_odr_type): Reorg to use two hashes.
6625 (dump_possible_polymorphic_call_targets): Move sanity check after debug
6627 (ipa_devirt): Dump type_inheritance_graph.
6628 (types_same_for_odr): Add strict mode.
6630 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
6633 * cgraph.h (symtab_node): Add definition_alignment,
6634 can_increase_alignment_p and increase_alignment.
6635 * symtab.c (symtab_node::can_increase_alignment_p,
6636 increase_alignment_1, symtab_node::increase_alignment,
6637 symtab_node::definition_alignment): New.
6638 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
6639 can_increase_alignment_p.
6640 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
6641 * tree-vect-stmts.c (ensure_base_align): Likewise.
6642 * varasm.c (function_section_1): Use definition_alignment.
6643 (assemble_start_function): Likewise.
6644 (emit_local): likewise.
6645 (build_constant_desc): Likewsie.
6646 (output_constant_def_contents): Likewise.
6647 (place_block_symbol): Likewise.
6648 (output_object_block): Likewise.
6650 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
6653 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
6654 when outputting debug.
6656 2015-03-07 Marek Polacek <polacek@redhat.com>
6657 Martin Uecker <uecker@eecs.berkeley.edu>
6660 * doc/invoke.texi: Update description of -fsanitize=bounds.
6662 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
6664 * tree-ssa-phiopt.c (neg_replacement): Remove.
6665 (tree_ssa_phiopt_worker): Remove negate optimization.
6667 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
6670 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
6672 2015-03-06 Richard Biener <rguenther@suse.de>
6675 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
6676 and liveout_obstack members.
6677 (calculate_live_on_exit): Remove.
6678 (calculate_live_ranges): Change declaration.
6679 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
6680 (new_tree_live_info): Adjust.
6681 (calculate_live_ranges): Delete livein when not wanted.
6682 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
6683 Deal with partly deleted live info.
6684 (loe_visit_block): Remove temporary bitmap by using
6685 bitmap_ior_and_compl_into.
6686 (live_worklist): Adjust accordingly.
6687 (calculate_live_on_exit): Make static.
6688 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
6689 we do not need livein.
6691 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
6693 * real.c (real_from_string): Fix typo in assertion.
6695 2015-03-06 Alex Velenko <alex.velenko@arm.com>
6697 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
6700 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
6702 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
6704 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
6707 * lra-assigns.c (find_hard_regno_for): Rename to
6708 find_hard_regno_for_1. Add a new parameter.
6709 (find_hard_regno_for): New function using find_hard_regno_for_1.
6711 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6713 PR rtl-optimization/65067
6714 * expmed.c (store_bit_field, extract_bit_field): Reworked the
6715 strict volatile bitfield handling.
6717 2015-03-05 Martin Liska <mliska@suse.cz>
6720 * ipa-icf.c (sem_variable::equals): Compare variables types.
6722 2015-03-05 Richard Henderson <rth@redhat.com>
6725 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
6726 correctly check weak symbol binding.
6728 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
6731 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
6734 2015-03-05 Martin Liska <mliska@suse.cz>
6736 * ipa-inline.c (inline_small_functions): Set default value to
6737 prevent warning during bootstrap.
6738 * tree.h: Add pragma guard that ignores false positives during
6741 2015-03-05 Richard Biener <rguenther@suse.de>
6743 PR tree-optimization/65310
6744 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6745 Properly preserve alignment of the base of the access.
6747 2015-03-05 Richard Biener <rguenther@suse.de>
6750 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
6751 Compare dependence info.
6753 2015-03-05 Richard Biener <rguenther@suse.de>
6756 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
6758 (walk_ssa_copies): Revert last chage. Instead do not walk
6759 SSA names registered for SSA update.
6761 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
6764 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
6765 vtable references for their containing type.
6766 (sem_function::equals_wpa): Compare TYPE_RESTRICT
6767 and type attributes.
6769 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
6771 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
6773 * stor-layout.c (finalize_record_size): Revert latest change.
6775 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
6777 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
6779 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
6781 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
6782 for correct comdat handling.
6783 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
6785 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
6786 (used_from_object_file_p_worker): Remove.
6787 (cgraph_node::only_called_directly_or_alised): Add
6788 used_from_object_file_p.
6789 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
6790 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
6791 can_remove_if_no_direct_calls_and_refs_p.
6793 2015-03-04 Nick Clifton <nickc@redhat.com>
6795 * config/rl78/rl78.h (enum reg_class): Remove real registers from
6796 General register class.
6797 * config/rl78/rl78-real.md: Replace general register constraints
6798 with real+virtual register constraints.
6800 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6802 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
6803 from checking for -mhtm option.
6805 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
6807 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
6808 (struct ipa_sra_check_caller_data): Add has_thunk field.
6809 (ipa_sra_check_caller): Check for thunk.
6810 (ipa_sra_preliminary_function_checks): Give up on function with
6812 (ipa_early_sra): Use call_for_symbol_and_aliases.
6814 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
6817 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
6818 called for __stack_chk_guard symbol.
6820 2015-03-03 DJ Delorie <dj@redhat.com>
6822 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
6824 (*addhi3_real): Likewise.
6825 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
6826 pattern to match incrementing memory.
6827 * config/rl78/predicates.md (rl78_1_2_operand): New.
6828 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
6829 it's the same and only mem.
6830 (rl78_alloc_physical_registers_op2): If there's effectively only
6831 one MEM, transcode it into HL.
6832 (rl78_far_p): Reject addresses that aren't legitimate.
6834 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
6836 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
6839 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
6841 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
6843 Implement call0 ABI for xtensa
6844 * config/xtensa/constraints.md ("a" constraint): Include stack
6845 pointer in case of call0 ABI.
6846 ("q" constraint): Make empty in case of call0 ABI.
6847 ("D" constraint): Include stack pointer in case of call0 ABI.
6848 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
6849 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
6851 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
6853 (xtensa_regno_to_class): Make it a local variable in the
6854 function xtensa_regno_to_class.
6855 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
6856 macro, function prototype and implementation.
6857 (reg_nonleaf_alloc_order): Make it a local variable in the
6858 function order_regs_for_local_alloc.
6859 (xtensa_conditional_register_usage): New function.
6860 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
6861 (xtensa_valid_move): Allow direct moves to stack pointer
6862 register in call0 ABI.
6863 (xtensa_setup_frame_addresses): Only spill register windows in
6865 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
6866 call0 ABI respectively.
6867 (xtensa_function_arg_1): Only mark a7 register for copying in
6869 (xtensa_call_save_reg): New function.
6870 (compute_frame_size): Add space for callee saved register
6871 storage to the frame size in call0 ABI.
6872 (xtensa_expand_prologue): Generate code to set up stack frame
6873 and save callee-saved registers in call0 ABI.
6874 (xtensa_expand_epilogue): New function.
6875 (xtensa_set_return_address): New function.
6876 (xtensa_return_addr): Calculate return address in call0 ABI.
6877 (xtensa_builtin_saveregs): Only mark a7 register for copying and
6878 emit copying code in windowed ABI.
6879 (order_regs_for_local_alloc): Add preferred register allocation
6880 order for non-leaf function in call0 ABI.
6881 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
6882 (xtensa_asm_trampoline_template): Add trampoline generation for
6884 (xtensa_trampoline_init): Add trampoline initialization for
6886 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
6888 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
6889 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
6890 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
6891 ABI call-used registers.
6892 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
6893 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
6895 (REG_CLASS_CONTENTS): Include all registers into the preferred
6896 reload registers set, adjust the set in the
6897 xtensa_conditional_register_usage.
6898 (xtensa_regno_to_class): Drop variable declaration.
6899 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
6901 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
6903 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
6904 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
6905 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
6906 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
6907 location in call0 ABI.
6908 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
6909 stack adjustment size when handling exception.
6910 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
6911 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
6913 ("return" pattern): Generate ret.n/ret in call0 ABI.
6914 ("epilogue" pattern): Expand epilogue.
6915 ("nonlocal_goto" pattern): Use default in call0 ABI.
6916 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
6917 emit eh_set_a0_* depending on ABI.
6918 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
6919 ("eh_set_a0_call0", "blockage"): New patterns.
6921 2015-03-03 Martin Liska <mliska@suse.cz>
6924 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
6926 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6929 * config/rs6000/rs6000-tables.opt: Regenerate table.
6931 2015-03-03 Renlin Li <renlin.li@arm.com>
6933 * doc/md.texi (@item ^): Change ? into ^.
6935 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
6937 * doc/tm.texi: Regenerated.
6939 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
6941 * builtins.c (expand_builtin_return_addr): Add
6942 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
6944 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
6946 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
6948 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
6950 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
6953 2015-03-03 Martin Jambor <mjambor@suse.cz>
6954 Eric Botcazou <ebotcazou@adacore.com>
6956 * tree-sra.c (ipa_sra_check_caller_data): New type.
6957 (has_caller_p): Removed.
6958 (ipa_sra_check_caller): New function.
6959 (ipa_sra_preliminary_function_checks): Use it.
6961 2015-03-03 Martin Liska <mliska@suse.cz>
6963 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
6964 instead of if branch.
6966 2015-03-03 Martin Liska <mliska@suse.cz>
6969 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
6971 2015-03-23 Jeff Law <law@redhat.com>
6973 PR tree-optimization/65241
6974 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
6975 hash table if INSERT is true.
6977 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
6980 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
6982 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
6985 * config/avr/avr.c (context.h, tree-pass.h): Include them.
6986 (avr_pass_data_recompute_notes): New static variable.
6987 (avr_pass_recompute_notes): New class.
6988 (avr_register_passes): New static function.
6989 (avr_option_override): Call it.
6991 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
6993 Fix various problems with specs file generation.
6996 * config.gcc (extra_gcc_objs) [avr]: Remove.
6997 * config/avr/driver-avr.c: Remove file.
6998 * config/avr/t-avr (driver-avr.o): Remove rule.
6999 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
7000 INCLUDES to build. Depend on TM_H.
7001 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
7002 build warnings. Fix non-matching types and non-existing %-codes.
7004 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
7005 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
7006 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
7007 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
7008 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
7009 (LIBGCC_SPEC): Remove definitions.
7011 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
7013 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
7014 to create a register in testing mode.
7016 2015-03-03 Martin Liska <mliska@suse.cz>
7017 Jan Hubicka <hubicka@ucw.cz>
7020 * cgraph.c (cgraph_node::has_thunk_p): New function.
7021 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
7022 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
7023 (sem_function::merge): Assert is changed.
7025 2015-03-03 Martin Liska <mliska@suse.cz>
7026 Martin Jambor <mjambor@suse.cz>
7029 * ipa-icf.c (sem_item_optimizer::execute): Change function
7030 return value to boolean.
7031 (sem_item_optimizer::merge_classes): Likewise.
7032 (ipa_icf_driver): Return TODO_remove_functions in case there's
7033 a merge operation processed.
7034 * ipa-icf.h: Change function return value to boolean.
7036 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7039 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
7040 processor type for 64-bit little endian PowerPC.
7042 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7043 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
7044 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
7045 printing built-in mask so it does not pass NULL pointers.
7047 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
7050 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
7053 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
7054 !ISA_HAS_FP_CONDMOVE.
7056 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
7058 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
7061 2015-03-02 Ulrich Drepper <drepper@gmail.com>
7063 * doc/invoke.texi (Options for Code Generation Conventions):
7064 Fix URL of DSO paper.
7066 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7069 * ipa-inline.c (check_callers): Looks for recursion.
7070 (inline_to_all_callers): Give up on uninlinable or recursive edges.
7071 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
7072 summary of inline clones.
7073 (do_estimate_growth_1): Fix recursion check.
7075 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7078 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
7081 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7082 Aldy Hernandez <aldyh@redhat.com>
7085 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
7086 when checking TYPE_BINFO.
7088 2015-03-02 Richard Biener <rguenther@suse.de>
7091 * ipa-icf-gimple.c: Include builtins.h.
7092 (func_checker::compare_memory_operand): Compare base alignment.
7094 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
7097 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
7098 are never passed by reference.
7100 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
7103 * tree-chkp.c (chkp_check_lower): Don't check against
7104 zero bounds for already instrumented functions.
7105 (chkp_check_upper): Likewise.
7106 (chkp_fini): Clean pass local data to avoid wrong reusage.
7108 2015-02-28 Martin Liska <mliska@suse.cz>
7109 Jan Hubicka <hubicka@ucw.cz>
7111 * ipa-icf.c (sem_variable::equals): Improve debug output;
7112 get variable constructor.
7113 (sem_variable::parse): Do not filter out too early; give up on
7114 volatile and register vars.
7115 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
7117 * ipa-icf.h (sem_variable::init): Do not set ctor.
7118 (sem_variable::ctor): Remove.
7120 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
7123 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
7125 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7127 * ipa-icf.c: Include stor-layout.h
7128 (sem_function::compare_cgraph_references): Rename to ...
7129 (sem_item::compare_cgraph_references): ... this one.
7130 (sem_variable::equals_wpa): New function
7131 (sem_variable::equals): Do not check stuff already verified by
7133 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
7134 * ipa-icf.h (sem_item): Add compare_cgraph_references.
7135 (sem_function): Remove compare_cgraph_references.
7136 (sem_variable): Turns equals_wpa into non-inline.
7138 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7140 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
7141 (sem_item::add_expr): New function.
7142 (sem_function::hash_stmt): Handle operands of most statements.
7143 (sem_variable::get_hash): Hash the actual constructor.
7144 * ipa-icf.h (sem_item): Add add_expr.
7145 (sem_function): Update prototype of hash_stmt
7147 2015-02-28 Martin Liska <mliska@suse.cz>
7148 Jan Hubicka <hubicka@ucw.cz>
7151 * ipa-icf-gimple.c (func_checker::compare_function_decl):
7153 (func_checker::compare_variable_decl): Skip symtab vars.
7154 (func_checker::compare_cst_or_decl): Update.
7155 * ipa-icf.c (sem_function::parse): Do not consider aliases.
7156 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
7157 use correct symtab predicates.
7158 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
7159 (sem_variable::parse): Update comment.
7160 (sem_item_optimizer::build_graph): Consider ultimate aliases
7163 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7165 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
7168 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7170 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
7171 (sem_variable::merge) Likewise.
7173 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7175 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
7176 target; also match flag_ipa_devirt.
7178 2015-03-01 Martin Liska <mliska@suse.cz>
7179 Jan Hubicka <hubicka@ucw.cz>
7181 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
7182 Validate variable alignment.
7183 * ipa-icf.c (sem_function::equals_private): Be more precise
7184 about non-common function attributes.
7185 (sem_variable::equals): Likewise.
7187 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7190 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
7191 across COMDAT group boundary.
7193 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7196 * ipa-icf.c (clear_decl_rtl): New function.
7197 (sem_function::merge): Clear RTL before forming alias.
7198 (sem_variable::merge): Clear RTL before forming alias.
7200 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7203 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
7205 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
7207 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
7210 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
7212 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
7213 a typo in the description.
7215 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
7218 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7219 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7220 * lra-constraints.c: Include "params.h".
7221 (EBB_PROBABILITY_CUTOFF): Use
7222 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
7223 (lra_inheritance): Use '<' instead of '<=' for
7224 EBB_PROBABILITY_CUTOFF.
7225 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
7228 2015-02-27 Martin Liska <mliska@suse.cz>
7230 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
7231 vector length condition.
7233 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
7235 * doc/extend.texi (x86 transactional memory intrinsics):
7236 Reorganize discussion of _xbegin. Clarify that the return
7237 value is a bit mask. Expand example and move to end of section.
7239 2015-02-26 Jakub Jelinek <jakub@redhat.com>
7240 Aldy Hernandez <aldyh@redhat.com>
7242 PR rtl-optimization/65220
7243 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
7245 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
7248 * lra-remat.c (update_scratch_ops): New.
7249 (do_remat): Call it.
7250 * lra.c (lra_register_new_scratch_op): New. Take code from ...
7251 (remove_scratches): ... here.
7252 * lra-int.h (lra_register_new_scratch_op): New prototype.
7254 2015-02-27 Marek Polacek <polacek@redhat.com>
7257 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
7258 -Wformat-signedness anymore.
7260 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7262 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
7264 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
7266 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7268 * config/s390/s390.c (enum s390_builtin):
7269 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
7270 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
7271 (s390_init_builtins): Generate new builtin functions.
7272 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
7273 (s390_sfpc, s390_efpc): New pattern definitions.
7275 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7277 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
7278 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
7279 (s390_builtin_decls): New array.
7280 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
7281 (s390_builtin_decl): New function.
7282 (TARGET_BUILTIN_DECL): Define macro.
7284 2015-02-27 Richard Biener <rguenther@suse.de>
7287 * builtins.c (get_object_alignment_2): Make sure to re-apply
7288 the ANDed mask after recursing to its operand gets us a new
7289 misalignment bit position.
7291 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
7292 Martin Liska <mliska@suse.cz>
7295 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
7296 Use address_matters_p.
7297 (redirect_all_callers, set_addressable): New functions.
7298 (sem_function::merge): Reorganize and fix merging issues.
7299 (sem_variable::merge): Likewise.
7300 (sem_variable::compare_sections): Remove.
7301 * common.opt (fmerge-all-constants, fmerge-constants): Remove
7303 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
7305 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
7307 (address_matters_1): New function.
7308 (symtab_node::address_matters_p): New function.
7309 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
7310 check for merged flag.
7311 * cgraph.h (address_matters_p): Declare.
7312 (symtab_node::address_taken_from_non_vtable_p): Remove.
7313 (symtab_node::address_can_be_compared_p): New method.
7314 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
7315 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
7317 (comdat_can_be_unshared_p_1) Use address_matters_p.
7318 (update_vtable_references): Fix formating.
7319 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
7320 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
7321 * cgraphclones.c: Preserve merged and icf_merged flags.
7323 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
7325 * doc/extend.texi (Function Attributes): Fix spelling and typos.
7326 (Label Attributes): Likewise.
7327 (Cilk Plus Builtins): Likewise.
7328 (ARC SIMD Built-in Functions): Likewise.
7329 (ARM C Language Extensions (ACLE)): Likewise.
7330 (PowerPC Built-in Functions): Likewise.
7331 (PowerPC Hardware Transactional Memory Built-in Functions):
7334 2015-02-26 Jakub Jelinek <jakub@redhat.com>
7336 PR tree-optimization/65216
7337 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
7338 new stmt and new SSA_NAME for lhs whenever the arguments have
7339 changed and weren't just swapped. Fix comment typo.
7341 PR tree-optimization/65215
7342 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
7343 for PDP endian targets.
7344 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
7345 Fix up formatting issues.
7346 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
7347 size is smaller than the original, adjust MEM_REF offset by the
7348 difference of sizes. Use is_gimple_mem_ref_addr instead of
7349 is_gimple_min_invariant test to avoid adding address temporaries.
7351 2015-02-26 Martin Liska <mliska@suse.cz>
7352 Jan Hubicka <hubicka@ucw.cz>
7355 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
7356 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
7357 (sem_item_optimizer::process_cong_reduction): Include division by
7358 sensitive references.
7359 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
7360 * ipa-ref.c (ipa_ref::address_matters_p): New function.
7361 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
7363 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
7366 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
7368 * config/avr/avr.c: Same.
7369 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
7370 Refuse any constant address not in 0..0xbf.
7371 * config/avr/avr.md (*mov<mode>, *movsf): Remove
7372 tiny_valid_direct_memory_access_range from insn conditions.
7373 (mov<mode>): Don't special-case expansion of avrtiny addresses.
7375 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
7378 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
7379 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
7380 * config/sh/predicates.md (const_logical_operand): New predicate.
7381 * config/sh/sh.md: Add new peephole2 patterns.
7383 2015-02-26 Marek Polacek <polacek@redhat.com>
7386 * ipa-inline.c (early_inliner): Recompute inline parameters.
7388 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7391 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
7392 instructions with TImode operands are included in the analysis.
7394 2015-02-26 Sebastian Pop <s.pop@samsung.com>
7396 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
7397 of an EDGE_FSM_THREAD.
7399 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
7401 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
7403 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
7406 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
7408 2015-02-26 Sebastian Pop <s.pop@samsung.com>
7410 PR tree-optimization/65048
7411 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
7412 (thread_through_all_blocks): Call valid_jump_thread_path.
7413 Remove invalid FSM jump-thread paths.
7415 2015-02-26 Jakub Jelinek <jakub@redhat.com>
7417 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
7418 (ipa_write_optimization_summaries): Likewise.
7419 * tree-streamer.h: Include data-streamer.h.
7420 (streamer_mode_table): Declare extern variable.
7421 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
7422 * lto-streamer-out.c (lto_output_init_mode_table,
7423 lto_write_mode_table): New functions.
7424 (produce_asm_for_decls): Call lto_write_mode_table when streaming
7426 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
7427 (lto_create_simple_input_block): Add mode_table argument to the
7428 lto_input_block constructors.
7429 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
7431 * data-streamer-in.c (string_for_index): Likewise.
7432 * ipa-inline-analysis.c (inline_read_section): Likewise.
7433 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
7434 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7435 * lto-streamer-in.c (lto_read_body_or_constructor,
7436 lto_input_toplevel_asms): Likewise.
7437 (lto_input_mode_table): New function.
7438 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
7439 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
7440 Use bp_pack_machine_mode.
7441 * real.h (struct real_format): Add name field.
7442 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
7443 (class lto_input_block): Add mode_table member.
7444 (lto_input_block::lto_input_block): Add mode_table_ argument,
7445 initialize mode_table.
7446 (struct lto_file_decl_data): Add mode_table field.
7447 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
7448 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
7449 unpack_ts_decl_common_value_fields,
7450 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
7451 * tree-streamer.c (streamer_mode_table): New variable.
7452 * real.c (ieee_single_format, mips_single_format,
7453 motorola_single_format, spu_single_format, ieee_double_format,
7454 mips_double_format, motorola_double_format,
7455 ieee_extended_motorola_format, ieee_extended_intel_96_format,
7456 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
7457 ibm_extended_format, mips_extended_format, ieee_quad_format,
7458 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
7459 decimal_single_format, decimal_double_format, decimal_quad_format,
7460 ieee_half_format, arm_half_format, real_internal_format): Add name
7462 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
7464 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
7467 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
7468 reordering for selective scheduling.
7470 2015-02-26 Terry Guo <terry.guo@arm.com>
7472 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
7473 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
7474 (arm_arch_no_volatile_ce): Declare new global variable.
7475 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
7476 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
7477 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
7478 (TARGET_NO_VOLATILE_CE): New macro.
7479 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
7480 volatile memory access in IT block
7482 2015-02-25 Kai Tietz <ktietz@redhat.com>
7484 PR tree-optimization/61917
7485 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
7486 that reduc_def_stmt is null.
7488 2015-02-25 Martin Liska <mliska@suse.cz>
7490 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
7491 hard register variables.
7493 2015-02-25 Kai Tietz <ktietz@redhat.com>
7496 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
7497 (symtab::noninterposable_alias): Likewise.
7499 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
7502 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
7504 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
7506 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
7509 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
7510 as split condition; force split via '#' in output pattern.
7512 2015-02-25 Richard Biener <rguenther@suse.de>
7513 Kai Tietz <ktietz@redhat.com>
7515 PR tree-optimization/61917
7516 * tree-vect-loop.c (vectorizable_reduction): Allow
7517 vect_internal_def without reduction to exit graceful.
7519 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
7522 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
7523 only with NONDEBUG_INSN_P.
7525 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
7527 Use variadic macros with avr-log.c.
7529 * config/avr/avr-protos.h (avr_vdump): New prototype.
7530 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
7531 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
7532 * config/avr/avr-log.c: Adjust comments.
7533 (avr_vdump): New function.
7534 (avr_vadump): Pass caller as 2nd argument instead of format string.
7535 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
7536 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
7538 2015-02-25 Jakub Jelinek <jakub@redhat.com>
7541 * target.def (target_option_stream_in): New target hook.
7542 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
7543 targetm.target_option.post_stream_in if non-NULL.
7544 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
7545 * doc/tm.texi: Updated.
7546 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
7548 (TARGET_OPTION_POST_STREAM_IN): Redefine.
7550 2015-02-24 Jeff Law <law@redhat.com>
7553 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
7554 of operand 0 and operand 2.
7555 (zero_cost_loop_end, loop_end): Similarly.
7557 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
7559 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
7562 2015-02-24 DJ Delorie <dj@redhat.com>
7564 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
7565 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
7566 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
7567 instead of hardcoding SImode.
7569 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
7571 * omp-low.c (create_omp_child_function): Tag entrypoint
7572 functions with a special attribute.
7574 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7577 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
7579 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
7581 PR rtl-optimization/65123
7582 * lra-remat.c (operand_to_remat): Check hard regs in insn
7585 2015-02-24 Nick Clifton <nickc@redhat.com>
7587 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
7590 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
7593 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
7594 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
7595 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
7596 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
7597 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
7598 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
7599 (BUILT_IN_GOACC_PARALLEL): Specify as
7600 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
7601 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
7603 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
7604 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
7605 Remove function types.
7606 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
7607 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
7608 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
7611 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
7613 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
7615 2015-02-24 Jakub Jelinek <jakub@redhat.com>
7617 PR tree-optimization/65170
7618 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
7619 if val[1] < 0, clear also val[2] and return 3.
7621 2015-02-24 Alan Modra <amodra@gmail.com>
7624 * config/rs6000/rs6000.c (get_memref_parts): Only return true
7625 when *base is a reg. Handle nested plus addresses. Simplify
7628 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
7630 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
7631 use natural alignment when optimizing for size.
7633 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
7636 * config/sh/sh.md (movsicc_true+3): Remove peephole.
7637 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
7638 * config/sh/sh.c (replace_n_hard_rtx): Remove.
7640 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
7643 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
7644 too big for a wide_int. Implement missing wrapping operation.
7646 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
7649 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
7650 instead of const_int 4294901760.
7652 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
7654 * config/avr/t-avr: Fix typo in comment.
7656 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
7658 * doc/rtl.texi (fma): Clarify documentation.
7660 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
7663 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
7664 over input_location.
7666 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
7668 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
7669 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
7670 restrict alignments to absolute_biggest_alignment.
7671 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
7673 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
7674 * doc/tm.texi: Regenerate.
7675 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
7677 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
7680 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
7682 2015-02-20 Richard Biener <rguenther@suse.de>
7684 PR tree-optimization/65136
7685 * tree-ssa-propagate.c: Include cfgloop.h.
7686 (replace_phi_args_in): Avoid replacing loop latch edge PHI
7687 arguments with constants.
7689 2015-02-20 Jakub Jelinek <jakub@redhat.com>
7690 Martin Liska <mliska@suse.cz>
7693 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
7694 don't try to create_thunk if stdarg_p. If
7695 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
7696 redirect_callers if possible.
7697 (sem_item_optimizer::execute): Call unregister_hooks here...
7698 (ipa_icf_driver): ... instead of here.
7700 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7702 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
7703 Mark operand 0 as earlyclobber in 2nd alternative.
7704 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
7705 Write negated shift amount into QI lowpart operand 0 and use it
7707 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7709 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
7711 * cgraph.h (clone_function_name_1): Declare.
7712 * cgraphclones.c (clone_function_name_1): New function.
7713 (clone_function_name): Use it.
7714 * lto-partition.c: Include "stringpool.h".
7715 (must_not_rename, maybe_rewrite_identifier)
7716 (validize_symbol_for_target): New static functions.
7717 (privatize_symbol_name): Use must_not_rename.
7718 (promote_symbol): Call validize_symbol_for_target.
7719 (lto_promote_cross_file_statics): Likewise.
7720 (lto_promote_statics_nonwpa): Likewise.
7722 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
7725 * config/avr/avr.md (pushhi_insn): New insn.
7726 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
7728 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
7729 Jakub Jelinek <jakub@redhat.com>
7731 * tree-streamer.c (preload_common_nodes): Don't preload
7732 TI_VA_LIST* for offloading.
7733 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
7736 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
7738 * config/pa/pa.c (pa_emit_move_sequence): Always force
7739 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
7742 * config/pa/pa.c (pa_reloc_rw_mask): New function.
7743 (TARGET_ASM_RELOC_RW_MASK): Define.
7744 (pa_cannot_force_const_mem): Revert previous change.
7746 2015-02-19 Martin Jambor <mjmabor@suse.cz>
7747 Jan Hubicka <hubicka@ucw.cz>
7750 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
7751 across jump functions.
7753 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
7755 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
7757 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
7759 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
7761 2015-02-19 Richard Henderson <rth@redhat.com>
7764 * varasm.c (default_binds_local_p_2): Don't test node->definition;
7765 test DECL_EXTERNAL independent of symtab_node.
7767 2015-02-19 Jakub Jelinek <jakub@redhat.com>
7770 * varpool.c (varpool_node::get_constructor): Return early
7771 if this->lto_file_data is NULL.
7773 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7775 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
7776 (rank_for_schedule_debug): Update.
7777 (ready_sort): Make static. Move sorting logic to ...
7778 (ready_sort_debug, ready_sort_real): New static functions.
7779 (schedule_block): Sort both debug insns and real insns in preparation
7780 for ready list trimming. Improve debug output.
7781 * sched-int.h (ready_sort): Remove global declaration.
7783 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
7785 * ipa-icf.c (sem_function::equals_private): Adjust.
7786 (sem_function::bb_dict_test): Take a vec<int> * instead of
7788 * ipa-icf.h (bb_dict_test): Likewise.
7790 2015-02-18 Jakub Jelinek <jakub@redhat.com>
7792 PR gcov-profile/64634
7793 * tree-eh.c (frob_into_branch_around): Fix up typos
7794 in function comment.
7795 (lower_catch): Put eh_seq resulting from EH lowering of
7796 the cleanup sequence after the cleanup rather than before it.
7798 2015-02-18 Tom de Vries <tom@codesourcery.com>
7800 * common.opt (fstdarg-opt): New option.
7801 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
7802 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
7803 (@item -fstdarg-opt): New item.
7805 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
7808 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
7811 2015-02-18 Jakub Jelinek <jakub@redhat.com>
7813 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
7815 (ALL_HOST_OBJS): Add mkoffload.o.
7816 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
7818 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
7820 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
7821 (compare_virtual_tables): Be smarter about skipping typeinfos;
7822 do sane output on virtual table table mismatch.
7823 (warn_odr): Be ready for forward declarations of enums;
7824 output sane info on base mismatch and virtual table mismatch.
7825 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
7826 when only one type is polymorphic.
7827 (get_odr_type): Fix hashtable corruption.
7828 (dump_odr_type): Dump mangled names.
7830 2015-02-18 Richard Biener <rguenther@suse.de>
7832 PR tree-optimization/65063
7833 * tree-predcom.c (determine_unroll_factor): Return 1 if we
7834 have replaced looparound PHIs.
7836 2015-02-18 Martin Liska <mliska@suse.cz>
7838 * lto-streamer.c (lto_streamer_init): Encapsulate
7839 streamer_check_handled_ts_structures with checking macro.
7841 2015-02-18 Jakub Jelinek <jakub@redhat.com>
7844 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
7845 section if !implicit_section.
7846 (cgraph_node::create_version_clone_with_body): Likewise.
7847 * trans-mem.c (ipa_tm_create_version): Likewise.
7849 2015-02-18 Richard Biener <rguenther@suse.de>
7851 PR tree-optimization/62217
7852 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
7855 2015-02-18 Marek Polacek <polacek@redhat.com>
7858 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
7859 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
7860 is in range [-16K, -1]. Don't issue run-time error if
7861 (ptr > ptr + offset).
7863 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
7865 * doc/install.texi (nvptx-*-none): New section.
7866 * doc/invoke.texi (Nvidia PTX Options): Likewise.
7867 * config/nvptx/nvptx.opt: Update.
7869 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
7870 (access_check): New functions, copied from
7871 config/i386/intelmic-mkoffload.c.
7872 (main): For non-installed testing, look in all COMPILER_PATHs for
7875 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
7877 2015-02-18 Andrew Pinski <apinski@cavium.com>
7878 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7880 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
7881 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
7883 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
7885 * ipa-visibility.c (function_and_variable_visibility): Only
7886 check locality if node is not already local.
7887 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
7888 call_for_symbol_and_aliases instead of
7889 call_for_symbol_thunks_and_aliases.
7890 (ipa_inline): Likewise.
7891 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7893 * ipa.c (symbol_table::remove_unreachable_nodes): Use
7894 call_for_symbol_and_aliases.
7895 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
7896 (ipa_propagate_frequency_1): Use it; use opt_for_fn
7897 (ipa_propagate_frequency): Update.
7898 (ipa_profile): Add opt_for_fn gueards.
7900 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
7902 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
7903 * doc/invoke.texi (SH options): Document it.
7904 * config/sh/sh.c (sh_insn_length_adjustment): Check
7905 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
7907 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
7909 * common.opt (fipa-cp-alignment): New.
7910 * ipa-cp.c (ipcp_store_alignment_results): Check
7911 flag_ipa_cp_alignment.
7912 * opts.c (default_options_table): Enable -fipa-cp-alignment for
7914 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
7915 * doc/invoke.texi: Document -fipa-cp-alignment.
7917 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
7920 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
7921 to nil. Adjust comments.
7923 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
7925 * ipa-visibility.c (function_and_variable_visibility): Only
7926 check locality if node is not already local.
7927 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
7928 call_for_symbol_and_aliases instead of
7929 call_for_symbol_thunks_and_aliases.
7930 (ipa_inline): Likewise.
7931 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7933 * ipa.c (symbol_table::remove_unreachable_nodes): Use
7934 call_for_symbol_and_aliases.
7935 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
7936 (ipa_propagate_frequency_1): Use it; use opt_for_fn
7937 (ipa_propagate_frequency): Update.
7938 (ipa_profile): Add opt_for_fn guards.
7940 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7942 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
7943 skipping of "strange" tokens.
7945 2015-02-17 Jeff Law <law@redhat.com>
7947 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
7950 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
7952 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
7953 as forcing a HARD_DEP between instructions, thereby
7954 disallowing rewriting to break dependencies.
7956 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
7958 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
7959 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
7960 variables in boundary that have no inlitalizer encoded and are
7962 * varasm.c (default_binds_local_p_2): External definitions do not
7963 count as definitions here.
7965 2015-02-16 Jeff Law <law@redhat.com>
7967 PR tree-optimization/64823
7968 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
7970 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
7971 threading through blocks with PHIs, but no statements.
7972 (thread_through_normal_block): Distinguish between blocks where
7973 we did not process all the statements and blocks with no statements.
7975 2015-02-16 Jakub Jelinek <jakub@redhat.com>
7976 James Greenhalgh <james.greenhalgh@arm.com>
7979 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
7980 section if not linkonce. Fix up formatting.
7981 (cgraph_node::create_version_clone_with_body): Copy section.
7982 * trans-mem.c (ipa_tm_create_version): Likewise.
7984 2015-02-16 Richard Biener <rguenther@suse.de>
7986 PR tree-optimization/65077
7987 * tree-ssa-structalias.c (get_constraint_for_1): Handle
7988 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
7989 (find_func_aliases): Allow float values to carry pointers again.
7991 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
7993 * doc/install.texi (Specific): Reorder targets list to put
7994 aarch64 in alphabetical order. Add a link to aarch64*-*-*
7997 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7998 David Edelsohn <dje.gcc@gmail.com>
8001 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
8002 mapping class to external variable or function reference.
8003 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
8006 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
8009 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
8010 ASM_WEAKEN_DECL if defined.
8012 2015-02-16 Richard Biener <rguenther@suse.de>
8015 * varasm.c (default_file_start): For LTO produced units
8016 emit <artificial> as file directive.
8018 2015-02-16 Richard Biener <rguenther@suse.de>
8020 PR tree-optimization/63593
8021 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
8022 stmts and releasing SSA names until...
8023 (execute_pred_commoning): ... after processing all chains.
8025 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
8028 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
8031 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
8033 * doc/bugreport.texi: Adjust section titles throughout the file
8034 to use "Title Case".
8035 * doc/extend.texi: Likewise.
8036 * doc/gcov.texi: Likewise.
8037 * doc/implement-c.texi: Likewise.
8038 * doc/implement-cxx.texi: Likewise.
8039 * doc/invoke.texi: Likewise.
8040 * doc/objc.texi: Likewise.
8041 * doc/standards.texi: Likewise.
8042 * doc/trouble.texi: Likewise.
8044 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
8046 * cgraph.h (symtab_node::has_aliases_p): Simplify.
8047 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
8048 * tree.c (lookup_binfo_at_offset): Make static.
8049 (get_binfo_at_offset): Do not shadow offset; add explanatory
8052 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
8054 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
8055 for all floading point loads and stores except those using a register
8057 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
8060 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
8062 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
8063 (do_estimate_growth_1): Record if any uninlinable edge was seen.
8064 (estimate_growth): Handle uninlinable edges correctly.
8065 (check_callers): New.
8066 (growth_likely_positive): Handle aliases correctly.
8068 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
8070 * ipa-chkp.c: Use iterate_direct_aliases.
8071 * symtab.c (resolution_used_from_other_file_p): Move inline.
8072 (symtab_node::create_reference): Fix formating.
8073 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8074 (symtab_node::iterate_reference): Move inline.
8075 (symtab_node::iterate_referring): Move inline.
8076 (symtab_node::iterate_direct_aliases): Move inline.
8077 (symtab_node::used_from_object_file_p_worker): Inline into ...
8078 (symtab_node::used_from_object_file_p): ... this one; move inline.
8079 (symtab_node::call_for_symbol_and_aliases): Move inline;
8080 use iterate_direct_aliases.
8081 (symtab_node::call_for_symbol_and_aliases_1): New method.
8082 (cgraph_node::call_for_symbol_and_aliases): Move inline;
8083 use iterate_direct_aliases.
8084 (cgraph_node::call_for_symbol_and_aliases_1): New method.
8085 (varpool_node::call_for_node_and_aliases): Rename to ...
8086 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
8087 use iterate_direct_aliases.
8088 (varpool_node::call_for_symbol_and_aliases_1): New method.
8089 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
8090 (ipa_discover_readonly_nonaddressable_var): Update.
8091 * ipa-devirt.c: Fix formating.
8092 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
8094 (cgraph_node::call_for_symbol_and_aliases): Move inline.
8095 (cgraph_node::call_for_symbol_and_aliases_1): New function..
8096 * cgraph.h (used_from_object_file_p_worker): Remove.
8097 (resolution_used_from_other_file_p): Move inline.
8098 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8099 (symtab_node::iterate_reference): Move inline.
8100 (symtab_node::iterate_referring): Move inline.
8101 (symtab_node::iterate_direct_aliases): Move inline.
8102 (symtab_node::used_from_object_file_p_worker): Inline into ...
8103 (symtab_node::used_from_object_file_p): Move inline.
8104 * tree-emutls.c (ipa_lower_emutls): Update.
8105 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
8106 (varpool_node::call_for_node_and_aliases): Remove.
8108 2015-02-14 Jakub Jelinek <jakub@redhat.com>
8110 PR tree-optimization/62209
8111 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
8112 op == range->exp, insert seq and gimplified code after labels
8113 instead of after the phi.
8115 2015-02-13 Jeff Law <law@redhat.com>
8118 Revert my change for tree-optimization/64823.
8120 2015-02-13 Jakub Jelinek <jakub@redhat.com>
8122 PR tree-optimization/65053
8123 * tree-ssa-phiopt.c (value_replacement): When moving assign before
8124 cond, either reset VR on lhs or set it to phi result VR.
8126 2015-02-13 Jeff Law <law@redhat.com>
8128 PR tree-optimization/64823
8129 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
8130 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8131 threading through blocks with PHIs, but no statements.
8132 (thread_through_normal_block): Distinguish between blocks where
8133 we did not process all the statements and blocks with no statements.
8135 PR rtl-optimization/47477
8136 * match.pd (convert (plus/minus (convert @0) (convert @1): New
8137 simplifier to narrow arithmetic.
8139 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
8142 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
8143 polymorphic call info when type is not known to be preserved.
8145 2015-02-13 Maritn Jambor <mjambor@suse.cz>
8148 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
8149 (inline_call): Use it.
8151 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
8153 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
8154 GOMP_DEVICE_NVIDIA_PTX.
8156 2015-02-13 Jakub Jelinek <jakub@redhat.com>
8159 * stmt.c (emit_case_nodes): Use void_type_node instead of
8160 NULL_TREE as LABEL_DECL type.
8162 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
8164 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
8166 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
8167 symbolic references to data to be forced to constant memory on the
8170 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
8172 PR tree-optimization/65002
8173 * tree-cfg.c (pass_data_fixup_cfg): Don't update
8175 * tree-sra.c (some_callers_have_no_vuse_p): New.
8176 (ipa_early_sra): Reject functions whose callers
8177 assume function is read only.
8179 2015-02-13 Richard Biener <rguenther@suse.de>
8182 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
8183 for LTO produced CUs.
8185 2015-02-13 Bin Cheng <bin.cheng@arm.com>
8187 PR tree-optimization/64705
8188 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
8189 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
8190 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
8191 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
8192 expand_simple_operations.
8194 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
8195 Richard Henderson <rth@redhat.com>
8198 * cgraphunit.c (cgraph_node::finalize_function): Set definition
8199 before notice_global_symbol.
8200 (varpool_node::finalize_decl): Likewise.
8201 * varasm.c (default_binds_local_p_2): Rename from
8202 default_binds_local_p_1, add weak_dominate argument. Use direct
8203 returns instead of assigning to local variable. Unify varpool and
8204 cgraph paths via symtab_node. Reject undef weak variables before
8205 testing visibility. Reorder tests for simplicity.
8206 (default_binds_local_p): Use default_binds_local_p_2.
8207 (default_binds_local_p_1): Likewise.
8208 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
8210 (default_elf_asm_output_external): Emit visibility when specified.
8212 2015-02-13 Alan Modra <amodra@gmail.com>
8214 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
8215 code setting up r11 for out-of-line fp restore.
8217 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
8219 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
8220 (muser-mode): Likewise.
8222 2015-02-13 Alan Modra <amodra@gmail.com>
8224 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
8225 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
8227 2015-02-12 David Howells <dhowells@redhat.com>
8229 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
8231 * tree-ssa-uninit.c (dump_predicates): Likewise.
8232 * opts.c (print_filtered_help): Likewise.
8234 2015-02-12 Jakub Jelinek <jakub@redhat.com>
8236 * dwarf2out.c (output_die): Use "%s", name instead of name to
8237 avoid -Wformat-security warning.
8239 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
8240 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8241 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
8242 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8244 2015-02-12 Jason Merrill <jason@redhat.com>
8246 * common.opt (-flifetime-dse): New.
8248 2015-02-12 Jakub Jelinek <jakub@redhat.com>
8251 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
8253 PR tree-optimization/65014
8254 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
8255 use original second operand of arg0 or arg1 instead of
8256 that adjusted by STRIP_NOPS.
8258 2015-02-11 Jeff Law <law@redhat.com>
8261 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
8262 that needs to be queued, just queue it for a single cycle.
8264 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
8266 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
8267 bodies of thunks; comment on why.
8268 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
8271 2015-02-11 Richard Henderson <rth@redhat.com>
8274 * tree-eh.c (mark_reachable_handlers): Mark source and destination
8275 regions of __builtin_eh_copy_values.
8277 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8280 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
8281 ultimate alias is MEM with SYMBOL_REF satisfying
8282 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
8283 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
8285 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
8287 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
8288 "diagnostic-core.h".
8289 (main): Initialize progname, and call diagnostic_initialize.
8291 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
8292 instead of __OPENMP_TARGET__.
8294 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
8295 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
8298 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
8300 * doc/sourcebuild.texi (pie_enabled): Document.
8302 2015-02-11 Martin Liska <mliska@suse.cz>
8305 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
8306 a return value for call to a function that is noreturn.
8308 2015-02-11 Richard Biener <rguenther@suse.de>
8311 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
8314 2015-02-11 Andrew Pinski <apinski@cavium.com>
8317 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8318 Change the first argument type to size_type_node and add another
8320 (aarch64_simd_expand_builtin): Handle the new argument to
8321 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
8322 print an out when the first two arguments are not
8323 nonzero integer constants.
8324 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
8325 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
8327 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8330 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
8331 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
8332 (ix86_set_current_function): Rewritten.
8333 (ix86_add_new_builtins): Temporarily clear current_target_pragma
8334 when creating builtin fndecls.
8336 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
8339 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
8341 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
8342 have no comdat group.
8343 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
8344 (lto_output_varpool_node): Always output alias info.
8345 (output_refs): Output refs of boundary aliases, too.
8346 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
8347 (output_symtab): Output call eges in thunks in boundary.
8348 (get_alias_symbol): Remove.
8349 (input_node, input_varpool_node): Do not special case weakrefs.
8350 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
8351 alias and thunks targets in the boundary; do not take removed symbols
8352 from their comdat groups.
8353 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
8354 (cgraph_node::global_info): Remove.
8355 (cgraph_node::rtl_info): Look through aliases and thunks.
8356 * cgrpah.h (global_info): Remove.
8357 (non_local_p): Remove.
8359 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
8360 Sandra Loosemore <sandra@codesourcery.com>
8362 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
8363 to inline asm. List dialects in proper order.
8365 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
8366 Sandra Loosemore <sandra@codesourcery.com>
8368 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
8370 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
8372 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
8373 modified) reference to Solaris.
8375 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
8377 * doc/extend.texi (Extended Asm): Fix typos.
8379 2015-02-10 Jakub Jelinek <jakub@redhat.com>
8382 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
8384 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
8387 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
8388 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
8389 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
8390 * config/sh/constraints.md (Ara, Add): New constraints.
8391 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
8393 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
8394 atomic_mem_operand_0. Don't use force_reg on the memory address.
8395 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
8396 Sra constraint. Convert to insn_and_split. Add workaround for
8398 (atomic_compare_and_swap<mode>_hard): Copy to
8399 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
8400 Use atomic_mem_operand_0 predicate.
8401 (atomic_compare_and_swap<mode>_soft_gusa,
8402 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
8404 (atomic_compare_and_swap<mode>_soft_tcb,
8405 atomic_compare_and_swap<mode>_soft_imask,
8406 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
8407 atomic_mem_operand_0 predicate and SraSdd constraints.
8408 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
8410 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
8411 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
8412 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
8413 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
8414 force_reg on the memory address.
8415 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
8416 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
8417 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
8418 atomic_mem_operand_1 predicate and Sra constraint.
8419 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
8420 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
8421 Use atomic_mem_operand_1 predicate.
8422 (atomic_<fetchop_name><mode>_hard): Copy to
8423 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
8424 Use atomic_mem_operand_1 predicate.
8425 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
8426 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
8427 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
8428 insn_and_split. Use atomic_mem_operand_1 predicate.
8429 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
8430 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
8431 Use atomic_mem_operand_1 predicate.
8432 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
8433 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
8434 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
8435 in generated insn with original mem operand before emitting the insn.
8436 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
8437 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
8438 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
8439 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
8440 Use atomic_mem_operand_1 predicate and AraAdd constraints.
8441 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
8442 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
8443 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
8444 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
8445 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
8446 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
8447 atomic_not_fetch<mode>_soft_tcb,
8448 atomic_<fetchop_name>_fetch<mode>_soft_imask,
8449 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
8450 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
8451 Use atomic_mem_operand_1 predicate and SraSdd constraints.
8453 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
8455 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
8456 and 3 earlyclobber operands.
8458 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
8460 * common.opt (fstack-reuse): Mark as optimization.
8462 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
8465 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
8467 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
8469 PR tree-optimization/64326
8470 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
8472 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
8474 PR gcov-profile/61889
8475 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
8477 2015-02-10 Richard Biener <rguenther@suse.de>
8479 PR tree-optimization/64995
8480 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
8481 value we use is final.
8482 (visit_reference_op_store): Always valueize op.
8483 (visit_use): Properly valueize vuses.
8485 2015-02-10 Richard Biener <rguenther@suse.de>
8487 PR tree-optimization/64909
8488 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
8489 pass a scalar-stmt count estimate to the cost model.
8490 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
8492 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
8494 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
8495 enabled by default together with var-tracking.
8497 2015-02-10 Nick Clifton <nickc@redhat.com>
8499 * config/rl78/rl78.c: Remove DIV attribute code accidentally
8500 included in previous rl78 commit.
8502 2015-02-10 Richard Biener <rguenther@suse.de>
8504 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
8505 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
8508 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
8510 PR gcov-profile/61889
8511 * config.in: regenerate.
8512 * configure.in: Likewise.
8513 * configure.ac: Check for ftw.h.
8514 * gcov-tool.c: Check for ftw.h before using nftw.
8516 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
8519 * ipa-visibility.c (update_visibility_by_resolution_info): Only
8520 assert when not in lto mode.
8522 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8524 * ira-color.c (setup_left_conflict_sizes_p): Simplify
8525 initialization/assignment of conflict_size.
8527 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
8530 * ipa-cp.c (gather_caller_stats): Skip thunks.
8531 (propagate_constants_topo): Skip aliases.
8533 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
8536 * config/sh/sh.c (sh_option_override): Don't change
8537 -freorder-blocks-and-partition to -freorder-blocks even when
8538 unwinding is enabled.
8539 (sh_can_follow_jump): Return false if the followee jump is
8540 a crossing jump when -freorder-blocks-and-partition is specified.
8541 * config/sh/sh.md (*jump_compact_crossing): New insn.
8543 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
8544 Kaz Kojima <kkojima@gcc.gnu.org>
8547 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
8548 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
8549 (sh_can_redirect_branch): Rename to ...
8550 (sh_can_follow_jump): ... this. Constify argument types.
8551 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
8552 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
8553 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
8554 * doc/tm.texi: Regenerate.
8556 2015-02-09 Jakub Jelinek <jakub@redhat.com>
8559 * builtins.c (expand_builtin): Call targetm.expand_builtin
8560 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
8562 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8565 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
8567 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8570 * ipa-icf.c (set_local): New function.
8571 (sem_function::merge): Use it.
8573 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8575 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
8576 (add_type_duplicate): Fix comparison of BINFOs.
8578 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8580 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
8581 on getting VOID pointer.
8583 2015-02-09 Jakub Jelinek <jakub@redhat.com>
8586 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
8589 2015-02-09 Richard Biener <rguenther@suse.de>
8591 * genmatch.c (replace_id): Copy expr_type.
8593 2015-02-09 Richard Biener <rguenther@suse.de>
8595 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
8596 (streamer_write_tree_bitfields): Declare.
8597 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
8598 properly unpack padding.
8599 (unpack_value_fields): Inline ...
8600 (streamer_read_tree_bitfields): ... here.
8601 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
8602 and properly add padding bits.
8603 (streamer_pack_tree_bitfields): Fold into ...
8604 (streamer_write_tree_bitfields): ... this new function,
8605 exposing the bitpack object.
8606 * lto-streamer-out.c (lto_write_tree_1): Call
8607 streamer_write_tree_bitfields.
8609 2015-02-09 Richard Biener <rguenther@suse.de>
8611 PR tree-optimization/54000
8612 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
8613 (struct ivopts_data): Add loop_loc member.
8614 (tree_ssa_iv_optimize_loop): Dump loop location.
8615 (create_new_ivs): Likewise, also dump number of IVs generated.
8617 2015-02-09 Martin Liska <mliska@suse.cz>
8619 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
8620 just if not yet registered.
8621 (ipa_icf_generate_summary): Register callgraph hooks.
8623 2015-02-08 Andrew Pinski <apinski@cavium.com>
8625 * config/aarch64/aarch64.c (gty_dummy): Delete.
8627 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8630 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
8631 (cgraph_node::local_p): Remove thunk related FIXME.
8633 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8636 * i386.c (ix86_function_regparm): Look through aliases to see if callee
8637 is local and optimized.
8638 (ix86_function_sseregparm): Likewise; also use target's SSE math
8639 settings; error out instead of silently generating wrong code
8641 (init_cumulative_args): Look through aliases.
8643 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8646 * ipa-split.c (execute_split_functions): Split if function has aliases.
8648 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8651 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
8652 aliases before trying to expand it.
8653 (cgraph_node::expand_thunk): Fix formating.
8655 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
8657 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
8658 (Using Assembly Language with C): Expand introduction.
8659 (Basic Asm): Copy-edit. Add more information about uses of
8661 (Extended Asm): Copy-edit. Document new escape syntax and
8663 (Global Reg Vars): Copy-edit.
8664 (Local Reg Vars): Likewise.
8666 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
8670 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
8671 (DBX_CONTIN_CHAR): Define.
8673 2015-02-06 Sebastian Pop <s.pop@samsung.com>
8674 Brian Rzycki <b.rzycki@samsung.com>
8676 PR tree-optimization/64878
8677 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
8678 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
8679 Stop recursion at loop phi nodes after having visited a loop phi node.
8681 2015-02-06 Jakub Jelinek <jakub@redhat.com>
8683 * toplev.c (process_options): Change flag_ipa_ra before creating
8684 optimization_{default,current}_node.
8687 * cgraphunit.c (cgraph_node::expand_thunk): If
8688 restype is not is_gimple_reg_type nor the thunk_fndecl
8689 returns aggregate_value_p, set restmp to a temporary variable
8692 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
8694 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
8696 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8699 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
8700 add a general secondary reload handler for SDmode, unless we have
8701 both read/write support for SDmode.
8703 2015-02-06 Jakub Jelinek <jakub@redhat.com>
8706 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
8707 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
8708 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
8709 1 before, push it to abstract_vec.
8710 (dwarf2out_abstract_function): Adjust caller. Don't call
8711 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
8712 DECL_ABSTRACT_P flags for all abstract_vec elts.
8714 2015-02-06 Renlin Li <renlin.li@arm.com>
8716 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
8718 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8720 2015-02-06 Jeff Law <law@redhat.com>
8723 * config/h8300/h8300.c (push): New argument "in_prologue".
8724 Pass "in_prologue" along to "F".
8725 (h8300_push_pop): Corresponding changes.
8726 (h8300_expand_prologue): Likewise.
8727 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
8729 2015-02-06 Jakub Jelinek <jakub@redhat.com>
8731 PR rtl-optimization/64957
8733 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
8734 IOR rather than for AND.
8736 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
8739 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
8740 of shift-add and (add + shift) operations. Rename local variable.
8742 2015-02-05 Jeff Law <law@redhat.com>
8745 * config/h8300/constraints.md (U): Correctly dectect
8746 "eightbit_data" memory addresses.
8747 * config/h8300/h8300.c (eightbit_constant_address_p): Also
8748 handle (const (plus (symbol_ref (x)))) where x is declared
8749 as an 8-bit data memory address.
8750 * config/h8300/h8300.md (call, call_value): Correctly detect
8751 "funcvec" functions.
8754 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
8755 24 to 28 bits for the H8/300.
8757 2015-02-06 Alan Modra <amodra@gmail.com>
8760 * config/rs6000/rs6000.c (chain_already_loaded): New function.
8761 (rs6000_call_aix): Use it.
8763 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
8765 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
8768 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
8770 * config/h8300/constraints.md ("U" constraint): Use strict
8771 variant of REG_OK_FOR_BASE_P after reload has started.
8773 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
8775 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
8776 define to zero if !TARGET_NEON.
8777 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
8779 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8780 Trevor Saunders <tsaunders@mozilla.com>
8783 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
8785 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8788 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
8789 when removing varpool nodes.
8791 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8794 * varpool.c (varpool_node::remove): Fix order of variables.
8796 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8799 * ipa-inline.c (inline_small_functions): Fix ordering issue between
8800 speculation resolution and key updates.
8802 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8804 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
8805 about not letting any speculative edges unupdated.
8807 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8810 * gcov-io.c (gcov_var): Export.
8812 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8815 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
8816 edges that become speculative.
8818 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8820 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
8821 or DW_LANG_Fortran08.
8822 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
8824 (gen_compile_unit_die): Handle "GNU Fortran2003" and
8825 "GNU Fortran2008" language strings.
8826 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
8827 * langhooks.h (lang_GNU_Fortran): New prototype.
8828 * langhooks.c (lang_GNU_Fortran): New function.
8829 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
8832 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
8834 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
8835 (RTX_OK_FOR_OLO10_P): Likewise.
8837 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
8839 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
8841 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
8844 * gimple.c: Include gimple-ssa.h.
8845 (maybe_remove_unused_call_args): New function.
8846 * gimple.h (maybe_remove_unused_call_args): Declare.
8847 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
8848 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
8849 * gimple-fold.c (gimple_fold_call): Likewise.
8851 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
8853 PR rtl-optimization/64905
8854 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
8855 pointer alignment if it isn't needed.
8857 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
8859 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
8860 cortex-a72.cortex-a53.
8861 * config/aarch64/aarch64-tune.md: Regenerate.
8862 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
8864 2015-02-04 Nick Clifton <nickc@redhat.com>
8866 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
8869 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8871 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
8872 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
8873 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
8875 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
8876 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
8877 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
8878 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
8879 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
8880 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
8881 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
8882 * tree-core.h (enum built_in_function): In between
8883 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
8884 for builtins that use DEF_BUILTIN_CHKP macro.
8886 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
8889 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
8890 operands for tcc_comparison exprs. Fix typos.
8893 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
8894 of two XORs that have an intervening AND or IOR.
8897 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
8898 simplification of XOR of AND to not allocate new rtx before
8899 committing to a simplification.
8901 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8903 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
8904 manual swaps in all peepholes.
8906 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8908 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
8909 of manual swapping implementation.
8910 (aarch64_expand_vec_perm_const_1): Likewise.
8912 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
8914 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
8915 (generic_addrcost_table): Remove NAMED_PARAM.
8916 (cortexa57_addrcost_table): Likewise.
8917 (xgene1_addrcost_table): Likewise.
8918 (generic_regmove_table): Likewise.
8919 (cortexa53_regmove_table): Likewise.
8920 (xgene1_regmove_table): Likewise.
8921 (generic_vector_table): Likewise.
8922 (cortexa57_vector_table): Likewise.
8923 (xgene1_vector_table): Likewise.
8924 (generic_tunings): Likewise.
8925 (cortexa53_tunings): Likewise.
8926 (cortexa57_tunings): Likewise.
8927 (xgene1_tunings): Likewise.
8929 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
8931 * config/arm/arm-cores.def: Add cortex-a72 and
8932 cortex-a72.cortex-a53.
8933 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
8934 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
8935 * config/arm/arm-tune.md: Regenerate.
8936 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
8937 "cortex-a72.cortex-a53".
8938 * doc/invoke.texi (ARM Options/-mtune): Likewise.
8940 2015-02-04 Nick Clifton <nickc@redhat.com>
8943 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
8945 (nonimmediate_di_operand): Likewise.
8947 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
8948 prefixes of known F5 using MSP430 MCUs.
8950 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8952 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
8953 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
8954 instead of __builtin_sqrt.
8956 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
8958 * varasm.c (do_assemble_alias): Follow transparent alias
8960 (default_assemble_visibility): Follow transparent alias
8961 chain for decl name.
8963 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8966 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
8967 to compute size of referenced value in the constant case.
8969 2015-02-03 Jakub Jelinek <jakub@redhat.com>
8971 PR rtl-optimization/64756
8972 * cse.c (invalidate_dest): New function.
8973 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
8974 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
8975 invalidate and do not record it.
8977 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8980 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
8981 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
8982 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
8983 atomic_nand<mode>_soft_tcb): New insns.
8984 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
8985 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
8986 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
8987 Split into atomic_not_fetchsi_hard if operands[0] is unused.
8988 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
8989 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
8990 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
8991 atomic_not<mode>_hard if operands[0] is unused.
8992 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
8993 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
8994 if operands[0] is unused.
8995 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
8996 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
8997 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
8998 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9000 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
9001 into atomic_not<mode>_soft_tcb if operands[0] is unused.
9002 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
9003 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
9004 if operands[0] is unused.
9005 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
9006 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
9007 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
9008 atomic_nand_fetchsi_hard if operands[0] is unused.
9009 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
9010 atomic_nand<mode>_hard if operands[0] is unused.
9011 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
9012 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
9013 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
9014 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9015 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
9016 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
9017 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
9018 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9019 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
9020 atomic_not<mode>_hard if operands[0] is unused.
9021 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
9022 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9024 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
9025 into atomic_not<mode>_soft_tcb if operands[0] is unused.
9026 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
9027 atomic_nand<mode>_hard if operands[0] is unused.
9028 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
9029 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9031 2015-02-03 David Malcolm <dmalcolm@redhat.com>
9034 * Makefile.in (GCC_OBJS): Add gcc-main.o.
9035 * gcc-main.c: New file, containing "main" taken from gcc.c.
9036 * gcc.c (do_self_spec): Free decoded_options.
9037 (class driver): Move declaration to gcc.h.
9038 (main): Move declaration and implementation to new file
9040 (driver_get_configure_time_options): New function.
9041 * gcc.h (class driver): Move this declaration here, from
9043 (driver_get_configure_time_options): New declaration.
9045 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
9047 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
9048 cross-module inlining.
9049 * cgraph.h (cgraph_node): Add flag merged.
9050 * ipa-icf.c (sem_function::merge): Maintain it.
9052 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
9054 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
9055 instead of OBJECT_P.
9057 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
9060 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
9061 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
9062 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
9063 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
9065 2015-02-03 Jakub Jelinek <jakub@redhat.com>
9068 * combine.c (reg_n_sets_max): New variable.
9069 (can_change_dest_mode, reg_nonzero_bits_for_combine,
9070 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
9071 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
9072 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
9073 (rest_of_handle_combine): Initialize reg_n_sets_max.
9075 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
9077 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
9078 if some always_inline was inlined, apply changes before inlining
9081 2015-02-02 David Malcolm <dmalcolm@redhat.com>
9084 * config/arm/arm.c (arm_option_override): Set
9085 arm_selected_arch/cpu/tune to NULL on entry.
9087 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
9088 Andrew Pinski <pinskia@gcc.gnu.org>
9089 Jakub Jelinek <jakub@gcc.gnu.org>
9092 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
9093 integer typing for small model. Use IN_RANGE.
9095 2015-02-02 Richard Biener <rguenther@suse.de>
9097 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
9098 * tree-vrp.c (vrp_valueize_1): Likewise.
9100 2015-02-02 Alan Modra <amodra@gmail.com>
9102 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
9103 than mem for toc_restore.
9104 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
9105 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
9106 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
9108 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
9111 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
9112 explicit default options.
9114 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
9117 * ipa-utils.c (ipa_merge_profiles): Add release argument.
9118 * ipa-icf.c (sem_function::merge): Do not release body when merging.
9119 * ipa-utils.h (ipa_merge_profiles): Update prototype.
9121 2015-02-01 Jakub Jelinek <jakub@redhat.com>
9124 * cfgexpand.c (deep_ter_debug_map): New variable.
9125 (avoid_deep_ter_for_debug): New function.
9126 (expand_debug_expr): If TERed SSA_NAME is in
9127 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
9128 instead of trying to expand SSA_NAME's def stmt.
9129 (expand_debug_locations): When expanding debug bind
9130 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
9131 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
9133 (pass_expand::execute): Call avoid_deep_ter_for_debug on
9134 all debug bind stmts. Delete deep_ter_debug_map after
9135 expand_debug_location if non-NULL and clear it.
9137 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
9140 * config/sh/sync.md (atomic_fetch_notsi_hard,
9141 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
9142 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
9143 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
9144 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
9145 atomic_not_fetch<mode>_soft_imask): New insns.
9147 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9149 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
9150 (rank_for_schedule_debug): Split from ...
9151 (rank_for_schedule): ... this.
9152 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
9153 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
9155 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
9157 * doc/md.texi (Machine Constraints): Alphabetize table by target.
9158 * doc/extend.texi (x86 Variable Attributes): Move section to
9159 correct alphabetization after renaming.
9160 (x86 Type Attributes): Likewise.
9161 (Target Builtins): Re-alphabetize menu.
9162 (x86 Built-in Functions): Move section to correct alphabetization
9164 (x86 transactional memory intrinsics): Likewise.
9165 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
9166 and x86 Windows Options in table and menu.
9167 (x86 Options): Move section to correct alphabetization after
9169 (x86 Windows Options): Likewise.
9171 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
9173 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
9174 preferred names of the architecture and its 32- and 64-bit
9176 * doc/invoke.texi: Likewise.
9177 * doc/md.texi: Likewise.
9179 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
9182 * config/i386/predicates.md (address_no_seg_operand): Reject
9183 non-CONST_INT_P operands in invalid mode.
9185 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
9187 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
9188 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
9189 * config/i386/predicates.md (address_no_seg_operand): Call
9190 address_operand with VOIDmode.
9191 (vsib_address_operand): Ditto.
9192 (address_mpx_no_base_operand): Ditto.
9193 (address_mpx_no_index_operand): Ditto.
9195 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
9198 * lra-constraints.c (original_subreg_reg_mode): New.
9199 (simplify_operand_subreg): Try to simplify subreg of const. Use
9200 original_subreg_reg_mode for it.
9201 (swap_operands): Update original_subreg_reg_mode.
9202 (curr_insn_transform): Set up original_subreg_reg_mode.
9204 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
9207 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
9209 (process_alt_operands): Use it.
9210 (curr_insn_transform): Check the optional reload pseudo class is
9213 2015-01-30 Joseph Myers <joseph@codesourcery.com>
9215 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
9216 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
9218 * toplev.h (init_asm_output): Update comment on use of
9219 UNKNOWN_LOCATION with fatal_error.
9220 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
9221 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
9222 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
9223 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
9224 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
9225 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
9226 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
9227 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
9228 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
9229 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
9230 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
9231 fatal_error changed to pass input_location as first argument.
9233 2015-01-30 Martin Liska <mliska@suse.cz>
9235 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
9236 in #pragma GCC diagnostic guards.
9238 2015-01-30 Richard Biener <rguenther@suse.de>
9240 PR tree-optimization/64829
9241 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
9242 not add a widening conversion pattern but hand off extra
9243 widenings to callers.
9244 (vect_recog_widen_mult_pattern): Handle extra widening produced
9245 by vect_handle_widen_op_by_const.
9246 (vect_recog_widen_shift_pattern): Likewise.
9247 (vect_pattern_recog_1): Remove excess vertical space in dumping.
9248 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9249 (vect_init_vector_1): Likewise.
9250 (vect_get_vec_def_for_operand): Likewise.
9251 (vect_finish_stmt_generation): Likewise.
9252 (vectorizable_load): Likewise.
9253 (vect_analyze_stmt): Likewise.
9254 (vect_is_simple_use): Likewise.
9256 2015-01-29 Jeff Law <law@redhat.com>
9258 * combine.c (try_combine): Fix typo in comment.
9260 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
9263 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
9264 (rs6000_stack_info): Add assert.
9265 (rs6000_output_savres_externs): New function, split off from...
9266 (rs6000_output_function_prologue): ... here. Do not call it for
9269 2015-01-29 Jeff Law <law@redhat.com>
9272 * combine.c (try_combine): If I0 is a memory load and I3 a store
9273 to a related address, increase the "goodness" of doing a 4-insn
9274 combination with I0-I3.
9275 (make_field_assignment): Handle SUBREGs in the ior+and case.
9277 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
9279 PR tree-optimization/64746
9280 * tree-if-conv.c (mask_exists): New function.
9281 (predicate_mem_writes): Save created mask with given size for further
9283 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
9284 (ifcvt_repair_bool_pattern): Collect all statements that are root
9285 of bool pattern and use iterative algorithm to remove multiple uses
9286 of predicates, display number of required iterations.
9288 2015-01-29 Richard Biener <rguenther@suse.de>
9290 PR tree-optimization/64853
9291 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
9292 stmt will get simulated again.
9293 * tree-ssa-ccp.c (valueize_op_1): Likewise.
9295 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9297 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
9298 return_in_pc. Remove redundant assignments.
9299 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
9300 (arm_expand_epilogue): Don't compare boolean with true in if condition.
9302 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
9304 * config/i386/i386.c (ix86_mode_after): Make static.
9306 2015-01-29 Richard Biener <rguenther@suse.de>
9308 PR tree-optimization/64844
9309 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
9310 dump cost model analysis.
9311 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9312 Do not register adjusted load/store costs here.
9314 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
9315 Uros Bizjak <ubizjak@gmail.com>
9317 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
9318 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
9319 using x86_use_pseudo_pic_reg.
9320 * config/i386/i386.c (ix86_conditional_register_usage): Remove
9321 support for fixed PIC register.
9322 (ix86_use_pseudo_pic_reg): Not static any more.
9324 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
9327 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
9328 to avoid error in cgraph node verification.
9330 2015-01-29 Marek Polacek <polacek@redhat.com>
9332 * doc/standards.texi: Reflect that the default for C is gnu11.
9334 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
9337 * reorg.c (switch_text_sections_between_p): New function.
9338 (relax_delay_slots): Call it when testing if the jump insn
9339 is removable. Use targetm.can_follow_jump when testing if
9340 the conditional branch can follow an unconditional jump.
9342 2015-01-27 Caroline Tice <cmtice@google.com>
9344 Committing VTV Cywin/Ming patch for Patrick Wollgast
9345 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
9346 if -fvtable-verify=preinit/std is used.
9347 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
9348 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
9349 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
9350 if -fvtable-verify=preinit/std is used.
9351 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
9352 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
9353 if -fvtable-verify=preinit/std is used.
9354 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
9355 * config/i386/mingw32.h (LIB_SPEC): Likewise.
9356 * varasm.c (assemble_variable): Add code to properly set the comdat
9357 section and name for the .vtable_map_vars section in case the
9358 target is PE or COFF.
9360 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
9363 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
9364 make sane BB profile.
9365 (cgraph_node::expand_thunk): Make sane BB profile.
9366 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
9367 * cgraph.h (init_lowered_empty_function): Update prototype.
9368 * config/i386/i386.c (make_resolver_func): Update call.
9369 * predict.c (gate): Disable branch prediction pass if
9370 profile is already there.
9372 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
9374 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
9375 * opth-gen.awk: Likewise.
9376 * common.opt: Mark flag_fp_contract_mode as Optimization.
9378 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
9380 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
9381 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
9383 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
9386 * config/sh/predicates.md (atomic_arith_operand,
9387 atomic_logical_operand): Remove.
9388 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
9389 (atomic_arith_operand_0): New predicate.
9390 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
9391 Use atomic_arith_operand_0 for input values.
9392 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
9393 atomic_compare_and_swap<mode>_soft_gusa,
9394 atomic_compare_and_swap<mode>_soft_tcb,
9395 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
9396 arith_reg_operand instead of register_operand.
9397 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
9398 atomic_arith_operand_0 for newval input.
9399 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
9400 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
9401 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
9402 arith_reg_operand instead of register_operand.
9403 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
9404 fetchop_predicate_1, fetchop_constraint_1_llcs,
9405 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
9406 fetchop_constraint_1_imask): New code iterator attributes.
9407 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
9408 register_operand. Use fetchop_predicate_1.
9409 (atomic_fetch_<fetchop_name>si_hard,
9410 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
9411 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
9412 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
9413 and arith_reg_operand instead of register_operand. Use
9414 fetchop_predicate_1, fetchop_constraint_1_gusa.
9415 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
9416 and arith_reg_operand instead of register_operand. Use
9417 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
9419 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
9420 and arith_reg_operand instead of register_operand. Use
9421 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
9423 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
9424 register_operand. Use atomic_logical_operand_1.
9425 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
9426 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
9427 arith_reg_operand instead of register_operand.
9428 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
9429 Use arith_reg_dest and arith_reg_operand instead of register_operand.
9430 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
9431 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
9432 register_operand. Use fetchop_predicate_1.
9433 (atomic_<fetchop_name>_fetchsi_hard,
9434 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
9435 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9436 fetchop_constraint_1_llcs.
9437 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
9438 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9439 fetchop_constraint_1_gusa.
9440 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
9441 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9442 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
9443 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
9444 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9445 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
9446 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
9447 register_operand. Use atomic_logical_operand_1.
9448 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
9449 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
9450 arith_reg_operand instead of register_operand.
9451 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
9452 arith_reg_operand instead of register_operand. Use logical_operand
9453 and K08. Adjust asm sequence to allow R0 usage.
9454 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
9455 arith_reg_operand instead of register_operand. Use logical_operand
9458 2015-01-28 Jakub Jelinek <jakub@redhat.com>
9461 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
9462 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
9463 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
9464 only get_full_len HOST_WIDE_INTs from get_val () array rather than
9465 all bits in *val_wide.
9467 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
9469 * varpool.c (tls_model_names): Fix names.
9470 (varpool_node::dump): Dump tls- prefix for tls models.
9472 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
9473 Bernd Schmidt <bernds@codesourcery.com>
9474 Nathan Sidwell <nathan@codesourcery.com>
9476 * config/nvptx/mkoffload.c: New file.
9477 * config/nvptx/t-nvptx: Add build rules for it.
9478 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
9479 (extra_programs): Add mkoffload.
9480 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
9482 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
9484 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
9487 * cfgexpand.c (reorder_operands): Skip debug gimples.
9489 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
9491 PR tree-optimization/64277
9492 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
9493 range info when possible to refine estimation.
9495 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9497 PR tree-optimization/64718
9498 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
9499 be a 16bit unsigned integer when n->range is 16.
9500 (bswap_replace): Convert src to that type if necessary for all bswap
9501 sizes. Fix rotation right notation in nearby comment. Use bswap_type
9502 set in pass_optimize_bswap::execute ().
9504 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
9506 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
9507 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
9508 integer and floating point variants.
9509 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
9511 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
9513 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
9514 for all vector modes.
9516 2015-01-28 Jakub Jelinek <jakub@redhat.com>
9519 * doc/sourcebuild.texi (comdat_group): Document.
9521 2015-01-28 Terry Guo <terry.guo@arm.com>
9523 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
9525 2015-01-27 David Malcolm <dmalcolm@redhat.com>
9527 * toplev.c (print_version): Add param "show_global_state", and
9528 only print GGC and plugin information if it is true.
9529 (init_asm_output): Pass in "true" for the new param when calling
9531 (process_options): Likewise.
9532 (toplev::main): Likewise.
9533 * toplev.h (print_version): Add new param to decl.
9535 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
9539 * tree.c (lookup_binfo_at_offset): New function.
9540 (get_binfo_at_offset): Use it.
9542 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
9545 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
9546 on vtable being vtable.
9548 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9550 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
9551 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
9553 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
9554 -mno-hotpatch options. Change syntax of -mhotpatch= option.
9555 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
9557 (s390_hotpatch_trampoline_halfwords_max): Renamed.
9558 (s390_hotpatch_hw_max): New name.
9559 (s390_hotpatch_trampoline_halfwords): Renamed.
9560 (s390_hotpatch_hw_before_label): New name.
9561 (get_hotpatch_attribute): Removed.
9562 (s390_hotpatch_hw_after_label): New name.
9563 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
9565 (s390_attribute_table): Ditto.
9566 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
9567 (s390_function_num_hotpatch_hw): New name.
9568 Remove special handling of inline functions and hotpatching.
9569 Return number of nops before and after the function label.
9570 (s390_can_inline_p): Removed.
9571 (s390_asm_output_function_label): Emit a configurable number of nops
9572 after the function label.
9573 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
9574 (TARGET_CAN_INLINE_P) Removed.
9575 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
9577 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9578 Jiong Wang <jiong.wang@arm.com>
9580 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
9582 (cb<optab><mode>1): Likewise.
9583 * config/aarch64/iterators.md (bcond): New define_code_attr.
9585 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9587 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
9590 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9592 * config/s390/s390.c (s390_register_move_cost): Increase costs for
9595 2015-01-27 Richard Biener <rguenther@suse.de>
9597 * tree-vrp.c (update_value_range): Intersect the range with
9598 old recorded SSA name range information.
9600 2015-01-27 Nick Clifton <nickc@redhat.com>
9602 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
9603 BC, DE and HL registers directly, not via AX.
9604 When decrementing the stack pointer by a large amount, transfer SP
9605 into AX and perform the subtraction there.
9606 (rl78_expand_epilogue): Perform the inverse of the above
9609 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9611 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
9613 2015-01-27 Jakub Jelinek <jakub@redhat.com>
9614 Yury Gribov <y.gribov@samsung.com>
9617 * ubsan.c (ubsan_source_location): Refactor code.
9618 (ubsan_type_descriptor): Update type size. Refactor code.
9620 2015-01-27 Richard Biener <rguenther@suse.de>
9622 PR tree-optimization/56273
9623 PR tree-optimization/59124
9624 PR tree-optimization/64277
9625 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
9626 from the first VRP pass.
9628 2015-01-27 Jakub Jelinek <jakub@redhat.com>
9631 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
9632 handle the first argument in the same loop as all the other arguments.
9634 PR rtl-optimization/61058
9635 * jump.c (cleanup_barriers): Update basic block boundaries
9636 if BLOCK_FOR_INSN is non-NULL on PREV.
9638 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
9640 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
9641 bounds narrowing, already instrumented calls and calls to
9642 not instrumentable functions.
9644 2015-01-27 Jakub Jelinek <jakub@redhat.com>
9646 PR tree-optimization/64807
9647 * wide-int.cc (wi::divmod_internal): Clear
9648 b_dividend[dividend_blocks_needed].
9650 2015-01-26 DJ Delorie <dj@redhat.com>
9652 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
9653 volatile memory references.
9655 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
9658 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
9660 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
9661 shifts if it already fits into K08.
9663 2015-01-26 Jakub Jelinek <jakub@redhat.com>
9666 * ipa-inline.c (inline_small_functions): Print "unknown" even
9667 if edge->call_stmt is non-NULL, but has builtins or unknown
9671 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
9672 with asterisk, skip the first character.
9674 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
9677 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
9680 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
9683 * config/i386/i386.md (*movdi_internal): Also check operand 0
9684 to determine TYPE_LEA operand.
9685 (*movsi_internal): Ditto.
9687 2015-01-26 Jakub Jelinek <jakub@redhat.com>
9689 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
9690 OPTION_MASK_QUAD_MEMORY_ATOMIC.
9692 2015-01-26 Renlin Li <renlin.li@arm.com>
9694 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
9696 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
9699 2015-01-26 Richard Biener <rguenther@suse.de>
9702 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
9703 combining two BIT_AND_EXPR predicates.
9705 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
9708 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
9710 2015-01-26 Terry Guo <terry.guo@arm.com>
9712 * config/arm/arm.c (arm_file_start): Update the assignment of
9715 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
9717 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
9719 config/arm/arm.md: Include the new Cortex-A57 model.
9720 (generic_sched): Don't use generic_sched when tuning for
9723 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
9724 Uros Bizjak <ubizjak@gmail.com>
9726 * config/i386/i386.c (get_builtin_code_for_version): Add
9727 support for BMI and BMI2 multiversion functions.
9729 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9731 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
9732 (extract_bit_field): Likewise.
9733 (extract_low_bits): Likewise.
9734 (expand_mult): Likewise.
9735 (expand_mult_highpart_adjust): Likewise.
9737 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
9739 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
9740 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
9741 * config/i386/i386.c (processor_model): Add
9742 M_INTEL_COREI7_BROADWELL.
9743 (arch_names_table): Add "broadwell".
9745 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
9754 * config/sh/sh-protos.h
9755 (sh_extending_set_of_reg::can_use_as_unextended_reg,
9756 sh_extending_set_of_reg::use_as_unextended_reg,
9757 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
9758 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
9759 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
9760 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
9761 (sh_treg_insns): New class.
9762 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
9763 (scope_counter): New class.
9764 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
9765 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
9766 sh_extending_set_of_reg::can_use_as_unextended_reg,
9767 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
9768 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
9769 sh_split_treg_set_expr): New functions.
9770 (addsubcosts): Handle treg_set_expr.
9771 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
9772 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
9773 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
9774 (sh_insn_operands_modified_between_p): Make non-static.
9775 * config/sh/predicates.md (zero_extend_movu_operand): Allow
9776 simple_mem_operand in addition to displacement_mem_operand.
9777 (zero_extend_operand): Don't allow zero_extend_movu_operand.
9778 (treg_set_expr, treg_set_expr_not_const01,
9779 arith_reg_or_treg_set_expr): New predicates.
9780 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
9781 arith_or_int_operand instead of logical_operand. Convert to
9782 insn_and_split. Try to optimize constant operand in splitter.
9783 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
9784 (*tstqi_t_zero): Delete.
9785 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
9786 (tstsi_t_and_not): Delete.
9787 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
9788 Convert to insn_and_split.
9789 (unnamed split, tstsi_t_zero_extract_xor,
9790 tstsi_t_zero_extract_subreg_xor_little,
9791 tstsi_t_zero_extract_subreg_xor_big): Delete.
9792 (*tstsi_t_shift_mask): New insn_and_split.
9793 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
9794 to recombine with surrounding insns when splitting.
9795 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
9796 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
9797 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
9798 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
9799 (*cbranch_div0s: Delete.
9800 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
9801 Try to recombine with surrounding insns when splitting. Add operand
9803 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
9804 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
9805 *addc_r_r_msb, *addc_2r_msb): Delete.
9806 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
9808 (*addc_negreg_t): New insn_and_split.
9809 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
9810 Try to recombine with surrounding insns when splitting.
9811 Add operand order variants.
9812 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
9813 insn_and_split patterns.
9814 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
9815 surrounding insns when splitting.
9816 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
9817 (*rotcl): Likewise. Add zero_extract variant.
9818 (*ashrsi2_31): New insn_and_split.
9819 (*negc): Convert to insn_and_split. Use treg_set_expr.
9820 (*zero_extend<mode>si2_disp_mem): Update comment.
9821 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
9823 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
9824 with surrounding insns when splitting.
9825 (any_treg_expr_to_reg): New insn_and_split.
9826 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
9827 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
9828 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
9829 *zero_extract_2): New single bit zero extract patterns.
9830 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
9831 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
9832 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
9833 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
9835 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
9836 register_operand for set source.
9838 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
9840 * i386.opt (prefetch_sse): New targetsave.
9841 * i386.c (ix86_function_specific_save): Save prefetch_sse.
9842 (ix86_function_specific_restore): Restore prefetch_sse and initialize
9843 ix86_cost/ix86_tune_cost.
9845 2015-01-23 David Malcolm <dmalcolm@redhat.com>
9847 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
9848 Support the JIT by using 0 as the language type.
9850 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
9853 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
9854 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
9855 (mark_regno_live, process_bb_lives): Pass new parameter value to
9856 make_hard_regno_born.
9858 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9860 PR rtl-optimization/63637
9861 PR rtl-optimization/60663
9862 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
9863 if elt->cost is MAX_COST for ASM_OPERANDS.
9864 (find_sets_in_insn): Fix up comment typo.
9865 (cse_insn): Don't set src_volatile for all non-volatile
9866 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
9867 or with "memory" clobber. Set elt->cost to MAX_COST
9868 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
9869 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
9871 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
9873 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
9876 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
9878 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
9879 libgcc/config/i386/elf-lib.h.
9881 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9884 * gcc.c (print_configuration): Don't print a blank line at the end
9886 (run_attempt): ... but here unstead.
9889 * omp-low.c (scan_sharing_clauses): Don't ignore
9890 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
9891 on target data/update constructs.
9893 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
9896 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
9897 (DEBUG_RELOAD): Removed define.
9898 (m32c_limit_reload_class): Enable traces with if DEBUG0.
9899 (m32c_function_arg): Added a type cast.
9900 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
9901 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
9902 * config/m32c/bitops.md (andqi3_16): Likewise.
9903 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
9904 (push_a01_l): Likewise.
9906 2015-01-23 David Malcolm <dmalcolm@redhat.com>
9909 * main.c (main): Construct toplev instances with init_signals=true.
9910 * toplev.c (general_init): Add param "init_signals", and use it to
9911 conditionalize the calls to signal and host_hooks.extra_signals.
9912 (toplev::toplev): Add param "init_signals".
9913 (toplev::main): When invoking general_init, pass m_init_signals
9914 to control whether signal-handlers are installed.
9915 * toplev.h (toplev::toplev): Add param "init_signals".
9916 (toplev::m_init_signals): New field.
9918 2015-01-23 David Malcolm <dmalcolm@redhat.com>
9921 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
9922 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
9923 latter may be affected by the former (e.g. on i686).
9925 2015-01-23 Martin Liska <mliska@suse.cz>
9927 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
9928 false positive during profiledbootstrap.
9930 2015-01-23 Tom de Vries <tom@codesourcery.com>
9933 * lto-opts.c (lto_write_options): Output non-explicit conservative
9935 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
9936 (append_compiler_options): Pass -fopenacc through.
9938 2015-01-23 Tom de Vries <tom@codesourcery.com>
9941 * lto-opts.c (lto_write_options): Output non-explicit conservative
9943 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
9944 (append_compiler_options): Pass -fopenmp through.
9946 2015-01-23 Jakub Jelinek <jakub@redhat.com>
9949 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
9952 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
9953 * diagnostic.def (DK_ICE_NOBT): New kind.
9954 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
9955 like DK_ICE, but never print backtrace.
9956 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
9957 (internal_error_no_backtrace): New function.
9958 * gcc.c (execute): Use internal_error_no_backtrace instead of
9961 2015-01-22 Jeff Law <law@redhat.com>
9964 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
9965 improve code density for small immediate to memory case.
9966 (insv): Better handle bitfield assignments when the field is
9967 being set to all ones.
9968 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
9971 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9972 Jakub Jelinek <jakub@redhat.com>
9975 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
9976 for !TARGET_LIBC_PROVIDES_SSP version and
9977 -fstack-protector-{all,strong,explicit} otherwise.
9978 * config/freebsd.h (LINK_SSP_SPEC): Handle
9979 -fstack-protector-{strong,explicit}.
9981 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
9982 H.J. Lu <hongjiu.lu@intel.com>
9985 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
9988 2015-01-22 Wei Mi <wmi@google.com>
9990 PR rtl-optimization/64557
9991 * dse.c (record_store): Call get_addr for mem_addr.
9992 (check_mem_read_rtx): Likewise.
9994 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
9996 * fold-const.c (const_binop): Add early return for non-tcc_binary.
9998 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10000 * toplev.c (init_local_tick): Process the failure when read
10001 fails for random_seed.
10003 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
10004 'pretty_name' to avoid memory overflow.
10006 2015-01-22 Richard Biener <rguenther@suse.de>
10008 PR middle-end/64728
10009 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
10010 abnormal coalescing on undefined SSA names.
10012 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
10016 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
10018 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
10020 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
10022 PR middle-end/63325
10023 * fold-const.c (fold_checksum_tree): Don't include value of
10024 expr->decl_with_vis.symtab_node in the checksum.
10026 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10028 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
10030 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
10033 * gcc.c (insert_comments): New function.
10034 (try_generate_repro): Call it.
10035 (append_text): Removed.
10037 2015-01-22 Richard Biener <rguenther@suse.de>
10039 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
10040 with IL incompatible options. Properly honor user optimize
10043 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
10045 PR rtl-optimization/64682
10046 * combine.c (distribute_notes): When moving a death note for
10047 a register that is set in the new I2, make sure to put it
10048 before that new I2.
10050 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
10052 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
10053 not TARGET_DEFAULT.
10055 2015-01-21 Jakub Jelinek <jakub@redhat.com>
10058 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
10059 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
10060 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
10063 * doc/invoke.texi (-fsanitize=vptr): Document.
10065 PR rtl-optimization/62078
10066 * dse.c: Include cfgcleanup.h.
10067 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
10068 anything call purge_all_dead_edges and cleanup_cfg at the end
10071 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
10073 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
10076 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10078 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
10081 2015-01-21 David Sherwood <david.sherwood@arm.com>
10082 Tejas Belagod <Tejas.Belagod@arm.com>
10084 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
10085 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
10086 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
10089 2015-01-21 David Sherwood <david.sherwood@arm.com>
10090 Tejas Belagod <Tejas.Belagod@arm.com>
10092 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
10093 (aarch64_reverse_mask): New decls.
10094 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
10095 (insn_count): New mode_attr.
10096 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
10097 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
10098 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
10099 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
10100 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
10101 (aarch64_simd_st4): New patterns.
10102 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
10103 (aarch64_reverse_mask): New functions.
10105 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
10107 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
10109 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
10110 addressing modes for BE.
10111 (aarch64_print_operand): Add 'R' specifier.
10112 (aarch64_simd_disambiguate_copy): Delete.
10113 (aarch64_simd_emit_reg_reg_move): New function.
10114 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
10115 in define_splits for structural moves.
10116 (mov<mode>): Use less restrictive predicates.
10117 (*aarch64_mov<mode>): Simplify and only allow for LE.
10118 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
10120 2015-01-21 Alan Hayward <alan.hayward@arm.com>
10122 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
10124 2015-01-21 Richard Henderson <rth@redhat.com>
10127 * ccmp.c (used_in_cond_stmt_p): Remove.
10128 (expand_ccmp_expr): Don't use it.
10130 2015-01-21 Nick Clifton <nickc@redhat.com>
10132 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
10135 2015-01-21 Richard Biener <rguenther@suse.de>
10137 PR middle-end/64313
10138 * tree-core.h (builtin_info, builtin_info_type): Turn from
10139 an object with two arrays into an array of an object with
10140 decl and two flags, implicit_p and declared_p.
10141 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
10142 set_builtin_decl, set_builtin_decl_implicit_p,
10143 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
10144 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
10145 * builtins.c (builtin_info): Adjust.
10146 * gimplify.c (gimplify_addr_expr): References to builtins
10147 that have been declared by the user makes them eligible for
10148 use by the compiler. Call set_builtin_decl_implicit_p on them.
10150 2015-01-20 Jeff Law <law@redhat.com>
10153 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
10154 allow pc-relative addresses in operand predicates or constraints.
10156 2015-01-21 Bin Cheng <bin.cheng@arm.com>
10158 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
10159 neon on aarch32 processors for stringops.
10161 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10164 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
10166 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10169 * ipa-inline.c: Include lto-streamer.h
10170 (report_inline_failed_reason): Output source file differences and
10171 flags on optimization/target node mismatch.
10172 (can_inline_edge_p): Consider caller to be the outer inline function;
10173 be less restrictive about matching opimize and optimize_size attributes.
10174 (inline_account_function_p): Break out from ...
10175 (inline_small_functions): ... here.
10176 * ipa-inline-transform.c (clone_inlined_nodes): Use
10177 inline_account_function_p.
10178 (inline_call): Use optimize attribution; use inline_account_function_p.
10179 (inline_transform): Use opt_for_fn.
10180 * ipa-inline.h (inline_account_function_p): Declare.
10182 2015-01-20 Jakub Jelinek <jakub@redhat.com>
10185 * dwarf2out.c (decl_piece_node): Don't put bitsize into
10186 mode if bitsize <= 0.
10187 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
10188 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
10189 sizes and positions.
10191 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
10193 * config/nios2/nios2.c (nios2_asm_file_end): Implement
10194 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
10196 (TARGET_ASM_FILE_END): Define.
10198 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10200 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
10201 (struct tune_params): Use the enum.
10202 * arm.c (arm_*_tune): Update.
10203 (arm_option_override): Update.
10205 2015-01-20 Richard Biener <rguenther@suse.de>
10208 * ipa-reference.c (add_static_var): Inline ...
10209 (analyze_function): ... here after splitting out from ...
10210 (is_proper_for_analysis): ... this.
10212 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
10215 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
10216 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
10217 replace the conditional with it's true branch.
10218 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
10219 (arm_lra_p): Remove.
10221 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
10223 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
10225 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10227 * config/tilegx/mul-tables.c: Move symtab.h include after
10228 coretypes.h include.
10229 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
10230 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
10231 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
10232 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
10233 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
10235 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
10239 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
10241 PR rtl-optimization/64081
10242 * loop-iv.c (def_pred_latch_p): New function.
10243 (latch_dominating_def): Allow specific cases with non-single
10245 (iv_get_reaching_def): Likewise.
10246 (check_complex_exit_p): New function.
10247 (check_simple_exit): Use check_complex_exit_p to allow certain cases
10248 with exits not executing on any iteration.
10250 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10253 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
10254 to set branch cost.
10256 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10259 * i386.c (gate): Check flag_expensive_optimizations and
10261 (ix86_option_override_internal): Drop optimize_size condition
10262 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
10263 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
10264 MASK_PREFER_AVX128.
10265 (ix86_avx256_split_vector_move_misalign,
10266 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
10267 * sse.md (all uses of TARGET_PREFER_AVX128): Add
10268 optimize_insn_for_speed_p check.
10270 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
10272 * config/mips/mips.h (FP_ASM_SPEC): New define.
10273 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
10276 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
10279 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
10280 nullptr for insn when reaching the first insn.
10281 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
10282 (sh_insn_operands_modified_between_p): Add nullptr check.
10283 (sh_find_extending_set_of_reg): Fix log message. Don't accept
10284 sign extending mem load if the insn contains any UNSPEC or
10287 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10289 * params.def (inline-unit-growth): Drop to 15%.
10290 * invoke.texi (inline-unit-growth): Document change.
10292 2015-01-19 Martin Liska <mliska@suse.cz>
10295 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
10296 function for second argument of OBJ_TYPE_REF.
10298 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10301 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
10302 whether function is an alias.
10304 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10306 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
10309 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
10311 PR rtl-optimization/64671
10312 * lra-remat.c (operand_to_remat): Don't consider jump and call
10315 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
10318 * config/rs6000/default64.h: Include rs6000-cpus.def.
10319 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
10320 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
10321 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
10323 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
10325 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
10326 pseudo-op to specify assembler dialect.
10328 2015-01-19 Martin Liska <mliska@suse.cz>
10331 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
10332 Handle safe potentially removed nodes during filtering.
10334 2015-01-19 Martin Liska <mliska@suse.cz>
10336 * doc/extend.texi (no_icf): Add new attribute description.
10337 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
10338 where the pass attempts to merge a function with no_icf attribute.
10340 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10343 * doc/md.texi (ARM Options): Document register constraints.
10345 2015-01-19 Jiong Wang <jiong.wang@arm.com>
10346 Andrew Pinski <apinski@cavium.com>
10349 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
10350 (ashl<mode>3): Don't expand if operands[2] is not constant.
10352 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10355 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
10356 Match xor-and-xor RTL pattern.
10358 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
10360 PR rtl-optimization/64081
10361 * loop-iv.c (def_pred_latch_p): New function.
10362 (latch_dominating_def): Allow specific cases with non-single
10364 (iv_get_reaching_def): Likewise.
10365 (check_complex_exit_p): New function.
10366 (check_simple_exit): Use check_complex_exit_p to allow certain cases
10367 with exits not executing on any iteration.
10369 2015-01-19 Jakub Jelinek <jakub@redhat.com>
10371 * common.opt (fgraphite): Fix a typo.
10373 2015-01-19 Felix Yang <felix.yang@huawei.com>
10375 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
10377 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
10378 uminp, smax_nanp, smin_nanp): New builtins.
10379 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
10380 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
10381 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
10382 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
10383 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
10384 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
10385 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
10386 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
10387 vpminnms_f32): Rewrite using builtin functions.
10389 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
10392 * omp-low.c (offload_symbol_decl): Remove variable.
10393 (get_offload_symbol_decl): Remove function.
10394 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
10395 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
10396 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
10397 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
10398 BUILT_IN_GOACC_UPDATE don't pass it at all.
10400 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
10402 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
10405 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
10407 * ipa-chkp.c (chkp_produce_thunks): Add early param
10408 to split thunks production into two passes. Keep
10409 'always_inline' function bodies after the first pass.
10410 (pass_data_ipa_chkp_early_produce_thunks): New.
10411 (pass_ipa_chkp_early_produce_thunks): New.
10412 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
10413 chkp_produce_thunks signature.
10414 (make_pass_ipa_chkp_early_produce_thunks): New.
10415 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
10416 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
10417 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
10419 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
10421 * cgraph.c (cgraph_node::dump): Dump profile flags.
10423 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
10426 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
10427 reg appear first in the parallel.
10429 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
10431 * ipa-reference.c (set_reference_optimization_summary,
10432 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
10434 (ignore_module_statics): New static var.
10435 (propagate_bits): If ipa-reference is disabled, do not look into local
10437 (analyze_function): Disable analysis when ipa_reference is disabled.
10438 (generate_summary): Do not dump when reference is disabled;
10439 collect vars accessed from functions with ipa-reference disabled.
10440 (get_read_write_all_from_node): When ipa-reference is disabled, use the
10442 (gate): Enable for LTO.
10443 (ignore_edge_p): New function.
10444 (propagate): Skip functions w/o ipa-reference analysis.
10445 * optc-save-gen.awk: Handle optimize_debug correctly.
10446 * opth-gen.awk: Likewise.
10447 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
10448 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
10449 fira-share-save-slots, fira-share-spill-slots,
10450 fmodulo-sched-allow-regmoves, fpartial-inlining,
10451 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
10452 ftracer, ftree-parallelize-loops, fassociative-math,
10453 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
10455 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
10456 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
10458 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
10461 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
10464 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
10466 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
10468 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
10470 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
10471 Remove duplicate option listings.
10473 2015-01-18 Felix Yang <felix.yang@huawei.com>
10475 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
10476 (autofdo_source_profile::get_callsite_total_count,
10477 function_instance::get_function_instance_by_decl,
10478 string_table::get_index, string_table::get_index_by_decl,
10479 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
10480 Fix comment typos. Reformatting and minor code rearrangement.
10482 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10484 * config/rs6000/rs6000.md (probe_stack): Delete.
10485 (probe_stack_address): New.
10487 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10489 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
10490 to test for 32-bit ABIs, not !TARGET_POWERPC64.
10492 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10494 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
10495 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
10496 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
10498 (rs6000_libcall_value): Use the new function.
10500 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
10502 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
10504 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
10506 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
10507 implement a more precise life analysis for it during backward scan.
10509 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10511 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
10513 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
10515 PR rtl-optimization/52773
10516 * calls.c (emit_library_call_value): When pushing arguments use
10517 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
10518 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
10519 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
10521 2015-01-17 Jeff Law <law@redhat.com>
10523 PR rtl-optimization/32790
10524 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
10525 not ZERO_EXTEND in SET_DESTs.
10527 2015-01-17 Alan Modra <amodra@gmail.com>
10529 * cprop.c (do_local_cprop): Revert last change.
10531 2015-01-16 DJ Delorie <dj@redhat.com>
10532 Nick Clifton <nickc@redhat.com>
10534 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
10535 (addhi3_real): Likewise. Fix [HL+0] syntax.
10536 (subqi3_real): Likewise.
10537 (subhi3_real): Likewise.
10538 (cbranchqi4_real): Likewise. Allow saddr,#imm.
10539 (cbranchhi4_real): Likewise.
10540 (cbranchhi4_real_inverted): Likewise.
10541 (cbranchsi4_real_lt): Likewise.
10542 (cbranchsi4_real_ge): Likewise.
10543 (cbranchsi4_real_ge): Likewise.
10544 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
10545 (sub<mode>3_virt): Likewise.
10546 (cbranchqi4_virt): Likewise.
10547 (cbranchhi4_virt): Likewise.
10548 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
10549 always use '[reg+imm]' even when imm is zero.
10550 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
10551 (rl78_general_operand): New.
10552 (rl78_nonimmediate_operand): New.
10553 (rl78_nonfar_operand): Use them.
10554 (rl78_nonfar_nonimm_operand): Likewise.
10555 (rl78_stack_based_mem): Fix.
10556 * config/rl78/constraints.md (Ibqi): New.
10561 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
10562 (iorqi3): Likewise.
10563 (xorqi3): Likewise.
10564 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
10566 * config/rl78/constrains (Qs8): New constraint.
10567 * config/rl78/rl78.c (rl78_flags_already_set): New function.
10568 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
10569 * config/rl78/rl78-real.md (update_Z): New attribute.
10570 Update patterns to set it.
10571 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
10572 shorter compare and branch sequence can be used.
10573 (cbranchhi4_real): Likewise.
10574 (cbranchhi4_real_inverted): Likewise.
10576 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
10577 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
10579 * config/rl78/rl78.c (rl78_get_name_encoding): New.
10580 (rl78_option_override): Allow -mes0 only if C.
10581 (characterize_address): Support subregs of symbol_refs.
10582 (rl78_addr_space_address_mode): Move. Add __near.
10583 (rl78_far_p): Likewise.
10584 (rl78_addr_space_pointer_mode): Likewise.
10585 (rl78_as_legitimate_address): Likewise.
10586 (rl78_addr_space_subset_p): Likewise.
10587 (rl78_addr_space_convert): Likewise.
10588 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
10589 symbols with -mes0.
10590 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
10592 (rl78_alloc_physical_registers_op1): Change logic to prefer
10593 symbol[BC] addressing.
10594 (frodata_section): New.
10595 (rl78_asm_init_sections): Initialize it.
10596 (rl78_select_section): Put __far readonly symbols in .frodata.
10597 (rl78_make_type_far): New.
10598 (rl78_insert_attributes): Force all readonly symbols to be
10600 (rl78_asm_out_integer): New.
10601 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
10602 * config/rl78/rl78.opt (-mes0): New.
10604 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
10605 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
10606 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10607 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
10608 (rl78_saddr_p): New.
10609 (rl78_output_aligned_common): New.
10610 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
10611 (rl78_handle_saddr_attribute): New.
10612 (rl78_handle_naked_attribute): New.
10613 (rl78_attribute_table): Add saddr.
10614 (rl78_print_operand_1): Don't print '!' on saddr operands.
10615 (rl78_print_operand_1): Strip encodings.
10617 (rl78_strip_name_encoding): New.
10618 (rl78_attrlist_to_encoding): New.
10619 (rl78_encode_section_info): New.
10620 (rl78_asm_init_sections): New.
10621 (rl78_select_section): New.
10622 (rl78_output_labelref): New.
10623 (rl78_output_aligned_common): New.
10624 (rl78_asm_out_integer): New.
10625 (rl78_asm_ctor_dtor): New.
10626 (rl78_asm_constructor): New.
10627 (rl78_asm_destructor): New.
10629 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
10630 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
10631 (transcode_memory_rtx): Update.
10632 (rl78_expand_epilogue): Use A_REG instead of 0.
10634 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10636 * config/arm/arm-protos.h (struct tune_params): New field
10637 sched_autopref_queue_depth.
10638 * config/arm/arm.c (sched-int.h): Include header.
10639 (arm_first_cycle_multipass_dfa_lookahead_guard,)
10640 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
10641 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
10642 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
10643 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
10644 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
10645 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
10646 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
10647 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
10648 * config/arm/t-arm (arm.o): Update.
10649 * haifa-sched.c (update_insn_after_change): Update.
10650 (rank_for_schedule): Use auto-prefetcher model, if requested.
10651 (autopref_multipass_init): New static function.
10652 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
10653 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
10654 variable for debug dumps.
10655 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
10656 (autopref_multipass_dfa_lookahead_guard): New global function that
10657 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
10658 (init_h_i_d): Update.
10659 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
10660 * sched-int.h (enum autopref_multipass_data_status): New const enum.
10661 (autopref_multipass_data_): Structure for auto-prefetcher data.
10662 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
10663 (struct _haifa_insn_data:autopref_multipass_data): New field.
10664 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
10665 (autopref_multipass_dfa_lookahead_guard): Declare.
10667 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10669 * rtlanal.c (get_base_term): Handle SCRATCH.
10671 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10673 * config/aarch64/aarch64.c
10674 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
10675 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10677 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
10678 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10680 2015-01-17 Alan Modra <amodra@gmail.com>
10682 * cprop.c (do_local_cprop): Disallow replacement of fixed
10685 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10688 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
10691 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
10693 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
10694 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
10696 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10698 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
10699 * config/arm/thumb1.md: ... Here.
10701 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10703 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
10704 TImode for TARGET_32BIT.
10706 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10708 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
10709 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
10711 (rs6000_abi_word_mode): New function.
10713 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10715 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
10716 instead of UNITS_PER_WORD to describe the size of stack slots.
10718 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10720 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
10721 as rs6000_promote_function_mode. Move comment to there.
10722 (rs6000_promote_function_mode): New function.
10724 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
10726 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
10727 -mpowerpc64 is active.
10729 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
10731 PR middle-end/64353
10732 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
10735 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
10737 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
10738 introduced in revision 219724.
10740 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10741 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10744 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
10745 destination is not a GP reg.
10746 (*movdi_aarch64): Likewise.
10748 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
10751 * config/rs6000/default64.h: Revert ISA change.
10753 2015-01-16 Richard Biener <rguenther@suse.de>
10755 PR middle-end/64614
10756 * tree-ssa-uninit.c: Include tree-cfg.h.
10757 (MAX_SWITCH_CASES): New define.
10758 (convert_control_dep_chain_into_preds): Handle switch statements.
10759 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
10760 (normalize_one_pred_1): Do not split bit-manipulations.
10763 2015-01-16 Richard Biener <rguenther@suse.de>
10765 PR tree-optimization/64568
10766 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
10767 complex load rewriting for TARGET_MEM_REFs.
10769 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
10771 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
10773 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
10776 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
10778 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
10779 (aarch64_lra_p): Remove.
10781 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
10784 * ipa-chkp.h (chkp_instrumentable_p): New.
10785 * ipa-chkp.c: Include tree-inline.h.
10786 (chkp_instrumentable_p): New.
10787 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
10788 Fix processing of not instrumentable functions.
10789 (chkp_versioning): Use chkp_instrumentable_p. Warn about
10790 not instrumentable functions.
10791 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
10792 chkp_instrumentable_p.
10793 * tree-inline.h (copy_forbidden): New.
10794 * tree-inline.c (copy_forbidden): Not static anymore.
10796 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10798 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
10801 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
10803 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
10804 type OP_OUT to OP_INOUT.
10806 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
10808 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
10809 (high x) y) to y if x and y have the same base.
10811 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
10813 * config/arm/cortex-a57.md: New.
10814 * config/aarch64/aarch64.md: Include it.
10815 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
10816 * config/aarch64/aarch64-tune.md: Regenerate.
10818 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
10821 * ccmp.c (expand_ccmp_next): New function.
10822 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
10823 and compare insn sequence.
10824 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
10825 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
10826 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
10827 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
10828 (*ccmp_ior): Changed to ccmp_ior<mode>.
10829 (cmp<mode>): New pattern.
10830 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
10832 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
10834 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
10836 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
10837 _mm256_bsrli_epi128): New.
10838 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
10840 2015-01-15 Jiong Wang <jiong.wang@arm.com>
10842 * expmed.c (store_bit_field_using_insv): Improve warning message.
10843 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
10845 2015-01-15 Jiong Wang <jiong.wang@arm.com>
10847 PR rtl-optimization/64011
10848 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
10849 there is partial overflow.
10851 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10853 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
10855 (nds32_expand_epilogue_v3pop): Likewise.
10856 * config/nds32/nds32.md (sibcall): Define this for sibling call
10858 (sibcall_register): Likewise.
10859 (sibcall_immediate): Likewise.
10860 (sibcall_value): Likewise.
10861 (sibcall_value_register): Likewise.
10862 (sibcall_value_immediate): Likewise.
10863 (sibcall_epilogue): Likewise.
10864 (epilogue): Pass false to indicate this is not a sibcall epilogue.
10865 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
10866 (nds32_expand_epilogue_v3pop): Likewise.
10868 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10870 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
10871 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
10872 (return_internal): New.
10873 (return): Define this named pattern.
10874 (simple_return): Define this named pattern.
10875 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
10876 pattern instead of unspec_volatile_func_return.
10877 (nds32_expand_epilogue_v3pop): Likewise.
10878 (nds32_can_use_return_insn): New function.
10880 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10882 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
10883 * config/nds32/nds32.md (pop25return): New.
10884 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
10885 pop25return pattern.
10887 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10889 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
10890 -mforbid-fp-as-gp, and -mex9 options.
10892 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
10894 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
10895 remove -mgp-direct option.
10897 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10899 * doc/invoke.texi (--param early-inlining-insns): Update default value.
10900 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
10902 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10904 * ipa-inline.c (inline_small_functions): Work around hints
10907 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
10910 * doc/invoke.texi (Option Summary): Document new Nios II
10912 (Nios II Options): Likewise.
10913 * config/nios2/nios2.opt: Add -mgpopt= option support.
10914 Modify existing -mgpopt and -mno-gpopt options to be aliases.
10915 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
10916 * config/nios2/nios2.c (nios2_option_override): Adjust
10917 -mgpopt defaulting.
10918 (nios2_in_small_data_p): Return true for explicit small data
10919 sections even with -G0.
10920 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
10923 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
10926 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
10928 (inline_call): Fix removal of aliases.
10930 2015-01-15 Jakub Jelinek <jakub@redhat.com>
10932 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
10933 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
10934 * opts.c (common_handle_option): Add -fsanitize=vptr.
10935 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
10936 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
10937 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
10938 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
10939 (ubsan_expand_vptr_ifn): New prototype.
10940 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
10941 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
10942 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
10943 expand_LOOP_VECTORIZED): Make argument nameless, remove
10945 (expand_UBSAN_VPTR): New function.
10946 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
10948 (UBSAN_VPTR): New internal function.
10949 * sanopt.c (tree_map_traits): Renamed to ...
10950 (sanopt_tree_map_traits): ... this.
10951 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
10952 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
10953 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
10954 (maybe_optimize_ubsan_vptr_ifn): New function.
10955 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
10956 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
10958 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
10959 internal calls like pure functions for aliasing, even when they
10960 have other side-effects that prevent making them ECF_PURE.
10961 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
10962 (ubsan_expand_vptr_ifn): New function.
10964 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
10966 PR rtl-optimization/64110
10967 * stmt.c (parse_output_constraint): Process '^' and '$'.
10968 (parse_input_constraint): Ditto.
10969 * lra-constraints.c (process_alt_operands): Process the new
10971 * ira-costs.c (record_reg_classes): Process the new constraint
10973 * genoutput.c (indep_constraints): Add '^' and '$'.
10974 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
10975 * doc/md.texi: Add description of the new constraints.
10977 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
10978 Bernd Schmidt <bernds@codesourcery.com>
10979 Cesar Philippidis <cesar@codesourcery.com>
10980 James Norris <jnorris@codesourcery.com>
10981 Tom de Vries <tom@codesourcery.com>
10982 Ilmir Usmanov <i.usmanov@samsung.com>
10983 Dmitry Bocharnikov <dmitry.b@samsung.com>
10984 Evgeny Gavrin <e.gavrin@samsung.com>
10985 Jakub Jelinek <jakub@redhat.com>
10987 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
10988 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
10989 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
10990 New function types.
10991 * builtins.c: Include "gomp-constants.h".
10992 (expand_builtin_acc_on_device): New function.
10993 (expand_builtin, is_inexpensive_builtin): Handle
10994 BUILT_IN_ACC_ON_DEVICE.
10995 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
10997 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
10999 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
11000 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
11001 i386/intelmic-offload.h.
11002 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
11003 to libgomp and its dependencies.
11004 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
11005 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11006 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11007 * config/ia64/hpux.h (LIB_SPEC): Likewise.
11008 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11009 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11010 * doc/generic.texi: Update for OpenACC changes.
11011 * doc/gimple.texi: Likewise.
11012 * doc/invoke.texi: Likewise.
11013 * doc/sourcebuild.texi: Likewise.
11014 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11015 GF_OMP_FOR_KIND_OACC_LOOP.
11016 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
11017 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
11018 GF_OMP_TARGET_KIND_OACC_UPDATE,
11019 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11021 * gimple.c: Update comments for OpenACC changes.
11022 * gimple.def: Likewise.
11023 * gimple.h: Likewise.
11024 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
11025 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11026 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
11027 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11028 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
11030 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
11031 * gimplify.c: Include "gomp-constants.h".
11032 Update comments for OpenACC changes.
11033 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
11034 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
11035 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11036 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11037 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11038 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11039 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
11040 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11041 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11043 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
11044 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
11045 OMP_CLAUSE_SET_MAP_KIND.
11046 (gimplify_oacc_cache): New function.
11047 (gimplify_omp_for): Handle OACC_LOOP.
11048 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
11050 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
11051 OACC_EXIT_DATA, OACC_UPDATE.
11052 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
11053 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
11054 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
11055 (gimplify_body): Consider flag_openacc next to flag_openmp.
11056 * lto-streamer-out.c: Include "gomp-constants.h".
11057 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
11058 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
11059 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
11060 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
11061 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
11062 (BUILT_IN_ACC_ON_DEVICE): New builtins.
11063 * omp-low.c: Include "gomp-constants.h".
11064 Update comments for OpenACC changes.
11065 (struct omp_context): Add reduction_map, gwv_below, gwv_this
11067 (extract_omp_for_data, use_pointer_for_field, install_var_field)
11068 (new_omp_context, delete_omp_context, scan_sharing_clauses)
11069 (create_omp_child_function, scan_omp_for, scan_omp_target)
11070 (check_omp_nesting_restrictions, lower_reduction_clauses)
11071 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
11072 Update for OpenACC changes.
11073 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
11074 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
11075 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
11076 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11077 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
11078 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
11080 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11081 Handle GF_OMP_FOR_KIND_OACC_LOOP.
11082 (expand_omp_target, lower_omp_target): Handle
11083 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11084 GF_OMP_TARGET_KIND_OACC_UPDATE,
11085 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
11086 GF_OMP_TARGET_KIND_OACC_DATA.
11087 (pass_expand_omp::execute, execute_lower_omp)
11088 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
11090 (offload_symbol_decl): New variable.
11091 (oacc_get_reduction_array_id, oacc_max_threads)
11092 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
11093 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
11094 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
11095 (oacc_gimple_assign, oacc_initialize_reduction_data)
11096 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
11098 (is_targetreg_ctx): Remove function.
11099 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
11100 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
11101 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11102 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
11103 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
11104 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
11105 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
11106 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
11107 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
11108 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
11109 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
11110 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
11111 * tree-core.h: Update comments for OpenACC changes.
11112 (enum omp_clause_map_kind): Remove.
11113 (struct tree_omp_clause): Change type of map_kind member from enum
11114 omp_clause_map_kind to unsigned char.
11115 * tree-inline.c: Update comments for OpenACC changes.
11116 * tree-nested.c: Likewise. Include "gomp-constants.h".
11117 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
11118 (convert_tramp_reference_stmt, convert_gimple_call): Update for
11119 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
11120 OMP_CLAUSE_SET_MAP_KIND.
11121 * tree-pretty-print.c: Include "gomp-constants.h".
11122 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
11123 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
11124 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
11125 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
11126 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11127 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
11128 instead of OMP_CLAUSE_MAP_*.
11129 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
11130 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
11131 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11132 * tree-streamer-in.c: Include "gomp-constants.h".
11133 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
11134 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
11135 * tree-streamer-out.c: Include "gomp-constants.h".
11136 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
11138 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
11139 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
11140 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
11141 * tree.c (omp_clause_num_ops): Update accordingly.
11142 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
11144 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
11145 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
11146 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
11147 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
11148 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
11149 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
11150 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
11151 (OMP_CLAUSE_SET_MAP_KIND): New macro.
11152 * varpool.c (varpool_node::get_create): Consider flag_openacc next
11154 * config/i386/intelmic-offload.h: New file.
11155 * config/nvptx/offload.h: Likewise.
11157 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11159 * explow.h: Remove duplicate contents.
11160 * dojump.h: Likewise.
11162 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
11164 * arm.c (arm_xgene_tune): Add default initializer for instruction
11167 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11171 * ipa.c (symbol_table::remove_unreachable_nodes):
11172 Do not put abstract origins into boundary.
11174 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
11176 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
11177 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
11179 2015-01-15 Steve Ellcey <sellcey@mips.com>
11181 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
11182 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
11183 builtins.def, and chkp-builtins.def.
11185 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
11187 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
11190 2015-01-15 Richard Biener <rguenther@suse.de>
11192 PR tree-optimization/61743
11193 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
11194 information on PHIs for some simple cases.
11196 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11198 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
11200 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
11201 * config/arm/arm-cores.def (xgene1): New entry.
11202 * config/arm/arm-tables.opt: Regenerate.
11203 * config/arm/arm-tune.md: Regenerate.
11204 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
11206 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
11208 * tree-if-conv.c: Include hash-map.h.
11209 (aggressive_if_conv): New variable.
11210 (fold_build_cond_expr): Add simplification of non-zero condition.
11211 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
11212 destination block is not always executed.
11213 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
11214 than two predecessors if AGGRESSIVE_IF_CONV is true.
11215 (if_convertible_stmt_p): Fix commentary.
11216 (all_preds_critical_p): New function.
11217 (has_pred_critical_p): New function.
11218 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
11219 BB can have more than two predecessors and all incoming edges can be
11221 (predicate_bbs): Skip predication for loop exit block, use build2_loc
11222 to compute predicate for true edge.
11223 (find_phi_replacement_condition): Delete this function.
11224 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
11225 Allow interchange PHI arguments if EXTENDED is false.
11226 Change check that block containing reduction statement candidate
11227 is predecessor of phi-block since phi may have more than two arguments.
11228 (phi_args_hash_traits): New helper structure.
11229 (struct phi_args_hash_traits): New type.
11230 (phi_args_hash_traits::hash): New function.
11231 (phi_args_hash_traits::equal_keys): New function.
11232 (gen_phi_arg_condition): New function.
11233 (predicate_scalar_phi): Add handling of phi nodes with more than two
11234 arguments, delete COND and TRUE_BB arguments, insert body of
11235 find_phi_replacement_condition to predicate ordinary phi nodes.
11236 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
11237 delete call of find_phi_replacement_condition and invoke
11238 predicate_scalar_phi with two arguments.
11239 (insert_gimplified_predicates): Add assert that non-predicated block
11240 don't have statements to insert.
11241 (ifcvt_split_critical_edges): New function.
11242 (ifcvt_split_def_stmt): Likewise.
11243 (ifcvt_walk_pattern_tree): Likewise.
11244 (stmt_is_root_of_bool_pattern): Likewise.
11245 (ifcvt_repair_bool_pattern): Likewise.
11246 (ifcvt_local_dce): Likewise.
11247 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
11248 is copy of inner or outer loop force_vectorize field, invoke
11249 ifcvt_split_critical_edges, ifcvt_local_dce and
11250 ifcvt_repair_bool_pattern for aggressive if-conversion.
11252 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
11254 * config/aarch64/aarch64.md: Include xgene1.md.
11255 * config/aarch64/xgene1.md: New file.
11257 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11259 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
11260 xgene1 (APM XGene-1) core definition.
11261 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
11262 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
11263 * doc/invoke.texi: Document -mcpu=xgene1.
11265 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11267 * dojump.h: New header file.
11268 * explow.h: Likewise.
11269 * expr.h: Remove includes.
11270 Move expmed.c prototypes to expmed.h.
11271 Move dojump.c prototypes to dojump.h.
11272 Move alias.c prototypes to alias.h.
11273 Move explow.c prototypes to explow.h.
11274 Move calls.c prototypes to calls.h.
11275 Move emit-rtl.c prototypes to emit-rtl.h.
11276 Move varasm.c prototypes to varasm.h.
11277 Move stmt.c prototypes to stmt.h.
11278 (saved_pending_stack_adjust): Move to dojump.h.
11279 (adjust_address): Move to explow.h.
11280 (adjust_address_nv): Move to emit-rtl.h.
11281 (adjust_bitfield_address): Likewise.
11282 (adjust_bitfield_address_size): Likewise.
11283 (adjust_bitfield_address_nv): Likewise.
11284 (adjust_automodify_address_nv): Likewise.
11285 * explow.c (expr_size): Move to expr.c.
11286 (int_expr_size): Likewise.
11287 (tree_expr_size): Likewise.
11288 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11289 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11290 * genemit.c (main): Generate includes statistics.h, real.h,
11291 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
11293 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
11294 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
11295 explow.h, emit-rtl.h, stmt.h.
11296 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
11297 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
11298 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
11299 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
11300 emit-rtl.h, varasm.h, stmt.h.
11301 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
11302 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
11303 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
11304 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
11305 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11306 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
11307 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
11308 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
11309 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
11310 tm.h tree.h varasm.h vec.h wide-int.h.
11311 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11312 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11313 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
11314 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
11315 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
11316 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
11317 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
11318 * loop-iv.c: Likewise.
11319 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
11320 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
11321 statistics.h stmt.h tree.h varasm.h wide-int.h.
11322 * lra-constraints.c: Likewise.
11323 * lra-eliminations.c: Likewise.
11324 * lra-lives.c: Likewise.
11325 * lra-remat.c: Likewise.
11326 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11327 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
11328 statistics.h stmt.h tree.h varasm.h wide-int.h.
11329 * hw-doloop.c: Likewise.
11330 * ira-color.c: Likewise.
11331 * ira-emit.c: Likewise.
11332 * loop-doloop.c: Likewise.
11333 * loop-invariant.c: Likewise.
11334 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11335 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
11336 statistics.h stmt.h tree.h varasm.h wide-int.h.
11337 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
11338 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
11339 statistics.h stmt.h tree.h varasm.h wide-int.h.
11340 * combine-stack-adj.c: Likewise.
11343 * ifcvt.c: Likewise.
11344 * ira-costs.c: Likewise.
11345 * jump.c: Likewise.
11346 * lra-coalesce.c: Likewise.
11347 * lra-spills.c: Likewise.
11348 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11349 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
11350 stmt.h varasm.h wide-int.h.
11351 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11352 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11354 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
11355 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
11356 statistics.h stmt.h varasm.h wide-int.h.
11357 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
11358 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
11359 varasm.h wide-int.h.
11360 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
11361 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11362 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
11363 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
11364 statistics.h stmt.h.
11365 * config/tilepro/tilepro.c: Likewise.
11366 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
11367 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
11368 * config/pdp11/pdp11.c: Likewise.
11369 * config/xtensa/xtensa.c: Likewise.
11370 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
11371 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11373 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11374 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11375 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
11376 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11377 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11378 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
11379 * rtl-chkp.c: Likewise.
11380 * tree-chkp-opt.c: Likewise.
11381 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
11382 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11383 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
11384 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11385 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11386 statistics.h stmt.h.
11387 * tree-vect-data-refs.c: Likewise.
11388 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
11389 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11390 rtl.h statistics.h stmt.h varasm.h.
11391 * internal-fn.c: Likewise.
11392 * ipa-icf-gimple.c: Likewise.
11393 * lto-section-out.c: Likewise.
11394 * tree-data-ref.c: Likewise.
11395 * tree-nested.c: Likewise.
11396 * tree-outof-ssa.c: Likewise.
11397 * tree-predcom.c: Likewise.
11398 * tree-pretty-print.c: Likewise.
11399 * tree-scalar-evolution.c: Likewise.
11400 * tree-ssa-strlen.c: Likewise.
11401 * tree-vect-loop.c: Likewise.
11402 * tree-vect-patterns.c: Likewise.
11403 * tree-vect-slp.c: Likewise.
11404 * tree-vect-stmts.c: Likewise.
11405 * tsan.c: Likewise.
11406 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11407 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
11409 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
11410 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11411 statistics.h stmt.h varasm.h.
11412 * loop-unroll.c: Likewise.
11413 * ubsan.c: Likewise.
11414 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
11415 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
11417 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11418 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
11419 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
11420 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11421 statistics.h stmt.h.
11422 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
11423 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11424 statistics.h stmt.h varasm.h.
11425 * gimple-match-head.c: Likewise.
11426 * lto-cgraph.c: Likewise.
11427 * lto-section-in.c: Likewise.
11428 * lto-streamer-in.c: Likewise.
11429 * lto-streamer-out.c: Likewise.
11430 * tree-affine.c: Likewise.
11431 * tree-cfg.c: Likewise.
11432 * tree-cfgcleanup.c: Likewise.
11433 * tree-if-conv.c: Likewise.
11434 * tree-into-ssa.c: Likewise.
11435 * tree-ssa-alias.c: Likewise.
11436 * tree-ssa-copyrename.c: Likewise.
11437 * tree-ssa-dse.c: Likewise.
11438 * tree-ssa-forwprop.c: Likewise.
11439 * tree-ssa-live.c: Likewise.
11440 * tree-ssa-math-opts.c: Likewise.
11441 * tree-ssa-pre.c: Likewise.
11442 * tree-ssa-sccvn.c: Likewise.
11443 * tree-tailcall.c: Likewise.
11444 * tree-vect-generic.c: Likewise.
11445 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11446 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
11447 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11448 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
11449 * varasm.c: Likewise.
11450 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11451 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
11453 * init-regs.c: Likewise.
11455 * omp-low.c: Likewise.
11456 * stack-ptr-mod.c: Likewise.
11457 * tree-ssa-reassoc.c: Likewise.
11458 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11459 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
11461 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11462 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
11463 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11464 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
11465 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11466 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
11467 * tree-ssa-phiopt.c: Likewise.
11468 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11469 fixed-value.h hashtab.h real.h statistics.h stmt.h.
11470 * config/fr30/fr30.c: Likewise.
11471 * config/frv/frv.c: Likewise.
11472 * expr.c: Likewise.
11473 * final.c: Likewise.
11474 * optabs.c: Likewise.
11475 * passes.c: Likewise.
11476 * simplify-rtx.c: Likewise.
11477 * stmt.c: Likewise.
11478 * toplev.c: Likewise.
11479 * var-tracking.c: Likewise.
11480 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11481 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11482 * lower-subreg.c: Likewise.
11483 * postreload-gcse.c: Likewise.
11485 * reginfo.c: Likewise.
11486 * store-motion.c: Likewise.
11487 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11488 fixed-value.h hashtab.h real.h stmt.h varasm.h.
11489 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11490 fixed-value.h hashtab.h statistics.h stmt.h.
11491 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11492 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11493 * except.c: Likewise.
11494 * explow.c: Likewise.
11495 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11496 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
11498 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11499 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
11500 * tree-ssa-structalias.c: Likewise.
11501 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11502 fixed-value.h insn-config.h real.h statistics.h.
11503 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11504 fixed-value.h insn-config.h real.h statistics.h stmt.h.
11505 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11506 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
11507 * cfgbuild.c: Likewise.
11508 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11509 fixed-value.h real.h rtl.h statistics.h stmt.h.
11510 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11511 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11512 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11513 fixed-value.h real.h statistics.h stmt.h.
11514 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11515 fixed-value.h real.h statistics.h stmt.h varasm.h.
11516 * cprop.c: Likewise.
11517 * modulo-sched.c: Likewise.
11518 * postreload.c: Likewise.
11519 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
11520 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
11521 statistics.h stmt.h varasm.h.
11522 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
11523 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11524 rtl.h statistics.h stmt.h varasm.h.
11525 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
11526 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
11528 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
11529 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
11531 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
11532 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
11534 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
11535 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11536 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11537 function.h real.h statistics.h stmt.h varasm.h.
11538 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11539 insn-config.h real.h statistics.h stmt.h.
11540 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11541 statistics.h stmt.h.
11542 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
11543 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
11544 statistics.h stmt.h varasm.h.
11545 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
11546 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
11547 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11548 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
11549 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
11550 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11551 statistics.h stmt.h varasm.h.
11552 * ipa-polymorphic-call.c: Likewise.
11553 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
11554 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11555 statistics.h stmt.h.
11556 * config/c6x/c6x.c: Likewise.
11557 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
11558 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11559 statistics.h stmt.h varasm.h.
11560 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
11561 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
11563 * ipa-split.c: Likewise.
11564 * tree-eh.c: Likewise.
11565 * tree-ssa-dce.c: Likewise.
11566 * tree-ssa-loop-niter.c: Likewise.
11567 * tree-vrp.c: Likewise.
11568 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
11569 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
11571 * config/nds32/nds32-fp-as-gp.c: Likewise.
11572 * config/nds32/nds32-intrinsic.c: Likewise.
11573 * config/nds32/nds32-isr.c: Likewise.
11574 * config/nds32/nds32-md-auxiliary.c: Likewise.
11575 * config/nds32/nds32-memory-manipulation.c: Likewise.
11576 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11577 * config/nds32/nds32-predicates.c: Likewise.
11578 * config/nds32/nds32.c: Likewise.
11579 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
11580 fixed-value.h hashtab.h real.h statistics.h.
11581 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
11582 fixed-value.h hashtab.h real.h statistics.h stmt.h.
11583 * config/arm/arm.c: Likewise.
11584 * config/avr/avr.c: Likewise.
11585 * config/bfin/bfin.c: Likewise.
11586 * config/h8300/h8300.c: Likewise.
11587 * config/i386/i386.c: Likewise.
11588 * config/ia64/ia64.c: Likewise.
11589 * config/iq2000/iq2000.c: Likewise.
11590 * config/m32c/m32c.c: Likewise.
11591 * config/m32r/m32r.c: Likewise.
11592 * config/m68k/m68k.c: Likewise.
11593 * config/mcore/mcore.c: Likewise.
11594 * config/mep/mep.c: Likewise.
11595 * config/mips/mips.c: Likewise.
11596 * config/mn10300/mn10300.c: Likewise.
11597 * config/moxie/moxie.c: Likewise.
11598 * config/pa/pa.c: Likewise.
11599 * config/rl78/rl78.c: Likewise.
11600 * config/rx/rx.c: Likewise.
11601 * config/s390/s390.c: Likewise.
11602 * config/sh/sh.c: Likewise.
11603 * config/sparc/sparc.c: Likewise.
11604 * config/spu/spu.c: Likewise.
11605 * config/stormy16/stormy16.c: Likewise.
11606 * config/v850/v850.c: Likewise.
11607 * config/vax/vax.c: Likewise.
11608 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
11609 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11610 * config/msp430/msp430.c: Likewise.
11611 * predict.c: Likewise.
11612 * value-prof.c: Likewise.
11613 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
11614 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
11615 * config/microblaze/microblaze.c: Likewise.
11616 * config/nios2/nios2.c: Likewise.
11617 * config/rs6000/rs6000.c: Likewise.
11618 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11619 insn-config.h real.h rtl.h statistics.h stmt.h.
11620 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11621 insn-config.h real.h statistics.h stmt.h.
11622 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
11623 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
11624 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
11625 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11626 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
11627 fixed-value.h real.h statistics.h stmt.h.
11628 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
11629 fixed-value.h statistics.h stmt.h.
11630 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
11633 2015-01-15 Jakub Jelinek <jakub@redhat.com>
11635 * gengtype.c (create_user_defined_type): Workaround
11636 -Wmaybe-uninitialized false positives.
11637 * cse.c (fold_rtx): Likewise.
11638 * loop-invariant.c (gain_for_invariant): Likewise.
11640 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
11642 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
11643 set the memory attributes in all cases but clear MEM_EXPR if need be.
11645 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
11647 PR tree-optimization/64434
11648 * cfgexpand.c (reorder_operands): New function.
11649 (expand_gimple_basic_block): Insert call of reorder_operands if
11652 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
11654 * config/mips/micromips.md (*swp): Remove explicit parallel.
11655 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
11656 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
11657 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
11658 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
11659 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
11660 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
11661 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
11662 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
11663 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
11664 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
11665 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
11666 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
11667 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
11668 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
11669 (mips_wrdsp): Likewise.
11670 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
11672 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
11673 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
11674 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
11675 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
11676 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
11677 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
11678 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
11679 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
11680 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
11682 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
11684 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
11685 (mips_print_operand): Support 'y' to print exact log2 in decimal
11687 * config/mips/mips.h (ISA_HAS_LSA): New define.
11688 (ISA_HAS_DLSA): Likewise.
11689 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
11690 * config/mips/predicates.md (const_immlsa_operand): New predicate.
11692 2015-01-15 Martin Liska <mliska@suse.cz>
11695 * optc-save-gen.awk: Add support for array types.
11697 2015-01-15 Richard Biener <rguenther@suse.de>
11699 PR middle-end/64365
11700 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
11701 for MEM_REF access functions with the same base can never partially
11704 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
11706 * common.opt: New option -fstack-protector-explicit.
11707 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
11708 (stack_protect_decl_phase): Handle stack_protect attribute for
11709 explicit stack protection requests.
11710 (expand_used_vars): Similarly.
11711 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
11712 * doc/extend.texi: Add documentation for "stack_protect" attribute.
11713 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
11715 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
11718 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
11720 (sh_extending_set_of_reg): New struct.
11721 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
11722 sh_remove_reg_dead_or_unused_notes): New Declarations.
11723 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
11724 sh_find_extending_set_of_reg, sh_split_tst_subregs,
11725 sh_extending_set_of_reg::use_as_extended_reg): New functions.
11726 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
11727 convert to insn_and_split and use new function sh_split_tst_subregs.
11729 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
11731 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
11733 (Optimization Options): Move -fuse-ld documentation to...
11734 (Link Options): ...here.
11736 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
11738 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
11740 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
11741 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
11742 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
11743 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
11744 instead of ZR for the memory operand of LL/SC.
11745 (compare_and_swap_12, sync_add<mode>): Likewise.
11746 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
11747 (sync_new_<optab>_12, sync_nand_12): Likewise.
11748 (sync_old_nand_12, sync_new_nand_12): Likewise.
11749 (sync_sub<mode>, sync_old_add<mode>): Likewise.
11750 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
11751 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
11752 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
11753 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
11754 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
11755 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
11756 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
11757 * doc/md.texi (ZC): Update description.
11759 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
11761 * builtins.c (expand_builtin_atomic_exchange): Remove error when
11762 memory model is CONSUME.
11763 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
11764 expand_builtin_atomic_store): Change invalid memory model errors to
11766 (expand_builtin_atomic_clear): Change invalid model errors to warnings
11767 and issue warning for CONSUME.
11769 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
11771 * lto-cgraph: Update function comments for
11772 lto_symtab_encoder_encode_*.
11774 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
11776 * Makefile.in (site.exp): Do not set ENABLE_LTO.
11778 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
11780 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
11781 * lto-cgraph.c (select_what_to_stream): Remove argument, use
11782 lto_stream_offload_p instead.
11783 * lto-streamer.h (select_what_to_stream): Remove argument.
11784 * passes.c (ipa_write_summaries): Likewise.
11785 * tree-pass.h (ipa_write_summaries): Likewise.
11787 2015-01-14 Richard Biener <rguenther@suse.de>
11789 PR tree-optimization/59354
11790 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
11791 groups larger than the slp group size as having gaps.
11793 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
11795 PR middle-end/59448
11796 * builtins.c (get_memmodel): Promote consume to acquire always.
11798 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
11801 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
11804 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
11807 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
11809 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
11810 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
11811 AVX512VBMI, as it implies AVX512BW.
11813 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
11816 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
11817 (vec_unpacks_hi_v16sf): Ditto.
11819 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11821 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
11824 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11826 * doc/invoke.texi (mapcs): Mention deprecation.
11827 (mapcs-frame): Likewise.
11829 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
11832 * config/arm/arm.c (callee_saved_reg_p): Define.
11833 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
11834 register is callee saved instead of !call_used_regs[reg].
11835 (thumb1_compute_save_reg_mask): Likewise.
11837 2015-01-14 Hale Wang <hale.wang@arm.com>
11839 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
11842 2015-01-14 Richard Biener <rguenther@suse.de>
11845 * tree-inline.c (insert_debug_decl_map): Check destination
11846 function MAY_HAVE_DEBUG_STMTS.
11847 (insert_init_debug_bind): Likewise.
11848 (insert_init_stmt): Remove redundant check.
11849 (remap_gimple_stmt): Drop debug stmts if the destination
11850 function has var-tracking assignments disabled.
11852 2015-01-14 Martin Liska <mliska@suse.cz>
11854 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
11855 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
11857 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11860 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
11861 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
11863 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
11865 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
11866 level from an ARCH; do not inject the default.
11867 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
11868 MIPS_ISA_LEVEL_SPEC.
11869 (MIPS_ISA_NAN2008_SPEC): Update comment.
11870 (BASE_DRIVER_SELF_SPECS): Likewise.
11871 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
11872 MIPS_DEFAULT_ISA_LEVEL_SPEC.
11873 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
11874 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
11875 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
11877 2015-01-14 Richard Biener <rguenther@suse.de>
11879 PR tree-optimization/64493
11880 PR tree-optimization/64495
11881 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
11882 assign the proper vectorized PHI to the inner loop exit PHIs.
11884 2015-01-14 Joey Ye <joey.ye@arm.com>
11886 * config/arm/arm.c (arm_compute_save_reg_mask):
11887 Do not save lr in case of tail call.
11888 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
11890 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
11892 * tree-vrp.c (check_array_ref): Emit more warnings
11893 for warn_array_bounds >= 2.
11894 * common.opt: New option -Warray-bounds=.
11895 * doc/invoke.texi: Document -Warray-bounds=.
11897 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
11899 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
11900 (mforbid-fp-as-gp): Remove.
11902 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
11903 (nds32_symbol_load_store_p): Remove.
11904 (nds32_fp_as_gp_check_available): Clean up implementation.
11905 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
11907 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
11908 fp-as-gp and ex9 cases.
11910 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
11912 * tree-profile.c (init_ic_make_global_vars): Drop workaround
11913 for bintuils bug 14342.
11914 (init_ic_make_global_vars): Likewise.
11915 (gimple_init_edge_profiler): Likewise.
11916 (gimple_gen_ic_func_profiler): Likewise.
11918 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11920 * ipa-inline.c (inline_small_functions): Swap the operands in
11923 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
11926 * ipa-inline-analysis.c (node_growth_cache): Remove.
11927 (initialize_growth_caches): Do not initialize it.
11928 (free_growth_caches): Do not free it.
11929 (do_estimate_growth): Rename to ...
11930 (estimate_growth): ... this one; drop growth cache code.
11931 (growth_likely_positive): Always go the heuristics way.
11932 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
11933 (reset_edge_caches): Do not reset node growth.
11934 (heap_edge_removal_hook): Do not maintain cache.
11935 (inline_small_functions): Likewise; strenghten sanity check.
11936 (ipa_inline): Do not maintain caches.
11937 * ipa-inline.h (node_growth_cache): Remove.
11938 (do_estimate_growth): Remove to ...
11939 (estimate_growth): this one; remove inline version.
11940 (reset_node_growth_cache): Remove.
11942 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
11945 * ipa-inline.c (inline_small_functions): Update callee keys after
11946 resolving speculation
11947 (inline_small_functions): Always check monotonicity of the queue.
11949 2015-01-13 Marek Polacek <polacek@redhat.com>
11951 PR middle-end/64391
11952 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
11954 2015-01-13 Jakub Jelinek <jakub@redhat.com>
11956 PR rtl-optimization/64286
11957 * ree.c (combine_reaching_defs): Move part of comment earlier,
11958 remove !SCALAR_INT_MODE_P check.
11959 (add_removable_extension): Don't add vector mode
11960 extensions if all uses of the source register aren't the same
11963 2015-01-13 Renlin Li <renlin.li@arm.com>
11965 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
11966 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
11968 2015-01-13 Martin Liska <mliska@suse.cz>
11970 * ipa-icf.c (sem_function::equals_private): Call new functions
11971 cl_target_option_print_diff and cl_optimization_print_diff.
11972 * optc-save-gen.awk (cl_target_option_print_diff): New function.
11973 (cl_optimization_print_diff): Likewise.
11974 * opth-gen.awk: Likewise.
11976 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
11978 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
11979 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
11980 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
11981 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
11982 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
11983 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
11985 2015-01-13 Andrew Pinski <apinski@cavium.com>
11987 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
11988 instead of src mode.
11990 2015-01-13 Richard Biener <rguenther@suse.de>
11993 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
11996 2015-01-13 Andrew Pinski <apinski@cavium.com>
11998 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
12000 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12002 2015-01-13 Jakub Jelinek <jakub@redhat.com>
12004 PR middle-end/63974
12005 * cfgexpand.c (expand_computed_goto): Don't call
12006 convert_memory_address here.
12008 2015-01-13 Richard Biener <rguenther@suse.de>
12010 PR tree-optimization/64406
12011 * tree-loop-distibution.c (pass_loop_distribution::execute):
12012 Reset the SCEV hashtable if we distributed anything.
12014 2015-01-13 Richard Biener <rguenther@suse.de>
12016 PR tree-optimization/64404
12017 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
12018 SLP types for CSEd loads.
12020 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12022 PR tree-optimization/64436
12023 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
12024 merge of two symbolic numbers for a bitwise OR to ...
12025 (perform_symbolic_merge): This. Also fix computation of the range and
12026 end of the symbolic number corresponding to the result of a bitwise OR.
12028 2015-01-13 Richard Biener <rguenther@suse.de>
12030 PR tree-optimization/64568
12031 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
12032 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
12034 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12036 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
12037 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
12039 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12041 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
12042 target-specific symbol_ref flag.
12043 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
12044 resides in rodata section.
12045 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
12046 (nds32_encode_section_info): New function.
12048 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12050 * config/nds32/nds32.md (call): Use pseudo instruction bal which
12051 clobbers TA_REGNUM if large code model is specified.
12052 (call_register): Likewise.
12053 (call_immediate): Likewise.
12054 (call_value): Likewise.
12055 (call_value_register): Likewise.
12056 (call_value_immediate): Likewise.
12058 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12060 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
12061 (TARGET_CMODEL_MEDIUM): New macro.
12062 (TARGET_CMODEL_LARGE): New macro.
12063 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
12064 code model setting in assembly code.
12066 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12068 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
12069 Remove MASK_GP_DIRECT flag.
12070 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
12071 one of the multilib default options.
12072 * config/nds32/nds32.opt (mgp-direct): Remove.
12073 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
12074 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
12076 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12078 * config/nds32/nds32.opt (mcmodel): Add new option.
12079 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
12080 to describe code model.
12082 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
12085 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
12087 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
12089 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
12090 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
12091 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
12092 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
12093 __builtin_sh_set_fpscr.
12095 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
12097 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
12098 after a funtion name just to indicate it is a function.
12099 ([-fsanitize-undefined-trap-on-error]): Likewise.
12100 ([-fdbg-cnt=]): Likewise.
12101 ([-mmemcpy]): Likewise.
12102 ([-mflush-func]): Likewise.
12103 ([-msynci]): Likewise.
12105 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
12107 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
12110 2015-01-12 Jakub Jelinek <jakub@redhat.com>
12112 PR tree-optimization/64563
12113 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
12114 instead of != VR_VARYING.
12117 * config/i386/i386.c (ix86_expand_prologue): Add
12118 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
12120 PR tree-optimization/64454
12121 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
12122 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
12123 for signed or [0, op1 - 1] for unsigned modulo.
12124 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12125 even if op1 does not satisfy integer_pow2p.
12128 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
12130 2015-01-12 Jeff Law <law@redhat.com>
12133 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
12134 (trunchiqi2, truncsihi2): Similarly.
12136 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
12137 rather than calling F.
12139 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
12141 * tsan.c (instrument_expr): Use force_gimple_operand.
12142 Use may_be_nonaddressable_p instead of is_gimple_addressable.
12144 2015-01-12 Richard Biener <rguenther@suse.de>
12146 PR tree-optimization/64530
12147 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
12150 2015-01-12 Richard Biener <rguenther@suse.de>
12152 PR middle-end/64357
12153 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
12156 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12158 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
12159 Cortex-A17 tuning parameters.
12160 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
12162 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12164 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
12165 * config/arm/arm.c (arm_macro_fusion_p): New function.
12166 (arm_macro_fusion_pair_p): Likewise.
12167 (TARGET_SCHED_MACRO_FUSION_P): Define.
12168 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
12169 (ARM_FUSE_NOTHING): Likewise.
12170 (ARM_FUSE_MOVW_MOVT): Likewise.
12171 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
12172 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
12173 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
12174 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
12175 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
12176 arm_cortex_a5_tune): Specify fuseable_ops value.
12178 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
12181 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
12182 test for PIE with copy reloc.
12183 * configure: Regenerated.
12185 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12187 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
12189 (arm_tls_descseq_addr): Likewise.
12190 (arm_gen_movmemqi): Likewise.
12191 (arm_expand_epilogue_apcs_frame): Likewise.
12192 (arm_expand_epilogue): Likewise.
12193 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
12196 2015-01-12 Martin Liska <mliska@suse.cz>
12199 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
12200 volatility for correct operands.
12202 2015-01-12 Martin Liska <mliska@suse.cz>
12204 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12205 that a function is not leaf.
12206 (sem_function::compare_polymorphic_p): Likewise.
12208 2015-01-12 Martin Liska <mliska@suse.cz>
12210 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12211 that a function is not leaf.
12212 (sem_function::compare_polymorphic_p): Likewise.
12214 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12216 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
12217 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
12218 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
12219 fold-const.h, tree-check.h.
12221 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
12225 * ipa-inline.c (compute_uninlined_call_time,
12226 compute_inlined_call_time): Use counts for extra precision when
12228 (big_speedup_p): Fix formating.
12229 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
12230 (relative_time_benefit): Remove.
12231 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
12232 merge guessed and read profile paths.
12233 (inline_small_functions): Count only !optimize_size functions into
12234 initial size; be more lax about sanity check when profile is used;
12235 be sure to update inlined function profile when profile is read.
12237 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
12240 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
12241 cost when edge becomes direct.
12242 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
12243 is resolved or when introducing new speculation.
12245 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
12249 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
12250 '||' to fix typo issue.
12252 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
12253 accept and return NULL.
12255 2015-01-12 Martin Liska <mliska@suse.cz>
12257 * cgraph.c (cgraph_edge::remove_callee): Move function to header
12258 file for being inlined.
12259 (cgraph_set_edge_callee): Delete.
12260 (cgraph_edge::redirect_callee): Move function to header file
12262 (cgraph_edge::make_direct): Use new function.
12263 (cgraph_edge::dump_edge_flags): New function created from
12264 static dump_edge_flags function.
12265 (cgraph_node::dump): Use new function.
12266 (cgraph_edge::verify_count_and_frequency): New function created
12267 from verify_edge_count_and_frequency.
12268 (cgraph_edge::verify_corresponds_to_fndecl): New function created
12269 from verify_edge_corresponds_to_fndecl.
12270 (verify_edge_corresponds_to_fndecl): Delete.
12271 (cgraph_node::verify_node): Use new function.
12272 * cgraph.h (cgraph_edge::set_callee): New function.
12273 (cgraph_edge::dump_edge_flags): Likewise.
12274 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
12276 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
12278 * ipa-utils.c (estimate_function_body_sizes): Do not
12279 free node params when called late with early=true.
12281 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
12283 * doc/md.texi (Instruction Patterns): Rewrite text for
12285 (Example): Likewise.
12287 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
12289 * doc/invoke.texi (Option Summary): Break long lines.
12290 [(-fdiagnostics-color)]: Put long literal in @smallexample
12292 [(-fsanitize-recover)]: Likewise.
12293 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
12294 [(-ffast-math)]: Likewise.
12295 [(--param max-inline-insns-recursive)]: Likewise.
12296 [(--param max-inline-recursive-depth)]: Likewise.
12297 [(-mno-text-section-literals)]: Likewise.
12299 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
12301 * doc/install.texi: Update for libgomp being renamed from "GNU
12302 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
12304 * doc/sourcebuild.texi: Likewise.
12306 2015-01-10 Anthony Green <green@moxielogic.com>
12308 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
12309 mul.x availability for moxiebox configuration.
12311 2015-01-09 Anthony Green <green@moxielogic.com>
12313 * config/moxie/moxie.md: Tabify assembly output.
12315 2015-01-09 Anthony Green <green@moxielogic.com>
12317 * config/moxie/moxie.md (CC_REG): Correct register definition.
12319 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
12321 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
12322 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
12325 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
12327 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
12329 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
12330 Jakub Jelinek <jakub@redhat.com>
12332 PR middle-end/64412
12333 * lto-streamer.h (lto_stream_offload_p): New declaration.
12334 * lto-streamer.c (lto_stream_offload_p): New variable.
12335 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
12336 at the same time as section_name_prefix.
12337 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
12338 if lto_stream_offload_p.
12339 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
12340 stream TREE_TARGET_OPTION if lto_stream_offload_p.
12341 (write_ts_function_decl_tree_pointers): Don't
12342 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
12343 * tree-streamer-in.c (unpack_value_fields): Don't stream
12344 TREE_TARGET_OPTION in if ACCEL_COMPILER.
12345 (lto_input_ts_function_decl_tree_pointers): Don't stream
12346 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
12347 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
12348 instead of section_name_prefix string comparisons.
12350 2015-01-09 Jakub Jelinek <jakub@redhat.com>
12352 PR rtl-optimization/64536
12353 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
12356 2015-01-09 Michael Collison <michael.collison@linaro.org>
12358 PR tree-optimization/64322
12359 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
12360 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
12362 2015-01-09 Tom de Vries <tom@codesourcery.com>
12364 PR rtl-optimization/64539
12365 * regcprop.c (kill_clobbered_values): Factor out of ...
12366 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
12367 instead of note_stores with kill_clobbered_value.
12369 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
12371 * ginclude/unwind-arm-common.h: Revert previous commit.
12373 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
12375 * config.gcc (arm*-*-freebsd*): New configuration.
12376 * config/arm/freebsd.h: New file.
12377 * config.host: Add extra components for arm*-*-freebsd*.
12378 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
12379 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
12381 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12383 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
12385 * config/rs6000/t-rtems: Add e6500 multilibs.
12387 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12389 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
12392 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12394 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
12395 MULTILIB_EXCEPTIONS.
12397 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12399 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
12400 MULTILIB_EXCEPTIONS.
12402 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12404 * config/arm/t-rtems-eabi: Rename to...
12405 * config/arm/t-rtems: ...this.
12406 * config/arm/rtems-eabi.h: Rename to...
12407 * config/arm/rtems.h: ...this.
12408 * config.gcc (arm*-*-rtems*): Reflect changes above.
12410 2015-01-09 Richard Biener <rguenther@suse.de>
12412 PR tree-optimization/64410
12413 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
12415 (execute_update_addresses_taken): Deal with that.
12416 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
12417 loads/stores for complex variables.
12419 2015-01-09 Martin Liska <mliska@suse.cz>
12421 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
12423 (func_checker::compare_memory_operand): New function.
12424 (func_checker::compare_operand): Split case to newly
12426 (func_checker::compare_cst_or_decl): New function.
12427 (func_checker::compare_gimple_call): Identify
12429 (func_checker::compare_gimple_assign): Likewise.
12430 * ipa-icf-gimple.h: New function.
12432 2015-01-09 Martin Liska <mliska@suse.cz>
12435 * sreal.c (sreal::dump): Change unsigned format to signed for
12437 (sreal::to_double): Replace exp2 with scalbln.
12439 2015-01-09 Martin Liska <mliska@suse.cz>
12441 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
12442 * ipa-icf.c (sem_function::equals_private): Add support for target and
12443 (sem_item_optimizer::merge_classes): Remove redundant function
12444 optimization flags comparison.
12445 * tree.h (target_opts_for_fn): New function.
12447 2015-01-09 Tom de Vries <tom@codesourcery.com>
12449 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
12451 2015-01-09 Kito Cheng <kito@0xlab.org>
12453 PR rtl-optimization/64348
12454 * lra-constraints.c (split_reg): Fix caller-save store/restore
12455 instruction generation.
12457 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
12459 PR gcov-profile/61790
12460 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
12461 long long. Fallback to int64_t if host doesn't have long long and
12462 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
12464 2015-01-08 Jakub Jelinek <jakub@redhat.com>
12466 PR tree-optimization/63989
12467 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
12468 from 1000 to 10000.
12469 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
12470 (get_stridx): If we don't have a record for certain SSA_NAME,
12471 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
12472 constant offset, call get_stridx_plus_constant.
12473 (get_stridx_plus_constant): New function.
12474 (zero_length_string): Don't use get_stridx here.
12477 PR middle-end/64388
12478 * dse.c (struct insn_info): Mention frame_read set also
12479 before reload for tail calls on some targets.
12480 (scan_insn): Revert 2014-12-22 change. Set frame_read
12481 also before reload for tail calls if
12482 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
12483 instead of add_non_frame_wild_read for non-const/memset
12484 tail calls after reload.
12486 2015-01-08 Jason Merrill <jason@redhat.com>
12488 * ubsan.c (do_ubsan_in_current_function): New.
12489 (pass_ubsan::gate): Use it.
12490 * ubsan.h: Declare it.
12491 * convert.c (convert_to_integer): Use it.
12493 2015-01-08 Jakub Jelinek <jakub@redhat.com>
12496 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
12497 compare_code when it is unconditionally overwritten afterwards.
12498 Use ix86_reverse_condition instead of reverse_condition. Don't
12499 change code if *reverse_condition* returned UNKNOWN and don't
12500 swap ct/cf and negate diff in that case.
12502 2015-01-08 Mike Stump <mikestump@comcast.net>
12504 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
12505 (pass_tsan_O0::gate): Likewise.
12506 * extend.texi (Function Attributes): Add no_sanitize_thread
12509 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
12511 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
12512 for registering builtins.
12513 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
12514 add -fopenmp to the argv_obstack used when invoking
12515 compile_for_target.
12517 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
12518 add "-m32" or "-m64" to argv_obstack.
12519 (generate_host_descr_file): Likewise, when invoking host_compiler.
12520 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
12523 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
12525 * config/sh/sh-mem.cc: Use constant as second operand when emitting
12528 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
12531 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
12532 constant load if constant operand fits into I08.
12534 2015-01-08 Jakub Jelinek <jakub@redhat.com>
12537 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
12538 and TREE_THIS_VOLATILE for MEM_REFs.
12539 (build5_stat): Fix up initialization of TREE_READONLY and
12540 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
12542 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
12545 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
12546 of r for the second alternative of the destination operand.
12548 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
12551 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
12553 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
12555 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
12557 ([-fivar-visibility], [-fvisibility]): Likewise.
12559 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
12561 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
12562 the file where @code, @command, etc is more appropriate.
12564 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
12566 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
12567 of -mrecip= documentation.
12569 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12572 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
12573 correct reload handler if -m32 -mpowerpc64 is used.
12575 2015-01-06 Tom de Vries <tom@codesourcery.com>
12577 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
12579 2015-01-08 Christian Bruel <christian.bruel@st.com>
12582 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
12584 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12586 PR tree-optimization/63259
12587 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
12588 if optab exists for 16bit byteswap.
12590 2015-01-06 Jakub Jelinek <jakub@redhat.com>
12592 * opts.c (common_handle_option): Add support for
12593 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
12594 * doc/invoke.texi: Document -fno-sanitize=all,
12595 -f{,no-}sanitize-recover=all. Document that
12596 -fsanitize=float-cast-overflow is not enabled
12597 by -fsanitize=undefined. Fix up documentation
12598 of -f{,no-}sanitize-recover.
12600 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
12602 * config.gcc: Add Visium support.
12603 * configure.ac: Likewise.
12604 * configure: Regenerate.
12605 * doc/extend.texi (interrupt attribute): Add Visium.
12606 * doc/invoke.texi: Document Visium options.
12607 * doc/install.texi: Document Visium target.
12608 * doc/md.texi: Document Visium constraints.
12609 * common/config/visium: New directory.
12610 * config/visium: Likewise.
12612 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
12614 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
12615 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
12617 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
12619 * combine.c (combine_validate_cost): Do not count the cost of a
12620 split I2 twice. Do not display it twice in the dump, either.
12622 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
12624 Revert parts of r219199.
12625 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
12627 ([-Wtraditional]): Restore markup on <limits.h>.
12629 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
12632 * doc/invoke.texi: Document -Wsuggest-override.
12634 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
12636 PR rtl-optimization/64287
12637 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
12638 (process_options): Disable flag_ipa_ra if profiling.
12640 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
12642 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
12644 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
12646 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
12647 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
12648 put under #if TARGET_LOOPS guard.
12650 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
12652 * config/i386/i386.c (output_387_binary_op): Use std::swap.
12654 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
12656 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
12657 * rtl.h (refers_to_regno_p): Add overload.
12659 * bt-load.c: Likewise.
12660 * combine.c: Likewise.
12661 * df-scan.c: Likewise.
12662 * sched-deps.c: Likewise.
12663 * config/s390/s390.c: Likewise.
12664 * config/m32r/m32r.c: Likewise.
12665 * config/rs6000/spe.md: Likewise.
12666 * config/rs6000/rs6000.c: Likewise.
12667 * config/pa/pa.c: Likewise.
12668 * config/stormy16/stormy16.c: Likewise.
12669 * config/cris/cris.c: Likewise.
12670 * config/arc/arc.md: Likewise.
12671 * config/arc/arc.c: Likewise.
12672 * config/sh/sh.md: Likewise.
12673 * config/sh/sh.c: Likewise.
12674 * config/frv/frv.c: Likewise.
12676 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12679 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
12680 call as cleanup of the whole body.
12681 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
12682 * tsan.c (replace_func_exit): New function.
12683 (instrument_func_exit): Moved earlier.
12684 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
12685 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
12687 (tsan_pass): Don't call instrument_func_exit.
12688 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
12689 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
12693 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
12694 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
12695 it to libubsan handler instead of EXPR. Fold comparisons earlier,
12696 if the result is integer_zerop, return NULL_TREE.
12697 * convert.c (convert_to_integer): Pass expr as ARG.
12699 PR tree-optimization/64465
12700 * tree-inline.c (redirect_all_calls): During inlining
12701 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
12702 changed the stmt to a non-throwing call.
12704 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
12706 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
12707 etc markup throughout the file.
12709 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12711 Enable experimental TSAN support for Ada.
12712 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
12714 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12716 PR tree-optimization/64494
12717 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
12718 clear SSA_NAME_ANTI_RANGE_P flag.
12720 2015-01-05 Marek Polacek <polacek@redhat.com>
12722 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
12724 2015-01-05 Jakub Jelinek <jakub@redhat.com>
12726 Update copyright years.
12728 * gcc.c (process_command): Update copyright notice dates.
12729 * gcov-dump.c: Ditto.
12731 * doc/cpp.texi: Bump @copying's copyright year.
12732 * doc/cppinternals.texi: Ditto.
12733 * doc/gcc.texi: Ditto.
12734 * doc/gccint.texi: Ditto.
12735 * doc/gcov.texi: Ditto.
12736 * doc/install.texi: Ditto.
12737 * doc/invoke.texi: Ditto.
12739 * auto-profile.c, auto-profile.h: Fix up Copyright line.
12741 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
12743 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
12745 ([-fvtable-verify], [-fvtv-debug]): Likewise.
12746 ([-Wabi]): Likewise.
12747 ([-fmessage-length]): Likewise.
12748 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
12749 ([-Wno-discarded-qualifiers]): Likewise.
12750 ([-Wnodiscarded-array-qualifiers]): Likewise.
12751 ([-Wno-virtual-move-assign]): Likewise.
12752 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
12753 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
12754 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
12755 ([-fsanitize-undefined-trap-on-error]): Likewise.
12756 ([-floop-interchange]): Likewise.
12757 ([-ftree-coalesce-inlined-vars]): Likewise.
12758 ([-fvect-cost-model]): Likewise.
12759 ([-flto]): Likewise.
12760 ([--param]): Likewise.
12761 (Spec Files): Likewise.
12762 ([-mstrict-align]): Likewise.
12763 ([-mfix-cortex-a53-835769]): Likewise.
12764 ([-march], [-mtune]): Likewise.
12765 ([-mpic-register]): Likewise.
12766 ([-munaligned-access]): Likewise.
12767 ([-msp8]): Likewise.
12768 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
12769 (AVR Built-in Macros): Likewise.
12770 ([-mpreferred-stack-boundary]): Likewise.
12771 ([-mtune-crtl]): Likewise.
12772 ([-mashf]): Likewise.
12773 ([-mmcu=]): Likewise.
12774 ([-minrt]): Likewise.
12775 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
12776 ([-mupper-regs]): Likewise.
12777 ([-matomic-model]): Likewise.
12778 ([-mdiv]): Likewise.
12779 ([-mzdcbranch]): Likewise.
12780 ([-mdisable-callt]): Likewise.
12781 ([-msoft-float]): Likewise.
12782 ([-m8byte-align]): Likewise.
12783 ([-fstack-reuse]): Likewise.
12785 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12787 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
12788 Fix markup, light copy-editing.
12789 ([-fauto-profile]): Rewrite to fix formatting and content
12792 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12794 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
12795 Copy-edit description.
12796 ([-fisolate-erroneous-paths-attribute]): Likewise.
12797 * common.opt (fisolate-erroneous-paths-dereference):
12798 Copy-edit description.
12799 (fisolate-erroneous-paths-attribute): Likewise.
12801 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12803 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
12806 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
12808 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
12809 ([-fvtv-debug]): Likewise.
12810 ([-Wc++-compat]): Likewise.
12811 ([-Wc++11-compat]): Likewise.
12812 ([-Wc++14-compat]): Likewise.
12813 ([-Wno-sized-deallocation]): Likewise.
12814 ([-femit-class-debug-always]): Likewise.
12815 ([-femit-struct-debug-detailed]): Likewise.
12816 ([-fno-keep-inline-dllexport]): Likewise.
12817 ([-fira-algorithm]): Likewise.
12818 ([-fira-region]): Likewise.
12819 ([-flra-remat]): Likewise.
12820 ([-fipa-ra]): Likewise.
12821 ([-fhoist-adjacent-loads]): Likewise.
12822 ([-fisolate-erroneous-paths-dereference]): Likewise.
12823 ([-fisolate-erroneous-paths-attribute]): Likewise.
12824 ([-ftree-switch-conversion]): Likewise.
12825 ([-ftree-tail-merge]): Likewise.
12826 ([-ftree-loop-if-convert]): Likewise.
12827 ([-ftree-loop-if-convert-stores]): Likewise.
12828 ([-ftree-loop-distribution]): Likewise.
12829 ([-ftree-loop-distribute-patterns]): Likewise.
12830 ([-flto-compression-level]): Likewise.
12831 ([-flto-report]): Likewise.
12832 ([-flto-report-wpa]): Likewise.
12833 ([-fuse-linker-plugin]): Likewise.
12834 ([-mfix-cortex-a53-835769]): Likewise.
12835 ([-mno-fix-cortex-a53-835769]): Likewise.
12836 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
12837 explicit listing; add a note to the discussion indicating they
12838 exist. Reorder table to group similar options. Add missing
12839 @opindex entries. Add @need commands throughout the table to
12840 allow it to be split across multiple pages.
12841 ([-m8bit-idiv]): Fix @opindex.
12842 ([-mavx256-split-unaligned-load]): Likewise.
12843 ([-mavx256-split-unaligned-store]): Likewise.
12844 ([-mstack-protector-guard]): Likewise.
12845 ([-mcpu=]): Likewise.
12846 ([-mcpu]): Likewise.
12847 ([-mpointer-size=]): Likewise.
12849 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
12851 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
12852 instead of `m' constraint. Likewise for unnamed movb comparison
12853 patterns using reg_before_reload_operand predicate.
12854 * config/pa/predicates.md (reg_before_reload_operand): Tighten
12855 predicate to reject register index and LO_SUM DLT memory forms
12858 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
12860 * doc/invoke.texi (Option Summary): Fix spelling of
12861 -fdevirtualize-at-ltrans.
12862 ([-fdevirtualize]): Fix markup.
12863 ([-fdevirtualize-speculatively]): Fix typo.
12864 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
12865 implementor-speaky.
12866 * common.opt (fdevirtualize-at-ltrans): Likewise.
12867 * ipa-devirt.c: Fix typos in comments throughout the file.
12868 (ipa_devirt): Fix typos in format strings for dump output.
12870 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
12872 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
12873 discussion of defaults, light copy-editing.
12875 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12877 * tsan.c (instrument_expr): corrected previous checkin.
12879 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12881 Instrument bit field and unaligned accesses for TSAN.
12882 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
12883 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
12884 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
12885 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
12886 unaligned memory regions.
12888 2015-01-01 Anthony Green <green@moxielogic.com>
12890 * config/moxie/predicates.md (moxie_general_movsrc_operand):
12891 Restrict move source register offsets to 16 bits.
12893 Copyright (C) 2015 Free Software Foundation, Inc.
12895 Copying and distribution of this file, with or without modification,
12896 are permitted in any medium without royalty provided the copyright
12897 notice and this notice are preserved.