1 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3 * lra-constraints.c (add_next_usage_insn): Change argument type
4 from rtx to rtx_insn *.
6 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
13 * config/tilepro/gen-mul-tables.cc: Adjust include files.
14 * config/tilegx/mul-tables.c: Regenerate.
15 * config/tilepro/mul-tables.c: Regenerate.
17 * config/tilegx/tilegx-c.c: Adjust include files.
18 * config/tilegx/tilegx.c: Likewise.
19 * config/tilepro/tilepro-c.c: Likewise.
20 * config/tilepro/tilepro.c: Likewise.
21 * config/aarch64/aarch64-builtins.c: Likewise.
22 * config/aarch64/aarch64.c: Likewise.
23 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24 * config/alpha/alpha.c: Likewise.
25 * config/arc/arc.c: Likewise.
26 * config/arm/aarch-common.c: Likewise.
27 * config/arm/arm-builtins.c: Likewise.
28 * config/arm/arm-c.c: Likewise.
29 * config/arm/arm.c: Likewise.
30 * config/avr/avr-c.c: Likewise.
31 * config/avr/avr-devices.c: Likewise.
32 * config/avr/avr-log.c: Likewise.
33 * config/avr/avr.c: Likewise.
34 * config/bfin/bfin.c: Likewise.
35 * config/c6x/c6x.c: Likewise.
36 * config/cr16/cr16.c: Likewise.
37 * config/cris/cris.c: Likewise.
38 * config/darwin-c.c: Likewise.
39 * config/darwin-driver.c: Likewise.
40 * config/darwin.c: Likewise.
41 * config/default-c.c: Likewise.
42 * config/epiphany/epiphany.c: Likewise.
43 * config/epiphany/mode-switch-use.c: Likewise.
44 * config/epiphany/resolve-sw-modes.c: Likewise.
45 * config/fr30/fr30.c: Likewise.
46 * config/frv/frv.c: Likewise.
47 * config/ft32/ft32.c: Likewise.
48 * config/glibc-c.c: Likewise.
49 * config/h8300/h8300.c: Likewise.
50 * config/i386/host-cygwin.c: Likewise.
51 * config/i386/host-mingw32.c: Likewise.
52 * config/i386/i386-c.c: Likewise.
53 * config/i386/i386.c: Likewise.
54 * config/i386/msformat-c.c: Likewise.
55 * config/i386/winnt-cxx.c: Likewise.
56 * config/i386/winnt-stubs.c: Likewise.
57 * config/i386/winnt.c: Likewise.
58 * config/ia64/ia64-c.c: Likewise.
59 * config/ia64/ia64.c: Likewise.
60 * config/iq2000/iq2000.c: Likewise.
61 * config/lm32/lm32.c: Likewise.
62 * config/m32c/m32c-pragma.c: Likewise.
63 * config/m32c/m32c.c: Likewise.
64 * config/m32r/m32r.c: Likewise.
65 * config/mcore/mcore.c: Likewise.
66 * config/mep/mep-pragma.c: Likewise.
67 * config/mep/mep.c: Likewise.
68 * config/microblaze/microblaze-c.c: Likewise.
69 * config/microblaze/microblaze.c: Likewise.
70 * config/mips/mips-tables.opt
71 * config/mips/mips.c: Likewise.
72 * config/mmix/mmix.c: Likewise.
73 * config/mn10300/mn10300.c: Likewise.
74 * config/moxie/moxie.c: Likewise.
75 * config/msp430/msp430-c.c: Likewise.
76 * config/msp430/msp430.c: Likewise.
77 * config/nds32/nds32-cost.c: Likewise.
78 * config/nds32/nds32-fp-as-gp.c: Likewise.
79 * config/nds32/nds32-intrinsic.c: Likewise.
80 * config/nds32/nds32-isr.c: Likewise.
81 * config/nds32/nds32-md-auxiliary.c: Likewise.
82 * config/nds32/nds32-memory-manipulation.c: Likewise.
83 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
84 * config/nds32/nds32-predicates.c: Likewise.
85 * config/nds32/nds32.c: Likewise.
86 * config/nios2/nios2.c: Likewise.
87 * config/nvptx/mkoffload.c: Likewise.
88 * config/nvptx/nvptx.c: Likewise.
89 * config/pa/pa.c: Likewise.
90 * config/pdp11/pdp11.c: Likewise.
91 * config/rl78/rl78-c.c: Likewise.
92 * config/rl78/rl78.c: Likewise.
93 * config/rs6000/host-darwin.c: Likewise.
94 * config/rs6000/rs6000-c.c: Likewise.
95 * config/rs6000/rs6000-linux.c: Likewise.
96 * config/rs6000/rs6000.c: Likewise.
97 * config/rx/rx.c: Likewise.
98 * config/s390/s390-c.c: Likewise.
99 * config/s390/s390.c: Likewise.
100 * config/sh/sh-c.c: Likewise.
101 * config/sh/sh-mem.cc: Likewise.
102 * config/sh/sh.c: Likewise.
103 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
104 * config/sh/sh_treg_combine.cc: Likewise.
105 * config/sol2-c.c: Likewise.
106 * config/sol2-cxx.c: Likewise.
107 * config/sol2-stubs.c: Likewise.
108 * config/sol2.c: Likewise.
109 * config/sparc/sparc-c.c: Likewise.
110 * config/sparc/sparc.c: Likewise.
111 * config/spu/spu-c.c: Likewise.
112 * config/spu/spu.c: Likewise.
113 * config/stormy16/stormy16.c: Likewise.
114 * config/v850/v850-c.c: Likewise.
115 * config/v850/v850.c: Likewise.
116 * config/vax/vax.c: Likewise.
117 * config/visium/visium.c: Likewise.
118 * config/vms/vms-c.c: Likewise.
119 * config/vms/vms.c: Likewise.
120 * config/vxworks.c: Likewise.
121 * config/winnt-c.c: Likewise.
122 * config/xtensa/xtensa.c: Likewise.
124 2015-10-16 Christian Bruel <christian.bruel@st.com>
127 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
128 (FUNCTION_BOUNDARY_P): New macro:
129 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
131 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
132 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
133 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
134 * gcc/function.c (allocate_struct_function): Call relayout_function hook.
135 * gcc/passes.c (rest_of_decl_compilation): Likewise.
137 2015-10-16 Christian Bruel <christian.bruel@st.com>
140 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
141 * config/arm/arm.c (arm_option_override_internal): Call
142 arm_override_options_after_change_1.
143 (arm_override_options_after_change): New function.
144 (arm_override_options_after_change_1): Likewise.
145 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
147 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
150 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
153 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
155 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
156 argument is an ADDR_EXPR.
158 2015-10-16 Richard Biener <rguenther@suse.de>
160 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
161 and get rid of force_gimple_operand_gsi.
162 (gimple_fold_builtin_memory_chk): Likewise.
163 (gimple_fold_builtin_stxcpy_chk): Likewise.
164 (rewrite_to_defined_overflow): Likewise.
165 (gimple_convert_to_ptrofftype): New function.
166 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload,
169 2015-10-16 Richard Biener <rguenther@suse.de>
171 * tree-nested.h (build_addr): Adjust prototype.
172 * tree-nested.c (build_addr): Remove context argument and use
174 (get_static_chain): Adjust calls to build_addr.
175 (convert_nl_goto_reference): Likewise.
176 (convert_tramp_reference_op): Likewise.
177 (finalize_nesting_tree_1): Likewise.
178 * value-prof.c (gimple_ic): Likewise.
179 * gimple-low.c (lower_builtin_setjmp): Likewise.
180 * tree-parloops.c (take_address_of): Likewise.
181 (create_call_for_reduction_1): Likewise.
182 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
183 (gimple_gen_ic_func_profiler): Likewise.
185 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
187 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
190 2015-10-16 Michael Collison <michael.collison@linaro.org>
191 Andrew Pinski <andrew.pinski@caviumnetworks.com>
193 * match.pd ((x < y) && (x < z) -> x < min (y,z),
194 (x > y) and (x > z) -> x > max (y,z))
196 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
197 Szabolcs Nagy <szabolcs.nagy@arm.com>
199 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
200 (DYNAMIC_LINKER): Renamed to ...
201 (GLIBC_DYNAMIC_LINKER): This.
202 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
204 2015-10-15 Marek Polacek <polacek@redhat.com>
206 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
207 gimple_call_builtin instead of is_gimple_call.
209 2015-10-15 Richard Biener <rguenther@suse.de>
211 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
213 2015-10-15 Richard Biener <rguenther@suse.de>
215 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
216 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
217 * tree-vect-loop.c (get_initial_def_for_induction): Drop
218 use of force_gimple_operand in favor of gimple_build.
219 Use vect_get_new_ssa_name.
220 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
221 (vectorizable_mask_load_store): Likewise.
222 (vectorizable_call): Likewise.
223 (vectorizable_store): Likewise.
224 (vectorizable_load): Likewise.
225 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
227 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
229 PR tree-optimization/67945
230 * tree-pass.h (PROP_gimple_opt_math): New property flag.
231 * generic-match-head.c (canonicalize_math_p): New function.
232 * gimple-match-head.c: Include tree-pass.h.
233 (canonicalize_math_p): New function.
234 * match.pd: Group math built-in rules into simplifications
235 and canonicalizations. Guard the latter with canonicalize_math_p.
236 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
237 PROP_gimple_opt_math property.
239 2015-10-15 Marek Polacek <polacek@redhat.com>
241 PR tree-optimization/67953
242 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
244 2015-10-15 Jiong Wang <jiong.wang@arm.com>
246 * config.gcc: Recognize "." in architecture base name for AArch64.
248 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
250 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
252 * config/mips/mips.c (mips_setup_incoming_varargs): Use
253 ROUND_DOWN to calculate off.
254 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
255 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
258 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
260 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
262 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
263 Torvald Riegel <triegel@redhat.com>
266 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
267 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
268 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
269 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
270 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
271 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
272 trechkpt, treclaim, tsr, ttest): New define_expands.
273 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
274 __TM_FENCE__ for htm.
275 * doc/extend.texi: Update documentation for htm builtins.
277 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
280 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
281 REG_CFA_EXPRESSION to aligned SSE stores.
283 2015-10-14 Jeff Law <law@redhat.com>
285 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
286 num_threaded_edges for successful FSM threads too.
288 2015-10-14 Richard Biener <rguenther@suse.de>
290 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
291 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
292 (vect_get_vec_def_for_operand): Remove unused parameter.
293 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
294 (vect_create_epilog_for_reduction): Likewise.
295 (vectorizable_reduction): Likewise.
296 (vectorizable_live_operation): Likewise.
297 * tree-vect-patterns.c (type_conversion_p): Likewise.
298 (vect_recog_vector_vector_shift_pattern): Likewise.
299 (check_bool_pattern): Likewise.
300 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
301 (vect_analyze_slp_cost_1): Likewise.
302 * tree-vect-stmts.c (process_use): Likewise.
303 (vect_get_vec_def_for_operand): Do not handle reductions.
304 (vect_get_vec_defs): Adjust.
305 (vectorizable_mask_load_store): Likewise.
306 (vectorizable_call): Likewise.
307 (vectorizable_simd_clone_call): Likewise.
308 (vect_get_loop_based_defs): Likewise.
309 (vectorizable_conversion): Likewise.
310 (vectorizable_assignment): Likewise.
311 (vectorizable_shift): Likewise.
312 (vectorizable_operation): Likewise.
313 (vectorizable_store): Likewise.
314 (vectorizable_load): Likewise.
315 (vect_is_simple_cond): Likewise.
316 (vectorizable_condition): Likewise.
317 (vect_is_simple_use): Remove unused parameters.
318 (vect_is_simple_use_1): Adjust and rename.
320 2015-10-14 Richard Biener <rguenther@suse.de>
322 PR tree-optimization/67915
323 * match.pd: Handle comparisons of addresses of STRING_CSTs.
324 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
325 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
326 stmt folding in favor of GIMPLE one.
328 2015-10-14 Marek Polacek <polacek@redhat.com>
330 PR tree-optimization/67815
331 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
332 (reassociate_bb): Call it.
334 2015-10-14 Richard Biener <rguenther@suse.de>
336 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
338 (vect_analyze_group_access_1): Add debug print.
339 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
340 (vect_compute_single_scalar_iteration_cost): ... to this.
341 (vect_analyze_loop_2): Adjust.
342 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
343 * tree-vectorizer.h: ... here.
344 (add_stmt_info_to_vec): Remove.
345 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
347 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
349 * targhooks.c (default_target_option_pragma_parse): Do not warn if
350 called on behalf of "#pragma GCC pop_options".
352 2015-10-14 Tom de Vries <tom@codesourcery.com>
354 * cfganal.c (verify_no_unreachable_blocks): New function.
355 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
356 verify_no_unreachable_blocks.
357 cfganal.h (verify_no_unreachable_blocks): Declare.
359 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
361 * common.opt: Add flag_checking.
362 * system.h (CHECKING_P): Define.
364 2015-10-13 Jakub Jelinek <jakub@redhat.com>
365 Aldy Hernandez <aldyh@redhat.com>
366 Ilya Verbin <ilya.verbin@intel.com>
368 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
369 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
370 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
371 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
372 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
373 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
374 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
375 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
376 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
377 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
378 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
379 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
380 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
381 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
382 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
383 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
384 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
385 (struct cgraph_simd_clone_arg): Adjust comment.
386 * coretypes.h (struct gomp_ordered): New forward decl.
387 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
388 set critical clauses to it.
389 (gimple_build_omp_ordered): Return gomp_ordered * instead of
390 gimple *. Add CLAUSES argument, set ordered clauses to it.
391 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
393 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
394 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
395 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
396 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
397 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
398 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
399 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
400 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
402 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
403 (gomp_critical): Add clauses field.
404 (gomp_ordered): New struct.
405 (is_a_helper <gomp_ordered *>::test): New inline.
406 (gimple_build_omp_critical): Add CLAUSES argument.
407 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
409 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
410 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
411 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
412 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
414 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
415 (dump_gimple_omp_target): Handle enter data and exit data.
416 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
417 (dump_gimple_omp_critical): Print clauses.
418 (dump_gimple_omp_ordered): New function.
419 (dump_gimple_omp_task): Handle taskloop.
420 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
422 * gimple-walk.c (walk_gimple_op): Walk clauses on
423 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
424 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
425 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
426 (struct gimplify_omp_ctx): Add loop_iter_var,
427 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
428 and target_firstprivatize_array_bases fields.
429 (delete_omp_context): Release loop_iter_var.
430 (gimplify_bind_expr): Handle ORT_NONE.
431 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
433 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
434 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
435 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
436 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
437 ctx->target_map_scalars_firstprivate.
438 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
439 data sharing clauses. For data sharing clause with VLA decl
440 on omp target/target data don't add firstprivate for the pointer.
441 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
442 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
443 the addition of ORT_COMBINED_TARGET.
444 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
445 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
446 pointers as zero length array sections and
447 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
449 (omp_check_private): Handle omp_member_access_dummy_var vars.
450 (find_decl_expr): New function.
451 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
452 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
453 Handle OMP_CLAUSE_GANG separately. Handle
454 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
455 clauses. Diagnose linear clause on combined
456 distribute {, parallel for} simd construct, unless it is the loop
457 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
458 Handle map clauses with COMPONENT_REF. Initialize
459 ctx->target_map_scalars_firstprivate,
460 ctx->target_firstprivatize_array_bases and
461 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
462 linear clause even to target region if combined. Remove
463 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
464 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
465 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
466 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
467 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
468 For linear clause on worksharing loop combined with parallel add
469 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
470 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
471 omp_member_access_dummy_var vars. Add lastprivate clause to outer
473 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
474 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
475 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
477 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
478 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
479 in target body. Handle removal of struct mapping if struct is not
480 seen in target body. Remove GOMP_MAP_STRUCT map clause on
481 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
482 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
483 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
484 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
485 clause appear together. Handle
486 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
487 clause if it has map-type-modifier always. Handle
488 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
490 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
491 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
493 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
494 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
495 iterators in doacross loops.
496 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
497 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
498 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
499 for the addition of ORT_COMBINED_TARGET.
500 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
501 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
502 and OMP_TARGET_EXIT_DATA.
503 (gimplify_omp_ordered): New function.
504 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
505 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
506 Gimplify clauses on OMP_CRITICAL.
507 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
508 expand_GOMP_SIMD_ORDERED_END): New functions.
509 * internal-fn.def (GOMP_SIMD_ORDERED_START,
510 GOMP_SIMD_ORDERED_END): New internal functions.
511 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
512 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
513 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
514 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
515 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
516 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
517 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
518 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
519 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
520 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
521 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
522 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
523 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
524 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
526 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
527 GOMP_target_data_41, adjust type.
528 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
529 GOMP_target_update_41, adjust type.
530 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
532 (struct omp_for_data): Add ordered and simd_schedule fields.
533 (omp_member_access_dummy_var, unshare_and_remap_1,
534 unshare_and_remap, is_taskloop_ctx): New functions.
535 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
536 (extract_omp_for_data): Handle taskloops and doacross loops
537 and simd schedule modifier.
538 (omp_adjust_chunk_size): New function.
539 (get_ws_args_for): Use it.
540 (lookup_sfield): Change first argument to splay_tree_key,
541 add overload with first argument tree.
542 (maybe_lookup_field): Likewise.
543 (use_pointer_for_field): Handle omp_member_access_dummy_var.
544 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
545 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
546 (build_outer_var_ref): Add LASTPRIVATE argument, handle
547 taskloops and omp_member_access_dummy_var vars.
548 (build_sender_ref): Change first argument to splay_tree_key,
549 add overload with first argument tree.
550 (install_var_field): For mask & 8 use &DECL_UID as key instead
552 (fixup_child_record_type): Const qualify *.omp_data_i.
553 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
554 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
555 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
556 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
557 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
558 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
559 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
561 (add_taskreg_looptemp_clauses): New function.
562 (scan_omp_parallel): Use it.
563 (scan_omp_task): Likewise.
564 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
565 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
566 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
567 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
568 sandwiched taskloop constructs. Type check
569 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
570 region. Diagnose depend(source) or depend(sink:...) on
571 target constructs or task/taskloop.
572 (handle_simd_reference): Use get_name.
573 (lower_rec_input_clauses): Likewise. Ignore all
574 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
575 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
576 before passing it to omp_clause_{default,copy}_ctor. Handle
577 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
578 lastprivate_firstprivate flag for linear that needs copyin and
579 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
580 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
581 on taskloop lookup decl in outer context. Pass true to
582 build_outer_var_ref lastprivate argument. Handle
583 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
584 outside of outer taskloop for.
585 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
587 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
588 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
589 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
590 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
591 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
592 abstract origin. Handle omp_member_access_dummy_var vars.
593 (expand_parallel_call): Use expand_omp_build_assign.
594 (expand_task_call): Handle taskloop construct expansion. Add
595 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
596 integers. Add priority argument to GOMP_task* calls. Or in
597 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
599 (expand_omp_build_assign): Add prototype. Add AFTER
600 argument, if true emit statements after *GSI_P and continue linking.
601 (expand_omp_taskreg): Adjust expand_task_call caller.
602 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
603 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
604 zero_iter2_bb and first_zero_iter2 arguments, handle computation
605 of counts even for ordered loops.
606 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
607 (expand_omp_ordered_source, expand_omp_ordered_sink,
608 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
610 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
611 clauses on worksharing loop. Handle DOACROSS loop expansion.
612 (expand_omp_for_static_nochunk): Handle linear clauses on
613 worksharing loop. Adjust expand_omp_for_init_counts
615 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
616 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
617 expand_omp_for_init_counts callers.
618 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
620 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
621 Handle doacross loops.
622 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
623 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
624 GOMP_target_{41,update_41,enter_exit_data} libcalls.
625 (expand_omp): Don't expand ordered depend constructs here, record
626 ord_stmt instead for later expand_omp_for_generic.
627 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
628 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
629 clause as stand-alone directive.
630 (lower_omp_ordered_clauses): New function.
631 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
632 don't lower anything.
633 (lower_omp_for_lastprivate): Use last _looptemp_ clause
634 on taskloop for comparison.
635 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
636 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
637 expansion for linear adjustments.
638 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
639 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
640 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
641 to tree * pointing to the stmt's clauses.
642 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
643 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
644 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
645 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
646 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
647 clauses. Always use short kind and 8-bit align shift.
648 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
649 (struct lower_omp_regimplify_operands_data): New type.
650 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
652 (lower_omp_1): Use lower_omp_regimplify_operands instead of
653 gimple_regimplify_operands.
654 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
655 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
656 clause as stand-alone directive.
657 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
658 (simd_clone_mangle): Mangle the various linear kinds
660 (simd_clone_adjust_argument_types): Handle
661 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
662 (simd_clone_init_simd_arrays): Don't do anything for uval.
663 (simd_clone_adjust): Handle
664 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
665 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
666 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
667 * omp-low.h (omp_member_access_dummy_var): New prototype.
668 * passes.def (pass_simduid_cleanup): Schedule another copy of the
669 pass after all optimizations.
670 * tree.c (omp_clause_code_name): Add entries for
671 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
672 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
673 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
674 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
675 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
676 OMP_CLAUSE_REDUCTION 5 arguments. Handle
677 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
678 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
680 * tree-core.h (enum omp_clause_linear_kind): New.
681 (struct tree_omp_clause): Change type of map_kind
682 from unsigned char to unsigned int. Add subcode.if_modifier
683 and subcode.linear_kind fields.
684 (enum omp_clause_code): Add
685 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
686 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
687 (OMP_CLAUSE_REDUCTION): Document
688 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
689 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
690 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
691 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
693 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
695 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
697 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
698 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
700 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
701 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
702 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
703 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
704 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
705 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
706 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
707 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
708 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
709 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
710 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
711 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
712 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
713 * tree-inline.c (remap_gimple_stmt): Handle clauses on
714 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
715 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
716 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
717 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
718 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
719 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
720 (convert_local_omp_clauses): Likewise.
721 * tree-pretty-print.c (dump_omp_clause): Handle
722 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
723 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
724 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
725 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
726 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
727 GOMP_MAP_FORCE_DEALLOC. Handle
728 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
729 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
730 and clauses on OMP_ORDERED and OMP_CRITICAL.
731 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
732 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
733 (vectorize_loops): Adjust comments.
734 (pass_simduid_cleanup::execute): Likewise.
735 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
736 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
737 * wide-int.h (wi::gcd): New.
739 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
741 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
742 (ix86_function_arg_advance): Ditto.
743 (ix86_function_arg): Ditto.
744 (ix86_gimplify_va_arg): Ditto.
745 (ix86_class_max_nregs): Ditto.
746 (inline_memory_move_cost): Ditto.
747 (ix86_set_reg_reg_cost): Ditto.
748 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
750 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
753 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
755 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
757 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
758 ROUND_UP macro and UNITS_PER_WORD * 2.
759 * config/sparc/sparc.c (sparc_compute_frame_size):
760 Use ROUND_UP and ROUND_DOWN macros where applicable.
761 (function_arg_record_value, function_arg_record_value_1)
762 (function_arg_record_value_1): Ditto.
763 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
764 alignment to double-word.
765 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
766 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
769 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
771 * gcc/rtl.h (print_insn): Fix prototype.
773 2015-10-13 Tom de Vries <tom@codesourcery.com>
775 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
776 -1. Add assert that returned entry matches phi argument.
777 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
778 free_stmt_vec_info_vec ...
779 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
782 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
784 PR tree-optimization/67909, 67947
785 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
786 really skip the inner loop.
788 2015-10-13 Jeff Law <law@redhat.com>
790 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
791 Allow single block jump threading paths.
793 2015-10-13 Tom de Vries <tom@codesourcery.com>
795 PR tree-optimization/67476
796 * doc/invoke.texi (@item parloops-schedule): New item.
797 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
798 * tree-parloops.c: Include params-enum.h.
799 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
801 2015-10-13 Tom de Vries <tom@codesourcery.com>
803 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
804 * params-enum.h: New file.
805 * opts.c (handle_param): Handle case that param arg is a string.
806 * params-list.h: Handle DEFPARAMENUM5 in params.def.
807 * params.c (find_param): New function, factored out of ...
808 (set_param_value): ... here.
809 (param_string_value_p): New function.
810 * params.h (struct param_info): Add value_names field.
811 (find_param, param_string_value_p): Declare.
813 2015-10-13 Tom de Vries <tom@codesourcery.com>
815 PR tree-optimization/67476
816 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
818 2015-10-13 Richard Biener <rguenther@suse.de>
820 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
821 the data dependence vector.
822 (vect_peeling_hash_insert): Get the peeling hash table as argument.
823 (vect_peeling_hash_get_lowest_cost): Likewise.
824 (vect_enhance_data_refs_alignment): Adjust.
825 (struct _vect_peel_info, struct _vect_peel_extended_info,
826 struct peel_info_hasher): Move from ...
827 * tree-vectorizer.h: ... here.
828 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
829 (LOOP_VINFO_PEELING_HTAB): Likewise.
830 (struct _loop_vec_info): Remove min_profitable_iters and
831 peeling_htab members.
832 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
834 (destroy_loop_vec_info): Adjust.
835 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
836 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
837 to estimate alias versioning cost.
838 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
840 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
842 * real.h (real_isinteger): Declare.
843 * real.c (real_isinteger): New function.
844 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
845 if y is an even integer.
847 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
850 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
851 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
852 counts when these are more informative.
854 2015-10-12 Jeff Law <law@redhat.com>
856 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
857 (fsm_find_control_stmt_paths): Change name of first argument to
858 more accurately relfect what it really is. Handle simplification
859 of GIMPLE_COND after finding a thread path for NAME.
860 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
861 nontrivial conditions to be handled by FSM threader.
862 (thread_through_normal_block): Extract the name to looup via
863 FSM threader from COND_EXPR.
865 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
866 restriction that traced SSA_NAME is a user variable.
868 2015-10-12 Tom de Vries <tom@codesourcery.com>
870 PR tree-optimization/67476
871 * omp-low.c (expand_omp_for_generic): Add missing phis.
873 2015-10-12 Tom de Vries <tom@codesourcery.com>
875 PR tree-optimization/67476
876 * omp-low.c (expand_omp_for_generic): Handle simple latch.
878 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
880 * config/aarch64/aarch64-simd-builtins.def: Update builtins
881 tables: add tbl3 and tbx4.
882 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
883 (aarch64_tbx4v8qi): New.
884 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
885 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
886 Rewrite using builtin functions.
887 * config/aarch64/iterators.md (UNSPEC_TBX): New.
889 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
891 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
893 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
894 Use ROUND_UP and ROUND_DOWN macros where applicable.
895 (rs6000_darwin64_record_arg_flush): Ditto.
896 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
897 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
900 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
902 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
903 (AARCH64_ROUND_DOWN): Ditto.
904 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
906 2015-10-12 Richard Biener <rguenther@suse.de>
909 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
910 code that analyzes IVs on each stmt but in a cheaper way avoiding
913 2015-10-12 Nick Clifton <nickc@redhat.com>
915 * config/msp430/msp430.c (msp430_mcu_names): Rename to
916 msp430_mcu_data, add fields for ISA and hardware multiply
917 support. Import latest data from the devices.csv file.
918 (msp430_override_option): Use the data from the new array.
919 (msp430_use_f5_series_hwmult): Likewise.
920 (use_32bit_hwmult): Likewise.
921 (msp430_no_hwmult): Likewise.
922 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
924 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
925 not recognised then no hardware multiply support is assumed and
926 that only the MSP430 ISA is allowed.
928 2015-10-12 Richard Biener <rguenther@suse.de>
930 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
932 (vect_analyze_loop_2): ... here.
934 2015-10-11 Jason Merrill <jason@redhat.com>
937 * expr.c (store_field): Call store_constructor directly when
938 storing a CONSTRUCTOR into a target smaller than its type.
939 Guard against unsafe bitwise copy.
941 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
943 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
944 counts when these are more informative.
946 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
948 * tree-profile.c (tree_profiling): Do not clear
949 pure/const when not instrumenting.
950 (pass tree_profile): Add dump of symtab.
952 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
954 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
956 (fold_addr_of_array_ref_difference): Likewise.
958 2015-10-11 Jeff Law <law@redhat.com>
960 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
961 tree-ssa-threadbackward.c.
962 (fsm_find_control_statement_thread_paths): Likewise.
963 (thread_through_normal_block): Break out FSM bits and move them
964 into a new function in tree-ssa-threadbackward.c. Call new function
966 Minimize header file usage.
967 * tree-ssa-threadbackward.h: New file.
968 * tree-ssa-threadbackward.c: Likewise.
969 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
971 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
973 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
975 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
977 PR rtl-optimization/67864
978 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
979 fallthrough edges for conditional jumps. Don't sort candidate
980 edges if not optimizing for speed.
982 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
984 * defaults.h (REVERSE_CONDITION): New default definition.
985 * jump.c (reversed_comparison_code_parts): Adjust.
987 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
989 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
990 check HARD_FRAME_POINTER_IS_ARG_POINTER.
992 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
994 * defaults.h (FRAME_ADDR_RTX): New default definition.
995 * builtins.c (expand_builtin_return_addr): Adjust.
997 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
999 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1000 * builtins.c (expand_builtin_return_addr): Adjust.
1002 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1004 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1005 * builtins.c (expand_builtin_return_addr): Adjust.
1006 * doc/tm.texi: Likewise.
1007 * doc/tm.texi.in: Likewise.
1008 * except.c (expand_builtin_unwind_init): Likewise.
1010 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1012 * builtins.c (expand_builtin_return_addr): Adjust.
1013 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1015 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1017 * tree.c (type_with_interoperable_signedness): New.
1018 (gimple_canonical_types_compatible_p): Use it.
1019 * tree.h (type_with_interoperable_signedness): Declare
1021 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1023 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1024 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1025 when OEP_ADDRESS_OF is se.
1027 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1028 Sebastian Pop <s.pop@samsung.com>
1030 * graphite-dependences.c (scop_get_dependences): Add dump of the
1031 data dependence graph.
1032 * graphite-poly.c (print_isl_union_map): New.
1033 (debug_isl_union_map): New.
1034 * graphite-poly.h (print_isl_union_map): Declare.
1035 (debug_isl_union_map): Declare.
1037 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1038 Sebastian Pop <s.pop@samsung.com>
1040 * graphite-poly.c (print_iteration_domain): Remove verbosity.
1041 Remove OpenScop formatting.
1042 (print_iteration_domains): Same.
1043 (debug_iteration_domain): Same.
1044 (debug_iteration_domains): Same.
1047 (dump_gbb_cases): Same.
1048 (dump_gbb_conditions): Same.
1051 (print_pbb_body): Same.
1053 (print_scop_params): Same.
1054 (print_scop_context): Same.
1056 (debug_pbb_domain): Same.
1058 (debug_scop_context): Same.
1060 (debug_scop_params): Same.
1061 * graphite-poly.h: Same.
1062 * graphite.c (graphite_transform_loops): Same.
1064 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1066 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1067 call that isn't needed.
1069 2015-10-09 Jeff Law <law@redhat.com>
1071 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1072 rather than moving each name to the freelist individually.
1074 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
1076 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1077 * frame-header-opt.c: New file.
1078 * config/mips/mips-proto.h (mips_register_frame_header_opt):
1080 * config/mips/mips.c (mips_compute_frame_info): Check
1081 optimize_call_stack flag.
1082 (mips_option_override): Register new frame_header_opt pass.
1083 (mips_frame_info, mips_int_mask, mips_shadow_set,
1084 machine_function): Move these types to...
1085 * config/mips/mips.h: here.
1086 (machine_function): Add does_not_use_frame_header and
1087 optimize_call_stack fields.
1088 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1089 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1091 * config/mips/mips.opt (mframe-header-opt): Add new option.
1093 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
1095 * config/i386/i386.c
1096 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1097 ROUND_DOWN where applicable.
1099 2015-10-09 Jeff Law <law@redhat.com>
1101 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1104 2015-10-09 Renlin Li <renlin.li@arm.com>
1106 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1107 operands[0] and operands[2].
1108 (neon_vtrn<mode>_insn): Likewise.
1109 (neon_vzip<mode>_insn): Likewise.
1111 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1113 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1114 ((X & C2) << C1): Expand to...
1115 (X {&,^,|} C2 << C1): ...This.
1116 ((X & C2) >> C1): Expand to...
1117 (X {&,^,|} C2 >> C1): ...This.
1119 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
1122 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1123 Adjust embedded rounding/SAE specifier position.
1124 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1125 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1126 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1127 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1128 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1130 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1132 2015-10-09 Martin Jambor <mjambor@suse.cz>
1134 tree-optimization/67794
1135 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1136 between types of state,ents but accept original definitions as a
1138 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1139 iterate over definitions.
1141 2015-10-09 James Norris <jnorris@codesourcery.com>
1143 * config/rs6000/rs6000.c (rs6000_offload_options): New.
1144 (TARGET_OFFLOAD_OPTIONS): New.
1146 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
1149 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1152 * function.c (expand_function_end): Move return value
1153 promotion past the handling of PARALLELs and CONCATs.
1155 PR rtl-optimization/67828
1156 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1157 (tree_may_unswitch_on): Don't unswitch on expressions
1158 involving undefined values.
1160 2015-10-09 Richard Biener <rguenther@suse.de>
1162 * genmatch.c (print_operand): Fix formatting.
1163 (dt_node::append_simplify): Warn for multiple simplifiers
1164 that match the same pattern.
1165 * match.pd (log (exp @0)): Remove duplicates.
1167 2015-10-09 Richard Biener <rguenth@suse.de>
1170 * gimple-fold.c (optabs-query.h): Include
1171 (gimple_fold_builtin_memory_op): Allow unaligned stores
1172 when movmisalign_optabs are available.
1174 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1177 * config/arm/arm.md (movmisalign<mode>): New.
1178 * config/arm/iterators.md (HSI): New.
1180 2015-10-09 Richard Biener <rguenther@suse.de>
1182 PR tree-optimization/67891
1183 * gimple-match.h (gimple_simplified_result_is_gimple_val):
1185 (gimple_resimplify1): Declare.
1186 (gimple_resimplify2): Likewise.
1187 (gimple_resimplify3): Likewise.
1188 * gimple-match-head.c (gimple_resimplify1): Export.
1189 (gimple_resimplify2): Likewise.
1190 (gimple_resimplify3): Likewise.
1191 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1192 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1193 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1194 to avoid creating stmts without VN info.
1196 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
1198 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1201 2015-10-08 Jeff Law <law@redhat.com>
1203 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1204 and release_ssa_name in two places.
1205 (gimple_stringop_fixed_value): Similarly.
1207 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1210 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1211 unlink_stmt_vdef and release_ssa_name_fn.
1213 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1216 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
1218 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1219 SSE register save area to 16 bytes only if the incoming stack
1220 boundary is no less than 16 bytes.
1222 2015-10-08 Jeff Law <law@redhat.com>
1224 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1225 release_ssa_name. Fix typo in comment.
1227 2015-10-08 Nathan Sidwell <nathan@acm.org>
1229 * config/nvptx/nvptx.h (struct machine_function): Add comment.
1230 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1231 may return pointer as well as in memory.
1232 (nvptx_output_return): Likewise.
1234 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1236 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1237 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1238 * match.pd: Add rules previously handled by fold_builtin_sqrt
1239 and fold_builtin_cbrt.
1241 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1243 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1244 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1245 * fold-const.h (tree_unary_nonnegative_warnv_p)
1246 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1247 (tree_expr_nonnegative_warnv_p): Add depth parameters.
1248 * fold-const.c: Include gimple-fold.h and params.h.
1249 (tree_ssa_name_nonnegative_warnv_p): New function.
1250 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1251 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1252 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1253 Add a depth parameter and increment it for recursive calls to
1254 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
1255 to handle SSA names.
1256 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1257 (gimple_stmt_nonnegative_warnv_p): Declare.
1258 * tree-vrp.c (remove_range_assertions): Remove assert that condition
1259 cannot be proven false.
1260 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1261 (gimple_stmt_nonnegative_warnv_p): Move to...
1262 * gimple-fold.c: ...here. Add depth parameters and pass them
1263 down to the tree routines. Accept statements that aren't
1264 assignments or calls but just return false for them.
1265 (gimple_val_nonnegative_real_p): Delete.
1266 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1267 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1268 Check HONOR_NANs first.
1270 2015-10-08 Martin Jambor <mjambor@suse.cz>
1272 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
1275 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1277 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1278 in the tail of outer-loop.
1280 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
1282 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1285 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1287 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1288 "cfghooks.h", add prototypes for introduced new functions.
1289 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1290 checks on ability of loop unswitching to tree_unswitch_single_loop;
1291 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1292 on innermost loop check.
1293 (tree_unswitch_single_loop): Add all required checks on ability of
1294 loop unswitching under zero recursive level guard.
1295 (tree_unswitch_outer_loop): New function.
1296 (find_loop_guard): Likewise.
1297 (empty_bb_without_guard_p): Likewise.
1298 (used_outside_loop_p): Likewise.
1299 (get_vop_from_header): Likewise.
1300 (hoist_guard): Likewise.
1301 (check_exit_phi): Likewise.
1303 2015-10-08 Marek Polacek <polacek@redhat.com>
1305 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1308 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1311 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1312 create_tmp_var_raw instead of create_tmp_var.
1314 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
1316 * expr.c (store_expr_with_bounds): Handle aggregate moves from
1318 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1319 to define gimple type system; compare aggregates only by size.
1321 2015-10-07 Jeff Law <law@redhat.com>
1323 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1324 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1325 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
1328 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1329 Sebastian Pop <s.pop@samsung.com>
1331 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1332 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1333 (generate_isl_schedule): Same.
1334 * graphite-optimize-isl.c (scop_get_domains): Same.
1335 (apply_schedule_map_to_scop): Same.
1336 * graphite-poly.c (print_iteration_domains): Same.
1337 (remove_gbbs_in_scop): Same.
1341 * graphite-poly.h (struct scop): Rename bbs to pbbs.
1343 * graphite-scop-detection.c (compare_bb_depths): Remove.
1344 (graphite_sort_dominated_info): Remove.
1345 (try_generate_gimple_bb): Move out of scop_detection.
1346 (all_non_dominated_preds_marked_p): Remove.
1347 (build_scop_bbs_1): Remove.
1348 (build_scop_bbs): Remove.
1349 (nb_pbbs_in_loops): Do not use SCOP_BBS.
1350 (find_scop_parameters): Same.
1351 (sese_dom_walker): Rename gather_bbs.
1352 (before_dom_children): Call try_generate_gimple_bb and collect gbb
1354 (build_scops): Call gather_bbs.
1355 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1356 (add_conditions_to_constraints): Same.
1357 (build_scop_iteration_domain): Same.
1358 (build_scop_drs): Same.
1359 (new_pbb_from_pbb): Same.
1360 * sese.c (new_sese_info): Create bbs.
1361 * sese.h (struct sese_info_t): Add bbs.
1363 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
1365 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1366 encoding in 64-bit mode.
1368 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
1371 * config/i386/i386.c (ix86_option_override_internal): Always use
1372 8-byte minimum stack boundary in 64-bit mode.
1373 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1374 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1375 Add a REG_CFA_EXPRESSION note if needed.
1376 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1377 (ix86_handle_force_align_arg_pointer_attribute): New.
1378 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1379 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1380 with ix86_handle_force_align_arg_pointer_attribute.
1381 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1383 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1384 Sebastian Pop <s.pop@samsung.com>
1386 * graphite-scop-detection.c (parameter_index_in_region): Remove
1387 use of SESE_ADD_PARAMS.
1388 (find_scop_parameters): Same.
1389 * sese.c (new_sese_info): Same.
1390 * sese.h (struct sese_info_t): Remove add_params.
1391 (SESE_ADD_PARAMS): Remove.
1393 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1394 Sebastian Pop <s.pop@samsung.com>
1396 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1399 (copy_internal_parameters): Same.
1400 (translate_isl_ast_to_gimple): Use an sese_l.
1401 (build_iv_mapping): Same.
1402 * graphite-poly.c (new_sese): Rename new_sese_info.
1403 (free_sese): Rename free_sese_info.
1404 * graphite-poly.h (struct scop): Use an sese_info_p.
1405 (scop_set_region): Same.
1406 * graphite-scop-detection.c (struct sese_l): Moved...
1407 (get_entry_bb): Moved...
1408 (get_exit_bb): Moved...
1409 (parameter_index_in_region_1): Use an sese_info_p.
1410 (parameter_index_in_region): Same.
1411 (scan_tree_for_params): Same.
1412 (find_params_in_bb): Same.
1413 (sese_dom_walker): Use an sese_l.
1414 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1415 (reduction_phi_p): Same.
1416 (parameter_index_in_region_1): Use an sese_info_p.
1417 (propagate_expr_outside_region): Use an sese_l.
1418 * graphite.c: Replace uses of SCOP_REGION.
1419 * sese.c (sese_record_loop): Use an sese_info_p.
1420 (build_sese_loop_nests): Same.
1421 (sese_build_liveouts_use): Same.
1422 (sese_build_liveouts_bb): Same.
1423 (sese_build_liveouts_bb): Same.
1424 (sese_bad_liveouts_use): Same.
1425 (sese_reset_debug_liveouts_bb): Same.
1426 (sese_build_liveouts): Same.
1427 (new_sese): Renamed new_sese_info.
1428 (free_sese): Renamed free_sese_info.
1429 (set_rename): Use an sese_info_p.
1430 (graphite_copy_stmts_from_block): Same.
1431 (copy_bb_and_scalar_dependences): Same.
1432 (outermost_loop_in_sese_1): Use an sese_l.
1433 (outermost_loop_in_sese): Same.
1434 (if_region_set_false_region): Use an sese_info_p.
1435 (move_sese_in_condition): Same.
1436 (scalar_evolution_in_region): Use an sese_l.
1437 * sese.h (struct sese_l): ... here.
1438 (SESE_ENTRY): Remove.
1439 (SESE_ENTRY_BB): Remove.
1440 (SESE_EXIT): Remove.
1441 (SESE_EXIT_BB): Remove.
1442 (sese_contains_loop): Use an sese_info_p.
1443 (sese_nb_params): Same.
1444 (bb_in_sese_p): Use an sese_l.
1445 (stmt_in_sese_p): Same.
1446 (defined_in_sese_p): Same.
1447 (loop_in_sese_p): Same.
1448 (sese_loop_depth): Same.
1449 (struct ifsese_s): Use an sese_info_p.
1450 (gbb_loop_at_index): Use an sese_l.
1451 (nb_common_loops): Same.
1452 (scev_analyzable_p): Same.
1454 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1456 * config/i386/i386.c (ix86_conditional_register_usage): Use
1457 CALL_USED_REGISTERS_MASK.
1458 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
1460 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1463 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
1464 * configure: Regenerated.
1466 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1469 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
1470 (ix86_set_current_function): This.
1471 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
1473 2015-10-07 Richard Biener <rguenther@suse.de>
1475 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
1476 (vinfo_for_stmt): Adjust.
1477 (set_vinfo_for_stmt): Likewise.
1478 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
1479 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
1480 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
1482 (vect_analyze_loop_1): Remove.
1483 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
1484 inner loop when vectorizing an outer loop by splitting out from ...
1485 (vect_analyze_loop_form): ... here.
1487 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1490 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
1491 Use create_tmp_var_raw instead of create_tmp_var.
1493 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
1495 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
1496 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
1497 * real.c (CACHED_FRACTION): New helper macro.
1498 (dconst_third_ptr): Use it.
1499 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
1500 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
1502 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
1504 2015-10-06 Jeff Law <law@redhat.com>
1506 PR tree-optimization/67816
1507 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
1508 from remove_jump_threads_starting_at. Accept an edge rather than
1510 * tree-ssa-threadupdate.c (removed_edges): New hash table.
1511 (remove_jump_threads_including): Note edges that get removed from
1512 the CFG for later pruning of jump threading paths including them.
1513 (thread_through_all_blocks): Remove paths which include edges that
1515 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
1516 on each outgoing edges when optimizing away a control statement.
1518 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1520 * reorg.c (emit_delay_sequence): Store list of delay slot insns
1521 in a vector instead of rtx_insn_list.
1522 (add_to_delay_list): Likewise.
1523 (delete_from_delay_slot): Likewise.
1524 (optimize_skip): Likewise.
1525 (redirect_with_delay_list_safe_p): Likewise.
1526 (check_annul_list_true_false): Likewise.
1527 (steal_delay_list_from_target): Likewise.
1528 (steal_delay_list_from_fallthrough): Likewise.
1529 (redundant_insn): Likewise.
1530 (fill_simple_delay_slots): Likewise.
1531 (fill_slots_from_thread): Likewise.
1532 (fill_eager_delay_slots): Likewise.
1533 (relax_delay_slots): Likewise.
1535 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
1537 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
1538 For -mgpopt=local, also exclude unintialized common symbols.
1539 * doc/invoke.texi (Nios II Options): Document the change.
1541 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1543 * config/aarch64/iterators.md (vwcore): Add missing cases for
1546 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1547 Sebastian Pop <s.pop@samsung.com>
1549 * graphite-poly.c (new_scop): Initialize drs.
1550 * graphite-poly.h (struct dr_info): New.
1551 (struct scop): Add drs.
1552 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
1553 (pdr_add_memory_accesses): Same.
1554 (build_poly_dr): Same.
1555 (build_alias_set): Same.
1556 (build_scop_drs): Same.
1557 (build_pbb_drs): Remove.
1558 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
1559 * tree-data-ref.h (data_reference): Remove alias_set.
1561 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1562 Sebastian Pop <s.pop@samsung.com>
1564 * graphite-poly.c (free_data_refs_aux): Remove.
1565 (free_gimple_poly_bb): Do not call free_data_refs_aux.
1566 * graphite-poly.h (struct base_alias_pair): Remove.
1567 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
1568 base_alias_pair and dr->aux.
1569 (build_alias_set): Same.
1570 * tree-data-ref.c (create_data_ref): Initialize alias_set.
1571 * tree-data-ref.h (data_reference): Add alias_set.
1573 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1574 Sebastian Pop <s.pop@samsung.com>
1576 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
1577 Do not set PDR_BASE_OBJECT_SET.
1578 * graphite-poly.h (poly_dr): Same.
1579 (PDR_BASE_OBJECT_SET): Remove.
1580 (new_poly_dr): Update decl.
1581 * graphite-sese-to-poly.c (build_poly_dr): Update call to
1583 (write_alias_graph_to_ascii_dimacs): Remove.
1584 (write_alias_graph_to_ascii_dot): Remove.
1585 (write_alias_graph_to_ascii_ecc): Remove.
1586 (dr_same_base_object_p): Remove.
1587 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
1589 (build_base_obj_set_for_drs): Remove.
1590 (dump_alias_graphs): Remove.
1591 (build_scop_drs): Remove dead code.
1593 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1594 Peter Bergner <bergner@vnet.ibm.com>
1597 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
1598 allow registers, but provide insns for the combiner to create for
1599 loads from memory. Separate VSX code from non-VSX code. For
1600 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
1601 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
1602 so that registers come before memory operations. Drop support from
1603 converting DFmode to TFmode, if the DFmode value is in a GPR
1605 (extenddftf2_fprs): Likewise.
1606 (extenddftf2_internal): Likewise.
1607 (extenddftf2_vsx): Likewise.
1608 (extendsftf2): In the expander, only allow registers, but provide
1609 insns for the combiner to create for stores and loads.
1611 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1613 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
1614 from the decl parameter.
1616 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
1619 * gimple-fold.c (gimple_fold_builtin): Add break after
1620 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
1622 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
1624 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
1625 to scop->isl_context.
1627 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
1629 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
1630 (output_probe_stack_range): Rotate the loop and simplify.
1631 (thumb1_expand_prologue): Tweak sorry message.
1632 * config/arm/arm.md (probe_stack): Use bare string.
1634 2015-10-06 Nick Clifton <nickc@redhat.com>
1636 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
1638 2015-10-06 Nick Clifton <nickc@redhat.com>
1640 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
1641 (ATTR_PERSIST): New constant.
1642 (msp430_data_attr): New function - verifies an attribute that only
1643 applies to variables.
1644 (msp430_attributes): Add noinit and persistent attributes.
1645 (noinit_section): New variable.
1646 (presis_section): New variable.
1647 (TARGET_ASM_INIT_SECTIONS): Define.
1648 (msp430_init_sections): New function - initialises the noinit and
1649 persist section variables.
1650 (msp430_select_section): Add support for noinit and persist
1652 (msp430_section_type_flags): Likewise.
1653 * doc/extend.texi: Document the reent, critical, wakeup, noinit
1654 and persistent attributes.
1656 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1657 Sebastian Pop <s.pop@samsung.com>
1659 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
1660 (no_violations): Remove.
1661 (subtract_commutative_associative_deps): Remove.
1662 (compute_deps): Do not call subtract_commutative_associative_deps.
1663 (transform_is_safe): Remove.
1664 (graphite_legal_transform): Remove.
1665 * graphite-poly.h (graphite_legal_transform): Remove.
1667 2015-10-05 Aditya Kumar <hiraditya@msn.com>
1669 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
1670 which are in this region are passed so gcc_assert and remove redundant
1672 * sese.c (sese_build_liveouts): Pass only those bbs which are not
1674 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
1675 gcc_assert on that and remove unnecessary computation.
1676 (sese_build_liveouts_use): Same.
1678 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1680 * graphite-dependences.c (scop_get_reads): Renamed scop->context
1681 to scop->param_context.
1682 (scop_get_must_writes): Same.
1683 (scop_get_may_writes): Same.
1684 (scop_get_original_schedule): Same.
1685 (scop_get_transformed_schedule): Same.
1686 (subtract_commutative_associative_deps): Same.
1687 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
1688 (generate_isl_context): Same.
1689 (generate_isl_schedule): Same.
1690 (scop_to_isl_ast): Same.
1691 (graphite_regenerate_ast_isl): Same.
1692 * graphite-optimize-isl.c (scop_get_domains): Same.
1693 (optimize_isl): Renamed scop->context to scop->param_context.
1694 * graphite-poly.c (new_poly_bb): Change the type of argument to
1696 (new_scop): Renamed scop->context to scop->param_context.
1698 (print_scop_context): Same.
1699 * graphite-poly.h (new_poly_dr): Change the type of argument from
1700 void* to data_reference_p.
1701 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
1702 (new_poly_bb): Change the type of argument from void* to
1704 (pbb_set_black_box): Same.
1705 (struct scop): Rename context to param_context, ctx to isl_context.
1706 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
1707 Move declarations closer to assignment.
1708 (find_params_in_bb): Same.
1709 (find_scop_parameters): Same.
1710 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
1711 Global to be used for statement IDs.
1712 (isl_id_for_pbb): Use ssa_name_version_typesize.
1713 (simple_copy_phi_p): Move declarations closer to assignment.
1714 (build_pbb_scattering_polyhedrons): Same.
1715 (build_scop_scattering): Same.
1716 (isl_id_for_ssa_name): Same.
1717 (extract_affine_name): Same.
1718 (extract_affine_int): Same.
1719 (extract_affine): Same.
1720 (set_scop_parameter_dim): Use renamed member.
1721 (build_loop_iteration_domains): Same.
1722 (add_param_constraints): Same.
1723 (build_scop_iteration_domain): Same.
1724 (pdr_add_data_dimensions): Same.
1725 (build_poly_dr): Same.
1726 (build_scop_drs): Move declarations closer to assignment.
1727 (analyze_drs_in_stmts): Same.
1728 (insert_out_of_ssa_copy): Same.
1729 (insert_out_of_ssa_copy_on_edge): Same.
1730 (propagate_expr_outside_region): Same.
1731 (rewrite_phi_out_of_ssa): Same.
1732 (rewrite_degenerate_phi): Same.
1733 (rewrite_reductions_out_of_ssa): Same.
1734 (rewrite_cross_bb_scalar_dependence): Same.
1735 (handle_scalar_deps_crossing_scop_limits): Same.
1736 (rewrite_cross_bb_scalar_deps): Same.
1737 * graphite.c (graphite_transform_loops): Use renamed member.
1739 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
1742 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
1743 create_tmp_var_raw instead of create_tmp_var.
1745 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1748 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
1749 Use create_tmp_var_raw instead of create_tmp_var.
1751 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
1754 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
1755 split for upper-bank registers when target does not support
1757 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
1758 split when target does not support AVX512VL.
1760 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
1763 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
1764 Adjust to use create_tmp_var_raw instead of create_tmp_var.
1766 2015-10-06 Nick Clifton <nickc@redhat.com>
1768 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
1771 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1773 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
1774 (case ${target}): Add znver1.
1775 * config/i386/cpuid.h(bit_CLZERO): Define.
1776 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1777 -march=native recognize znver1 processors.
1778 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1779 znver1, clzero def_and_undef.
1780 * config/i386/i386.c (struct processor_costs znver1_cost): New.
1781 (m_znver1): New definition.
1782 (m_AMD_MULTIPLE): Includes m_znver1.
1783 (processor_target_table): Add znver1 entry.
1784 (ix86_target_string) : Add clzero entry.
1785 (static const char *const cpu_names): Add znver1 entry.
1786 (ix86_option_override_internal): Add znver1 instruction sets.
1787 (PTA_CLZERO) : New definition.
1788 (ix86_option_override_internal): Handle new clzerooption.
1789 (ix86_issue_rate): Add znver1.
1790 (ix86_adjust_cost): Add znver1.
1791 (ia32_multipass_dfa_lookahead): Add znver1.
1792 (has_dispatch): Add znver1.
1793 * config/i386/i386.h (TARGET_znver1): New definition.
1794 (TARGET_CLZERO): Define.
1795 (TARGET_CLZERO_P): Define.
1796 (struct ix86_size_cost): Add TARGET_ZNVER1.
1797 (enum processor_type): Add PROCESSOR_znver1.
1798 * config/i386/i386.md (define_attr "cpu"): Add znver1.
1799 (set_attr znver1_decode): New definitions for znver1.
1800 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
1802 * config/i386/mmx.md (set_attr znver1_decode): New definitions
1804 * config/i386/sse.md (set_attr znver1_decode): Likewise.
1805 * config/i386/x86-tune.def: Add znver1 tunings.
1806 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
1807 * gcc/doc/invoke.texi: Add details about znver1
1809 2015-10-06 Richard Biener <rguenther@suse.de>
1811 PR tree-optimization/67859
1812 * tree-ssa-pre.c (create_expression_by_pieces): Properly
1813 discard not inserted stmts.
1815 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
1817 * doc/extend.texi (Template Instantiation): Reorder options and
1818 de-emphasize -frepo.
1819 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
1820 example instead of -frepo.
1822 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
1825 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
1826 use create_tmp_var_raw rather than create_tmp_var.
1828 2015-10-06 Richard Biener <rguenther@suse.de>
1830 * tree-vectorizer.h (vec_info): New base class for...
1831 (_loop_vec_info): ... this and ...
1832 (_bb_vec_info): ... this.
1833 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
1834 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1835 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1836 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
1837 vect_destroy_datarefs): Adjust interface to take a vec_info *
1838 rather than both a loop_vec_info and a bb_vec_info argument.
1839 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
1840 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
1841 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
1842 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
1844 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
1845 (destroy_loop_vec_info, vect_analyze_loop_2,
1846 vect_is_simple_reduction_1, get_initial_def_for_induction,
1847 vect_create_epilog_for_reduction, vectorizable_reduction,
1848 vectorizable_live_operation, vect_transform_loop): Adjust.
1849 * tree-vect-patterns.c (type_conversion_p,
1850 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
1851 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
1852 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
1853 check_bool_pattern, vect_recog_bool_pattern,
1854 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
1855 * tree-vect-slp.c (vect_get_and_check_slp_defs,
1856 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
1857 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
1858 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
1859 (new_bb_vec_info): Initialize base classs.
1860 * tree-vect-stmts.c (record_stmt_cost, process_use,
1861 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
1862 vectorizable_mask_load_store, vectorizable_call,
1863 vectorizable_simd_clone_call, vectorizable_conversion,
1864 vectorizable_assignment, vectorizable_shift,
1865 vectorizable_operation, vectorizable_store,
1866 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
1867 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
1868 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
1870 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1873 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
1874 create_tmp_var_raw rather than create_tmp_var.
1876 2015-10-05 Marek Polacek <polacek@redhat.com>
1878 * tree-ssa-loop-im.c
1879 (move_computations_dom_walker::before_dom_children): Don't set
1880 SSA_NAME_ANTI_RANGE_P.
1881 * tree-ssa-phiopt.c (value_replacement): Likewise.
1883 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1884 Sebastian Pop <s.pop@samsung.com>
1886 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
1888 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1889 Sebastian Pop <s.pop@samsung.com>
1891 * graphite-poly.c (new_gimple_poly_bb): ... here.
1892 (free_data_refs_aux): ... here.
1893 (free_gimple_poly_bb): ... here.
1894 (remove_gbbs_in_scop): ... here.
1895 (new_scop): Call new_sese.
1896 (free_scop): Call remove_gbbs_in_scop and free_sese.
1897 * graphite-poly.h (base_alias_pair): ... here.
1898 (new_gimple_poly_bb): Declare.
1899 (free_gimple_poly_bb): Declare.
1900 * graphite-scop-detection.c (parameter_index_in_region_1):
1901 (parameter_index_in_region): ... here.
1902 (scan_tree_for_params): ... here.
1903 (find_params_in_bb): ... here.
1904 (find_scop_parameters): ... here.
1905 (build_scops): Call find_scop_parameters.
1906 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
1907 (free_scops): Move...
1908 (single_pred_cond_non_loop_exit): Move...
1909 (sese_dom_walker::before_dom_children): Move...
1910 (sese_dom_walker::after_dom_children): Move...
1911 (build_poly_scop): Move...
1912 * graphite-sese-to-poly.h (base_alias_pair): Move...
1913 * graphite.c (free_scops): ... here.
1915 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1916 Sebastian Pop <s.pop@samsung.com>
1918 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
1919 (trivially_empty_bb_p): Move...
1920 (same_close_phi_node): Move...
1921 (new_gimple_poly_bb): Move...
1922 (compare_bb_depths): Move...
1923 (graphite_sort_dominated_info): Move...
1924 (remove_duplicate_close_phi): Move...
1925 (make_close_phi_nodes_unique): Move...
1926 (canonicalize_loop_closed_ssa): Move...
1927 (canonicalize_loop_closed_ssa_form): Move...
1928 (loop_ivs_can_be_represented): Move...
1929 (single_pred_cond_non_loop_exit): Move...
1930 (graphite_can_represent_init): Move...
1931 (graphite_can_represent_scev): Move...
1932 (stmt_has_simple_data_refs_p): Move...
1933 (stmt_has_side_effects): Move...
1934 (graphite_can_represent_stmt): Move...
1935 (scop_detection): ... here.
1936 (sese_dom_walker): ... and here.
1937 (build_scops): Call all moved functions.
1938 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
1939 (all_non_dominated_preds_marked_p): Move...
1940 (build_scop_bbs_1): Move...
1941 (build_scop_bbs): Move...
1942 (set_scop_parameter_dim): Move...
1943 (nb_pbbs_in_loops): Move...
1944 (build_poly_scop): Do not call all the moved functions.
1946 2015-10-05 Martin Jambor <mjambor@suse.cz>
1947 Jan Hubicka <hubicka@ucw.cz>
1949 * ipa-cp.c (ipcp_alignment_lattice): New type.
1950 (ipcp_param_lattices): Use the above to represent alignment.
1951 (ipcp_alignment_lattice::print): New function.
1952 (print_all_lattices): Use it to print alignment information.
1953 (ipcp_alignment_lattice::top_p): New function.
1954 (ipcp_alignment_lattice::bottom_p): Likewise.
1955 (ipcp_alignment_lattice::set_to_bottom): Likewise.
1956 (ipcp_alignment_lattice::meet_with_1): Likewise.
1957 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
1958 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
1959 (initialize_node_lattices): Likewise.
1960 (propagate_alignment_accross_jump_function): Work with the new class
1961 for alignment lattices.
1962 (propagate_constants_accross_call): Pass only the alignment lattice to
1963 propagate_alignment_accross_jump_function.
1964 (ipcp_store_alignment_results): Work with the new class for alignment
1967 2015-10-05 Marek Polacek <polacek@redhat.com>
1969 PR tree-optimization/67821
1970 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
1972 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
1975 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
1977 (mkoffload_cleanup): ... this. Adjust all users.
1978 (maybe_unlink): Look at save_temps and verbose flags instead of
1980 (main): Parse "-save-temps" flag.
1981 (generate_target_descr_file, generate_target_offloadend_file)
1982 (generate_host_descr_file, prepare_target_image): Pass it on.
1983 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
1984 (mkoffload_cleanup): New function.
1985 (maybe_unlink): Look at save_temps and verbose flags instead of
1987 (main): Instead of calling utils_cleanup, register atexit handler
1988 for mkoffload_cleanup.
1989 (main): Parse "-save-temps" flag.
1990 (compile_native, main): Pass it on.
1991 * lto-wrapper.c (compile_offload_image): Likewise.
1993 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1995 * gimple.h (gimple_op_ptr): Require a non const gimple *.
1996 (gimple_assign_lhs_ptr): Likewise.
1997 (gimple_assign_rhs1_ptr): Likewise.
1998 (gimple_assign_rhs2_ptr): Likewise.
1999 (gimple_assign_rhs3_ptr): Likewise.
2000 (gimple_call_lhs_ptr): Likewise.
2001 (gimple_call_fn_ptr): Likewise.
2002 (gimple_call_chain_ptr): Likewise.
2003 (gimple_call_arg_ptr): Likewise.
2004 (gimple_cond_lhs_ptr): Likewise.
2005 (gimple_cond_rhs_ptr): Likewise.
2006 (gimple_switch_index_ptr): Likewise.
2007 (gimple_return_retval_ptr): Likewise.
2009 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2011 * gimple.h (gimple_asm_input_op_ptr): Remove.
2012 (gimple_asm_output_op_ptr): Likewise.
2014 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2016 * gimple.h (gimple_location_ptr): Remove.
2017 * tree-vrp.c (check_all_array_refs): Adjust.
2019 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2021 * tree-ssa-operands.c (build_uses): store tree * instead of
2023 (finalize_ssa_uses): Adjust.
2024 (append_use): Likewise.
2025 (verify_ssa_operands): Likewise.
2027 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2029 * real.h (build_real_truncate): Declare.
2030 * tree.c (build_real_truncate): New function.
2031 (strip_float_extensions): Use it.
2032 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2033 (fold_builtin_hypot, fold_builtin_pow): Likewise.
2034 * match.pd: Likewise.
2036 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2037 Jiong Wang <jiong.wang@arm.com>
2039 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2041 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2043 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2044 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2045 (aarch64_print_operand, aarch64_float_const_representable_p)
2046 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2047 instead of REAL_VALUE_FROM_CONST_DOUBLE.
2048 * config/arc/arc.c (arc_print_operand): Likewise.
2049 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2050 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2051 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2053 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2054 (consttable_16): Likewise.
2055 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2056 * config/avr/avr.c (avr_print_operand): Likewise.
2057 * config/bfin/bfin.md: Likewise (in a define_split).
2058 * config/c6x/c6x.md: Likewise (in a define_split).
2059 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2060 (cr16_print_operand): Likewise.
2061 * config/cris/cris.c (cris_print_operand): Likewise.
2062 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2063 * config/fr30/fr30.c (fr30_print_operand): Likewise.
2064 (fr30_const_double_is_zero): Likewise.
2065 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2066 * config/frv/frv.md: Likewise (in a define_split).
2067 * config/frv/predicates.md (int_2word_operand): Likewise.
2068 * config/h8300/h8300.c (h8300_print_operand): Likewise.
2069 * config/i386/i386.c (standard_80387_constant_p): Likewise.
2070 (ix86_print_operand, ix86_split_to_parts): Likewise.
2071 * config/i386/i386.md: Likewise (in a define_split).
2072 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2073 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2074 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2075 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2076 (print_operand): Likewise.
2077 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2078 * config/mep/mep.md: Likewise (in define_split).
2079 * config/microblaze/microblaze.c (microblaze_const_double_ok)
2080 (print_operand): Likewise.
2081 * config/mips/mips.md (consttable_float): Likewise.
2082 * config/mmix/mmix.c (mmix_intval): Likewise.
2083 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2084 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2085 * config/pa/pa.c (pa_singlemove_string): Likewise.
2086 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2087 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2088 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2089 (output_toc): Likewise.
2090 * config/rs6000/rs6000.md: Likewise (in define_splits).
2091 * config/rx/rx.c (rx_print_operand): Likewise.
2092 * config/s390/s390.c (s390_output_pool_entry): Likewise.
2093 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2094 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2095 (and also in define_splits).
2096 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2097 (fp_high_losum_p): Likewise.
2098 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2099 (*movsf_high): Likewise.
2100 * config/spu/spu.c (const_double_to_hwint): Likewise.
2101 * config/v850/v850.c (const_double_split): Likewise.
2102 * config/vax/vax.c (vax_float_literal): Likewise.
2103 * config/visium/visium.c (visium_expand_copysign): Likewise.
2104 * config/visium/visium.md: Likewise (in define_split).
2105 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2106 * config/xtensa/xtensa.c (print_operand): Likewise.
2107 (xtensa_output_literal): Likewise.
2108 * cprop.c (implicit_set_cond_p): Likewise.
2109 * dwarf2out.c (insert_float): Likewise.
2110 * expmed.c (expand_mult, make_tree): Likewise.
2111 * expr.c (compress_float_constant): Likewise.
2112 * rtlanal.c (split_double): Likewise.
2113 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2114 (simplify_const_unary_operation, simplify_binary_operation_1)
2115 (simplify_const_binary_operation): Likewise.
2116 (simplify_const_relational_operation): Likewise.
2117 * varasm.c (output_constant_pool_2): Likewise.
2119 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2121 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2122 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2123 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2124 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2125 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2126 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2127 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2128 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2129 (ix86_emit_swsqrtsf): Likewise.
2130 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2131 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2132 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2133 * config/pa/pa.c (pa_expand_builtin): Likewise.
2134 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2135 (rs6000_scale_v2df): Likewise.
2136 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2137 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2138 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2139 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2140 (vec_ctul): Likewise.
2141 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2142 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2143 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2144 * cse.c (fold_rtx): Likewise.
2145 * emit-rtl.c (immed_double_const): Likewise (in comments).
2146 (init_emit_once): Likewise.
2147 * expr.c (compress_float_constant, expand_expr_real_1)
2148 (const_vector_from_tree): Likewise.
2149 * optabs.c (expand_float, expand_fix): Likewise.
2150 * reg-stack.c (reg_to_stack): Likewise.
2151 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2152 (simplify_const_unary_operation, simplify_binary_operation_1)
2153 (simplify_const_binary_operation, simplify_relational_operation)
2154 (simplify_immed_subreg): Likewise.
2156 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2158 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2159 * doc/tm.texi: Regenerate.
2160 * real.h (REAL_ARITHMETIC): Delete.
2161 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2162 (ix86_expand_round_sse4): Use real_arithmetic instead of
2164 * config/i386/sse.md (round<mode>2): Likewise.
2165 * rtl.h (rtx_to_tree_code): Likewise (in comment).
2166 * explow.c (rtx_to_tree_code): Likewise (in comment).
2167 * match.pd: Likewise.
2168 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2169 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2170 (expand_pow_as_sqrts): Likewise.
2171 * tree-pretty-print.c (dump_generic_node): Remove code that
2172 was conditional on REAL_ARITHMETIC being undefined.
2174 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2176 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2177 * doc/tm.texi: Regenerate.
2178 * real.h (real_less): Declare.
2179 (REAL_VALUES_LESS): Delete.
2180 * real.c (real_less): New function.
2181 (real_compare): Use it.
2182 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2183 of REAL_VALUES_LESS.
2184 * config/microblaze/microblaze.c (microblaze_const_double_ok):
2186 * fold-const.c (fold_convert_const_int_from_real): Likewise.
2187 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2188 (simplify_const_relational_operation): Likewise.
2189 * tree-call-cdce.c (check_pow): Likewise.
2190 (gen_conditions_for_pow_cst_base): Likewise.
2192 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2194 * real.h (REAL_VALUES_IDENTICAL): Delete.
2195 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2196 instead of REAL_VALUES_IDENTICAL.
2197 * fold-const.c (operand_equal_p): Likewise.
2198 * ipa-icf.c (sem_variable::equals): Likewise.
2199 * tree-complex.c (some_nonzerop): Likewise.
2200 (expand_complex_multiplication): Likewise.
2201 * tree.c (simple_cst_equal): Likewise.
2202 * varasm.c (compare_constant): Likewise.
2204 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2206 * real.h (real_equal): Declare.
2207 (REAL_VALUES_EQUAL): Delete.
2208 * real.c (real_equal): New function.
2209 (real_compare): Use it.
2210 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2211 * doc/tm.texi: Regenerate.
2212 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2213 real_equal instead of REAL_VALUES_EQUAL.
2214 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2215 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2216 (fp_const_from_val): Likewise.
2217 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2218 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2219 (floating_exact_log2): Likewise.
2220 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2221 * config/vax/vax.c (vax_float_literal): Likewise.
2222 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2223 * cprop.c (implicit_set_cond_p): Likewise.
2224 * expmed.c (expand_mult): Likewise.
2225 * fold-const.c (const_binop): Likewise.
2226 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2227 (simplify_const_binary_operation): Likewise.
2228 (simplify_const_relational_operation): Likewise.
2229 * tree-call-cdce.c (check_pow): Likewise.
2230 (gen_conditions_for_pow_cst_base): Likewise.
2231 * tree-inline.c (estimate_num_insns): Likewise.
2232 * tree-ssa-dom.c (record_equality): Likewise.
2233 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2234 (gimple_expand_builtin_pow): Likewise.
2235 (pass_optimize_widening_mul::execute): Likewise.
2236 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2237 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2238 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2240 2015-10-05 Richard Biener <rguenther@suse.de>
2243 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2244 consider loop header PHI defs as IVs.
2246 2015-10-05 Richard Biener <rguenther@suse.de>
2248 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2250 (create_expression_by_pieces): ... here and build GIMPLE
2251 calls directly. Use gimple_build API and avoid force_gimple_operand.
2252 (insert_into_preds_of_block): Simplify.
2253 (do_regular_insertion): Add comment.
2255 2015-10-04 Jason Merrill <jason@redhat.com>
2257 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2259 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
2261 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2262 check for general register.
2263 (ix86_emit_save_regs): Ditto.
2264 (ix86_emit_save_regs_using_mov): Ditto.
2265 (ix86_emit_restore_regs_using_pop): Ditto.
2266 (ix86_emit_restore_regs_using_mov): Ditto.
2268 2015-10-03 Marek Polacek <polacek@redhat.com>
2270 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2271 (insn-dfatab.o): Likewise.
2273 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
2275 * config.gcc (xtensa*-*-uclinux*): New configuration.
2276 * config/xtensa/uclinux.h: New file.
2277 * config/xtensa/uclinux.opt: New file.
2279 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
2281 * doc/cpp.texi (Standard Predefined Macros): Document value of
2282 __cplusplus for C++14.
2284 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
2286 * gcc.c (process_command): Use spec_machine rather than
2287 spec_host_machine to build tooldir_prefix2.
2289 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2290 Bernd Schmidt <bernds@codesourcery.com>
2292 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2293 (Token, Stmt): Remove structs.
2294 (decls, vars, fns): Remove variables.
2295 (alloc_comment, append_stmt, is_keyword): Remove macros.
2296 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2297 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2298 (parse_init, parse_file): Remove functions.
2299 (read_file): Accept a pointer to a length and store into it.
2300 (process): Don't try to parse the input file, just write it out as
2301 a string, but looking for maps. Also write out the length.
2302 (main): Don't use "-S" to compile PTX code.
2304 2015-10-02 Jeff Law <law@redhat.com>
2306 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2309 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2312 * config/nvptx/mkoffload.c (main): Scan the argument vector for
2313 -fopenmp, and skip generating an offloading image if specified.
2315 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
2317 * system.h (ROUND_UP): New macro definition.
2318 (ROUND_DOWN): Ditto.
2319 * ggc-page.c (ROUND_UP): Remove local macro definition.
2320 (PAGE_ALIGN): Implement using ROUND_UP macro.
2322 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2323 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2325 (ix86_compute_frame_layout): Ditto.
2326 (ix86_expand_prologue): Ditto.
2327 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2328 to round down values.
2329 (expand_set_or_movmem_via_rep): Ditto.
2331 2015-10-02 Marek Polacek <polacek@redhat.com>
2333 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2335 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
2337 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2338 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2339 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2340 (free_gimple_bb): Renamed free_gimple_poly_bb.
2341 (try_generate_gimple_bb): Hoist loop invariant code.
2342 (analyze_drs_in_stmts): Same.
2343 (build_scop_drs): Call renamed functions.
2344 (new_pbb_from_pbb): Same.
2345 (scop_ivs_can_be_represented): Delete as functionality now moved to
2346 graphite-scop-detection.c
2347 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2349 2015-10-02 Aditya Kumar <hiraditya@msn.com>
2351 * graphite-scop-detection.c (stmt_has_side_effects): New function
2352 outlined from stmt_simple_for_scop_p.
2353 (graphite_can_represent_stmt): Same.
2354 (stmt_simple_for_scop_p): Moved code out of this function for better
2357 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2359 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2361 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2363 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2365 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2367 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
2369 PR rtl-optimization/67756
2370 * lra-constraints.c (match_reload): Add a new parameter. Use it
2371 for creating a pseudo with the same value.
2372 (curr_insn_transform): Pass a new argument to match_reload.
2374 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2376 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2377 (expand_vec_perm_even_odd_1): Handle V64QImode.
2378 (ix86_expand_vec_perm_const_1): Try expansion with
2379 expand_vec_perm_even_odd_trunc as well.
2380 * config/i386/sse.md (VI124_AVX512F): Rename to ...
2381 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2383 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2384 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2386 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2387 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2388 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2389 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2390 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2391 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2393 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2395 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2396 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2398 2015-10-02 Jason Merrill <jason@redhat.com>
2401 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2402 (diagnose_tm_1_op): Also diagnose volatile accesses in
2403 transaction_safe function.
2405 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
2407 * system.h (malloc.h): Don't include obsolete header.
2409 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2411 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2412 (TLS_SECTION_ASM_FLAG): Delete.
2414 2015-10-02 Marek Polacek <polacek@redhat.com>
2417 * doc/invoke.texi: Document -Wduplicated-cond.
2418 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2419 (insn-dfatab.o): Likewise.
2420 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2423 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
2425 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2428 2015-10-02 Renlin Li <renlin.li@arm.com>
2430 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
2432 2015-10-02 Renlin Li <renlin.li@arm.com>
2435 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
2437 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2439 PR rtl-optimization/67786
2440 PR rtl-optimization/67787
2441 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
2442 it modifies a reg used in the condition calculation.
2444 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
2446 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
2447 alternatives for reads from memory and moves from general-purpose
2449 (*aarch64_combinez_be<mode>): Likewise.
2451 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
2454 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
2455 selectany within this function without need to keep attribute.
2456 (i386_pe_encode_section_info): Remove selectany-code.
2458 2015-10-02 Richard Biener <rguenther@suse.de>
2460 * tree-ssa-sccvn.c (has_VN_INFO): New function.
2461 (free_scc_vn): Use it.
2462 (visit_use): Remove dead code and refactor to use gassign
2463 and use less indentation.
2465 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2469 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
2470 (rs6000_cannot_copy_insn_p): New function.
2471 * config/rs6000/rs6000.md (cannot_copy): New attribute.
2472 (load_toc_v4_PIC_1_normal): Set cannot_copy.
2473 (load_toc_v4_PIC_1_476): Ditto.
2475 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2477 * graphite-scop-detection.c (struct sese_l): New conversion constructor
2478 so that this type can be pushed into a vec.
2479 (class scop_builder): use sese_l to collect scops.
2480 (get_scops): New getter function.
2481 (remove_intersecting_scops): Use sese_l instead of scops_p.
2485 (remove_subscops): Same.
2486 (build_scops): Add scops to vec<scops_p> once all the scops have been
2489 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2491 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2492 Renamed type from gimple_bb_p to gimple_poly_bb_p.
2493 (translate_isl_ast_node_user): Same.
2494 * graphite-poly.c (new_poly_bb): Same.
2495 * graphite-poly.h (gbb_from_bb): Same.
2497 * graphite-sese-to-poly.c (new_gimple_bb):
2498 gimple_bb_p -> gimple_poly_bb_p
2499 (build_scop_scattering): Same.
2500 (find_params_in_bb): Same.
2501 (add_conditions_to_domain): Same.
2502 (sese_dom_walker::before_dom_children): Same.
2503 (analyze_drs_in_stmts): Same.
2504 (new_pbb_from_pbb): Same.
2505 (free_data_refs_aux): New pointer to type base_alias_pair.
2506 * graphite-sese-to-poly.h: Same.
2507 * sese.c (if_region_set_false_region): Fixed Indentation.
2508 (move_sese_in_condition): Same.
2510 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2511 Aditya Kumar <aditya.k7@samsung.com>
2513 PR tree-optimization/66980
2514 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
2515 when data reference analysis has failed.
2517 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2518 Aditya Kumar <aditya.k7@samsung.com>
2520 PR tree-optimization/67754
2521 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
2522 scev analysis on the same loop nest as analyze_drs_in_stmts.
2523 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
2525 (try_generate_gimple_bb): Call outermost_loop_in_sese.
2526 (analyze_drs_in_stmts): Same.
2527 * sese.c (outermost_loop_in_sese): ...here.
2529 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2530 Aditya Kumar <aditya.k7@samsung.com>
2532 PR tree-optimization/67754
2533 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
2534 recursion on the inner loops.
2536 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2538 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
2539 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
2540 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
2541 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
2542 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
2544 2015-10-01 Marek Polacek <polacek@redhat.com>
2547 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
2548 create_tmp_var_raw rather than create_tmp_var.
2550 2015-10-01 Marek Polacek <polacek@redhat.com>
2552 PR tree-optimization/67769
2553 * tree-ssa-phiopt.c (conditional_replacement): Call
2554 reset_flow_sensitive_info_in_bb.
2555 (minmax_replacement): Likewise.
2556 (abs_replacement): Likewise.
2558 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
2560 * builtins.c: Don't include gomp-constants.h.
2561 (fold_builtin_1): Don't fold acc_on_device here.
2562 * gimple-fold.c: Include gomp-constants.h.
2563 (gimple_fold_builtin_acc_on_device): New.
2564 (gimple_fold_builtin): Call it.
2566 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
2568 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
2569 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
2571 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
2573 * config/arm/aarch-common-protos.h
2574 (aarch_accumulator_forwarding): New.
2575 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2576 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
2577 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2578 * config/arm/cortex-a53.md: Rewrite.
2580 2015-10-01 Richard Biener <rguenther@suse.de>
2582 * gimple-match.h (mprts_hook): Declare.
2583 * gimple-match.head.c (mprts_hook): Define.
2584 (maybe_push_res_to_seq): Use new hook.
2585 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2586 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
2587 (vn_ssa_aux::has_constants): Remove.
2588 * tree-ssa-sccvn.c: Include gimple-match.h.
2589 (VN_INFO_GET): Assert we don't re-use SSA names.
2590 (vn_get_expr_for): Remove.
2591 (expr_has_constants): Likewise.
2592 (stmt_has_constants): Likewise.
2593 (simplify_binary_expression): Likewise.
2594 (simplify_unary_expression): Likewise.
2595 (vn_lookup_simplify_result): New hook.
2596 (visit_copy): Adjust.
2597 (visit_reference_op_call): Likewise.
2598 (visit_phi): Likewise.
2599 (visit_use): Likewise.
2600 (process_scc): Likewise.
2601 (init_scc_vn): Likewise.
2602 (visit_reference_op_load): Likewise. Use match-and-simplify and
2603 a gimple seq for inserted expressions.
2604 (try_to_simplify): Remove GENERIC stmt combining code.
2605 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
2606 * tree-ssa-pre.c (eliminate_insert): Adjust.
2607 (eliminate_dom_walker::before_dom_children): Likewise.
2609 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2611 * doc/invoke.texi (Optimization Options): Add
2612 -freorder-blocks-algorithm=.
2613 (Optimize Options) <-O>: Add -freorder-blocks.
2614 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
2615 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
2616 <-freorder-blocks>: Also enabled at levels -O and -Os.
2617 <-freorder-blocks-algorithm=>: Document new option.
2619 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2621 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
2622 with flag_reorder_blocks_algorithm.
2623 * common.opt (freorder-blocks-algorithm=): New flag.
2624 (reorder_blocks_algorithm): New enum.
2625 * flag-types.h (reorder_blocks_algorithm): New enum.
2626 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
2627 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
2629 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2631 * bb-reorder.c: Add intro comment.
2632 (reorder_basic_blocks_software_trace_cache): Print a header to
2634 (edge_order): New function.
2635 (reorder_basic_blocks_simple): New function.
2636 (reorder_basic_blocks): Choose between the STC and the simple
2637 algorithms (always choose the former).
2639 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2641 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
2642 function, factored out from ...
2643 (reorder_basic_blocks): ... here.
2645 2015-10-01 Tom de Vries <tom@codesourcery.com>
2647 * tree-cfg.c (dump_function_to_file): Dump function attributes using
2648 __attribute__(()) string. Move dumping of function attributes to before
2651 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
2654 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2655 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
2656 based on gold linker version.
2657 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
2658 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
2659 * configure, config.in: Regenerate.
2661 2015-10-01 Alan Modra <amodra@gmail.com>
2663 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
2664 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
2665 (rs6000_output_mi_thunk): Likewise.
2667 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2669 * config/nvptx/mkoffload.c (process): Change offload data format.
2671 2015-09-30 Jeff Law <law@redhat.com>
2673 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
2674 with constant conditions.
2675 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
2676 (remove_ctrl_stmt_and_useless_edges): No longer static.
2677 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
2678 (remove_ctrl_stmt_and_useless_edges): Likewise.
2680 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2681 Cesar Philippidis <cesar@codesourcery.com>
2683 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
2684 (TARGET_GOACC_VALIDATE_DIMS): Override.
2685 * target.def (TARGET_GOACC): New target hook prefix.
2686 (validate_dims): New hook.
2687 * targhooks.h (default_goacc_validate_dims): New.
2688 * omp-low.c (oacc_validate_dims): New.
2689 (execute_oacc_device_lower): New.
2690 (default_goacc_validate_dims): New.
2691 (pass_data_oacc_device_lower): New.
2692 (pass_oacc_device_lower): New pass.
2693 (make_pass_oacc_device_lower): New.
2694 * tree-pass.h (make_pass_oacc_device_lower): Declare.
2695 * passes.def (pass_oacc_device_lower): Add it.
2696 * doc/tm.texi: Rebuilt.
2697 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
2698 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
2700 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2702 PR rtl-optimization/67037
2703 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
2705 2015-09-30 Bernd Schmidt <bernds@redhat.com>
2707 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
2708 * passes.c: Include tree-ssanames.h.
2709 (execute_function_todo): Flush the pending free SSA_NAMEs after
2710 eliminating unreachable basic blocks.
2711 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
2712 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
2713 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
2714 (flush_ssanames_freelist): New function.
2715 (release_ssaname_fn): Put released names on the queue.
2716 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
2717 * tree-ssanames.h (flush_ssanames_freelist): Declare.
2719 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2721 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
2722 (generate_target_descr_file, generate_target_offloadend_file)
2723 (generate_host_descr_file, prepare_target_image): Pass it on.
2724 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
2725 (compile_native, main): Pass it on.
2726 * lto-wrapper.c (compile_offload_image): Likewise.
2728 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2729 Ilya Verbin <ilya.verbin@intel.com>
2730 Andrey Turetskiy <andrey.turetskiy@intel.com>
2732 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
2733 (prepare_target_image, main): Refactor argv building to use
2736 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2738 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
2739 * config/spu/spu.c (spu_expand_atomic_op): New function.
2740 * config/spu/spu.md (AINT): New mode iterator.
2741 (ATOMIC): New code iterator.
2742 (atomic_name, atomic_pred): New code predicates.
2743 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
2744 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
2745 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
2746 "atomic_<atomic_name>_fetch<mode>"): Likewise.
2748 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
2750 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
2752 (scalar_chain::convert_reg): Likewise.
2754 2015-09-30 Richard Biener <rguenther@suse.de>
2756 * builtins.c: Add comment that no new simplifications should
2759 2015-09-30 Marek Polacek <polacek@redhat.com>
2761 PR tree-optimization/67690
2762 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
2763 reset_flow_sensitive_info_in_bb.
2764 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
2765 * tree-ssanames.c: Include "gimple-iterator.h".
2766 (reset_flow_sensitive_info_in_bb): New function.
2767 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
2769 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2771 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
2772 variable, replacing it with...
2773 (offload_abi): ... this new variable. Adjust all users.
2774 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
2776 2015-09-30 Matthias Klose <doko@ubuntu.com>
2778 * configure.ac: Remove extraneous ;;.
2779 * configure: Regenerate.
2781 2015-09-29 James Bowman <james.bowman@ftdichip.com>
2783 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
2784 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
2785 predicate, disallow register for operand 2.
2787 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
2789 * graphite-dependences.c (scop_get_dependences): Moved in down
2790 in order to be visible to its caller.
2791 * graphite-poly.h: Removed compute_deps, and extend_schedule.
2793 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2794 Aditya Kumar <aditya.k7@samsung.com>
2796 PR tree-optimization/67754
2797 * graphite-optimize-isl.c (optimize_isl): Call
2798 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
2800 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2802 * builtins.c (expand_builtin_acc_on_device): Delete.
2803 (expand_builtin): Don't call it.
2804 (fold_builtin_1): Fold acc_on_device.
2806 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
2808 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
2809 (ix86_nsaved_sseregs): Likewise.
2811 2015-09-29 Jeff Law <law@redhat.com>
2813 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
2814 computation of unused value.
2816 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
2817 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
2818 inline macro expansion.
2820 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
2822 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
2823 (gen_shl_sext): Likewise.
2824 * config/sh/sh.md (divsi3): Likewise.
2825 (imm->ext_dest_operand splitter): Likewise.
2827 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2828 Aditya Kumar <aditya.k7@samsung.com>
2830 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
2831 (nb_data_writes_in_bb): Remove.
2832 (split_pbb): Remove.
2833 (split_reduction_stmt): Remove.
2834 (is_reduction_operation_p): Remove.
2835 (phi_contains_arg): Remove.
2836 (follow_ssa_with_commutative_ops): Remove.
2837 (detect_commutative_reduction_arg): Remove.
2838 (detect_commutative_reduction_assign): Remove.
2839 (follow_inital_value_to_phi): Remove.
2840 (edge_initial_value_for_loop_phi): Remove.
2841 (initial_value_for_loop_phi): Remove.
2842 (used_outside_reduction): Remove.
2843 (detect_commutative_reduction): Remove.
2844 (translate_scalar_reduction_to_array_for_stmt): Remove.
2845 (remove_phi): Remove.
2846 (dr_indices_valid_in_loop): Remove.
2847 (close_phi_written_to_memory): Remove.
2848 (translate_scalar_reduction_to_array): Remove.
2849 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
2850 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
2851 (rewrite_commutative_reductions_out_of_ssa): Remove.
2852 (build_poly_scop): Remove call to
2853 rewrite_commutative_reductions_out_of_ssa.
2855 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
2857 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
2858 Add new insn types for vector load and store pairs.
2859 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
2860 types "neon_ldp{,_q}".
2861 * config/arm/cortex-a57.md (neon_load_c): Add insn types
2863 (neon_store_complex): Add insn types "neon_stp{,_q}".
2864 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
2867 2015-09-29 Jeff Law <law@redhat.com>
2869 * config/rx/constraints.md (Int08): Fix undefined left shift
2871 (Sint08, Sint16, Sint24): Likewise.
2872 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2874 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
2877 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
2878 left shift behaviour.
2879 * config/msp430/constraints.md ('L' constraint): Similarly.
2880 ('Ys' constraint): Similarly.
2882 2015-09-29 Richard Biener <rguenther@suse.de>
2884 PR tree-optimization/67170
2885 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
2886 the translate function pointer parameter to get the
2887 bool whether to disambiguate only by reference.
2888 (walk_non_aliased_vuses): Likewise.
2889 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2890 (get_continuation_for_phi_1): Likewise.
2891 (get_continuation_for_phi): Likewise.
2892 (walk_non_aliased_vuses): Likewise.
2893 * tree-ssa-sccvn.c (const_parms): New bitmap.
2894 (vn_reference_lookup_3): Adjust for interface change.
2895 Disambiguate parameters pointing to readonly memory.
2896 (free_scc_vn): Free const_parms.
2897 (run_scc_vn): Initialize const_parms from a fn spec attribute.
2899 2015-09-29 Richard Biener <rguenther@suse.de>
2901 PR tree-optimization/67741
2902 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
2903 builtin calls with correct signature.
2905 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
2908 * config/i386/i386.c: Include dbgcnt.h.
2909 (has_non_address_hard_reg): New.
2910 (convertible_comparison_p): New.
2911 (scalar_to_vector_candidate_p): New.
2912 (remove_non_convertible_regs): New.
2913 (scalar_chain): New.
2914 (scalar_chain::scalar_chain): New.
2915 (scalar_chain::~scalar_chain): New.
2916 (scalar_chain::add_to_queue): New.
2917 (scalar_chain::mark_dual_mode_def): New.
2918 (scalar_chain::analyze_register_chain): New.
2919 (scalar_chain::add_insn): New.
2920 (scalar_chain::build): New.
2921 (scalar_chain::compute_convert_gain): New.
2922 (scalar_chain::replace_with_subreg): New.
2923 (scalar_chain::replace_with_subreg_in_insn): New.
2924 (scalar_chain::emit_conversion_insns): New.
2925 (scalar_chain::make_vector_copies): New.
2926 (scalar_chain::convert_reg): New.
2927 (scalar_chain::convert_op): New.
2928 (scalar_chain::convert_insn): New.
2929 (scalar_chain::convert): New.
2930 (convert_scalars_to_vector): New.
2931 (pass_data_stv): New.
2933 (make_pass_stv): New.
2934 (ix86_option_override): Created and register stv pass.
2935 (flag_opts): Add -mstv.
2936 (ix86_option_override_internal): Likewise.
2937 * config/i386/i386.md (SWIM1248x): New.
2938 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
2939 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
2940 (*anddi3_doubleword): New.
2941 (*zext<mode>_doubleword): New.
2942 (*zextsi_doubleword): New.
2943 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
2944 (*<code>di3_doubleword): New.
2945 * config/i386/i386.opt (mstv): New.
2946 * dbgcnt.def (stv_conversion): New.
2948 2015-09-29 Tom de Vries <tom@codesourcery.com>
2950 * tree-cfg.c (dump_function_to_file): Dump function attributes.
2952 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2955 * config/sh/sh.c (sh_override_options_after_change): New.
2956 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2957 (sh_option_override): Move align_loops, align_jumps and
2958 align_functions handling into sh_override_options_after_change.
2960 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2962 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
2963 (nvptx_record_offload_symbol): Record function execution geometry.
2964 * config/nvptx/mkoffload.c (process): Include launch geometry in
2966 * omp-low.c (oacc_launch_pack): New.
2967 (replace_oacc_fn_attrib): New.
2968 (set_oacc_fn_attrib): New.
2969 (get_oacc_fn_attrib): New.
2970 (expand_omp_target): Create keyed varargs for GOACC_parallel call
2972 * omp-low.h (get_oacc_fn_attrib): Declare.
2973 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
2974 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2975 * tree.h (OMP_CLAUSE_EXPR): New.
2976 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
2978 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2979 Sebastian Pop <s.pop@samsung.com>
2981 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
2983 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2984 Sebastian Pop <s.pop@samsung.com>
2986 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
2987 * graphite-scop-detection.c (struct sese_l): New type.
2988 (get_entry_bb): API for getting entry bb of SESE.
2989 (get_exit_bb): API for getting exit bb of SESE.
2990 (class debug_printer): New type. Simple printer in debug mode.
2991 (trivially_empty_bb_p): New. Return true when BB is empty or
2992 contains only debug instructions.
2993 (graphite_can_represent_expr): Call scalar_evoution_in_region
2994 instead of analyze_scalar_evolution. Pass in scop instead of only
2996 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
2998 (stmt_simple_for_scop_p): Same.
2999 (harmful_stmt_in_bb): Same.
3000 (graphite_can_represent_loop): Deleted.
3001 (struct scopdet_info): Deleted.
3002 (scopdet_basic_block_info): Deleted.
3003 (build_scops_1): Deleted.
3004 (bb_in_sd_region): Deleted.
3005 (find_single_entry_edge): Deleted.
3006 (find_single_exit_edge): Deleted.
3007 (create_single_entry_edge): Deleted.
3008 (sd_region_without_exit): Deleted.
3009 (create_single_exit_edge): Deleted.
3010 (unmark_exit_edges): Deleted.
3011 (mark_exit_edges): Deleted.
3012 (create_sese_edges): Deleted.
3013 (build_graphite_scops): Deleted.
3014 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3015 (build_scops): Use the new scop_builder to build scops.
3016 (dot_all_scops_1): Use the new pretty printer. Print loop father
3018 (loop_body_is_valid_scop): New. Return true if loop body is a
3020 (class scop_builder): New. Builds SCoPs for polyhedral
3022 (scop_builder): New constructor.
3023 (static sese_l invalid_sese): sese_l with invalid edges.
3024 (get_sese): Get an sese (from a loop) if possible, invalid_sese
3026 (get_nearest_dom_with_single_entry): Get nearest dominator of a
3027 basic_block with single entry. Return NULL if we get to the
3028 beginning of a function.
3029 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3030 a basic_block with single exit. Return NULL if we get to the
3031 beginning of a function.
3032 (print_sese): Pretty-print SESE.
3033 (merge_sese): Merge two SESEs if possible and return the new SESE.
3034 (build_scop_depth): Start building the SCoP within a loop nest.
3035 (build_scop_breadth): Start building the SCoP at a single loop
3036 depth. Merge adjacent SESEs if valid.
3037 (can_represent_loop_1): Returns true if Graphite can represent
3038 loop inside SCoP. Helper for can_represent_loop.
3039 (can_represent_loop): Returns true if Graphite can represent LOOP
3040 and all its nested loops in SCoP.
3041 (loop_is_valid_scop): Returns true if LOOP and all its nests
3042 constitute a valid SCoP.
3043 (region_has_one_loop): Returns true of a region has only one loop.
3044 (add_scop): Add SCoP to the list of valid scops. Removes an
3045 already existing scop if it intersects with or subsumed by this one.
3046 (harmful_stmt_in_region): Returns true if SCoP has any statment
3047 which cannot be represented by Graphite.
3048 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3049 (remove_subscops): Remove any SCoP from the list of already found
3050 SCoPs, if subsumed by S1.
3051 (intersects): Return true if region bounded by SCoPs S1 and S2
3053 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3054 * graphite.c (print_graphite_scop_statistics):
3055 (print_graphite_statistics): Print SCoP info while debugging.
3056 (graphite_initialize): Early exit in case number of loops in a
3057 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3058 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3059 (graphite_finalize):
3060 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3061 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3062 (recompute_all_dominators): Recalculate POST_DOMINATORS.
3063 * tree-cfg.c (print_loops): Print the function name while printing
3066 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3067 Sebastian Pop <s.pop@samsung.com>
3069 PR tree-optimization/67700
3070 * graphite-sese-to-poly.c (parameter_index_in_region): Call
3071 invariant_in_sese_p_rec.
3072 (extract_affine): Same.
3073 (rewrite_cross_bb_scalar_deps): Call update_ssa.
3074 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
3075 * sese.h (invariant_in_sese_p_rec): Declare.
3077 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
3079 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3081 2015-09-28 Jiong Wang <jiong.wang@arm.com>
3084 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3085 Jiong Wang <jiong.wang@arm.com>
3087 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3088 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3089 (REG_CLASS_NAMES): Likewise.
3090 (REG_CLASS_CONTENTS): Likewise.
3091 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3092 (aarch64_register_move_cost): Likewise.
3093 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3095 * config/aarch64/constraints.md (Uc0): New constraint.
3097 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
3099 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3101 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
3103 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3104 SECTION_EXCLUDE in XO mapping class.
3106 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3109 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3110 and handle ne and eq codes.
3111 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3112 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
3113 CONST_INT_P. Use reverse_condition.
3114 (sh_split_treg_set_expr): Likewise.
3116 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
3118 * config/arm/types.md (type): Add rotate_imm.
3119 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3121 (*rorsi3_insn_uxtw): Likewise.
3122 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3123 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3124 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3126 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3128 PR rtl-optimization/67481
3129 * ifcvt.c (contains_ccmode_rtx_p): New function.
3130 (insn_valid_noce_process_p): Use it.
3132 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3134 PR rtl-optimization/67456
3135 PR rtl-optimization/67464
3136 PR rtl-optimization/67465
3137 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3138 move in the mode of x. Handle combination of complex and simple
3139 block pairs as well as the case when one is empty.
3141 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3143 * doc/gimple.texi: Update references to gimple_statement_base.
3144 * gdbhooks.py: Likewise.
3145 * gimple.h: Likewise.
3147 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3149 * config/sparc/driver-sparc.c: map LEON to leon3
3151 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3153 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3154 and make it inverse to change default
3155 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3157 * doc/invoke.texi: Document change of default
3159 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3161 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3162 true on %f0 for a target without FPU.
3163 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3165 (untyped_return): Do not load %f0 for a target without FPU.
3167 2015-09-28 Andrew Pinski <apinski@cavium.com>
3169 * config/aarch64/aarch64.md (prefetch):
3170 Change the predicate of operand 0 to register_operand.
3172 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
3174 * config/i386/predicates.md (register_sse4nonimm_operand): New
3176 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3177 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3178 Use register_sse4nonimm_operand as operand 0 predicate.
3179 (*vec_extractv8hi_sse2): Remove insn pattern.
3180 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3181 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3183 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
3184 Kaz Kojima <kkojima@gcc.gnu.org>
3187 * config/sh/sh-protos.h (sh_lra_p): Declare.
3188 * config/sh/sh.c (sh_lra_p): Make non-static.
3189 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3190 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
3191 Expand into addsi3_scr if operands[2] if needed.
3192 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
3193 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
3194 (addsi3_scr, *addsi3): New insn_and_split patterns.
3196 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
3198 PR rtl-optimization/64164
3199 PR tree-optimization/67312
3203 * cfgexpand.c (parm_in_stack_slot_p): Remove.
3204 (ssa_default_def_partition): Remove.
3205 (get_rtl_for_parm_ssa_default_def): Remove.
3206 (set_rtl): Check that RTL assignments match expectations.
3207 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
3208 default def location for params and results. Record SSA names
3209 or types in REG and MEM attrs, respectively.
3210 (set_parm_rtl): New.
3211 (expand_one_ssa_partition): Drop logic that assigned MEMs with
3212 unassigned addresses.
3213 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3214 deferred stack alloc vars.
3215 (expand_used_vars): Skip partitions holding parm default defs.
3216 Move adjust_one_expanded_partition_var loop...
3217 (pass_expand::execute): ... here. Drop redundant assert.
3218 Adjust comments before the final loop over all ssa names.
3219 Require assigned rtl of parms and results to match exactly.
3220 Reset its attributes to match them, not any other variables in
3222 (expand_debug_expr): Use entry value for PARM's default defs
3223 only iff they have zero nondebug uses.
3224 * cfgexpand.h (parm_in_stack_slot_p): Remove.
3225 (get_rtl_for_parm_ssa_default_def): Remove.
3226 (set_parm_rtl): Declare.
3227 * doc/invoke.texi: Improve wording.
3228 * explow.c (promote_decl_mode): Fix promote_function_mode for
3229 result decls not by reference.
3230 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3231 bypass TYPE_MODE to get the actual vector mode.
3232 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
3233 2015-08-19's changes as follows. Drop include of
3234 basic-block.h and df.h.
3235 (rtl_for_parm): Remove.
3236 (maybe_reset_rtl_for_parm): Remove.
3237 (parm_in_unassigned_mem_p): Remove.
3238 (use_register_for_decl): Add logic for RESULT_DECLs matching
3239 assign_parms' behavior.
3240 (split_complex_args): Revert.
3241 (assign_parms_augmented_arg_list): Revert. Add comment
3242 referencing the logic above.
3243 (assign_parm_adjust_stack_rtl): Revert.
3244 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
3245 of SET_DECL_RTL. Set up a REG if the parm demands so.
3246 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
3247 calls into a single set_parm_rtl. Set up a temporary RTL
3248 temporarily for expand_assignment.
3249 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
3250 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
3251 (assign_bounds): Revert.
3252 (assign_parms): Revert. Use set_parm_rtl.
3253 (allocate_struct_function): Relayout result and parms of
3254 non-abstruct functions.
3255 (expand_function_start): Revert. Use set_parm_rtl. If the
3256 result is not a hard reg, create a pseudo from the promoted
3257 mode of the default def. Promote static chain mode.
3258 * tree-outof-ssa.c (remove_ssa_form): Drop unused
3259 partition_has_default_def. Set up
3260 partitions_for_parm_default_defs.
3261 (finish_out_of_ssa): Remove partition_has_default_def.
3262 Release partitions_for_parm_default_defs.
3263 * tree-outof-ssa.h (struct ssaexpand): Remove
3264 partition_has_default_def. Add
3265 partitions_for_parm_default_defs.
3266 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3268 (build_ssa_conflict_graph): Fix conflict-detection of default
3269 defs of even unused default defs of params and results.
3270 (for_all_parms): New.
3271 (create_default_def): New.
3272 (register_default_def): New.
3273 (coalesce_with_default): New.
3274 (create_outofssa_var_map): Create default defs for all parms
3275 and results, and register their partitions. Add GIMPLE_RETURN
3276 operands as coalesce candidates with results. Add default
3277 defs of each parm or result as coalesce candidates with its
3278 other defs. Mark each result def, and each default def of
3279 parms, as used_in_copy.
3280 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
3281 with the ssa names, even anonymous ones. Drop
3282 parm_in_stack_slot_p calls. Require same signedness and
3284 (coalesce_ssa_name): Add coalesce candidates for all defs of
3285 each parm and result, even unused ones.
3286 (parm_default_def_partition_arg): New type.
3287 (set_parm_default_def_partition): New.
3288 (get_parm_default_def_partitions): New.
3289 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3290 * tree-ssa-live.c (partition_view_init): Regard unused defs of
3291 parms and results as used.
3292 (verify_live_on_entry): Don't error out just because they're
3295 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
3297 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3298 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3299 (output_fde): Don't output length for debug_frame on AIX.
3300 (output_call_frame_info): Don't output length for debug_frame on AIX.
3301 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3302 HAVE_XCOFF_DWARF_EXTRAS.
3303 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3304 HAVE_XCOFF_DWARF_EXTRAS.
3305 (output_compilation_unit_header): Don't output length on AIX.
3306 (output_pubnames): Don't output length on AIX.
3307 (output_aranges): Delete argument. Compute length locally. Don't
3308 output length on AIX.
3309 (output_line_info): Don't output length on AIX.
3310 (dwarf2out_finish): Don't compute aranges_length.
3311 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3312 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3313 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3314 symbol decoration for AIX.
3315 (rs6000_xcoff_debug_unwind_info): New.
3316 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3318 (rs6000_xcoff_declare_function_name): Emit different
3319 .function pseudo-op when DWARF2_DEBUG. Don't call
3320 xcoffout_declare_function for DWARF2_DEBUG.
3321 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3323 * config/rs6000/aix71.h: New.
3324 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3326 * configure: Regenerate.
3327 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3330 2015-09-26 Jeff Law <law@redhat.com>
3332 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3334 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3337 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3340 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3341 undefined behaviour.
3343 * config/cris/cris.md (asrandb): Fix left shift undefined
3345 (asrandw): Likewise.
3347 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
3350 * lra-constarints.c (match_reload): Check presence of the input pseudo
3351 in the output operand.
3353 2015-09-25 Tobias Burnus <burnus@net-b.de>
3355 * doc/invoke.texi (-fsanitize): Minor wording tweak.
3357 2015-09-25 Tobias Burnus <burnus@net-b.de>
3359 * doc/invoke.texi (-fsanitize): Update URLs.
3361 2015-09-25 Teresa Johnson <tejohnson@google.com>
3363 * opts.c (finish_options): Unset -freorder-blocks-and-partition
3364 if not using profile.
3366 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3368 PR pretty-print/67567
3369 * pretty-print.c (pp_string): Add gcc_checking_assert.
3370 * pretty-print.h (output_buffer_append_r): Likewise.
3372 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3375 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3376 addr2 individually. Don't emit logical or insn if one is known to
3377 be aligned approriately.
3378 (sh_expand_cmpnstr): Likewise.
3380 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
3382 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3383 __builtin_aarch64_fp[sc]r arguments into a register.
3385 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
3387 * config.gcc (x86_archs): Replace lakemount with lakemont.
3388 (with_cpu): Likewise.
3389 (with_arch): Likewise.
3390 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3391 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
3392 __tune_lakemount__ with __tune_lakemont__.
3393 * config/i386/i386.c (lakemount_cost): Renamed to ...
3394 (lakemont_cost): This.
3395 (m_LAKEMOUNT): Renamed to ...
3397 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3398 (processor_target_table): Replace "lakemount" with "lakemont".
3399 (processor_alias_table): Likewise.
3400 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3402 (ix86_adjust_cost): Likewise.
3403 (ia32_multipass_dfa_lookahead): Likewise.
3404 * config/i386/i386.h (processor_type): Likewise.
3405 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3406 * doc/invoke.texi: Replace lakemount with lakemont. Replace
3407 Lakemount with Lakemont.
3409 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
3411 * config.gcc (x86_archs): Replace iamcu with lakemount.
3412 (with_cpu): Likewise.
3413 (with_arch): Likewise.
3414 * doc/invoke.texi: Likewise.
3415 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3416 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
3417 __tune_iamcu__ with __tune_lakemount__.
3418 * config/i386/i386.c (iamcu_cost): Renamed to ...
3419 (lakemount_cost): This.
3420 (m_IAMCU): Renamed to ...
3421 (m_LAKEMOUNT): This.
3422 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3423 (processor_target_table): Replace "iamcu" with "lakemount".
3424 (processor_alias_table): Likewise.
3425 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3426 PROCESSOR_LAKEMOUNT.
3427 (ix86_adjust_cost): Likewise.
3428 (ia32_multipass_dfa_lookahead): Likewise.
3429 * config/i386/i386.h (processor_type): Likewise.
3430 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
3432 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
3434 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
3435 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
3437 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
3438 (pa_expand_compare_and_swap_loop): New.
3439 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
3440 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
3441 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
3442 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
3443 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
3446 2015-09-24 Michael Collison <michael.collison@linaro.org>
3449 * read-md.c (read_name): Allow mode iterators inside angle
3450 brackets in rtl expressions.
3452 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
3455 * ira-color.c (update_allocno_cost): Add parameter.
3456 (update_costs_from_allocno): Decrease conflict cost. Pass the new
3459 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3462 * opts-common.c (prune_options): Discard all -fdiagnostics-color
3463 but the last one, which is moved to the front to be processed
3465 * opts.c (enable_warning_as_error): Reject options that do not
3468 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3470 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
3472 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3474 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
3475 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
3476 (aarch64_cannot_force_const_mem): Likewise.
3477 (aarch64_classify_address): Likewise.
3478 (aarch64_classify_symbolic_expression): Likewise.
3479 (aarch64_print_operand): Likewise.
3480 (aarch64_classify_symbol): Likewise.
3481 (aarch64_mov_operand_p): Likewise.
3482 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
3483 (aarch64_mov_operand): Likewise.
3485 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
3487 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
3488 for info->spe_gp_size.
3490 2015-09-24 Richard Biener <rguenther@suse.de>
3493 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
3496 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
3498 * tree-object-size.c (plus_stmt_object_size)
3499 (cond_expr_object_size): Change the formal parameters from gimple
3501 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
3502 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
3503 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
3505 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3507 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
3508 Check for ld -type pie on Solaris 11.x and 12.
3509 * configure: Regenerate.
3510 * config.in: Regenerate.
3512 * gcc.c (LD_PIE_SPEC): Allow redefinition.
3514 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
3515 (STARTFILE_SPEC): Use it.
3516 (ENDFILE_CRTEND_SPEC): Define.
3517 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
3518 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
3519 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
3520 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
3521 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
3522 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
3523 (ENDFILE_ARCH_SPEC): Define.
3524 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
3526 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3528 * configure.ac (gcc_cv_solaris_crts): New test.
3529 * configure. Regenerate.
3530 * config.in: Regenerate.
3531 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
3532 HAVE_SOLARIS_CRTS variant.
3534 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3536 * tree-inline.h (count_insns_seq): Delete prototype.
3537 (estimate_num_insns_seq): Define prototype.
3538 * tree-inline.c (count_insns_seq): Delete.
3539 (estimate_num_insns_seq): Remove static qualifier.
3540 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
3541 with estimate_num_insns_seq.
3543 2015-09-24 Richard Biener <rguenther@suse.de>
3545 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
3547 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
3548 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
3550 (ao_ref_init_from_vn_reference): Record clique and base in the
3552 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
3554 2015-09-24 Richard Biener <rguenther@suse.de>
3556 PR tree-optimization/48885
3557 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
3558 as not including any restrict tags from other pointers.
3560 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
3562 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
3563 character when appending to offload_targets.
3565 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
3566 offload targets by commas, not colons.
3567 * config.in: Regenerate.
3568 * configure: Likewise.
3569 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
3570 instead of setting up the default offload targets here...
3571 (process_command): ..., do it here.
3573 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
3574 targets are separated by commas.
3575 * config.h.in: Regenerate.
3577 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
3578 Nathan Sidwell <nathan@codesourcery.com>
3580 * omp-low.h (omp_reduction_init_op): Declare.
3581 * omp-low.c (omp_reduction_init_op): New, broken out of ...
3582 (omp_reduction_init): ... here. Call it.
3583 * tree-parloops.c (initialize_reductions): Use
3584 omp_reduction_init_op.
3586 2015-09-23 Richard Biener <rguenther@suse.de>
3589 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
3590 undefined overflow unless they will cancel out.
3592 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
3594 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
3597 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3600 * opts.h (write_langs): Declare.
3601 * opts-global.c (write_langs): Make it extern.
3603 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
3606 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
3607 overlapping regs when matching the pattern.
3609 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
3611 * config/aarch64/aarch64-simd.md
3612 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
3613 (aarch64_float_truncate_hi_v4sf_le): New.
3614 (aarch64_float_truncate_hi_v4sf_be): Likewise.
3616 2015-09-23 Richard Biener <rguenther@suse.de>
3618 * tree-ssa-structalias.c (intra_create_variable_infos): Build
3619 representatives for all restrict qualified pointer destinations.
3621 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
3623 * config/i386/i386.md (define_code_attr mshift): New.
3624 (define_mode_iterator SWI1248_AVX512BW): Rename ...
3625 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
3627 (define_insn "*k<logic><mode>"): Use new iterator name.
3628 (define_insn "*<mshift><mode>3"): New.
3630 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
3633 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
3634 mark the block as accessible.
3636 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
3638 * function.c (thread_prologue_and_epilogue_insns): Delete
3639 orig_entry_edge argument to try_shrink_wrapping.
3640 * shrink-wrap.c (can_get_prologue): New function.
3641 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
3642 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
3643 can_get_prologue where needed. Remove code that finds a single
3644 edge for the prologue. Remove code that tests if any reg clobbered
3645 by the prologue is live on the prologue edge. Remove code that finds
3646 the new prologue edge after duplicating blocks. Make a new prologue
3648 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
3650 2015-09-22 Jeff Law <law@redhat.com>
3652 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
3655 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3657 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
3658 -Wtemplates, -Wnamespaces): Document.
3660 2015-09-22 Tom de Vries <tom@codesourcery.com>
3662 PR tree-optimization/67671
3663 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
3664 pointer references as restrict.
3666 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
3668 * config/nios2/nios2.c (nios2_legitimize_address): When handling
3669 'reg + reloc' cases, allow first operand to be non-REG, and use
3670 force_reg() to enforce address pattern.
3672 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
3675 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
3676 (define_mode_iterator VI12_AVX_AVX512F): New.
3677 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
3678 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
3679 (define_insn "*<code><mode>3"): ... Into new pattern using
3680 VI12_AVX_AVX512F iterators without masking.
3682 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3684 * config.gcc: Support "skylake-avx512".
3685 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3686 PROCESSOR_SKYLAKE_AVX512.
3687 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
3688 (processor_target_table): Add "skylake-avx512".
3689 (PTA_SKYLAKE_AVX512): Define.
3690 (ix86_option_override_internal): Add "skylake_avx512".
3691 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
3692 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
3693 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
3694 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
3695 * doc/invoke.texi (skylake-avx512): New.
3697 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3699 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
3701 (define_insn "kunpcksi"): Ditto.
3702 (define_insn "kunpckdi"): Ditto.
3704 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3706 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
3707 iterator instead of fixed modes.
3709 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3711 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3713 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
3714 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
3715 out_result. Update to support update-fetch operations.
3716 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
3717 Adjust for change to aarch64_gen_atomic_ldop.
3718 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
3719 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
3720 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
3721 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
3722 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
3724 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3726 * config/aarch64/aarch64-protos.h
3727 (aarch64_atomic_ldop_supported_p): Declare.
3728 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
3729 (enum aarch64_atomic_load_op_code): New.
3730 (aarch64_emit_atomic_load_op): New.
3731 (aarch64_gen_atomic_ldop): Update to support load-operate
3733 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
3735 (aarch64_atomic_<atomic_optab><mode>): New.
3736 (aarch64_atomic_<atomic_optab><mode>_lse): New.
3737 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
3738 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
3739 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
3741 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3743 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
3744 (UNSPECV_ATOMIC_LDOP_OR): New.
3745 (UNSPECV_ATOMIC_LDOP_BIC): New.
3746 (UNSPECV_ATOMIC_LDOP_XOR): New.
3747 (UNSPECV_ATOMIC_LDOP_PLUS): New.
3750 (aarch64_atomic_load<atomic_ldop><mode>): New.
3752 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3754 * config/aarch64/aarch64.md
3755 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
3758 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3760 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3762 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
3763 (aarch64_gen_atomic_ldop): New.
3764 (aarch64_split_atomic_op): Fix whitespace and add a comment.
3765 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
3766 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
3767 (atomic_exchange<mode>): Replace with an expander.
3768 (aarch64_atomic_exchange<mode>): New.
3769 (aarch64_atomic_exchange<mode>_lse): New.
3770 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
3771 (aarch64_atomic_swp<mode>): New.
3773 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3775 * tree-inline.c (expand_call_inline): Use inform for extra note.
3776 Do not give a note with UNKNOWN_LOCATION.
3777 Replace input_location with gimple_location (stmt).
3778 Use true/false instead of TRUE/FALSE.
3780 2015-09-22 Tom de Vries <tom@codesourcery.com>
3782 PR tree-optimization/67666
3783 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
3784 with single field non-conservative.
3786 2015-09-21 David S. Miller <davem@davemloft.net>
3790 2015-09-11 David S. Miller <davem@davemloft.net>
3792 * config/sparc/constraints.md: Make "U" constraint a real register
3794 * config/sparc/sparc.c (TARGET_LRA_P): Define.
3795 (D_MODES, DF_MODES): Add missing cast.
3796 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3797 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3798 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3800 * config/sparc/sparc.h (PROMOTE_MODE): Define.
3801 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3802 provide these insn when flag_pic.
3804 2015-09-17 David S. Miller <davem@davemloft.net>
3806 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
3808 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
3810 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3811 (HARD_REGNO_CALLER_SAVE_MODE): Define.
3812 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3813 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3814 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3815 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3816 provide when flag_pic.
3818 2015-09-21 Jeff Law <law@redhat.com>
3820 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
3823 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3825 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
3827 2015-09-21 Richard Biener <rguenther@suse.de>
3829 * passes.c (rest_of_decl_compilation): Do not call
3830 dwarf2out_early_global_decl for aliases.
3832 2015-09-21 Richard Biener <rguenther@suse.de>
3835 * dwarf2out.c (add_location_or_const_value_attribute): Remove
3836 attribute parameter. Early exit if either DW_AT_const_value
3837 or DW_AT_location are present already.
3838 (gen_variable_die): Adjust caller.
3839 (dwarf2out_late_global_decl): Likewise.
3841 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3844 * config/sh/sh.c (sh_remove_overlapping_post_inc,
3845 sh_peephole_emit_move_insn): Add new functions.
3846 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
3847 sh_peephole_emit_move_insn): Declere them.
3848 * config/sh/sh.md: Use them in various peephole2 patterns.
3850 2015-09-21 Richard Biener <rguenther@suse.de>
3853 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
3854 address with -fno-delete-null-pointer-checks.
3856 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
3858 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
3859 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
3860 (reduc_uplus_v16qi): Remove.
3862 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
3863 (reduc_<VEC_reduc_name>_v2df): Remove.
3864 (reduc_<VEC_reduc_name>_v4sf): Remove.
3865 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
3867 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
3868 gen_ function by removing * prefix.
3869 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
3871 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3874 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3875 Print i_bound without converting it to a tree.
3877 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
3879 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
3880 operands[4] operands[5] swap with std::swap, removed tmp variable.
3881 (arm_evpc_neon_vzip): Replaced in0/in1 and
3882 out0/out1 swaps with std::swap, removed x variable.
3883 (arm_evpc_neon_vtrn): Replaced in0/int1 and
3884 out0/out1 swaos with std::swap, removed x variable.
3885 (arm_expand_vec_perm_const_1): Replaced
3886 d->op0/d->op1 swap with std::swap, removed x variable.
3887 (arm_evpc_neon_vuzp): Replaced in0/in1 and
3888 out0/out1 swaps with std::swap, removed x variable.
3890 2015-09-21 Jonathan Yong <10walls@gmail.com>
3892 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3893 sysroot/usr/lib/32api for additional win32 libraries,
3894 fixes failing Cygwin bootstrapping.
3896 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3898 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
3900 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3903 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
3904 (*mov_t_msb_neg): Rewrite negc pattern.
3906 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3908 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
3909 immediate generation code.
3911 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3913 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
3914 redundant immediate generation code.
3916 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3918 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
3919 (AARCH64_NUM_BITMASKS): Remove.
3920 (aarch64_bitmasks_cmp): Remove.
3921 (aarch64_build_bitmask_table): Remove.
3923 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3925 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
3926 slow immediate matching loops with a faster algorithm.
3928 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3930 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
3933 2015-09-20 Jeff Law <law@redhat.com>
3935 PR tree-optimization/47679
3936 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
3937 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
3938 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
3939 (thread_through_normal_block): Use record_temporary_equivalences.
3941 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
3943 * coretypes.h (gimple): Change typedef to be a forward declaration.
3944 * gimple.h (gimple_statement_base): rename to gimple.
3945 * (all functions and types using gimple): Adjust.
3948 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
3949 David Edelsohn <dje.gcc@gmail.com>
3951 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
3952 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3953 (EH_FRAME_THROUGH_COLLECT2): Define.
3954 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3955 (ASM_OUTPUT_DWARF_PCREL): Define.
3956 (ASM_OUTPUT_DWARF_DATAREL): Define.
3958 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
3960 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
3963 2015-09-18 Jeff Law <law@redhat.com>
3965 PR tree-optimization/47679
3966 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
3968 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
3969 object. Update constructor.
3970 (pass_dominator::execute): Corresponding chagnes to declaration
3971 and initialization of avail_exprs_stack. Update constructor call
3972 for dom_opt_dom_walker object.
3973 (lookup_avail_expr, record_cond): Accept additional argument. Pass
3974 it down to children as needed.
3975 (record_equivalences_from_incoming_edge): Likewise.
3976 (eliminate_redundant_computations): Likewise.
3977 (record_equivalences_from_stmt): Likewise.
3978 (simplify_stmt_for_jump_threading): Likewise.
3979 (record_temporary_equivalences): Likewise.
3980 (optimize_stmt): Likewise.
3981 (dom_opt_dom_walker::thread_across_edge): Update access to
3982 avail_exprs_stack object and pass it to children as needed.
3983 (dom_opt_dom_walker::before_dom_children): Similarly.
3984 (dom_opt_dom_walker::after_dom_children): Similarly.
3985 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
3986 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
3987 Add avail_expr_stack argument. Pass it to children as needed.
3988 (dummy_simplify): Likewise.
3989 (simplify_control_stmt_condition): Likewise.
3990 (thread_around_empty_blocks): Likewise.
3991 (thread_through_normal_block): Likewise.
3992 (thread_across_edge): Likewise.
3993 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3994 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
3996 PR tree-optimization/47679
3997 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
3999 (dom_opt_dom_walker): New private member holding the const_and_copies
4000 object. Update constructor.
4001 (pass_dominator::execute): Corresponding changes to declaration
4002 and initialization of const_and_copies. Update constructor call
4003 for the dom_opt_dom_walker object.
4004 (record_temporary_equivalences): Accept const_and_copies argument
4005 pass it down to children as needed.
4006 (record_equality): Likewise.
4007 (record_equivalences_from_incoming_edge): Likewise.
4008 (cprop_into_successor_phis, optimize_stmt): Likewise.
4009 (eliminate_redundant_computations): Likewise.
4010 (dom_opt_dom_walker::thread_across_edge): Update access to
4011 const_and_copies object and pass it to children as needed.
4012 (dom_opt_dom_walker::before_dom_children): Similarly.
4013 (dom_opt_dom_walker::after_dom_children): Similarly.
4015 PR tree-optimization/47679
4016 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
4017 it into the avail_exprs_stack class.
4018 (pass_dominator::execute): Corresponding changes to declaration
4019 and initialization of avail_exprs. Pass avail_exprs to
4020 dump_dominator_optimization_stats.
4021 (record_cond): Extract avail_exprs from avail_exprs_stack.
4022 (lookup_avail_expr): Similarly.
4023 (htab_staticstics): Remove unnecessary prototype. Move to earlier
4025 (dump_dominator_optimization_stats): Make static and prototype.
4026 Add argument for the hash table to dump.
4027 (debug_dominator_optimization_stats): Remove.
4028 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4030 (debug_dominator_optimization_stats): Similarly.
4031 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4032 "void" in prototype for pop_to_marker method. Add accessor method
4033 for the underlying avail_exprs table.
4035 * tree-ssa-threadedge.c: Remove trailing whitespace.
4037 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
4039 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4041 (pa_ldil_cint_p): Likewise.
4042 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4043 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4045 * config/pa/pa.md: Likewise.
4047 2015-09-18 David Malcolm <dmalcolm@redhat.com>
4049 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4050 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4051 (diagnostic_show_locus): Likewise.
4052 (diagnostic_print_caret_line): Likewise.
4053 * diagnostic-show-locus.c: New file.
4055 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
4057 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4058 "back" parameter. Declare label in #if block.
4060 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
4063 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4064 the address to a register.
4066 2015-09-18 Jeff Law <law@redhat.com>
4068 PR tree-optimization/47679
4069 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4070 * tree-ssa-dom.c: Remove unnecessary header includes.
4071 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4072 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4073 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4074 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4075 (pass_phi_only_cprop::execute): Likewise.
4076 (make_pass_phi_only_cprop): Likewise.
4077 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
4078 uses of file scoped statics by passing the required objects
4079 as parameters wherever needed.
4081 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
4082 David Edelsohn <dje.gcc@gmail.com>
4084 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4085 EH_FRAME_THROUGH_COLLECT2.
4086 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4088 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4089 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
4090 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4091 * except.c (switch_to_exception_section): Use a read-only section
4092 even if EH_FRAME_SECTION_NAME is undefined.
4093 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4094 * collect2.c (write_c_file_stat): Provide dbase on AIX.
4095 (scan_prog_file): Don't export __dso_handle nor
4097 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4098 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4099 (ASM_OUTPUT_DWARF_PCREL): Define.
4100 (ASM_OUTPUT_DWARF_DATAREL): Define.
4101 (EH_FRAME_THROUGH_COLLECT2): Define.
4102 (EH_FRAME_IN_DATA_SECTION): Delete.
4103 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4104 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4106 (rs6000_asm_output_dwarf_datarel): Declare.
4107 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4108 (rs6000_aix_asm_output_dwarf_datarel): New.
4109 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4110 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4111 (EH_FRAME_THROUGH_COLLECT2): Define.
4112 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4113 (EH_FRAME_THROUGH_COLLECT2): Define.
4114 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4115 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4116 (EH_FRAME_THROUGH_COLLECT2): New.
4117 (ASM_OUTPUT_DWARF_DATAREL): New.
4118 * doc/tm.texi: Regenerate.
4120 2015-09-18 Richard Biener <rguenther@suse.de>
4122 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4123 we're in early phase.
4124 (schedule_generic_params_dies_gen): Likewise.
4125 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4126 work as possible, retaining unhandled cases.
4127 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4128 clear out generic_type_instances at the end.
4129 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4130 (dwarf2out_early_finish): ... here. Do most of
4131 gen_remaining_tmpl_value_param_die_attribute here.
4133 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
4135 PR tree-optimization/67283
4136 * tree-sra.c (type_consists_of_records_p): Rename to...
4137 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4138 (completely_scalarize_record): Rename to...
4139 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4140 (scalarize_elem): New.
4141 (analyze_all_variable_accesses): Follow renamings.
4143 2015-09-18 Richard Biener <rguenther@suse.de>
4145 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4148 2015-09-18 Richard Biener <rguenther@suse.de>
4150 PR tree-optimization/66142
4151 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4152 treat MEM[&x] and x the same.
4153 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4154 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4155 when we simplified sth.
4156 (vn_reference_maybe_forwprop_address): Likewise.
4157 (valueize_refs_1): When we simplified through
4158 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4159 set valueized_anything to true.
4160 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4161 one ref kills the other instead of just a offset-based test.
4162 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4163 for the operand_equal_p test to compare bases and also compare
4166 2015-09-17 Christian Bruel <christian.bruel@st.com>
4168 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4170 2015-09-17 Richard Henderson <rth@redhat.com>
4173 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4174 pointers that encode the alignment of the object.
4176 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4178 PR rtl-optimization/66790
4179 * df-problems.c (LIVE): Amend documentation.
4181 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
4183 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4185 (GTFILES): Replace optabs.c with optabs-libfunc.c.
4186 * genopinit.c (main): Add an include guard to insn-opinit.h.
4187 Protect the rtx_code parts with NUM_RTX_CODE.
4188 * optabs.h: Split parts out to...
4189 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4190 * optabs.c: Split parts out to...
4191 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4192 * cilk-common.c: Include optabs-query.h rather than optabs.h.
4193 * fold-const.c: Likewise.
4194 * target-globals.c: Likewise.
4195 * tree-if-conv.c: Likewise.
4196 * tree-ssa-forwprop.c: Likewise.
4197 * tree-ssa-loop-prefetch.c: Likewise.
4198 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4199 Remove unncessary include files.
4200 * tree-ssa-phiopt.c: Likewise.
4201 * tree-ssa-reassoc.c: Likewise.
4202 * tree-switch-conversion.c: Likewise.
4203 * tree-vect-data-refs.c: Likewise.
4204 * tree-vect-generic.c: Likewise.
4205 * tree-vect-loop.c: Likewise.
4206 * tree-vect-patterns.c: Likewise.
4207 * tree-vect-slp.c: Likewise.
4208 * tree-vect-stmts.c: Likewise.
4209 * tree-vrp.c: Likewise.
4210 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4211 rather than optabs.h.
4212 * expr.c: Include optabs-tree.h.
4213 * function.c: Likewise.
4215 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4218 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4219 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4220 * config/arm/arm.c: Include common/common-target.h.
4221 (use_return_insn): Return 0 if the static chain register was saved
4222 above a non-APCS frame.
4223 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4224 (struct scratch_reg): New.
4225 (get_scratch_register_on_entry): New function.
4226 (release_scratch_register_on_entry): Likewise.
4227 (arm_emit_probe_stack_range): Likewise.
4228 (output_probe_stack_range): Likewise.
4229 (arm_expand_prologue): Factor out code dealing with the IP register
4230 for nested function and adjust it for stack checking.
4231 Invoke arm_emit_probe_stack_range if static builtin stack checking
4233 (thumb1_expand_prologue): Sorry out if static builtin stack checking
4235 (arm_expand_epilogue): Add the saved static chain register, if any, to
4236 the amount of pre-pushed registers to pop.
4237 (arm_frame_pointer_required): Return true if static stack checking is
4238 enabled and we want to catch the exception with the EABI unwinder.
4239 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4240 (UNSPEC_PROBE_STACK_RANGE): Likewise.
4241 * config/arm/arm.md (probe_stack): New insn.
4242 (probe_stack_range): Likewise.
4244 2015-09-17 Richard Biener <rguenther@suse.de>
4246 * genmatch.c (parser::parse_expr): Improve error message
4247 for mis-placed flags.
4249 2015-09-17 Richard Biener <rguenther@suse.de>
4251 * passes.c (rest_of_decl_compilation): Always call early_global_decl
4252 debug hook when we created a varpool node.
4253 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4254 dwarf2out_early_global_decl, when not just add location or
4255 value attributes to existing DIEs.
4257 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
4259 * config/aarch64/aarch64.md (copysigndf3): New.
4260 (copysignsf3): Likewise.
4262 2015-09-17 David S. Miller <davem@davemloft.net>
4264 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4265 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4266 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4267 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4268 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4269 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4270 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4271 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4272 provide when flag_pic.
4274 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
4276 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4277 object_allocator change.
4279 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4281 PR tree-optimization/66388
4282 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4283 (dump_iv): Dump no_overflow information.
4284 (alloc_iv): Initialize new field for struct iv.
4285 (mark_bivs): Count number of no_overflow bivs.
4286 (find_deriving_biv_for_expr, record_biv_for_address_use): New
4288 (idx_find_step): Call new functions above.
4289 (add_candidate_1, add_candidate): New paramter.
4290 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4291 (get_computation_aff): Simplify convertion of cand for BIV.
4292 (get_computation_cost_at): Step cand's base if necessary.
4294 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4296 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4298 (tree_simplify_using_condition): Ditto.
4299 (simplify_using_initial_conditions): Ditto.
4300 (loop_exits_before_overflow): Pass new argument to function
4301 simplify_using_initial_conditions. Remove case for type conversions
4303 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4305 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4306 in iv base using loop initial conditions.
4308 2015-09-16 Jeff Law <law@redhat.com>
4310 PR tree-optimization/47679
4311 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4312 (free_all_edge_infos): Use it.
4313 (allocate_edge_info): Free preexisting edge info data.
4314 (pass_dominator::execute): Set up initial edge info structures.
4315 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4317 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4318 If non-null, then push/pop markers appropriately.
4319 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4320 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4323 2015-09-16 James Bowman <james.bowman@ftdichip.com>
4325 * config/ft32/ft32.c: Fix the memory address space predicate.
4327 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
4330 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4331 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4333 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4335 * toplev.h (check_global_declaration): Remove declaration.
4336 * toplev.c (check_global_declaration): Move to ...
4337 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4338 (analyze_functions): Update call.
4340 2015-09-16 David S. Miller <davem@davemloft.net>
4342 * lra-constraints.c (simplify_operand_subreg): Do not assume that
4343 lowpart of a SUBREG has offset zero.
4345 2015-09-16 Jeff Law <law@redhat.com>
4347 PR tree-optimization/47679
4348 * tree-ssa-dom.c (enum expr_kind): Moved from here to
4349 tree-ssa-scopedtables.h.
4350 (struct hashable_expr, class expr_hash_elt): Likewise.
4351 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4352 Move associated methods into tree-ssa-scopedtables.c.
4353 (avail_expr_hash, initialize_expr_from_cond): Similarly.
4354 (hashable_expr_equal_p, add_expr_commutative): Likewise.
4355 (add_hashable_expr): Likewise.
4356 (record_cond): Delete element directly.
4357 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4358 private copy ctor and assignment operator methods.
4359 (expr_elt_hasher): Inline trivial methods.
4360 (initialize_expr_from_cond): Prototype.
4361 * tree-ssa-scopedtables.c: Add necessary includes, functions and
4362 methods that were previously in tree-ssa-dom.c. Improve various
4365 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
4367 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4369 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
4372 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4375 2015-09-16 Richard Biener <rguenther@suse.de>
4378 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4379 location of possibly shared trees.
4381 2015-09-16 Richard Biener <rguenther@suse.de>
4384 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4386 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
4388 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4389 offset and size computations instead of HOST_WIDE_INT.
4391 2015-09-16 Richard Biener <rguenther@suse.de>
4394 * fold-const.c (extract_muldiv_1): Properly extend multiplication
4395 result before builting a tree via wide_int_to_tree.
4397 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
4399 * Makefile.in: Add memory-block.cc
4400 (pool_allocator::initialize): Use fixed block size.
4401 (pool_allocator::release): Use memory_block_pool.
4402 (pool_allocator::allocate): Likewise.
4403 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4405 * cfg.c (initialize_original_copy_tables): Likewise.
4406 * cselib.c (elt_list_pool, elt_loc_list_pool,
4407 cselib_val_pool): Likewise.
4408 * df-problems.c (df_chain_alloc): Likewise.
4409 * df-scan.c (df_scan_alloc): Likewise.
4410 * dse.c (cse_store_info_pool, rtx_store_info_pool,
4411 read_info_type_pool, insn_info_type_pool, bb_info_pool,
4412 group_info_pool, deferred_change_pool): Likewise.
4413 * et-forest.c (et_nodes, et_occurrences): Likewise.
4414 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4415 ipcp_agg_lattice_pool): Likewise.
4416 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4417 * ipa-profile.c (histogram_pool): Likewise.
4418 * ipa-prop.c (ipa_refdesc_pool): Likewise.
4419 * ira-build.c (live_range_pool, allocno_pool, object_pool,
4420 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4421 * ira-color.c (update_cost_record_pool): Likewise.
4422 * lra-lives.c (lra_live_range_pool): Likewise.
4423 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4424 * memory-block.cc: New file.
4425 * memory-block.h: New file.
4426 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4427 * sched-deps.c (sched_deps_init): Likewise.
4428 * sel-sched-ir.c (sched_lists_pool): Likewise.
4429 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4430 * tree-sra.c (access_pool): Likewise.
4431 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4432 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
4433 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
4434 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4435 * tree-ssa-strlen.c (strinfo_pool): Likewise.
4436 * tree-ssa-structalias.c (variable_info_pool): Likewise.
4437 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
4438 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
4440 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4442 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
4444 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
4447 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4449 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
4450 to pass TLS call argument, according to current ABI.
4451 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
4452 callx0 for TLS call, according to current ABI.
4454 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4456 * tree-eh.c (lower_try_finally_dup_block): Clear location information
4457 on stack restore statements.
4458 (decide_copy_try_finally): Do not consider a stack restore statement as
4459 coming from sources.
4461 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
4463 * config/alpha/alpha.c (alpha_expand_block_clear): Use
4464 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
4466 2015-09-15 Jeff Law <law@redhat.com>
4468 PR tree-optimization/47679
4469 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
4470 methods and private members.
4471 (avail_exprs_stack): Similarly. Change type of global
4472 from a pair of expr_hash_elt_t to the new class.
4473 (expr_elt_hasher::hash): Corresponding changes.
4474 (expr_elt_hasher::equal): Similarly.
4475 (avail_expr_hash): Similarly.
4476 (pass_dominator::execute): Similarly.
4477 (dom_opt_dom_walker::thread_across_edge): Similarly.
4478 (record_cond): Similarly.
4479 (dom_opt_dom_walker::before_dom_children): Similarly.
4480 (dom_opt_dom_walker::after_dom_children): Similarly.
4481 (lookup_avail_expr): Likewise.
4482 (initialize_hash_element): Now a expr_hash_elt constructor.
4483 (initialize_hash_element_from_expr): Similarly.
4484 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
4485 (free_expr_hash_elt): Call dtor for the element.
4486 (remove_local_expressions_from_table): Now the "pop_to_marker"
4487 method in the available_exprs_stack class.
4488 (avail_expr_stack::record_expr): Method factored out.
4489 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
4491 (hashable_expr_equal_p): Fix formatting.
4493 2015-09-15 David Malcolm <dmalcolm@redhat.com>
4495 * input.h (location_get_source_line): Drop "expanded_location"
4496 param in favor of a file and line number.
4497 * input.c (location_get_source_line): Likewise.
4498 (dump_location_info): Update for change in signature of
4499 location_get_source_line.
4500 * diagnostic.c (diagnostic_print_caret_line): Likewise.
4502 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4504 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
4505 Bump to 4KB for SJLJ exceptions.
4506 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
4507 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
4508 * doc/tm.texi: Regenerate.
4510 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4512 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
4513 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
4516 2015-09-15 Richard Biener <rguenther@suse.de>
4518 PR tree-optimization/67470
4519 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
4520 structure for PHI hoisting by inserting a forwarder block
4523 2015-09-15 Christian Bruel <christian.bruel@st.com>
4525 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
4526 (arm_option_print): New function.
4528 2015-09-15 Christian Bruel <christian.bruel@st.com>
4531 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
4532 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
4533 Remove flags parameter.
4534 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
4535 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
4536 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
4537 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
4538 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
4539 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
4540 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
4541 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
4543 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4545 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
4547 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
4548 AARCH64_VALID_SIMD_DREG_MODE.
4550 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4552 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
4553 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
4554 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
4555 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
4556 aarch64_ld4_lane<mode>): Combine together, making...
4557 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4558 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4559 aarch64_st4_lane<mode>): Combine together, making...
4560 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4561 * config/aarch64/iterators.md (nregs): Add comment.
4563 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4565 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
4566 Change operand mode from <V_TWO_ELEM> to BLK.
4567 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
4568 (aarch64_vec_store_lanesoi_lane<mode): Likewise
4569 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4570 (aarch64_ld2_lane<mode>): Likewise.
4571 (aarch64_st2_lane<VQ:mode>): Likewise.
4572 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
4574 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4576 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
4577 Change operand mode from <V_FOUR_ELEM> to BLK.
4578 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
4579 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
4580 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4581 (aarch64_ld4_lane<mode>): Likewise.
4582 (aarch64_st4_lane<mode>): Likewise.
4583 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
4585 2015-09-15 Richard Biener <rguenther@suse.de>
4588 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4589 transfer EH info from old to new stmt.
4590 (replace_call_with_value): Likewise.
4591 (replace_call_with_call_and_fold): Likewise.
4592 (gimple_fold_builtin_memory_op): Likewise.
4593 (gimple_fold_builtin_memset): Likewise.
4594 (gimple_fold_builtin_stpcpy): Likewise.
4595 (gimple_fold_call): Likewise.
4597 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4599 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
4601 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
4602 (aarch64_simd_intEI_type_node): Likewise.
4603 (aarch64_simd_builtin_std_type): Remove EImode case.
4604 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
4605 * config/aarch64/aarch64-modes.def: Remove EImode.
4607 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4609 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
4610 Change operand mode from <V_THREE_ELEM> to BLK.
4611 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
4612 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
4613 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4614 (aarch64_ld3_lane<mode>): Likewise.
4615 (aarch64_st3_lane<mode>): Likewise.
4616 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
4618 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4620 * config/aarch64/aarch64-simd.md
4621 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
4622 Change all TImode operands to BLKmode.
4623 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
4624 Change all EImode operands to BLKmode.
4625 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
4626 Change all OImode operands to BLKmode.
4628 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
4629 and call set_mem_size.
4630 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
4632 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
4634 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4636 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
4638 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
4640 (vec_store_lanesci_lane<mode>): Rename to...
4641 (aarch64_vec_store_lanesci_lane<mode>): ...this.
4643 (vec_store_lanesxi_lane<mode>): Rename to...
4644 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
4646 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4647 aarch64_st4_lane<mode>): Follow renaming.
4649 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4651 * config/s390/s390.c (s390_const_operand_ok): Add missing
4654 2015-09-15 Richard Biener <rguenther@suse.de>
4657 * lto-streamer.h (lto_location_cache::current_sysp): Properly
4659 * lto-streamer-out.c (clear_line_info): Likewise.
4661 2015-09-15 Richard Biener <rguenther@suse.de>
4663 * doc/match-and-simplify.texi: Fix wording.
4665 2015-09-15 Bin Cheng <bin.cheng@arm.com>
4667 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
4668 unnecessary type conversion in op1.
4670 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4672 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
4673 (dup_block_and_redirect): Delete function.
4674 (can_dup_for_shrink_wrapping): New function.
4675 (fix_fake_fallthrough_edge): New function.
4676 (try_shrink_wrapping): Rewrite function.
4677 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
4679 2015-09-14 Rich Felker <dalias@libc.org>
4681 * configure.ac: Change target pattern for sh TLS support
4682 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
4683 * configure: Regenerate.
4685 2015-09-14 Jeff Law <law@redhat.com>
4687 PR tree-optimization/47679
4688 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
4689 type rather than void *.
4691 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4694 * diagnostic.c (diagnostic_initialize): Do not set
4695 some_warnings_are_errors.
4696 (diagnostic_finish): Use DK_WERROR count instead.
4697 (diagnostic_report_diagnostic): Do not set
4698 some_warnings_are_errors.
4699 * diagnostic.h (struct diagnostic_context): Remove
4700 some_warnings_are_errors.
4702 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
4704 * config/sparc/predicates.md (const_all_ones_operand): Use
4705 CONSTM1_RTX to simplify definition.
4707 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
4710 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
4713 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
4715 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
4716 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
4717 OPT_fshow_column to handled saved option cases.
4718 (append_compiler_options): Do not skip the above added options.
4720 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4723 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
4724 nopcrelative_literal_loads.
4725 (aarch64_classify_address): Likewise.
4726 (aarch64_constant_pool_reload_icode): Define.
4727 (aarch64_secondary_reload): Handle secondary reloads for
4729 (aarch64_override_options): Handle nopcrelative_literal_loads.
4730 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
4731 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4733 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4734 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
4735 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
4737 * doc/invoke.texi (mpc-relative-literal-loads): Document.
4739 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
4742 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
4743 sync_compare_and_swap_optab libcall to target_oval.
4745 2015-09-14 Marek Polacek <polacek@redhat.com>
4747 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
4749 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
4751 2015-09-11 Mark Wielaard <mjw@redhat.com>
4754 * toplev.c (check_global_declaration): Check and use
4755 warn_unused_const_variable.
4756 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
4757 (-Wunused-variable): Remove non-constant. For C implies
4758 -Wunused-const-variable.
4759 (-Wunused-const-variable): New.
4761 2015-09-14 Richard Biener <rguenther@suse.de>
4763 * doc/match-and-simplify.texi: Update for changed syntax
4764 of inner ifs and the new switch expression.
4766 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4768 * config/i386/haswell.md: New file describing Haswell pipeline.
4769 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
4770 haswell-like processors.
4771 (ix86_reassociation_width): Increase reassociation width for 64-bit
4772 Haswell processor family.
4773 * config/i386/i386.md: Introduce haswell cpu and include new md file.
4775 2015-09-14 Richard Biener <rguenther@suse.de>
4777 * doc/match-and-simplify.texi: Fixup some formatting issues
4778 and document the 's' flag.
4780 2015-09-13 Olivier Hainque <hainque@adacore.com>
4781 Eric Botcazou <ebotcazou@adacore.com>
4783 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
4784 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
4785 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
4786 (TARGET_CPU_gr5): Likewise.
4787 (TARGET_CPU_gr6): Likewise.
4788 (MULTILIB_DEFAULTS): Likewise.
4789 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
4790 for mcpu=gr5 and mcpu=gr6.
4791 (MULTILIB_DIRNAMES): Adjust accordingly.
4793 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4795 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
4796 (mem_ref_p): Likewise.
4797 (outermost_indep_loop): Adjust.
4798 (mem_ref_in_stmt): Likewise.
4799 (determine_max_movement): Likewise.
4800 (mem_ref_alloc): Likewise.
4801 (record_mem_ref_loc): Likewise.
4802 (set_ref_stored_in_loop): Likewise.
4803 (mark_ref_stored): Likewise.
4804 (gather_mem_refs_stmt): Likewise.
4805 (mem_refs_may_alias_p): Likewise.
4806 (for_all_locs_in_loop): Likewise.
4807 (struct rewrite_mem_ref_loc): Likewise.
4808 (rewrite_mem_refs): Likewise.
4809 (struct first_mem_ref_loc_1): Likewise.
4810 (first_mem_ref_loc): Likewise.
4811 (struct sm_set_flag_if_changed): Likewise.
4812 (execute_sm_if_changed_flag_set): Likewise.
4813 (execute_sm): Likewise.
4814 (hoist_memory_references):
4815 (struct ref_always_accessed): Likewise.
4816 (ref_always_accessed_p): Likewise.
4817 (refs_independent_p): Likewise.
4818 (record_dep_loop): Likewise.
4819 (ref_indep_loop_p_1): Likewise.
4820 (ref_indep_loop_p_2): Likewise.
4821 (ref_indep_loop_p): Likewise.
4822 (can_sm_ref_p): Likewise.
4823 (find_refs_for_sm): Likewise.
4824 (tree_ssa_lim_finalize): Likewise.
4826 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4828 * dwarf2out.c (dw_attr_ref): Remove typedef.
4829 (dw_line_info_ref): Likewise.
4830 (pubname_ref): Likewise.
4831 (dw_ranges_ref): Likewise.
4832 (dw_ranges_by_label_ref): Likewise.
4833 (comdat_type_node_ref): Likewise.
4835 (get_AT_low_pc): Likewise.
4836 (get_AT_hi_pc): Likewise.
4837 (get_AT_string): Likewise.
4838 (get_AT_flag): Likewise.
4839 (get_AT_unsigned): Likewise.
4840 (get_AT_ref): Likewise.
4841 (get_AT_file): Likewise.
4842 (remove_AT): Likewise.
4843 (print_die): Likewise.
4844 (check_die): Likewise.
4845 (die_checksum): Likewise.
4846 (attr_checksum_ordered): Likewise.
4847 (struct checksum_attributes): Likewise.
4848 (collect_checksum_attributes): Likewise.
4849 (die_checksum_ordered): Likewise.
4850 (same_die_p): Likewise.
4851 (is_declaration_die): Likewise.
4852 (clone_die): Likewise.
4853 (clone_as_declaration): Likewise.
4854 (copy_declaration_context): Likewise.
4855 (break_out_comdat_types): Likewise.
4856 (copy_decls_walk): Likewise.
4857 (output_location_lists): Likewise.
4858 (external_ref_hasher::hash): Likewise.
4859 (optimize_external_refs_1): Likewise.
4860 (build_abbrev_table): Likewise.
4861 (size_of_die): Likewise.
4862 (unmark_all_dies): Likewise.
4863 (size_of_pubnames): Likewise.
4864 (output_die_abbrevs): Likewise.
4865 (output_die): Likewise.
4866 (output_pubnames): Likewise.
4867 (add_ranges_num): Likewise.
4868 (add_ranges_by_labels): Likewise.
4869 (add_high_low_attributes): Likewise.
4870 (gen_producer_string): Likewise.
4871 (dwarf2out_set_name): Likewise.
4872 (new_line_info_table): Likewise.
4873 (prune_unused_types_walk_attribs): Likewise.
4874 (prune_unused_types_update_strings): Likewise.
4875 (prune_unused_types): Likewise.
4876 (resolve_addr): Likewise.
4877 (optimize_location_lists_1): Likewise.
4878 (index_location_lists): Likewise.
4879 (dwarf2out_finish): Likewise.
4881 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4883 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
4885 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4887 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
4888 (dump_asserts_for): Adjust.
4889 (register_new_assert_for): Likewise.
4890 (process_assert_insertions): Likewise.
4891 (insert_range_assertions): Likewise.
4893 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4895 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
4897 (new_temp_expr_table): Adjust.
4898 (free_temp_expr_table): Likewise.
4899 (version_to_be_replaced_p): Likewise.
4900 (make_dependent_on_partition): Likewise.
4901 (add_to_partition_kill_list): Likewise.
4902 (remove_from_partition_kill_list): Likewise.
4903 (add_dependence): Likewise.
4904 (finished_with_expr): Likewise.
4905 (process_replaceable): Likewise.
4906 (kill_expr): Likewise.
4907 (kill_virtual_exprs): Likewise.
4908 (mark_replaceable): Likewise.
4909 (find_replaceable_in_bb): Likewise.
4910 (find_replaceable_exprs): Likewise.
4911 (debug_ter): Likewise.
4913 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4915 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
4916 (struct btr_user): Rename from btr_user_s.
4917 (struct btr_def): Rename from btr_def_s.
4918 (find_btr_def_group): Adjust.
4919 (add_btr_def): Likewise.
4920 (new_btr_user): Likewise.
4921 (note_other_use_this_block): Likewise.
4922 (compute_defs_uses_and_gen): Likewise.
4923 (link_btr_uses): Likewise.
4924 (build_btr_def_use_webs): Likewise.
4925 (block_at_edge_of_live_range_p): Likewise.
4926 (btr_def_live_range): Likewise.
4927 (combine_btr_defs): Likewise.
4928 (move_btr_def): Likewise.
4929 (migrate_btr_def): Likewise.
4930 (migrate_btr_defs): Likewise.
4932 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4934 * var-tracking.c (shared_hash_def): Rename to shared_hash.
4935 (shared_hash): Remove typedef.
4936 (struct dataflow_set): Adjust.
4937 (shared_hash_unshare): Likewise.
4938 (dataflow_set_merge): Likewise.
4939 (vt_initialize): Likewise.
4940 (vt_finalize): Likewise.
4942 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4944 * var-tracking.c (struct location_chain): Rename from
4946 (struct variable_part): Adjust.
4947 (variable_htab_free): Likewise.
4948 (unshare_variable): Likewise.
4949 (get_init_value): Likewise.
4950 (get_addr_from_local_cache): Likewise.
4951 (drop_overlapping_mem_locs): Likewise.
4952 (val_reset): Likewise.
4953 (struct variable_union_info): Likewise.
4954 (variable_union): Likewise.
4955 (find_loc_in_1pdv): Likewise.
4956 (insert_into_intersection): Likewise.
4957 (intersect_loc_chains): Likewise.
4958 (canonicalize_loc_order_check): Likewise.
4959 (canonicalize_values_mark): Likewise.
4960 (canonicalize_values_star): Likewise.
4961 (canonicalize_vars_star): Likewise.
4962 (variable_merge_over_cur): Likewise.
4963 (remove_duplicate_values): Likewise.
4964 (variable_post_merge_new_vals): Likewise.
4965 (variable_post_merge_perm_vals): Likewise.
4966 (find_mem_expr_in_1pdv): Likewise.
4967 (dataflow_set_preserve_mem_locs): Likewise.
4968 (dataflow_set_remove_mem_locs): Likewise.
4969 (variable_part_different_p): Likewise.
4970 (onepart_variable_different_p): Likewise.
4971 (find_src_set_src): Likewise.
4972 (dump_var): Likewise.
4973 (set_slot_part): Likewise.
4974 (clobber_slot_part): Likewise.
4975 (delete_slot_part): Likewise.
4976 (vt_expand_var_loc_chain): Likewise.
4977 (emit_note_insn_var_location): Likewise.
4978 (vt_finalize): Likewise.
4980 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4982 * dse.c (store_info_t): Remove typedef.
4983 (group_info_t): Likewise.
4984 (const_group_info_t): Likewise.
4985 (deferred_change_t): Likewise.
4986 (get_group_info): Adjust.
4987 (free_store_info): Likewise.
4988 (canon_address): Likewise.
4989 (clear_rhs_from_active_local_stores): Likewise.
4990 (record_store): Likewise.
4991 (replace_read): Likewise.
4992 (check_mem_read_rtx): Likewise.
4993 (scan_insn): Likewise.
4994 (remove_useless_values): Likewise.
4995 (dse_step1): Likewise.
4996 (dse_step2_init): Likewise.
4997 (dse_step2_nospill): Likewise.
4998 (scan_stores_nospill): Likewise.
4999 (scan_reads_nospill): Likewise.
5000 (dse_step3_exit_block_scan): Likewise.
5001 (dse_step3): Likewise.
5002 (dse_step5_nospill): Likewise.
5003 (dse_step6): Likewise.
5005 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5007 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5008 (alias_set_entry): Remove typedef.
5009 (alias_set_subset_of): Adjust.
5010 (alias_sets_conflict_p): Likewise.
5011 (init_alias_set_entry): Likewise.
5012 (get_alias_set): Likewise.
5013 (new_alias_set): Likewise.
5014 (record_alias_subset): Likewise.
5016 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
5018 * doc/install.texi (Downloading the source): Mark up
5019 contrib/download_prerequisites properly and drop leading "./".
5021 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5023 * config/arc/arc.h: Remove define of STRUCT_VALUE.
5024 * config/lm32/lm32.h: Likewise.
5025 * config/mep/mep.h: Likewise.
5026 * config/visium/visium.h: Likewise.
5027 * system.h: Poison STRUCT_VALUE macro.
5029 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
5031 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5032 CONSTANT_P operands.
5034 2015-09-11 David S. Miller <davem@davemloft.net>
5036 * config/sparc/constraints.md: Make "U" constraint a real register
5038 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5039 (D_MODES, DF_MODES): Add missing cast.
5040 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5041 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5042 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5044 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5045 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5046 provide these insn when flag_pic.
5048 2015-09-11 Jeff Law <law@redhat.com>
5050 PR tree-optimization/47679
5051 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5052 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5053 member with m_. Update inline member functions as necessary. Add
5055 * tree-ssa-scopedtables.c: Update const_and_copies's member
5056 functions to use m_ prefix to access the stack.
5058 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5060 * graphite-optimize-isl.c (disable_tiling): Remove.
5061 (get_schedule_for_band): Do not use disable_tiling.
5062 (get_prevector_map): Delete function.
5063 (enable_polly_vector): Remove.
5064 (get_schedule_for_band_list): Remove dead code.
5066 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5068 * graphite-optimize-isl.c (get_tile_map): Refactor.
5069 (get_schedule_for_band): Same.
5070 (getScheduleForBand): Same.
5071 (get_prevector_map): Same.
5072 (get_schedule_for_band_list): Same.
5073 (get_schedule_map): Same.
5074 (get_single_map): Same.
5075 (apply_schedule_map_to_scop): Same.
5076 (optimize_isl): Same.
5078 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5081 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5083 * config/aarch64/iterators.md (GPF_TF_F16): New.
5086 2015-09-10 Nathan Sidwell <nathan@acm.org>
5088 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5089 (nvptx_reorg): Adjust comments.
5091 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
5094 * configure.ac: Check if setenv and unsetenv are declared.
5095 * configure: Rebuild.
5096 * config.in: Rebuild.
5097 * system.h: Declare setenv and unsetenv if not declared.
5099 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5101 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5102 commentary to simplify permute mask adjustment equation.
5103 (special_handling_values): Add SH_VPERM.
5104 (const_load_sequence_p): New function.
5105 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5106 the mask loaded from the constant pool.
5107 (adjust_vperm): New function.
5108 (handle_special_swappables): Call adjust_vperm.
5109 (dump_swap_insn_table): Handle SH_VPERM.
5111 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
5113 * shrink-wrap.c (requires_stack_frame_p): Remove static.
5114 * shrink-wrap.h (requires_stack_frame_p): Put back.
5116 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
5118 * reload1.c (elimination_costs_in_insn): Locally turn
5119 -Wmaybe-uninitialized into a warning.
5121 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
5123 * shrink-wrap.c (requires_stack_frame_p): Make static.
5124 (prepare_shrink_wrap): Likewise.
5125 (dup_block_and_redirect): Likewise.
5126 * shrink-wrap.h: Remove declarations of those functions.
5128 2015-09-10 Mark Wielaard <mjw@redhat.com>
5130 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5132 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
5135 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5136 missing simplify_gen_subreg.
5138 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5140 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5141 the vector element is bigger than 64 bit.
5143 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5145 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5146 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5148 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5150 * config/s390/s390.c: Add V1TImode to constant pool modes.
5152 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5155 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5156 predicate. Set predicable_short_it attr to "no".
5158 2015-09-10 Jiong Wang <jiong.wang@arm.com>
5160 PR rtl-optimization/67421
5161 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5162 left wide shift tranformation.
5164 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5166 * common/config/arc/arc-common.c: Remove references to A5.
5167 * config/arc/arc-opts.h: Likewise.
5168 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5169 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5170 * config/arc/t-arc-newlib: Likewise.
5172 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5174 * config/arc/arc.md (length): Fix attribute length for conditional
5175 executed instructions with long immediate.
5177 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5179 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5180 type for second alternative.
5182 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
5184 * doc/invoke.texi (Downloading GCC): Mention
5185 contrib/download_prerequisites script.
5187 2015-09-10 Jakub Jelinek <jakub@redhat.com>
5190 * gimplify.c (gimplify_omp_for): If inner stmt is not found
5191 for combined loop, assert seen_error () and return GS_ERROR.
5194 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5195 if decl is already in outer->variables.
5198 * gimplify.c (gimplify_scan_omp_clauses): Instead of
5199 asserting that decl is not specified in octx->variables,
5200 break out of the loop if it is.
5203 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5204 iterator is not explicitly determined, but is defined inside
5205 of the combined workshare region, handle it like if it has
5206 DECL_EXPR in OMP_FOR_PRE_BODY.
5208 2015-09-09 Nathan Sidwell <nathan@acm.org>
5210 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5211 (*cmp<mode>): Add assembler spacing.
5212 (setcc_int<mode>, set_cc_float<mode>): Likewise.
5213 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5215 (write_func_decl_from_insn): Refactor argument loops & comma emission.
5216 (nvptx_expand_call): Likewise.
5217 (nvptx_output_call_insn): Likewise.
5218 (nvptx_reorg_subreg): Add spacing.
5220 2015-09-09 Marek Polacek <polacek@redhat.com>
5223 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5226 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5229 * doc/invoke.texi ([Wsubobject-linkage]): Document.
5231 2015-09-09 Tom de Vries <tom@codesourcery.com>
5233 * params-list.h: Add missing copyright notice.
5235 2015-09-09 Nathan Sidwell <nathan@acm.org>
5237 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5238 sel_truesi, not andsi.
5240 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5242 * config/arm/arm.md (*subsi3_compare0): Rename to...
5243 (subsi3_compare0): ... This.
5244 (modsi3): New define_expand.
5245 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5246 when operand is power of 2.
5248 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5250 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5251 (*neg<mode>2_compare0): Rename to...
5252 (neg<mode>2_compare0): ... This.
5253 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5254 Move check for speed inside the if-then-elses. Reflect
5255 CSNEG sequence in MOD by power of 2 case.
5257 2015-09-09 Alan Modra <amodra@gmail.com>
5260 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5261 reload replacement for PRE_MODIFY address reg.
5263 2015-09-09 Sebastian Pop <s.pop@samsung.com>
5265 PR tree-optimization/53852
5266 * config.in: Regenerate.
5267 * configure: Regenerate.
5268 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5269 * graphite-optimize-isl.c (optimize_isl): Stop computation when
5270 PARAM_MAX_ISL_OPERATIONS is reached.
5271 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5272 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5273 result equal to isl_stat_ok as the status now can be isl_error_quota.
5274 (subtract_commutative_associative_deps): Same.
5275 (compute_deps): Same.
5277 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5278 Sebastian Pop <s.pop@samsung.com>
5280 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5281 Return the parameter if it was saved in corresponding
5282 parameter_rename_map of the region.
5283 (copy_def): Copy def from sese region to the newly created region.
5284 (copy_internal_parameters): Copy all the internal parameters defined
5285 within a region to the newly created region.
5286 (graphite_regenerate_ast_isl): Copy parameters to the new region before
5287 translating isl to gimple.
5288 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5289 the loop-nest does not have any data-references.
5290 (build_graphite_scops): Create a scop only when there is at least one
5292 (contains_only_close_phi_nodes): Deleted.
5293 (print_graphite_scop_statistics): Deleted
5294 (print_graphite_statistics): Deleted
5295 (limit_scops): Deleted.
5296 (build_scops): Removed call to limit_scops.
5297 * sese.c (new_sese): Construct.
5298 (free_sese): Destruct.
5299 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5301 (set_rename): Pass sese region so that parameters inside the region can
5302 be added to its parameter_rename_map.
5303 (rename_uses): Pass sese region.
5304 (graphite_copy_stmts_from_block): Do not copy parameters that have been
5305 generated in the header of the scop. For each SSA_NAME in the
5306 parameter_rename_map rename its usage.
5307 (invariant_in_sese_p_rec): Return false if tree t is defined outside
5309 (scalar_evolution_in_region): If the tree t is invariant just return t.
5310 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5311 struct sese to keep track of all the parameters which need renaming.
5312 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5314 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5316 2015-09-08 Tom de Vries <tom@codesourcery.com>
5318 * Makefile.in (generated_files): Add params.list.
5319 (params.list, s-params.list): Add rule.
5320 * params.h (enum compiler_param): Include params-list.h. Move define
5321 DEFPARAM, include params.def and undef DEFPARAM ...
5322 * params-list.h: ... here. New file.
5324 2015-09-08 David Malcolm <dmalcolm@redhat.com>
5326 * pretty-print.h (printer_fn): Fix typo in comment.
5328 2015-09-07 Jeff Law <law@redhat.com>
5330 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5332 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5334 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5335 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5336 (arm_neon_fp16_hw): New.
5338 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5340 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5341 UNITS_PER_WORD >= 4.
5343 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5345 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5346 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5347 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5348 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5349 (aarch64_float_extend_lo_v2df): Rename to...
5350 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5352 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5353 (float_extend_lo): Add v4sf.
5355 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5356 * config/aarch64/iterators.md (VQ_HSF): New iterator.
5357 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5358 (Vwide): New mode_attr.
5360 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5362 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5363 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5364 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5365 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5366 V4HF and V8HF variants to iterator.
5368 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5370 * config/aarch64/iterators.md (VDQF_F16): New.
5371 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5373 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5375 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5376 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5377 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5378 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5379 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5380 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5381 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5382 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5383 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5384 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5385 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5386 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5387 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5388 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5389 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5390 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5391 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5392 vld1q_dup_f16): New.
5394 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5396 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5397 Reparameterize to...
5398 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5399 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5400 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5402 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5404 (float_truncate_lo_): Use BUILTIN_VDF iterator.
5406 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5408 * config/aarch64/iterators.md (VDF, Vdtype): New.
5409 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5411 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5413 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5414 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5415 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5416 Add __builtin_aarch64_simd_hf.
5417 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5418 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5419 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5420 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5421 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5422 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5423 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5424 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5425 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5427 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5428 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5429 (VDC, Vdbl): Add V4HF.
5431 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5433 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
5434 V4HFmode and V8HFmode.
5435 (aarch64_split_simd_move): Add case for V8HFmode.
5436 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
5437 (aarch64_simd_builtin_std_type): Handle HFmode.
5438 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
5440 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
5441 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
5442 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
5444 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
5447 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
5448 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
5450 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
5451 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
5452 vst1q_lane_f16): New.
5453 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
5454 (VALLDI_F16, VALL_F16): New.
5455 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
5456 Add cases for V4HF and V8HF.
5457 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
5459 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5461 * config/arm/arm-builtins.c (VAR11, VAR12): New.
5462 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
5463 vld4_dup): Add v4hf variant.
5464 (vget_high, vget_low): Add v8hf variant.
5465 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
5466 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
5467 v4hf and v8hf variants.
5469 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
5471 (V_DOUBLE): Add case for V4HF.
5473 (V_HALF): Add case for V8HF.
5474 (VDQX): Add V4HF, V8HF.
5475 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
5476 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
5478 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
5479 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
5480 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
5481 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
5482 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
5483 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
5484 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
5485 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
5486 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
5488 (neon_vcreate, neon_vreinterpretv8qi<mode>,
5489 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5490 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
5491 Change VDX to VD_RE.
5493 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
5494 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
5495 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
5497 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
5498 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
5499 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
5500 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
5501 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
5502 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
5503 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
5504 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
5505 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
5507 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5509 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
5510 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
5511 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
5512 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
5513 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5514 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
5515 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
5516 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
5517 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
5518 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
5521 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5523 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
5525 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
5527 * config/arm/arm-builtins.c (v8hf_UP): New.
5528 (arm_init_simd_builtin_types): Initialise Float16x8_t.
5530 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
5532 * config/arm/arm_neon.h (float16x8_t): New typedef.
5534 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5536 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
5537 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
5538 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
5539 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
5540 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5541 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
5542 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
5543 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
5544 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5545 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
5547 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
5549 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
5550 non-alphanumeric characters in the symbol name.
5552 2015-09-07 Marek Polacek <polacek@redhat.com>
5555 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
5558 2015-09-07 Marek Polacek <polacek@redhat.com>
5560 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
5562 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
5564 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
5567 2015-09-04 Jakub Jelinek <jakub@redhat.com>
5570 * tree-ssa-live.c: Include cfgloop.h.
5571 (remove_unused_locals): Clear loop->simduid if simduid is about
5572 to be removed from cfun->local_decls.
5574 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5577 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
5580 2015-09-04 Tom de Vries <tom@codesourcery.com>
5582 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
5584 2015-09-04 Jeff Law <law@redhat.com>
5586 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
5587 unnecessary constructor. It's now trivial and implemented inside...
5588 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
5589 constructor. Add comments to various methods. Remove unused
5591 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
5592 * tree-vrp.c (identify_jump_threads): Likewise.
5593 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
5595 (thread_across_edge): Similarly.
5596 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
5597 arguments in constructor call.
5599 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5601 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
5602 temp path contains a '-'.
5604 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
5605 Petr Murzin <petr.murzin@intel.com>
5606 Kirill Yukhin <kirill.yukhin@intel.com>
5608 * config/i386/i386-builtin-types.def
5609 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
5610 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
5611 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
5612 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
5613 * config/i386/i386.c
5614 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
5615 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5616 IX86_BUILTIN_SCATTERALTDIV16SI.
5617 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
5618 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
5619 __builtin_ia32_scatteraltdiv8si.
5620 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
5621 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5622 IX86_BUILTIN_SCATTERALTDIV16SI.
5623 (ix86_vectorize_builtin_scatter): New.
5624 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
5625 ix86_vectorize_builtin_scatter.
5627 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
5628 Petr Murzin <petr.murzin@intel.com>
5629 Kirill Yukhin <kirill.yukhin@intel.com>
5631 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
5632 * doc/tm.texi: Regenerate.
5633 * target.def: Add scatter builtin.
5634 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
5635 for loads/stores in case of gather/scatter accordingly.
5636 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5637 STMT_VINFO_GATHER_P(S).
5638 (vect_check_gather): Rename to ...
5639 (vect_check_gather_scatter): this.
5640 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
5641 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
5642 (vect_check_gather_scatter): Use it instead of vect_check_gather.
5643 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
5644 variable and new checkings for it accordingly.
5646 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5647 STMT_VINFO_GATHER_P(S).
5648 (vect_check_gather_scatter): Use it instead of vect_check_gather.
5649 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
5651 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5653 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
5655 (mulv16qi3): New define_expand.
5657 2015-09-03 Martin Sebor <msebor@redhat.com>
5660 * doc/extend.texi (Other Builtins): Document when the address
5661 of a built-in function can be taken.
5663 2015-09-03 Richard Biener <rguenther@suse.de>
5665 * dwarf2out.c (flush_limbo_die_list): Split out from ...
5666 (dwarf2out_early_finish): ... here.
5667 (dwarf2out_finish): Do not call dwarf2out_early_finish but
5668 flush_limbo_die_list. Assert we have no deferred asm names.
5670 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5672 * optabs.c (expand_binop): Don't create a broadcast vector with a
5673 source element wider than the inner mode.
5675 2015-09-03 Richard Biener <rguenther@suse.de>
5677 * varasm.c (output_constant): Use fold_convert instead of
5680 2015-09-03 Tom de Vries <tom@codesourcery.com>
5682 PR tree-optimization/65637
5683 * omp-low.c (expand_omp_for_static_chunk): Handle case that
5684 fin_bb has 2 predecessors.
5686 2015-09-03 Tom de Vries <tom@codesourcery.com>
5688 PR tree-optimization/65637
5689 * omp-low.c (find_phi_with_arg_on_edge): New function.
5690 (expand_omp_for_static_chunk): Fix inner loop phi.
5692 2015-09-03 Tom de Vries <tom@codesourcery.com>
5694 PR tree-optimization/65637
5695 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
5698 2015-09-03 Tom de Vries <tom@codesourcery.com>
5700 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
5702 2015-09-03 Tom de Vries <tom@codesourcery.com>
5704 * doc/invoke.texi (parloops-chunk-size): Add item.
5705 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
5706 * tree-parloops.c: Include params.h.
5707 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
5708 param parloops-chunk-size is used.
5710 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5713 * fold-const.c (fold_binary_loc) : Move
5714 Transform (x >> c) << c into x & (-1<<c) or
5715 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
5716 types using simplify and match.
5717 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
5718 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
5720 2015-09-03 Richard Biener <rguenther@suse.de>
5723 * tree-ssa-structalias.c (ctor_for_analysis): New function.
5724 (create_variable_info_for_1): Use ctor_for_analysis instead
5726 (create_variable_info_for): Likewise.
5728 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
5731 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
5732 in new callgraph edge.
5734 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
5739 * config/aarch64/aarch64-simd.md
5740 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
5741 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
5742 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
5743 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
5745 2015-09-02 Alan Modra <amodra@gmail.com>
5747 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
5748 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
5749 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
5751 2015-09-02 Alan Modra <amodra@gmail.com>
5754 * config/rs6000/predicates.md (current_file_function_operand): Don't
5755 return true for weak symbols.
5756 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
5758 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
5759 Andrew Bennett <andrew.bennett@imgtec.com>
5761 * config/mips/mips-opts.h (mips_cb_setting): New enum.
5762 * config/mips/mips-protos.h: Add definitions for
5763 mips_output_jump and mips_output_equal_conditional_branch
5764 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
5766 (mips_emit_compare): Add support for the MIPS R6 conditional
5768 (mips_process_sync_loop): Likewise.
5769 (mips_output_order_conditional_branch): Likewise.
5770 (mips16_build_call_stub): Change MIPS_CALL to
5772 (mips_print_operand_punctuation): Update 's' case to only
5773 apply to micromips r2.
5774 (mips_adjust_insn_length): Add support for forbidden slot
5776 (mips_avoid_hazard): Likewise.
5777 (mips_reorg_process_insns): Likewise.
5778 (mips_output_jump): New function.
5779 (mips_output_equal_conditional_branch): Likewise.
5780 (mips_output_conditional_branch): Use jrc/bc if compact
5781 branch support is enabled. Ensure the forbidden slots
5782 between the two branch instructions is filled with a nop.
5783 (mips_option_override): Add support to process the compact
5784 branch option and set the correct defaults. Prevent
5785 non-explict relocs being using for MIPS R6.
5786 (mips_trampoline_init): Add compact branch support.
5787 (mips_mult_zero_zero_cost): Allow zero initialisation of
5788 accumulators with TARGET_DSP.
5789 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
5790 (TARGET_CB_MAYBE): New define.
5791 (TARGET_CB_ALWAYS): New define.
5792 (ISA_HAS_DELAY_SLOTS): New define.
5793 (ISA_HAS_COMPACT_BRANCHES): New define.
5794 (ISA_HAS_JRC): New define.
5795 (MIPS_BRANCH_C): New define.
5796 (MIPS_CALL): Removed.
5797 (MICROMIPS_J): Removed.
5798 * config/mips/mips.md (compact_form): New attr.
5799 (hazard): Add support for forbidden slots.
5800 (define_delay): Add support for compact branches.
5801 (*branch_order<mode>): Likewise.
5802 (*branch_order<mode>_inverted): Likewise.
5803 (*branch_equality<mode>): Likewise.
5804 (*branch_equality<mode>_inverted): Likewise.
5805 (*jump_absolute): Likewise.
5806 (*jump_pic): Likewise.
5807 (indirect_jump): Use mips_output_jump to produce assembly output.
5808 (tablejump_<mode>"): Likewise.
5809 (*<optab>"): Likewise.
5810 (<optab>_internal): Likewise.
5811 (sibcall_internal): Likewise.
5812 (sibcall_value_internal): Likewise.
5813 (sibcall_value_multiple_internal): Likewise.
5814 (call_internal): Likewise.
5815 (call_split): Likewise.
5816 (call_internal_direct): Likewise.
5817 (call_direct_split): Likewise.
5818 (call_value_internal): Likewise.
5819 (call_value_split): Likewise.
5820 (call_value_internal_direct): Likewise.
5821 (call_value_direct_split): Likewise.
5822 (call_value_multiple_internal): Likewise.
5823 (call_value_multiple_split): Likewise.
5824 (mips_get_fcsr_mips16_<mode>): Likewise.
5825 (mips_set_fcsr_mips16_<mode>): Likewise.
5826 (tls_get_tp_mips16_<mode>): Likewise.
5827 * config/mips/mips.opt: Add -mcompact-branches option.
5828 * config/mips/predicates.md (order_operator): Ensure the
5829 conditional compact branches are only used if the ISA them.
5830 * doc/invoke.texi: Document -mcompact-branches option.
5832 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
5835 * lra-lives.c (process_bb_lives): Process move pseudos with the
5836 same value for copies and preferences
5837 * lra-constraints.c (match_reload): Create match reload pseudo
5838 with the same value from single dying input pseudo.
5840 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
5843 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
5845 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
5847 * trans-mem.c: Add contributed-by.
5848 * trans-mem.h: Same.
5850 2015-09-01 Richard Biener <rguenther@suse.de>
5852 * expr.c (expand_expr_real_1): For expanding TERed defs
5853 set the current location to that of the def if not UNKNOWN.
5855 2015-09-01 David Sherwood <david.sherwood@arm.com>
5857 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
5859 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5861 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
5862 then_cost, else_cost fields. Change branch_cost field to unsigned int.
5863 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
5865 (noce_simple_bbs): New function.
5866 (noce_try_move): Bail if basic blocks are not simple.
5867 (noce_try_store_flag): Likewise.
5868 (noce_try_store_flag_constants): Likewise.
5869 (noce_try_addcc): Likewise.
5870 (noce_try_store_flag_mask): Likewise.
5871 (noce_try_cmove): Likewise.
5872 (noce_try_minmax): Likewise.
5873 (noce_try_abs): Likewise.
5874 (noce_try_sign_mask): Likewise.
5875 (noce_try_bitop): Likewise.
5876 (bbs_ok_for_cmove_arith): New function.
5877 (noce_emit_all_but_last): Likewise.
5878 (noce_emit_insn): Likewise.
5879 (noce_emit_bb): Likewise.
5880 (noce_try_cmove_arith): Handle non-simple basic blocks.
5881 (insn_valid_noce_process_p): New function.
5882 (contains_mem_rtx_p): Likewise.
5883 (bb_valid_for_noce_process_p): Likewise.
5884 (noce_process_if_block): Allow non-simple basic blocks
5887 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
5889 * tree-ssa-dom.c (record_equivalences_from_phis,
5890 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
5891 (lookup_avail_expr): Likewise, and remove comment and unused temp.
5893 2015-09-01 Nick Clifton <nickc@redhat.com>
5895 * config/msp430/msp430.opt (mcpu): Fix typo.
5897 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5899 * config/aarch64/aarch64.c (aarch64_set_current_function):
5900 Re-layout any vector parameters have non-simd layout.
5901 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
5903 (aarch64_simd_expand_args): Delete call to the above.
5905 2015-08-31 Mike Frysinger <vapier@gentoo.org>
5907 * doc/invoke.texi (asan-stack): Add space before option.
5909 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
5911 * tree.h (zerop): New function.
5912 * tree.c (zerop): Likewise.
5913 (element_precision): Handle expressions.
5914 * match.pd (define_predicates): Add zerop.
5915 (x <= +Inf): Fix comment.
5916 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
5917 * fold-const.c (fold_binary_loc): ... here. Remove.
5919 2015-08-31 Richard Biener <rguenther@suse.de>
5922 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
5924 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
5926 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
5927 (CEXPI): New operator list.
5928 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
5929 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
5931 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
5933 2015-08-31 Tom de Vries <tom@codesourcery.com>
5935 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
5936 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
5938 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
5939 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
5940 (rewrite_into_loop_closed_ssa): ... here.
5941 (replace_uses_in_dominated_bbs): Remove function.
5942 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
5943 rewrite_into_loop_closed_ssa_1.
5945 2015-08-31 Michael Matz <matz@suse.de>
5947 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
5948 enter entry and exit blocks for reverse post order.
5950 2015-08-31 Richard Biener <rguenther@suse.de>
5952 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
5953 (lto_location_cache::current_sysp): Likewise.
5954 (output_block::current_sysp): Likewise.
5955 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
5956 (lto_location_cache::apply_location_cache): Properly record
5957 system header locations.
5958 (lto_location_cache::input_location): Input whether a file
5960 * lto-streamer-out.c (lto_output_location): Stream whether a file
5963 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5966 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
5968 2015-08-31 Tom de Vries <tom@codesourcery.com>
5970 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
5971 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
5972 Improve function header comments.
5974 2015-08-30 Michael Collison <michael.collison@linaro.org>
5977 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
5980 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5982 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
5983 special_handling bitfield.
5984 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
5985 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
5986 that represents a general xxpermdi.
5987 (insn_is_swappable_p): Add handling for vec_concat of two
5988 doublewords, which maps to a specific xxpermdi.
5989 (adjust_xxpermdi): New function.
5990 (adjust_concat): Likewise.
5991 (handle_special_swappables): Call adjust_xxpermdi and
5993 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
5995 2015-08-30 Rich Felker <dalias@libc.org>
5997 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
5998 case instead of sh[123456ble]-*-*.
6000 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6002 * ira.c (print_unform_and_important_classes,
6003 print_translated_classes): Remove reg_class_names static array.
6004 (print_unform_and_important_classes): Rename to ...
6005 (print_uniform_and_important_classes): ... this.
6006 (ira_debug_allocno_classes): Update accordingly.
6008 2015-08-29 Tom de Vries <tom@codesourcery.com>
6010 PR tree-optimization/46193
6011 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6014 2015-08-28 Jeff Law <law@redhat.com>
6017 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6018 unable to find X NE 0 in the tables, return X as the simplified
6020 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6021 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6023 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6024 after removing the control flow statement and unnecessary edges.
6026 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
6029 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6031 PR tree-optimization/67283
6032 * tree-sra.c (type_consists_of_records_p): Rename to...
6033 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6035 (completely_scalarize_record): Rename to...
6036 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6038 (scalarize_elem): New.
6040 2015-08-28 Jiong Wang <jiong.wang@arm.com>
6042 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6043 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6044 (aarch64_symbol_type): Likewise.
6045 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6047 (aarch64_expand_mov_immediate): Likewise.
6048 (aarch64_print_operand): Likewise.
6049 (aarch64_classify_tls_symbol): Likewise.
6051 2015-08-28 Richard Biener <rguenther@suse.de>
6053 * cgraphunit.c (symbol_table::compile): Move early debug generation
6055 (symbol_table::finalize_compilation_unit): ... back here and
6056 add a !seen_error () guard.
6058 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6060 * toplev.c (process_options): Do not use flag_loop_block,
6061 flag_loop_interchange, and flag_loop_strip_mine. Add check for
6062 flag_loop_optimize_isl.
6064 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6066 * Makefile.in (OBJS): Remove graphite-blocking.o and
6067 graphite-interchange.o.
6068 * common.opt (floop-strip-mine, floop-interchange, floop-block):
6069 Alias of floop-nest-optimize.
6070 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6071 Document as alias of -floop-nest-optimize.
6072 * graphite-blocking.c: Remove.
6073 * graphite-interchange.c: Remove.
6074 * graphite-optimize-isl.c: Include dumpfile.h.
6075 (getScheduleForBand): Add dump for tiled loops. Use
6076 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6077 * graphite-poly.c (scop_max_loop_depth): Remove.
6078 (print_scattering_function_1): Remove.
6079 (print_scattering_function): Remove.
6080 (print_scattering_functions): Remove.
6081 (debug_scattering_function): Remove.
6082 (debug_scattering_functions): Remove.
6083 (apply_poly_transforms): Remove use of flag_loop_block,
6084 flag_loop_strip_mine, and flag_loop_interchange.
6085 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6087 (print_pdr_access_layout): Remove.
6088 (print_pdr): Print ISL representation.
6089 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6090 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6092 (openscop_print_pbb_domain): Remove.
6093 (print_pbb): Remove call to print_scattering_function.
6094 (openscop_print_scop_context): Remove.
6095 (print_scop_context): Do not print matrices anymore.
6096 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6097 SCOP_TRANSFORMED_SCHEDULE.
6098 (print_isl_set): Add printing of a new line.
6099 (print_isl_map): Same.
6100 (print_isl_aff): Same.
6101 (print_isl_constraint): Same.
6102 (loop_to_lst): Remove.
6103 (scop_to_lst): Remove.
6104 (lst_indent_to): Remove.
6105 (print_lst): Remove.
6106 (debug_lst): Remove.
6107 (dot_lst_1): Remove.
6109 (reverse_loop_at_level): Remove.
6110 (reverse_loop_for_pbbs): Remove.
6111 * graphite-poly.h (pdr_dim_iter_domain): Remove.
6112 (pdr_nb_params): Remove.
6113 (pdr_alias_set_dim): Remove.
6114 (pdr_subscript_dim): Remove.
6115 (pdr_iterator_dim): Remove.
6116 (pdr_parameter_dim): Remove.
6117 (same_pdr_p): Remove.
6118 (struct poly_scattering): Remove.
6119 (struct poly_bb): Remove _original, _transformed, _saved.
6120 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6121 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6122 (PBB_NB_LOCAL_VARIABLES): Remove.
6123 (PBB_NB_SCATTERING_TRANSFORM): Remove.
6124 (schedule_to_scattering): Remove.
6125 (number_of_write_pdrs): Remove.
6126 (pbb_dim_iter_domain): Remove.
6127 (pbb_nb_params): Remove.
6128 (pbb_nb_scattering_orig): Remove.
6129 (pbb_nb_scattering_transform): Remove.
6130 (pbb_nb_dynamic_scattering_transform): Remove.
6131 (pbb_nb_local_vars): Remove.
6132 (pbb_iterator_dim): Remove.
6133 (pbb_parameter_dim): Remove.
6134 (psco_scattering_dim): Remove.
6135 (psct_scattering_dim): Remove.
6136 (psct_local_var_dim): Remove.
6137 (psco_iterator_dim): Remove.
6138 (psct_iterator_dim): Remove.
6139 (psco_parameter_dim): Remove.
6140 (psct_parameter_dim): Remove.
6141 (psct_dynamic_dim): Remove.
6142 (psct_static_dim): Remove.
6143 (psct_add_local_variable): Remove.
6144 (new_lst_loop): Remove.
6145 (new_lst_stmt): Remove.
6148 (lst_add_loop_under_loop): Remove.
6149 (lst_depth): Remove.
6150 (lst_dewey_number): Remove.
6151 (lst_dewey_number_at_depth): Remove.
6154 (lst_find_pbb): Remove.
6155 (find_lst_loop): Remove.
6156 (lst_find_first_pbb): Remove.
6157 (lst_empty_p): Remove.
6158 (lst_find_last_pbb): Remove.
6159 (lst_contains_p): Remove.
6160 (lst_contains_pbb): Remove.
6161 (lst_create_nest): Remove.
6162 (lst_remove_from_sequence): Remove.
6163 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6164 (lst_niter_for_loop): Remove.
6165 (pbb_update_scattering): Remove.
6166 (lst_update_scattering_under): Remove.
6167 (lst_update_scattering): Remove.
6168 (lst_insert_in_sequence): Remove.
6169 (lst_replace): Remove.
6170 (lst_substitute_3): Remove.
6171 (lst_distribute_lst): Remove.
6172 (lst_remove_all_before_including_pbb): Remove.
6173 (lst_remove_all_before_excluding_pbb): Remove.
6174 (struct scop): Remove original_schedule, transformed_schedule, and
6176 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6177 (SCOP_SAVED_SCHEDULE): Remove.
6178 (poly_scattering_new): Remove.
6179 (poly_scattering_free): Remove.
6180 (poly_scattering_copy): Remove.
6181 (store_scattering_pbb): Remove.
6182 (store_lst_schedule): Remove.
6183 (restore_lst_schedule): Remove.
6184 (store_scattering): Remove.
6185 (restore_scattering_pbb): Remove.
6186 (restore_scattering): Remove.
6187 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6188 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
6189 compute the scattering polyhedron dimension from the dimension of
6191 (build_scop_scattering): Update call to
6192 build_pbb_scattering_polyhedrons.
6193 (build_poly_scop): Remove call to scop_to_lst.
6194 * graphite.c (graphite_transform_loops): Add call to print_scop.
6195 (gate_graphite_transforms): Remove use of flag_loop_block,
6196 flag_loop_interchange, and flag_loop_strip_mine.
6198 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6200 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6201 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6202 -floop-nest-optimize.
6203 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6204 (generate_luj_sepclass): Remove.
6205 (generate_luj_options): Remove.
6206 (set_options): Remove opt_luj.
6207 (scop_to_isl_ast): Remove opt_luj.
6208 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6209 flag_loop_unroll_jam.
6210 (getPrevectorMap_full): Remove.
6211 (getScheduleForBandList): Remove map_sepcl.
6212 (getScheduleMap): Same.
6213 (apply_schedule_map_to_scop): Remove sepcl.
6214 (optimize_isl): Same.
6215 * graphite-poly.c (apply_poly_transforms): Remove check for
6216 flag_loop_unroll_jam.
6217 (new_poly_bb): Remove map_sepclass.
6218 * graphite-poly.h (struct poly_bb): Same.
6219 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6220 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6221 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6222 * toplev.c (process_options): Remove flag_loop_unroll_jam.
6224 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
6227 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6229 (UNSPEC_ADD_CARRY): Remove.
6230 (addqi3_cconly_overflow): New expander.
6231 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6232 Adjust for changed add<mode>3_carry.
6233 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6234 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6235 (<plusminus_insn><mode>3_carry): Remove expander.
6236 (*<plusminus_insn><mode>3_carry): Split insn pattern to
6237 add<mode>3_carry and sub<mode>3_carry.
6238 (plusminus_carry_mnemonic): Remove code attribute.
6239 (add<mode>3_carry): Canonicalize insn pattern.
6240 (*addsi3_carry_zext): Ditto.
6241 (sub<mode>3_carry): Ditto.
6242 (*subsi3_carry_zext): Ditto.
6243 (adcx<mode>3): Remove insn pattern.
6244 (addcarry<mode>): New insn pattern.
6245 (subborrow<mode>): Ditto.
6246 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6247 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6248 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6249 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6250 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6251 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6252 Rewrite expander to not clobber carry flag chains.
6254 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
6256 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6257 instead of a rotate.
6259 2015-08-27 Marek Polacek <polacek@redhat.com>
6262 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6263 an entry into an irreducible region.
6265 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6267 * configure: Regenerate.
6269 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6271 PR tree-optimization/67283
6272 * tree-sra.c (type_consists_of_records_p): Rename to...
6273 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6275 (completely_scalarize_record): Rename to...
6276 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6277 (scalarize_elem): New.
6279 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6281 * tree-sra.c (completely_scalarize_var): Rename to...
6282 (create_total_scalarization_access): ... Here. Drop call to
6283 completely_scalarize_record.
6285 (analyze_all_variable_accesses): Replace completely_scalarize_var
6286 with create_total_scalarization_access and completely_scalarize_record.
6288 2015-08-27 Alan Modra <amodra@gmail.com>
6291 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6294 2015-08-27 Richard Biener <rguenther@suse.de>
6296 * passes.c (rest_of_decl_compilation): Guard early_global_decl
6297 call with !seen_error ().
6298 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6299 early debug generation and finish...
6300 (symbol_table::compile): ... here to put it after a !seen_error ()
6303 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6305 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6308 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6309 Andre Vieira <andre.simoesdiasvieira@arm.com>
6311 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6312 (*cb<optab><mode>1): Likewise.
6313 (*tb<optab><mode>1): Likewise.
6314 (*cb<optab><mode>1): Likewise.
6315 * config/aarch64/iterators.md (inv_cb): New code attribute.
6317 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6318 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6320 2015-08-27 Richard Biener <rguenther@suse.de>
6322 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6324 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6326 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6329 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6331 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6334 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6336 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6337 floating point in VSX registers.
6338 (rs6000_output_move_128bit): Always print out the set insn if we
6339 can't generate an appropriate 128-bit move.
6340 (rs6000_generate_compare): Add support for IEEE 128-bit floating
6341 point in VSX registers comparisons.
6342 (rs6000_expand_float128_convert): Likewise.
6344 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6345 predicate for only GPR hard registers.
6347 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6348 modes to iterators. Add new iterators for moving 128-bit values in
6349 scalar FPR registers and VSX registers.
6350 (FMOVE128): Likewise.
6351 (FMOVE128_FPR): Likewise.
6352 (FMOVE128_GPR): Likewise.
6353 (FMOVE128_VSX): Likewise.
6354 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6359 (RELOAD): Add IEEE 128-bit floating point modes.
6360 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6361 floating point in VSX registers modes.
6362 (signbit<mode>2, IBM128 iterator): Likewise.
6363 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6364 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6366 (neg<mode>2, TFIFKF iterator): Likewise.
6367 (negtf2_internal): Likewise.
6369 (abs<mode>2, TFIFKF iterator): Likewise.
6370 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6371 VSX insn support for negate, absolute value, and negative absolute
6373 (ieee_128bit_vsx_neg<mode>2): Likewise.
6374 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6375 (ieee_128bit_vsx_abs<mode>2): Likewise.
6376 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6377 (ieee_128bit_vsx_nabs<mode>2): Likewise.
6378 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6379 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6380 floating point in VSX registers.
6381 (unpack<mode>_dm): Likewise.
6382 (unpack<mode>_nodm): Likewise.
6383 (pack<mode>): Likewise.
6384 (unpackv1ti): Likewise.
6385 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6386 (packv1ti): Likewise.
6387 (pack<mode>, FMOVE128_VSX iterator): Likewise.
6388 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6390 (extenddftf2_internal): Likewise.
6391 (trunctfdf2): Likewise.
6392 (trunctfdf2_internal2): Likewise.
6393 (fix_trunc_helper): Likewise.
6394 (fix_trunctfdi2"): Likewise.
6395 (floatditf2): Likewise.
6396 (floatuns<mode>tf2): Likewise.
6397 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6398 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6399 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6400 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6401 (float<SDI:mode><IFKF:mode>2): Likewise.
6402 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6404 2015-08-26 Renlin Li <renlin.li@arm.com>
6406 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6408 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6409 Jiong Wang <jiong.wang@arm.com>
6411 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6412 (tlsie_tiny_<mode>): New define_insn.
6413 (tlsie_tiny_sidi): Likewise.
6414 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6416 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6417 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6419 (aarch64_expand_mov_immediate): Likewise.
6420 (aarch64_print_operand): Likewise.
6421 (arch64_classify_tls_symbol): Likewise.
6423 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6425 * config/arm/arm-arches.def: Replace single value flags with
6426 an initializer built from ARM_FSET_MAKE_CPU1.
6427 * config/arm/arm-cores.def: Likewise.
6428 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6429 derivation from the ARM_CORE macro definition, use the given value
6431 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
6432 ARM_ARCH macro definition, use the given value instead.
6434 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6436 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
6438 (struct builtin_description): Replace field mask with field
6440 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
6441 (IWMMXT2_BUILTIN): Likewise.
6442 (IWMMXT2_BUILTIN2): Likewise.
6443 (FP_BUILTIN): Likewise.
6444 (CRC32_BUILTIN): Likewise.
6445 (CRYPTO_BUILTIN): Likewise.
6446 (iwmmx_mbuiltin): Likewise.
6447 (iwmmx2_mbuiltin): Likewise.
6448 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
6449 struct builtin_description.
6451 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6453 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
6454 (struct builtin_description): Change type of mask to unsigned
6456 * config/arm/arm-protos.h (insn_flags): Declare as type
6458 (tune_flags): Likewise.
6459 * config/arm/arm.c (feature_count): New.
6460 (insn_flags): Define as type arm_feature_set.
6461 (tune_flags): Likewise.
6462 (struct processors): Define field flags as type arm_feature_set.
6463 (all_cores): Update for change to struct processors.
6464 (all_architectures): Likewise.
6465 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
6467 (arm_option_override_internal): Likewise.
6468 (arm_option_override): Likewise.
6470 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6471 Jiong Wang <jiong.wang@arm.com>
6473 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
6474 tls size for tiny, small, large memory model.
6475 (aarch64_load_symref_appropriately): Support new symbol types.
6476 (aarch64_expand_mov_immediate): Likewise.
6477 (aarch64_print_operand): Likewise.
6478 (aarch64_classify_tls_symbol): Likewise.
6479 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
6480 (aarch64_symbol_type): Likewise.
6481 * config/aarch64/aarch64.md (tlsle): Deleted.
6482 (tlsle12_<mode>): New define_insn.
6483 (tlsle24_<mode>): Likewise.
6484 (tlsle32_<mode>): Likewise.
6485 (tlsle48_<mode>): Likewise.
6486 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6489 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6491 * config/arm/arm-protos.h (FL_NONE): New.
6493 (arm_feature_set): New.
6494 (ARM_FSET_MAKE): New.
6495 (ARM_FSET_MAKE_CPU1): New.
6496 (ARM_FSET_MAKE_CPU2): New.
6497 (ARM_FSET_CPU1): New.
6498 (ARM_FSET_CPU2): New.
6499 (ARM_FSET_EMPTY): New.
6500 (ARM_FSET_ANY): New.
6501 (ARM_FSET_HAS_CPU1): New.
6502 (ARM_FSET_HAS_CPU2): New.
6503 (ARM_FSET_HAS_CPU): New.
6504 (ARM_FSET_ADD_CPU1): New.
6505 (ARM_FSET_ADD_CPU2): New.
6506 (ARM_FSET_DEL_CPU1): New.
6507 (ARM_FSET_DEL_CPU2): New.
6508 (ARM_FSET_UNION): New.
6509 (ARM_FSET_INTER): New.
6510 (ARM_FSET_XOR): New.
6511 (ARM_FSET_EXCLUDE): New.
6512 (AFM_FSET_IS_EMPTY): New.
6513 (ARM_FSET_CPU_SUBSET): New.
6515 2015-08-26 Jiong Wang <jiong.wang@arm.com>
6517 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6518 SYMBOL_TLSLE to SYMBOL_TLSLE24.
6519 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6521 (aarch64_expand_mov_immediate): Likewise.
6522 (aarch64_print_operand): Likewise.
6523 (aarch64_classify_symbol): Likewise.
6525 2015-08-26 Jiong Wang <jiong.wang@arm.com>
6527 * config/aarch64/aarch64.opt (mtls-size): New entry.
6528 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
6529 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
6530 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
6532 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6534 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
6535 ARM_CORE entry. Fix some white-space.
6536 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
6537 ARM_CORE definition.
6539 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6541 * fold-const.c (fold_binary_loc) : Move Optimize
6542 root(x)*root(y) as root(x*y) to match.pd.
6543 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
6544 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
6545 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
6546 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
6547 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
6548 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
6549 (mult (exps:s @0) (exps:s @1)) : New simplifier.
6550 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
6551 (rdiv @0 (exps:s @1)) : New simplifier.
6553 2015-08-25 Joseph Myers <joseph@codesourcery.com>
6555 * gcc.c (driver::finalize): Only assign to extra_specs if
6558 2015-08-25 Marek Polacek <polacek@redhat.com>
6561 * varasm.c (declare_weak): Return after giving an error.
6563 2015-08-25 David Malcolm <dmalcolm@redhat.com>
6565 * gcc-main.c (main): Add params to driver ctor.
6566 * gcc.c (class env_manager): New.
6568 (env_manager::init): New.
6569 (env_manager::get): New.
6570 (env_manager::xput): New.
6571 (env_manager::restore): New.
6572 Poison getenv and putenv.
6573 (DEFAULT_TARGET_SYSTEM_ROOT): New.
6574 (target_system_root): Update initialization to use
6575 DEFAULT_TARGET_SYSTEM_ROOT.
6576 (struct spec_list): Add field "default_ptr".
6577 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
6578 (init_spec): Likewise.
6579 (set_spec): Clear field "default_ptr".
6580 (read_specs): Free "spec" and "buffer".
6581 (xputenv): Reimplement in terms of env_manager.
6582 (process_command): Replace ::getenv calls with calls to the
6583 env_manager singleton.
6584 (process_brace_body): Free string in three places.
6585 (driver::driver): New.
6586 (driver::~driver): New.
6587 (used_arg): Convert from a function to...
6588 (class used_arg_t): ...this class, and...
6589 (used_arg): ...this new global instance.
6590 (used_arg_t::finalize): New function.
6591 (getenv_spec_function): Add "const" to local "value". Replace
6592 ::getenv call with call to the env_manager singleton.
6593 (path_prefix_reset): New function.
6594 (driver::finalize): New function.
6595 * gcc.h (driver::driver): New.
6596 (driver::~driver): New.
6597 (driver::finalize): New.
6599 2015-08-25 Nathan Sidwell <nathan@acm.org>
6601 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
6602 target doesn't have one.
6604 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
6607 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
6609 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
6612 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
6613 a define_insn, remove second alternative.
6615 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
6616 Joseph Myers <joseph@codesourcery.com>
6618 * gcc.c (struct switchstr): Expand comment.
6620 2015-08-25 Nathan Sidwell <nathan@acm.org>
6622 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
6623 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
6625 2015-08-25 Richard Biener <rguenther@suse.de>
6628 * genmatch.c (expr::gen_transform): Verify the result of
6629 builtin_decl_implicit.
6630 (dt_simplify::gen_1): Likewise.
6632 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
6634 * config/arm/constraints.md: Also list Cs and US ARM-specific
6635 constraints as used.
6637 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
6640 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
6642 (nonpic_symbol_mentioned_p): Likewise.
6643 (sh_delegitimize_address): Likewise.
6644 (sh_function_ok_for_sibcall): Take into account weak symbols.
6645 (sh_expand_sym_label2reg): New.
6646 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
6647 * config/sh/sh.md (UNSPEC_PCREL): New enum.
6648 (call_pcrel): Use sh_expand_sym_label2reg.
6649 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6650 (symPCREL_label2reg) New expand.
6652 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
6654 * graphite-poly.c: Change type of region from void* to sese.
6655 * graphite-poly.h (struct scop): Changing the type of scop::region
6656 from void* to sese. Change accessor macro accordingly.
6657 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
6659 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
6661 * graphite-scop-detection.c (stmt_simple_for_scop_p):
6662 Constrain only on INTEGER_TYPE.
6664 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6667 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
6668 -mefficient-unaligned-vsx on ISA 2.7.
6670 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
6671 option to a masked option.
6673 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
6674 logic for -mefficient-unaligned-vsx so that it is set via an arch
6675 ISA option, instead of being set if -mtune=power8 is set. Move
6676 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
6677 near other default option handling.
6679 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6681 * genflags.c (gen_macro): Delete.
6682 (gen_proto): Don't create GEN.*CALL.* macros.
6683 * gensupport.h (get_file_location): Declare.
6684 * gensupport.c (rtx_locs): New variable.
6685 (read_md_rtx): Record rtx locations.
6686 (get_file_location): New function.
6687 * target-insns.def (call, call_pop, call_value, call_value_pop)
6688 (sibcall, sibcall_value): New patterns.
6689 * gentarget-def.c (parse_argument): New function.
6690 (def_target_insn): Use it. Handle optional operands. Raise an
6691 error if an .md pattern has the wrong number of operands for the
6692 pattern name. Remove the names of unused operands from the prototype.
6693 * builtins.c (expand_builtin_apply): Use targetm functions
6694 instead of HAVE_call_value and GEN_CALL_VALUE.
6695 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
6696 and sibcall_value_pop.
6697 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
6699 * config/alpha/alpha.md (untyped_call): Likewise.
6700 * config/iq2000/iq2000.md (untyped_call): Likewise.
6701 * config/m68k/m68k.md (untyped_call): Likewise.
6702 * config/mips/mips.md (untyped_call): Likewise.
6703 * config/pa/pa.md (untyped_call): Likewise.
6704 * config/rs6000/rs6000.md (untyped_call): Likewise.
6705 * config/sparc/sparc.md (untyped_call): Likewise.
6706 * config/tilegx/tilegx.md (untyped_call): Likewise.
6707 * config/tilepro/tilepro.md (untyped_call): Likewise.
6708 * config/visium/visium.md (untyped_call): Likewise.
6709 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
6710 gen_call_value instead of GEN_CALL_VALUE.
6711 * config/arm/arm.md (untyped_call): Likewise.
6712 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
6715 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6717 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
6718 (have_cbranchcc4): New variable.
6719 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
6720 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
6721 (if_convert): Initialize have_cbranchcc4.
6723 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6725 * builtins.c (expand_cmpstrn): Rename to...
6726 (expand_cmpstrn_or_cmpmem): ...this.
6727 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
6728 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
6729 Remove mode argument.
6730 (expand_builtin): Update accordingly.
6732 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6734 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
6735 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
6736 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
6737 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
6738 Add predicates for operands 0 and 3.
6739 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
6741 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
6742 immediate_operand to nonmemory_operand.
6744 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6746 * df-scan.c (df_insn_info_init_fields): New function, split out
6748 (df_insn_create_insn_record): ...here.
6749 (df_insn_info_free_fields): New function, split out from...
6750 (df_insn_info_delete): ...here.
6751 (df_insn_rescan): Use the new functions instead of freeing and
6752 reallocating the df_insn_info.
6754 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6756 * doc/install.texi (Binaries): Remove links no longer valid.
6758 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6760 * config/nvptx/mkoffload.c (process): Replace
6761 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
6763 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
6766 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
6768 2015-08-24 Renlin Li <renlin.li@arm.com>
6770 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
6771 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
6772 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
6773 * config/arm/constraints.md ("j"): Add check for high code.
6775 2015-08-24 Tom de Vries <tom@codesourcery.com>
6777 PR tree-optimization/65468
6778 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
6781 2015-08-24 Nathan Sidwell <nathan@acm.org>
6783 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
6784 change to nvptx_type_from_mode call. Use arg_promotion for both
6785 split and non-split args.
6787 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6789 * target-insns.def (movstr): New pattern.
6790 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
6791 (expand_movstr): Use targetm rather than HAVE_movstr/
6794 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6796 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
6799 2015-08-24 Andrew Pinski <apinski@cavium.com>
6801 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
6802 AARCH64_EXTRA_TUNING_OPTION.
6803 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
6805 (aarch64_extra_tuning_flags): Base the shifted value on the index
6806 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
6807 * config/aarch64/aarch64.c: Remove the last argument to
6808 AARCH64_EXTRA_TUNING_OPTION.
6810 2015-08-23 Nathan Sidwell <nathan@acm.org>
6812 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
6814 (nvptx_declare_function_name): Insert formatting tabs for
6817 2015-08-23 Tom de Vries <tom@codesourcery.com>
6819 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
6820 parm_decl, rather than generating a dummy default def in cfun.
6821 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
6822 ssa_name from cfun and child_fn do not share a stmt as def stmt.
6823 (move_stmt_op): Handle PARM_DECl.
6824 (gather_ssa_name_hash_map_from): New function.
6825 (move_sese_region_to_fn): Add default defs for function params, and add
6826 them to vars_map. Release copied ssa names.
6827 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
6829 2015-08-23 Tom de Vries <tom@codesourcery.com>
6831 * doc/sourcebuild.texi: Rename vect_no_int_max with
6832 vect_no_int_min_max. Update description.
6834 2015-08-22 Andrew Pinski <apinski@cavium.com>
6836 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
6837 * config/aarch64/aarch64-protos.h
6838 (aarch64_fusion_pairs_index): New enum.
6839 (aarch64_fusion_pairs): Base the shifted value on the index instead
6840 Rewrite AARCH64_FUSE_ALL to be based on the end index.
6841 of the argument to AARCH64_FUSION_PAIR.
6842 * config/aarch64/aarch64.c: Remove the last argument to
6843 AARCH64_FUSION_PAIR.
6845 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
6847 * dominance.c (new_zero_array): Define.
6848 (dom_info): Redefine as class with proper encapsulation.
6849 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
6851 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
6852 allocations/deallocations. Pass function as parameter (instead of
6854 (dom_info::get_idom): Define accessor method.
6855 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
6856 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
6857 (calculate_dominance_info): Adjust to use dom_info class.
6858 (verify_dominators): Likewise.
6860 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
6862 * print-rtl.c (print_rtx): Check the correct range for
6863 flag_dump_unnumbered_links to behave as documented.
6865 PR rtl-optimization/67227
6866 PR rtl-optimization/64164
6867 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
6868 (nonoverlapping_memrefs_p): Test offsets and sizes when given
6869 identical gimple_reg exprs.
6871 2015-08-21 Nathan Sidwell <nathan@acm.org>
6873 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
6875 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
6876 crtl->stack_alignment_needed to determine alignment.
6877 (nvptx_get_drap_rtx): New.
6878 (TARGET_GET_DRAP_RTX): Override.
6879 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
6881 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6883 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
6885 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6887 * configure.ac: Remove uwin* cases.
6888 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
6889 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
6890 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
6891 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
6892 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
6893 i[34567]86-*-uwin*, powerpc-*-beos*.
6895 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
6897 * gencodes.c (gencodes): Print the comma for the preceding
6898 enum value rather than the current one. Use aliased enum values
6899 rather than #defines for compiled-out patterns.
6900 (main): Update accordingly. Replace LAST_INSN_CODE with
6902 * lra.c (insn_code_data): Update accordingly.
6903 (finish_insn_code_data_once, get_static_insn_data): Likewise.
6904 * recog.h (target_recog): Likewise.
6905 (preprocess_insn_constraints): Change parameter to unsigned int.
6906 * recog.c (preprocess_insn_constraints): Likewise.
6907 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
6908 * tree-vect-stmts.c (vectorizable_operation): Simplify.
6910 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
6912 PR rtl-optimization/61657
6913 * loop-iv.c (iv_number_of_iterations): Declare up and down as
6914 unsigned. Remove superflous uint64_t cast.
6916 2014-08-21 Felix Yang <felix.yang@huawei.com>
6917 Jiji Jiang <jiangjiji@huawei.com>
6919 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
6920 argument and get builtin function code directly from CALL.
6921 (gimple_stringop_fixed_value): Modified accordingly.
6922 (gimple_stringops_transform, gimple_stringops_values_to_profile):
6923 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
6925 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
6927 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
6929 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6931 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
6933 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
6934 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
6935 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
6936 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
6937 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
6938 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
6939 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
6940 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
6941 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
6942 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
6944 * match.pd (SIN ) : New Operator.
6945 (TAN) : New Operator.
6946 (mult (SQRT@1 @0) @1) : New simplifier.
6947 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
6948 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6949 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6950 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
6951 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
6952 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
6953 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
6954 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
6955 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
6956 (rdiv @0 (POW:s @1 @2)) : New simplifier.
6958 2015-08-21 Bin Cheng <bin.cheng@arm.com>
6960 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
6961 loop if EXPR is simplified to const value.
6963 2015-08-21 Yury Gribov <y.gribov@samsung.com>
6965 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6966 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
6968 2015-08-21 Richard Biener <rguenther@suse.de>
6971 * gimple-fold.c (replace_stmt_with_simplification): Assert
6972 seq is empty when replacing a call with itself but different
6974 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
6975 a call require that it is const.
6977 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6979 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
6980 * builtins.c (get_object_alignment_2): Adjust.
6981 * varasm.c (align_variable): Likewise.
6982 (get_variable_align): Likewise.
6983 (build_constant_desc): Likewise.
6984 (force_const_mem): Likewise.
6985 * doc/tm.texi.in: Likewise.
6986 * doc/tm.texi: Regenerate.
6988 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6990 * genconfig.c (main): Always define HAVE_cc0.
6991 * recog.c (rest_of_handle_peephole2): Adjust.
6993 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6995 * reorg.c (relax_delay_slots): Don't use #if to check value of
6998 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7000 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7001 * targhooks.c (default_have_conditional_execution): Adjust.
7003 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7005 * rtl.h (rtvec_all_equal_p): Declare.
7006 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7007 * rtl.c (rtvec_all_equal_p): New function.
7008 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7009 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7010 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7011 * config/arm/arm.c (neon_vdup_constant): Likewise.
7012 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7013 * config/tilegx/constraints.md (W, Y): Likewise.
7014 * config/tilepro/constraints.md (W, Y): Likewise.
7015 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7016 (classify_immediate): Use unwrap_const_vec_duplicate.
7017 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7018 (reg_or_v2s8bit_operand): Likewise.
7019 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7020 (reg_or_v4s8bit_operand): Likewise.
7022 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7024 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7025 (vec_shasigma_be): New #define.
7026 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7027 (VPMSUMH): Likewise.
7028 (VPMSUMW): Likewise.
7029 (VPMSUMD): Likewise.
7030 (VPMSUM): New BU_P8V_OVERLOAD_2.
7031 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7032 entries for VEC_MADD and VEC_VPMSUM.
7034 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
7036 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7037 Multiply argument avr_n_flash by 64 to match unit of "KiB".
7038 (avr_pgm_check_var_decl): Same.
7040 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
7042 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7043 initialization of HFmode scalar type (float16_t) to...
7044 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7047 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7049 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7050 having an -mfp16-format.
7052 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7054 * config/i386/predicates.md (vector_all_ones_operand): Use
7055 CONSTM1_RTX to simplify definition.
7057 2015-08-20 Richard Biener <rguenther@suse.de>
7059 * toplev.c (compile_file): Remove loop calling late_global_decl
7061 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7062 on decls we assembled.
7064 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
7066 * common/config/aarch64/aarch64-common.c
7067 (AARCH64_CPU_NAME_LENGTH): Delete.
7068 (aarch64_option_extension): New.
7069 (all_extensions): Likewise.
7070 (processor_name_to_arch): Likewise.
7071 (arch_to_arch_name): Likewise.
7073 (all_architectures): Likewise.
7074 (aarch64_get_extension_string_for_isa_flags): Likewise.
7075 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7077 * config/aarch64/aarch64-protos.h
7078 (aarch64_get_extension_string_for_isa_flags): New.
7079 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7080 (aarch64_option_print): Get the string to print from
7081 aarch64_get_extension_string_for_isa_flags.
7082 (aarch64_declare_function_name): Likewise.
7083 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7084 (MCPU_TO_MARCH_SPEC): This.
7085 (ASM_CPU_SPEC): Use it.
7086 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7087 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7088 (EXTRA_SPEC_FUNCTIONS): Use it.
7090 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
7092 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7093 expansion when !ISA_HAS_LWL_LWR.
7094 (mips_block_move_straight): Update the size of elements copied to
7095 account for alignment when !ISA_HAS_LWL_LWR.
7096 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7098 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7100 * expr.c (expand_expr_real_2): Check gimple statement during
7103 2015-08-19 Magnus Granberg <zorry@gentoo.org>
7105 * common.opt (fstack-protector): Initialize to -1.
7106 (fstack-protector-all): Likewise.
7107 (fstack-protector-strong): Likewise.
7108 (fstack-protector-explicit): Likewise.
7109 * configure.ac: Add --enable-default-ssp.
7110 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
7111 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7113 * doc/install.texi: Document --enable-default-ssp.
7114 * config.in: Regenerated.
7115 * configure: Likewise.
7117 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
7119 PR rtl-optimization/64164
7120 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7121 (parm_in_stack_slot_p): ... this. Disregard mode, what
7122 matters is whether the parm will live in a pseudo or a stack
7124 (expand_one_ssa_partition): Deal with params without a default
7125 def. Disregard mode.
7126 * cfgexpand.h: Renamed function declaration.
7127 * tree-ssa-coalesce.c: Adjust.
7128 * function.c (split_complex_args): Allocate stack slot for
7129 unassigned parms before splitting.
7130 (parm_in_unassigned_mem_p): New. Use it instead of
7131 parm_maybe_byref_p throughout this file.
7132 (assign_parm_setup_block): Use it. Accept pseudos in the
7133 expand-assigned rtl.
7134 (assign_parm_setup_reg): Drop BLKmode requirement.
7135 (assign_parm_setup_stack): Allocate and fill in the address of
7136 unassigned MEM parms.
7138 2015-08-19 David Sherwood <david.sherwood@arm.com>
7140 * genmodes.c (emit_mode_unit_size_inline): New function.
7141 (emit_mode_unit_precision_inline): New function.
7142 (emit_insn_modes_h): Emit new #define. Emit new functions.
7143 (emit_mode_unit_size): New function.
7144 (emit_mode_unit_precision): New function.
7145 (emit_mode_adjustments): Add mode_unit_size adjustments.
7146 (emit_insn_modes_c): Emit new arrays.
7147 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7148 use new inline methods.
7150 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7152 * config/aarch64/aarch64.c (bit_count): Delete prototype
7154 (aarch64_print_operand): Use popcount_hwi instead of the above.
7156 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7158 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7161 2015-08-19 Marek Polacek <polacek@redhat.com>
7164 * gimple-ssa-isolate-paths.c
7165 (insert_trap_and_remove_trailing_statements): Rename to ...
7166 (insert_trap): ... this. Don't remove trailing statements; split
7168 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7170 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
7173 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7174 conditionalize the whole on __GNUC__. Add fallback code
7175 depending neither on undefined nor implementation-defined behaviour.
7177 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7179 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7180 whitespaces with tab.
7182 2015-08-19 Florian Weimer <fweimer@redhat.com>
7184 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7185 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7186 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7187 Move Name_Ids instantiation to the Prj.Proc package, to avoid
7190 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7192 * config/arm/arm.c (bounds_check): Use %wd print format
7193 for HOST_WIDE_INT arguments.
7195 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
7197 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7198 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7199 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7200 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7201 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7202 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7203 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7204 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7205 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7208 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
7210 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7211 function.c, graphite-scop-detection.c, haifa-sched.c,
7212 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7213 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7214 varasm.c: Remove typedefs of structs.
7216 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7218 * config/rs6000/altivec.h (vec_adde): New define.
7219 (vec_addec): Likewise.
7220 (vec_double): Likewise.
7221 (vec_bperm): Likewise.
7223 * config/rs6000/rs6000-builtin.def (ADDE): New
7224 BU_ALTIVEC_OVERLOAD_3.
7226 (DOUBLE): New BU_VSX_OVERLOAD_1.
7227 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7228 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7229 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7230 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7231 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7232 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7233 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7234 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7235 and P8V_BUILTIN_VEC_VBPERMQ.
7237 2015-08-18 Jason Merrill <jason@redhat.com>
7239 * print-tree.c (print_node): Handle TREE_BINFO.
7241 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7244 * builtins.c (expand_builtin_signbit): Add asserts to make sure
7245 we can expand BUILT_IN_SIGNBIT inline.
7246 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7247 * doc/extend.texi: Document the type-generic __builtin_signbit.
7249 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
7251 PR rtl-optimization/67218
7252 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7253 (simplify_unary_operation_1): Use it.
7255 2015-08-18 Marek Polacek <polacek@redhat.com>
7258 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7259 if the call isn't valid.
7260 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7261 gimple_call_builtin_p.
7262 (call_may_clobber_ref_p_1): Likewise.
7263 (stmt_kills_ref_p): Likewise.
7265 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
7267 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7268 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7269 (mips_hard_regno_scratch_ok): Likewise.
7270 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7271 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7273 2015-08-18 Bin Cheng <bin.cheng@arm.com>
7275 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7276 (determine_value_range): Call refine_value_range_using_guard for
7277 each loop initial condition to improve value range.
7279 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
7281 * config/i386/i386.c: Remove include of fibheap.h.
7283 2015-08-17 Richard Biener <rguenther@suse.de>
7285 PR tree-optimization/67221
7286 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7287 (sccvn_dom_walker::before_dom_children): Mark backedges of
7288 non-executable blocks as not executable.
7290 2015-08-17 David Sherwood <david.sherwood@arm.com>
7292 * config/arm/arm.c (neon_element_bits): Replace call to
7293 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7294 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7295 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7296 (neon_vdup_lane<mode>): Likewise.
7297 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7298 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7299 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7300 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7301 * config/spu/spu.c (arith_immediate_p): Likewise.
7302 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7303 * expr.c (expand_expr_real_2): Likewise.
7304 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7305 * simplify-rtx.c (simplify_immed_subreg): Likewise.
7306 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7307 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7309 * fold-const.c (fold_binary_loc): Replace call to
7310 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7311 GET_MODE_UNIT_PRECISION (m).
7313 2015-08-17 Mike Stump <mikestump@comcast.net>
7315 * config/arm/arm.c (arm_block_move_unaligned_straight):
7316 Emit normal move instead of unaligned load when source or destination
7317 are appropriately aligned.
7319 2015-08-17 Richard Biener <rguenther@suse.de>
7320 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7323 * match.pd (div (coss (op @0) : New simplifier.
7325 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
7327 PR rtl-optimization/64164
7330 PR rtl-optimization/67000
7333 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7334 * tree-ssa-copyrename.c: Removed.
7335 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7336 -ftree-coalesce-vars.
7337 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7338 * common.opt (ftree-copyrename): Ignore.
7339 (ftree-coalesce-inlined-vars): Likewise.
7340 * doc/invoke.texi: Remove the ignored options above.
7341 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7342 * tree-ssa-coalesce.h: ... here.
7343 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7344 headers required by it.
7345 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7346 across variables when flag_tree_coalesce_vars. Check register
7347 use and promoted modes to allow coalescing. Do not coalesce
7348 maybe-byref parms with SSA_NAMEs of other variables, or
7349 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
7350 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7351 with its member functions to tree-ssa-coalesce.c.
7352 (var_map_base_init): Likewise. Renamed to
7353 compute_samebase_partition_bases.
7354 (partition_view_normal): Drop want_bases parameter.
7355 (partition_view_bitmap): Likewise.
7356 * tree-ssa-live.h: Adjust declarations.
7357 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7358 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7359 default defs at the entry point.
7360 (dump_part_var_map): New.
7361 (compute_optimized_partition_bases): New, called by...
7362 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7363 of compute_samebase_partition_bases. Adjust.
7364 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7365 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7366 (ssa_default_def_partition): New.
7367 (get_rtl_for_parm_ssa_default_def): New.
7368 (align_local_variable, add_stack_var): Support anonymous SSA
7370 (defer_stack_allocation): Likewise. Declare earlier.
7371 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7372 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7373 Do no record deferred-allocation marker in
7374 SA.partition_to_pseudo.
7375 (expand_stack_vars): Adjust check for the marker in it.
7376 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7377 redundant MEM attr setting.
7378 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7380 (expand_one_stack_var): ... this. New wrapper to check and
7381 skip already expanded SSA partitions.
7382 (record_alignment_for_reg_var): New, factored out of...
7383 (expand_one_var): ... this.
7384 (expand_one_ssa_partition): New.
7385 (adjust_one_expanded_partition_var): New.
7386 (expand_one_register_var): Check and skip already expanded SSA
7388 (expand_used_vars): Don't create DECLs for anonymous SSA
7389 names. Expand all SSA partitions, then adjust all SSA names.
7390 (pass::execute): Replace the loops that set
7391 SA.partition_to_pseudo from partition leaders and cleared
7392 DECL_RTL for multi-location variables, and that which used to
7393 rename vars and set attrs, with one that clears DECL_RTL and
7394 checks that PARMs and RESULTs default_defs match DECL_RTL.
7395 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7396 * emit-rtl.c: Include stor-layout.h.
7397 (set_reg_attrs_for_parm): Handle NULL decl.
7398 (set_reg_attrs_for_decl_rtl): Take mode from expression if
7400 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7401 rather than its possibly-NULL DECL.
7402 * explow.c (promote_ssa_mode): New.
7403 * explow.h (promote_ssa_mode): Declare.
7404 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7405 (read_complex_part): Export.
7406 * expr.h (read_complex_part): Declare.
7407 * cfgexpand.h (parm_maybe_byref_p): Declare.
7408 * function.c: Include cfgexpand.h.
7409 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7410 (use_register_for_parm_decl): Wrapper for the above to
7411 special-case the result_ptr.
7412 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7413 (split_complex_args): Take assign_parm_data_all argument.
7414 Pass it to rtl_for_parm. Set up rtl and context for split
7415 args. Reset complex parm before fetching its default decl
7417 (assign_parms_unsplit_complex): Use the default-def complex
7418 parm rtl if it matches the components.
7419 (assign_parms_augmented_arg_list): Adjust.
7420 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7421 multiple locations. Recognize split complex args.
7422 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7423 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7424 (assign_parm_setup_block): Prefer SSA-assigned location, and
7425 fill in its address if the memory location of a maybe-byref
7426 parm was not assigned by cfgexpand.
7427 (assign_parm_setup_reg): Likewise. Adjust its mode as
7428 needed. Use entry_parm for equiv if stack_parm is NULL. Make
7429 sure passed_pointer parms don't need conversion. Copy address
7431 (assign_parm_setup_stack): Prefer SSA-assigned location.
7432 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7433 rtl before testing for pointer bounds. Special-case result_ptr.
7434 (expand_function_start): Maybe reset DECL_RTL of result.
7435 Prefer SSA-assigned location for result and static chain.
7436 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
7437 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
7438 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7439 anonymous SSA names. Use promote_ssa_mode.
7440 (get_temp_reg): Likewise.
7441 (remove_ssa_form): Adjust.
7442 * stor-layout.c (layout_decl): Don't set mem attributes of
7444 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7445 and get its reg_usage for reg invalidation.
7446 (compute_bb_dataflow): Pass it insn.
7447 (emit_notes_in_bb): Likewise.
7449 2015-08-14 Marek Polacek <polacek@redhat.com>
7451 * tree-core.h (tree_base): Fix typo.
7453 2015-08-14 Marek Polacek <polacek@redhat.com>
7456 * gimple.c (infer_nonnull_range_by_attribute): Check that the
7457 nonnull argument position is not outside function arguments.
7459 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
7462 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
7463 'lconst_atomic' with 'const_atomic'.
7464 (atomic_fetch_<optab><mode>): Likewise.
7465 (atomic_<optab>_fetch<mode>): Likewise.
7466 * config/aarch64/iterators.md (lconst-atomic): Move below
7468 (const_atomic): New.
7470 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
7471 Bernd Schmidt <bernds@codesourcery.com>
7473 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
7475 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
7476 (DWARF2_DEBUGGING_INFO): Don't define.
7477 * debug.h (dwarf2_lineno_debug_hooks): Declare.
7478 * toplev.c (process_options): Add a case for it.
7479 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
7480 (dwarf2out_init): Skip most initializations if
7481 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
7483 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
7484 DWARF2_LINENO_DEBUGGING_INFO.
7485 * opts.c (set_debug_level): Likewise.
7487 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
7489 * config/arm/types.md (is_neon_type): Add missing types.
7491 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7493 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
7495 * config/i386/i386.c (PTA_SKYLAKE): New macros.
7496 (processor_alias_table): Add skylake description.
7497 (enum processor_model): Add skylake processor.
7498 (arch_names_table): Add skylake record.
7499 * doc/invoke.texi: Add skylake item.
7501 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
7503 * ira-int.h: Include recog.h.
7504 * ira-build.c: Don't include recog.h.
7505 * ira-color.c: Likewise.
7506 * ira-conflicts.c: Likewise.
7507 * ira-costs.c: Likewise.
7508 * ira-emit.c: Likewise.
7509 * ira-lives.c: Likewise.
7511 * sched-deps.c: Likewise.
7512 * sel-sched.c: Likewise.
7513 * target-globals.c: Likewise.
7515 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
7518 * reload1.c (elimination_costs_in_insn): Make it obvious to the
7519 compiler that the n_dups and n_operands loop bounds are invariant.
7521 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7523 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
7524 expressions in A and B.
7526 2015-08-13 Richard Biener <rguenther@suse.de>
7528 * tree.c (nonnull_arg_p): Move from ...
7529 * tree-vrp.c (nonnull_arg_p): ... here.
7530 * tree.h (nonnull_arg_p): Declare.
7531 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
7532 here, register ptr != 0 for nonnull_arg_p pointer arguments.
7533 Properly initialize static chain and by-reference result pointer.
7534 (run_scc_vn): Adjust.
7536 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
7538 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
7541 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
7543 * config/aarch64/aarch64-protos.h
7544 (aarch64_gen_atomic_cas): Declare.
7545 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
7546 Choose appropriate instruction pattern for the target.
7547 (aarch64_gen_atomic_cas): New.
7548 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
7549 (atomic_compare_and_swap<mode>_1): Rename to
7550 aarch64_compare_and_swap<mode>. Fix some indentation.
7551 (aarch64_compare_and_swap<mode>_lse): New.
7552 (aarch64_atomic_cas<mode>): New.
7554 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
7556 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
7559 2015-08-13 Richard Biener <rguenther@suse.de>
7561 PR tree-optimization/67191
7562 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
7563 assert we value-numbered last stmts operand because it can validly
7564 trigger for unreachable code.
7566 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7568 PR rtl-optimization/67103
7569 * ifcvt.c (noce_try_store_flag_constants): Move
7570 x = (-(test != 0) & (b - a)) + a transformation to...
7571 (noce_try_cmove): ... Here. Try it if normal conditional
7574 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
7576 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
7578 * config/mips/mips.md (processor): Remove w32 and w64.
7580 2015-08-13 Richard Biener <rguenther@suse.de>
7582 PR tree-optimization/66502
7583 PR tree-optimization/67167
7584 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
7586 (vn_phi_lookup): Adjust.
7587 (vn_phi_insert): Likewise.
7588 (visit_phi): Prefer to value-number to another PHI node
7589 over value-numbering to a PHI argument.
7590 (init_scc_vn): Mark DFS back edges.
7592 2015-08-13 Richard Biener <rguenther@suse.de>
7594 * gimple.h (gcall::code_): New constant static member.
7595 (gcond::code_): Likewise.
7596 * gimple.c (gcall::code_): Define.
7597 (gcond::code_): Likewise.
7598 (is_a_helper <const gcond *>): Add.
7599 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
7600 and forward to a new gcall overload with less checking and a
7601 cheaper way to access the operand.
7602 (gimple_call_lhs_ptr): Likewise.
7603 (gimple_call_set_lhs): Likewise.
7604 (gimple_call_internal_p): Likewise.
7605 (gimple_call_with_bounds_p): Likewise.
7606 (gimple_call_set_with_bounds): Likewise.
7607 (gimple_call_internal_fn): Likewise.
7608 (gimple_call_set_ctrl_altering): Likewise.
7609 (gimple_call_ctrl_altering_p): Likewise.
7610 (gimple_call_fntype): Likewise.
7611 (gimple_call_fn): Likewise.
7612 (gimple_call_fn_ptr): Likewise.
7613 (gimple_call_set_fndecl): Likewise.
7614 (gimple_call_fndecl): Likewise.
7615 (gimple_call_chain): Likewise.
7616 (gimple_call_num_args): Likewise.
7617 (gimple_call_arg): Likewise.
7618 (gimple_call_arg_ptr): Likewise.
7619 (gimple_call_set_arg): Likewise.
7620 (gimple_call_noreturn_p): Likewise.
7621 (gimple_cond_code): Likewise.
7622 (gimple_cond_lhs): Likewise.
7623 (gimple_cond_rhs): Likewise.
7624 (gimple_has_lhs): Reduce checking.
7626 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7629 * match.pd (div (mult @0 @1) @1) : New simplifier.
7631 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7634 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
7635 predicate to allow construction of vector constants using the
7636 VSLDOI vector shift instruction.
7638 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
7641 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
7642 the number of bytes to be shifted left and filled in with either
7643 all zero or all one bits.
7644 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
7646 (output_vec_const_move): On power8, generate XXLORC to generate
7647 a vector constant with all 1's. Do a split if we need to use a
7650 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
7651 properly test for the MSB.
7653 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
7654 vector constants that can be created with VSLDOI.
7656 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7659 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7660 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7661 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7662 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7663 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7664 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7665 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7666 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7667 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7669 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
7671 * config/xtensa/constraints.md (define_constraint "Y"): New
7673 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
7674 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7675 * config/xtensa/predicates.md (move_operand): Match constants
7676 and symbols in the presence of TARGET_AUTO_LITPOOLS.
7677 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
7678 immediate references to TLS data.
7679 (xtensa_emit_move_sequence): Don't force constants to memory in
7680 the presence of TARGET_AUTO_LITPOOLS.
7681 (print_operand): Add 'y' format, same as default, but capable of
7682 printing SF mode constants as well.
7683 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
7684 (movsf_internal): Add movi pattern that loads literal.
7685 (movsf, movdf): Don't force constants to memory in the presence
7686 of TARGET_AUTO_LITPOOLS.
7687 (movdf_internal): Add 'Y' constraint.
7688 * config/xtensa/xtensa.opt (mauto-litpools): New option.
7689 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
7691 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
7693 * config/arm/arm-fpus.def: Replace booleans with feature flags.
7695 * config/arm/arm.c (ARM_FPU): Update macro.
7696 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
7697 (TARGET_FP16): Likewise.
7698 (TARGET_CRYPTO): Likewise.
7699 (TARGET_NEON): Likewise.
7700 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
7703 2015-08-12 Tom de Vries <tom@codesourcery.com>
7707 * doc/install.texi: Remove --with_host_libstdcxx item. Update
7708 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
7709 accordingly. Mention default for --with-stage1-ldflags.
7711 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
7713 * config/arm/arm.h (arm_fpu_feature_set): New.
7714 (ARM_FPU_FSET_HAS): New.
7718 (FPU_FL_CRYPTO): New.
7720 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7722 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
7723 after -mcmodel=large -fPIC sorry.
7725 2015-08-12 Richard Biener <rguenther@suse.de>
7727 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
7728 comparison operand order and commutative ternary op operand order.
7729 (sccvn_dom_walker::cond_stack): New state to track temporary
7731 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
7733 (sccvn_dom_walker::record_cond): Add a single temporary conditional
7735 (sccvn_dom_walker::record_conds): Add a temporary conditional
7736 expressions and all related expressions also true/false.
7737 (sccvn_dom_walker::before_dom_children): Record temporary
7738 expressions based on the controlling condition of a single
7739 predecessor. When trying to simplify a conditional statement
7740 lookup expressions we might have inserted earlier.
7742 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
7745 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
7746 to ARM core registers.
7748 2015-08-12 Nathan Sidwell <nathan@acm.org>
7750 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
7751 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
7753 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
7755 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
7757 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
7759 2015-08-12 Richard Biener <rguenther@suse.de>
7761 * gimple.h (remove_pointer): New trait.
7762 (GIMPLE_CHECK2): New inline template function.
7763 (gassign::code_): New constant static member.
7764 (is_a_helper<const gassign *>): Add.
7765 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
7766 and forward to a new gassign overload with less checking and a
7767 cheaper way to access the operand.
7768 (gimple_assign_lhs_ptr): Likewise.
7769 (gimple_assign_set_lhs): Likewise.
7770 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
7772 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
7774 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
7776 (gimple_assign_rhs_code): Likewise.
7777 * gimple.c (gassign::code_): Define.
7779 2015-08-12 Richard Biener <rguenther@suse.de>
7781 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7782 Eliminate edges marked as not executable by SCCVN.
7783 * tree-ssa-sccvn.c: Include gimple-iterator.h.
7784 (cond_dom_walker): Rename to sccvn_dom_walker.
7785 (sccvn_dom_walker::before_dom_children): Value-number defs
7787 (run_scc_vn): Remove loop value-numbering all SSA names.
7788 Drop not visited SSA names to varying.
7790 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7792 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7793 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7794 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7795 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7796 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7797 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7798 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7799 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7800 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7802 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
7805 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
7806 to enum feature_priority and feature_list.
7807 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
7808 and isa_names_table.
7810 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
7812 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
7815 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7819 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
7820 account when deciding what was the command-line status.
7822 2015-08-11 Nathan Sidwell <nathan@acm.org>
7824 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
7826 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
7827 we're not the only contributor to target phi.
7829 2015-08-11 Jiong Wang <jiong.wang@arm.com>
7831 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
7834 2015-08-11 Tom de Vries <tom@codesourcery.com>
7836 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
7838 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
7840 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
7842 * config/i386/i386.md (cpu): Remove knl.
7844 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7848 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
7849 open-coded sequence.
7850 * omp-low.c (oacc_process_reduction_data): Remove handline of
7851 GOMP_DEVICE_HOST_NONSHM.
7853 * lto-streamer-in.c (lto_input_mode_table): Adjust to
7854 GET_MODE_INNER changes.
7856 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7857 Ilya Verbin <ilya.verbin@intel.com>
7859 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
7861 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7863 * doc/options.texi (EnabledBy): Document that the argument must be
7865 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
7866 Not enabled by -Wall.
7867 * optc-gen.awk: Give nicer error messages. Detect if the argument
7868 of EnabledBy is not a Common option.
7869 * common.opt (Wnull-dereference): Not enabled by -Wall.
7870 * opt-functions.awk (lang_enabled_by): Nicer error messages.
7872 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
7874 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
7875 model == 0x4f as Broadwell.
7877 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
7879 PR rtl-optimization/67028
7880 * combine.c (simplify_comparison): Fix comment. Rearrange code.
7881 Add test to see if a const_int fits in the new mode.
7883 2015-08-07 DJ Delorie <dj@redhat.com>
7885 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
7887 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
7889 PR rtl-optimization/67029
7890 * ira-color.c: Include "recog.h" before including "ira-int.h".
7891 * target-globals.c: Likewise.
7892 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
7893 adds an alternative_mask argument and use it instead of
7894 preferred_alternatives.
7895 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
7896 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
7897 * sched-deps.c: Include "ira-int.h" after including "ira.h".
7898 (sched_analyze_insn): Update call to
7899 ira_implicitly_set_insn_hard_regs.
7900 * sel-sched.c: Include "ira-int.h" after including "ira.h".
7901 (implicit_clobber_conflict_p): Update call to
7902 ira_implicitly_set_insn_hard_regs.
7904 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
7906 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
7908 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
7911 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
7912 currently_expanding_to_rtl is set.
7914 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
7916 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
7917 * configure: Regenerate.
7919 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7920 Jiong Wang <jiong.wang@arm.com>
7922 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7923 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7924 (REG_CLASS_NAMES): Likewise.
7925 (REG_CLASS_CONTENTS): Likewise.
7926 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7927 (aarch64_register_move_cost): Likewise.
7928 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7930 * config/aarch64/constraints.md (Uc0): New constraint.
7932 2015-08-06 Jiong Wang <jiong.wang@arm.com>
7934 * config/aarch64/constraints.md (Usf): Add the test of
7935 aarch64_is_noplt_call_p.
7937 2015-08-06 Jiong Wang <jiong.wang@arm.com>
7939 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
7941 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
7942 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
7943 (call_symbol): Likewise.
7945 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7947 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
7948 for vectorizing multiplication patterns.
7949 * tree-vectorizer.h: Adjust the number of patterns.
7951 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
7953 * config/i386/sse.md (*vec_concatv2df): Declare added
7954 alternatives as sselog type.
7956 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7958 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
7961 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7963 * config/s390/s390.c (s390_expand_tbegin): Expand either
7964 tbegin_1_z13 or tbegin_1 depending on VX flag.
7965 * config/s390/s390.md ("tbegin_1_z13"): New expander.
7967 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7969 * config/s390/s390.opt: Clarify description for -mzvector
7970 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
7973 2015-08-06 Richard Biener <rguenther@suse.de>
7975 * gimple.h (gimple_call_set_fn): Access op member directly.
7976 (gimple_call_chain_ptr): Likewise.
7977 (gimple_call_set_chain): Likewise.
7978 (gimple_cond_lhs_ptr): Likewise.
7979 (gimple_cond_set_lhs): Likewise.
7980 (gimple_cond_rhs_ptr): Likewise.
7981 (gimple_cond_set_rhs): Likewise.
7982 (gimple_cond_true_label): Likewise.
7983 (gimple_cond_set_true_label): Likewise.
7984 (gimple_cond_set_false_label): Likewise.
7985 (gimple_cond_false_label): Likewise.
7986 (gimple_label_label): Likewise.
7987 (gimple_label_set_label): Likewise.
7988 (gimple_goto_set_dest): Likewise.
7989 (gimple_asm_input_op): Likewise.
7990 (gimple_asm_input_op_ptr): Likewise.
7991 (gimple_asm_set_input_op): Likewise.
7992 (gimple_asm_output_op): Likewise.
7993 (gimple_asm_output_op_ptr): Likewise.
7994 (gimple_asm_set_output_op): Likewise.
7995 (gimple_asm_clobber_op): Likewise.
7996 (gimple_asm_set_clobber_op): Likewise.
7997 (gimple_asm_label_op): Likewise.
7998 (gimple_asm_set_label_op): Likewise.
7999 (gimple_switch_index): Likewise.
8000 (gimple_switch_index_ptr): Likewise.
8001 (gimple_return_retval_ptr): Likewise.
8002 (gimple_return_retval): Likewise.
8003 (gimple_return_set_retval): Likewise.
8004 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
8005 (gimple_switch_label): Likewise.
8006 (gimple_switch_set_label): Likewise.
8008 2015-08-06 Richard Biener <rguenther@suse.de>
8010 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8011 bool comparison canonicalization and restrict to integers.
8013 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
8015 * coretypes.h (enum symbol_visibility): Relocate here.
8016 * flag-types.h (enum symbol_visibility): Remove.
8017 * tree-core.h (enum symbol_visibility): Remove.
8019 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
8022 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8023 for no_split_stack function attribute along with
8025 (rs6000_expand_split_stack_prologue): Likewise.
8027 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8028 Jeff Law <law@redhat.com>
8031 * doc/invoke.texi (Wnull-dereference): New.
8032 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8033 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8034 Warn for potential NULL dereferences.
8035 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8036 * ubsan.c (instrument_nonnull_arg): Call
8037 infer_nonnull_range_by_attribute.
8038 (instrument_nonnull_return): Likewise.
8039 * common.opt (Wnull-dereference); New.
8040 * gimple.c (infer_nonnull_range): Remove bool arguments.
8041 (infer_nonnull_range_by_dereference): New.
8042 (infer_nonnull_range_by_attribute): New.
8043 * gimple.h: Update declarations.
8045 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8047 * gensupport.c (sequence_num): Replace with...
8048 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8049 ...these new variables.
8050 (init_rtx_reader_args_cb): Update accordingly.
8051 (get_num_code_insns): Likewise.
8052 (read_md_rtx): Rework to use a while loop and get_c_test.
8053 Use the new counters. Remove redundant DEFINE_SUBST case.
8054 * genoutput.c (gen_split): Delete.
8055 (main): Don't call it.
8057 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8059 * gensupport.h (get_c_test): Declare.
8060 * gensupport.c (get_c_test): New function.
8061 * genconditions.c (main): Use it.
8062 * genrecog.c (validate_pattern): Likewise.
8063 (match_pattern_1): Likewise. Remove c_test argument.
8064 (match_pattern): Update accordingly and remove c_test argument.
8065 (main): Update accordingly.
8067 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8069 * gensupport.h (get_num_insn_codes): Declare.
8070 * gensupport.c (get_num_insn_codes): New function.
8071 * genattrtab.c (optimize_attrs): Rename max_insn_code to
8073 (main): Likewise. Use get_num_insn_codes.
8074 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8076 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8079 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8080 is zero- rather than sign-extended.
8082 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8084 * target-insns.def (can_extend): Delete.
8086 2015-08-05 Richard Biener <rguenther@suse.de>
8088 PR tree-optimization/67121
8089 * tree-if-conv.c (combine_blocks): Clear range-info produced
8090 by stmts no longer executed conditionally.
8092 2015-08-05 Nick Clifton <nickc@redhat.com>
8094 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8095 to allow identical far pointers to remain.
8097 2015-08-05 Richard Biener <rguenther@suse.de>
8100 * match.pd: Compare address bases with == if they are decls
8101 or SSA names, not operand_equal_p. Otherwise fail.
8103 2015-08-05 Richard Biener <rguenther@suse.de>
8105 PR tree-optimization/67055
8106 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8109 * g++.dg/torture/pr67055.C: New testcase.
8111 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8113 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8115 (define_attr "enabled"): Handle avx521vl and noavx512vl.
8116 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8117 AVX-512 alternative out of SSE.
8118 (define_insn "*vec_concatv2df"): Ditto.
8120 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8122 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8123 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8124 CODE_FOR_avx_ptestv4di.
8125 * config/i386/sse.md (define_mode_iterator V_AVX): New.
8126 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8127 (define_insn "avx_ptest256"): Merge this ...
8128 (define_insn "sse4_1_ptest"): And this ...
8129 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8131 2015-08-05 Richard Biener <rguenther@suse.de>
8133 PR tree-optimization/67109
8134 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8135 against too big groups. Print whether this is a load or store
8136 group. Rename from ...
8137 (vect_analyze_group_access): ... this which is now a wrapper
8138 dissolving an invalid group.
8139 (vect_analyze_data_ref_accesses): Print whether this is a load
8142 2015-08-05 Richard Biener <rguenther@suse.de>
8145 * match.pd: Guard const_binop result checking against NULL_TREE
8148 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
8150 * cse.c (cse_insn): Restoring old behaviour for src_eqv
8151 when dest and value in the REG_EQUAL are same and dest
8154 2015-08-04 Anatoly Sokolov <aesok@post.ru>
8156 * config/moxie/moxie.h (PRINT_OPERAND,
8157 PRINT_OPERAND_ADDRESS): Remove macros.
8158 * config/moxie/moxie-protos.h (moxie_print_operand,
8159 moxie_print_operand_address): Remove declaration.
8160 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8161 TARGET_PRINT_OPERAND_ADDRESS): Define.
8162 (moxie_print_operand, moxie_print_operand_address): Make static.
8164 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8167 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8168 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8170 2015-08-04 Richard Biener <rguenther@suse.de>
8172 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8174 (dt_operand::gen_gimple_expr): Adjust.
8176 2015-08-04 Richard Biener <rguenther@suse.de>
8178 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8179 bool compares on RHS.
8180 * match.pd: Add X ==/!= !X is false/true pattern.
8182 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
8184 * config/aarch64/aarch64.c: Change inner loop statement cost
8185 to be consistent with other targets.
8187 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
8189 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8192 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
8194 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8195 (machine_function): Remove pseudos field.
8197 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8199 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8200 Exit early and use target_option_current_node if processing current
8203 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8205 * doc/extend.texi (AArch64 Function Attributes): New node.
8206 (AArch64 Pragmas): Likewise.
8208 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8210 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8211 Initialize simd builtins if TARGET_SIMD.
8212 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8213 Make sure that the builtins are initialized only once no matter how
8214 many times the function is called.
8215 (aarch64_init_builtins): Unconditionally initialize crc builtins.
8216 (aarch64_relayout_simd_param): New function.
8217 (aarch64_simd_expand_args): Use above during argument expansion.
8218 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8219 simd builtins if TARGET_SIMD.
8220 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8222 (aarch64_relayout_simd_types): Likewise.
8224 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8226 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8227 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8228 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8229 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8231 (aarch64_reset_previous_fndecl): New function.
8232 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8234 * config/aarch64/aarch64-c.c: New file.
8235 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8236 Push and pop options at beginning and end. Remove ifdef
8237 __ARM_FEATURE_CRC32.
8238 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8239 Add pragma +nothing+simd and +nothing+crypto where appropriate.
8240 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8241 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8243 (aarch64_register_pragmas): Likewise.
8244 (aarch64_reset_previous_fndecl): Likewise.
8245 (aarch64_process_target_attr): Likewise.
8246 (aarch64_override_options_internal): Likewise.
8248 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8250 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8252 (aarch64_can_inline_p): Likewise.
8253 (TARGET_CAN_INLINE_P): Define.
8255 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8257 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8258 Remove static. Handle OPT_mgeneral_regs_only,
8259 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8260 OPT_momit_leaf_frame_pointer.
8261 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8262 (aarch64_attr_opt_type): New enum.
8263 (aarch64_attribute_info): New struct.
8264 (aarch64_handle_attr_arch): New function.
8265 (aarch64_handle_attr_cpu): Likewise.
8266 (aarch64_handle_attr_tune): Likewise.
8267 (aarch64_handle_attr_isa_flags): Likewise.
8268 (aarch64_attributes): New table.
8269 (aarch64_process_one_target_attr): New function.
8270 (num_occurences_in_str): Likewise.
8271 (aarch64_process_target_attr): Likewise.
8272 (aarch64_option_valid_attribute_p): Likewise.
8273 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8274 * config/aarch64/aarch64-protos.h: Include input.h
8275 (aarch64_handle_option): Declare prototype.
8277 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8279 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8280 * config/aarch64/aarch64.c: Include target-globals.h
8281 (aarch64_previous_fndecl): New variable.
8282 (aarch64_set_current_function): New function.
8283 (TARGET_SET_CURRENT_FUNCTION): Define.
8285 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8287 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8288 (explicit_arch): Likewise.
8289 (x_aarch64_isa_flags): Likewise.
8290 (mgeneral-regs-only): Mark as Save.
8291 (mfix-cortex-a53-835769): Likewise.
8292 (mcmodel=): Likewise.
8293 (mstrict-align): Likewise.
8294 (momit-leaf-frame-pointer): Likewise.
8295 (mtls-dialect): Likewise.
8296 (master=): Likewise.
8297 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8298 (aarch64_isa_flags): Remove extern declaration.
8299 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8300 to indicate success or failure.
8301 (aarch64_validate_march): Likewise.
8302 (aarch64_validate_mtune): Likewise.
8303 (aarch64_isa_flags): Delete.
8304 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8305 instead of aarch64_isa_flags.
8306 (aarch64_get_tune_cpu): New function.
8307 (aarch64_get_arch): Likewise.
8308 (aarch64_override_options): Use above and set up explicit_tune_core
8310 (aarch64_print_extension): Move earlier in file. Add isa_flags
8311 argument and use that instead of the global aarch64_isa_flags.
8312 (aarch64_option_save): New function.
8313 (aarch64_option_restore): Likewise.
8314 (aarch64_option_print): Likewise.
8315 (aarch64_declare_function_name): Likewise.
8316 (aarch64_start_file): Delete.
8317 (TARGET_ASM_FILE_START): Do not define.
8318 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8319 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8322 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8324 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8325 flag_omit_leaf_frame_pointer to 2.
8327 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8329 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8331 (TARGET_FIX_ERR_A53_835769): New macro.
8332 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8333 handling of opts->x_aarch64_fix_a53_err835769.
8334 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8335 than aarch64_fix_a53_err835769.
8336 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8337 * config/aarch64/aarch64-linux.h: Likewise.
8339 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
8341 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8342 ix86_expand_int_movcc as boolean.
8344 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8346 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8347 (aarch64_cpu_string): Likewise.
8348 (aarch64_tune_string): Likewise.
8349 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8350 (aarch64_parse_extension): Return aarch64_parse_opt_result.
8351 Add extra argument to put result into.
8352 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
8353 (aarch64_parse_cpu): Add arguments to put results into. Return
8354 aarch64_parse_opt_result.
8355 (aarch64_parse_tune): Likewise.
8356 (aarch64_override_options_after_change_1): New function.
8357 (aarch64_override_options_internal): New function.
8358 (aarch64_validate_mcpu): Likewise.
8359 (aarch64_validate_march): Likewise.
8360 (aarch64_validate_mtune): Likewise.
8361 (aarch64_override_options): Update to reflect above changes.
8362 Move some logic into aarch64_override_options_internal.
8363 Initialize target_option_default_node and target_option_current_node.
8364 (aarch64_override_options_after_change): Move logic into
8365 aarch64_override_options_after_change_1 and call it with global_options.
8366 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8367 flag values from that.
8369 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8371 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8372 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8373 * config/aarch64/aarch64.c (struct processor): Add arch field.
8374 (all_architectures): Handle above, move above all_cores.
8375 (all_cores): Handle above.
8376 (aarch64_parse_arch): Handle above changes.
8377 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8378 above. Update comments.
8379 (armv8.1-a): Likewise.
8380 * config/aarch64/aarch64-cores.def: Update according to above.
8381 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8382 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8383 aarch64_arch_driver_info.
8385 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8387 * config/aarch64/aarch64.c (struct processor): Add ident field.
8388 Rename core sched_core.
8389 (all_cores): Handle above changes.
8390 (all_architectures): Likewise.
8391 (aarch64_parse_arch): Likewise.
8392 (aarch64_override_options): Likewise.
8394 2015-08-04 Richard Biener <rguenther@suse.de>
8396 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8397 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8398 comparisons embedded in [VEC_]COND_EXPRs.
8400 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
8402 * tree-if-conv.c: Fix various typos in comments.
8403 * tree-vect-stmts.c: Likewise.
8405 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8407 PR tree-optimization/67043
8408 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8409 preheader after hoisting invariant in it.
8410 (find_defs): Force recomputation of all luids.
8412 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
8414 * config/rs6000/htm.md (tabort.): Restrict the source operand to
8415 using a base register.
8417 2015-08-03 David Malcolm <dmalcolm@redhat.com>
8419 * main.c (main): Pass in NULL for toplev's external_timer.
8420 * timevar.c: Include coretypes.h.
8421 (class timer::named_items): New.
8422 (timer::named_items::named_items): New.
8423 (timer::named_items::~named_items): New.
8424 (timer::named_items::push): New.
8425 (timer::named_items::pop): New.
8426 (timer::named_items::print): New.
8427 (timer::timer): Initialize field "m_jit_client_items".
8428 (timer::~timer): New.
8429 (timer::push): Move bulk of implementation to...
8430 (timer::push_internal): ...here. New function.
8431 (timer::pop): Move bulk of implementation to...
8432 (timer::pop_internal): ...here. New function.
8433 (timer::push_client_item): New.
8434 (timer::pop_client_item): New.
8435 (timer::print_row): New function, taken from timer::print.
8436 (timer::print): Print "GCC items" header if we also have client
8437 items. Move row-printing to timer::print_row. Print any client
8439 (timer::get_topmost_item_name): New method.
8440 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
8441 (TV_JIT_CLIENT_CODE): New.
8442 * timevar.h (timer::push_client_item): New declaration.
8443 (timer::pop_client_item): New declaration.
8444 (timer::get_topmost_item_name): New method.
8445 (timer::push_internal): New declaration.
8446 (timer::pop_internal): New declaration.
8447 (timer::print_row): New declaration.
8448 (timer::named_items): New declaration.
8449 (timer::m_jit_client_items): New field.
8450 (timer): Add friend class named_items.
8451 (auto_timevar::auto_timevar): Add timer param.
8452 (auto_timevar::~auto_timevar): Use field "m_timer".
8453 (auto_timevar::m_timer): New field.
8454 * toplev.c (initialize_rtl): Add g_timer as param when
8455 constructing auto_timevar instance.
8456 (toplev::toplev): Add "external_timer" param, and use it to
8457 initialize the "g_timer" global if non-NULL.
8458 (toplev::~toplev): If this created "g_timer", delete it.
8459 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
8460 with "external_timer" timer *.
8462 2015-08-03 Alexander Basov <coohpt@gmail.com>
8467 * cfgexpand.c (expand_one_var): Add check if stack is going to
8468 be used in naked function.
8469 * expr.c (expand_expr_addr_expr_1): Remove excess checking
8470 whether expression should not reside in MEM.
8471 * function.c (use_register_for_decl): Do not use registers for
8472 non-register things (volatile, float, BLKMode) in naked functions.
8474 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
8477 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
8478 Adjust splits to match new pattern.
8480 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8482 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
8485 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
8486 point in VSX registers.
8488 * config/rs6000/constraints.md (wb constraint): Document unused
8490 (we constraint): Likewise.
8491 (wo constraint): Likewise.
8492 (wp constraint): New constraint for IEEE 128-bit floating point in
8494 (wq constraint): Likewise.
8496 * config/rs6000/predicates.md (easy_fp_constant): Add support for
8497 IEEE 128-bit floating point in VSX registers.
8498 (easy_scalar_constant): Likewise.
8500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
8501 constraints (wp, wq) for IEEE 128-bit floating point in VSX
8503 (rs6000_init_hard_regno_mode_ok): Likewise.
8505 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
8506 floating point in VSX registers.
8515 (vsx_le_permute_<mode>): Add support to properly swap bytes for
8516 IEEE 128-bit floating point in VSX registers on little endian.
8517 (vsx_le_undo_permute_<mode>): Likewise.
8518 (vsx_le_perm_load_<mode>): Likewise.
8519 (vsx_le_perm_store_<mode>): Likewise.
8520 (splitters for IEEE 128-bit fp moves): Likewise.
8522 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
8525 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
8526 floating point in VSX registers.
8529 * doc/md.text (Machine Constraints): Document wp and wq
8530 constraints on PowerPC.
8532 2015-08-03 Jeff Law <law@redhat.com>
8535 PR gcov-profile/66899
8536 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
8537 iterate over the jump threading paths when an element in the
8538 jump threading paths array is eliminated.
8540 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
8542 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
8544 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
8546 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
8547 is_use_properly_guarded the variable def_preds. Free its
8548 contents before returning.
8549 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
8550 (is_use_properly_guarded): Replace local variable def_preds with
8551 a parameter. Adjust accordingly. Only update *def_preds if it's
8554 2015-08-03 Richard Biener <rguenther@suse.de>
8556 * genmatch.c (simplify::for_subst_vec): New member.
8557 (binary_ok): New helper for for lowering.
8558 (lower_for): Delay substituting operators into result expressions
8559 if we can merge the results eventually again.
8560 (capture_info::walk_result): Adjust for user_id appearing as
8561 result expression operator.
8562 (expr::gen_transform): Likewise.
8563 (dt_simplify::gen_1): Likewise.
8564 (dt_simplify::gen): Pass not substituted operators to tail
8565 functions or initialize local variable with it.
8566 (decision_tree::gen): Adjust function signature.
8567 * match.pd: Fix tests against global code and add default
8568 cases to switch stmts.
8570 2015-08-03 Richard Biener <rguenther@suse.de>
8572 * genmatch.c (dt_simplify::gen): Create captures array
8573 with an initializer.
8575 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8577 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
8578 the host compiler is affected by placement new aliasing bug.
8579 * configure: Regenerate.
8580 * Makefile.in (ALIASING_FLAGS): New variable.
8581 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
8583 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8586 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
8587 (negmulsf3_vfp): Likewise.
8588 (muldf3negdf_vfp): Disable for -frounding-math.
8589 (mulsf3negsf_vfp): Likewise.
8590 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
8591 fix MULT cost with -frounding-math.
8593 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8595 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
8596 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
8597 explicit. Prefer to add the flag whenever possible.
8598 (noce_process_if_block): Try noce_try_store_flag_constants before
8601 2015-08-03 Richard Biener <rguenther@suse.de>
8603 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
8604 New hash-map to record equivalent transforms.
8605 (dt_node::analyze): Populate the equivalent transforms hash-map.
8606 (dt_simplify::info): Add reference to hash-map entry.
8607 (dt_simplify::gen): If we have split out a function for the
8608 transform, generate a call to it.
8609 (sinfo_hashmap_traits::hash): New function.
8610 (compare_op): New helper function for ...
8611 (sinfo_hashmap_traits::equal_keys): ... this new function.
8612 (decision_tree::gen): Split out common equivalent transforms
8615 2015-08-03 Richard Biener <rguenther@suse.de>
8617 * gimple-fold.c (fold_gimple_assign): Remove folding of
8618 the comparison in COND_EXPRs.
8620 2015-08-03 Richard Biener <rguenther@suse.de>
8622 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
8623 on the rhs of assignments first simplify the embedded
8626 2015-08-03 Richard Biener <rguenther@suse.de>
8628 PR tree-optimization/66917
8629 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
8631 (DR_VECT_AUX): New macro.
8632 (set_dr_misalignment): Adjust.
8633 (dr_misalignment): Likewise.
8634 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8635 Compute whether the base is at least element aligned.
8636 * tree-vect-stmts.c (ensure_base_align): Adjust.
8637 (vectorizable_store): If the base is not element aligned
8638 preserve alignment of the original access if misalignment is unknown.
8639 (vectorizable_load): Likewise.
8641 2015-08-02 Martin Sebor <msebor@redhat.com>
8643 * c-family/c.opt (-Wframe-address): New warning option.
8644 * doc/invoke.texi (Wframe-address): Document it.
8645 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
8646 Clarify possible effects of calling the functions with non-zero
8647 arguments and mention -Wframe-address.
8648 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
8650 2015-08-01 Michael Collison <michael.collison@linaro.org
8651 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8653 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
8654 (*arm_umin_cmp): Likewise.
8656 2015-08-01 Caroline Tice <cmtice@google.com>
8659 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
8661 (vtbl_find_mangled_name): New function.
8662 (vtbl_register_mangled_name): New function.
8663 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
8664 mangled name in mangled name vectors.
8665 (find_or_create_vtbl_map_node): Ditto.
8666 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
8667 update recursion_depth on function entry; pass it to every recursive
8668 call; automatically exit if depth > 25 (give up looking at that point).
8669 (verify_bb_vtables): Initialize recursion_depth and pass it to
8670 var_is_used_for_virtual_call_p.
8671 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
8672 global variable decls.
8673 (vtbl_register_mangled_name): New extern function decl.
8675 2015-08-01 Tom de Vries <tom@codesourcery.com>
8677 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
8679 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
8681 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
8682 operation_no_trapping_overflow. Allow non-overflow operations.
8683 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
8686 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8689 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
8691 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8693 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
8694 Enable for TARGET_32BIT.
8695 (*if_move_neg): Likewise.
8697 2015-07-31 Nick Clifton <nickc@redhat.com>
8699 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
8700 Returns true for __model__.
8701 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8703 2015-07-31 Alan Modra <amodra@gmail.com>
8706 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
8707 (rs6000_emit_prologue): Set it.
8708 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
8710 2015-07-31 Richard Biener <rguenther@suse.de>
8712 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
8713 -> X == (C1 ^ C2) which is already implemented in match.pd.
8714 Remove redundant dispatching to fold_relational_const.
8715 Move unordered self and NaN compares ...
8716 * match.pd: ... as patterns here. Remove some stray captures
8719 2015-07-31 Petr Murzin <petr.murzin@intel.com>
8721 * config/i386/i386.c
8722 (bdesc_special_args): Convert mask type from signed to unsigned for
8724 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
8725 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
8726 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
8727 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
8728 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
8729 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
8730 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
8731 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
8732 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
8733 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
8734 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
8735 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
8736 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
8737 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
8738 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
8739 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
8740 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
8741 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
8742 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
8743 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
8744 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
8745 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
8746 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
8747 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
8748 * config/i386/i386-builtin-types.def
8749 (V16QI_FTYPE_V16SI): Remove.
8750 (V8DF_FTYPE_V8SI): Ditto.
8751 (V8HI_FTYPE_V8DI): Ditto.
8752 (V8SI_FTYPE_V8DI): Ditto.
8753 (V8SF_FTYPE_V8DF): Ditto.
8754 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
8755 (V16HI_FTYPE_V16SI): Ditto.
8756 (V16SF_FTYPE_V16HI): Ditto.
8757 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8758 (V16SF_FTYPE_V16SI): Ditto.
8759 (V4DI_FTYPE_V4DI): Ditto.
8760 (V16SI_FTYPE_V16SF): Ditto.
8761 (V16SF_FTYPE_FLOAT): Ditto.
8762 (V8DF_FTYPE_DOUBLE): Ditto.
8763 (V8DI_FTYPE_INT64): Ditto.
8764 (V8DI_FTYPE_V4DI): Ditto.
8765 (V16QI_FTYPE_V8DI): Ditto.
8766 (UINT_FTYPE_V4SF): Ditto.
8767 (UINT64_FTYPE_V4SF): Ditto.
8768 (UINT_FTYPE_V2DF): Ditto.
8769 (UINT64_FTYPE_V2DF): Ditto.
8770 (V16SI_FTYPE_V16SI): Ditto.
8771 (V8DI_FTYPE_V8DI): Ditto.
8772 (V16SI_FTYPE_PV4SI): Ditto.
8773 (V16SF_FTYPE_PV4SF): Ditto.
8774 (V8DI_FTYPE_PV2DI): Ditto.
8775 (V8DF_FTYPE_PV2DF): Ditto.
8776 (V4DI_FTYPE_PV2DI): Ditto.
8777 (V4DF_FTYPE_PV2DF): Ditto.
8778 (V16SI_FTYPE_PV2SI): Ditto.
8779 (V16SF_FTYPE_PV2SF): Ditto.
8780 (V8DI_FTYPE_PV4DI): Ditto.
8781 (V8DF_FTYPE_PV4DF): Ditto.
8782 (V8SF_FTYPE_FLOAT): Ditto.
8783 (V4SF_FTYPE_FLOAT): Ditto.
8784 (V4DF_FTYPE_DOUBLE): Ditto.
8785 (V8SF_FTYPE_PV4SF): Ditto.
8786 (V8SI_FTYPE_PV4SI): Ditto.
8787 (V4SI_FTYPE_PV2SI): Ditto.
8788 (V8SF_FTYPE_PV2SF): Ditto.
8789 (V8SI_FTYPE_PV2SI): Ditto.
8790 (V16SF_FTYPE_PV8SF): Ditto.
8791 (V16SI_FTYPE_PV8SI): Ditto.
8792 (V8DI_FTYPE_V8SF): Ditto.
8793 (V4DI_FTYPE_V4SF): Ditto.
8794 (V2DI_FTYPE_V4SF): Ditto.
8795 (V64QI_FTYPE_QI): Ditto.
8796 (V32HI_FTYPE_HI): Ditto.
8797 (V8UHI_FTYPE_V8UHI): Ditto.
8798 (V16UHI_FTYPE_V16UHI): Ditto.
8799 (V32UHI_FTYPE_V32UHI): Ditto.
8800 (V2UDI_FTYPE_V2UDI): Ditto.
8801 (V4UDI_FTYPE_V4UDI): Ditto.
8802 (V8UDI_FTYPE_V8UDI): Ditto.
8803 (V4USI_FTYPE_V4USI): Ditto.
8804 (V8USI_FTYPE_V8USI): Ditto.
8805 (V16USI_FTYPE_V16USI): Ditto.
8806 (V2DF_FTYPE_V2DF_UINT64): Ditto.
8807 (V2DI_FTYPE_V2DF_V2DF): Ditto.
8808 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
8809 (V8DF_FTYPE_V8DF_V8DI): Ditto.
8810 (V4SF_FTYPE_V4SF_UINT64): Ditto.
8811 (V4SI_FTYPE_V4SF_V4SF): Ditto.
8812 (V16SF_FTYPE_V16SF_V16SI): Ditto.
8813 (V64QI_FTYPE_V32HI_V32HI): Ditto.
8814 (V32HI_FTYPE_V16SI_V16SI): Ditto.
8815 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8816 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
8817 (V32HI_FTYPE_V64QI_V64QI): Ditto.
8818 (V32HI_FTYPE_V32HI_V32HI): Ditto.
8819 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
8820 (V16SI_FTYPE_V16SI_V4SI): Ditto.
8821 (V16SI_FTYPE_V16SI_V16SI): Ditto.
8822 (V16SI_FTYPE_V32HI_V32HI): Ditto.
8823 (V16SI_FTYPE_V16SI_SI): Ditto.
8824 (V8DI_FTYPE_V8DI_V8DI): Ditto.
8825 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
8826 (V8DI_FTYPE_V16SI_V16SI): Ditto.
8827 (V8DI_FTYPE_V8DI_V2DI): Ditto.
8828 (QI_FTYPE_QI): Ditto.
8829 (SI_FTYPE_SI): Ditto.
8830 (DI_FTYPE_DI): Ditto.
8831 (QI_FTYPE_QI_QI): Ditto.
8832 (QI_FTYPE_QI_INT): Ditto.
8833 (HI_FTYPE_HI_INT): Ditto.
8834 (SI_FTYPE_SI_INT): Ditto.
8835 (DI_FTYPE_DI_INT): Ditto.
8836 (HI_FTYPE_V16QI_V16QI): Ditto.
8837 (SI_FTYPE_V32QI_V32QI): Ditto.
8838 (DI_FTYPE_V64QI_V64QI): Ditto.
8839 (QI_FTYPE_V8HI_V8HI): Ditto.
8840 (HI_FTYPE_V16HI_V16HI): Ditto.
8841 (SI_FTYPE_V32HI_V32HI): Ditto.
8842 (QI_FTYPE_V4SI_V4SI): Ditto.
8843 (QI_FTYPE_V8SI_V8SI): Ditto.
8844 (QI_FTYPE_V2DI_V2DI): Ditto.
8845 (QI_FTYPE_V4DI_V4DI): Ditto.
8846 (QI_FTYPE_V8DI_V8DI): Ditto.
8847 (HI_FTYPE_V16SI_V16SI): Ditto.
8848 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
8849 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
8850 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
8851 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8852 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8853 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
8854 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
8855 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
8856 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8857 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
8858 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
8859 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
8860 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
8861 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
8862 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8863 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8864 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8865 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8866 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8867 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8868 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8869 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8870 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8871 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8872 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8873 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8874 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8875 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8876 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8877 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8878 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8879 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
8880 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
8881 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
8882 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8883 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8884 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8885 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
8886 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
8887 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
8888 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
8889 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
8890 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
8891 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
8892 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
8893 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
8894 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
8895 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8896 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8897 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
8898 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8899 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8900 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
8901 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
8902 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
8903 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
8904 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8905 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8906 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8907 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
8908 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
8909 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8910 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8911 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8912 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
8913 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8914 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8915 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8916 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8917 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8918 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8919 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8920 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8921 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8922 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
8923 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8924 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
8925 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
8926 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
8927 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8928 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8929 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
8930 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
8931 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
8932 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8933 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
8934 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
8935 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8936 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8937 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8938 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
8939 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8940 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
8941 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
8942 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8943 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8944 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8945 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8946 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
8947 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
8948 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
8949 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8950 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8951 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8952 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8953 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
8954 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
8955 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
8956 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
8957 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8958 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8959 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8960 (HI_FTYPE_HI): Ditto.
8961 (HI_FTYPE_V16QI): Ditto.
8962 (SI_FTYPE_V32QI): Ditto.
8963 (DI_FTYPE_V64QI): Ditto.
8964 (QI_FTYPE_V8HI): Ditto.
8965 (HI_FTYPE_V16HI): Ditto.
8966 (SI_FTYPE_V32HI): Ditto.
8967 (QI_FTYPE_V4SI): Ditto.
8968 (QI_FTYPE_V8SI): Ditto.
8969 (HI_FTYPE_V16SI): Ditto.
8970 (QI_FTYPE_V2DI): Ditto.
8971 (QI_FTYPE_V4DI): Ditto.
8972 (QI_FTYPE_V8DI): Ditto.
8973 (V16QI_FTYPE_HI): Ditto.
8974 (V32QI_FTYPE_SI): Ditto.
8975 (V64QI_FTYPE_DI): Ditto.
8976 (V8HI_FTYPE_QI): Ditto.
8977 (V16HI_FTYPE_HI): Ditto.
8978 (V32HI_FTYPE_SI): Ditto.
8979 (V4SI_FTYPE_QI): Ditto.
8980 (V4SI_FTYPE_HI): Ditto.
8981 (V8SI_FTYPE_QI): Ditto.
8982 (V8SI_FTYPE_HI): Ditto.
8983 (V2DI_FTYPE_QI): Ditto.
8984 (V4DI_FTYPE_QI): Ditto.
8985 (HI_FTYPE_HI_HI): Ditto.
8986 (SI_FTYPE_SI_SI): Ditto.
8987 (DI_FTYPE_DI_DI): Ditto.
8988 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8989 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8990 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8991 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8992 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8993 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8994 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8995 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8996 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8997 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8998 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8999 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9000 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9001 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9002 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9003 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9004 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9005 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9006 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9007 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9008 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9009 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9010 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9011 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9012 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9013 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9014 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9015 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9016 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9017 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9018 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9019 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9020 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9021 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9022 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9023 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9024 (V16SI_FTYPE_HI): Ditto.
9025 (V8DI_FTYPE_QI): Ditto.
9026 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9027 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9028 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9029 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9030 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9031 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9032 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9033 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9034 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9035 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9036 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9037 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9038 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9039 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9040 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9041 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9042 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9043 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9044 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9045 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9046 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9047 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9048 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9049 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9050 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9051 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9052 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9053 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9054 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9055 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9056 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9057 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9058 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9059 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9060 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9061 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9062 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9063 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9064 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9065 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9066 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9067 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9068 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9069 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9070 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9071 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9072 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9073 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9074 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9075 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9076 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9077 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9078 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9079 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9080 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9081 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9082 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9083 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9084 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9085 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9086 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9087 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9088 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9089 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9090 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9091 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9092 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9093 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9094 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9095 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9096 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9097 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9098 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9099 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9100 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9101 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9102 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9103 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9104 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9105 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9106 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9107 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9108 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9109 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9110 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9111 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9112 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9113 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9114 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9115 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9116 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9117 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9118 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9119 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9120 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9121 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9122 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9123 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9124 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9125 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9126 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9127 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9128 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9129 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9130 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9131 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9132 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9133 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9134 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9135 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9136 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9137 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9138 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9139 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9140 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9141 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9142 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9143 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9144 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9145 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9146 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9147 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9148 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9149 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9150 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9151 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9152 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9153 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9154 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9155 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9156 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9157 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9158 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9159 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9160 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9161 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9162 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9163 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9164 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9165 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9166 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9167 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9168 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9169 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9170 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9171 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9172 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9173 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9174 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9175 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9176 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9177 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9178 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9179 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9180 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9181 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9182 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9183 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9184 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9185 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9186 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9187 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9188 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9189 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9190 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9191 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9192 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9193 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9194 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9195 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9196 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9197 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9198 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9199 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9200 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9201 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9202 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9203 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9204 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9205 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9206 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9207 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9208 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9209 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9210 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9211 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9212 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9213 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9214 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9215 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9216 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9217 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9218 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9219 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9220 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9221 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9222 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9223 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9224 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9225 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9226 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9227 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9228 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9229 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9230 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9231 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9232 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9233 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9234 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9235 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9236 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9237 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9238 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9239 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9240 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9241 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9242 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9243 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9244 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9245 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9246 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9247 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9248 (QI_FTYPE_V8DF_INT_QI): Ditto.
9249 (QI_FTYPE_V4DF_INT_QI): Ditto.
9250 (QI_FTYPE_V2DF_INT_QI): Ditto.
9251 (HI_FTYPE_V16SF_INT_HI): Ditto.
9252 (QI_FTYPE_V8SF_INT_QI): Ditto.
9253 (QI_FTYPE_V4SF_INT_QI): Ditto.
9254 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9256 2015-07-31 Richard Biener <rguenther@suse.de>
9258 * gimple-fold.c (fold_gimple_assign): Remove folding of
9261 2015-07-31 Tom de Vries <tom@codesourcery.com>
9263 PR tree-optimization/66846
9264 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9265 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9266 (expand_omp_target) [ENABLE_CHECKING]: Same.
9267 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9268 cfun if !LOOPS_NEED_FIXUP.
9269 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
9270 that omp_for already has its own loop struct.
9271 * tree-parloops.c (create_phi_for_local_result)
9272 (create_call_for_reduction): Handle simple latch bb.
9273 (create_parallel_loop): Add simple latch bb to preserve
9274 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
9275 (gen_parallel_loop): Remove call to cancel_loop_tree.
9276 (parallelize_loops): Skip loops that are inner loops of parallelized
9278 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9279 verify_loop_structure.
9281 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9283 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9284 * config/v850/v850.md (RV_REGNUM): New constants.
9285 * config/v850/v850.c (v850_libcall_value): New functions.
9286 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9287 (TARGET_LIBCALL_VALUE): Define.
9289 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9291 * rtl.h (lowpart_subreg): Move in file.
9292 * loop-iv.c (lowpart_subreg): Move to...
9293 * simplify-rtx.c (lowpart_subreg): ...here.
9294 (simplify_binary_operation_1): Use lowpart_subreg instead of
9295 simplify_gen_subreg.
9296 * expr.c (expand_expr_real_2): Ditto.
9297 * emit-rtl.c (gen_lowpart_common): Ditto.
9298 * combine.c (gen_lowpart_for_combine): Ditto.
9299 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9300 expand_debug_source_expr): Ditto.
9302 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
9304 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9305 (expand_builtin_atomic_clear): Remove support for atomic_clear
9308 2015-07-30 Richard Biener <rguenther@suse.de>
9310 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9311 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9312 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
9313 redundant operand canonicalization.
9315 2015-07-30 David Sherwood <david.sherwood@arm.com>
9317 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9318 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9319 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9320 * config/arm/arm.c (neon_valid_immediate): Likewise.
9321 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9322 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9323 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9324 (expand_vec_perm_vpshufb2_vpermq): Likewise.
9325 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9326 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9327 * config/i386/sse.md
9328 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9329 (*ssse3_palignr<mode>_perm): Likewise.
9330 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9331 * config/spu/spu.c (arith_immediate_p): Likewise.
9332 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9333 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9335 2015-07-30 Richard Biener <rguenther@suse.de>
9337 * genmatch.c (decision_tree::gen_gimple): Merge with ...
9338 (decision_tree::gen_generic): ... this into ...
9339 (decision_tree::gen): ... this.
9340 (main): Adjust callers.
9342 2015-07-30 Richard Biener <rguenther@suse.de>
9344 * genmatch.c (verbose): New global.
9345 (warning_at): Add overload with source_location.
9346 (capture_info::capture_info): Add bool whether generating gimple
9347 or generic. Add gimple member.
9348 (capture_info::cinfo): Add capture member.
9349 (capture_info::walk_match): Record capture. Warn on
9351 (capture_info::walk_c_expr): Add more fragments captures cannot
9352 escape through. Warn on escaped captures.
9353 (dt_simplify::gen_1): Warn on operands we force to have no
9355 (main): Initialize verbose.
9356 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9358 2015-07-30 Richard Biener <rguenther@suse.de>
9361 * match.pd: Allow both operands to independently have conversion
9362 when simplifying compares of addresses.
9364 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9368 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9369 around those cases that need one.
9371 2015-07-29 Aditya Kumar <hiraditya@msn.com>
9373 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9375 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
9377 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9378 New. Copied from config/i386/gnu-user.h.
9379 (ASM_COMMENT_START): Likewise.
9380 (DBX_REGISTER_NUMBER): Likewise.
9382 2015-07-29 Richard Biener <rguenther@suse.de>
9384 * gimple-fold.c (fold_gimple_cond): Remove.
9385 (fold_stmt_1): Do not call it.
9387 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
9389 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9390 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9392 * config/aarch64/aarch64-modes.def: Add HFmode.
9394 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9395 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9397 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9398 aarch64_promoted_type): New.
9400 (aarch64_float_const_representable_p): Disable HFmode.
9401 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9402 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9403 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9405 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9406 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9408 * config/aarch64/iterators.md (GPF_F16): New.
9410 2015-07-29 Richard Biener <rguenther@suse.de>
9412 * match.pd: Merge address comparison patterns and make them
9413 handle some more cases.
9415 2015-07-29 Richard Biener <rguenther@suse.de>
9417 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9418 (parser::parse_capture): Add bool argument on whether to reject
9420 (parser::parse_expr): Adjust.
9421 (parser::parse_op): Likewise.
9422 (parser::parse_pattern): Likewise.
9424 2015-07-29 Richard Biener <rguenther@suse.de>
9426 * gimple-fold.c (has_use_on_stmt): New function.
9427 (replace_stmt_with_simplification): Use it to allow
9428 abnormals originally referenced in the stmt.
9429 (fold_stmt_1): Canonicalize operand order.
9431 2015-07-28 David Sherwood <david.sherwood@arm.com>
9433 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
9434 GET_MODE_INNER unconditionally.
9435 * config/spu/spu.c (arith_immediate_p): Likewise.
9436 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
9437 * expmed.c (synth_mult): Remove check for VOIDmode result from
9439 (expand_mult_const): Likewise.
9440 * fold-const.c (fold_binary_loc): Replace call to element_precision
9441 with call to GET_MODE_PRECISION.
9442 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
9444 (emit_mode_inner): Likewise.
9445 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
9447 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
9448 (GET_MODE_UNIT_PRECISION): Likewise.
9449 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
9450 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9451 * stor-layout.c (bitwise_type_for_mode): Update assert.
9452 (element_precision): Remove.
9454 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9456 * target-insns.def (reload_load_address): New targetm instruction
9458 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
9460 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9462 * target-insns.def (atomic_test_and_set): New targetm instruction
9464 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
9465 HAVE_*/gen_* interface.
9467 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9469 * target-insns.def (can_extend, ptr_extend): New targetm instruction
9471 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
9472 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9473 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9474 * rtlanal.c (nonzero_bits1): Likewise.
9475 (num_sign_bit_copies1): Likewise.
9477 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9479 * target-insns.def (eh_return): New targetm instruction pattern.
9480 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
9482 * function.c (thread_prologue_and_epilogue_insns): Remove
9483 preprocessor condition.
9485 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9487 * target-insns.def (indirect_jump): New targetm instruction pattern.
9488 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
9491 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9493 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
9494 instead of nonimmediate_operand. Remove C condiition.
9496 2015-07-28 Richard Biener <rguenther@suse.de>
9498 * match.pd: Add more simplification of address comparisons.
9500 2015-07-28 Richard Biener <rguenther@suse.de>
9502 * match.pd: Re-order two cases in comparison with max/min
9503 value simplification to make it apply for bools.
9505 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9507 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
9508 Handle simple SIGN_EXTEND or ZERO_EXTEND.
9509 (aarch64_rtx_costs): Properly strip extend or extract before
9510 passing down to rtx costs again.
9512 2015-07-28 Nick Clifton <nickc@redhat.com>
9514 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
9515 Optimizes the case where -mes0 is active and a constant symbolic
9517 * config/rl78/rl78-protos.h: Prototype the new function.
9518 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
9520 2015-07-28 Tom de Vries <tom@codesourcery.com>
9522 * tree-parloops.c (reduc_stmt_res): New function.
9523 (initialize_reductions, add_field_for_reduction)
9524 (create_phi_for_local_result, create_loads_for_reductions)
9525 (create_stores_for_reduction, build_new_reduction): Handle case that
9526 reduc_stmt is a phi.
9527 (gather_scalar_reductions): Allow double_reduc reductions.
9529 2015-07-28 Richard Biener <rguenther@suse.de>
9531 * fold-const.c (fold_comparison): Remove equality folding
9532 of decl addresses ...
9533 * match.pd: ... here and merge with existing pattern.
9535 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9537 PR tree-optimization/66828
9538 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
9539 from int64_t to uint64_t.
9541 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
9543 * opts-common.c (read_cmdline_option): List DriverOnly enum values
9544 as valid only in the error message of the driver, not in the
9545 messages of the language compilers.
9547 2015-07-27 Tom de Vries <tom@codesourcery.com>
9549 * tree-parloops.c (gather_scalar_reductions): Simplify function
9552 2015-07-27 Marek Polacek <polacek@redhat.com>
9554 * ipa-devirt.c (types_same_for_odr): Fix typo.
9556 2015-07-27 Jason Merrill <jason@redhat.com>
9559 * dwarf2out.c (gen_inlined_subroutine_die): Check
9560 cgraph_function_possibly_inlined_p.
9562 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
9564 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
9565 Place integer variant first.
9566 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9568 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
9571 * config/arm/arm-builtins.c (enum arm_builtins):
9572 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
9573 (ARM_BUILTIN_NEON_BASE): Rename macro to....
9574 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
9575 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
9576 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
9578 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
9581 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
9582 Add qualifier_lane_index.
9583 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
9584 (arm_getlane_qualifiers): Use qualifier_lane_index.
9585 (arm_lanemac_qualifiers): Rename to...
9586 (arm_mac_n_qualifiers): ...this.
9587 (LANEMAC_QUALIFIERS): Rename to...
9588 (MAC_N_QUALIFIERS): ...this.
9589 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
9590 (arm_setlane_qualifiers): Use qualifier_lane_index.
9591 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
9592 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
9593 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
9594 (arm_expand_neon_builtin): Handle qualifier_lane_index.
9596 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
9597 * config/arm/arm.c (bounds_check): Likewise, improve error message.
9598 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
9599 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
9600 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
9601 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
9602 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
9603 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
9604 qualifiers to TERNOP_IMM.
9605 (vdup_lane): Change qualifiers to GETLANE.
9606 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
9607 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
9608 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
9609 vqdmlsl_n): Change qualifiers to MAC_N.
9611 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
9612 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
9613 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
9614 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
9615 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
9616 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
9617 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
9618 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
9619 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
9620 Remove call to neon_lane_bounds.
9622 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
9624 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9625 Place integer variant first.
9627 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
9629 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
9630 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
9631 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
9632 for armv6kz targets.
9633 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
9634 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
9635 (FL_FOR_ARCH6ZK): Remove.
9636 (FL_FOR_ARCH6KZ): New.
9637 (arm_arch6zk): New declaration.
9638 * config/arm/arm-tables.opt: Regenerate.
9639 * config/arm/arm.c (arm_arch6kz): New.
9640 (arm_option_override): Set arm_arch6kz.
9641 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
9642 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
9643 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
9645 2015-07-27 Marek Polacek <polacek@redhat.com>
9649 * doc/invoke.texi: Document -Wtautological-compare.
9651 2015-07-27 Richard Biener <rguenther@suse.de>
9653 * genmatch.c (decision_tree::gen_gimple): Split out large
9654 subtrees into separate functions.
9655 (decision_tree::gen_generic): Likewise.
9657 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
9659 * config/alpha/alpha.c: Use SUBREG_P predicate.
9660 * config/alpha/predicates.md: Ditto.
9662 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9664 * config.host (s390*-*-*): Include driver-native.c only when
9665 building with s390* as host *and* target.
9667 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
9670 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
9671 T bit register modified_between_p check.
9673 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9675 * config/i386/i386.c: Use SUBREG_P predicate.
9676 * config/i386/i386.md: Ditto.
9677 * config/i386/sse.md: Ditto.
9678 * config/i386/predicates.md: Ditto.
9680 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9683 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
9684 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
9686 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9688 * Makefile.in: Remove use of TREEBROWSER.
9689 * config.in: Regenerated.
9690 * configure: Regenerated.
9691 * configure.ac: Remove definition of TREEBROWSER.
9692 * tree-browser.c: Removed.
9693 * tree-browser.def: Removed.
9695 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9697 * graphite-scop-detection.c: Include gimple-pretty-print.h.
9698 (stmt_simple_for_scop_p): Print when a stmt is not handled in
9700 (scopdet_basic_block_info): Print when a loop or bb cannot be
9701 represented in Graphite.
9703 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9706 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
9707 execution guard when min_size is less than size_needed.
9709 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9711 * doc/install.texi: Document supported versions of ISL.
9713 2015-07-25 Jeff Law <law@redhat.com>
9717 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9718 unable to find X NE 0 in the tables, return X as the simplified
9720 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9721 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9723 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9724 after removing the control flow statement and unnecessary edges.
9726 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
9729 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
9731 PR rtl-optimization/64164
9732 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9733 * tree-ssa-copyrename.c: Removed.
9734 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9735 -ftree-coalesce-vars.
9736 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9737 * common.opt (ftree-copyrename): Ignore.
9738 (ftree-coalesce-inlined-vars): Likewise.
9739 * doc/invoke.texi: Remove the ignored options above.
9740 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9741 * tree-ssa-coalesce.h: ... here.
9742 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9743 headers required by it.
9744 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9745 across variables when flag_tree_coalesce_vars. Check register
9746 use and promoted modes to allow coalescing. Moved to
9747 tree-ssa-coalesce.c.
9748 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9749 with its member functions to tree-ssa-coalesce.c.
9750 (var_map_base_init): Likewise. Renamed to
9751 compute_samebase_partition_bases.
9752 (partition_view_normal): Drop want_bases parameter.
9753 (partition_view_bitmap): Likewise.
9754 * tree-ssa-live.h: Adjust declarations.
9755 * tree-ssa-coalesce.c: Include explow.h.
9756 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9757 default defs at the entry point.
9758 (dump_part_var_map): New.
9759 (compute_optimized_partition_bases): New, called by...
9760 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9761 of compute_samebase_partition_bases. Adjust.
9762 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9763 * cfgexpand.c (leader_merge): New.
9764 (get_rtl_for_parm_ssa_default_def): New.
9765 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9766 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9767 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9768 redundant MEM attr setting.
9769 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9771 (expand_one_stack_var): ... this. New wrapper to check and
9772 skip already expanded SSA partitions.
9773 (record_alignment_for_reg_var): New, factored out of...
9774 (expand_one_var): ... this.
9775 (expand_one_ssa_partition): New.
9776 (adjust_one_expanded_partition_var): New.
9777 (expand_one_register_var): Check and skip already expanded SSA
9779 (expand_used_vars): Don't create DECLs for anonymous SSA
9780 names. Expand all SSA partitions, then adjust all SSA names.
9781 (pass::execute): Replace the loops that set
9782 SA.partition_to_pseudo from partition leaders and cleared
9783 DECL_RTL for multi-location variables, and that which used to
9784 rename vars and set attrs, with one that clears DECL_RTL and
9785 checks that PARMs and RESULTs default_defs match DECL_RTL.
9786 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9787 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9788 * explow.c (promote_ssa_mode): New.
9789 * explow.h (promote_ssa_mode): Declare.
9790 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9791 * function.c: Include cfgexpand.h.
9792 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9793 (use_register_for_parm_decl): Wrapper for the above to
9794 special-case the result_ptr.
9795 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9796 (split_complex_args): Take assign_parm_data_all argument.
9797 Pass it to rtl_for_parm. Set up rtl and context for split
9799 (assign_parms_augmented_arg_list): Adjust.
9800 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9801 multiple locations. Recognize split complex args.
9802 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9803 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9804 (assign_parm_setup_block): Prefer SSA-assigned location.
9805 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9806 if stack_parm is NULL.
9807 (assign_parm_setup_stack): Prefer SSA-assigned location.
9808 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9809 rtl before testing for pointer bounds. Special-case result_ptr.
9810 (expand_function_start): Maybe reset DECL_RTL of result.
9811 Prefer SSA-assigned location for result and static chain.
9812 Factor out DECL_RESULT and SET_DECL_RTL.
9813 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9814 anonymous SSA names. Use promote_ssa_mode.
9815 (get_temp_reg): Likewise.
9816 (remove_ssa_form): Adjust.
9817 * stor-layout.c (layout_decl): Don't set mem attributes of
9819 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9820 and get its reg_usage for reg invalidation.
9821 (compute_bb_dataflow): Pass it insn.
9822 (emit_notes_in_bb): Likewise.
9824 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9826 * config/i386/i386.c (ix86_va_start): Remove
9827 unneeded !TARGET_64BIT check.
9828 (ix86_gimplify_va_arg): Ditto.
9830 2015-07-24 Tom de Vries <tom@codesourcery.com>
9832 * graphite-sese-to-poly.c (build_poly_scop): Always call
9833 rewrite_commutative_reductions_out_of_ssa.
9835 2015-07-24 Tom de Vries <tom@codesourcery.com>
9837 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
9838 flag_associative_math to FLOAT_TYPE_P. Honour
9839 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
9841 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9844 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
9845 and "%qD" in warning_at instead of "%q+D" in warning.
9847 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
9849 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
9850 (ix86_function_abi): Cleanup.
9852 2015-07-24 Michael Darling <darlingm@gmail.com>
9855 * acinclude.m4: Reflects renaming of configure.in to configure.ac
9856 * configure: Likewise
9857 * configure.ac: Likewise
9858 * doc/install.texi: Likewise
9859 * doc/tm.texi: Likewise
9860 * doc/tm.texi.in: Likewise
9862 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9864 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
9865 manually swapping values.
9866 * cse.c (fold_rtx): Likewise.
9867 * lra-eliminations.c (form_sum): Likewise.
9869 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
9872 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
9873 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
9874 (*jcc_1, *jcc_2, jump, simple_return_internal)
9875 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
9876 Set length_nobnd attribute instead of length attribute.
9877 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
9878 (length_nobnd): Remove attribute.
9879 (length): Remove length_nobnd processing.
9881 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
9883 * gimplify.c (omp_default_clause): New function. Reorganize flow
9884 for clarity. Broken out of ...
9885 (omp_notice_variable): ... here.
9887 2015-07-24 Gary Funck <gary@intrepid.com>
9890 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
9891 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
9893 2015-07-24 Tom de Vries <tom@codesourcery.com>
9895 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
9896 exit-first loop transform.
9898 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
9901 * tree-cfg.c (struct replace_decls_d): New struct.
9902 (replace_block_vars_by_duplicates_1): New function.
9903 (replace_block_vars_by_duplicates): Use it to replace the decls
9904 in the value exprs by duplicates.
9906 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9908 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
9909 -shared, -symbolic, -rdynamic.
9911 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9914 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
9915 -dynamic-linker within %{!static %{!shared, and -rdynamic within
9918 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
9921 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
9922 edge summary is available.
9924 2015-07-24 Richard Biener <rguenther@suse.de>
9926 * genmatch.c (struct dt_node): Add statistic fields.
9927 (dt_node::analyze): New method.
9928 (decision_tree::gen_gimple): Call analyze on the root node
9929 and print statistics to stderr.
9930 (decision_tree::gen_generic): Likewise.
9932 2015-07-24 Richard Biener <rguenther@suse.de>
9934 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
9935 against the highest or lowest possible integer ...
9936 * match.pd: ... as patterns here.
9938 2015-07-24 Richard Biener <rguenther@suse.de>
9940 * genmatch.c (struct capture_info): Add same_as field.
9941 (capture_info::capture_info): Initialize same_as.
9942 (capture_info::walk_match): Compute same_as.
9943 (capture_info::walk_result): Compute stuff for the leader.
9944 (capture_info::walk_c_expr): Likewise.
9945 (dt_simplify::gen_1): Only look at leaders when deciding
9946 to force no side-effects or emit side-effects of omitted operands.
9948 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9950 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
9951 reg note to the GPR -> FPR save instructions.
9953 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9955 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
9957 (s390_expand_insv): Don't generate risbg pattern for constant zero
9959 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
9960 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
9963 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9965 * config/s390/s390.c (s390_reorg): Clean up handling of processors
9968 (s390_issue_rate): Likewise.
9969 (s390_sched_reorder): Likewise.
9970 (s390_sched_variable_issue): Likewise.
9971 (s390_loop_unroll_adjust): Likewise.
9972 (s390_option_override): Likewise.
9974 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9976 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
9977 processor capabilities with -march=native.
9978 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
9979 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
9980 (S390_TARGET_BITS_STRING): Macro to simplify specs.
9982 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9984 * config/s390/s390.c (s390_issue_rate): Handle
9985 PROCESSOR_2094_Z9_EC.
9986 (s390_option_override): Likewise.
9987 (s390_adjust_priority): Likewise.
9989 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9991 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
9992 when cross compiling.
9994 2015-07-24 Richard Biener <rguenther@suse.de>
9996 * fold-const.c (maybe_canonicalize_comparison_1): Move
9997 A code CST canonicalization ...
9998 * match.pd: ... to a pattern here.
10000 2015-07-24 Jiong Wang <jiong.wang@arm.com>
10003 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10005 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10006 (HONOR_REG_ALLOC_ORDER): Define.
10008 2015-07-24 Richard Biener <rguenther@suse.de>
10010 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10011 * fold-const.c (fold_comparison): Move parameter does not
10012 alias &local simplification ...
10013 * match.pd: ... as a pattern here.
10015 2015-07-24 Richard Biener <rguenther@suse.de>
10017 * gimple-fold.c (replace_stmt_with_simplification): Special-case
10018 valueizing call operands.
10019 * gimple-match-head.c (maybe_push_res_to_seq): Take
10020 number of call arguments from ops array.
10021 (do_valueize): New function.
10022 (gimple_simplify): Return true if valueization changed
10023 any operand even if the result didn't simplify further.
10025 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10027 PR middle-end/25530
10028 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10030 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10032 PR middle-end/25529
10033 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10035 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10037 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10040 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10042 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10045 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
10047 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10048 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
10050 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10051 ms_va_list_type_node initialization.
10053 2015-07-23 Jeff Law <law@redhat.com>
10056 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10057 unable to find X NE 0 in the tables, return X as the simplified
10059 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10060 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10061 to VISISTED_BBS. */
10062 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10063 after removing the control flow statement and unnecessary edges.
10065 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10067 * tree-pass.h (get_current_pass_name): Removed.
10069 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10071 PR rtl-optimization/64164
10072 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10073 * tree-ssa-copyrename.c: Removed.
10074 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10075 -ftree-coalesce-vars.
10076 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10077 * common.opt (ftree-copyrename): Ignore.
10078 (ftree-coalesce-inlined-vars): Likewise.
10079 * doc/invoke.texi: Remove the ignored options above.
10080 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10081 * tree-ssa-coalesce.h: ... here.
10082 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10083 headers required by it.
10084 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10085 across variables when flag_tree_coalesce_vars. Check register
10086 use and promoted modes to allow coalescing. Moved to
10087 tree-ssa-coalesce.c.
10088 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10089 with its member functions to tree-ssa-coalesce.c.
10090 (var_map_base_init): Likewise. Renamed to
10091 compute_samebase_partition_bases.
10092 (partition_view_normal): Drop want_bases parameter.
10093 (partition_view_bitmap): Likewise.
10094 * tree-ssa-live.h: Adjust declarations.
10095 * tree-ssa-coalesce.c: Include explow.h.
10096 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10097 default defs at the entry point.
10098 (dump_part_var_map): New.
10099 (compute_optimized_partition_bases): New, called by...
10100 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10101 of compute_samebase_partition_bases. Adjust.
10102 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10103 * cfgexpand.c (leader_merge): New.
10104 (get_rtl_for_parm_ssa_default_def): New.
10105 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10106 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10107 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10108 redundant MEM attr setting.
10109 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10111 (expand_one_stack_var): ... this. New wrapper to check and
10112 skip already expanded SSA partitions.
10113 (record_alignment_for_reg_var): New, factored out of...
10114 (expand_one_var): ... this.
10115 (expand_one_ssa_partition): New.
10116 (adjust_one_expanded_partition_var): New.
10117 (expand_one_register_var): Check and skip already expanded SSA
10119 (expand_used_vars): Don't create DECLs for anonymous SSA
10120 names. Expand all SSA partitions, then adjust all SSA names.
10121 (pass::execute): Replace the loops that set
10122 SA.partition_to_pseudo from partition leaders and cleared
10123 DECL_RTL for multi-location variables, and that which used to
10124 rename vars and set attrs, with one that clears DECL_RTL and
10125 checks that PARMs and RESULTs default_defs match DECL_RTL.
10126 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10127 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10128 * explow.c (promote_ssa_mode): New.
10129 * explow.h (promote_ssa_mode): Declare.
10130 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10131 * function.c: Include cfgexpand.h.
10132 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10133 (use_register_for_parm_decl): Wrapper for the above to
10134 special-case the result_ptr.
10135 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10136 (split_complex_args): Take assign_parm_data_all argument.
10137 Pass it to rtl_for_parm. Set up rtl and context for split
10139 (assign_parms_augmented_arg_list): Adjust.
10140 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10141 multiple locations. Recognize split complex args.
10142 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10143 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10144 (assign_parm_setup_block): Prefer SSA-assigned location.
10145 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10146 if stack_parm is NULL.
10147 (assign_parm_setup_stack): Prefer SSA-assigned location.
10148 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10149 rtl before testing for pointer bounds. Special-case result_ptr.
10150 (expand_function_start): Maybe reset DECL_RTL of result.
10151 Prefer SSA-assigned location for result and static chain.
10152 Factor out DECL_RESULT and SET_DECL_RTL.
10153 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10154 anonymous SSA names. Use promote_ssa_mode.
10155 (get_temp_reg): Likewise.
10156 (remove_ssa_form): Adjust.
10157 * stor-layout.c (layout_decl): Don't set mem attributes of
10159 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10160 and get its reg_usage for reg invalidation.
10161 (compute_bb_dataflow): Pass it insn.
10162 (emit_notes_in_bb): Likewise.
10164 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10167 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10169 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10170 (rs6000_emit_2insn_and): Handle dot forms.
10171 * config/rs6000/rs6000.md (and<mode>3): Adjust.
10172 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
10173 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10175 2015-07-23 Richard Biener <rguenther@suse.de>
10177 * generic-match-head.c: Include cgraph.h.
10178 * gimple-match-head.c: Likewise.
10179 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10181 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10182 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
10185 2015-07-23 Richard Biener <rguenther@suse.de>
10187 * gimple-fold.c (fold_gimple_cond): Do not require folding
10188 results to pass valid_gimple_rhs_p.
10189 * tree-cfg.h (fold_cond_expr_cond): Remove.
10190 * tree-cfg.c (fold_cond_expr_cond): Likewise.
10191 (make_edges): Do not call it.
10192 * tree-inline.c (tree_function_versioning): Likewise.
10194 2015-07-23 Tom de Vries <tom@codesourcery.com>
10196 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10197 vect_force_simple_reduction.
10198 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10199 (vect_is_simple_reduction_1): Add and handle
10200 need_wrapping_integral_overflow parameter.
10201 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10202 need_wrapping_integral_overflow parameter.
10203 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10204 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10207 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
10209 PR tree-optimization/66926,66951
10210 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10211 INNER_LOOP and fix up condition for renaming virtual operands.
10213 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10215 * combine.c (try_combine): Use std::swap instead of manually
10218 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
10220 * config/mips/i6400.md: New file.
10221 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10222 (mips64r6): Likewise.
10224 * config/mips/mips-tables.opt: Regenerate.
10225 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10226 (mips_issue_rate): Add support for i6400.
10227 (mips_multipass_dfa_lookahead): Likewise.
10228 * config/mips/mips.h (TUNE_I6400): Define.
10229 * config/mips/mips.md: Include i6400.md.
10230 (processor): Add i6400.
10231 * doc/invoke.texi (-march=@var{arch}): Add i6400.
10233 2015-07-23 Richard Biener <rguenther@suse.de>
10235 PR middle-end/66916
10236 * match.pd: Guard widen and sign-change comparison simplification
10239 2015-07-23 Richard Biener <rguenther@suse.de>
10241 PR tree-optimization/66945
10242 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10243 ::before_dom_children): Force the propagators idea of
10244 non-executable edges to materialize, not what the folder
10247 2015-07-23 Richard Biener <rguenther@suse.de>
10249 * gimple.h (gimple_cond_make_false): Use 0 != 0.
10250 (gimple_cond_make_true): Use 1 != 0.
10252 2015-07-22 DJ Delorie <dj@redhat.com>
10254 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10257 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10258 (ashrhi3): Likewise.
10259 (lshrhi3): Likewise.
10260 (movhi): Take advantage of zero-extend to load small constants.
10261 (movpsi): Likewise.
10262 (and<mode>3): Likewise.
10263 (zero_extendqihi2): Likewise.
10264 (zero_extendqisi2): New.
10265 * config/msp430/constraints.md (N,O): New.
10266 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10268 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
10271 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10272 to enum feature_priority and feature_list.
10273 (fold_builtin_cpu): Add F_AES to enum processor_features
10274 and isa_names_table.
10276 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
10279 * config/i386/linux-common.h (MPX_SPEC): Use linker option
10280 for 64bit target only.
10282 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
10284 * config/nvptx/nvptx.c: Expand some comments.
10286 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
10288 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10289 (cortex_a53_advsimd): ...This.
10291 2015-07-22 Richard Biener <rguenther@suse.de>
10293 * genmatch.c (expr::gen_transform): Clarify error message
10294 and display location.
10296 2015-07-22 Richard Biener <rguenther@suse.de>
10298 * genmatch.c (struct operand): Add location member.
10299 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10301 (struct simplify): Remove match_location and result_location
10303 (elsehwere): Adjust.
10305 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
10307 * config/mips/m5100.md: New file.
10308 * config/mips/mips-cpus.def (m5100, m5101): Define.
10309 * config/mips/mips-tables.opt: Regenerate.
10310 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10311 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10312 -march=m5101 to -mips32r5.
10313 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10314 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10316 * config/mips/mips.md: Include m5100.md.
10317 (processor): Add m5100.
10318 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10320 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
10322 * config/mips/mips-cpus.def (interaptiv): Define.
10323 * config/mips/mips-tables.opt: Regenerate.
10324 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10326 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10327 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10329 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10332 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10333 (HONOR_REG_ALLOC_ORDER): Define.
10335 2015-07-22 Richard Biener <rguenther@suse.de>
10337 PR tree-optimization/66952
10338 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10339 blocks we end up executing unconditionally reset all SSA
10340 info such as range and alignment.
10341 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10342 * tree-ssanames.c (reset_flow_sensitive_info): New function.
10344 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10346 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10349 2015-07-22 Richard Biener <rguenther@suse.de>
10351 * genmatch.c (parser::parse_result): Properly handle
10352 match with result operands and conditions.
10354 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10357 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10358 Add qualifier_struct_load_store_lane_index.
10359 (aarch64_types_loadstruct_lane_qualifiers): Use
10360 qualifier_struct_load_store_lane_index for lane index argument for
10362 (aarch64_types_storestruct_lane_qualifiers): Ditto.
10363 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10364 (aarch64_simd_expand_args): Add new argument describing mode of
10365 builtin. Check lane bounds for arguments with
10366 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10367 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10368 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10369 (aarch64_simd_expand_builtin): Handle arguments with
10370 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10371 aarch64_simd_expand_args.
10372 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10373 vst[234]_lane with BUILTIN_VALLDIF.
10374 * config/aarch64/aarch64-simd.md:
10375 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10376 endianness reversal on lane index.
10377 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10378 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10379 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10380 (vec_store_lanesci_lane<mode>): Ditto.
10381 (vec_store_lanesxi_lane<mode>): Ditto.
10382 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10383 reversal of lane index.
10384 (aarch64_ld3_lane<mode>): Ditto.
10385 (aarch64_ld4_lane<mode>): Ditto.
10386 (aarch64_st2_lane<mode>): Ditto.
10387 (aarch64_st3_lane<mode>): Ditto.
10388 (aarch64_st4_lane<mode>): Ditto.
10389 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10390 to qmode. Add new mode parameter. Update uses.
10391 (__LD3_LANE_FUNC): Ditto.
10392 (__LD4_LANE_FUNC): Ditto.
10393 (__ST2_LANE_FUNC): Ditto.
10394 (__ST3_LANE_FUNC): Ditto.
10395 (__ST4_LANE_FUNC): Ditto.
10397 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
10399 * doc/invoke.texi (Language Independent Options): Rename node to
10400 Diagnostic Message Formatting Options.
10402 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
10405 * lra-remat.c (operand_to_remat): Prevent using insns with input
10406 subregs processed separately by IRA.
10408 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
10410 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10412 (single_imm_use): Check for iterator node.
10413 (num_imm_uses): Likewise.
10414 * tree-ssa-operands.c (has_zero_uses_1): Delete.
10415 (single_imm_use_1): Check for iterator node.
10417 2015-07-21 Mike Frysinger <vapier@gentoo.org>
10418 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10420 * configure.ac: Add check for new options in isl-0.15.
10421 * config.in, configure: Rebuilt.
10422 * graphite-blocking.c: Include <isl/constraint.h>
10423 * graphite-interchange.c, graphite-poly.c: Likewise.
10424 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10425 * graphite.c: Likewise.
10426 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10428 * graphite-dependences.c: Include <isl/constraint.h>.
10429 (max_number_of_out_dimensions): Returns isl_stat.
10430 (extend_schedule_1): Likewise
10431 (extend_schedule): Corresponding changes.
10432 * graphite-optimize-isl.c: Include <isl/constraint.h> and
10434 (getSingleMap): Change return type of isl_stat.
10435 (optimize_isl): Conditionally use
10436 isl_options_set_schedule_serialize_sccs.
10437 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
10438 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
10440 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
10443 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
10444 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
10446 2015-07-21 Richard Biener <rguenther@suse.de>
10448 PR tree-optimization/66948
10449 * genmatch.c (capture_info::walk_match): Also recurse to
10450 captures. Properly compute expr state from captures of
10452 * match.pd: Add single-use guards to
10453 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
10455 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10457 * config/nvptx/mkoffload.c (process): Add static destructor call.
10459 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10461 PR middle-end/66915
10462 * match.pd (A - B -> A + (-B)): Don't allow folding
10463 when type if a fixed-point type.
10465 2015-07-20 DJ Delorie <dj@redhat.com>
10467 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
10468 (iorqi3_real): Likewise for set1.
10470 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
10472 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
10475 2015-07-20 Aditya Kumar <hiraditya@msn.com>
10477 * graphite-isl-ast-to-gimple.c:
10478 Refactor so that each function can access 'region'. This will help
10479 maintain a parameter rename_map within a region.
10481 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10483 * config/rs6000/rs6000.md (*lt0_disi): New.
10485 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10488 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
10489 "available letters" comment.
10490 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
10491 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
10492 and_2rld_operand): Delete.
10493 (and_operand): Adjust.
10494 (rotate_mask_operator): New.
10495 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
10496 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
10497 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
10498 extract_ME): Delete.
10499 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10500 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
10501 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
10502 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10503 rs6000_emit_2insn_and): New.
10504 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
10505 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
10506 includes_rldic_lshift_p, includes_rldicr_lshift_p,
10507 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
10508 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10509 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
10510 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
10511 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10512 rs6000_emit_2insn_and): New.
10513 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
10514 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
10516 <NOT>: Don't fall through to next case.
10517 <AND>: Handle the various rotate-and-mask cases directly.
10518 <IOR>: Always cost as one insn.
10519 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
10520 (and<mode>3): Adjust expander for the new patterns.
10521 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
10522 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
10523 (*and<mode>3_imm_dot_shifted): New.
10524 (*and<mode>3_mask): Delete, rewrite as ...
10525 (and<mode>3_mask): ... New.
10526 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
10527 (andsi3_internal0_nomc): Delete.
10528 (*andsi3_internal6): Delete.
10529 (*and<mode>3_2insn): New.
10530 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10531 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10532 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
10533 *insvdi_internal3): Delete.
10534 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
10535 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
10536 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
10537 *ior<mode>_mask): New.
10538 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
10539 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10540 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10541 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10543 (ashr<mode>3): Delete expander.
10544 (*ashr<mode>3): Rename to ...
10545 (ashr<mode>3): ... This.
10546 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
10547 (*rotldi3_internal4, *rotldi3_internal5 and split,
10548 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
10549 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
10550 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
10551 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
10552 (splitter for loading a mask): Adjust.
10553 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
10555 2015-07-20 Marek Polacek <polacek@redhat.com>
10557 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
10558 output_add_clobbers, output_added_clobbers_hard_reg_p,
10559 gen_rtx_scratch): Remove declarations.
10561 2015-07-20 Marek Polacek <polacek@redhat.com>
10564 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
10566 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10568 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
10569 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
10571 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10573 * combine.c (combine_simplify_rtx): Move simplification step
10574 before various transformations/substitutions.
10576 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
10578 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
10579 (struct int_traits): Likewise.
10581 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10583 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
10584 function to vmsdbgout_function_decl.
10586 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
10589 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
10590 from misaligned positions.
10591 (ix86_expand_pinsr): Reject insertions to misaligned positions.
10593 2015-07-18 Sebastian Pop <s.pop@samsung.com>
10595 PR middle-end/46851
10596 PR middle-end/60340
10597 * Makefile.in: Removed omega.o.
10598 * common.opt: Document flag fcheck-data-deps as deprecated.
10599 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
10600 its associated params: omega-max-vars, omega-max-geqs,
10601 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
10602 omega-max-keys, omega-eliminate-redundant-constraints.
10603 * doc/loop.texi: Remove all the section on Omega.
10604 * graphite-blocking.c: Include missing params.h: it used to be
10605 included through tree-data-ref.h and omega.h.
10606 * graphite-isl-ast-to-gimple.c: Same.
10607 * graphite-optimize-isl.c: Same.
10608 * graphite-sese-to-poly.c: Same.
10609 * graphite.c: Same.
10612 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10613 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10614 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
10615 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
10616 * passes.def: Remove pass_check_data_deps.
10617 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
10618 (dump_conflict_function): Same.
10619 (dump_subscript): Same.
10620 (print_direction_vector): Same.
10621 (print_dir_vectors): Same.
10622 (print_lambda_vector): Same.
10623 (print_dist_vectors): Same.
10624 (dump_data_dependence_relation): Same.
10625 (dump_data_dependence_relations): Same.
10626 (dump_dist_dir_vectors): Same.
10628 (init_omega_eq_with_af): Removed.
10629 (omega_extract_distance_vectors): Removed.
10630 (omega_setup_subscript): Removed.
10631 (init_omega_for_ddr_1): Removed.
10632 (init_omega_for_ddr): Removed.
10633 (ddr_consistent_p): Removed.
10634 (compute_affine_dependence): Do not use omega to check data
10636 (compute_data_dependences_for_bb): Removed.
10637 (analyze_all_data_dependences): Removed.
10638 (tree_check_data_deps): Removed.
10639 * tree-data-ref.h: Do not include omega.h.
10640 (compute_data_dependences_for_bb): Removed.
10641 (tree_check_data_deps): Removed.
10642 * tree-ssa-loop.c (pass_check_data_deps): Removed.
10643 (make_pass_check_data_deps): Removed.
10644 * tree-ssa-phiopt.c: Include params.h.
10645 * tree-vect-data-refs.c: Same.
10646 * tree-vect-slp.c: Same.
10648 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
10650 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
10651 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
10652 (mem->fpreg splitters): Ditto.
10653 (general_operand->nonimmediate_operand splitter): Use explicit modes.
10654 Disable DFmode for TARGET_64BIT.
10656 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
10659 * config/i386/i386.c (ix86_expand_prologue): Replicate static
10660 chain on the stack.
10662 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10664 * config/nvptx/mkoffload.c (process): Constify host data.
10665 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10666 Constify host data.
10667 (generate_host_descr_file): Likewise.
10669 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
10670 Sebastian Pop <s.pop@samsung.com>
10672 PR middle-end/61929
10673 * graphite-dependences.c (add_pdr_constraints): Renamed
10674 pdr->extent to pdr->subscript_sizes.
10675 * graphite-interchange.c (build_linearized_memory_access): Add
10676 back all gcc_assert's that the "isl_int to isl_val conversion"
10677 patch has removed. Refactored.
10678 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
10679 * graphite-poly.c (new_poly_dr): Same.
10680 (free_poly_dr): Same.
10681 * graphite-poly.h (struct poly_dr): Same.
10682 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
10683 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
10684 * graphite-scop-detection.h: Fix space.
10685 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
10686 back all gcc_assert's removed by a previous patch.
10687 (wrap): Remove the_isl_ctx global variable that the same patch has
10689 (build_loop_iteration_domains): Same.
10690 (add_param_constraints): Same.
10691 (pdr_add_data_dimensions): Same. Refactored.
10692 (build_poly_dr): Renamed extent to subscript_sizes.
10694 2015-07-17 Marek Polacek <polacek@redhat.com>
10696 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
10697 * match.pd: ... here.
10699 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10701 * config/nvptx/mkoffload.c (process): Constify target data.
10702 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10703 Constify target data.
10704 (generate_target_offloadend_file): Likewise.
10706 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
10708 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
10709 to allow renaming of PHI arguments on edges incoming from outer
10710 loop header, add corresponding check before start PHI iterator.
10711 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
10712 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
10713 with true force_vectorize. Set-up dominator for outer loop too.
10714 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
10715 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
10716 was marked with force_vectorize and has restricted cfg.
10717 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
10719 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
10720 do peeling for outer loops.
10722 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
10723 Matthias Klose <doko@ubuntu.com>
10725 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
10726 build-sysroot, sysroot from the `Miscenalleous configure options' to
10727 the `Directories' section and strip trailing `/' from with_sysroot.
10728 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
10729 * configure: Regenerated.
10731 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
10734 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
10735 (TARGET_HARD_DF_REGS): Ditto.
10736 (TARGET_HARD_XF_REGS): Ditto.
10737 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
10738 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
10739 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
10740 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
10741 (*movsf_internal): Add alternatives 16 and 17. Enable
10742 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
10744 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
10746 PR rtl-optimization/66891
10747 * calls.c (expand_call): Wrap precompute_register_parameters with
10748 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
10750 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10752 * config/nvptx/mkoffload.c (process): Constify mapping variables.
10753 Define target data struct and initialize it.
10755 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
10757 PR rtl-optimization/66626
10758 * ira.h (emit-rtl.h): Include.
10759 (non_spilled_static_chain_regno_p): New.
10760 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
10761 unless it is non spilled static chain pseudo.
10762 (assign_hard_rego): Spill memory profitable allocno unless it is
10763 non spilled static chain pseudo.
10764 (allocno_spill_priority_compare): Put non spilled static chain
10765 pseudo at the end of sorted array.
10766 (improve_allocation): Do nothing if we have static chain and
10768 (allocno__priority_compare_func): Put non spilled static chain
10769 pseudo at the beginning of sorted array.
10770 (move_spill_restore): Ignore non spilled static chain pseudo.
10771 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
10772 to non spilled static chain pseudo.
10773 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
10774 pseudo at the beginning of sorted array.
10775 (spill_for): Spill non spilled static chain pseudo last.
10776 * lra-constraints.c (lra_constraints): Remove static chain pseudo
10777 check for equivalence.
10779 2015-07-16 Martin Liska <mliska@suse.cz>
10782 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
10783 dst_ctx if it does not exist.
10785 2015-07-16 Martin Liska <mliska@suse.cz>
10787 * hash-set.h (remove): New function.
10788 (iterator): New iteration class for hash_set.
10790 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10792 * genattrtab.c (make_canonical): Add a file_location parameter.
10793 Use fatal_at rather than fatal.
10794 (get_attr_value): Likewise. Update call to make_canonical.
10795 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
10796 (make_internal_attr): Update calls accordingly.
10798 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10800 * read-md.h (message_with_line, error_with_line): Delete.
10801 * read-md.c (message_with_line, error_with_line): Delete.
10802 * gensupport.h: Include read-md.h.
10803 (md_rtx_info): New structure.
10804 (read_md_rtx): Use it. Return a bool success value.
10805 * gensupport.c (read_md_rtx): Likewise.
10806 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
10807 (main): Update after interface changes.
10808 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
10809 (main): Update after interface changes.
10810 * genattrtab.c (insn_code_number): Delete.
10811 (optimize_attrs): Add a max_insn_code parameter and use it instead
10812 of insn_code_number.
10813 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
10814 Use *_at rather than *_with_line functions.
10815 (gen_insn): Likewise.
10816 (gen_delay): Likewise.
10817 (gen_insn_reserv): Likewise.
10818 (gen_bypass): Take an md_rtx_info rather than an rtx.
10819 (main): Update after interface changes. Use a local max_insn_code
10820 variable instead of insn_code_number.
10821 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
10822 an rtx. Use fatal_at rather than fatal.
10823 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
10824 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
10825 (gen_absence_set, gen_final_absence_set, gen_automaton)
10826 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
10827 (main): Update after interface changes.
10828 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
10830 (main): Update after interface changes.
10831 * genconditions.c (main): Use new read_md_rtx interface.
10832 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
10833 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
10834 (main): Update after interface changes.
10835 * genemit.c (insn_code_number, insn_index_number): Delete.
10836 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10837 Use fatal_at rather than fatal.
10838 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
10840 (gen_split): Likewise.
10841 (main): Update after interface changes.
10842 * genextract.c (line_no): Delete.
10843 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10844 Update call to walk_rtx.
10845 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
10846 rather than message_with_line.
10847 (walk_rtx): Add an md_rtx_info argument. Update call to
10848 VEC_safe_set_locstr.
10849 (main): Update after interface changes.
10850 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
10851 and lineno. Use error_at rather than separate message_with_line
10852 calls and have_error assignments.
10853 (main): Update after interface changes.
10854 * genmddump.c (main): Use new read_md_rtx interface.
10855 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
10856 (main): Update after interface changes.
10857 * genoutput.c (next_code_number): Delete.
10858 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10859 (gen_peephole, gen_expand, gen_split): Likewise.
10860 (note_constraint): Likewise. Use *_at rather than *_with_line
10862 (main): Update after interface changes.
10863 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
10865 (main): Update after interface changes.
10866 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
10867 than an rtx and lineno.
10868 (process_define_constraint): Likewise.
10869 (process_define_register_constraint): Likewise.
10870 (main): Update after interface changes.
10871 * genrecog.c (next_insn_code, pattern_lineno): Delete.
10872 (validate_pattern): Replace top-level rtx with an md_rtx_info.
10873 Use *_at rather than *_with_line functions.
10874 (match_pattern_2): Likewise.
10875 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
10876 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
10877 Use *_at rather than *_with_line functions.
10878 * gentarget-def.c (add_insn): New function.
10879 (main): Use it. Use new read_md_rtx interface.
10881 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10883 * gensupport.h (compute_test_codes): Take a file_location rather
10884 than a line number.
10885 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
10886 rather than *_with_line functions.
10887 (process_define_predicate): Update call to compute_test_codes.
10888 * genpreds.c (validate_exp): Take a file_location rather than a
10889 line number. Use *_at functions rather than *_with_line functions.
10890 (process_define_predicate): Update call to validate_exp.
10891 (constraint_data): Replace lineno field with a file_location.
10892 (add_constraint): Take a file_location rather than a line number.
10893 Use *_at functions rather than *_with_line functions. Fix error
10894 message for address constraints. Update after changes to
10895 validate_exp, constraint_data and compute_test_codes.
10896 (process_define_constraint): Update accordingly.
10897 (process_define_register_constraint): Likewise.
10899 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10901 * genoutput.c (data): Use a file_location to record the source
10904 (idata, idata_end): Remove initialization.
10905 (constraint_data): Replace lineno with a file_location.
10906 (output_insn_data): Update after changes to data.
10907 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
10908 (scan_operands): Likewise, using *_at rather than *_with_line
10910 (process_template): Likewise.
10911 (validate_insn_alternatives): Likewise.
10912 (validate_insn_operands): Likewise.
10913 (validate_optab_operands): Likewise.
10914 (init_insn_for_nothing): Initialize idata and idata_end.
10915 (note_constraint): Update after changes to constraint_data,
10916 using at rather than with_line functions.
10917 (mdep_constraint_len): Take a file_location rather than a
10918 line number. Use at rather than with_line functions.
10920 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10922 * read-md.h (fatal_at): Declare.
10923 * read-md.c (fatal_at): New function.
10924 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
10925 to record the source position.
10926 (check_attr_test): Take a file_location instead of a line number.
10927 Use fatal_at instead of fatal.
10928 (check_attr_value): Update after above changes, using "at"
10929 rather than "with_line" reporting functions.
10930 (convert_set_attr_alternative): Likewise.
10931 (gen_attr): Likewise.
10932 (check_defs): Likewise. Don't assign to read_md_filename.
10933 (gen_insn): Update initialization after above changes.
10934 (gen_delay): Likewise.
10935 (write_insn_cases): Print the filename for a define_peephole.
10936 (gen_insn_reserv): Take a line number as argument and update
10937 the call to check_attr_test.
10938 (main): Pass a line number to gen_insn_reserv.
10940 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10942 * read-md.h (file_location): New structure.
10943 (directive_handler_t): Take a file_location rather than a line number.
10944 (message_at, error_at): Declare.
10945 (read_skip_construct): Delete.
10946 * read-md.c (message_with_line_1): Replace with...
10947 (message_at_1): ...this new function.
10948 (message_at, error_at): New functions.
10949 (message_with_line, error_with_line): Update to use message_at_1.
10950 (handle_enum): Take a file_location rather than a line number
10951 and use error_at for error reporting.
10952 (handle_include): Likewise.
10953 (read_skip_construct): Likewise. Make static.
10954 (handle_file): Update after above changes. Pass a file_location
10955 rather than a line number to handle_directive.
10956 * gensupport.c (queue_elem): Replace separate filename and lineno
10957 with a file_location.
10958 (queue_pattern): Replace filename and lineno arguments with a
10959 file_location. Update after change to queue_elem.
10960 (process_define_predicate): Replace lineno argument with a
10961 file_location and use error_at for error reporting. Update
10962 after above changes.
10963 (process_rtx): Likewise.
10964 (subst_pattern_match): Likewise.
10965 (get_alternatives_number): Likewise.
10966 (alter_predicate_for_insn): Likewise.
10967 (rtx_handle_directive): Likewise.
10968 (is_predicable): Update after above changes, using error_at rather
10969 than error_with_line.
10970 (has_subst_attribute): Likewise.
10971 (identify_predicable_attribute): Likewise.
10972 (alter_attrs_for_subst_insn): Likewise.
10973 (process_one_cond_exec): Likewise.
10974 (process_substs_on_one_elem): Likewise.
10975 (process_define_subst): Likewise.
10976 (check_define_attr_duplicates): Likewise.
10977 (read_md_rtx): Update after change to queue_elem.
10979 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10981 * genoutput.c (next_index_number): Delete.
10982 (data): Remove index_number.
10983 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
10984 (main): Remove manipulation of next_index_number.
10986 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10988 * genattrtab.c (check_attr_value): Remove handling of null attrs.
10989 (make_canonical): Likewise.
10991 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
10993 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
10994 instead of adjust_address_nv.
10995 (restore_stack_nonlocal): Likewise.
10996 (nonlocal_goto): Likewise.
10998 2015-07-16 Tom de Vries <tom@codesourcery.com>
11000 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11001 not have a corresponding loop header phi.
11003 2015-07-16 Tom de Vries <tom@codesourcery.com>
11005 * tree-parloops.c (create_loads_for_reductions): Handle case that
11006 reduction is unused.
11008 2015-07-16 Richard Biener <rguenther@suse.de>
11010 PR tree-optimization/66894
11011 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11012 about deriving NE_EXPR from truncated values.
11014 2015-07-16 Martin Liska <mliska@suse.cz>
11017 (object_allocator): Add new class.
11018 (pool_allocator::initialize): Use the underlying class.
11019 (pool_allocator::allocate): Likewise.
11020 (pool_allocator::remove): Likewise.
11021 (operator new): A new generic allocator.
11022 * asan.c (struct asan_mem_ref): Remove unused members.
11023 (asan_mem_ref_new): Replace new operator with
11024 object_allocator::allocate.
11025 (free_mem_ref_resources): Change deallocation.
11026 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11027 with object_allocator.
11028 * config/sh/sh.c (add_constant): Replace new operator with
11029 object_allocator::allocate.
11030 (sh_reorg): Change call to a release method.
11031 * cselib.c (struct elt_list): Remove unused members.
11032 (new_elt_list): Replace new operator with
11033 object_allocator::allocate.
11034 (new_elt_loc_list): Likewise.
11035 (new_cselib_val): Likewise.
11036 (unchain_one_elt_list): Change delete operator with remove method.
11037 (unchain_one_elt_loc_list): Likewise.
11038 (unchain_one_value): Likewise.
11039 (cselib_finish): Release newly added static allocators.
11040 * cselib.h (struct cselib_val): Remove unused members.
11041 (struct elt_loc_list): Likewise.
11042 * df-problems.c (df_chain_alloc): Replace pool_allocator with
11044 * df-scan.c (struct df_scan_problem_data): Likewise.
11045 (df_scan_alloc): Likewise.
11046 * df.h (struct dataflow): Likewise.
11047 * dse.c (struct read_info_type): Likewise.
11048 (struct insn_info_type): Likewise.
11049 (struct dse_bb_info_type): Likewise.
11050 (struct group_info): Likewise.
11051 (struct deferred_change): Likewise.
11052 (get_group_info): Likewise.
11053 (delete_dead_store_insn): Likewise.
11054 (free_read_records): Likewise.
11055 (replace_read): Likewise.
11056 (check_mem_read_rtx): Likewise.
11057 (scan_insn): Likewise.
11058 (dse_step1): Likewise.
11059 (dse_step7): Likewise.
11060 * et-forest.c (struct et_occ): Remove unused members.
11061 (et_new_occ): Use allocate instead of new operator.
11062 (et_new_tree): Likewise.
11063 (et_free_tree): Call release method explicitly.
11064 (et_free_tree_force): Likewise.
11065 (et_free_pools): Likewise.
11066 (et_split): Use remove instead of delete operator.
11067 * et-forest.h (struct et_node): Remove unused members.
11068 * ipa-cp.c: Change pool_allocator to object_allocator.
11069 * ipa-inline-analysis.c: Likewise.
11070 * ipa-profile.c: Likewise.
11071 * ipa-prop.c: Likewise.
11072 * ipa-prop.h: Likewise.
11073 * ira-build.c (initiate_cost_vectors): Cast return value.
11074 (ira_allocate_cost_vector): Likewise.
11075 * ira-color.c (struct update_cost_record): Remove unused members.
11076 * lra-int.h (struct lra_live_range): Likewise.
11077 (struct lra_copy): Likewise.
11078 (struct lra_insn_reg): Likewise.
11079 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11080 * lra.c (new_insn_reg): Replace new operator with allocate method.
11081 (free_insn_regs): Same for operator delete.
11082 (finish_insn_regs): Release new static allocator.
11083 (finish_insn_recog_data): Likewise.
11084 (lra_free_copies): Replace delete operator with remove method.
11085 (lra_create_copy): Replace operator new with allocate method.
11086 (invalidate_insn_data_regno_info): Same for remove method.
11087 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11088 (free_debug_insn_changes): Replace delete operator with remove method.
11089 (replace_oldest_value_reg): Replace operator new with allocate method.
11090 (pass_cprop_hardreg::execute): Release new static variable.
11091 * sched-deps.c (sched_deps_init): Change pool_allocator to
11093 * sel-sched-ir.c: Likewise.
11094 * sel-sched-ir.h: Likewise.
11095 * stmt.c (expand_case): Likewise.
11096 (expand_sjlj_dispatch_table): Likewise.
11097 * tree-sra.c (struct access): Remove unused members.
11098 (struct assign_link): Likewise.
11099 (sra_deinitialize): Release newly added static pools.
11100 (create_access_1):Replace operator new with allocate method.
11101 (build_accesses_from_assign): Likewise.
11102 (create_artificial_child_access): Likewise.
11103 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11104 pool_allocator to object_allocator.
11105 * tree-ssa-pre.c: Likewise.
11106 * tree-ssa-reassoc.c: Likewise.
11107 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11108 * tree-ssa-strlen.c: Likewise.
11109 * tree-ssa-structalias.c: Likewise.
11110 * var-tracking.c (onepart_pool_allocate): New function.
11111 (unshare_variable): Use the newly added function.
11112 (variable_merge_over_cur): Likewise.
11113 (variable_from_dropped): Likewise.
11114 (variable_was_changed): Likewise.
11115 (set_slot_part): Likewise.
11116 (emit_notes_for_differences_1): Likewise.
11117 (vt_finalize): Release newly added static pools.
11119 2015-07-16 Martin Jambor <mjambor@suse.cz>
11121 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
11122 all uses. Fix two typos in its general comment.
11123 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
11125 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
11127 * config/i386/linux-common.h (LINK_MPX): New.
11128 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11129 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11130 indicating '-z bndplt' support by linker.
11131 * configure: Regenerate.
11132 * config.in: Regenerate.
11134 2015-07-16 Richard Biener <rguenther@suse.de>
11136 * fold-const.c (fold_widened_comparison): Remove.
11137 (fold_sign_changed_comparison): Likewise.
11138 (fold_comparison): Move widened and sign-changed comparison
11140 * match.pd: ... to patterns here.
11141 * generic-match-head.c: Include target.h.
11142 * gimple-match-head.c: Likewise.
11144 2015-07-16 Richard Biener <rguenther@suse.de>
11146 * tree-ssa-dom.c (dom_valueize): New function.
11147 (record_temporary_equivalences): Also record equivalences
11148 for dominating stmts that have uses of equivalences we are
11151 2015-07-16 Bin Cheng <bin.cheng@arm.com>
11153 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11154 add_autoinc_candidates.
11155 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11156 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11157 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11158 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11160 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11161 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11162 Remove parameter struct iv*. Call add_autoinc_candidates here.
11163 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11164 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11166 (find_iv_candidates): Call new functions.
11168 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
11170 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11171 uninitialized-variable warning.
11173 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
11176 * config/sh/sh.md (movdi): Split simple reg move to two movsi
11177 when the destination is R0.
11179 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
11182 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11183 * config/i386/i386.c (ix86_expand_pextr): New function.
11184 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
11185 for non-lowpart subregs.
11186 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11187 (insv<mode>): Use SWI248 mode iterator.
11188 (insv<mode>_1): Ditto.
11190 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11191 Sebastian Pop <s.pop@samsung.com>
11193 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11194 iterator to use_stmt.
11196 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11197 Sebastian Pop <s.pop@samsung.com>
11199 * graphite-scop-detection.c (build_scops_1): Discard scops for
11202 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11203 Sebastian Pop <s.pop@samsung.com>
11205 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11206 case of a return statement in scop.
11208 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11209 Sebastian Pop <s.pop@samsung.com>
11211 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11212 INTEGER_TYPE parameters.
11213 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11214 VECTOR_CST in scan_tree_for_params.
11215 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11217 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11219 * gimple-pretty-print.h: Don't include pretty-print.h.
11220 * tree-streamer.h: Don't include lto-streamer.h.
11221 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11222 * gimple-streamer-in.c: Remove redundant includes.
11223 * gimple-streamer-out.c: Likewise.
11224 * ipa-devirt.c: Likewise.
11225 * ipa-icf.c: Likewise.
11226 * ipa-inline-analysis.c: Likewise.
11227 * ipa-polymorphic-call.c: Likewise.
11228 * ipa-profile.c: Likewise.
11229 * ipa-prop.c: Likewise.
11230 * ipa-pure-const.c: Likewise.
11231 * lto-cgraph.c: Likewise.
11232 * lto-streamer-in.c: Likewise.
11233 * lto-streamer-out.c: Likewise.
11234 * lto-streamer.c: Likewise.
11235 * tree-streamer-in.c: Likewise.
11236 * tree-streamer-out.c: Likewise.
11237 * tree-streamer.c: Likewise.
11239 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11241 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11243 * opts.c: Remove multiline #include comment.
11245 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
11247 * config/nvptx/mkoffload.c (process): Add C++ protection to
11250 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11253 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11254 null before IEEE 128-bit floating point support patch.
11256 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11258 * simplify-rtx.c (simplify_ternary_operation): Add simplification
11259 for (!c) != {0,...,0} ? a : b for vector modes.
11261 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
11262 Martin Jambor <mjambor@suse.cz>
11264 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11265 struct func_body_info* instead of struct ipa_node_params*, expecting
11266 fbi->info to be filled in. Replace throughout. Adjust call to
11267 ipa_load_from_parm_agg.
11268 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11269 instead of struct ipa_node_params*. Adjust calls to other functions
11270 so that they pass either fbi or fbi->info.
11271 (set_switch_stmt_execution_predicate): Likewise.
11272 (will_be_nonconstant_predicate): Likewise.
11273 (compute_bb_predicates): Likewise.
11274 (estimate_function_body_sizes): Move asserts earlier. Fill in
11275 struct func_body_info, replace parms_info with fbi.info. Adjust
11276 calls to functions that now accept struct func_body_info.
11277 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11278 (struct func_body_info): Likewise.
11279 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11280 remove static. Adjust callers.
11281 (ipa_load_from_parm_agg): Remove.
11282 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11283 (func_body_info): Likewise.
11284 (ipa_load_from_parm_agg): Adjust prototype.
11286 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11288 * gensupport.c (rtx_handle_directive): Adjust.
11289 * read-rtl.c (apply_iterators): Take vector to add rtxs to
11290 instead of expr list rtx.
11291 (add_define_attr_for_define_subst): Likewise.
11292 (add_define_subst_attr): Likewise.
11293 (read_subst_mapping): Likewise.
11294 (read_rtx): Likewise.
11295 * rtl.h (read_rtx): Adjust.
11297 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11299 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11301 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11304 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11305 (*tls_local_dynamic_base_64_<mode>): Ditto.
11306 (*tls_local_dynamic_base_64_largepic): Ditto.
11307 (tls_global_dynamic_64_<mode>): Update expander pattern.
11308 (tls_local_dynamic_base_64_<mode>): Ditto.
11310 2015-07-15 Richard Biener <rguenther@suse.de>
11312 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11313 and bool_var == 1 -> bool_var simplifications ...
11314 * match.pd: ... to patterns here. Factor out negate_expr_p
11315 cases from the A - B -> A + (-B) patterns as negate_expr_p
11316 predicate and add a -(A + B) -> (-B) - A pattern.
11318 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11320 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11322 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
11323 Robert Suchanek <robert.suchanek@imgtec.com>
11325 * config/mips/mips.c (mips_int_mask): New enum.
11326 (mips_shadow_set): Likewise.
11327 (int_mask): New variable.
11328 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11329 (machine_function): Add int_mask and use_shadow_register_set.
11330 (mips_attribute_table): Add attribute handlers for interrupt and
11331 use_shadow_register_set.
11332 (mips_interrupt_mask): New static function.
11333 (mips_handle_interrupt_attr): Likewise.
11334 (mips_handle_use_shadow_register_set_attr): Likewise.
11335 (mips_use_shadow_register_set): Change return type to enum
11336 mips_shadow_set. Add argument handling for use_shadow_register_set
11338 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11339 compare with mips_shadow_set enum.
11340 (mips_compute_frame_info): Add interrupt mask and
11341 use_shadow_register_set to per-function information structure.
11342 Add a stack slot for EPC unconditionally.
11343 (mips_expand_prologue): Compare use_shadow_register_set value
11344 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
11345 masked interrupt register but in EIC mode use K0 and save Cause in K0.
11346 EPC saved and restored unconditionally. Use PMODE_INSN macro when
11347 copying the stack pointer from the shadow register set.
11348 * config/mips/mips.h (SR_IM0): New define.
11349 * config/mips/mips.md (mips_rdpgpr): Rename to...
11350 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
11351 * doc/extend.texi (Declaring Attributes of Functions): Document
11352 optional arguments for interrupt and use_shadow_register_set
11355 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11357 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11358 interrupt attribute.
11359 (mips_expand_prologue): Disable the floating point unit in an ISR.
11360 * config/mips/mips.h (SR_COP1): New define.
11362 2015-07-15 Richard Biener <rguenther@suse.de>
11364 * genmatch.c (parser::peek, parser::peek_ident): Add argument
11365 to tell how many tokens to peek ahead (default 1).
11366 (parser::eat_token, parser::eat_ident): Return token consumed.
11367 (parser::parse_result): Parse new switch statement.
11368 * match.pd: Use case statements where appropriate.
11370 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11372 PR rtl-optimization/58066
11373 * calls.c (expand_call): Precompute register parameters before stack
11374 alignment is performed.
11376 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11378 PR rtl-optimization/66838
11379 * postreload.c (reload_cse_move2add): Also process
11380 CALL_INSN_FUNCTION_USAGE when resetting information of
11381 call-clobbered registers.
11383 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11384 Cesar Philippidis <cesar@codesourcery.com>
11385 Chung-Lin Tang <cltang@codesourcery.com>
11387 * config/nios2/constraints.md (U, v): New constraints.
11388 * config/nios2/predicates.md (rdprs_dcache_operand): New.
11389 (ldstex_memory_operand): New.
11390 * config/nios2/sync.md: New file.
11391 * config/nios2/nios2.md (unspecv): Add new builtin function
11393 (rdprs, flushd, flushda, wrpie, eni): New patterns.
11394 (top-level): Include sync.md.
11395 * config/nios2/nios2.c (N2_FTYPES): Add function types for
11397 (N2_BUILTINS): Add arch field setting, add new builtins.
11398 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11400 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11401 Also handle ldex/stex/ldsex/stsex builtins.
11402 (nios2_expand_rdprs_builtin): New function.
11403 (nios2_expand_cache_builtin): New function.
11404 (nios2_expand_wrpie_builtin): New function.
11405 (nios2_expand_eni_builtin): New function.
11406 (nios2_expand_builtin): Add arch field handling and new builtin
11408 * doc/extend.texi (Altera Nios II Built-in Functions): Document
11410 * doc/md.texi (Machine Constraints): Document U and v constraints.
11412 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11413 Cesar Philippidis <cesar@codesourcery.com>
11414 Chung-Lin Tang <cltang@codesourcery.com>
11416 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11417 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11418 callee_save_reg_size and uses_anonymous_args fields.
11419 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11420 (nios2_create_cfa_notes): New function.
11421 (nios2_adjust_stack): New function for adjusting stack.
11422 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11423 Use nios2_adjust_stack.
11424 (nios2_expand_epilogue): Likewise.
11425 (nios2_expand_return): New function.
11426 (nios2_can_use_return_insn): Update for CDX pop.n usage.
11427 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11428 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11429 * config/nios2/nios2.md (return): Use nios2_expand_return.
11431 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11432 Cesar Philippidis <cesar@codesourcery.com>
11433 Chung-Lin Tang <cltang@codesourcery.com>
11435 * config/nios2/predicates.md (pop_operation): New.
11436 (ldwm_operation, stwm_operation): New.
11437 (nios2_hard_register_operand): New.
11438 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
11439 (ldstwm_operation_p): Declare.
11440 (gen_ldstwm_peep): Declare.
11441 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
11442 (base_reg_adjustment_p): New.
11443 (pop_operation_p): New.
11444 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
11445 (nios2_ldstwm_regset_p): New.
11446 (ldstwm_operation_p): New.
11448 (nios2_ldst_parallel): New.
11449 (struct ldswm_operand): Declare.
11450 (compare_ldstwm_operands): New.
11451 (can_use_cdx_ldstw): New.
11452 (gen_ldstwm_peep): New.
11453 * config/nios2/nios2-ldstwm.sml: New.
11454 * config/nios2/nios2.md: Include ldstwm.md.
11455 * config/nios2/ldstwm.md: Generated.
11457 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11458 Cesar Philippidis <cesar@codesourcery.com>
11459 Chung-Lin Tang <cltang@codesourcery.com>
11461 * config/nios2/nios2.h (LABEL_ALIGN): Define.
11462 (REG_ALLOC_ORDER): Define.
11463 (ADJUST_REG_ALLOC_ORDER): Define.
11464 (HONOR_REG_ALLOC_ORDER): Define.
11465 (CDX_REG_P): Define.
11466 (ANDCLEAR_INT): Define.
11467 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
11468 (nios2_label_align): Declare.
11469 (nios2_cdx_narrow_form_p): Declare.
11470 (nios2_adjust_reg_alloc_order): Declare.
11471 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
11473 (nios2_large_unspec_reloc_p): New function, split from...
11474 (nios2_legitimate_pic_operand_p): ...here.
11475 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
11476 (nios2_print_operand_punct_valid_p): New.
11477 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
11478 (split_mem_address): New.
11479 (split_alu_insn): New.
11481 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
11482 (enum nios2_add_insn_kind): New.
11483 (nios2_add_insn_names, nios2_add_insn_narrow): New.
11484 (nios2_add_insn_classify): New.
11485 (nios2_add_insn_asm): New.
11486 (nios2_cdx_narrow_form_p): New.
11487 (label_align, min_labelno, max_labelno): New.
11488 (nios2_reorg): New.
11489 (nios2_label_align): New.
11490 (nios2_adjust_reg_alloc_order): New.
11491 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11492 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11493 * config/nios2/constraints.md (P): New constraint.
11494 * config/nios2/predicates.md (const_and_operand): New.
11495 (and_operand): New.
11496 (stack_memory_operand): New.
11497 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
11498 (length): Update to use nios2_cdx_narrow_form_p().
11499 (type): Add new insn type values.
11500 (control, alu, st, ld, shift): Update insn reservations with
11501 new insn type values.
11502 (*high, *lo_sum): Define new insn patterns for constant generation.
11503 (movqi_internal, movhi_internal, movsi_internal): Reduce
11504 alternatives, update asm template to handle CDX variants, update
11506 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
11507 template, update type attributes.
11508 (extendhisi2, extendqi<mode>2): Likewise.
11509 (addsi3): Change to use function for asm string.
11510 (subsi3): Add CDX notation to asm template, update type attributes.
11511 (negsi3, one_cmplsi3): Likewise.
11512 (andsi3): New pattern, specialized from logical patterns.
11513 (<code>si3): Remove and case, combine alternatives, update asm
11515 (<shift_op>si3): Add CDX notation, update type attributes.
11516 (rotrsi3): Update type attribute.
11517 (*merge, extzv, insv): New insn patterns.
11518 (return): Change to define_expand.
11519 (simple_return): Add CDX notation, update type attributes.
11520 (indirect_jump): Add CDX notation.
11521 (jump): Update asm cases, update length attribute expression.
11522 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
11523 (nios2_cbranch): Update asm cases and length attribute expression
11524 to handle CDX variants.
11525 (nios2_cmp<code>): Update asm template.
11526 (nop): Add CDX notation, update type attributes.
11527 (trap): Add CDX notation.
11528 (ctrapsi4): Update asm cases and length attribute expression to
11529 handle CDX variant.
11530 * doc/md.texi (Machine Constraints): Document P constraint.
11532 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11533 Cesar Philippidis <cesar@codesourcery.com>
11534 Chung-Lin Tang <cltang@codesourcery.com>
11536 * config/nios2/nios2.h (SMALL_INT12): New macro.
11537 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
11538 (nios2_valid_addr_expr_p): Use it.
11539 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
11540 with implicit "io" instructions on R2.
11541 * config/nios2/constraints.md (w): New constraint.
11542 * config/nios2/predicates.md (ldstio_memory_operand): New.
11543 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
11544 operand predicate and constraint.
11545 (ld<bh>io_signed, st<bhw>io>): Likewise.
11546 * doc/md.texi (Machine Constraints): Document w constraint.
11548 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11549 Cesar Philippidis <cesar@codesourcery.com>
11550 Chung-Lin Tang <cltang@codesourcery.com>
11552 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
11553 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
11554 Nios II architecture level.
11555 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
11556 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
11557 (OPTION_DEFAULT_SPECS): Define.
11558 (ASM_SPEC): Add -march= spec strings.
11559 * config/nios2/nios2.c (nios2_option_override): Check for
11560 conflicts involving new options.
11561 * config.gcc (nios2*-*-*): Support --with-arch=.
11562 * doc/invoke.texi (Option Summary, Nios II Options): Document
11563 -march=, -mbmx, and -mcdx.
11565 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
11567 PR rtl-optimization/66626
11568 * lra-constraints.c (lra_constraints): Prevent equivalence
11569 substitution for static chain pseudo in functions with nonlocal
11572 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11574 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
11575 (nios2_emit_stack_limit_check): Add size parameter. Handle
11576 -fstack-limit-symbol as well as -fstack-limit-register.
11577 (nios2_expand_prologue): Emit only a single stack limit check,
11578 even if multiple stack adjustments are required.
11579 (nios2_option_override): Diagnose unsupported combination of -fpic
11580 and -stack-limit-symbol.
11582 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
11584 * Makefile.in (top_srcdir): New.
11585 * configure.ac: Use AM_ZLIB.
11586 * configure: Regeneated.
11588 2015-07-14 Matthias Klose <doko@ubuntu.com>
11591 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
11593 2015-07-14 Richard Biener <rguenther@suse.de>
11595 PR tree-optimization/66863
11596 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
11597 what we record for conversion use stmt lhs inequalities.
11599 2015-07-14 Richard Biener <rguenther@suse.de>
11601 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
11602 (decision_tree::gen_gimple): Likewise.
11604 2015-07-14 Tom de Vries <tom@codesourcery.com>
11606 * gcc.c (greater_than_spec_func): Declare forward.
11607 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
11608 -ftree-parallelize-loops={0,1}.
11609 (static_spec_functions): Add greater_than_spec_func function with name
11611 (greater_than_spec_func): New function.
11613 2015-07-14 Richard Biener <rguenther@suse.de>
11615 * tree-ssa-dom.c (record_temporary_equivalences): Merge
11616 wideing type conversion case from record_equivalences_from_incoming_edge
11617 and use record_equality to record equivalences.
11618 (record_equivalences_from_incoming_edge): Call
11619 record_temporary_equivalences.
11621 2015-07-14 Richard Biener <rguenther@suse.de>
11623 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
11624 (struct if_expr): New.
11625 (struct with_expr): Likewise.
11626 (is_a_helper): Add helpers for if_expr and with_expr.
11627 (struct simplify): Add simplify_kind enum and member. Remove
11629 (simplify::simplify): Adjust.
11630 (lower_commutative): Adjust.
11631 (lower_opt_convert): Likewise.
11632 (lower_cond): Likewise.
11633 (replace_id): Handle with_expr and if_expr.
11634 (lower_for): Adjust.
11635 (dt_simplify::gen_1): New recursive worker, split out from ...
11636 (dt_simplify::gen): ... here. Deal with if and with expansion
11638 (capture_info::capture_info): Take context argument
11639 (capture_info::walk_result): Only analyze specific result.
11640 (parser::parse_result): New function.
11641 (parser::parse_simplify): Adjust to parse ifs with then end
11643 (parser::parse_if): Simplify.
11644 (parser::parse_pattern): Pass down simplify kind.
11645 * match.pd: Convert if structure to new syntax.
11647 2015-07-13 Marek Polacek <polacek@redhat.com>
11649 * rtl.c (rtx_equal_p_cb): Fix typo.
11651 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
11653 * omega.h: Don't include config.h, don't include params.h again if
11654 omega.h has already been included.
11655 * graphite-poly.h: Include sese.h.
11656 * graphite.c: Don't include sese.h, remove needless includes and
11657 minimize includes outside #ifdef HAVE_isl block.
11658 * graphite-blocking.c: Don't include sese.h, remove needless includes,
11659 and wrap entire file in #ifdef HAVE_isl
11660 * graphite-dependences.c: Likewise.
11661 * graphite-interchange.c: Likewise.
11662 * graphite-isl-ast-to-gimple.c: Likewise.
11663 * graphite-optimize-isl.c: Likewise.
11664 * graphite-poly.c: Likewise.
11665 * graphite-scop-detection.c: Likewise.
11666 * graphite-sese-to-poly.c: Likewise.
11668 2015-07-13 Tom de Vries <tom@codesourcery.com>
11670 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
11672 2015-07-13 Renlin Li <renlin.li@arm.com>
11675 * simplify-rtx.c (simplify_const_relational_operation): Add
11676 side_effects_p checks.
11678 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
11680 * bitmap.h: Fix double word typos.
11681 * builtins.c: Same.
11683 * cfgloopmanip.c: Same.
11686 * cgraphclones.c: Same.
11688 * config/aarch64/aarch64-protos.h: Same.
11689 * config/aarch64/aarch64.c: Same.
11690 * config/aarch64/aarch64.md: Same.
11691 * config/arm/arm.md: Same.
11692 * config/arm/arm1020e.md: Same.
11693 * config/arm/arm1026ejs.md: Same.
11694 * config/arm/arm926ejs.md: Same.
11695 * config/arm/fa526.md: Same.
11696 * config/arm/fa606te.md: Same.
11697 * config/arm/fa626te.md: Same.
11698 * config/arm/fa726te.md: Same.
11699 * config/arm/fmp626.md: Same.
11700 * config/darwin.c: Same.
11701 * config/epiphany/epiphany.c: Same.
11702 * config/frv/frv.c: Same.
11703 * config/ft32/ft32.c: Same.
11704 * config/gnu-user.h: Same.
11705 * config/h8300/constraints.md: Same.
11706 * config/i386/i386.c: Same.
11707 * config/i386/i386.md: Same.
11708 * config/iq2000/iq2000.md: Same.
11709 * config/mips/mips.c: Same.
11710 * config/mmix/mmix.md: Same.
11711 * config/moxie/moxie.c: Same.
11712 * config/nds32/nds32.md: Same.
11713 * config/pa/pa.h: Same.
11714 * config/rs6000/aix.h: Same.
11715 * config/rs6000/rs6000.h: Same.
11716 * config/sh/sh.c: Same.
11717 * config/tilegx/tilegx.md: Same.
11718 * config/tilepro/gen-mul-tables.cc: Same.
11721 * doc/invoke.texi: Same.
11723 * dwarf2out.c: Same.
11726 * genmatch.c: Same.
11727 * gimplify.c: Same.
11728 * hash-table.h: Same.
11729 * internal-fn.c: Same.
11731 * ipa-devirt.c: Same.
11734 * ipa-profile.c: Same.
11735 * ipa-prop.c: Same.
11736 * ipa-prop.h: Same.
11739 * reg-stack.c: Same.
11740 * regcprop.c: Same.
11745 * tree-inline.c: Same.
11746 * tree-sra.c: Same.
11747 * tree-ssa-dom.c: Same.
11748 * tree-ssa-loop-ivopts.c: Same.
11749 * tree-ssa-structalias.c: Same.
11750 * tree-ssa-tail-merge.c: Same.
11751 * tree-ssa-ter.c: Same.
11752 * tree-ssa-threadupdate.c: Same.
11753 * tree-ssa-uninit.c: Same.
11754 * tree-ssanames.c: Same.
11755 * tree-vect-loop-manip.c: Same.
11756 * tree-vrp.c: Same.
11758 * valtrack.c: Same.
11761 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11763 PR middle-end/66726
11764 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
11765 tree_ssa_phiopt_worker): Call it.
11767 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11769 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
11770 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
11773 2015-07-11 Marek Polacek <polacek@redhat.com>
11775 PR middle-end/66353
11776 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
11777 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
11778 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
11779 rather than bb_has_abnormal_call_pred.
11780 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
11781 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
11782 rather than bb_has_abnormal_call_pred.
11784 2015-07-10 Anatoly Sokolov <aesok@post.ru>
11786 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11787 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
11788 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11789 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
11790 v850_legitimate_address_p): New functions.
11791 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11793 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
11796 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11797 indirect sibcall with register arguments if register available
11798 for argument passing.
11799 (init_cumulative_args): Set cfun->machine->arg_reg_available
11800 to (cum->nregs > 0) or to true if function has a variable
11802 (function_arg_advance_32): Set cfun->machine->arg_reg_available
11803 to false if cum->nregs <= 0.
11804 * config/i386/i386.h (machine_function): Add arg_reg_available.
11806 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
11808 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
11809 and gen_higpart instead of gen_rtx_SUBREG.
11810 * config/i386/i386.md
11811 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
11812 (read-modify peephole2): Use gen_lowpart instead of
11813 gen_rtx_SUBREG for operand 5.
11815 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11817 * config/tilepro/gen-mul-tables.cc (main): Change include list for
11819 * config/tilepro/mul-tables.c: Regenerate.
11820 * config/tilegx/mul-tables.c: Regenerate.
11822 2015-07-10 Richard Biener <rguenther@suse.de>
11824 * fold-const.c (distribute_bit_expr): Remove.
11825 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
11826 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
11827 to A & (B | C) and simplifying A << C1 << C2 to ...
11828 * match.pd: ... patterns here.
11830 2015-07-10 Jiong Wang <jiong.wang@arm.com>
11832 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11833 Mark mem as READONLY and NOTRAP for PIC symbol.
11835 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11837 * gimple-predict.h: New file.
11838 (gimple_predict_predictor, gimple_predict_set_predictor,
11839 gimple_predict_outcome, gimple_predict_set_outcome,
11840 gimple_build_predict): Relocate here.
11841 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
11842 gimple_predict_outcome, gimple_predict_set_outcome): Move to
11844 * gimple.c (gimple_build_predict): Move to gimple-predict.h
11845 * basic-block.h: Don't include cfghooks.h.
11846 * backend.h: Don't include predict.h.
11847 * cfghooks.h: Include predict.h.
11848 * gimple-pretty-print.c: Include gimple-predict.h.
11849 * gimplify.c: Likwise.
11850 * predict.c: Adjust includes.
11851 * tree-inline.c: Likewise.
11852 * asan.c: Likewise.
11853 * auto-inc-dec.c: Likewise.
11854 * auto-profile.c: Likewise.
11855 * bb-reorder.c: Likewise.
11856 * builtins.c: Likewise.
11857 * caller-save.c: Likewise.
11858 * calls.c: Likewise.
11859 * cfganal.c: Likewise.
11860 * cfgbuild.c: Likewise.
11862 * cfgcleanup.c: Likewise.
11863 * cfgexpand.c: Likewise.
11864 * cfghooks.c: Likewise.
11865 * cfgloopanal.c: Likewise.
11866 * cfgloop.c: Likewise.
11867 * cfgloopmanip.c: Likewise.
11868 * cfgrtl.c: Likewise.
11869 * cgraph.c: Likewise.
11870 * cgraphunit.c: Likewise.
11871 * combine.c: Likewise.
11872 * cprop.c: Likewise.
11875 * dojump.c: Likewise.
11877 * except.c: Likewise.
11878 * expmed.c: Likewise.
11879 * expr.c: Likewise.
11880 * final.c: Likewise.
11881 * fold-const.c: Likewise.
11882 * function.c: Likewise.
11883 * fwprop.c: Likewise.
11884 * gcc-plugin.h: Likewise.
11885 * gcse.c: Likewise.
11886 * genattrtab.c: Likewise.
11887 * genemit.c: Likewise.
11888 * gengtype.c: Likewise.
11889 * genopinit.c: Likewise.
11890 * genoutput.c: Likewise.
11891 * genpreds.c: Likewise.
11892 * genrecog.c: Likewise.
11893 * gimple-fold.c: Likewise.
11894 * gimple-iterator.c: Likewise.
11895 * gimple-ssa-isolate-paths.c: Likewise.
11896 * gimple-ssa-strength-reduction.c: Likewise.
11897 * graph.c: Likewise.
11898 * graphite-blocking.c: Likewise.
11899 * graphite.c: Likewise.
11900 * graphite-dependences.c: Likewise.
11901 * graphite-interchange.c: Likewise.
11902 * graphite-isl-ast-to-gimple.c: Likewise.
11903 * graphite-optimize-isl.c: Likewise.
11904 * graphite-poly.c: Likewise.
11905 * graphite-scop-detection.c: Likewise.
11906 * graphite-sese-to-poly.c: Likewise.
11907 * haifa-sched.c: Likewise.
11908 * ifcvt.c: Likewise.
11909 * internal-fn.c: Likewise.
11910 * ipa-cp.c: Likewise.
11911 * ipa-profile.c: Likewise.
11912 * ipa-split.c: Likewise.
11913 * ipa-utils.c: Likewise.
11914 * ira-build.c: Likewise.
11915 * ira-color.c: Likewise.
11916 * ira-conflicts.c: Likewise.
11917 * ira-costs.c: Likewise.
11918 * ira-emit.c: Likewise.
11919 * ira-lives.c: Likewise.
11920 * jump.c: Likewise.
11921 * loop-doloop.c: Likewise.
11922 * loop-init.c: Likewise.
11923 * loop-invariant.c: Likewise.
11924 * loop-unroll.c: Likewise.
11925 * lower-subreg.c: Likewise.
11926 * lra-assigns.c: Likewise.
11928 * lra-coalesce.c: Likewise.
11929 * lra-constraints.c: Likewise.
11930 * lra-lives.c: Likewise.
11931 * lto-cgraph.c: Likewise.
11932 * lto-streamer-in.c: Likewise.
11933 * mode-switching.c: Likewise.
11934 * modulo-sched.c: Likewise.
11935 * omp-low.c: Likewise.
11936 * optabs.c: Likewise.
11937 * passes.c: Likewise.
11938 * postreload.c: Likewise.
11939 * postreload-gcse.c: Likewise.
11940 * profile.c: Likewise.
11941 * recog.c: Likewise.
11942 * regstat.c: Likewise.
11943 * reload1.c: Likewise.
11944 * reorg.c: Likewise.
11945 * rtlanal.c: Likewise.
11946 * sched-ebb.c: Likewise.
11947 * sel-sched-ir.c: Likewise.
11948 * sese.c: Likewise.
11949 * shrink-wrap.c: Likewise.
11950 * simplify-rtx.c: Likewise.
11951 * stmt.c: Likewise.
11952 * store-motion.c: Likewise.
11953 * tracer.c: Likewise.
11954 * trans-mem.c: Likewise.
11955 * tree-call-cdce.c: Likewise.
11956 * tree-cfg.c: Likewise.
11957 * tree-cfgcleanup.c: Likewise.
11958 * tree-chkp.c: Likewise.
11959 * tree-complex.c: Likewise.
11960 * tree-eh.c: Likewise.
11961 * tree-if-conv.c: Likewise.
11962 * tree-loop-distribution.c: Likewise.
11963 * tree-outof-ssa.c: Likewise.
11964 * tree-parloops.c: Likewise.
11965 * tree-predcom.c: Likewise.
11966 * tree-pretty-print.c: Likewise.
11967 * tree-profile.c: Likewise.
11968 * tree-sra.c: Likewise.
11969 * tree-ssa.c: Likewise.
11970 * tree-ssa-coalesce.c: Likewise.
11971 * tree-ssa-dce.c: Likewise.
11972 * tree-ssa-dom.c: Likewise.
11973 * tree-ssa-forwprop.c: Likewise.
11974 * tree-ssa-ifcombine.c: Likewise.
11975 * tree-ssa-loop-ch.c: Likewise.
11976 * tree-ssa-loop-im.c: Likewise.
11977 * tree-ssa-loop-ivcanon.c: Likewise.
11978 * tree-ssa-loop-ivopts.c: Likewise.
11979 * tree-ssa-loop-manip.c: Likewise.
11980 * tree-ssa-loop-prefetch.c: Likewise.
11981 * tree-ssa-loop-unswitch.c: Likewise.
11982 * tree-ssa-math-opts.c: Likewise.
11983 * tree-ssa-phiopt.c: Likewise.
11984 * tree-ssa-pre.c: Likewise.
11985 * tree-ssa-reassoc.c: Likewise.
11986 * tree-ssa-sink.c: Likewise.
11987 * tree-ssa-tail-merge.c: Likewise.
11988 * tree-ssa-threadedge.c: Likewise.
11989 * tree-ssa-threadupdate.c: Likewise.
11990 * tree-switch-conversion.c: Likewise.
11991 * tree-tailcall.c: Likewise.
11992 * tree-vect-data-refs.c: Likewise.
11993 * tree-vect-loop.c: Likewise.
11994 * tree-vect-loop-manip.c: Likewise.
11995 * tree-vectorizer.c: Likewise.
11996 * tree-vrp.c: Likewise.
11997 * ubsan.c: Likewise.
11998 * value-prof.c: Likewise.
11999 * varasm.c: Likewise.
12000 * var-tracking.c: Likewise.
12001 * config/aarch64/aarch64-builtins.c: Likewise.
12002 * config/aarch64/aarch64.c: Likewise.
12003 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12004 * config/alpha/alpha.c: Likewise.
12005 * config/arc/arc.c: Likewise.
12006 * config/arm/arm.c: Likewise.
12007 * config/avr/avr.c: Likewise.
12008 * config/bfin/bfin.c: Likewise.
12009 * config/c6x/c6x.c: Likewise.
12010 * config/cr16/cr16.c: Likewise.
12011 * config/cris/cris.c: Likewise.
12012 * config/darwin.c: Likewise.
12013 * config/darwin-c.c: Likewise.
12014 * config/epiphany/epiphany.c: Likewise.
12015 * config/epiphany/mode-switch-use.c: Likewise.
12016 * config/epiphany/resolve-sw-modes.c: Likewise.
12017 * config/fr30/fr30.c: Likewise.
12018 * config/frv/frv.c: Likewise.
12019 * config/ft32/ft32.c: Likewise.
12020 * config/h8300/h8300.c: Likewise.
12021 * config/i386/i386.c: Likewise.
12022 * config/i386/winnt.c: Likewise.
12023 * config/ia64/ia64.c: Likewise.
12024 * config/iq2000/iq2000.c: Likewise.
12025 * config/lm32/lm32.c: Likewise.
12026 * config/m32c/m32c.c: Likewise.
12027 * config/m32r/m32r.c: Likewise.
12028 * config/m68k/m68k.c: Likewise.
12029 * config/mcore/mcore.c: Likewise.
12030 * config/mep/mep.c: Likewise.
12031 * config/microblaze/microblaze.c: Likewise.
12032 * config/mips/mips.c: Likewise.
12033 * config/mmix/mmix.c: Likewise.
12034 * config/mn10300/mn10300.c: Likewise.
12035 * config/moxie/moxie.c: Likewise.
12036 * config/msp430/msp430.c: Likewise.
12037 * config/nds32/nds32.c: Likewise.
12038 * config/nds32/nds32-cost.c: Likewise.
12039 * config/nds32/nds32-fp-as-gp.c: Likewise.
12040 * config/nds32/nds32-intrinsic.c: Likewise.
12041 * config/nds32/nds32-isr.c: Likewise.
12042 * config/nds32/nds32-md-auxiliary.c: Likewise.
12043 * config/nds32/nds32-memory-manipulation.c: Likewise.
12044 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12045 * config/nds32/nds32-predicates.c: Likewise.
12046 * config/nios2/nios2.c: Likewise.
12047 * config/nvptx/nvptx.c: Likewise.
12048 * config/pa/pa.c: Likewise.
12049 * config/pdp11/pdp11.c: Likewise.
12050 * config/rl78/rl78.c: Likewise.
12051 * config/rs6000/rs6000.c: Likewise.
12052 * config/rx/rx.c: Likewise.
12053 * config/s390/s390.c: Likewise.
12054 * config/sh/sh.c: Likewise.
12055 * config/sh/sh-mem.cc: Likewise.
12056 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12057 * config/sh/sh_treg_combine.cc: Likewise.
12058 * config/sparc/sparc.c: Likewise.
12059 * config/spu/spu.c: Likewise.
12060 * config/stormy16/stormy16.c: Likewise.
12061 * config/tilegx/tilegx.c: Likewise.
12062 * config/tilepro/tilepro.c: Likewise.
12063 * config/v850/v850.c: Likewise.
12064 * config/vax/vax.c: Likewise.
12065 * config/visium/visium.c: Likewise.
12066 * config/xtensa/xtensa.c: Likewise.
12068 2015-07-10 Richard Biener <rguenther@suse.de>
12070 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12071 (decision_tree::gen_gimple): Likewise.
12072 (decision_tree::gen_generic): Likewise.
12074 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12077 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12078 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12080 2015-07-10 Jakub Jelinek <jakub@redhat.com>
12082 PR middle-end/66820
12083 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12084 or ORT_TASK contexts.
12085 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12088 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12090 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12093 2015-07-10 Tom de Vries <tom@codesourcery.com>
12095 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12096 insert nit + 1 bound.
12098 2015-07-10 Richard Biener <rguenther@suse.de>
12100 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12101 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12102 (if_convertible_loop_p_1): For this always compute bb predicates.
12103 (if_convertible_loop_p): And free them.
12105 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12107 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12110 2015-07-10 Richard Biener <rguenther@suse.de>
12112 PR tree-optimization/66823
12113 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12114 inverted predicate.
12116 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
12118 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12119 to handle mips[32|64]r3 and mips[32|64]r5.
12121 2015-07-09 Jakub Jelinek <jakub@redhat.com>
12123 PR middle-end/66633
12124 * tree-nested.c (get_static_chain): Or in a flag into
12125 info->static_chain_added.
12126 (get_frame_field, get_nonlocal_debug_decl): Likewise.
12127 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12128 2015-07-01 changes.
12129 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12130 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12133 PR tree-optimization/66718
12134 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12136 (vect_simd_lane_linear): New function.
12137 (vectorizable_simd_clone_call): Support using linear arguments for
12138 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12140 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12143 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12145 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12147 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12148 Use machine mode, not enum machine_mode in the prototype.
12150 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12151 classify 128-bit floating point support.
12152 (FLOAT128_IBM_P): Likewise.
12153 (FLOAT128_VECTOR_P): Likewise.
12154 (FLOAT128_2REG_P): Likewise.
12155 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12156 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12157 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12158 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12160 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12161 tests against TFmode/TDmode, since those modes do not use VSX
12163 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12165 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12166 tests against TFmode, etc.
12167 (invalid_e500_subreg): Add tests against IFmode/KFmode.
12168 (reg_offset_addressing_ok_p): Likewise.
12169 (rs6000_legitimate_offset_address_p): Likewise.
12170 (rs6000_legitimize_address): Likewise.
12171 (rs6000_legitimize_reload_address): Likewise.
12172 (rs6000_legitimate_address_p): Clean up tests against TFmode and
12173 TDmode to use the new helper macros, which will include IFmode and
12175 (rs6000_emit_move): Likewise.
12176 (rs6000_darwin64_record_arg_recurse): Likewise.
12177 (print_operand): Likewise.
12178 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12179 that uses a single vector register as a vector and not as a
12180 floating point register in terms of the calling sequence.
12181 (rs6000_discover_homogeneous_aggregate): Likewise.
12182 (rs6000_return_in_memory): Likewise.
12183 (init_cumulative_args): Likewise.
12184 (rs6000_function_arg_boundary): Likewise.
12185 (rs6000_function_arg_advance_1): Likewise.
12186 (rs6000_function_arg): Likewise.
12187 (rs6000_pass_by_reference): Likewise.
12188 (rs6000_gimplify_va_arg): Likewise.
12189 (rs6000_secondary_reload_memory): Use machine_mode not enum
12191 (rs6000_split_multireg_move): Use new helper macros.
12192 (spe_func_has_64bit_regs_p): Likewise.
12193 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12194 (output_toc): Use new helper macros.
12195 (rs6000_register_move_cost): Likewise.
12196 (rs6000_function_value): Add IEEE 128-bit floating point calling
12198 (rs6000_libcall_value): Likewise.
12199 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12200 floating point support.
12201 (rs6000_vector_mode_supported_p): Likewise.
12203 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
12205 PR rtl-optimization/66782
12206 * lra-int.h (struct lra_insn_recog_data): Add comment about
12207 clobbered hard regs for arg_hard_regs.
12208 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12209 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12210 Add condition for processing used hard regs.
12211 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12212 Process clobbered hard regs.
12214 2015-07-09 Michael Matz <matz@suse.de>
12216 * genmatch.c (fprintf_indent): New function.
12217 (operand::gen_transform): Add indent parameter.
12218 (expr::gen_transform, c_expr::gen_transform,
12219 capture::gen_transform): Ditto and use fprintf_indent.
12220 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12221 (dt_operand::gen, dt_operand::gen_predicate,
12222 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12223 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12224 (decision_tree::gen_gimple): Adjust calls and indent generated
12226 (decision_tree::gen_generic): Ditto.
12227 (write_predicate): Ditto.
12229 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12232 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12233 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12234 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12235 {GENERAL,SSE,MMX}_REG_P where appropriate.
12237 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12239 * lto-streamer.h: Don't include target.h and alloc-pool.h.
12240 * builtins.c: Adjust includes.
12241 * gimple.c: Likewise.
12242 * ipa-icf.c: Likewise.
12243 * lto-opts.c: Likewise.
12244 * ipa-reference.c: Likewise.
12245 * lto-section-out.c: Likewise.
12246 * lto-streamer-in.c: Likewise.
12247 * lto-streamer-out.c: Likewise.
12248 * opts-global.c: Likewise.
12249 * symtab.c: Likewise.
12250 * tree-chkp.c: Likewise.
12251 * tree-ssa-live.c: Likewise.
12252 * tree-streamer-in.c: Likewise.
12253 * tree-streamer-out.c: Likewise.
12254 * config/darwin.c: Likewise.
12255 * config/i386/winnt.c: Likewise.
12257 2015-07-09 Richard Biener <rguenther@suse.de>
12259 * genmatch.c (struct expr): Add force_single_use flag.
12260 (expr::expr): Add copy constructor.
12261 (capture_info::walk_match): Gather force_single_use captures.
12262 (expr::gen_transform): Use possibly NULLified sequence.
12263 (dt_simplify::gen): Apply single-use restrictions by NULLifying
12264 seq if any constrained expr is not single-use.
12265 (parser::parse_expr): Refactor to allow multiple flags. Handle
12266 's' flag to force an expression have a single-use if the pattern
12267 simplifies to more than one statement.
12268 * match.pd: Convert most single_use conditionals to :s flags.
12270 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12272 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12273 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12274 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12276 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12278 * flags.h: Don't include flag-types.h or options.h.
12279 * opts-common.c: Adjust includes.
12280 * opts-global.c: Likewise.
12281 * common/config/epiphany/epiphany-common.c: Likewise.
12283 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12286 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12289 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12292 * config/i386/i386.c (ix86_return_in_memory): Return true
12293 if int_size_in_bytes returns negative for IA MCU.
12295 2015-07-09 Marek Polacek <polacek@redhat.com>
12297 PR tree-optimization/66718
12298 * Makefile.in (OBJS): Add gimple-laddress.o.
12299 * passes.def: Schedule pass_laddress.
12300 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12301 * tree-pass.h (make_pass_laddress): Declare.
12302 * gimple-laddress.c: New file.
12304 2015-07-09 Richard Biener <rguenther@suse.de>
12306 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12308 2015-07-09 Richard Biener <rguenther@suse.de>
12310 PR tree-optimization/66807
12311 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12313 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
12315 * function.c (stack_protect_epilogue): Use if rather than switch for
12316 check targetm.have_stack_protect_test.
12318 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12320 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12321 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12322 * config/arc/arc.h: Likewise.
12323 * config/arm/arm.h: Likewise.
12324 * config/bfin/bfin.h: Likewise.
12325 * config/epiphany/epiphany.h: Likewise.
12326 * config/frv/frv.h: Likewise.
12327 * config/ia64/ia64.h: Likewise.
12328 * config/iq2000/iq2000.h: Likewise.
12329 * config/lm32/lm32.h: Likewise.
12330 * config/m32r/m32r.h: Likewise.
12331 * config/mcore/mcore.h: Likewise.
12332 * config/mep/mep.h: Likewise.
12333 * config/microblaze/microblaze.h: Likewise.
12334 * config/mips/mips.h: Likewise.
12335 * config/mmix/mmix.h: Likewise.
12336 * config/mn10300/mn10300.h: Likewise.
12337 * config/nds32/nds32.h: Likewise.
12338 * config/nios2/nios2.h: Likewise.
12339 * config/pa/pa.h: Likewise.
12340 * config/rl78/rl78.h: Likewise.
12341 * config/sh/sh.h: Likewise.
12342 * config/sparc/sparc.h: Likewise.
12343 * config/stormy16/stormy16.h: Likewise.
12344 * config/tilegx/tilegx.h: Likewise.
12345 * config/tilepro/tilepro.h: Likewise.
12346 * config/v850/v850.h: Likewise.
12347 * config/xtensa/xtensa.h: Likewise.
12348 * doc/tm.texi: Regenerate.
12349 * doc/tm.texi.in: Adjust.
12350 * combine.c (simplify_set): Likewise.
12351 (simplify_comparison): Likewise.
12352 * expr.c (store_constructor): Likewise.
12353 * internal-fn.c (expand_arith_overflow): Likewise.
12354 * reload.c (push_reload): Likewise.
12355 (find_reloads): Likewise.
12356 (find_reloads_subreg_address): Likewise.
12357 * reload1.c (eliminate_regs_1): Likewise.
12358 * rtlanal.c (nonzero_bits1): Likewise.
12359 (num_sign_bit_copies1): Likewise.
12360 * simplify-rtx.c (simplify_truncation): Likewise.
12362 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12364 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12365 of AUTO_INC_DEC with the preprocessor.
12366 * combine.c (combine_instructions): Likewise.
12367 (can_combine_p): Likewise.
12368 (try_combine): Likewise.
12369 * emit-rtl.c (try_split): Likewise.
12370 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12371 * lower-subreg.c (resolve_simple_move): Likewise.
12372 * lra.c (update_inc_notes): Likewise.
12373 * recog.c (asm_operand_ok): Likewise.
12374 (constrain_operands): Likewise.
12375 * regrename.c (scan_rtx_address): Likewise.
12376 * reload.c (update_auto_inc_notes): Likewise.
12377 (reg_inc_found_and_valid_p): Likewise.
12378 * reload1.c (reload): Likewise.
12379 (emit_input_reload_insns): Likewise.
12380 (delete_output_reload): Likewise.
12381 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12382 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12384 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12386 * rtl.h: Always define AUTO_INC_DEC.
12387 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12388 * combine.c (combine_instructions): Likewise.
12389 (can_combine_p): Likewise.
12390 (try_combine): Likewise.
12391 * emit-rtl.c (try_split): Likewise.
12392 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12393 * lower-subreg.c (resolve_simple_move): Likewise.
12394 * lra.c (update_inc_notes): Likewise.
12395 * recog.c (asm_operand_ok): Likewise.
12396 (constrain_operands): Likewise.
12397 * regrename.c (scan_rtx_address): Likewise.
12398 * reload.c (update_auto_inc_notes): Likewise.
12399 (find_equiv_reg): Likewise.
12400 * reload1.c (reload): Likewise.
12401 (reload_as_needed): Likewise.
12402 (choose_reload_regs): Likewise.
12403 (emit_input_reload_insns): Likewise.
12404 (delete_output_reload): Likewise.
12405 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12406 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12408 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12410 * combine.c (can_combine_def_p): Don't check the value of
12411 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12412 (combinable_i3pat): Likewise.
12413 (mark_used_regs_combine): Likewise.
12414 * regrename.c (rename_chains): Likewise.
12415 * reload.c (find_reloads_address): Likewise.
12416 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12418 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12420 * combine.c (update_rsp_from_reg_equal): Don't check if
12421 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12422 (reg_nonzero_bits_for_combine): Likewise.
12423 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12425 * config/frv/frv.h: Likewise.
12426 * config/lm32/lm32.h: Likewise.
12427 * config/mep/mep.h: Likewise.
12428 * config/mips/mips.h: Likewise.
12429 * config/rs6000/rs6000.h: Likewise.
12430 * config/sh/sh.h: Likewise.
12431 * config/tilegx/tilegx.h (enum reg_class): Likewise.
12432 * config/tilepro/tilepro.h: Likewise.
12433 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
12434 * doc/tm.texi: Regenerate.
12435 * doc/tm.texi.in: Adjust.
12436 * rtlanal.c (nonzero_bits1): Likewise.
12438 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12440 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
12441 with the preprocessor.
12442 (combine_instructions): Likewise.
12443 (try_combine): Likewise.
12445 (distribute_notes): Likewise.
12447 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12449 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
12451 (simplify_set): Likewise.
12452 * cse.c (cse_insn): Likewise.
12453 * fold-const.c (fold_single_bit_test): Likewise.
12454 (fold_unary_loc): Likewise.
12455 * postreload.c (reload_cse_simplify_set): Likewise.
12456 (reload_cse_simplify_operands): Likewise.
12458 2015-07-08 Jiong Wang <jiong.wang@arm.com>
12460 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
12461 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
12463 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12466 * config/i386/x86intrin.h: Include <adxintrin.h> even if
12467 __iamcu__ is defined.
12469 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12471 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
12473 2015-07-08 Iain Sandoe <iain@codesourcery.com>
12476 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
12477 names from preservation.
12479 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12482 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
12484 (function_arg_advance_32): Don't pass vectors in registers for
12486 (function_arg_32): Likewise.
12487 (ix86_return_in_memory): Don't return vectors in registers for
12490 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
12492 PR middle-end/66334
12493 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
12494 hard regno live at the start of BB with incoming abnormal edges.
12495 * lra-lives.c (process_bb_lives): Ditto.
12497 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12500 * config/nvptx/mkoffload.c (main): Create an offload image only in
12501 64-bit configurations.
12503 2015-07-08 Martin Liska <mliska@suse.cz>
12506 * tree-sra.c (create_access_1): Call ctor without brackets.
12507 (create_artificial_child_access): Likewise.
12509 2015-07-08 Richard Biener <rguenther@suse.de>
12511 PR tree-optimization/66793
12512 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
12513 Properly split the block after stmts ending it.
12515 2015-07-08 Richard Biener <rguenther@suse.de>
12517 PR tree-optimization/66794
12518 * passes.c (execute_function_todo): Assert that post-dominators
12520 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
12521 Free post-dominators.
12523 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12525 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
12528 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12530 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
12531 more than or equal 8 and less than 32 when optimizing for size.
12533 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12535 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
12536 COSTS_N_INSNS (1) and increment it appropriately throughout the
12539 2015-07-08 Richard Biener <rguenther@suse.de>
12541 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
12543 2015-07-08 Alan Modra <amodra@gmail.com>
12545 * target.def (rtx_costs): Remove "code" param, add "mode".
12546 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
12547 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
12548 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
12549 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
12550 call. Track mode when given in rtx.
12551 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
12552 (default_address_cost): Pass Pmode to rtx_cost.
12553 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
12554 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
12556 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
12557 (notreg_cost): Add mode param. Use it.
12558 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
12559 mode param and pass to set_src_cost. Update all calls.
12560 (hash_scan_set): Formatting.
12561 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
12562 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
12564 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
12565 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
12566 emit_store_flag): Update set_src_cost and rtx_cost calls.
12567 * auto-inc-dec.c (attempt_change): Likewise.
12568 * calls.c (precompute_register_parameters): Likewise.
12569 * combine.c (expand_compound_operation, make_extraction,
12570 force_to_mode, distribute_and_simplify_rtx): Likewise.
12571 * dojump.c (prefer_and_bit_test): Likewise.
12572 * dse.c (find_shift_sequence): Likewise.
12573 * expr.c (compress_float_constant): Likewise.
12574 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
12575 * ifcvt.c (noce_try_sign_mask): Likewise.
12576 * loop-doloop.c (doloop_optimize): Likewise.
12577 * loop-invariant.c (create_new_invariant): Likewise.
12578 * lower-subreg.c (shift_cost, compute_costs): Likewise.
12579 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
12580 lshift_cheap_p): Likewise.
12581 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
12582 try_replace_in_use, reload_cse_move2add): Likewise.
12583 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
12585 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12586 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12587 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
12588 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12589 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
12590 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
12592 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
12593 * config/arc/arc.c (arc_rtx_costs): Likewise.
12594 * config/arm/arm.c (arm_rtx_costs): Likewise.
12595 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
12596 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
12597 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
12598 * config/cris/cris.c (cris_rtx_costs): Likewise.
12599 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
12600 * config/frv/frv.c (frv_rtx_costs): Likewise.
12601 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
12602 * config/i386/i386.c (ix86_rtx_costs): Likewise.
12603 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
12604 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
12605 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
12606 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
12607 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
12608 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
12609 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
12610 * config/mep/mep.c (mep_rtx_cost): Likewise.
12611 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
12612 * config/mips/mips.c (mips_rtx_costs): Likewise.
12613 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
12614 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
12615 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
12616 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
12617 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
12618 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
12619 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
12620 * config/pa/pa.c (hppa_rtx_costs): Likewise.
12621 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
12622 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
12623 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
12624 * config/s390/s390.c (s390_rtx_costs): Likewise.
12625 * config/sh/sh.c (sh_rtx_costs): Likewise.
12626 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
12627 * config/spu/spu.c (spu_rtx_costs): Likewise.
12628 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
12629 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
12630 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
12631 * config/v850/v850.c (v850_rtx_costs): Likewise.
12632 * config/vax/vax.c (vax_rtx_costs): Likewise.
12633 * config/visium/visium.c (visium_rtx_costs): Likewise.
12634 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
12635 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
12636 "code" param, and pass as outer_code to first rtx_cost call. Pass
12637 mode to rtx_cost calls.
12638 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
12640 (aarch64_rtx_costs_wrapper): Update.
12641 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
12642 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
12644 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
12645 and rtx_cost calls.
12646 (avr_operand_rtx_cost): Similarly.
12647 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
12648 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
12649 * config/mips/mips.c (mips_stack_address_p): Comment typo.
12650 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
12651 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
12652 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
12654 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
12655 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
12656 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
12657 * doc/tm.texi: Regenerate.
12659 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
12661 * tree-core.h: Include symtab.h.
12662 * rtl.h: Include hard-reg-set.h but not flags.h.
12663 (HARD_CONST): Remove condition compilation involving HARD_CONST since
12664 hard-reg-set.h is always included.
12665 * regs.h: Don't include hard-reg-set.h or rtl.h.
12666 * cfg.h: Include dominance.h.
12667 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
12668 * backend.h: New. Aggregate commonly used backend header files.
12669 * gimple-ssa.h: Don't include tree-hasher.h.
12670 * ssa.h: New. Aggregate commonly used SSA header files.
12671 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
12672 * sel-sched-ir.h: Flatten includes.
12673 * lra-int.h: Flatten completely.
12674 * sel-sched-dump.h: Flatten includes.
12675 * ira-int.h: Flatten includes.
12676 * gimple-streamer.h: Remove all includes.
12677 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
12678 * resource.h: Flatten hard-reg-set.h and df.h.
12679 * sched-int.h: Flatten insn-arrt.h and df.h.
12680 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
12681 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
12682 * genattrtab.c (write_header): Adjust generated includes.
12683 * genautomata.c (main): Likewise.
12684 * genconditions.c (write-header): Likewise.
12685 * genemit.c (main): Likewise.
12686 * gengtype.c (open_base_files): Likewise.
12687 * genopinit.c (main): Likewise.
12688 * genoutput.c (output_prologue): Likewise.
12689 * genpeep.c (main): Likewise.
12690 * genpreds.c (write_insn_preds_c): Likewise.
12691 * genrecog.c (write_header): Likewise.
12692 * alias.c: Adjust includes.
12693 * asan.c: Likewise.
12694 * attribs.c: Likewise.
12695 * auto-inc-dec.c: Likewise.
12696 * auto-profile.c: Likewise.
12697 * bb-reorder.c: Likewise.
12698 * bt-load.c: Likewise.
12699 * builtins.c: Likewise.
12700 * caller-save.c: Likewise.
12701 * calls.c: Likewise.
12702 * ccmp.c: Likewise.
12704 * cfganal.c: Likewise.
12705 * cfgbuild.c: Likewise.
12706 * cfgcleanup.c: Likewise.
12707 * cfgexpand.c: Likewise.
12708 * cfghooks.c: Likewise.
12709 * cfgloop.c: Likewise.
12710 * cfgloopanal.c: Likewise.
12711 * cfgloopmanip.c: Likewise.
12712 * cfgrtl.c: Likewise.
12713 * cgraph.c: Likewise.
12714 * cgraphbuild.c: Likewise.
12715 * cgraphclones.c: Likewise.
12716 * cgraphunit.c: Likewise.
12717 * cilk-common.c: Likewise.
12718 * combine-stack-adj.c: Likewise.
12719 * combine.c: Likewise.
12720 * compare-elim.c: Likewise.
12721 * convert.c: Likewise.
12722 * coverage.c: Likewise.
12723 * cppbuiltin.c: Likewise.
12724 * cprop.c: Likewise.
12726 * cselib.c: Likewise.
12727 * data-streamer-in.c: Likewise.
12728 * data-streamer-out.c: Likewise.
12729 * data-streamer.c: Likewise.
12730 * dbxout.c: Likewise.
12733 * debug.c: Likewise.
12734 * df-core.c: Likewise.
12735 * df-problems.c: Likewise.
12736 * df-scan.c: Likewise.
12738 * dojump.c: Likewise.
12739 * dominance.c: Likewise.
12740 * domwalk.c: Likewise.
12741 * double-int.c: Likewise.
12743 * dumpfile.c: Likewise.
12744 * dwarf2asm.c: Likewise.
12745 * dwarf2cfi.c: Likewise.
12746 * dwarf2out.c: Likewise.
12747 * emit-rtl.c: Likewise.
12748 * et-forest.c: Likewise.
12749 * except.c: Likewise.
12750 * explow.c: Likewise.
12751 * expmed.c: Likewise.
12752 * expr.c: Likewise.
12753 * final.c: Likewise.
12754 * fixed-value.c: Likewise.
12755 * fold-const.c: Likewise.
12756 * function.c: Likewise.
12757 * fwprop.c: Likewise.
12758 * gcc-plugin.h: Likewise.
12759 * gcse-common.c: Likewise.
12760 * gcse.c: Likewise.
12761 * generic-match-head.c: Likewise.
12762 * ggc-page.c: Likewise.
12763 * gimple-builder.c: Likewise.
12764 * gimple-expr.c: Likewise.
12765 * gimple-fold.c: Likewise.
12766 * gimple-iterator.c: Likewise.
12767 * gimple-low.c: Likewise.
12768 * gimple-match-head.c: Likewise.
12769 * gimple-pretty-print.c: Likewise.
12770 * gimple-ssa-isolate-paths.c: Likewise.
12771 * gimple-ssa-strength-reduction.c: Likewise.
12772 * gimple-streamer-in.c: Likewise.
12773 * gimple-streamer-out.c: Likewise.
12774 * gimple-walk.c: Likewise.
12775 * gimple.c: Likewise.
12776 * gimplify-me.c: Likewise.
12777 * gimplify.c: Likewise.
12778 * godump.c: Likewise.
12779 * graph.c: Likewise.
12780 * graphite-blocking.c: Likewise.
12781 * graphite-dependences.c: Likewise.
12782 * graphite-interchange.c: Likewise.
12783 * graphite-isl-ast-to-gimple.c: Likewise.
12784 * graphite-optimize-isl.c: Likewise.
12785 * graphite-poly.c: Likewise.
12786 * graphite-scop-detection.c: Likewise.
12787 * graphite-sese-to-poly.c: Likewise.
12788 * graphite.c: Likewise.
12789 * haifa-sched.c: Likewise.
12790 * hw-doloop.c: Likewise.
12791 * ifcvt.c: Likewise.
12792 * init-regs.c: Likewise.
12793 * internal-fn.c: Likewise.
12794 * ipa-chkp.c: Likewise.
12795 * ipa-comdats.c: Likewise.
12796 * ipa-cp.c: Likewise.
12797 * ipa-devirt.c: Likewise.
12798 * ipa-icf-gimple.c: Likewise.
12799 * ipa-icf.c: Likewise.
12800 * ipa-inline-analysis.c: Likewise.
12801 * ipa-inline-transform.c: Likewise.
12802 * ipa-inline.c: Likewise.
12803 * ipa-polymorphic-call.c: Likewise.
12804 * ipa-profile.c: Likewise.
12805 * ipa-prop.c: Likewise.
12806 * ipa-pure-const.c: Likewise.
12807 * ipa-ref.c: Likewise.
12808 * ipa-reference.c: Likewise.
12809 * ipa-split.c: Likewise.
12810 * ipa-utils.c: Likewise.
12811 * ipa-visibility.c: Likewise.
12813 * ira-build.c: Likewise.
12814 * ira-color.c: Likewise.
12815 * ira-conflicts.c: Likewise.
12816 * ira-costs.c: Likewise.
12817 * ira-emit.c: Likewise.
12818 * ira-lives.c: Likewise.
12820 * jump.c: Likewise.
12821 * langhooks.c: Likewise.
12823 * loop-doloop.c: Likewise.
12824 * loop-init.c: Likewise.
12825 * loop-invariant.c: Likewise.
12826 * loop-iv.c: Likewise.
12827 * loop-unroll.c: Likewise.
12828 * lower-subreg.c: Likewise.
12829 * lra-assigns.c: Likewise.
12830 * lra-coalesce.c: Likewise.
12831 * lra-constraints.c: Likewise.
12832 * lra-eliminations.c: Likewise.
12833 * lra-lives.c: Likewise.
12834 * lra-remat.c: Likewise.
12835 * lra-spills.c: Likewise.
12837 * lto-cgraph.c: Likewise.
12838 * lto-compress.c: Likewise.
12839 * lto-opts.c: Likewise.
12840 * lto-section-in.c: Likewise.
12841 * lto-section-out.c: Likewise.
12842 * lto-streamer-in.c: Likewise.
12843 * lto-streamer-out.c: Likewise.
12844 * lto-streamer.c: Likewise.
12846 * mode-switching.c: Likewise.
12847 * modulo-sched.c: Likewise.
12848 * omega.c: Likewise.
12849 * omp-low.c: Likewise.
12850 * optabs.c: Likewise.
12851 * opts-global.c: Likewise.
12852 * passes.c: Likewise.
12853 * plugin.c: Likewise.
12854 * postreload-gcse.c: Likewise.
12855 * postreload.c: Likewise.
12856 * predict.c: Likewise.
12857 * print-rtl.c: Likewise.
12858 * print-tree.c: Likewise.
12859 * profile.c: Likewise.
12860 * real.c: Likewise.
12861 * realmpfr.c: Likewise.
12862 * recog.c: Likewise.
12864 * reg-stack.c: Likewise.
12865 * regcprop.c: Likewise.
12866 * reginfo.c: Likewise.
12867 * regrename.c: Likewise.
12868 * regstat.c: Likewise.
12869 * reload.c: Likewise.
12870 * reload1.c: Likewise.
12871 * reorg.c: Likewise.
12872 * resource.c: Likewise.
12873 * rtl-chkp.c: Likewise.
12874 * rtlanal.c: Likewise.
12875 * rtlhooks.c: Likewise.
12876 * sanopt.c: Likewise.
12877 * sched-deps.c: Likewise.
12878 * sched-ebb.c: Likewise.
12879 * sched-rgn.c: Likewise.
12880 * sched-vis.c: Likewise.
12881 * sdbout.c: Likewise.
12882 * sel-sched-dump.c: Likewise.
12883 * sel-sched-ir.c: Likewise.
12884 * sel-sched.c: Likewise.
12885 * sese.c: Likewise.
12886 * shrink-wrap.c: Likewise.
12887 * simplify-rtx.c: Likewise.
12888 * stack-ptr-mod.c: Likewise.
12889 * stmt.c: Likewise.
12890 * stor-layout.c: Likewise.
12891 * store-motion.c: Likewise.
12892 * stringpool.c: Likewise.
12893 * symtab.c: Likewise.
12894 * target-globals.c: Likewise.
12895 * targhooks.c: Likewise.
12896 * toplev.c: Likewise.
12897 * tracer.c: Likewise.
12898 * trans-mem.c: Likewise.
12899 * tree-affine.c: Likewise.
12900 * tree-browser.c: Likewise.
12901 * tree-call-cdce.c: Likewise.
12902 * tree-cfg.c: Likewise.
12903 * tree-cfgcleanup.c: Likewise.
12904 * tree-chkp-opt.c: Likewise.
12905 * tree-chkp.c: Likewise.
12906 * tree-chrec.c: Likewise.
12907 * tree-complex.c: Likewise.
12908 * tree-data-ref.c: Likewise.
12909 * tree-dfa.c: Likewise.
12910 * tree-diagnostic.c: Likewise.
12911 * tree-dump.c: Likewise.
12912 * tree-eh.c: Likewise.
12913 * tree-emutls.c: Likewise.
12914 * tree-if-conv.c: Likewise.
12915 * tree-inline.c: Likewise.
12916 * tree-into-ssa.c: Likewise.
12917 * tree-iterator.c: Likewise.
12918 * tree-loop-distribution.c: Likewise.
12919 * tree-nested.c: Likewise.
12920 * tree-nrv.c: Likewise.
12921 * tree-object-size.c: Likewise.
12922 * tree-outof-ssa.c: Likewise.
12923 * tree-parloops.c: Likewise.
12924 * tree-phinodes.c: Likewise.
12925 * tree-predcom.c: Likewise.
12926 * tree-pretty-print.c: Likewise.
12927 * tree-profile.c: Likewise.
12928 * tree-scalar-evolution.c: Likewise.
12929 * tree-sra.c: Likewise.
12930 * tree-ssa-address.c: Likewise.
12931 * tree-ssa-alias.c: Likewise.
12932 * tree-ssa-ccp.c: Likewise.
12933 * tree-ssa-coalesce.c: Likewise.
12934 * tree-ssa-copy.c: Likewise.
12935 * tree-ssa-copyrename.c: Likewise.
12936 * tree-ssa-dce.c: Likewise.
12937 * tree-ssa-dom.c: Likewise.
12938 * tree-ssa-dse.c: Likewise.
12939 * tree-ssa-forwprop.c: Likewise.
12940 * tree-ssa-ifcombine.c: Likewise.
12941 * tree-ssa-live.c: Likewise.
12942 * tree-ssa-loop-ch.c: Likewise.
12943 * tree-ssa-loop-im.c: Likewise.
12944 * tree-ssa-loop-ivcanon.c: Likewise.
12945 * tree-ssa-loop-ivopts.c: Likewise.
12946 * tree-ssa-loop-manip.c: Likewise.
12947 * tree-ssa-loop-niter.c: Likewise.
12948 * tree-ssa-loop-prefetch.c: Likewise.
12949 * tree-ssa-loop-unswitch.c: Likewise.
12950 * tree-ssa-loop.c: Likewise.
12951 * tree-ssa-math-opts.c: Likewise.
12952 * tree-ssa-operands.c: Likewise.
12953 * tree-ssa-phiopt.c: Likewise.
12954 * tree-ssa-phiprop.c: Likewise.
12955 * tree-ssa-pre.c: Likewise.
12956 * tree-ssa-propagate.c: Likewise.
12957 * tree-ssa-reassoc.c: Likewise.
12958 * tree-ssa-sccvn.c: Likewise.
12959 * tree-ssa-scopedtables.c: Likewise.
12960 * tree-ssa-sink.c: Likewise.
12961 * tree-ssa-strlen.c: Likewise.
12962 * tree-ssa-structalias.c: Likewise.
12963 * tree-ssa-tail-merge.c: Likewise.
12964 * tree-ssa-ter.c: Likewise.
12965 * tree-ssa-threadedge.c: Likewise.
12966 * tree-ssa-threadupdate.c: Likewise.
12967 * tree-ssa-uncprop.c: Likewise.
12968 * tree-ssa-uninit.c: Likewise.
12969 * tree-ssa.c: Likewise.
12970 * tree-ssanames.c: Likewise.
12971 * tree-stdarg.c: Likewise.
12972 * tree-streamer-in.c: Likewise.
12973 * tree-streamer-out.c: Likewise.
12974 * tree-streamer.c: Likewise.
12975 * tree-switch-conversion.c: Likewise.
12976 * tree-tailcall.c: Likewise.
12977 * tree-vect-data-refs.c: Likewise.
12978 * tree-vect-generic.c: Likewise.
12979 * tree-vect-loop-manip.c: Likewise.
12980 * tree-vect-loop.c: Likewise.
12981 * tree-vect-patterns.c: Likewise.
12982 * tree-vect-slp.c: Likewise.
12983 * tree-vect-stmts.c: Likewise.
12984 * tree-vectorizer.c: Likewise.
12985 * tree-vrp.c: Likewise.
12986 * tree.c: Likewise.
12987 * tsan.c: Likewise.
12988 * ubsan.c: Likewise.
12989 * valtrack.c: Likewise.
12990 * value-prof.c: Likewise.
12991 * var-tracking.c: Likewise.
12992 * varasm.c: Likewise.
12993 * varpool.c: Likewise.
12994 * vmsdbgout.c: Likewise.
12995 * vtable-verify.c: Likewise.
12997 * wide-int.cc: Likewise.
12998 * xcoffout.c: Likewise.
12999 * config/aarch64/aarch64-builtins.c: Likewise.
13000 * config/aarch64/aarch64.c: Likewise.
13001 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13002 * config/alpha/alpha.c: Likewise.
13003 * config/arc/arc.c: Likewise.
13004 * config/arm/aarch-common.c: Likewise.
13005 * config/arm/arm-builtins.c: Likewise.
13006 * config/arm/arm-c.c: Likewise.
13007 * config/arm/arm.c: Likewise.
13008 * config/avr/avr-c.c: Likewise.
13009 * config/avr/avr-log.c: Likewise.
13010 * config/avr/avr.c: Likewise.
13011 * config/bfin/bfin.c: Likewise.
13012 * config/c6x/c6x.c: Likewise.
13013 * config/cr16/cr16.c: Likewise.
13014 * config/cris/cris.c: Likewise.
13015 * config/darwin-c.c: Likewise.
13016 * config/darwin.c: Likewise.
13017 * config/epiphany/epiphany.c: Likewise.
13018 * config/epiphany/mode-switch-use.c: Likewise.
13019 * config/epiphany/resolve-sw-modes.c: Likewise.
13020 * config/fr30/fr30.c: Likewise.
13021 * config/frv/frv.c: Likewise.
13022 * config/ft32/ft32.c: Likewise.
13023 * config/h8300/h8300.c: Likewise.
13024 * config/i386/i386-c.c: Likewise.
13025 * config/i386/i386.c: Likewise.
13026 * config/i386/msformat-c.c: Likewise.
13027 * config/i386/winnt-cxx.c: Likewise.
13028 * config/i386/winnt-stubs.c: Likewise.
13029 * config/i386/winnt.c: Likewise.
13030 * config/ia64/ia64-c.c: Likewise.
13031 * config/ia64/ia64.c: Likewise.
13032 * config/iq2000/iq2000.c: Likewise.
13033 * config/lm32/lm32.c: Likewise.
13034 * config/m32c/m32c-pragma.c: Likewise.
13035 * config/m32c/m32c.c: Likewise.
13036 * config/m32r/m32r.c: Likewise.
13037 * config/m68k/m68k.c: Likewise.
13038 * config/mcore/mcore.c: Likewise.
13039 * config/mep/mep-pragma.c: Likewise.
13040 * config/mep/mep.c: Likewise.
13041 * config/microblaze/microblaze-c.c: Likewise.
13042 * config/microblaze/microblaze.c: Likewise.
13043 * config/mips/mips.c: Likewise.
13044 * config/mmix/mmix.c: Likewise.
13045 * config/mn10300/mn10300.c: Likewise.
13046 * config/moxie/moxie.c: Likewise.
13047 * config/msp430/msp430-c.c: Likewise.
13048 * config/msp430/msp430.c: Likewise.
13049 * config/nds32/nds32-cost.c: Likewise.
13050 * config/nds32/nds32-fp-as-gp.c: Likewise.
13051 * config/nds32/nds32-intrinsic.c: Likewise.
13052 * config/nds32/nds32-isr.c: Likewise.
13053 * config/nds32/nds32-md-auxiliary.c: Likewise.
13054 * config/nds32/nds32-memory-manipulation.c: Likewise.
13055 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13056 * config/nds32/nds32-predicates.c: Likewise.
13057 * config/nds32/nds32.c: Likewise.
13058 * config/nios2/nios2.c: Likewise.
13059 * config/nvptx/nvptx.c: Likewise.
13060 * config/pa/pa.c: Likewise.
13061 * config/pdp11/pdp11.c: Likewise.
13062 * config/rl78/rl78-c.c: Likewise.
13063 * config/rl78/rl78.c: Likewise.
13064 * config/rs6000/rs6000-c.c: Likewise.
13065 * config/rs6000/rs6000.c: Likewise.
13066 * config/rx/rx.c: Likewise.
13067 * config/s390/s390-c.c: Likewise.
13068 * config/s390/s390.c: Likewise.
13069 * config/sh/sh-c.c: Likewise.
13070 * config/sh/sh-mem.cc: Likewise.
13071 * config/sh/sh.c: Likewise.
13072 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13073 * config/sh/sh_treg_combine.cc: Likewise.
13074 * config/sol2-c.c: Likewise.
13075 * config/sol2-cxx.c: Likewise.
13076 * config/sol2-stubs.c: Likewise.
13077 * config/sol2.c: Likewise.
13078 * config/sparc/sparc-c.c: Likewise.
13079 * config/sparc/sparc.c: Likewise.
13080 * config/spu/spu-c.c: Likewise.
13081 * config/spu/spu.c: Likewise.
13082 * config/stormy16/stormy16.c: Likewise.
13083 * config/tilegx/mul-tables.c: Likewise.
13084 * config/tilegx/tilegx-c.c: Likewise.
13085 * config/tilegx/tilegx.c: Likewise.
13086 * config/tilepro/mul-tables.c: Likewise.
13087 * config/tilepro/tilepro-c.c: Likewise.
13088 * config/tilepro/tilepro.c: Likewise.
13089 * config/v850/v850-c.c: Likewise.
13090 * config/v850/v850.c: Likewise.
13091 * config/vax/vax.c: Likewise.
13092 * config/visium/visium.c: Likewise.
13093 * config/vms/vms-c.c: Likewise.
13094 * config/vms/vms.c: Likewise.
13095 * config/vxworks.c: Likewise.
13096 * config/xtensa/xtensa.c: Likewise.
13098 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
13100 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13101 Remove operand constraints. Change operand 2 predicate to
13102 nonmemory operand. Limit const_int values to mode bitsize. Only
13103 allow const_int values less than 32 when optimizing for size.
13104 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13105 Remove operand constraints.
13106 (*bt<mode>): Use SImode for const_int values less than 32.
13107 (regmode): Remove mode attribute.
13109 2015-07-07 Anatoly Sokolov <aesok@post.ru>
13111 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13112 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13113 moxie_legitimate_address_p): New functions.
13114 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13116 2015-07-07 Tom de Vries <tom@codesourcery.com>
13118 PR tree-optimization/66642
13119 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13120 header comment. Rename split_edge variable to edge_at_split. Split
13121 exit edge to create new loop exit bb. Insert loop exit phis in new
13124 2015-07-07 Tom de Vries <tom@codesourcery.com>
13126 * tree-cfg.c (get_virtual_phi): New function.
13127 * tree-cfg.h (get_virtual_phi): Declare.
13128 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13129 (rewrite_virtuals_into_loop_closed_ssa): New function.
13130 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13132 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13133 (transform_to_exit_first_loop_alt): Use
13134 rewrite_virtuals_into_loop_closed_ssa.
13136 2015-07-07 Richard Biener <rguenther@suse.de>
13138 * fold-const.c (fold_binary_loc): Move
13139 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13140 * match.pd: ... here.
13141 Add (X * C1) % C2 -> 0 simplification pattern derived from
13144 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
13147 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13148 change for target/65249.
13150 2015-07-07 Paulo Matos <pmatos@broadcom.com>
13152 * symtab.c (address_matters_1): Fix typo in comment above.
13153 (can_increase_alignment_p): Likewise.
13155 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13157 * function.c (free_after_compilation): Clear PROP_cfg in
13158 f->curr_properties.
13160 2015-07-07 Richard Biener <rguenther@suse.de>
13162 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13164 (add_control_edge): Remove excessive vertical space in dumping.
13165 (process_ssa_edge_worklist): Simulate at most one statement and
13166 return whether we did. Do not simulate PHIs if they are in a
13167 BB not yet simulated.
13168 (ssa_propagate): Adjust to always drain the BB worklist whenever
13169 a BB is available there, likewise the VARYING edges list before
13170 the interesting edge list.
13172 2015-07-07 Christian Bruel <christian.bruel@st.com>
13175 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13177 2015-07-07 Richard Biener <rguenther@suse.de>
13179 PR middle-end/66739
13180 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13183 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13185 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
13186 modes for operands 0 and 3. Use SImode for operands 2 and 3.
13187 Copy operand 0 to a temporary if !ext_register_operand. Remove
13188 ancient extract_bit_field workaround.
13189 (insv<mode>_1): Rename from mov<mode>_insv_1.
13190 (*insvqi): Rename from *movqi_insv_2.
13191 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13192 for renamed insvsi_1.
13193 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13195 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
13197 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
13198 call to nvptx_reorg_subreg.
13200 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
13202 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13203 * graphite-dependencies.c, graphite-interchange.c,
13204 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13205 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13208 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
13210 * match.pd: Remove element_mode inside HONOR_*.
13211 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13212 (~X | X -> -1, ~X ^ X -> -1): Merge.
13213 * tree.c (build_each_one_cst): New function.
13214 * tree.h (build_each_one_cst): Likewise.
13216 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13218 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13221 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
13223 * config.gcc <mips*-*-*>: Add fused-madd.opt.
13224 * config/mips/mips.opt (mfused-madd): Remove.
13225 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13226 * config/mips/mips.h (TARGET_MIPS8000): New.
13227 (ISA_HAS_FP_MADD4_MSUB4): Remove.
13228 (ISA_HAS_FP_MADDF_MSUBF): Remove.
13229 (ISA_HAS_FP_MADD3_MSUB3): Remove.
13230 (ISA_HAS_NMADD4_NMSUB4): Remove.
13231 (ISA_HAS_NMADD3_NMSUB3): Remove.
13232 (ISA_HAS_FUSED_MADD4): New.
13233 (ISA_HAS_UNFUSED_MADD4): New.
13234 (ISA_HAS_FUSED_MADDF): New.
13235 (ISA_HAS_FUSED_MADD3): New.
13236 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13237 (*fma<mode>4_madd3) New.
13238 (*fma<mode>4_madd4) New.
13239 (*fma<mode>4_maddf) New.
13241 (*fms<mode>4_msub3) New.
13242 (*fms<mode>4_msub4) New.
13244 (*fnma<mode>4_nmadd3) New.
13245 (*fnma<mode>4_nmadd4) New.
13247 (*fnms<mode>4_nmsub3) New.
13248 (*fnms<mode>4_nmsub4) New.
13249 (*madd4<mode>) Modify to be unfused only.
13250 (*msub4<mode>) Modify to be unfused only.
13251 (*nmadd4<mode>) Modify to be unfused only.
13252 (*nmsub4<mode>) Modify to be unfused only.
13253 (*madd3<mode>) Remove.
13254 (*msub3<mode>) Remove.
13255 (*nmadd3<mode>) Remove.
13256 (*nmsub3<mode>) Remove.
13257 (*nmadd3<mode>_fastmath) Remove.
13258 (*nmsub3<mode>_fastmath) Remove.
13259 (*nmadd4<mode>_fastmath) Update condition.
13260 (*nmsub4<mode>_fastmath) Update condition.
13262 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13265 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13266 alignment attribute, exploring one level down for records and arrays.
13268 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13270 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
13271 modes for operands 0 and 1. Use SImode for operands 2 and 3.
13272 Copy operand 1 to a temporary if !ext_register_operand. Remove
13273 ancient extract_bit_field workaround.
13274 (*extv<mode>): Rename from *mov<mode>_extv_1.
13275 (*extvqi): Rename from *movqi_extv_1.
13276 (extzv<mode>): Rename from extzv. Use SWI248 modes for
13277 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
13278 to a temporary if !ext_register_operand. Remove ancient
13279 extract_bit_field workaround.
13280 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13281 (*extzvqi): Rename from *movqi_extzv_2.
13282 (*testqi_ext_3): Remove modes from const_int_operand predicated
13283 operands. Add "n" constraint.
13284 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13285 operand. Add "J" constraint.
13286 (*btsq, *btrq, *btcq peephole2s): Remove mode from
13287 const_0_to_63 predicated operand.
13288 (regmode): New insn attribute.
13289 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
13290 to nonmemory_operand. Use regmode insn attribute.
13291 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13292 (*jcc_bt<mode>_mask): Remove mode from operand 3.
13293 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13294 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13295 operands. Use "N" constraint instead of "n".
13297 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13299 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13301 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13304 * config/i386/i386.c (iamcu_cost): New.
13305 (m_IAMCU): Likewise.
13306 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13307 (processor_target_table): Add an entry for "iamcu".
13308 (processor_alias_table): Likewise.
13309 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13310 (ix86_adjust_cost): Likewise.
13311 (ia32_multipass_dfa_lookahead): Likewise.
13312 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13313 * config/i386/x86-tune.def: Updated for m_IAMCU.
13315 2015-07-06 Richard Biener <rguenther@suse.de>
13317 PR tree-optimization/66772
13318 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13319 values are available in the PHI node BB when there are
13320 still unexecutable edges.
13322 2015-07-06 Richard Biener <rguenther@suse.de>
13324 PR tree-optimization/66767
13325 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13326 Make sure to build the alignment test on a SSA name without
13327 final alignment info valid only if the alignment test
13330 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
13333 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13334 loop start when inserting LSETUP.
13336 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13339 * config/i386/i386.c (ix86_option_override_internal): Allow
13340 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13342 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13344 * read-md.c (decimal_string): Rename to ...
13345 (md_decimal_string): ... this.
13346 (handle_enum): Reflect this.
13348 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
13351 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13353 2015-07-06 Richard Biener <rguenther@suse.de>
13355 PR middle-end/66759
13356 * match.pd: Add missing constraint of y to REAL_CST in
13357 REAL_CST - x CMP y to y - CST CMP x simplification.
13359 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
13361 PR tree-optimization/66757
13362 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13364 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
13365 Sandra Loosemore <sandra@codesourcery.com>
13367 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13368 Delete extern declaration.
13369 (gprel_constant_p): Add extern declaration.
13370 * config/nios2/constraints.md ("S"): Use gprel_constant_p
13371 instead of nios2_symbol_ref_in_small_data_p.
13372 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13373 (nios2_symbol_ref_in_small_data_p): Make static.
13374 (gprel_constant_p): Make non-static.
13376 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13378 * doc/fragments.texi (Target Fragment): Convert debian.org
13380 * doc/install.texi (Configuration): Ditto.
13382 2015-07-05 Jakub Jelinek <jakub@redhat.com>
13384 PR tree-optimization/66718
13385 * tree-vect-stmts.c (vectorizable_call): Replace uses of
13386 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13388 PR tree-optimization/66718
13389 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13390 vectorizable_load, vectorizable_condition): Move vectype,
13391 nunits, ncopies computation after checking what kind of statement
13394 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13396 * target-insns.def (extv, extzv, insv): New targetm instruction
13398 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13400 * recog.c (simplify_while_replacing): Likewise.
13402 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13404 * target-insns.def (doloop_begin, doloop_end): New targetm
13405 instruction patterns.
13406 * loop-init.c: Include target.h.
13407 (pass_loop2::gate): Use the new targetm patterns instead of
13408 HAVE_*/gen_* interface.
13409 (pass_rtl_doloop::gate): Likewise.
13410 (pass_rtl_doloop::execute): Remove preprocessor condition.
13411 * hw-doloop.c: Build unconditionally.
13412 * loop-doloop.c: Likewise.
13413 (doloop_optimize): Use the new targetm patterns instead of
13414 HAVE_*/gen_* interface.
13415 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13416 * modulo-sched.c (doloop_register_get): Likewise.
13418 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13420 * target-insns.def (clear_cache): New targetm instruction pattern.
13421 * builtins.c (expand_builtin___clear_cache): Use it instead of
13422 HAVE_*/gen_* interface.
13424 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13426 * target-insns.def (allocate_stack, check_stack, probe_stack)
13427 (probe_stack_address, split_stack_prologue, split_stack_space_check):
13428 New targetm instruction patterns.
13429 * explow.c (allocate_dynamic_stack_space): Use them instead of
13430 HAVE_*/gen_* interface.
13431 (emit_stack_probe): Likewise.
13432 (probe_stack_range): Likewise.
13433 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13435 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13437 * target-insns.def (stack_protect_set, stack_protect_test): New
13438 targetm instruction patterns.
13439 * cfgexpand.c (stack_protect_prologue): Use them instead of
13440 HAVE_*/gen_* interface.
13441 * function.c (stack_protect_epilogue): Likewise.
13443 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13445 * expr.h (gen_move_insn_uncast): Delete.
13446 * expr.c (gen_move_insn_uncast): Delete.
13448 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13450 * target-insns.def (restore_stack_block, restore_stack_function)
13451 (restore_stack_nonlocal, save_stack_block, save_stack_function)
13452 (save_stack_nonlocal): New targetm instruction patterns.
13453 * builtins.c (expand_builtin_apply): Use them instead of
13454 HAVE_*/gen_* interface.
13455 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
13457 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13459 * target-insns.def (trap): New targetm instruction pattern.
13460 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
13462 * explow.c (allocate_dynamic_stack_space): Likewise.
13463 * ifcvt.c (find_if_header): Likewise.
13465 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13467 * target-insns.def (prefetch): New targetm instruction pattern.
13468 * tree-ssa-loop-prefetch.c: Include targeth.
13469 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
13470 of HAVE_*/gen_* interface.
13471 * builtins.c (expand_builtin_prefetch): Likewise.
13472 * toplev.c (process_options): Likewise.
13474 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13476 * target-insns.def (untyped_call, untyped_return): New targetm
13477 instruction patterns.
13478 * builtins.c (expand_builtin_apply): Use them instead of
13479 HAVE_*/gen_* interface.
13480 (result_vector): Define unconditionally.
13482 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13484 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
13485 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
13486 (nonlocal_goto_receiver): New targetm instruction patterns.
13487 * builtins.c (expand_builtin_setjmp_setup): Use them instead
13488 of HAVE_*/gen_* interface.
13489 (expand_builtin_setjmp_receiver): Likewise.
13490 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13491 * except.c (expand_dw2_landing_pad_for_region): Likewise.
13493 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13495 * target.def: Add code_for_* hooks.
13496 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
13497 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
13498 * target-insns.def (casesi, tablejump): New targetm instruction
13500 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
13501 (do_tablejump): Likewise.
13502 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
13503 (expand_sjlj_dispatch_table): Likewise.
13504 * targhooks.c (default_case_values_threshold): Likewise.
13506 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
13508 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
13509 Use rtx_insn * instead of rtx.
13510 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
13511 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
13512 (nios2_call_tls_get_addr): Likewise.
13513 (nios2_emit_expensive_div): Likewise.
13514 (nios2_emit_move_sequence): Change return type to bool.
13515 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
13516 Change return type to bool.
13518 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13521 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
13523 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
13526 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
13527 of register_operand. Remove constraint.
13529 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
13531 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
13532 the first argument.
13534 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
13536 * attribs.c (decl_attributes): Guard inform with the return value
13537 of the preceding warning.
13539 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13541 * doc/invoke.texi (moverride): Move to correct section.
13543 2015-07-03 Richard Biener <rguenther@suse.de>
13545 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
13547 (dt_operand::gen_gimple_expr): After valueizing operands
13548 re-canonicalize operand order for commutative tree codes.
13550 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
13553 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
13555 (__crc32w): Likewise.
13556 (__crc32d): Likewise.
13557 (__rdpmc): Likewise.
13558 (__rdtscp): Likewise.
13559 (_rdpmc): Likewise.
13560 (_rdtscp): Likewise.
13561 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
13564 2015-07-03 Richard Biener <rguenther@suse.de>
13566 * fold-const.c (fold_mathfn_compare): Remove.
13567 (fold_inf_compare): Likewise.
13568 (fold_comparison): Move floating point comparison simplifications...
13569 * match.pd: ... to patterns here. Introduce simple_comparisons
13570 operator list and use it for patterns formerly in fold_comparison.
13572 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13574 PR tree-optimization/66119
13575 * toplev.c (process_options): Don't set up default values for
13576 the sra_max_scalarization_size_{speed,size} parameters.
13577 * tree-sra (analyze_all_variable_accesses): If no values
13578 have been set for the sra_max_scalarization_size_{speed,size}
13579 parameters, call get_move_ratio to get target defaults.
13581 2015-07-03 Richard Biener <rguenther@suse.de>
13583 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
13584 * match.pd: ... here.
13586 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
13589 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
13590 is not actually the default on FreeBSD.
13592 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13594 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
13596 (CMPGE_8HI): Likewise.
13597 (CMPGE_4SI): Likewise.
13598 (CMPGE_2DI): Likewise.
13599 (CMPGE_U16QI): Likewise.
13600 (CMPGE_U8HI): Likewise.
13601 (CMPGE_U4SI): Likewise.
13602 (CMPGE_U2DI): Likewise.
13603 (CMPLE_16QI): Likewise.
13604 (CMPLE_8HI): Likewise.
13605 (CMPLE_4SI): Likewise.
13606 (CMPLE_2DI): Likewise.
13607 (CMPLE_U16QI): Likewise.
13608 (CMPLE_U8HI): Likewise.
13609 (CMPLE_U4SI): Likewise.
13610 (CMPLE_U2DI): Likewise.
13611 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13612 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
13613 ALTIVEC_BUILTIN_VEC_CMPLE.
13614 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
13615 floating-point vector modes.
13616 (vector_nlt<mode>): New define_expand.
13617 (vector_nltu<mode>): Likewise.
13618 (vector_ngt<mode>): Likewise.
13619 (vector_ngtu<mode>): Likewise.
13621 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13623 PR rtl-optimization/66706
13624 * combine.c (make_compound_operation): If an AND of SUBREG of
13625 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
13627 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
13629 * tree-pass.h (make_pass_ch_vect): New.
13630 * passes.def: Add pass_ch_vect just before pass_if_conversion.
13632 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
13633 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
13634 make_pass_ch_vect): New.
13635 (pass_ch): Extend ch_base.
13637 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
13638 (ch_base::copy_headers): ...here.
13640 2015-07-02 Richard Biener <rguenther@suse.de>
13642 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
13643 * fold-const.c (get_pointer_modulus_and_residue): Remove.
13644 (fold_binary_loc): Implement (T)ptr & CST in terms of
13645 get_pointer_alignment_1.
13646 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13647 Make sure to build the alignment test on a SSA name without
13648 final alignment info valid only after the prologue.
13650 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
13652 * config/cris/cris.md ("epilogue"): Remove condition.
13653 ("prologue"): Ditto.
13655 2015-07-02 Richard Biener <rguenther@suse.de>
13657 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
13658 parameter to record a condition that is false.
13659 (record_conditions): When recording an extra NE_EXPR that is
13660 true also record a EQ_EXPR that is false.
13662 2015-07-02 Bin Cheng <bin.cheng@arm.com>
13664 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
13665 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
13666 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
13667 (set_iv, find_interesting_uses_address, add_candidate_1): New
13668 argument to alloc_iv.
13669 (find_interesting_uses_op, find_interesting_uses_cond): Don't
13670 duplicate struct iv.
13671 (free_loop_data): Don't free struct iv explicitly.
13672 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
13674 2015-07-01 DJ Delorie <dj@redhat.com>
13676 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
13678 (SUPPORTS_DISCRIMINATOR): Define.
13680 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
13683 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
13684 there are no CALLs in the same pattern.
13686 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13688 PR rtl-optimization/61047
13689 * rtlanal.c (get_initial_register_offset): New function.
13690 (rtx_addr_can_trap_p_1): Check offsets of stack references.
13692 2015-07-01 Richard Biener <rguenther@suse.de>
13694 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
13695 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
13696 ~X CMP C -> X CMP' ~C to ...
13697 * match.pd: ... patterns here.
13699 2015-07-01 Nick Clifton <nickc@redhat.com>
13701 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
13702 a 16-bit value into a 20-bit memory slot.
13704 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13706 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13707 "aarch64_tiny", "aarch64_small", "aarch64_large",
13708 "aarch64_little_endian", "aarch64_big_endian".
13710 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13712 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
13713 Document "aarch64_small_fpic".
13715 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13717 * configure.ac: Add check for aarch64 assembler -fpic relocation
13719 * configure: Regenerate.
13720 * config.in: Regenerate.
13721 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
13722 to -fPIC if not support of -fpic relocation modifier in assembler.
13724 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
13727 * rtl.c (classify_insn): Handle returns in PARALLELs.
13729 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
13731 PR middle-end/66633
13732 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
13733 to true if the function is nested and if not optimizing.
13734 (convert_local_omp_clauses): Initialize need_frame to true if the
13735 function contains nested functions and if not optimizing.
13737 2015-07-01 Richard Biener <rguenther@suse.de>
13739 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
13740 (X & Y) ^ Y -> ~X & Y transforms to ...
13741 * match.pd: ... here.
13743 2015-07-01 Richard Biener <rguenther@suse.de>
13745 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
13746 of converts to avoid uninteresting noise from the conversion
13747 simplifying patterns.
13749 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
13751 * config/c6x/c6x.c (try_rename_operands): Do not depend on
13752 gcc_assert evaluating its argument for side-effect.
13754 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
13757 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
13760 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13762 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
13763 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
13764 (hash_scc): Add this_ref_p and ref_p parameters and pass them
13765 to the inner DFS walk.
13767 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13769 * target-insns.def (jump): New targetm instruction pattern.
13770 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
13771 instead of gen_jump.
13772 (fix_up_crossing_landing_pad): Likewise.
13773 (add_labels_and_missing_jumps): Likewise.
13774 (fix_crossing_conditional_branches): Likewise.
13775 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13776 (force_nonfallthru_and_redirect): Likewise.
13777 * cse.c (cse_insn): Likewise.
13778 * expmed.c (expand_divmod): Likewise.
13779 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
13780 * haifa-sched.c (init_before_recovery): Likewise.
13781 (sched_create_recovery_edges): Likewise.
13782 * ifcvt.c (find_cond_trap): Likewise.
13783 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
13784 (expand_float, expand_fix): Likewise.
13785 * stmt.c (emit_jump): Likewise.
13787 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13789 * defaults.h (HAVE_load_multiple, gen_load_multiple)
13790 (HAVE_store_multiple, gen_store_multiple): Delete.
13791 * target-insns.def (load_multiple, store_multiple): New targetm
13792 instruction patterns.
13793 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
13794 of HAVE_*/gen_* interface.
13796 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13798 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
13799 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
13800 (gen_mem_signal_fence): Delete.
13801 * target-insns.def (mem_signal_fence, mem_thread_fence)
13802 (memory_barrier): New targetm instruction patterns.
13803 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
13805 (expand_mem_signal_fence): Likewise.
13807 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13809 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
13810 * target-insns.def (epilogue, prologue, sibcall_prologue): New
13811 targetm instruction patterns.
13812 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
13814 * calls.c (expand_call): Likewise.
13815 * cfgrtl.c (cfg_layout_finalize): Likewise.
13816 * df-scan.c (df_get_entry_block_def_set): Likewise.
13817 (df_get_exit_block_use_set): Likewise.
13818 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
13819 * final.c (final_start_function): Likewise.
13820 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13821 (reposition_prologue_and_epilogue_notes): Likewise.
13822 * reorg.c (find_end_label): Likewise.
13823 * toplev.c (process_options): Likewise.
13825 2015-06-30 David Malcolm <dmalcolm@redhat.com>
13827 * typed-splay-tree.h: New file.
13829 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
13832 * lra-int.h (lra_substitute_pseudo): Add a parameter.
13833 (lra_substitute_pseudo_within_insn): Ditto.
13834 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
13836 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
13837 to lra_substitute_pseudo.
13838 * lra-lives.c (process_bb_lives): Add an argument to
13839 lra_substitute_pseudo_within_insn call.
13840 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
13841 argument to lra_substitute_pseudo and
13842 lra_substitute_pseudo_within_insn calls.
13843 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
13845 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
13847 * configure: Regenerated.
13849 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
13851 * config.gcc: Support i[34567]86-*-elfiamcu target.
13852 * config/i386/iamcu.h: New.
13853 * config/i386/i386.opt: Add -miamcu.
13854 * doc/invoke.texi: Document -miamcu.
13855 * common/config/i386/i386-common.c (ix86_handle_option): Turn
13856 off x87/MMX/SSE/AVX codegen for -miamcu.
13857 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13858 __iamcu/__iamcu__ for -miamcu.
13859 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
13860 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
13861 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
13862 * config/i386/i386.c (ix86_option_override_internal): Ignore and
13863 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
13864 MCU by default. Default long double to 64-bit for Intel MCU.
13865 Turn on -freg-struct-return for Intel MCU. Issue an error when
13866 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
13868 (function_arg_advance_32): Pass value whose size is no larger
13869 than 8 bytes in registers for Intel MCU.
13870 (function_arg_32): Likewise.
13871 (ix86_return_in_memory): Return value whose size is no larger
13872 than 8 bytes in registers for Intel MCU.
13873 (iamcu_alignment): New function.
13874 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
13876 (ix86_local_alignment): Don't increase alignment for Intel MCU.
13877 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
13880 2015-06-30 Marek Polacek <polacek@redhat.com>
13882 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
13883 both operands of the resulting expression.
13885 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
13886 the final expression with the operand's type and then convert
13887 it to the type of the expression.
13889 2015-06-30 Richard Biener <rguenther@suse.de>
13891 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
13892 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
13893 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
13894 * match.pd: ... to patterns here.
13896 2015-06-30 Richard Biener <rguenther@suse.de>
13898 PR tree-optimization/66704
13899 * tree-vect-data-refs.c (vect_setup_realignment): Use
13900 make_ssa_name for non-SSA name source.
13902 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13904 PR middle-end/66702
13905 * omp-low.c (simd_clone_adjust): Handle addressable linear
13906 or uniform parameters or non-gimple type uniform parameters.
13908 2015-06-30 Richard Biener <rguenther@suse.de>
13910 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
13911 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
13912 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
13913 * match.pd: ... here.
13914 Add a few cases of A - B -> A + (-B) when B "easily" negates.
13915 Move (x & y) | x -> x and friends before
13916 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
13918 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13920 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
13921 -mfix-ut699 is not specified.
13922 (leon3_load): Rename into...
13923 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
13926 2015-06-30 Marek Polacek <polacek@redhat.com>
13928 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
13929 * match.pd: ... here.
13931 2015-06-30 Richard Biener <rguenther@suse.de>
13933 * target-insns.def (canonicalize_funcptr_for_compare): Add.
13934 * fold-const.c (build_range_check): Replace uses of
13935 HAVE_canonicalize_funcptr_for_compare.
13936 (fold_widened_comparison): Likewise.
13937 (fold_sign_changed_comparison): Likewise.
13938 * dojump.c: Include "target.h".
13939 (do_compare_and_jump): Replace uses of
13940 HAVE_canonicalize_funcptr_for_compare and
13941 gen_canonicalize_funcptr_for_compare.
13942 * expr.c (do_store_flag): Likewise.
13944 2015-06-30 Tom de Vries <tom@codesourcery.com>
13946 PR tree-optimization/66652
13947 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13948 max_loop_iterations to determine if nit + 1 overflows.
13950 2015-06-30 Richard Biener <rguenther@suse.de>
13952 * tree-vrp.c (register_edge_assert_for_2): Also register
13953 asserts for dominating conversion results.
13955 2015-06-30 Bin Cheng <bin.cheng@arm.com>
13957 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
13958 field in struct iv.
13960 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
13963 * configure.ac: Fix filds and fildq test for 64-bit.
13964 * configure: Regenerated.
13966 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
13968 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
13969 (nvptx_reorg): Here. Keep the non-subreg pieces.
13971 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
13973 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
13974 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13976 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
13978 * config/i386/i386.md (*jcc_1): Use %! in asm template.
13979 Set attribute "length_nobnd" instead of "length".
13982 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
13984 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
13986 * config/nios2/nios2.c (nios2_delegitimize_address): Make
13987 assert less restrictive.
13989 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
13992 * cgraphunit.c (cgraph_node::finalize_function): Do not call
13993 do_warn_unused_parameter.
13994 * function.c (do_warn_unused_parameter): Move from here.
13995 * function.h (do_warn_unused_parameter): Do not declare.
13997 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14000 * gcc.target/arm/armv-sync-comp-swap.c: New.
14001 * gcc.target/arm/armv-sync-op-acquire.c: New.
14002 * gcc.target/arm/armv-sync-op-full.c: New.
14003 * gcc.target/arm/armv-sync-op-release.c: New.
14005 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14008 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14009 initial acquire barrier with final barrier.
14011 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14014 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14015 initial acquire barrier with final barrier.
14017 2015-06-29 Richard Henderson <rth@redhat.com>
14019 * config/i386/constraints.md (Bf): New constraint.
14020 * config/i386/i386-c.c (ix86_target_macros): Define
14021 __GCC_ASM_FLAG_OUTPUTS__.
14022 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14024 * doc/extend.texi (FlagOutputOperands): Document them.
14026 2015-06-29 Jiong Wang <jiong.wang@arm.com>
14028 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14029 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14031 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14032 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14033 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14034 (aarch64_symbol_context): Ditto.
14035 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14036 and use new pattern name.
14037 (aarch64_expand_mov_immediate): Ditto.
14038 (aarch64_print_operand): Ditto.
14039 (aarch64_classify_tls_symbol): Ditto.
14041 2015-06-29 Marek Polacek <polacek@redhat.com>
14042 Marc Glisse <marc.glisse@inria.fr>
14044 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14045 * match.pd: ... pattern here.
14047 2015-06-29 Tom de Vries <tom@codesourcery.com>
14049 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14050 function structure.
14052 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14054 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14055 feature description, split out the native option, add a link to
14056 the feature documentation, rearrange and slightly rewrite text.
14057 (Aarch64 options, -mcpu): Likewise.
14058 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
14059 +rdma implies Adv. SIMD.
14061 2015-06-29 Marek Polacek <polacek@redhat.com>
14064 * function.c (stack_protect_epilogue): Remove a cast to int.
14065 * doc/invoke.texi: Update -Wswitch-bool description.
14067 2015-06-29 Richard Biener <rguenther@suse.de>
14069 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14070 * fold-const.c (fold_binary_loc): Move &A - &B simplification
14071 via ptr_difference_const ...
14072 * match.pd: ... here.
14073 When matching (X ^ Y) == Y also match with swapped operands.
14075 2015-06-29 Richard Biener <rguenther@suse.de>
14077 * lto-streamer.h (LTO_major_version): Bump to 5.
14079 2015-06-29 Richard Biener <rguenther@suse.de>
14081 PR tree-optimization/66677
14082 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14083 STMT_VINFO_VEC_STMT clobbering less strict.
14085 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14087 PR middle-end/64130
14088 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14089 division, compute max and min when value ranges for dividend and
14090 divisor are available.
14092 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
14093 Sandra Loosemore <sandra@codesourcery.com>
14095 * regrename.h (regrename_do_replace): Change to return bool.
14096 * regrename.c (rename_chains): Check return value of
14097 regname_do_replace.
14098 (regrename_do_replace): Re-validate the modified insns and
14099 return bool status.
14100 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14101 Update to match rename_chains changes.
14102 * config/c6x/c6x.c (try_rename_operands): Assert that
14103 regrename_do_replace returns true.
14105 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
14107 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14108 operand 2 here. Use copy_addr_to_reg to copy non-index
14109 register operand 2 to a temporary.
14110 (<mode>_stx): Ditto for operand 1.
14111 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14112 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14113 (ix86_store_bounds): Ditto.
14115 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
14117 * print-tree.c (print_node) [TREE_VEC]: Print its length.
14119 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
14121 * gimple.c (gimple_call_set_fndecl): Remove.
14122 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14123 build1_loc directly instead of build_fold_addr_expr_loc.
14125 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14127 * hash-map.h (hash_map::traverse): Use the definition of the
14128 Key typedef rather than the typedef itself.
14130 2015-06-26 Martin Jambor <mjambor@suse.cz>
14133 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14134 NULL instead of calling dump_enabled_p.
14136 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14138 * config/aarch64/aarch64.opt: (override): New.
14139 * doc/invoke.texi (override): Document.
14140 * config/aarch64/aarch64.c (aarch64_flag_desc): New
14141 (aarch64_fusible_pairs): Likewise.
14142 (aarch64_tuning_flags): Likewise.
14143 (aarch64_tuning_override_function): Likewise.
14144 (aarch64_tuning_override_functions): Likewise.
14145 (aarch64_parse_one_option_token): Likewise.
14146 (aarch64_parse_boolean_options): Likewise.
14147 (aarch64_parse_fuse_string): Likewise.
14148 (aarch64_parse_tune_string): Likewise.
14149 (aarch64_parse_one_override_token): Likewise.
14150 (aarch64_parse_override_string): Likewise.
14151 (aarch64_override_options): Parse the -override string if it
14154 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14156 * config/aarch64/aarch64-protos.h (tune_params): Remove
14157 const from members.
14158 (aarch64_tune_params): Remove const, change to no longer be
14160 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14161 change to no longer be a pointer, initialize to generic_tunings.
14162 (aarch64_min_divisions_for_recip_mul): Change dereference of
14163 aarch64_tune_params to member access.
14164 (aarch64_reassociation_width): Likewise.
14165 (aarch64_rtx_mult_cost): Likewise.
14166 (aarch64_address_cost): Likewise.
14167 (aarch64_branch_cost): Likewise.
14168 (aarch64_rtx_costs): Likewise.
14169 (aarch64_register_move_cost): Likewise.
14170 (aarch64_memory_move_cost): Likewise.
14171 (aarch64_sched_issue_rate): Likewise.
14172 (aarch64_builtin_vectorization_cost): Likewise.
14173 (aarch64_override_options): Take a copy of the selected tuning
14174 struct in to aarch64_tune_params, rather than just setting
14175 a pointer, change dereferences of aarch64_tune_params to member
14177 (aarch64_override_options_after_change): Change dereferences of
14178 aarch64_tune_params to member access.
14179 (aarch64_macro_fusion_p): Likewise.
14180 (aarch_macro_fusion_pair_p): Likewise.
14181 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14183 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14185 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14186 (aarch64_tune_flags): Likewise.
14187 (AARCH64_TUNE_FMA_STEERING): Likewise.
14188 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14189 to AARCH64_FL_USE_FMA_STEERING_PASS.
14190 (cortex-a57.cortex-a53): Likewise.
14191 (cortex-a72): Use cortexa72_tunings.
14192 (cortex-a72.cortex-a53): Likewise.
14193 (exynos-m1): Likewise.
14194 * config/aarch64/aarch64-protos.h (tune_params): Add
14195 a field: extra_tuning_flags.
14196 * config/aarch64/aarch64-tuning-flags.def: New.
14197 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14198 (aarch64_extra_tuning_flags): Likewise.
14199 (aarch64_tune_params): Declare here.
14200 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14201 (cortexa53_tunings): Likewise.
14202 (cortexa57_tunings): Likewise.
14203 (thunderx_tunings): Likewise.
14204 (xgene1_tunings): Likewise.
14205 (cortexa72_tunings): New.
14206 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14207 (gate): Check against aarch64_tune_params.
14208 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14211 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14213 * config/aarch64/aarch64-fusion-pairs.def: New.
14214 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14215 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14216 aarch64_fusion_pairs.
14217 (AARCH64_FUSE_MOV_MOVK): Likewise.
14218 (AARCH64_FUSE_ADRP_ADD): Likewise.
14219 (AARCH64_FUSE_MOVK_MOVK): Likewise.
14220 (AARCH64_FUSE_ADRP_LDR): Likewise.
14221 (AARCH64_FUSE_CMP_BRANCH): Likewise.
14223 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14225 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14226 SYMBOL_SMALL_GOT_28K.
14227 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14228 relocation modifiers.
14229 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14230 (ldr_got_small_28k_<mode>): New.
14231 (ldr_got_small_28k_sidi): New.
14232 * config/aarch64/iterators.md (got_modifier): New mode iterator.
14233 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14234 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14235 SYMBOL_SMALL_GOT_28K.
14236 (aarch64_rtx_costs): Add costs for new instruction sequences.
14237 (initialize_aarch64_code_model): Initialize new model.
14238 (aarch64_classify_symbol): Recognize new model and new symbol classification.
14239 (aarch64_asm_preferred_eh_data_format): Support new model.
14240 (aarch64_load_symref_appropriately): Generate new instruction
14241 sequences for -fpic.
14242 (TARGET_USE_PSEUDO_PIC_REG): New definition.
14243 (aarch64_use_pseudo_pic_reg): New function.
14245 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14247 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14248 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14249 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14250 (aarch64_expand_mov_immediate): Ditto.
14251 (aarch64_print_operand): Ditto.
14252 (aarch64_classify_symbol): Ditto.
14254 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
14256 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14258 2015-06-26 Bin Cheng <bin.cheng@arm.com>
14261 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14262 assertion failed. Remove assertion itself.
14264 2015-06-26 Richard Biener <rguenther@suse.de>
14266 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14267 and -A CMP CST -> A CMP -CST which is redundant with a pattern
14269 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14270 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14271 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14272 * match.pd: ... patterns here.
14274 2015-06-26 Marek Polacek <polacek@redhat.com>
14276 * match.pd ((x | y) & ~(x & y) -> x ^ y,
14277 (x | y) & (~x ^ y) -> x & y): New patterns.
14279 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14281 * rtl.h (emit): Add an optional boolean parameter to control
14282 whether barriers are emitted.
14283 * emit-rtl.c (emit): Likewise.
14284 * gensupport.c (get_emit_function): Return null rather than "emit".
14285 * genemit.c (gen_emit_seq): Handle the null return value.
14286 Don't emit barriers after the final instruction in the sequence.
14287 * gentarget-def.c (main): Don't emit barriers after the instruction.
14289 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14291 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14292 TARGET_UNIFIED_ASM.
14294 2015-06-26 Richard Biener <rguenther@suse.de>
14296 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14298 2015-06-26 Richard Biener <rguenther@suse.de>
14300 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14301 irrespective on whether the inner operation has a single use
14302 of both off are constant.
14304 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
14305 Segher Boessenkool <segher@kernel.crashing.org>
14308 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14309 before doing PUT_MODE or PUT_CODE on operands to avoid
14310 in-place RTX modification.
14312 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14314 * gentarget-def.c (def_target_insn): Cast return of strtol to
14317 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14319 * gimple.h (gimple_call_set_fn): Move inline function.
14320 * gimple.c (gimple_call_set_fn): Relocate here.
14322 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
14326 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14327 the replacement insn will work.
14329 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14331 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14334 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14336 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14337 * cgraph.h: Include ipa-ref.h and plugin-api.h.
14338 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14339 (symtab_node::address_can_be_compared_p): Move function.
14340 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14342 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14343 * auto-profile.c: Likewise.
14344 * bb-reorder.c: Likewise.
14345 * builtins.c: Likewise.
14346 * calls.c: Likewise.
14347 * cfgexpand.c: Likewise.
14348 * cgraphbuild.c: Likewise.
14349 * cgraphclones.c: Likewise.
14350 * cgraphunit.c: Likewise.
14351 * combine.c: Likewise.
14352 * coverage.c: Likewise.
14353 * data-streamer-in.c: Likewise.
14354 * data-streamer-out.c: Likewise.
14355 * data-streamer.c: Likewise.
14356 * dbxout.c: Likewise.
14357 * dwarf2out.c: Likewise.
14358 * except.c: Likewise.
14359 * expr.c: Likewise.
14360 * final.c: Likewise.
14361 * fold-const.c: Likewise.
14362 * ggc-page.c: Likewise.
14363 * gimple-fold.c: Likewise.
14364 * gimple-iterator.c: Likewise.
14365 * gimple-pretty-print.c: Likewise.
14366 * gimple-streamer-in.c: Likewise.
14367 * gimple-streamer-out.c: Likewise.
14368 * gimple.c: Likewise.
14369 * gimplify.c: Likewise.
14370 * ipa-chkp.c: Likewise.
14371 * ipa-comdats.c: Likewise.
14372 * ipa-cp.c: Likewise.
14373 * ipa-devirt.c: Likewise.
14374 * ipa-icf-gimple.c: Likewise.
14375 * ipa-icf.c: Likewise.
14376 * ipa-inline-analysis.c: Likewise.
14377 * ipa-inline-transform.c: Likewise.
14378 * ipa-inline.c: Likewise.
14379 * ipa-polymorphic-call.c: Likewise.
14380 * ipa-profile.c: Likewise.
14381 * ipa-prop.c: Likewise.
14382 * ipa-pure-const.c: Likewise.
14383 * ipa-ref.c: Likewise.
14384 * ipa-reference.c: Likewise.
14385 * ipa-split.c: Likewise.
14386 * ipa-utils.c: Likewise.
14387 * ipa-visibility.c: Likewise.
14389 * langhooks.c: Likewise.
14390 * lto-cgraph.c: Likewise.
14391 * lto-compress.c: Likewise.
14392 * lto-opts.c: Likewise.
14393 * lto-section-in.c: Likewise.
14394 * lto-section-out.c: Likewise.
14395 * lto-streamer-in.c: Likewise.
14396 * lto-streamer-out.c: Likewise.
14397 * lto-streamer.c: Likewise.
14398 * omp-low.c: Likewise.
14399 * opts-global.c: Likewise.
14400 * passes.c: Likewise.
14401 * predict.c: Likewise.
14402 * print-tree.c: Likewise.
14403 * profile.c: Likewise.
14405 * sanopt.c: Likewise.
14406 * stor-layout.c: Likewise.
14407 * symtab.c: Likewise.
14408 * toplev.c: Likewise.
14409 * trans-mem.c: Likewise.
14410 * tree-cfg.c: Likewise.
14411 * tree-chkp.c: Likewise.
14412 * tree-eh.c: Likewise.
14413 * tree-emutls.c: Likewise.
14414 * tree-inline.c: Likewise.
14415 * tree-nested.c: Likewise.
14416 * tree-parloops.c: Likewise.
14417 * tree-pretty-print.c: Likewise.
14418 * tree-profile.c: Likewise.
14419 * tree-sra.c: Likewise.
14420 * tree-ssa-alias.c: Likewise.
14421 * tree-ssa-live.c: Likewise.
14422 * tree-ssa-loop-ivcanon.c: Likewise.
14423 * tree-ssa-loop-ivopts.c: Likewise.
14424 * tree-ssa-pre.c: Likewise.
14425 * tree-ssa-sccvn.c: Likewise.
14426 * tree-ssa-strlen.c: Likewise.
14427 * tree-ssa-structalias.c: Likewise.
14428 * tree-streamer-in.c: Likewise.
14429 * tree-streamer-out.c: Likewise.
14430 * tree-streamer.c: Likewise.
14431 * tree-switch-conversion.c: Likewise.
14432 * tree-tailcall.c: Likewise.
14433 * tree-vect-data-refs.c: Likewise.
14434 * tree-vect-stmts.c: Likewise.
14435 * tree-vectorizer.c: Likewise.
14436 * tree.c: Likewise.
14437 * tsan.c: Likewise.
14438 * ubsan.c: Likewise.
14439 * value-prof.c: Likewise.
14440 * varasm.c: Likewise.
14441 * varpool.c: Likewise.
14442 * config/arm/arm.c: Likewise.
14443 * config/bfin/bfin.c: Likewise.
14444 * config/c6x/c6x.c: Likewise.
14445 * config/cris/cris.c: Likewise.
14446 * config/darwin-c.c: Likewise.
14447 * config/darwin.c: Likewise.
14448 * config/i386/i386.c: Likewise.
14449 * config/i386/winnt.c: Likewise.
14450 * config/microblaze/microblaze.c: Likewise.
14451 * config/mips/mips.c: Likewise.
14452 * config/rs6000/rs6000.c: Likewise.
14453 * config/rx/rx.c: Likewise.
14454 * config/s390/s390.c: Likewise.
14455 * config/tilegx/mul-tables.c: Likewise.
14457 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14459 * config/aarch64/aarch64.c, config/alpha/alpha.c,
14460 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
14461 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
14462 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
14463 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14464 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14465 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14466 config/microblaze/microblaze.c, config/mips/mips.c,
14467 config/mmix/mmix.c, config/mn10300/mn10300.c,
14468 config/moxie/moxie.c, config/msp430/msp430.c,
14469 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14470 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14471 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14472 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14473 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14474 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14475 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
14476 target-def.h include.
14477 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
14479 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14481 * Makefile.in (TARGET_DEF): Add target-insns.def.
14482 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
14483 (build/gentarget-def.o): New rule.
14484 (genprogrtl): Add target-def.
14485 * target-insns.def, gentarget-def.c: New files.
14486 * target.def: Add targetm.have_* and targetm.gen_* hooks,
14487 based on the contents of target-insns.def.
14488 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
14489 (HAVE_return, gen_return): Delete.
14490 * target-def.h: Include insn-target-def.h.
14491 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
14492 instead of direct calls. Rely on them to do the appropriate assertions.
14493 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
14494 (convert_jumps_to_returns): Use targetm interface instead of
14496 (thread_prologue_and_epilogue_insns): Likewise.
14497 * reorg.c (find_end_label, dbr_schedule): Likewise.
14498 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
14499 * shrink-wrap.c (convert_to_simple_return): Likewise.
14500 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
14502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14504 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
14505 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14506 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
14507 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
14508 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14509 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14510 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14511 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
14512 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
14513 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14514 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14515 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14516 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14517 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14518 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14519 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
14522 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14524 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
14525 (unbounded_int_hashmap_traits::key_type): Likewise.
14526 * hash-map.h (hash_map): Get the key type from the traits.
14527 * hash-traits.h (default_hash_traits): By default, inherit from the
14528 template parameter.
14529 * alias.c (alias_set_traits): Delete.
14530 (alias_set_entry_d::children): Use alias_set_hash as the first
14531 template parameter.
14532 (record_alias_subset): Update accordingly.
14533 * except.c (tree_hash_traits): Delete.
14534 (type_to_runtime_map): Use tree_hash as the first template parameter.
14535 (init_eh): Update accordingly.
14536 * genmatch.c (capture_id_map_hasher): Delete.
14537 (cid_map_t): Use nofree_string_hash as first template parameter.
14538 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
14539 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14540 Use symbol_compare_hash as the first template parameter in
14541 subdivide_hash_map.
14542 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
14543 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
14544 template parameter.
14545 * passes.c (pass_registry_hasher): Delete.
14546 (name_to_pass_map): Use nofree_string_hash as the first template
14548 (register_pass_name): Update accordingly.
14549 * sanopt.c (sanopt_tree_map_traits): Delete.
14550 (sanopt_tree_triplet_map_traits): Delete.
14551 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
14552 template parameter.
14553 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
14554 the first template parameter.
14555 * sese.c (rename_map_hasher): Delete.
14556 (rename_map_type): Use tree_ssa_name_hash as the first template
14558 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
14559 (function_summary::m_map): Use map_hash as the first template
14561 (function_summary::release): Update accordingly.
14562 * tree-if-conv.c (phi_args_hash_traits): Delete.
14563 (predicate_scalar_phi): Use tree_operand_hash as the first template
14564 parameter to phi_arg_map.
14565 * tree-inline.h (dependence_hasher): Delete.
14566 (copy_body_data::dependence_map): Use dependence_hash as the first
14567 template parameter.
14568 * tree-inline.c (remap_dependence_clique): Update accordingly.
14569 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
14570 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
14572 (addr_stridxptr): Update accordingly.
14573 * value-prof.c (profile_id_traits): Delete.
14574 (cgraph_node_map): Use profile_id_hash as the first template
14576 (init_node_map): Update accordingly.
14577 * config/alpha/alpha.c (string_traits): Delete.
14578 (machine_function::links): Use nofree_string_hash as the first
14579 template parameter.
14580 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
14581 * config/m32c/m32c.c (pragma_traits): Delete.
14582 (pragma_htab): Use nofree_string_hash as the first template parameter.
14583 (m32c_note_pragma_address): Update accordingly.
14584 * config/mep/mep.c (pragma_traits): Delete.
14585 (pragma_htab): Use nofree_string_hash as the first template parameter.
14586 (mep_note_pragma_flag): Update accordingly.
14587 * config/mips/mips.c (mips16_flip_traits): Delete.
14588 (mflip_mips16_htab): Use nofree_string_hash as the first template
14590 (mflip_mips16_use_mips16_p): Update accordingly.
14591 (local_alias_traits): Delete.
14592 (mips16_local_aliases): Use nofree_string_hash as the first template
14594 (mips16_local_alias): Update accordingly.
14596 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14598 * hash-map-traits.h (default_hashmap_traits): Delete.
14600 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14602 * hash-map-traits.h (unbounded_hashmap_traits): New class.
14603 (unbounded_int_hashmap_traits): Likewise.
14604 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
14606 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14608 * ipa-icf.h (symbol_compare_hash): New class.
14609 (symbol_compare_hashmap_traits): Use it.
14610 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
14611 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
14612 (mem_alloc_description::reverse_mem_map_t): Remove redundant
14613 default_hashmap_traits.
14614 * sanopt.c (sanopt_tree_triplet_hash): New class.
14615 (sanopt_tree_triplet_map_traits): Use it.
14617 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14619 * gengtype-parse.c (require_template_declaration): Allow '+' in
14620 template parameters. Consolidate cases.
14621 * hash-traits.h (int_hash): New class.
14622 * alias.c (alias_set_hash): New structure.
14623 (alias_set_traits): Use it.
14624 * symbol-summary.h (function_summary::map_hash): New class.
14625 (function_summary::summary_hashmap_traits): Use it.
14626 * tree-inline.h (dependence_hash): New class.
14627 (dependence_hasher): Use it.
14628 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
14629 * value-prof.c (profile_id_hash): New class.
14630 (profile_id_traits): Use it.
14632 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14634 * config/mips/mips.c (mips16_flip_traits): Use it.
14635 (local_alias_traits, mips16_local_aliases): Convert from a map of
14636 rtxes to a map of symbol names.
14637 (mips16_local_alias): Update accordingly.
14639 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14641 * hash-traits.h (string_hash, nofree_string_hash): New classes.
14642 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
14643 * passes.c (pass_registry_hasher): Likewise.
14644 * config/alpha/alpha.c (string_traits): Likewise.
14645 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
14646 * config/m32c/m32c.c (pragma_traits): Likewise.
14647 * config/mep/mep.c (pragma_traits): Likewise.
14649 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14651 * tree-hash-traits.h (tree_hash): New class.
14652 * except.c: Include tree-hash-traits.h.
14653 (tree_hash_traits): Use tree_hash.
14655 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14657 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
14658 * sese.c: Include tree-hash-traits.h.
14659 (rename_map_hasher): Use tree_ssa_name_hasher.
14661 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14663 * tree-hash-traits.h (tree_decl_hash): New class.
14664 * tree-ssa-strlen.c: Include tree-hash-traits.h.
14665 (stridxlist_hash_traits): Use tree_decl_hash.
14667 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14669 * tree-hash-traits.h: New file.
14670 (tree_operand_hash): New class.
14671 * sanopt.c: Include tree-hash-traits.h.
14672 (sanopt_tree_map_traits): Use tree_operand_hash.
14673 * tree-if-conv.c: Include tree-hash-traits.h.
14674 (phi_args_hash_traits): Use tree_operand_hash.
14675 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
14676 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
14678 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14680 * hash-map-traits.h: Include hash-traits.h.
14681 (simple_hashmap_traits): New class.
14682 * mem-stats.h (hash_map): Change the default traits to
14683 simple_hashmap_traits<default_hash_traits<Key> >.
14685 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14687 * hash-table.h: Update comments.
14689 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14691 * hash-traits.h (default_hash_traits): New structure.
14692 * hash-set.h (default_hashset_traits): Delete.
14693 (hash_set): Use default_hash_traits<Key> instead of
14694 default_hashset_traits. Delete hash_entry type and use Key directly.
14695 * ipa-devirt.c (pair_traits): Delete.
14696 (default_hash_traits <type_pair>): Override.
14697 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
14698 (odr_types_equivalent_p, add_type_duplicate): Likewise.
14700 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14702 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
14704 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14706 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
14707 (has_is_empty, is_empty_helper): Delete.
14708 (has_mark_deleted, mark_deleted_helper): Delete.
14709 (has_mark_empty, mark_empty_helper): Delete.
14710 (hash_table::is_deleted): Call the Descriptor unconditionally.
14711 (hash_table::is_empty): Likewise.
14712 (hash_table::mark_deleted): Likewise.
14713 (hash_table::mark_empty): Likewise.
14715 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14717 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
14718 redundant typedefs and members.
14719 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
14720 redundant typedefs.
14721 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
14722 * ipa-devirt.c (odr_name_hasher): Likewise.
14723 (polymorphic_call_target_hasher): Likewise.
14724 * ira-costs.c (cost_classes_hasher): Likewise.
14725 * statistics.c (stats_counter_hasher): Likewise.
14726 * trans-mem.c (log_entry_hasher): Likewise.
14727 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14728 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
14729 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
14730 * var-tracking.c (variable_hasher): Likewise.
14731 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
14732 Remove redundant typedefs and members.
14734 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14736 * hash-traits.h (ggc_cache_hasher): Rename to...
14737 (ggc_cache_remove): ...this and remove typedefs.
14738 (ggc_cache_ptr_hash): New class.
14739 * hash-table.h: Update commentary.
14740 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
14741 rather than ggc_cache_hasher.
14742 (const_wide_int_hasher, reg_attr_hasher): Likewise.
14743 (const_double_hasher, const_fixed_hasher): Likewise.
14744 * function.c (insn_cache_hasher): Likewise.
14745 * trans-mem.c (tm_wrapper_hasher): Likewise.
14746 * tree.h (tree_decl_map_cache_hasher): Likewise.
14747 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
14748 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
14749 * ubsan.c (tree_type_map_cache_hasher): Likewise.
14750 * varasm.c (tm_clone_hasher): Likewise.
14751 * config/i386/i386.c (dllimport_hasher): Likewise.
14752 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
14753 (tree_hasher): Likewise.
14755 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14757 * hash-traits.h (ggc_hasher): Rename to...
14758 (ggc_remover): ...this and remove typedefs.
14759 (ggc_cache_hasher): Update accordingly. Add typedefs.
14760 (ggc_ptr_hash): New class.
14761 * hash-table.h: Update comment.
14762 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
14764 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
14765 (tree_descriptor_hasher): Likewise.
14766 * cgraph.c (function_version_hasher): Likewise.
14767 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
14768 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
14769 (dw_loc_list_hasher, addr_hasher): Likewise.
14770 * function.h (used_type_hasher): Likewise.
14771 * function.c (temp_address_hasher): Likewise.
14772 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
14773 * libfuncs.h (libfunc_hasher): Likewise.
14774 * lto-streamer.h (decl_state_hasher): Likewise.
14775 * optabs.c (libfunc_decl_hasher): Likewise.
14776 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
14777 * varasm.c (section_hasher, object_block_hasher): Likewise.
14778 (const_rtx_desc_hasher): Likewise.
14779 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
14780 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
14782 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14784 * hash-traits.h (free_ptr_hash): New class.
14785 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
14786 rather than typed_free_remove. Remove redudant typedefs.
14787 (external_ref_hasher): Likewise.
14788 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
14789 (ehspec_hasher): Likewise.
14790 * ggc-common.c (saving_hasher): Likewise.
14791 * gimplify.c (gimplify_hasher): Likewise.
14792 * haifa-sched.c (delay_i2_hasher): Likewise.
14793 * loop-invariant.c (invariant_expr_hasher): Likewise.
14794 * loop-iv.c (biv_entry_hasher): Likewise.
14795 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
14796 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
14797 * tree-cfg.c (locus_discrim_hasher): Likewise.
14798 * tree-eh.c (finally_tree_hasher): Likewise.
14799 * tree-into-ssa.c (var_info_hasher): Likewise.
14800 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
14801 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
14802 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
14803 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
14804 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
14805 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
14806 (shared_bitmap_hasher): Likewise.
14807 * tree-ssa-threadupdate.c (redirection_data): Likewise.
14808 * tree-vectorizer.h (peel_info_hasher): Likewise.
14809 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
14810 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
14812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14814 * hash-table.h: Update comments.
14815 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
14816 (nofree_ptr_hash): New class.
14817 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
14818 than typed_noop_remove. Remove redudant typedefs.
14819 * attribs.c (attribute_hasher): Likewise.
14820 * cfg.c (bb_copy_hasher): Likewise.
14821 * cselib.c (cselib_hasher): Likewise.
14822 * dse.c (invariant_group_base_hasher): Likewise.
14823 * dwarf2cfi.c (trace_info_hasher): Likewise.
14824 * dwarf2out.c (macinfo_entry_hasher): Likewise.
14825 (comdat_type_hasher, loc_list_hasher): Likewise.
14826 * gcse.c (pre_ldst_expr_hasher): Likewise.
14827 * genmatch.c (id_base): Likewise.
14828 * genrecog.c (test_pattern_hasher): Likewise.
14829 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
14830 * haifa-sched.c (delay_i1_hasher): Likewise.
14831 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
14832 * ipa-icf.h (congruence_class_group_hash): Likewise.
14833 * ipa-profile.c (histogram_hash): Likewise.
14834 * ira-color.c (allocno_hard_regs_hasher): Likewise.
14835 * lto-streamer.h (string_slot_hasher): Likewise.
14836 * lto-streamer.c (tree_entry_hasher): Likewise.
14837 * plugin.c (event_hasher): Likewise.
14838 * postreload-gcse.c (expr_hasher): Likewise.
14839 * store-motion.c (st_expr_hasher): Likewise.
14840 * tree-sra.c (uid_decl_hasher): Likewise.
14841 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
14842 (ssa_name_var_hash): Likewise.
14843 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
14844 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
14845 * tree-ssa-pre.c (pre_expr_d): Likewise.
14846 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
14847 * vtable-verify.h (registration_hasher): Likewise.
14848 * vtable-verify.c (vtbl_map_hasher): Likewise.
14849 * config/arm/arm.c (libcall_hasher): Likewise.
14850 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
14851 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
14852 * config/sol2.c (comdat_entry_hasher): Likewise.
14853 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
14854 (print_fold_checksum, fold_checksum_tree): Likewise.
14855 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
14856 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
14857 (fold_build_call_array_loc): Likewise.
14858 * tree-ssa-ccp.c (gimple_htab): Likewise.
14859 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
14860 rather than pointer_type.
14862 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14864 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
14865 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
14867 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14869 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
14870 (ggc_hasher::ggc_mx): Likewise.
14871 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
14872 that duplicate ggc_hasher ones.
14874 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14876 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
14877 (gt_cleare_cache): Check here for deleted and empty entries.
14878 Replace handle_cache_entry with a call to keep_cache_entry.
14879 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
14880 (ggc_cache_hasher::keep_cache_entry): New function.
14881 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
14882 (tm_wrapper_hasher::keep_cache_entry): New function.
14883 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
14884 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14885 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
14886 (type_cache_hasher::keep_cache_entry): New function.
14887 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
14888 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14889 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
14890 (tree_type_map_cache_hasher::keep_cache_entry): New function.
14891 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
14892 (tm_clone_hasher::keep_cache_entry): New function.
14893 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
14894 (dllimport_hasher::keep_cache_entry): New function.
14896 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14898 * hash-table.h: Include hash-traits.h.
14899 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
14900 (ggc_cache_hasher): Move to...
14901 * hash-traits.h: ...this new file.
14903 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14905 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
14906 struct cl_optimization.
14907 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
14908 * tree.c (make_node_stat): Allocate cl_optimization struct.
14909 (copy_node_stat): Allocate and copy cl_optimization struct.
14911 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14913 * function.h (struct incoming_args): Move struct.
14914 (pass_by_reference, reference_callee_copied): Remove prototypes.
14915 * emit-rtl.h (struct incoming_args): Relocate struct here.
14916 * calls.h (pass_by_reference, reference_callee_copied): Relocate
14918 * function.c (pass_by_reference, reference_callee_copied): Move.
14919 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
14920 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
14921 * ipa-chkp.c: Include calls.h.
14923 2015-06-25 Andrew Macleod <amacleod@redhat.com>
14925 * alias.h (alias_set_type): Move typedef.
14926 * coretypes.h (alias_set_type): Relocate typedef here.
14927 * rtl.h: Don't include alias.h.
14929 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14931 * cgraph.h (cgraph_rtl_info): Move to rtl.h
14932 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
14934 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
14935 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
14937 * calls.c: Include hard-reg-set.h before rtl.h.
14940 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14941 Vladimir Makarov <vmakarov@redhat.com>
14943 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
14946 2015-06-25 Richard Biener <rguenther@suse.de>
14948 * fold-const.c (fold_binary_loc): Move simplification of
14949 (X <<>> C1) & C2 ...
14950 * match.pd: ... here.
14952 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
14954 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
14956 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14958 * match.pd: Add patterns for vec_conds between 1 and 0.
14960 2015-06-25 Richard Biener <rguenther@suse.de>
14962 * tree-vect-stmts.c (vectorizable_conversion): Do not set
14963 STMT_VINFO_VEC_STMT for SLP.
14964 (vectorizable_store): Likewise.
14965 (vectorizable_load): Likewise.
14966 (vect_transform_stmt): Catch SLP vectorization clobbering
14967 STMT_VINFO_VEC_STMT.
14969 2015-06-25 Richard Biener <rguenther@suse.de>
14971 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
14973 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
14974 cleanup resulting dead code and parameters.
14975 (vect_transform_slp_perm_load): Adjust.
14977 2015-06-25 Nick Clifton <nickc@redhat.com>
14979 * config/bfin/bfin.c (bfin_expand_prologue): Set
14980 current_function_static_stack_size if flag_stack_usage_info is set.
14981 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14982 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
14983 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14984 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
14986 2015-06-25 Tom de Vries <tom@codesourcery.com>
14988 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
14989 comment that the generated IV is unsigned.
14991 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14994 * config/arm/arm.c (arm_dbx_register_number): Return
14995 DWARF_FRAME_REGISTERS by default.
14997 2015-06-25 Tom de Vries <tom@codesourcery.com>
14999 * dominance.c (calculate_dominance_info): Fix verify_dominators call
15000 argument. Call verify_dominator when reusing dominator info.
15002 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
15005 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15006 an additional element of the unspec vector. Modify indices
15008 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15009 * config/sh/sh.c (prepare_move_operands): Pass incremented
15010 const_int to gen_GOTaddr2picreg.
15011 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15013 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15015 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15016 Condition on TARGET_FLOAT.
15018 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15020 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15023 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15025 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15027 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15028 aarch64_err_no_fpadvsimd.
15030 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15031 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15032 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15033 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15034 Turn error into assert, test TARGET_FLOAT.
15035 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15038 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
15041 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15043 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15045 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15047 2015-06-24 Renlin Li <renlin.li@arm.com>
15049 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15050 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15052 2015-06-24 Richard Biener <rguenther@suse.de>
15054 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15056 (lower_opt_convert): Support lowering of conditional view_convert.
15057 (parser::parse_operation): Likewise.
15058 (parser::parse_for): Likewise.
15060 2015-06-24 Renlin Li <renlin.li@arm.com>
15062 * varasm.c (emit_local): Use unsigned int for align variable.
15064 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15067 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15068 for negative numbers.
15070 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15072 PR rtl-optimization/66306
15073 * reload.c (find_reloads): Swap the match_dup info for
15074 commutative operands.
15076 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15078 * config/s390/vx-builtins.md
15079 ("vec_scatter_element<mode>_<non_vec_int>")
15080 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15081 attribute with bhfgq.
15083 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15085 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15087 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15089 * config/s390/s390-builtin-types.def: Add flag to indicate the
15090 options under which the function type is needed.
15091 * config/s390/s390-builtins.def: Add flag to indicate the options
15092 under which the builtin is enabled.
15093 * config/s390/s390-builtins.h: Add flags parameter to macro
15095 (bflags_for_builtin): New function.
15096 (flags_for_builtin): Renamed to ...
15097 (opflags_for_builtin): ... this.
15098 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15099 flags_for_builtin to bflags_for_builtin and
15100 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15101 * config/s390/s390.c: Add initialization of bflags_builtin and
15102 opflags_builtin arrays.
15103 Remove code for flags_builtin.
15104 (s390_init_builtins): Only create builtin function types if one of
15105 their flags is active.
15106 Only create builtins if all of their flags are active.
15107 (s390_expand_builtin): Rename flags_for_builtin to
15108 opflags_for_builtin.
15110 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15112 * config/s390/vecintrin.h: Remove internal builtins.
15114 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15116 * config/s390/s390.c (s390_secondary_reload): Fix check for
15117 GENERAL_REGS register class.
15119 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15121 * config/s390/s390.c (s390_support_vector_misalignment): Call
15122 default implementation for !TARGET_VX.
15124 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15126 * config/s390/s390.c (s390_legitimate_constant_p): Add
15129 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15131 * config/s390/s390.c (s390_vector_abi): New variable definition.
15132 (s390_check_type_for_vector_abi): New function.
15133 (TARGET_ASM_FILE_END): New macro definition.
15134 (s390_asm_file_end): New function.
15135 (s390_function_arg): Call s390_check_type_for_vector_abi.
15136 (s390_gimplify_va_arg): Likewise.
15137 * configure: Regenerate.
15138 * configure.ac: Check for .gnu_attribute Binutils feature.
15140 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
15143 * config/bfin/bfin.c (hwloop_optimize): Initialize
15144 JUMP_LABEL for newly created jump.
15146 2015-06-23 Tristan Gingold <gingold@adacore.com>
15148 * collect-utils.c (collect_wait): Unlink the response file here
15150 (do_wait): ...here.
15151 (utils_cleanup): ...and here.
15153 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
15155 * df-scan.c: Don't include target-def.h.
15156 * targhooks.c: Likewise.
15157 * config/arm/arm-c.c: Likewise.
15158 * config/i386/i386-c.c: Likewise.
15159 * config/nds32/nds32-cost.c: Likewise.
15160 * config/nds32/nds32-fp-as-gp.c: Likewise.
15161 * config/nds32/nds32-intrinsic.c: Likewise.
15162 * config/nds32/nds32-isr.c: Likewise.
15163 * config/nds32/nds32-md-auxiliary.c: Likewise.
15164 * config/nds32/nds32-memory-manipulation.c: Likewise.
15165 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15166 * config/nds32/nds32-predicates.c: Likewise.
15168 2015-06-23 Richard Biener <rguenther@suse.de>
15170 PR tree-optimization/66636
15171 * tree-vect-stmts.c (vectorizable_store): Properly compute the
15172 def type for further defs for strided stores.
15174 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
15176 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15177 conditional selects.
15178 (setcc_int<mode>, setcc_float<mode>): Reformat.
15180 2015-06-23 Marek Polacek <polacek@redhat.com>
15182 * match.pd ((x + y) - (x | y) -> x & y,
15183 (x + y) - (x & y) -> x | y): New patterns.
15185 2015-06-23 Ludovic Courtès <ludo@gnu.org>
15188 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15189 '-dynamic-linker' within %{!shared: ...}.
15191 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
15194 * config/i386/predicates.md (addsub_vm_operator): New predicate.
15195 (addsub_vs_operator): Ditto.
15196 (addsub_vs_parallel): Ditto.
15197 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15198 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15199 Put minus RTX before plus and adjust vec_merge selector.
15200 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15201 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15202 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15203 (addsub vec_merge splitters): New combiner splitters.
15204 (addsub vec_select/vec_concat splitters): Ditto.
15206 2015-06-23 Bin Cheng <bin.cheng@arm.com>
15208 PR tree-optimization/66449
15209 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15210 POINTER_PLUS_EXPR for pointers.
15212 2015-06-23 Alan Modra <amodra@gmail.com>
15214 * rtlanal.c (commutative_operand_precedence): Correct comments.
15215 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15216 declaration. Return an int. Distinguish REG,REG return from
15218 (struct simplify_plus_minus_op_data): Make local to function.
15219 (simplify_plus_minus): Don't set canonicalized if merely sorting
15220 registers. Avoid packing ops if nothing changes. White space fixes.
15222 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
15224 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15225 -fdump-ada-spec is passed but not if -fsyntax-only is.
15227 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
15230 * lra-lives.c (process_bb_lives): Check insn copying the same
15231 reload pseudo and don't create a copy for it.
15233 2015-06-22 Tom de Vries <tom@codesourcery.com>
15235 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15238 2015-06-22 Tom de Vries <tom@codesourcery.com>
15240 * builtins.def (DEF_GOMP_BUILTIN): Test
15241 'flag_tree_parallelize_loops > 1' instead of
15242 'flag_tree_parallelize_loops'. Test flag_cilkplus.
15244 2015-06-22 Tom de Vries <tom@codesourcery.com>
15246 * dominance.c (calculate_dominance_info): Verify dominators if
15249 2015-06-22 Marek Polacek <polacek@redhat.com>
15251 * match.pd ((x ^ y) ^ (x | y) -> x & y,
15252 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15253 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15254 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15256 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
15259 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15260 cost of embedded comparison.
15262 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15265 * config/rs6000/predicates.md (altivec_register_operand): Permit
15266 virtual stack registers.
15267 (vsx_register_operand): Likewise.
15268 (vfloat_operand): Likewise.
15269 (vint_operand): Likewise.
15270 (vlogical_operand): Likewise.
15272 2015-06-22 Richard Biener <rguenther@suse.de>
15274 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15275 and single_scalar_iteration_cost members.
15276 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15277 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15278 (vect_get_single_scalar_iteration_cost): Remove.
15279 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15280 Use LOOP_VINFO_SCALAR_ITERATION_COST.
15281 * tree-vect-loop.c (destroy_loop_vec_info): Free
15283 (vect_get_single_scalar_iteration_cost): Compute result into
15284 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15285 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
15286 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15287 (vect_estimate_min_profitable_iters): Use them.
15289 2015-06-22 Christian Bruel <christian.bruel@st.com>
15292 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15293 (TARGET_INSERT_ATTRIBUTES): Define.
15294 (thumb_flipper): New var.
15295 * config/arm/arm.opt (-mflip-thumb): New switch.
15297 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15298 Martin Liska <mliska@suse.cz>
15301 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15302 construction of arg_types.
15303 (sem_function::sem_function): Likewise.
15304 (sem_function::~sem_function): Remove destruction of arg_types.
15305 (sem_function::compatible_parm_types_p): New function.
15306 (sem_function::equals_wpa): Reorg matching of return values
15307 and parameter types.
15308 (sem_function::equals_private): Reorg mathcing of argument types.
15309 (sem_function::parse_tree_args): Remove.
15310 * ipa-icf.h (init_wpa): Do not call it.
15311 (parse_tree_args): Remove.
15312 (compatible_parm_types_p): Declare.
15313 (result_type): Remove.
15314 (arg_types): Remove.
15316 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15319 * ipa-polymorphic-call.c
15320 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15321 initializing alias oracle; fix formating; set base_alias_set if it
15324 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
15326 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15327 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15328 (find_inc): Likewise.
15329 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15331 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15332 * df-scan.c (df_swap_refs): Remove.
15333 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15334 * dominance.c (link_roots): Use std::swap instead of manually swapping.
15335 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15336 * fold-const.c (fold_relational_const): Likewise.
15337 * genattrtab.c (simplify_test_exp): Likewise.
15338 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15339 gimple_simplify): Likewise.
15340 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15341 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15342 * ipa-devirt.c (add_type_duplicate): Likewise.
15343 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15344 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15345 * lra.c (lra_create_copy): Likewise.
15346 * lto-streamer-out.c (DFS::DFS): Likewise.
15347 * modulo-sched.c (get_sched_window): Likewise.
15348 * omega.c (omega_pretty_print_problem): Likewise.
15349 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15350 * reload1.c (reloads_unique_chain_p): Likewise.
15351 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15352 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15354 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15356 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15357 predicate_mem_writes): Likewise.
15358 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15359 * tree-predcom.c (combine_chains): Likewise.
15360 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15361 refs_may_alias_p_1): Likewise.
15362 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15363 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15364 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15365 number_of_iterations_cond): Likewise.
15366 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15367 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15368 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15369 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15370 * tree-vrp.c (extract_range_from_binary_expr_1,
15371 extract_range_from_unary_expr_1): Likewise.
15373 2015-06-20 Marek Polacek <polacek@redhat.com>
15375 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15377 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
15380 * config/sh/sh.c (prepare_move_operands): Replace subreg
15381 index term with R0 for base and index addressing.
15383 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
15385 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15387 (movsf_aarch64): Change condition from register_operand to
15388 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
15389 load1. Change type for alternative 7 to store1.
15390 (movdf_aarch64): Likewise.
15392 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
15394 * config/vax/vax.md: Adjust sign/zero extend patterns to
15395 handle SUBREGs in operands[1].
15397 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15399 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15400 of manually swapping.
15401 (expand_vec_perm_interleave2): Likewise.
15403 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
15405 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15406 reuse bounds created for abnormal ssa names.
15408 2015-06-19 Jakub Jelinek <jakub@redhat.com>
15410 * config/nvptx/nvptx.md (allocate_stack): Rename to...
15411 (allocate_stack_<mode>): ... this, and add :P on both
15412 match_operand and unspec.
15413 (allocate_stack): New expander.
15415 2015-06-19 Christian Bruel <christian.bruel@st.com>
15419 * config/arm/arm.c (arm_set_current_function): Handle
15420 explicit default options.
15422 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15424 * config/i386/i386.md (*movsicc_noc_zext): New insn.
15425 (zero-extended cmove with mem peephole2): New pattern.
15426 (cmove with mem peephole2): Merge patterns.
15428 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15430 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
15432 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
15434 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
15435 * config/mips/mips.md (*madd4<mode>): Ditto.
15436 (*nmadd3<mode>) Ditto.
15437 (*nmadd4<mode>_fastmath): Ditto.
15438 (*nmadd3<mode>_fastmath): Ditto.
15439 (*nmsub4<mode>): Ditto.
15440 (*nmsub3<mode>): Ditto.
15441 (*nmsub4<mode>_fastmath): Ditto.
15442 (*nmsub3<mode>_fastmath): Ditto.
15444 2015-06-18 Michael Matz <matz@suse.de>
15446 PR middle-end/66253
15447 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
15448 grouped strided stores.
15449 (vectorizable_load): Don't use the DR from first_stmt in
15450 the non-SLP grouped strided case.
15452 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15455 * function.c (assign_bounds): Add arguments assign_regs,
15456 assign_special, assign_bt.
15457 (assign_parms): For vararg functions handle bounds in BT
15458 and special slots after incoming vararg bounds.
15460 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15462 PR middle-end/66568
15463 * cfgexpand.c (expand_return): Handle missing bounds.
15464 (expand_gimple_stmt_1): Likewise.
15465 * tree-chkp.c (chkp_expand_zero_bounds): New.
15466 * tree-chkp.h (chkp_expand_zero_bounds): New.
15468 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15470 PR middle-end/66567
15471 * ipa-chkp.c (chkp_maybe_create_clone): Require
15472 functions to be instrumentable.
15473 * tree-chkp.c (chkp_replace_function_pointer): Use
15474 chkp_instrumentable_p instead of attribute check.
15476 2015-06-18 Richard Biener <rguenther@suse.de>
15478 PR tree-optimization/66510
15479 * tree-vect-stmts.c (vectorizable_load): Properly compute the
15480 number of vector loads for SLP permuted loads.
15481 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
15482 check the stride for loop vectorization.
15483 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
15484 vectorization factor.
15485 (vect_analyze_group_access): If the group size is not a power
15486 of two require a epilogue loop.
15487 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
15488 compute and optimizing and alias test pruning after final
15489 vectorization factor computation.
15490 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
15492 (vect_transform_slp_perm_load): Properly compute the original
15493 number of vector load stmts.
15495 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15497 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
15498 "unlikely character , in @var" warning.
15500 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
15502 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
15503 (ix86_function_arg_advance): Ditto.
15504 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
15506 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15508 * function.h (struct rtl_data): Remove struct and accessor macros.
15509 * emit-rtl.h (struct rtl_data): Relocate to here.
15510 * Makefile.in (GTFILES): Add emit-rtl.h.
15511 * df-core.c: Include emit-rtl.h.
15512 * genattrtab.c: Likewise.
15513 * genconditions.c: Likewise.
15514 * genpreds.c: Likewise.
15515 * genrecog.c: Likewise.
15516 * regcprop.c: Likewise.
15517 * resource.c: Likewise.
15518 * sched-rgn.c: Likewise.
15519 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15520 * config/i386/winnt.c: Likewise.
15522 2015-06-17 Jakub Jelinek <jakub@redhat.com>
15524 PR middle-end/66429
15525 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
15526 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
15527 and has_force_vectorize_loops flags from cfun into
15529 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
15530 if simduid is non-NULL.
15531 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
15532 * passes.def (pass_simduid_cleanup): Add new pass after loop
15534 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
15535 indirection from htab argument's type.
15536 (shrink_simd_arrays): New function.
15537 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
15538 Don't call adjust_simduid_builtins if there are no loops.
15539 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
15540 (pass_simduid_cleanup::execute): New method.
15541 (make_pass_simduid_cleanup): New function.
15543 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
15545 * tree-core.h (tree_target_option): Make opts field a pointer to a
15546 cl_target_option instead of an instance of the struct.
15547 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
15549 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
15550 TARGET_OPTION_NODE.
15551 (copy_node_stat): Allocate and copy struct cl_target_option.
15553 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15555 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
15556 Remove conditional exposure of prototypes.
15557 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
15558 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
15559 definitions in tree.h with functions.
15560 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
15562 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
15564 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
15566 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
15567 (*cmp<mode>_signed): ... this.
15568 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
15569 (*cmp<mode>_unsigned): ... this. Remove %b.
15571 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15573 * coretypes.h: Include input.h and as-a.h.
15574 * rtl.h: Include input.h and as-a.h for generator files.
15575 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
15576 * vec.c: Don't include diagnostic-core.h.
15577 * alias.c: Do not include input.h, line-map.h or is-a.h.
15578 * asan.c: Likewise.
15579 * attribs.c: Likewise.
15580 * auto-inc-dec.c: Likewise.
15581 * auto-profile.c: Likewise.
15582 * bb-reorder.c: Likewise.
15583 * bt-load.c: Likewise.
15584 * builtins.c: Likewise.
15585 * caller-save.c: Likewise.
15586 * calls.c: Likewise.
15587 * ccmp.c: Likewise.
15589 * cfganal.c: Likewise.
15590 * cfgbuild.c: Likewise.
15591 * cfgcleanup.c: Likewise.
15592 * cfgexpand.c: Likewise.
15593 * cfghooks.c: Likewise.
15594 * cfgloop.c: Likewise.
15595 * cfgloop.h: Likewise.
15596 * cfgloopanal.c: Likewise.
15597 * cfgloopmanip.c: Likewise.
15598 * cfgrtl.c: Likewise.
15599 * cgraph.c: Likewise.
15600 * cgraphbuild.c: Likewise.
15601 * cgraphclones.c: Likewise.
15602 * cgraphunit.c: Likewise.
15603 * cilk-common.c: Likewise.
15604 * combine-stack-adj.c: Likewise.
15605 * combine.c: Likewise.
15606 * compare-elim.c: Likewise.
15607 * convert.c: Likewise.
15608 * coverage.c: Likewise.
15609 * cppbuiltin.c: Likewise.
15610 * cprop.c: Likewise.
15612 * cselib.c: Likewise.
15613 * data-streamer-in.c: Likewise.
15614 * data-streamer-out.c: Likewise.
15615 * data-streamer.c: Likewise.
15616 * dbxout.c: Likewise.
15619 * debug.c: Likewise.
15620 * df-core.c: Likewise.
15621 * df-problems.c: Likewise.
15622 * df-scan.c: Likewise.
15625 * diagnostic-core.h: Likewise.
15626 * diagnostic.c: Likewise.
15627 * dojump.c: Likewise.
15628 * dominance.c: Likewise.
15629 * domwalk.c: Likewise.
15630 * double-int.c: Likewise.
15632 * dumpfile.c: Likewise.
15633 * dumpfile.h: Likewise.
15634 * dwarf2asm.c: Likewise.
15635 * dwarf2cfi.c: Likewise.
15636 * dwarf2out.c: Likewise.
15637 * emit-rtl.c: Likewise.
15638 * et-forest.c: Likewise.
15639 * except.c: Likewise.
15640 * explow.c: Likewise.
15641 * expmed.c: Likewise.
15642 * expr.c: Likewise.
15643 * final.c: Likewise.
15644 * fixed-value.c: Likewise.
15645 * fold-const.c: Likewise.
15646 * function.c: Likewise.
15647 * fwprop.c: Likewise.
15648 * gcc-plugin.h: Likewise.
15649 * gcse.c: Likewise.
15650 * generic-match-head.c: Likewise.
15651 * ggc-page.c: Likewise.
15652 * gimple-builder.c: Likewise.
15653 * gimple-expr.c: Likewise.
15654 * gimple-fold.c: Likewise.
15655 * gimple-iterator.c: Likewise.
15656 * gimple-low.c: Likewise.
15657 * gimple-match-head.c: Likewise.
15658 * gimple-pretty-print.c: Likewise.
15659 * gimple-ssa-isolate-paths.c: Likewise.
15660 * gimple-ssa-strength-reduction.c: Likewise.
15661 * gimple-streamer-in.c: Likewise.
15662 * gimple-streamer-out.c: Likewise.
15663 * gimple-streamer.h: Likewise.
15664 * gimple-walk.c: Likewise.
15665 * gimple.c: Likewise.
15666 * gimplify-me.c: Likewise.
15667 * gimplify.c: Likewise.
15668 * godump.c: Likewise.
15669 * graph.c: Likewise.
15670 * graphite-blocking.c: Likewise.
15671 * graphite-dependences.c: Likewise.
15672 * graphite-interchange.c: Likewise.
15673 * graphite-isl-ast-to-gimple.c: Likewise.
15674 * graphite-optimize-isl.c: Likewise.
15675 * graphite-poly.c: Likewise.
15676 * graphite-scop-detection.c: Likewise.
15677 * graphite-sese-to-poly.c: Likewise.
15678 * graphite.c: Likewise.
15679 * haifa-sched.c: Likewise.
15680 * hw-doloop.c: Likewise.
15681 * ifcvt.c: Likewise.
15682 * init-regs.c: Likewise.
15683 * input.c: Likewise.
15684 * internal-fn.c: Likewise.
15685 * ipa-chkp.c: Likewise.
15686 * ipa-comdats.c: Likewise.
15687 * ipa-cp.c: Likewise.
15688 * ipa-devirt.c: Likewise.
15689 * ipa-icf-gimple.c: Likewise.
15690 * ipa-icf.c: Likewise.
15691 * ipa-inline-analysis.c: Likewise.
15692 * ipa-inline-transform.c: Likewise.
15693 * ipa-inline.c: Likewise.
15694 * ipa-polymorphic-call.c: Likewise.
15695 * ipa-profile.c: Likewise.
15696 * ipa-prop.c: Likewise.
15697 * ipa-pure-const.c: Likewise.
15698 * ipa-ref.c: Likewise.
15699 * ipa-reference.c: Likewise.
15700 * ipa-split.c: Likewise.
15701 * ipa-utils.c: Likewise.
15702 * ipa-visibility.c: Likewise.
15704 * ira-build.c: Likewise.
15705 * ira-color.c: Likewise.
15706 * ira-conflicts.c: Likewise.
15707 * ira-costs.c: Likewise.
15708 * ira-emit.c: Likewise.
15709 * ira-lives.c: Likewise.
15711 * jump.c: Likewise.
15712 * langhooks.c: Likewise.
15714 * loop-doloop.c: Likewise.
15715 * loop-init.c: Likewise.
15716 * loop-invariant.c: Likewise.
15717 * loop-iv.c: Likewise.
15718 * loop-unroll.c: Likewise.
15719 * lower-subreg.c: Likewise.
15720 * lra-assigns.c: Likewise.
15721 * lra-coalesce.c: Likewise.
15722 * lra-constraints.c: Likewise.
15723 * lra-eliminations.c: Likewise.
15724 * lra-lives.c: Likewise.
15725 * lra-remat.c: Likewise.
15726 * lra-spills.c: Likewise.
15728 * lto-cgraph.c: Likewise.
15729 * lto-compress.c: Likewise.
15730 * lto-opts.c: Likewise.
15731 * lto-section-in.c: Likewise.
15732 * lto-section-out.c: Likewise.
15733 * lto-streamer-in.c: Likewise.
15734 * lto-streamer-out.c: Likewise.
15735 * lto-streamer.c: Likewise.
15737 * mode-switching.c: Likewise.
15738 * modulo-sched.c: Likewise.
15739 * omega.c: Likewise.
15740 * omp-low.c: Likewise.
15741 * optabs.c: Likewise.
15742 * opts-global.c: Likewise.
15743 * opts.h: Likewise.
15744 * passes.c: Likewise.
15745 * plugin.c: Likewise.
15746 * postreload-gcse.c: Likewise.
15747 * postreload.c: Likewise.
15748 * predict.c: Likewise.
15749 * pretty-print.h: Likewise.
15750 * print-rtl.c: Likewise.
15751 * print-tree.c: Likewise.
15752 * profile.c: Likewise.
15753 * real.c: Likewise.
15754 * realmpfr.c: Likewise.
15755 * recog.c: Likewise.
15757 * reg-stack.c: Likewise.
15758 * regcprop.c: Likewise.
15759 * reginfo.c: Likewise.
15760 * regrename.c: Likewise.
15761 * regstat.c: Likewise.
15762 * reload.c: Likewise.
15763 * reload1.c: Likewise.
15764 * reorg.c: Likewise.
15765 * resource.c: Likewise.
15766 * rtl-chkp.c: Likewise.
15767 * rtl-error.c: Likewise.
15768 * rtlanal.c: Likewise.
15769 * rtlhooks.c: Likewise.
15770 * sanopt.c: Likewise.
15771 * sched-deps.c: Likewise.
15772 * sched-ebb.c: Likewise.
15773 * sched-rgn.c: Likewise.
15774 * sched-vis.c: Likewise.
15775 * sdbout.c: Likewise.
15776 * sel-sched-dump.c: Likewise.
15777 * sel-sched-ir.c: Likewise.
15778 * sel-sched.c: Likewise.
15779 * sese.c: Likewise.
15780 * shrink-wrap.c: Likewise.
15781 * simplify-rtx.c: Likewise.
15782 * stack-ptr-mod.c: Likewise.
15783 * statistics.c: Likewise.
15784 * stmt.c: Likewise.
15785 * stor-layout.c: Likewise.
15786 * store-motion.c: Likewise.
15787 * streamer-hooks.c: Likewise.
15788 * stringpool.c: Likewise.
15789 * symtab.c: Likewise.
15790 * target-globals.c: Likewise.
15791 * targhooks.c: Likewise.
15792 * toplev.c: Likewise.
15793 * tracer.c: Likewise.
15794 * trans-mem.c: Likewise.
15795 * tree-affine.c: Likewise.
15796 * tree-browser.c: Likewise.
15797 * tree-call-cdce.c: Likewise.
15798 * tree-cfg.c: Likewise.
15799 * tree-cfgcleanup.c: Likewise.
15800 * tree-chkp-opt.c: Likewise.
15801 * tree-chkp.c: Likewise.
15802 * tree-chrec.c: Likewise.
15803 * tree-complex.c: Likewise.
15804 * tree-data-ref.c: Likewise.
15805 * tree-dfa.c: Likewise.
15806 * tree-diagnostic.c: Likewise.
15807 * tree-dump.c: Likewise.
15808 * tree-eh.c: Likewise.
15809 * tree-emutls.c: Likewise.
15810 * tree-if-conv.c: Likewise.
15811 * tree-inline.c: Likewise.
15812 * tree-into-ssa.c: Likewise.
15813 * tree-iterator.c: Likewise.
15814 * tree-loop-distribution.c: Likewise.
15815 * tree-nested.c: Likewise.
15816 * tree-nrv.c: Likewise.
15817 * tree-object-size.c: Likewise.
15818 * tree-outof-ssa.c: Likewise.
15819 * tree-parloops.c: Likewise.
15820 * tree-phinodes.c: Likewise.
15821 * tree-predcom.c: Likewise.
15822 * tree-pretty-print.c: Likewise.
15823 * tree-profile.c: Likewise.
15824 * tree-scalar-evolution.c: Likewise.
15825 * tree-sra.c: Likewise.
15826 * tree-ssa-address.c: Likewise.
15827 * tree-ssa-alias.c: Likewise.
15828 * tree-ssa-ccp.c: Likewise.
15829 * tree-ssa-coalesce.c: Likewise.
15830 * tree-ssa-copy.c: Likewise.
15831 * tree-ssa-copyrename.c: Likewise.
15832 * tree-ssa-dce.c: Likewise.
15833 * tree-ssa-dom.c: Likewise.
15834 * tree-ssa-dse.c: Likewise.
15835 * tree-ssa-forwprop.c: Likewise.
15836 * tree-ssa-ifcombine.c: Likewise.
15837 * tree-ssa-live.c: Likewise.
15838 * tree-ssa-loop-ch.c: Likewise.
15839 * tree-ssa-loop-im.c: Likewise.
15840 * tree-ssa-loop-ivcanon.c: Likewise.
15841 * tree-ssa-loop-ivopts.c: Likewise.
15842 * tree-ssa-loop-manip.c: Likewise.
15843 * tree-ssa-loop-niter.c: Likewise.
15844 * tree-ssa-loop-prefetch.c: Likewise.
15845 * tree-ssa-loop-unswitch.c: Likewise.
15846 * tree-ssa-loop.c: Likewise.
15847 * tree-ssa-math-opts.c: Likewise.
15848 * tree-ssa-operands.c: Likewise.
15849 * tree-ssa-phiopt.c: Likewise.
15850 * tree-ssa-phiprop.c: Likewise.
15851 * tree-ssa-pre.c: Likewise.
15852 * tree-ssa-propagate.c: Likewise.
15853 * tree-ssa-reassoc.c: Likewise.
15854 * tree-ssa-sccvn.c: Likewise.
15855 * tree-ssa-scopedtables.c: Likewise.
15856 * tree-ssa-sink.c: Likewise.
15857 * tree-ssa-strlen.c: Likewise.
15858 * tree-ssa-structalias.c: Likewise.
15859 * tree-ssa-tail-merge.c: Likewise.
15860 * tree-ssa-ter.c: Likewise.
15861 * tree-ssa-threadedge.c: Likewise.
15862 * tree-ssa-threadupdate.c: Likewise.
15863 * tree-ssa-uncprop.c: Likewise.
15864 * tree-ssa-uninit.c: Likewise.
15865 * tree-ssa.c: Likewise.
15866 * tree-ssanames.c: Likewise.
15867 * tree-stdarg.c: Likewise.
15868 * tree-streamer-in.c: Likewise.
15869 * tree-streamer-out.c: Likewise.
15870 * tree-streamer.c: Likewise.
15871 * tree-switch-conversion.c: Likewise.
15872 * tree-tailcall.c: Likewise.
15873 * tree-vect-data-refs.c: Likewise.
15874 * tree-vect-generic.c: Likewise.
15875 * tree-vect-loop-manip.c: Likewise.
15876 * tree-vect-loop.c: Likewise.
15877 * tree-vect-patterns.c: Likewise.
15878 * tree-vect-slp.c: Likewise.
15879 * tree-vect-stmts.c: Likewise.
15880 * tree-vectorizer.c: Likewise.
15881 * tree-vrp.c: Likewise.
15882 * tree.c: Likewise.
15883 * tsan.c: Likewise.
15884 * ubsan.c: Likewise.
15885 * valtrack.c: Likewise.
15886 * value-prof.c: Likewise.
15887 * var-tracking.c: Likewise.
15888 * varasm.c: Likewise.
15889 * varpool.c: Likewise.
15890 * vmsdbgout.c: Likewise.
15891 * vtable-verify.c: Likewise.
15893 * wide-int.cc: Likewise.
15894 * xcoffout.c: Likewise.
15895 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
15896 * common/common-targhooks.c: Likewise.
15897 * config/aarch64/aarch64-builtins.c: Likewise.
15898 * config/aarch64/aarch64.c: Likewise.
15899 * config/alpha/alpha.c: Likewise.
15900 * config/arc/arc.c: Likewise.
15901 * config/arm/aarch-common.c: Likewise.
15902 * config/arm/arm-builtins.c: Likewise.
15903 * config/arm/arm-c.c: Likewise.
15904 * config/arm/arm.c: Likewise.
15905 * config/avr/avr-c.c: Likewise.
15906 * config/avr/avr-log.c: Likewise.
15907 * config/avr/avr.c: Likewise.
15908 * config/bfin/bfin.c: Likewise.
15909 * config/c6x/c6x.c: Likewise.
15910 * config/cr16/cr16.c: Likewise.
15911 * config/cris/cris.c: Likewise.
15912 * config/darwin-c.c: Likewise.
15913 * config/darwin.c: Likewise.
15914 * config/default-c.c: Likewise.
15915 * config/epiphany/epiphany.c: Likewise.
15916 * config/epiphany/mode-switch-use.c: Likewise.
15917 * config/epiphany/resolve-sw-modes.c: Likewise.
15918 * config/fr30/fr30.c: Likewise.
15919 * config/frv/frv.c: Likewise.
15920 * config/ft32/ft32.c: Likewise.
15921 * config/glibc-c.c: Likewise.
15922 * config/h8300/h8300.c: Likewise.
15923 * config/i386/i386-c.c: Likewise.
15924 * config/i386/i386.c: Likewise.
15925 * config/i386/msformat-c.c: Likewise.
15926 * config/i386/winnt-cxx.c: Likewise.
15927 * config/i386/winnt-stubs.c: Likewise.
15928 * config/i386/winnt.c: Likewise.
15929 * config/ia64/ia64-c.c: Likewise.
15930 * config/ia64/ia64.c: Likewise.
15931 * config/iq2000/iq2000.c: Likewise.
15932 * config/lm32/lm32.c: Likewise.
15933 * config/m32c/m32c-pragma.c: Likewise.
15934 * config/m32c/m32c.c: Likewise.
15935 * config/m32r/m32r.c: Likewise.
15936 * config/m68k/m68k.c: Likewise.
15937 * config/mcore/mcore.c: Likewise.
15938 * config/mep/mep-pragma.c: Likewise.
15939 * config/mep/mep.c: Likewise.
15940 * config/microblaze/microblaze-c.c: Likewise.
15941 * config/microblaze/microblaze.c: Likewise.
15942 * config/mips/mips.c: Likewise.
15943 * config/mmix/mmix.c: Likewise.
15944 * config/mn10300/mn10300.c: Likewise.
15945 * config/moxie/moxie.c: Likewise.
15946 * config/msp430/msp430-c.c: Likewise.
15947 * config/msp430/msp430.c: Likewise.
15948 * config/nds32/nds32-cost.c: Likewise.
15949 * config/nds32/nds32-fp-as-gp.c: Likewise.
15950 * config/nds32/nds32-intrinsic.c: Likewise.
15951 * config/nds32/nds32-isr.c: Likewise.
15952 * config/nds32/nds32-md-auxiliary.c: Likewise.
15953 * config/nds32/nds32-memory-manipulation.c: Likewise.
15954 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15955 * config/nds32/nds32-predicates.c: Likewise.
15956 * config/nds32/nds32.c: Likewise.
15957 * config/nios2/nios2.c: Likewise.
15958 * config/nvptx/nvptx.c: Likewise.
15959 * config/pa/pa.c: Likewise.
15960 * config/pdp11/pdp11.c: Likewise.
15961 * config/rl78/rl78-c.c: Likewise.
15962 * config/rl78/rl78.c: Likewise.
15963 * config/rs6000/rs6000-c.c: Likewise.
15964 * config/rs6000/rs6000.c: Likewise.
15965 * config/rx/rx.c: Likewise.
15966 * config/s390/s390-c.c: Likewise.
15967 * config/s390/s390.c: Likewise.
15968 * config/sh/sh-c.c: Likewise.
15969 * config/sh/sh-mem.cc: Likewise.
15970 * config/sh/sh.c: Likewise.
15971 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15972 * config/sh/sh_treg_combine.cc: Likewise.
15973 * config/sol2-c.c: Likewise.
15974 * config/sol2-cxx.c: Likewise.
15975 * config/sol2-stubs.c: Likewise.
15976 * config/sol2.c: Likewise.
15977 * config/sparc/sparc-c.c: Likewise.
15978 * config/sparc/sparc.c: Likewise.
15979 * config/spu/spu-c.c: Likewise.
15980 * config/spu/spu.c: Likewise.
15981 * config/stormy16/stormy16.c: Likewise.
15982 * config/tilegx/mul-tables.c: Likewise.
15983 * config/tilegx/tilegx-c.c: Likewise.
15984 * config/tilegx/tilegx.c: Likewise.
15985 * config/tilepro/mul-tables.c: Likewise.
15986 * config/tilepro/tilepro-c.c: Likewise.
15987 * config/tilepro/tilepro.c: Likewise.
15988 * config/v850/v850-c.c: Likewise.
15989 * config/v850/v850.c: Likewise.
15990 * config/vax/vax.c: Likewise.
15991 * config/visium/visium.c: Likewise.
15992 * config/vms/vms-c.c: Likewise.
15993 * config/vms/vms.c: Likewise.
15994 * config/vxworks.c: Likewise.
15995 * config/winnt-c.c: Likewise.
15996 * config/xtensa/xtensa.c: Likewise.
15998 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
16000 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16002 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16004 2015-06-17 Richard Biener <rguenther@suse.de>
16006 PR tree-optimization/66251
16007 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16008 stmts for SLP strided stores.
16011 2015-05-22 Richard Biener <rguenther@suse.de>
16013 PR tree-optimization/66251
16014 * tree-vect-stmts.c (vectorizable_conversion): Properly
16015 set STMT_VINFO_VEC_STMT even for the SLP case.
16017 2015-05-26 Michael Matz <matz@suse.de>
16019 PR middle-end/66251
16020 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16021 STMT_VINFO_VEC_STMT, also with SLP.
16023 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
16026 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16027 (*avx_addsubv4df3_1s): Ditto.
16028 (*sse3_addsubv2df3_1): Ditto.
16029 (*sse3_addsubv2df3_1s): Ditto.
16030 (*avx_addsubv8sf3_1): Ditto.
16031 (*avx_addsubv8sf3_1s): Ditto.
16032 (*sse3_addsubv4sf3_1): Ditto.
16033 (*sse3_addsubv4sf3_1s): Ditto.
16035 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
16037 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16038 (SYSROOT_SUFFIX_SPEC): Update.
16039 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16040 (STARTFILE_PREFIX_SPEC): Update.
16041 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16042 (MULTILIB_REQUIRED): New.
16043 (MULTILIB_OSDIRNAMES): New.
16044 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16045 (MULTILIB_REQUIRED): New.
16046 (MULTILIB_OSDIRNAMES): New.
16048 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
16050 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16051 * config/aarch64/aarch64-options-extensions.def: Update "fP",
16052 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
16053 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16054 (AARCH64_FL_PAN): New.
16055 (AARCH64_FL_LOR): New.
16056 (AARCH64_FL_RDMA): New.
16057 (AARCH64_FL_FOR_ARCH8_1): New.
16058 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16059 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16061 2015-06-16 Martin Liska <mliska@suse.cz>
16063 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16064 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16067 2015-06-16 Richard Biener <rguenther@suse.de>
16069 * tree-vect-stmts.c (vectorizable_store): Adjust.
16070 (vectorizable_load): Likewise.
16071 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16073 (vect_create_data_ref_ptr): Likewise.
16074 (bump_vector_ptr): Adjust.
16076 2015-06-16 Richard Biener <rguenther@suse.de>
16078 * tree-vect-stmts.c (vectorizable_load): Properly start loads
16079 with the first element if this is grouped loads.
16081 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
16083 * config/arm/arm-protos.h (struct tune_params): Rename
16084 log_op_non_sc to log_op_non_short_circuit, and rename enum
16085 values to expand SC to SHORT_CIRCUIT.
16086 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16087 to LOG_OP_NON_SHORT_CIRCUIT.
16088 (arm_fastmul_tune):Likewise
16089 (arm_strongarm_tune): Likewise.
16090 (arm_xscale_tune): Likewise.
16091 (arm_9e_tune): Likewise.
16092 (arm_marvell_pj4_tune): Likewise.
16093 (arm_v6t2_tune): Likewise.
16094 (arm_cortex_tune): Likewise.
16095 (arm_cortex_a8_tune): Likewise.
16096 (arm_cortex_a7_tune): Likewise.
16097 (arm_cortex_a15_tune): Likewise.
16098 (arm_cortex_a53_tune): Likewise.
16099 (arm_cortex_a57_tune): Likewise.
16100 (arm_xgene1_tune): Likewise.
16101 (arm_cortex_a5_tune): Likewise.
16102 (arm_cortex_a9_tune): Likewise.
16103 (arm_cortex_a12_tune): Likewise.
16104 (arm_v7m_tune): Likewise.
16105 (arm_cortex_m7_tune): Likewise.
16106 (arm_v6m_tune): Likewise.
16107 (arm_fa726te_tune): Likewise.
16109 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
16111 * altivec.md: Delete UNSPEC_VMLADDUHM.
16112 (mulv4si3_p8): New pattern.
16113 (mulv4si3): Use it for POWER8.
16114 (mulv8hi3): Use vmladduhm with zero addend.
16115 (altivec_vmladduhm): Descriptive RTL.
16117 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
16119 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16120 to use neon_move instead of mov_imm.
16121 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16122 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16124 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16125 aarch64_float_const_zero_rtx_p check before TFmode check.
16126 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16128 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
16129 code and attributes to match. Change condition from register_operand
16130 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
16131 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
16134 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
16137 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16138 there is no parent.
16140 2015-06-14 Shiva Chen <shiva0217@gmail.com>
16142 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16143 HOST_WIDE_INT parameter.
16145 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
16148 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16149 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16151 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16153 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
16155 * rtl.h (classify_insn): Declare.
16156 * emit-rtl.c (classify_insn): Move to...
16157 * rtl.c: ...here and add generator support.
16158 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16159 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16160 * genemit.c (gen_emit_seq): New function.
16161 (gen_expand, gen_split): Use it.
16163 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
16165 * tree.c (make_vector_stat): Fix comment to state that the
16166 function returns a VECTOR_CST.
16168 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
16170 * gensupport.h (add_implicit_parallel): Declare.
16171 * genrecog.c (add_implicit_parallel): Move to...
16172 * gensupport.c (add_implicit_parallel): ...here.
16173 (process_one_cond_exec): Use it.
16174 * genemit.c (gen_insn): Likewise.
16176 2015-06-13 Iain Sandoe <iain@codesourcery.com>
16179 * passes.c (rest_of_decl_compilation): Do not register globals for
16180 early debug if they are declared in built-ins.
16182 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
16184 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16186 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16188 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16190 (noce_try_cmove_arith): Likewise.
16191 (noce_get_alt_condition): Likewise.
16193 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
16195 * common/config/i386/i386-common.c
16196 (OPTION_MASK_ISA_MWAITX_SET): New.
16197 (ix86_handle_option): Handle mwaitx.
16198 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16199 (x86_64-*-*): Likewise.
16200 * config/i386/mwaitxintrin.h: New header.
16201 * config/i386/cpuid.h (bit_MWAITX): Define.
16202 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16204 * config/i386/i386.opt (mwaitx): New.
16205 * config/i386/i386-builtin-types.def
16206 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16207 * config/i386/i386-c.c: Define __MWAITX__ if needed.
16208 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16210 (ix86_option_override_internal): Handle new option.
16211 (processor_alias_table): Added PTA_MWAITX.
16212 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16213 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16214 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16215 IX86_BUILTIN_MONITORX built-ins.
16216 * config/i386/i386.h (TARGET_MWAITX): New.
16217 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16219 (mwaitx): New pattern.
16220 (monitorx_<mode>): New pattern.
16221 * config/i386/x86intrin.h: Include mwaitxintrin.h.
16222 * doc/extend.texi: Document monitorx and mwaitx builtins.
16223 * doc/invoke.texi: Document -mmwaitx option.
16225 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
16227 * emit-rtl.c (need_atomic_barrier_p): Mask model with
16228 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
16230 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16232 * dbxout.c (xcoff_debug_hooks): Provide a function for
16233 register_main_translation_unit hook.
16235 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16237 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16238 variants cases from switch.
16239 (rs6000_post_atomic_barrier): Same.
16240 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16241 (rs6000_expand_atomic_exchange): Same.
16242 (rs6000_expand_atomic_op): Same.
16243 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16244 SYNC variants cases from switch.
16245 (atomic_load): Same.
16246 (atomic_store): Same.
16248 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
16250 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16251 CONST_INT for goto.
16253 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
16256 * dwarf2out.c (check_die): Check for common duplicate attributes.
16257 (add_location_or_const_value_attribute): Do not add duplicate
16259 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16261 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16262 (gen_type_die_with_usage): Call check_die.
16263 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16265 2015-06-11 Jason Merrill <jason@redhat.com>
16267 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16270 2015-06-11 Marek Polacek <polacek@redhat.com>
16272 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16274 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
16277 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16278 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16279 (*addx_extend_sp32): Fix pasto.
16280 (*subx_extend): Rename into...
16281 (*subx_extend_sp32): ...this.
16282 (*adddi3_extend_sp32): Add earlyclobber.
16283 (*subdi3_insn_sp32): Likewise.
16284 (*subdi3_extend_sp32): Likewise.
16285 (*and_not_di_sp32): Likewise.
16286 (*or_not_di_sp32): Likewise.
16287 (*xor_not_di_sp32): Likewise.
16288 (*negdi2_sp32): Likewise.
16289 (*one_cmpldi2_sp32): Likewise.
16291 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
16293 * debug.h (struct gcc_debug_hooks): Add a
16294 register_main_translation_unit hook.
16295 * debug.c (do_nothing_debug_hooks): Provide a function for this
16297 * dbxout.c (dbx_debug_hooks): Likewise.
16298 * sdbout.c (sdb_debug_hooks): Likewise.
16299 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16300 * dwarf2out.c (main_translation_unit): New global variable.
16301 (dwarf2out_register_main_translation_unit): New function
16302 implementing the new hook.
16303 (dwarf2_debug_hooks): Assign
16304 dwarf2out_register_main_translation_unit to this new hook.
16305 (dwarf2out_init): Associate any main translation unit to
16308 2015-06-11 Marek Polacek <polacek@redhat.com>
16310 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16312 2015-06-11 Marek Polacek <polacek@redhat.com>
16314 * match.pd: Use single_use throughout.
16316 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16318 * config/arm/arm.c (arm_option_params_internal): When optimising
16319 for speed set max_insns_skipped when arm_restrict_it.
16321 2015-06-11 Christian Bruel <christian.bruel@st.com>
16324 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16326 (arm_cpu_builtins): New function.
16327 (arm_pragma_target_parse): Call arm_cpu_builtins.
16328 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16329 (arm_register_target_pragmas): Likewise.
16330 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16331 Call arm_register_target_pragmas.
16332 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16333 (arm_pragma_target_parse): Likewise.
16335 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
16337 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16338 of the second operand.
16340 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
16343 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16344 to prepare mask operand for AVX512 modes.
16346 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16349 * doc/md.texi (Machine Constraints): Document that on the PowerPC
16350 if you use a constraint that targets a VSX register, you must use
16351 %x<n> in the template.
16353 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
16355 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16356 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16357 (define_insn "trap"): New definition.
16359 2015-06-10 Richard Biener <rguenther@suse.de>
16361 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16363 (vect_supported_load_permutation_p): ... here. Handle
16364 supportable permutations in reductions.
16365 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16366 for vectorizing strided group loads.
16368 2015-06-10 Jakub Jelinek <jakub@redhat.com>
16371 * config/i386/i386.c (ix86_split_long_move): For collisions
16372 involving direct tls segment refs, move the UNSPEC_TP possibly
16373 wrapped in ZERO_EXTEND out of the address for lea, to each of
16376 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16378 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16379 dmb sy. Adjust tabs.
16381 2015-06-10 Tom de Vries <tom@codesourcery.com>
16383 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16385 2015-06-10 Martin Liska <mliska@suse.cz>
16388 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16389 all enum values in mem_alloc_origin.
16390 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16392 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16393 * bitmap.c (bitmap_register): Likewise.
16394 (dump_bitmap_statistics): Likewise.
16395 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16396 (ggc_record_overhead): Likewise.
16397 * hash-map.h: Likewise.
16398 * hash-set.h: Likewise.
16399 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16400 * hash-table.h: Likewise.
16401 * vec.c (vec_prefix::register_overhead): Likewise.
16402 (vec_prefix::release_overhead): Likewise.
16403 (dump_vec_loc_statistics): Likewise.
16405 2015-06-09 Christian Bruel <christian.bruel@st.com>
16408 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16409 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16410 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16411 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16412 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16413 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16414 (arm_valid_target_attribute_p): Likewise.
16415 (arm_set_current_function, arm_can_inline_p): Likewise.
16416 (arm_valid_target_attribute_rec): Likewise.
16417 (arm_previous_fndecl): New variable.
16418 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16419 (TARGET_CAN_INLINE_P): Define.
16420 (arm_asm_trampoline_template): Emit mode.
16421 (arm_file_start): Don't set unified syntax.
16422 (arm_declare_function_name): Set unified syntax and mode.
16423 (arm_option_override): Init target_option_default_node.
16424 and target_option_current_node.
16425 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16426 (*call_symbol): Likewise.
16427 * doc/extend.texi: Document ARM/Thumb target attribute.
16428 * doc/invoke.texi: Likewise.
16430 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16433 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16434 PR rtl-optimization/64164
16435 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16436 * tree-ssa-copyrename.c: Removed.
16437 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16438 -ftree-coalesce-vars.
16439 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16440 * common.opt (ftree-copyrename): Ignore.
16441 (ftree-coalesce-inlined-vars): Likewise.
16442 * doc/invoke.texi: Remove the ignored options above.
16443 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16444 * tree-ssa-coalesce.h: ... here.
16445 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16446 headers required by it.
16447 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16448 across variables when flag_tree_coalesce_vars. Check register
16449 use and promoted modes to allow coalescing. Moved to
16450 tree-ssa-coalesce.c.
16451 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16452 with its member functions to tree-ssa-coalesce.c.
16453 (var_map_base_init): Likewise. Renamed to
16454 compute_samebase_partition_bases.
16455 (partition_view_normal): Drop want_bases parameter.
16456 (partition_view_bitmap): Likewise.
16457 * tree-ssa-live.h: Adjust declarations.
16458 * tree-ssa-coalesce.c: Include explow.h.
16459 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16460 default defs at the entry point.
16461 (dump_part_var_map): New.
16462 (compute_optimized_partition_bases): New, called by...
16463 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16464 of compute_samebase_partition_bases. Adjust.
16465 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16466 * cfgexpand.c (leader_merge): New.
16467 (get_rtl_for_parm_ssa_default_def): New.
16468 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16469 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16470 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16471 redundant MEM attr setting.
16472 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16474 (expand_one_stack_var): ... this. New wrapper to check and
16475 skip already expanded SSA partitions.
16476 (record_alignment_for_reg_var): New, factored out of...
16477 (expand_one_var): ... this.
16478 (expand_one_ssa_partition): New.
16479 (adjust_one_expanded_partition_var): New.
16480 (expand_one_register_var): Check and skip already expanded SSA
16482 (expand_used_vars): Don't create DECLs for anonymous SSA
16483 names. Expand all SSA partitions, then adjust all SSA names.
16484 (pass::execute): Replace the loops that set
16485 SA.partition_to_pseudo from partition leaders and cleared
16486 DECL_RTL for multi-location variables, and that which used to
16487 rename vars and set attrs, with one that clears DECL_RTL and
16488 checks that PARMs and RESULTs default_defs match DECL_RTL.
16489 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16490 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16491 * explow.c (promote_ssa_mode): New.
16492 * explow.h (promote_ssa_mode): Declare.
16493 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16494 * function.c: Include cfgexpand.h.
16495 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16496 (use_register_for_parm_decl): Wrapper for the above to
16497 special-case the result_ptr.
16498 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16499 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16500 multiple locations.
16501 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16502 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16503 (assign_parm_setup_block): Prefer SSA-assigned location.
16504 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16505 if stack_parm is NULL.
16506 (assign_parm_setup_stack): Prefer SSA-assigned location.
16507 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16508 rtl before testing for pointer bounds. Special-case result_ptr.
16509 (expand_function_start): Maybe reset DECL_RTL of result.
16510 Prefer SSA-assigned location for result and static chain.
16511 Factor out DECL_RESULT and SET_DECL_RTL.
16512 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16513 anonymous SSA names. Use promote_ssa_mode.
16514 (get_temp_reg): Likewise.
16515 (remove_ssa_form): Adjust.
16516 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16517 and get its reg_usage for reg invalidation.
16518 (compute_bb_dataflow): Pass it insn.
16519 (emit_notes_in_bb): Likewise.
16520 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16521 fail assert on conversion between unsigned types.
16523 2015-06-09 Tom de Vries <tom@codesourcery.com>
16525 PR tree-optimization/65460
16526 * omp-low.c (expand_omp_target): Set parallelized_function on
16527 cgraph_node for child_fn.
16529 2015-06-09 Tom de Vries <tom@codesourcery.com>
16531 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
16532 parallelized_function before add_new_function.
16534 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
16536 * gcc-plugin.h: Move decls to plugin.h and include it.
16537 * plugin.h: Relocate decls from gcc-plugin.h
16538 * ggc-page.c: Include required header files.
16539 * passes.c: Likewise.
16540 * cgraphunit.c: Likewise.
16542 2015-06-09 Tom de Vries <tom@codesourcery.com>
16544 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
16546 2015-06-09 Jason Merrill <jason@redhat.com>
16549 * toplev.c (check_global_declaration): Don't warn about a clone.
16551 2015-06-09 Marek Polacek <polacek@redhat.com>
16553 PR tree-optimization/66299
16554 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
16555 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
16558 2015-06-09 Richard Biener <rguenther@suse.de>
16560 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
16561 (vect_analyze_slp_instance): Instead do not falsely drop
16564 2015-06-09 Richard Biener <rguenther@suse.de>
16566 PR middle-end/66423
16567 * match.pd: Handle A % (unsigned)(1 << B).
16569 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
16571 * varasm.c (output_object_block_htab): Remove.
16572 (output_object_block_compare): New.
16573 (output_object_blocks): Sort named object_blocks before outputting
16576 2015-06-09 Richard Biener <rguenther@suse.de>
16578 PR tree-optimization/66419
16579 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
16580 consider GROUP_GAP when detecting a perfect subchain.
16582 2015-06-09 Nick Clifton <nickc@redhat.com>
16584 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
16585 place read only data in the .frodata section.
16587 2015-06-09 Shiva Chen <shiva0217@gmail.com>
16589 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
16590 (atomic_store<mode>): Likewise.
16592 2015-06-09 Richard Biener <rguenther@suse.de>
16594 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
16596 2015-06-09 Richard Biener <rguenther@suse.de>
16598 PR middle-end/66413
16599 * tree-inline.c (insert_init_debug_bind): Unshare value.
16601 2015-06-09 Richard Biener <rguenther@suse.de>
16603 PR tree-optimization/66396
16604 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
16605 Rename virtual operands.
16607 2015-06-09 Tom de Vries <tom@codesourcery.com>
16609 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
16610 always return false.
16612 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16614 PR rtl-optimization/64164
16615 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16616 * tree-ssa-copyrename.c: Removed.
16617 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16618 -ftree-coalesce-vars.
16619 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16620 * common.opt (ftree-copyrename): Ignore.
16621 (ftree-coalesce-inlined-vars): Likewise.
16622 * doc/invoke.texi: Remove the ignored options above.
16623 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16624 * tree-ssa-coalesce.h: ... here.
16625 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16626 headers required by it.
16627 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16628 across variables when flag_tree_coalesce_vars. Check register
16629 use and promoted modes to allow coalescing. Moved to
16630 tree-ssa-coalesce.c.
16631 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16632 with its member functions to tree-ssa-coalesce.c.
16633 (var_map_base_init): Likewise. Renamed to
16634 compute_samebase_partition_bases.
16635 (partition_view_normal): Drop want_bases parameter.
16636 (partition_view_bitmap): Likewise.
16637 * tree-ssa-live.h: Adjust declarations.
16638 * tree-ssa-coalesce.c: Include explow.h.
16639 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16640 default defs at the entry point.
16641 (dump_part_var_map): New.
16642 (compute_optimized_partition_bases): New, called by...
16643 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16644 of compute_samebase_partition_bases. Adjust.
16645 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16646 * cfgexpand.c (leader_merge): New.
16647 (get_rtl_for_parm_ssa_default_def): New.
16648 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16649 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16650 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16651 redundant MEM attr setting.
16652 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16654 (expand_one_stack_var): ... this. New wrapper to check and
16655 skip already expanded SSA partitions.
16656 (record_alignment_for_reg_var): New, factored out of...
16657 (expand_one_var): ... this.
16658 (expand_one_ssa_partition): New.
16659 (adjust_one_expanded_partition_var): New.
16660 (expand_one_register_var): Check and skip already expanded SSA
16662 (expand_used_vars): Don't create DECLs for anonymous SSA
16663 names. Expand all SSA partitions, then adjust all SSA names.
16664 (pass::execute): Replace the loops that set
16665 SA.partition_to_pseudo from partition leaders and cleared
16666 DECL_RTL for multi-location variables, and that which used to
16667 rename vars and set attrs, with one that clears DECL_RTL and
16668 checks that PARMs and RESULTs default_defs match DECL_RTL.
16669 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16670 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16671 * explow.c (promote_ssa_mode): New.
16672 * explow.h (promote_ssa_mode): Declare.
16673 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16674 * function.c: Include cfgexpand.h.
16675 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16676 (use_register_for_parm_decl): Wrapper for the above to
16677 special-case the result_ptr.
16678 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16679 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16680 multiple locations.
16681 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16682 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16683 (assign_parm_setup_block): Prefer SSA-assigned location.
16684 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16685 if stack_parm is NULL.
16686 (assign_parm_setup_stack): Prefer SSA-assigned location.
16687 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16688 rtl before testing for pointer bounds. Special-case result_ptr.
16689 (expand_function_start): Maybe reset DECL_RTL of result.
16690 Prefer SSA-assigned location for result and static chain.
16691 Factor out DECL_RESULT and SET_DECL_RTL.
16692 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16693 anonymous SSA names. Use promote_ssa_mode.
16694 (get_temp_reg): Likewise.
16695 (remove_ssa_form): Adjust.
16696 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16697 and get its reg_usage for reg invalidation.
16698 (compute_bb_dataflow): Pass it insn.
16699 (emit_notes_in_bb): Likewise.
16700 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16701 fail assert on conversion between unsigned types.
16703 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16706 * tree-inline.c (reset_debug_binding): New.
16707 (reset_debug_bindings): Likewise.
16708 (expand_call_inline): Call it.
16710 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16712 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
16715 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16717 * lto-streamer-out.c (lto_output_location): Stream
16718 reserved locations correctly.
16719 * lto-streamer-in.c (lto_output_location): Likewise.
16721 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
16723 * coretypes.h: Include hash-table.h and hash-set.h for host files.
16724 * ggc.h: Don't include statistics.h>
16725 * hash-map.h: Remove all includes.
16726 * hash-set.h: Likewise.
16727 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
16728 the include list. Remove <new>.
16729 * inchash.h: Remove all includes.
16730 * mem-stats.h: Likewise.
16731 * vec.h: No special processing for generators or ggc.
16732 * alias.c : Adjust include files.
16733 * alloc-pool.c : Likewise.
16734 * alloc-pool.h : Likewise.
16735 * asan.c : Likewise.
16736 * attribs.c : Likewise.
16737 * auto-inc-dec.c : Likewise.
16738 * auto-profile.c : Likewise.
16739 * bb-reorder.c : Likewise.
16740 * bitmap.c : Likewise.
16741 * bitmap.h : Likewise.
16742 * bt-load.c : Likewise.
16743 * builtins.c : Likewise.
16744 * caller-save.c : Likewise.
16745 * calls.c : Likewise.
16746 * ccmp.c : Likewise.
16747 * cfg.c : Likewise.
16748 * cfganal.c : Likewise.
16749 * cfgbuild.c : Likewise.
16750 * cfgcleanup.c : Likewise.
16751 * cfgexpand.c : Likewise.
16752 * cfghooks.c : Likewise.
16753 * cfgloop.c : Likewise.
16754 * cfgloop.h : Likewise.
16755 * cfgloopanal.c : Likewise.
16756 * cfgloopmanip.c : Likewise.
16757 * cfgrtl.c : Likewise.
16758 * cgraph.c : Likewise.
16759 * cgraphbuild.c : Likewise.
16760 * cgraphclones.c : Likewise.
16761 * cgraphunit.c : Likewise.
16762 * cilk-common.c : Likewise.
16763 * combine-stack-adj.c : Likewise.
16764 * combine.c : Likewise.
16765 * compare-elim.c : Likewise.
16766 * context.c : Likewise.
16767 * convert.c : Likewise.
16768 * coverage.c : Likewise.
16769 * cppbuiltin.c : Likewise.
16770 * cprop.c : Likewise.
16771 * cse.c : Likewise.
16772 * cselib.c : Likewise.
16773 * data-streamer-in.c : Likewise.
16774 * data-streamer-out.c : Likewise.
16775 * data-streamer.c : Likewise.
16776 * data-streamer.h : Likewise.
16777 * dbxout.c : Likewise.
16778 * dce.c : Likewise.
16779 * ddg.c : Likewise.
16780 * debug.c : Likewise.
16781 * df-core.c : Likewise.
16782 * df-problems.c : Likewise.
16783 * df-scan.c : Likewise.
16785 * dfp.c : Likewise.
16786 * dojump.c : Likewise.
16787 * dominance.c : Likewise.
16788 * domwalk.c : Likewise.
16789 * double-int.c : Likewise.
16790 * dse.c : Likewise.
16791 * dumpfile.c : Likewise.
16792 * dwarf2asm.c : Likewise.
16793 * dwarf2cfi.c : Likewise.
16794 * dwarf2out.c : Likewise.
16795 * emit-rtl.c : Likewise.
16796 * et-forest.c : Likewise.
16797 * except.c : Likewise.
16798 * except.h : Likewise.
16799 * explow.c : Likewise.
16800 * expmed.c : Likewise.
16801 * expr.c : Likewise.
16802 * final.c : Likewise.
16803 * fixed-value.c : Likewise.
16804 * fold-const.c : Likewise.
16805 * function.c : Likewise.
16806 * fwprop.c : Likewise.
16807 * gcc-plugin.h : Likewise.
16808 * gcc.c : Likewise.
16809 * gcse-common.c : Likewise.
16810 * gcse.c : Likewise.
16811 * genattrtab.c : Likewise.
16812 * genautomata.c : Likewise.
16813 * genconditions.c : Likewise.
16814 * genemit.c : Likewise.
16815 * generic-match-head.c : Likewise.
16816 * genextract.c : Likewise.
16817 * gengtype-state.c : Likewise.
16818 * gengtype.c : Likewise.
16819 * genhooks.c : Likewise.
16820 * genmatch.c : Likewise.
16821 * genmodes.c : Likewise.
16822 * genrecog.c : Likewise.
16823 * gensupport.c : Likewise.
16824 * ggc-common.c : Likewise.
16825 * ggc-internal.h : Likewise.
16826 * ggc-none.c : Likewise.
16827 * ggc-page.c : Likewise.
16828 * gimple-builder.c : Likewise.
16829 * gimple-expr.c : Likewise.
16830 * gimple-fold.c : Likewise.
16831 * gimple-iterator.c : Likewise.
16832 * gimple-low.c : Likewise.
16833 * gimple-match-head.c : Likewise.
16834 * gimple-pretty-print.c : Likewise.
16835 * gimple-ssa-isolate-paths.c : Likewise.
16836 * gimple-ssa-strength-reduction.c : Likewise.
16837 * gimple-ssa.h : Likewise.
16838 * gimple-streamer-in.c : Likewise.
16839 * gimple-streamer-out.c : Likewise.
16840 * gimple-streamer.h : Likewise.
16841 * gimple-walk.c : Likewise.
16842 * gimple.c : Likewise.
16843 * gimplify-me.c : Likewise.
16844 * gimplify.c : Likewise.
16845 * godump.c : Likewise.
16846 * graph.c : Likewise.
16847 * graphds.c : Likewise.
16848 * graphite-blocking.c : Likewise.
16849 * graphite-dependences.c : Likewise.
16850 * graphite-interchange.c : Likewise.
16851 * graphite-isl-ast-to-gimple.c : Likewise.
16852 * graphite-optimize-isl.c : Likewise.
16853 * graphite-poly.c : Likewise.
16854 * graphite-scop-detection.c : Likewise.
16855 * graphite-sese-to-poly.c : Likewise.
16856 * graphite.c : Likewise.
16857 * haifa-sched.c : Likewise.
16858 * hard-reg-set.h : Likewise.
16859 * hw-doloop.c : Likewise.
16860 * ifcvt.c : Likewise.
16861 * inchash.c : Likewise.
16862 * incpath.c : Likewise.
16863 * init-regs.c : Likewise.
16864 * input.c : Likewise.
16865 * internal-fn.c : Likewise.
16866 * ipa-chkp.c : Likewise.
16867 * ipa-comdats.c : Likewise.
16868 * ipa-cp.c : Likewise.
16869 * ipa-devirt.c : Likewise.
16870 * ipa-icf-gimple.c : Likewise.
16871 * ipa-icf.c : Likewise.
16872 * ipa-inline-analysis.c : Likewise.
16873 * ipa-inline-transform.c : Likewise.
16874 * ipa-inline.c : Likewise.
16875 * ipa-polymorphic-call.c : Likewise.
16876 * ipa-profile.c : Likewise.
16877 * ipa-prop.c : Likewise.
16878 * ipa-pure-const.c : Likewise.
16879 * ipa-ref.c : Likewise.
16880 * ipa-reference.c : Likewise.
16881 * ipa-split.c : Likewise.
16882 * ipa-utils.c : Likewise.
16883 * ipa-visibility.c : Likewise.
16884 * ipa.c : Likewise.
16885 * ira-build.c : Likewise.
16886 * ira-color.c : Likewise.
16887 * ira-conflicts.c : Likewise.
16888 * ira-costs.c : Likewise.
16889 * ira-emit.c : Likewise.
16890 * ira-lives.c : Likewise.
16891 * ira.c : Likewise.
16892 * jump.c : Likewise.
16893 * langhooks.c : Likewise.
16894 * lcm.c : Likewise.
16895 * libfuncs.h : Likewise.
16896 * lists.c : Likewise.
16897 * loop-doloop.c : Likewise.
16898 * loop-init.c : Likewise.
16899 * loop-invariant.c : Likewise.
16900 * loop-iv.c : Likewise.
16901 * loop-unroll.c : Likewise.
16902 * lower-subreg.c : Likewise.
16903 * lra-assigns.c : Likewise.
16904 * lra-coalesce.c : Likewise.
16905 * lra-constraints.c : Likewise.
16906 * lra-eliminations.c : Likewise.
16907 * lra-lives.c : Likewise.
16908 * lra-remat.c : Likewise.
16909 * lra-spills.c : Likewise.
16910 * lra.c : Likewise.
16911 * lto-cgraph.c : Likewise.
16912 * lto-compress.c : Likewise.
16913 * lto-opts.c : Likewise.
16914 * lto-section-in.c : Likewise.
16915 * lto-section-out.c : Likewise.
16916 * lto-streamer-in.c : Likewise.
16917 * lto-streamer-out.c : Likewise.
16918 * lto-streamer.c : Likewise.
16919 * lto-streamer.h : Likewise.
16920 * mcf.c : Likewise.
16921 * mode-switching.c : Likewise.
16922 * modulo-sched.c : Likewise.
16923 * omega.c : Likewise.
16924 * omp-low.c : Likewise.
16925 * optabs.c : Likewise.
16926 * opts-global.c : Likewise.
16927 * opts.h : Likewise.
16928 * passes.c : Likewise.
16929 * plugin.c : Likewise.
16930 * postreload-gcse.c : Likewise.
16931 * postreload.c : Likewise.
16932 * predict.c : Likewise.
16933 * print-rtl.c : Likewise.
16934 * print-tree.c : Likewise.
16935 * profile.c : Likewise.
16936 * read-md.c : Likewise.
16937 * read-md.h : Likewise.
16938 * read-rtl.c : Likewise.
16939 * real.c : Likewise.
16940 * realmpfr.c : Likewise.
16941 * recog.c : Likewise.
16942 * ree.c : Likewise.
16943 * reg-stack.c : Likewise.
16944 * regcprop.c : Likewise.
16945 * reginfo.c : Likewise.
16946 * regrename.c : Likewise.
16947 * regstat.c : Likewise.
16948 * reload.c : Likewise.
16949 * reload1.c : Likewise.
16950 * reorg.c : Likewise.
16951 * resource.c : Likewise.
16952 * rtl-chkp.c : Likewise.
16953 * rtl.c : Likewise.
16954 * rtl.h : Likewise.
16955 * rtlanal.c : Likewise.
16956 * rtlhash.c : Likewise.
16957 * rtlhash.h : Likewise.
16958 * rtlhooks.c : Likewise.
16959 * sanopt.c : Likewise.
16960 * sched-deps.c : Likewise.
16961 * sched-ebb.c : Likewise.
16962 * sched-rgn.c : Likewise.
16963 * sched-vis.c : Likewise.
16964 * sdbout.c : Likewise.
16965 * sel-sched-dump.c : Likewise.
16966 * sel-sched-ir.c : Likewise.
16967 * sel-sched-ir.h : Likewise.
16968 * sel-sched.c : Likewise.
16969 * sese.c : Likewise.
16970 * shrink-wrap.c : Likewise.
16971 * shrink-wrap.h : Likewise.
16972 * simplify-rtx.c : Likewise.
16973 * stack-ptr-mod.c : Likewise.
16974 * statistics.c : Likewise.
16975 * stmt.c : Likewise.
16976 * stor-layout.c : Likewise.
16977 * store-motion.c : Likewise.
16978 * stringpool.c : Likewise.
16979 * symtab.c : Likewise.
16980 * target-globals.c : Likewise.
16981 * targhooks.c : Likewise.
16982 * tlink.c : Likewise.
16983 * toplev.c : Likewise.
16984 * tracer.c : Likewise.
16985 * trans-mem.c : Likewise.
16986 * tree-affine.c : Likewise.
16987 * tree-affine.h : Likewise.
16988 * tree-browser.c : Likewise.
16989 * tree-call-cdce.c : Likewise.
16990 * tree-cfg.c : Likewise.
16991 * tree-cfgcleanup.c : Likewise.
16992 * tree-chkp-opt.c : Likewise.
16993 * tree-chkp.c : Likewise.
16994 * tree-chrec.c : Likewise.
16995 * tree-complex.c : Likewise.
16996 * tree-data-ref.c : Likewise.
16997 * tree-dfa.c : Likewise.
16998 * tree-diagnostic.c : Likewise.
16999 * tree-dump.c : Likewise.
17000 * tree-eh.c : Likewise.
17001 * tree-eh.h : Likewise.
17002 * tree-emutls.c : Likewise.
17003 * tree-hasher.h : Likewise.
17004 * tree-if-conv.c : Likewise.
17005 * tree-inline.c : Likewise.
17006 * tree-inline.h : Likewise.
17007 * tree-into-ssa.c : Likewise.
17008 * tree-iterator.c : Likewise.
17009 * tree-loop-distribution.c : Likewise.
17010 * tree-nested.c : Likewise.
17011 * tree-nrv.c : Likewise.
17012 * tree-object-size.c : Likewise.
17013 * tree-outof-ssa.c : Likewise.
17014 * tree-parloops.c : Likewise.
17015 * tree-phinodes.c : Likewise.
17016 * tree-predcom.c : Likewise.
17017 * tree-pretty-print.c : Likewise.
17018 * tree-profile.c : Likewise.
17019 * tree-scalar-evolution.c : Likewise.
17020 * tree-sra.c : Likewise.
17021 * tree-ssa-address.c : Likewise.
17022 * tree-ssa-alias.c : Likewise.
17023 * tree-ssa-ccp.c : Likewise.
17024 * tree-ssa-coalesce.c : Likewise.
17025 * tree-ssa-copy.c : Likewise.
17026 * tree-ssa-copyrename.c : Likewise.
17027 * tree-ssa-dce.c : Likewise.
17028 * tree-ssa-dom.c : Likewise.
17029 * tree-ssa-dse.c : Likewise.
17030 * tree-ssa-forwprop.c : Likewise.
17031 * tree-ssa-ifcombine.c : Likewise.
17032 * tree-ssa-live.c : Likewise.
17033 * tree-ssa-loop-ch.c : Likewise.
17034 * tree-ssa-loop-im.c : Likewise.
17035 * tree-ssa-loop-ivcanon.c : Likewise.
17036 * tree-ssa-loop-ivopts.c : Likewise.
17037 * tree-ssa-loop-manip.c : Likewise.
17038 * tree-ssa-loop-niter.c : Likewise.
17039 * tree-ssa-loop-prefetch.c : Likewise.
17040 * tree-ssa-loop-unswitch.c : Likewise.
17041 * tree-ssa-loop.c : Likewise.
17042 * tree-ssa-math-opts.c : Likewise.
17043 * tree-ssa-operands.c : Likewise.
17044 * tree-ssa-phiopt.c : Likewise.
17045 * tree-ssa-phiprop.c : Likewise.
17046 * tree-ssa-pre.c : Likewise.
17047 * tree-ssa-propagate.c : Likewise.
17048 * tree-ssa-reassoc.c : Likewise.
17049 * tree-ssa-sccvn.c : Likewise.
17050 * tree-ssa-scopedtables.c : Likewise.
17051 * tree-ssa-sink.c : Likewise.
17052 * tree-ssa-strlen.c : Likewise.
17053 * tree-ssa-structalias.c : Likewise.
17054 * tree-ssa-tail-merge.c : Likewise.
17055 * tree-ssa-ter.c : Likewise.
17056 * tree-ssa-threadedge.c : Likewise.
17057 * tree-ssa-threadupdate.c : Likewise.
17058 * tree-ssa-uncprop.c : Likewise.
17059 * tree-ssa-uninit.c : Likewise.
17060 * tree-ssa.c : Likewise.
17061 * tree-ssanames.c : Likewise.
17062 * tree-stdarg.c : Likewise.
17063 * tree-streamer-in.c : Likewise.
17064 * tree-streamer-out.c : Likewise.
17065 * tree-streamer.c : Likewise.
17066 * tree-streamer.h : Likewise.
17067 * tree-switch-conversion.c : Likewise.
17068 * tree-tailcall.c : Likewise.
17069 * tree-vect-data-refs.c : Likewise.
17070 * tree-vect-generic.c : Likewise.
17071 * tree-vect-loop-manip.c : Likewise.
17072 * tree-vect-loop.c : Likewise.
17073 * tree-vect-patterns.c : Likewise.
17074 * tree-vect-slp.c : Likewise.
17075 * tree-vect-stmts.c : Likewise.
17076 * tree-vectorizer.c : Likewise.
17077 * tree-vectorizer.h : Likewise.
17078 * tree-vrp.c : Likewise.
17079 * tree.c : Likewise.
17080 * tsan.c : Likewise.
17081 * ubsan.c : Likewise.
17082 * valtrack.c : Likewise.
17083 * valtrack.h : Likewise.
17084 * value-prof.c : Likewise.
17085 * var-tracking.c : Likewise.
17086 * varasm.c : Likewise.
17087 * varpool.c : Likewise.
17089 * vmsdbgout.c : Likewise.
17090 * vtable-verify.c : Likewise.
17091 * vtable-verify.h : Likewise.
17092 * web.c : Likewise.
17093 * wide-int.cc : Likewise.
17094 * xcoffout.c : Likewise.
17095 * config/aarch64/aarch64-builtins.c : Likewise.
17096 * config/aarch64/aarch64.c : Likewise.
17097 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17098 * config/alpha/alpha.c : Likewise.
17099 * config/arc/arc.c : Likewise.
17100 * config/arm/aarch-common.c : Likewise.
17101 * config/arm/arm-builtins.c : Likewise.
17102 * config/arm/arm-c.c : Likewise.
17103 * config/arm/arm.c : Likewise.
17104 * config/avr/avr-c.c : Likewise.
17105 * config/avr/avr-log.c : Likewise.
17106 * config/avr/avr.c : Likewise.
17107 * config/bfin/bfin.c : Likewise.
17108 * config/c6x/c6x.c : Likewise.
17109 * config/cr16/cr16.c : Likewise.
17110 * config/cris/cris.c : Likewise.
17111 * config/darwin-c.c : Likewise.
17112 * config/darwin.c : Likewise.
17113 * config/default-c.c : Likewise.
17114 * config/epiphany/epiphany.c : Likewise.
17115 * config/epiphany/mode-switch-use.c : Likewise.
17116 * config/epiphany/resolve-sw-modes.c : Likewise.
17117 * config/fr30/fr30.c : Likewise.
17118 * config/frv/frv.c : Likewise.
17119 * config/ft32/ft32.c : Likewise.
17120 * config/glibc-c.c : Likewise.
17121 * config/h8300/h8300.c : Likewise.
17122 * config/i386/i386-c.c : Likewise.
17123 * config/i386/i386.c : Likewise.
17124 * config/i386/msformat-c.c : Likewise.
17125 * config/i386/winnt-cxx.c : Likewise.
17126 * config/i386/winnt-stubs.c : Likewise.
17127 * config/i386/winnt.c : Likewise.
17128 * config/ia64/ia64-c.c : Likewise.
17129 * config/ia64/ia64.c : Likewise.
17130 * config/iq2000/iq2000.c : Likewise.
17131 * config/lm32/lm32.c : Likewise.
17132 * config/m32c/m32c-pragma.c : Likewise.
17133 * config/m32c/m32c.c : Likewise.
17134 * config/m32r/m32r.c : Likewise.
17135 * config/m68k/m68k.c : Likewise.
17136 * config/mcore/mcore.c : Likewise.
17137 * config/mep/mep-pragma.c : Likewise.
17138 * config/mep/mep.c : Likewise.
17139 * config/microblaze/microblaze-c.c : Likewise.
17140 * config/microblaze/microblaze.c : Likewise.
17141 * config/mips/mips.c : Likewise.
17142 * config/mmix/mmix.c : Likewise.
17143 * config/mn10300/mn10300.c : Likewise.
17144 * config/moxie/moxie.c : Likewise.
17145 * config/msp430/msp430-c.c : Likewise.
17146 * config/msp430/msp430.c : Likewise.
17147 * config/nds32/nds32-cost.c : Likewise.
17148 * config/nds32/nds32-fp-as-gp.c : Likewise.
17149 * config/nds32/nds32-intrinsic.c : Likewise.
17150 * config/nds32/nds32-isr.c : Likewise.
17151 * config/nds32/nds32-md-auxiliary.c : Likewise.
17152 * config/nds32/nds32-memory-manipulation.c : Likewise.
17153 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17154 * config/nds32/nds32-predicates.c : Likewise.
17155 * config/nds32/nds32.c : Likewise.
17156 * config/nios2/nios2.c : Likewise.
17157 * config/nvptx/nvptx.c : Likewise.
17158 * config/pa/pa.c : Likewise.
17159 * config/pdp11/pdp11.c : Likewise.
17160 * config/rl78/rl78-c.c : Likewise.
17161 * config/rl78/rl78.c : Likewise.
17162 * config/rs6000/rs6000-c.c : Likewise.
17163 * config/rs6000/rs6000.c : Likewise.
17164 * config/rx/rx.c : Likewise.
17165 * config/s390/s390-c.c : Likewise.
17166 * config/s390/s390.c : Likewise.
17167 * config/sh/sh-c.c : Likewise.
17168 * config/sh/sh-mem.cc : Likewise.
17169 * config/sh/sh.c : Likewise.
17170 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17171 * config/sh/sh_treg_combine.cc : Likewise.
17172 * config/sol2-c.c : Likewise.
17173 * config/sol2-cxx.c : Likewise.
17174 * config/sol2-stubs.c : Likewise.
17175 * config/sol2.c : Likewise.
17176 * config/sparc/sparc-c.c : Likewise.
17177 * config/sparc/sparc.c : Likewise.
17178 * config/spu/spu-c.c : Likewise.
17179 * config/spu/spu.c : Likewise.
17180 * config/stormy16/stormy16.c : Likewise.
17181 * config/tilegx/mul-tables.c : Likewise.
17182 * config/tilegx/tilegx-c.c : Likewise.
17183 * config/tilegx/tilegx.c : Likewise.
17184 * config/tilepro/mul-tables.c : Likewise.
17185 * config/tilepro/tilepro-c.c : Likewise.
17186 * config/tilepro/tilepro.c : Likewise.
17187 * config/v850/v850-c.c : Likewise.
17188 * config/v850/v850.c : Likewise.
17189 * config/vax/vax.c : Likewise.
17190 * config/visium/visium.c : Likewise.
17191 * config/vms/vms-c.c : Likewise.
17192 * config/vms/vms.c : Likewise.
17193 * config/vxworks.c : Likewise.
17194 * config/winnt-c.c : Likewise.
17195 * config/xtensa/xtensa.c : Likewise.
17197 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17200 * ipa-utils.h (warn_types_mismatch): Update prototype.
17201 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17203 (type_mismatch_p): New function.
17204 (warn_types_mismatch): Reorg to work better on non-C++ types.
17205 (odr_types_equivalent_p): Add loc1/loc2 parameters.
17206 (add_type_duplicate): Update.
17208 2015-06-08 Tom de Vries <tom@codesourcery.com>
17210 PR rtl-optimization/66444
17211 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17214 2015-06-08 Richard Biener <rguenther@suse.de>
17216 PR tree-optimization/66422
17217 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17218 block after inserted gcc_unreachable.
17220 2015-06-08 Nick Clifton <nickc@redhat.com>
17222 * config/rx/rx.c (rx_function_value): Do not promote vector types.
17223 (rx_promote_function_mode): Likewise.
17224 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17226 2015-06-08 Jakub Jelinek <jakub@redhat.com>
17228 * genattrtab.c (insn_alternatives): Change type from int *
17230 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17231 (get_attr_value): Change type of num_alt to uint64_t.
17232 (compute_alternative_mask): Change return type from
17233 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17234 (make_alternative_compare, mk_attr_alt): Change argument type
17235 from int to uint64_t.
17236 (simplify_test_exp): Change type of i from int to uint64_t.
17237 Shift ((uint64_t) 1) instead of 1 up.
17238 (main): Adjust oballocvec first argument from int to uint64_t.
17239 Shift ((uint64_t) 1) instead of 1 up.
17241 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
17244 * gdbhooks.py: Import sys.
17245 (intptr): New function. Replace int(...) by intptr(...).
17247 2015-06-08 Richard Biener <rguenther@suse.de>
17249 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17250 adjustment for gaps at the end of a SLP load group properly.
17251 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17252 all permutations we can generate.
17253 (vect_transform_slp_perm_load): Use the correct group-size.
17255 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
17257 * genmatch.c (expr::gen_transform): For conditions, guess the type
17258 from the second operand.
17260 2015-06-08 Tom de Vries <tom@codesourcery.com>
17262 PR tree-optimization/66442
17263 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17264 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17265 if the loop latch is not a singleton. Use
17266 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17268 2015-06-08 Marek Polacek <polacek@redhat.com>
17271 * toplev.c (check_global_declaration): Don't warn about artificial
17274 2015-06-08 Tom de Vries <tom@codesourcery.com>
17276 PR tree-optimization/66436
17277 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17279 * gimplify.c: Add tree-dump.h include.
17280 (gimplify_function_tree): Dump function to gimple dump file.
17281 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17284 2015-06-08 Tom de Vries <tom@codesourcery.com>
17286 PR tree-optimization/66435
17287 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17290 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
17292 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17293 of ptr_type_node to not be ptr_to_node.
17294 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17295 TREE_TYPE of pointers.
17296 * gimple-expr.c (useless_type_conversion): Reorder the check for
17297 function pointers and TYPE_CANONICAL.
17299 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
17302 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17303 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17304 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17306 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17307 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17308 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17309 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17310 and non iso if unix2003.
17312 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
17314 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17316 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
17318 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17319 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17320 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17321 except.c, final.c, function.c, gcse-common.c, genemit.c,
17322 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17323 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17324 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17325 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17328 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
17330 * combine.c (combine_split_insns): Remove cast.
17331 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17332 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17333 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17334 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17335 * genemit.c (gen_split): Change return type of generated functions to
17337 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17338 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17339 gen_peephole2_* functions.
17340 (print_subroutine, main): Likewise.
17341 * recog.c (peephole2_optimize): Remove cast.
17342 (peep2_next_insn): Promote return type to rtx_insn.
17343 * recog.h (peep2_next_insn): Fix prototype.
17344 * rtl.h (try_split, split_insns): Likewise.
17346 2015-06-06 DJ Delorie <dj@redhat.com>
17348 * config/msp430/msp430.c (msp430_asm_integer): Support addition
17349 and subtraction too.
17351 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
17354 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17355 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17356 instead of Snd. Disparage Sid/z alternative with '^'.
17358 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
17360 * dwarf2out.c: Remove deferred_locations*.
17361 (dwarf2_debug_hooks): Add early_finish hook.
17362 Remove global_decl hook.
17363 Add early_global_decl and late_global_decl hook.
17364 New global early_dwarf.
17365 New structure set_early_dwarf.
17366 (output_die): Indicate whether a DIE was generated early
17367 when generating assembly with -dA.
17368 (struct limbo_die_struct): Document created_for field.
17369 Remove file_table_last_lookup.
17370 (remove_AT): Return TRUE if successful.
17371 (remove_child_TAG): Clear die_parent.
17372 (reparent_child): New function abstracted from...
17373 (splice_child_die): ...here.
17374 (new_die): ICE if a DIE ends up in limbo too late.
17376 (defer_location): Remove.
17377 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17378 (fill_variable_array_bounds): New.
17379 (decl_start_label): Call fill_variable_array_bounds.
17380 (gen_formal_parameter_die): Rewrite to reuse previously generated
17382 (gen_subprogram_die): Same.
17383 (gen_variable_die): Same.
17384 (gen_const_die): Same.
17385 (gen_label_die): Same.
17386 (gen_lexical_block_die): Same.
17387 (decl_will_get_specification_p): New.
17388 (local_function_static): New.
17389 (gen_struct_or_union_type_die): Fill in variable-length fields.
17390 (gen_typedef_die): Fill in variable-length typedefs.
17391 (gen_tagged_type_die): Gracefully return on error_mark_node.
17392 Handle re-entrancy.
17393 (gen_type_die_with_usage): Handle variable-length types.
17394 Remove duplicate code for ARRAY_TYPE case.
17395 (process_scope_var): Only process imported modules during early
17397 (dwarf2out_early_global_decl): New.
17398 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17399 (dwarf2out_type_decl): Set early_dwarf while calling
17401 (dwarf2out_decl): Verify that we did not recreate a previously
17403 Do not return on DECL_EXTERNALs in VAR_DECLs.
17404 Abstract some code to local_function_static.
17405 (lookup_filename): Remove use of file_table_last_lookup.
17406 Gracefully exit on missing file_name.
17407 (dwarf2out_finish): Verify limbo list.
17408 Remove deferred_locations_list use.
17409 Move deferred_asm_name and limbo flushing to...
17410 (dwarf2out_early_finish): ...here. New.
17411 (dwarf2out_c_finalize): Remove set of deferred_location_list,
17412 deferred_asm_name, and file_table_last_lookup.
17413 * cgraph.h (referred_to_p): Add default argument.
17414 * cgraphunit.c (referred_to_p): Add and handle include_self
17416 (analyze_functions): Add first_time argument.
17417 Call check_global_declaration for all symbols.
17418 Call late_global_decl for nodes for moribund nodes.
17419 (finalize_compilation_unit): Add new argument to
17421 Call early_global_decl for functions.
17422 Call early_finish debug hook.
17423 * dbxout.c (dbxout_early_global_decl): New.
17424 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
17425 (dbx_debug_hooks): Add new hooks.
17426 (xcoff_debug_hooks): Same.
17427 * debug.c (do_nothing_debug_hooks): Add early_finish field.
17428 Add early and late debug hooks.
17429 Remove global_decl hook.
17430 * debug.h (struct gcc_debug_hooks): Add early_finish,
17431 early_global_decl, and late_global_decl fields.
17432 Remove global_decl field.
17433 Document gcc_debug_hooks.
17434 * gengtype.c (output_typename): Remove.
17435 * godump.c (go_early_global_decl): New.
17436 (go_late_global_decl): New.
17437 (go_global_decl): Remove.
17438 (dump_go_spec_init): Remove global_decl. Add
17439 {early,late}_global_decl.
17440 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
17441 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
17442 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
17443 (write_global_declarations): Remove.
17444 (global_decl_processing): New.
17445 * langhooks.h (struct lang_hooks_for_decls): Remove
17446 final_write_globals field.
17447 Add post_compilation_parsing_cleanups field.
17448 * passes.c (rest_of_decl_compilation): Call early_global_decl.
17449 * sdbout.c: Add early and late_global_decl hooks. Remove
17450 sdbout_global_decl hook.
17451 Add early_finish field for sdb_debug_hooks.
17452 (sdbout_global_decl): Remove.
17453 (sdbout_early_global_decl): New.
17454 (sdbout_late_global_decl): New.
17455 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
17456 * toplev.c (check_global_declaration): Rename from
17457 check_global_declaration_1.
17458 Adapt to use symtab infrastructure.
17459 (check_global_declarations): Remove.
17460 (emit_debug_global_declarations): Remove.
17461 (compile_file): Remove call to final_write_globals langhook.
17462 Run the actual compilation process.
17463 Perform any post compilation parser cleanups.
17464 Generate late debug info.
17465 * toplev.h (check_global_declaration): New.
17466 (check_global_declaration_1): Remove.
17467 (check_global_declarations): Remove.
17468 (write_global_declarations): Remove.
17469 (emit_debug_global_declarations): Remove.
17470 (global_decl_processing): New.
17471 * tree-core.h (struct tree_block): Add DIE field.
17472 * tree.h (BLOCK_DIE): New.
17473 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
17475 (vmsdbgout_early_global_decl): New.
17476 (vmsdbgout_late_global_decl): New.
17477 Add early_finish debug hook field to vmsdbg_debug_hooks.
17478 Remove vmsdbgout_decl to vmsdbgout_function_decl.
17479 Add early and late_global_decl debug hooks.
17481 2015-06-05 Julian Brown <julian@codesourcery.com>
17482 Sandra Loosemore <sandra@codesourcery.com>
17484 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
17485 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
17486 to print-sysroot-suffix.sh script.
17488 2015-06-05 Tom de Vries <tom@codesourcery.com>
17490 merge from gomp4 branch:
17491 2015-05-28 Tom de Vries <tom@codesourcery.com>
17493 PR tree-optimization/65443
17494 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
17495 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
17496 (try_transform_to_exit_first_loop_alt): New function.
17497 (transform_to_exit_first_loop): Use
17498 try_transform_to_exit_first_loop_alt.
17500 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
17502 * builtins.c (expand_builtin_atomic_compare_exchange): Call
17503 emit_cmp_and_jump_insns with the mode of target.
17505 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17507 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
17509 2015-06-04 DJ Delorie <dj@redhat.com>
17511 * config/msp430/msp430.md (movsi_s): New. Special case for
17512 storing a 20-bit symbol into a 32-bit register.
17513 * config/msp430/msp430.c (msp430_subreg): Add support for it.
17514 * config/msp430/predicates.md (msp430_symbol_operand): New.
17516 2015-06-04 Sriraman Tallam <tmsriram@google.com>
17518 * c-family/c-common.c (noplt): New attribute.
17519 (handle_noplt_attribute): New handler.
17520 * calls.c (prepare_call_address): Check for noplt
17522 * config/i386/i386.c (ix86_expand_call): Check
17523 for noplt attribute.
17524 (ix86_nopic_noplt_attribute_p): New function.
17525 (ix86_output_call_insn): Output indirect call for non-pic
17527 * doc/extend.texi (noplt): Document new attribute.
17528 * doc/invoke.texi: Document new attribute.
17530 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
17532 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
17533 real.h, and fixed-value.h when included in host source files.
17534 * double-int.h: Remove redundant #includes listed above.
17535 * fixed-value.h: Likewise.
17536 * real.h: Likewise.
17537 * wide-int.h: Likewise.
17538 * inchash.h: Likewise.
17539 * rtl.h: Add some include files When included from a generator file.
17540 * target.h: Remove wide-int.h and insn-modes.h from the include list.
17541 * internal-fn.h: Don't include coretypes.h.
17542 * alias.c: Adjust includes for restructured coretypes.h.
17543 * asan.c: Likewise.
17544 * attribs.c: Likewise.
17545 * auto-inc-dec.c: Likewise.
17546 * auto-profile.c: Likewise.
17547 * bb-reorder.c: Likewise.
17548 * bt-load.c: Likewise.
17549 * builtins.c: Likewise.
17550 * caller-save.c: Likewise.
17551 * calls.c: Likewise.
17552 * ccmp.c: Likewise.
17554 * cfganal.c: Likewise.
17555 * cfgbuild.c: Likewise.
17556 * cfgcleanup.c: Likewise.
17557 * cfgexpand.c: Likewise.
17558 * cfghooks.c: Likewise.
17559 * cfgloop.c: Likewise.
17560 * cfgloop.h: Likewise.
17561 * cfgloopanal.c: Likewise.
17562 * cfgloopmanip.c: Likewise.
17563 * cfgrtl.c: Likewise.
17564 * cgraph.c: Likewise.
17565 * cgraphbuild.c: Likewise.
17566 * cgraphclones.c: Likewise.
17567 * cgraphunit.c: Likewise.
17568 * cilk-common.c: Likewise.
17569 * combine-stack-adj.c: Likewise.
17570 * combine.c: Likewise.
17571 * compare-elim.c: Likewise.
17572 * convert.c: Likewise.
17573 * coverage.c: Likewise.
17574 * cppbuiltin.c: Likewise.
17575 * cprop.c: Likewise.
17577 * cselib.c: Likewise.
17578 * data-streamer-in.c: Likewise.
17579 * data-streamer-out.c: Likewise.
17580 * data-streamer.c: Likewise.
17581 * dbxout.c: Likewise.
17584 * debug.c: Likewise.
17585 * df-core.c: Likewise.
17586 * df-problems.c: Likewise.
17587 * df-scan.c: Likewise.
17590 * dojump.c: Likewise.
17591 * dominance.c: Likewise.
17592 * domwalk.c: Likewise.
17593 * double-int.c: Likewise.
17595 * dumpfile.c: Likewise.
17596 * dwarf2asm.c: Likewise.
17597 * dwarf2cfi.c: Likewise.
17598 * dwarf2out.c: Likewise.
17599 * dwarf2out.h: Likewise.
17600 * emit-rtl.c: Likewise.
17601 * et-forest.c: Likewise.
17602 * except.c: Likewise.
17603 * explow.c: Likewise.
17604 * expmed.c: Likewise.
17605 * expr.c: Likewise.
17606 * final.c: Likewise.
17607 * fixed-value.c: Likewise.
17608 * fold-const.c: Likewise.
17609 * function.c: Likewise.
17610 * fwprop.c: Likewise.
17611 * gcc-plugin.h: Likewise.
17612 * gcse.c: Likewise.
17613 * generic-match-head.c: Likewise.
17614 * ggc-page.c: Likewise.
17615 * gimple-builder.c: Likewise.
17616 * gimple-expr.c: Likewise.
17617 * gimple-fold.c: Likewise.
17618 * gimple-iterator.c: Likewise.
17619 * gimple-low.c: Likewise.
17620 * gimple-match-head.c: Likewise.
17621 * gimple-pretty-print.c: Likewise.
17622 * gimple-ssa-isolate-paths.c: Likewise.
17623 * gimple-ssa-strength-reduction.c: Likewise.
17624 * gimple-streamer-in.c: Likewise.
17625 * gimple-streamer-out.c: Likewise.
17626 * gimple-streamer.h: Likewise.
17627 * gimple-walk.c: Likewise.
17628 * gimple.c: Likewise.
17629 * gimplify-me.c: Likewise.
17630 * gimplify.c: Likewise.
17631 * godump.c: Likewise.
17632 * graph.c: Likewise.
17633 * graphite-blocking.c: Likewise.
17634 * graphite-dependences.c: Likewise.
17635 * graphite-interchange.c: Likewise.
17636 * graphite-isl-ast-to-gimple.c: Likewise.
17637 * graphite-optimize-isl.c: Likewise.
17638 * graphite-poly.c: Likewise.
17639 * graphite-scop-detection.c: Likewise.
17640 * graphite-sese-to-poly.c: Likewise.
17641 * graphite.c: Likewise.
17642 * haifa-sched.c: Likewise.
17643 * hooks.h: Likewise.
17644 * hw-doloop.c: Likewise.
17645 * ifcvt.c: Likewise.
17646 * incpath.c: Likewise.
17647 * init-regs.c: Likewise.
17648 * internal-fn.c: Likewise.
17649 * ipa-chkp.c: Likewise.
17650 * ipa-comdats.c: Likewise.
17651 * ipa-cp.c: Likewise.
17652 * ipa-devirt.c: Likewise.
17653 * ipa-icf-gimple.c: Likewise.
17654 * ipa-icf.c: Likewise.
17655 * ipa-inline-analysis.c: Likewise.
17656 * ipa-inline-transform.c: Likewise.
17657 * ipa-inline.c: Likewise.
17658 * ipa-polymorphic-call.c: Likewise.
17659 * ipa-profile.c: Likewise.
17660 * ipa-prop.c: Likewise.
17661 * ipa-pure-const.c: Likewise.
17662 * ipa-ref.c: Likewise.
17663 * ipa-reference.c: Likewise.
17664 * ipa-split.c: Likewise.
17665 * ipa-utils.c: Likewise.
17666 * ipa-visibility.c: Likewise.
17668 * ira-build.c: Likewise.
17669 * ira-color.c: Likewise.
17670 * ira-conflicts.c: Likewise.
17671 * ira-costs.c: Likewise.
17672 * ira-emit.c: Likewise.
17673 * ira-lives.c: Likewise.
17675 * jump.c: Likewise.
17676 * langhooks.c: Likewise.
17678 * loop-doloop.c: Likewise.
17679 * loop-init.c: Likewise.
17680 * loop-invariant.c: Likewise.
17681 * loop-iv.c: Likewise.
17682 * loop-unroll.c: Likewise.
17683 * lower-subreg.c: Likewise.
17684 * lra-assigns.c: Likewise.
17685 * lra-coalesce.c: Likewise.
17686 * lra-constraints.c: Likewise.
17687 * lra-eliminations.c: Likewise.
17688 * lra-lives.c: Likewise.
17689 * lra-remat.c: Likewise.
17690 * lra-spills.c: Likewise.
17692 * lto-cgraph.c: Likewise.
17693 * lto-compress.c: Likewise.
17694 * lto-opts.c: Likewise.
17695 * lto-section-in.c: Likewise.
17696 * lto-section-out.c: Likewise.
17697 * lto-streamer-in.c: Likewise.
17698 * lto-streamer-out.c: Likewise.
17699 * lto-streamer.c: Likewise.
17701 * mode-switching.c: Likewise.
17702 * modulo-sched.c: Likewise.
17703 * omega.c: Likewise.
17704 * omp-low.c: Likewise.
17705 * optabs.c: Likewise.
17706 * opts-global.c: Likewise.
17707 * passes.c: Likewise.
17708 * plugin.c: Likewise.
17709 * postreload-gcse.c: Likewise.
17710 * postreload.c: Likewise.
17711 * predict.c: Likewise.
17712 * print-rtl.c: Likewise.
17713 * print-tree.c: Likewise.
17714 * profile.c: Likewise.
17715 * real.c: Likewise.
17716 * realmpfr.c: Likewise.
17717 * realmpfr.h: Likewise.
17718 * recog.c: Likewise.
17720 * reg-stack.c: Likewise.
17721 * regcprop.c: Likewise.
17722 * reginfo.c: Likewise.
17723 * regrename.c: Likewise.
17724 * regs.h: Likewise.
17725 * regstat.c: Likewise.
17726 * reload.c: Likewise.
17727 * reload1.c: Likewise.
17728 * reorg.c: Likewise.
17729 * resource.c: Likewise.
17730 * rtl-chkp.c: Likewise.
17731 * rtlanal.c: Likewise.
17732 * rtlhooks.c: Likewise.
17733 * sanopt.c: Likewise.
17734 * sched-deps.c: Likewise.
17735 * sched-ebb.c: Likewise.
17736 * sched-rgn.c: Likewise.
17737 * sched-vis.c: Likewise.
17738 * sdbout.c: Likewise.
17739 * sel-sched-dump.c: Likewise.
17740 * sel-sched-ir.c: Likewise.
17741 * sel-sched.c: Likewise.
17742 * sese.c: Likewise.
17743 * shrink-wrap.c: Likewise.
17744 * shrink-wrap.h: Likewise.
17745 * simplify-rtx.c: Likewise.
17746 * stack-ptr-mod.c: Likewise.
17747 * statistics.c: Likewise.
17748 * stmt.c: Likewise.
17749 * stor-layout.c: Likewise.
17750 * store-motion.c: Likewise.
17751 * stringpool.c: Likewise.
17752 * symtab.c: Likewise.
17753 * target-globals.c: Likewise.
17754 * targhooks.c: Likewise.
17755 * toplev.c: Likewise.
17756 * tracer.c: Likewise.
17757 * trans-mem.c: Likewise.
17758 * tree-affine.c: Likewise.
17759 * tree-affine.h: Likewise.
17760 * tree-browser.c: Likewise.
17761 * tree-call-cdce.c: Likewise.
17762 * tree-cfg.c: Likewise.
17763 * tree-cfgcleanup.c: Likewise.
17764 * tree-chkp-opt.c: Likewise.
17765 * tree-chkp.c: Likewise.
17766 * tree-chrec.c: Likewise.
17767 * tree-complex.c: Likewise.
17768 * tree-data-ref.c: Likewise.
17769 * tree-dfa.c: Likewise.
17770 * tree-diagnostic.c: Likewise.
17771 * tree-dump.c: Likewise.
17772 * tree-eh.c: Likewise.
17773 * tree-emutls.c: Likewise.
17774 * tree-if-conv.c: Likewise.
17775 * tree-inline.c: Likewise.
17776 * tree-into-ssa.c: Likewise.
17777 * tree-iterator.c: Likewise.
17778 * tree-loop-distribution.c: Likewise.
17779 * tree-nested.c: Likewise.
17780 * tree-nrv.c: Likewise.
17781 * tree-object-size.c: Likewise.
17782 * tree-outof-ssa.c: Likewise.
17783 * tree-parloops.c: Likewise.
17784 * tree-phinodes.c: Likewise.
17785 * tree-predcom.c: Likewise.
17786 * tree-pretty-print.c: Likewise.
17787 * tree-pretty-print.h: Likewise.
17788 * tree-profile.c: Likewise.
17789 * tree-scalar-evolution.c: Likewise.
17790 * tree-sra.c: Likewise.
17791 * tree-ssa-address.c: Likewise.
17792 * tree-ssa-alias.c: Likewise.
17793 * tree-ssa-ccp.c: Likewise.
17794 * tree-ssa-coalesce.c: Likewise.
17795 * tree-ssa-copy.c: Likewise.
17796 * tree-ssa-copyrename.c: Likewise.
17797 * tree-ssa-dce.c: Likewise.
17798 * tree-ssa-dom.c: Likewise.
17799 * tree-ssa-dse.c: Likewise.
17800 * tree-ssa-forwprop.c: Likewise.
17801 * tree-ssa-ifcombine.c: Likewise.
17802 * tree-ssa-live.c: Likewise.
17803 * tree-ssa-loop-ch.c: Likewise.
17804 * tree-ssa-loop-im.c: Likewise.
17805 * tree-ssa-loop-ivcanon.c: Likewise.
17806 * tree-ssa-loop-ivopts.c: Likewise.
17807 * tree-ssa-loop-manip.c: Likewise.
17808 * tree-ssa-loop-niter.c: Likewise.
17809 * tree-ssa-loop-prefetch.c: Likewise.
17810 * tree-ssa-loop-unswitch.c: Likewise.
17811 * tree-ssa-loop.c: Likewise.
17812 * tree-ssa-loop.h: Likewise.
17813 * tree-ssa-math-opts.c: Likewise.
17814 * tree-ssa-operands.c: Likewise.
17815 * tree-ssa-phiopt.c: Likewise.
17816 * tree-ssa-phiprop.c: Likewise.
17817 * tree-ssa-pre.c: Likewise.
17818 * tree-ssa-propagate.c: Likewise.
17819 * tree-ssa-reassoc.c: Likewise.
17820 * tree-ssa-sccvn.c: Likewise.
17821 * tree-ssa-scopedtables.c: Likewise.
17822 * tree-ssa-sink.c: Likewise.
17823 * tree-ssa-strlen.c: Likewise.
17824 * tree-ssa-structalias.c: Likewise.
17825 * tree-ssa-tail-merge.c: Likewise.
17826 * tree-ssa-ter.c: Likewise.
17827 * tree-ssa-threadedge.c: Likewise.
17828 * tree-ssa-threadupdate.c: Likewise.
17829 * tree-ssa-uncprop.c: Likewise.
17830 * tree-ssa-uninit.c: Likewise.
17831 * tree-ssa.c: Likewise.
17832 * tree-ssanames.c: Likewise.
17833 * tree-stdarg.c: Likewise.
17834 * tree-streamer-in.c: Likewise.
17835 * tree-streamer-out.c: Likewise.
17836 * tree-streamer.c: Likewise.
17837 * tree-switch-conversion.c: Likewise.
17838 * tree-tailcall.c: Likewise.
17839 * tree-vect-data-refs.c: Likewise.
17840 * tree-vect-generic.c: Likewise.
17841 * tree-vect-loop-manip.c: Likewise.
17842 * tree-vect-loop.c: Likewise.
17843 * tree-vect-patterns.c: Likewise.
17844 * tree-vect-slp.c: Likewise.
17845 * tree-vect-stmts.c: Likewise.
17846 * tree-vectorizer.c: Likewise.
17847 * tree-vrp.c: Likewise.
17848 * tree.c: Likewise.
17849 * tsan.c: Likewise.
17850 * ubsan.c: Likewise.
17851 * valtrack.c: Likewise.
17852 * value-prof.c: Likewise.
17853 * var-tracking.c: Likewise.
17854 * varasm.c: Likewise.
17855 * varpool.c: Likewise.
17856 * vmsdbgout.c: Likewise.
17857 * vtable-verify.c: Likewise.
17859 * wide-int-print.cc: Likewise.
17860 * wide-int-print.h: Likewise.
17861 * wide-int.cc: Likewise.
17862 * xcoffout.c: Likewise.
17863 * config/aarch64/aarch64-builtins.c: Likewise.
17864 * config/aarch64/aarch64.c: Likewise.
17865 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17866 * config/alpha/alpha.c: Likewise.
17867 * config/arc/arc.c: Likewise.
17868 * config/arm/aarch-common.c: Likewise.
17869 * config/arm/arm-builtins.c: Likewise.
17870 * config/arm/arm-c.c: Likewise.
17871 * config/arm/arm.c: Likewise.
17872 * config/avr/avr-c.c: Likewise.
17873 * config/avr/avr-log.c: Likewise.
17874 * config/avr/avr.c: Likewise.
17875 * config/bfin/bfin.c: Likewise.
17876 * config/c6x/c6x.c: Likewise.
17877 * config/cr16/cr16.c: Likewise.
17878 * config/cris/cris.c: Likewise.
17879 * config/darwin-c.c: Likewise.
17880 * config/darwin.c: Likewise.
17881 * config/default-c.c: Likewise.
17882 * config/epiphany/epiphany.c: Likewise.
17883 * config/epiphany/mode-switch-use.c: Likewise.
17884 * config/epiphany/resolve-sw-modes.c: Likewise.
17885 * config/fr30/fr30.c: Likewise.
17886 * config/frv/frv.c: Likewise.
17887 * config/ft32/ft32.c: Likewise.
17888 * config/glibc-c.c: Likewise.
17889 * config/h8300/h8300.c: Likewise.
17890 * config/i386/i386-c.c: Likewise.
17891 * config/i386/i386.c: Likewise.
17892 * config/i386/msformat-c.c: Likewise.
17893 * config/i386/winnt-cxx.c: Likewise.
17894 * config/i386/winnt-stubs.c: Likewise.
17895 * config/i386/winnt.c: Likewise.
17896 * config/ia64/ia64-c.c: Likewise.
17897 * config/ia64/ia64.c: Likewise.
17898 * config/iq2000/iq2000.c: Likewise.
17899 * config/lm32/lm32.c: Likewise.
17900 * config/m32c/m32c-pragma.c: Likewise.
17901 * config/m32c/m32c.c: Likewise.
17902 * config/m32r/m32r.c: Likewise.
17903 * config/m68k/m68k.c: Likewise.
17904 * config/mcore/mcore.c: Likewise.
17905 * config/mep/mep-pragma.c: Likewise.
17906 * config/mep/mep.c: Likewise.
17907 * config/microblaze/microblaze-c.c: Likewise.
17908 * config/microblaze/microblaze.c: Likewise.
17909 * config/mips/mips.c: Likewise.
17910 * config/mmix/mmix.c: Likewise.
17911 * config/mn10300/mn10300.c: Likewise.
17912 * config/moxie/moxie.c: Likewise.
17913 * config/msp430/msp430-c.c: Likewise.
17914 * config/msp430/msp430.c: Likewise.
17915 * config/nds32/nds32-cost.c: Likewise.
17916 * config/nds32/nds32-fp-as-gp.c: Likewise.
17917 * config/nds32/nds32-intrinsic.c: Likewise.
17918 * config/nds32/nds32-isr.c: Likewise.
17919 * config/nds32/nds32-md-auxiliary.c: Likewise.
17920 * config/nds32/nds32-memory-manipulation.c: Likewise.
17921 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17922 * config/nds32/nds32-predicates.c: Likewise.
17923 * config/nds32/nds32.c: Likewise.
17924 * config/nios2/nios2.c: Likewise.
17925 * config/nvptx/nvptx.c: Likewise.
17926 * config/pa/pa.c: Likewise.
17927 * config/pdp11/pdp11.c: Likewise.
17928 * config/rl78/rl78-c.c: Likewise.
17929 * config/rl78/rl78.c: Likewise.
17930 * config/rs6000/rs6000-c.c: Likewise.
17931 * config/rs6000/rs6000.c: Likewise.
17932 * config/rx/rx.c: Likewise.
17933 * config/s390/s390-c.c: Likewise.
17934 * config/s390/s390.c: Likewise.
17935 * config/sh/sh-c.c: Likewise.
17936 * config/sh/sh-mem.cc: Likewise.
17937 * config/sh/sh.c: Likewise.
17938 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17939 * config/sh/sh_treg_combine.cc: Likewise.
17940 * config/sol2-c.c: Likewise.
17941 * config/sol2-cxx.c: Likewise.
17942 * config/sol2-stubs.c: Likewise.
17943 * config/sol2.c: Likewise.
17944 * config/sparc/sparc-c.c: Likewise.
17945 * config/sparc/sparc.c: Likewise.
17946 * config/spu/spu-c.c: Likewise.
17947 * config/spu/spu.c: Likewise.
17948 * config/stormy16/stormy16.c: Likewise.
17949 * config/tilegx/mul-tables.c: Likewise.
17950 * config/tilegx/tilegx-c.c: Likewise.
17951 * config/tilegx/tilegx.c: Likewise.
17952 * config/tilepro/mul-tables.c: Likewise.
17953 * config/tilepro/tilepro-c.c: Likewise.
17954 * config/tilepro/tilepro.c: Likewise.
17955 * config/v850/v850-c.c: Likewise.
17956 * config/v850/v850.c: Likewise.
17957 * config/vax/vax.c: Likewise.
17958 * config/visium/visium.c: Likewise.
17959 * config/vms/vms-c.c: Likewise.
17960 * config/vms/vms.c: Likewise.
17961 * config/vxworks.c: Likewise.
17962 * config/winnt-c.c: Likewise.
17963 * config/xtensa/xtensa.c: Likewise.
17964 * common/config/bfin/bfin-common.c: Likewise.
17966 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
17968 * tree.h (tree_code_for_canonical_type_merging): New function.
17969 * tree.c (gimple_canonical_types_compatible_p): Use
17970 tree_code_for_canonical_type_merging..
17972 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17976 * doc/tm.texi: Regenerate.
17977 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
17978 * target.def (TARGET_RELAXED_ORDERING): Likewise.
17979 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
17980 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
17981 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
17982 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
17983 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
17984 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
17985 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
17987 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17989 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
17990 register fma steering pass.
17991 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
17992 AARCH64_TUNE_FMA_STEERING.
17994 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
17996 * tree.c (verify_type_variant): Verify that type and variant is
17998 (gimple_canonical_types_compatible_p): Look for main variants.
18000 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18002 * config.gcc (powerpc*-*-*): Add support for a new configure
18003 option --with-advance-toolchain=<xxx> which overrides using the
18004 default header files, libraries and dynamic linker.
18006 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18007 specs to support the configure --with-advance-toolchain=<xxx>
18009 (INCLUDE_EXTRA_SPEC): Likewise.
18010 (LINK_OS_EXTRA_SPEC32): Likewise.
18011 (LINK_OK_EXTRA_SPEC64): Likewise.
18012 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18013 (DYNAMIC_LINKER_PREFIX): Likewise.
18014 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18016 (GLIBC_DYNAMIC_LINKER32): Likewise.
18017 (GLIBC_DYNAMIC_LINKER64): Likewise.
18018 (LINK_OS_LINUX_SPEC32): Likewise.
18019 (LINK_OS_LINUX_SPEC64): Likewise.
18021 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18022 configuration option.
18024 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
18027 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18028 to determine current function ABI.
18029 (ix86_function_value_regno_p): Ditto.
18031 2015-06-03 Martin Liska <mliska@suse.cz>
18033 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18034 * bitmap.h (struct bitmap_usage): Likewise.
18035 * ggc-common.c (struct ggc_usage): Likewise.
18036 * mem-stats.h (struct mem_location): Likewise.
18037 (struct mem_usage): Likewise.
18038 * vec.c (struct vec_usage): Likewise.
18040 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
18042 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18045 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
18047 * doc/plugins.texi (enum plugin_event): New event.
18048 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18049 and PLUGIN_FINISH_FUNCTION.
18050 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18051 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18053 2015-06-03 Richard Biener <rguenther@suse.de>
18055 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18056 compute GROUP_GAP for the first element.
18057 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18060 2015-06-03 Nick Clifton <nickc@redhat.com>
18062 * config/rl78/rl78-real.md: Add peepholes to avoid a register
18063 copy when calling a function.
18064 * config/rl78/rl78.c (need_to_save): Do not push the frame
18065 pointer in an interrupt handler prologue if it is never used.
18067 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18069 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18071 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18073 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18074 reference when cloning alias node.
18076 2015-06-03 Martin Liska <mliska@suse.cz>
18078 * alloc-pool.h (struct pool_usage): Correct space padding.
18079 * ggc-page.c (ggc_print_statistics): Align columns in a report.
18080 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18081 * tree.c (dump_tree_statistics): Align columns in a report.
18083 2015-06-03 Martin Liska <mliska@suse.cz>
18085 * alloc-pool.c (allocate_pool_descriptor): Remove.
18086 (struct pool_output_info): Likewise.
18087 (print_alloc_pool_statistics): Likewise.
18088 (dump_alloc_pool_statistics): Likewise.
18089 * alloc-pool.h (struct pool_usage): New struct.
18090 (pool_allocator::initialize): Change usage of memory statistics
18091 to a new interface.
18092 (pool_allocator::release): Likewise.
18093 (pool_allocator::allocate): Likewise.
18094 (pool_allocator::remove): Likewise.
18095 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18096 for a pool allocator.
18097 * mem-stats.h (struct mem_location): Add new ctor.
18098 (struct mem_usage): Add counter for number of
18100 (mem_alloc_description::register_descriptor): New overload of
18101 * mem-stats.h (mem_location::to_string): New function.
18102 * bitmap.h (struct bitmap_usage): Use this new function.
18103 * ggc-common.c (struct ggc_usage): Likewise.
18106 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18108 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18109 of GCC_INSN_FLAGS_H block.
18111 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
18113 * explow.c (plus_constant): Update check after force_const_mem call
18114 to see if the value returned is not a NULL_RTX.
18116 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18118 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18119 remove instumentation thunks calling reachable functions.
18120 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18121 * lto/lto-partition.c (privatize_symbol_name_1): New.
18122 (privatize_symbol_name): Privatize both decl and orig_decl
18123 names for instrumented functions.
18124 * cgraph.c (cgraph_node::verify_node): Add transparent
18125 alias chain check for instrumented node.
18127 2015-06-03 Marek Polacek <polacek@redhat.com>
18131 * tree.c (attribute_value_equal): Handle attribute format.
18132 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18134 2015-06-03 Richard Biener <rguenther@suse.de>
18136 PR tree-optimization/63916
18137 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18138 Forward-propagate non-invariant addresses by splicing their
18139 reference ops if the result isn't going to be used by PRE.
18140 (vn_reference_lookup_3): Remove pointless assert.
18142 2015-06-03 Richard Biener <rguenther@suse.de>
18144 PR tree-optimization/66375
18145 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18146 add to the evolution before following SSA edges.
18148 2015-06-03 Bin Cheng <bin.cheng@arm.com>
18150 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18151 (dump_use, dump_cand, find_induction_variables): Pass new argument
18153 (record_use): Preserve the ssa name information in IV.
18155 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18157 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18159 (add_mode_tests): Don't add mode tests if the predicate only
18160 accepts scalar constant integers. Otherwise, allow the mode
18161 of "op" to be VOIDmode if the predicate does accept such integers.
18163 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
18166 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18167 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18168 (aarch64_secondary_reload): Likewise
18169 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18171 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18174 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
18175 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18178 * cprop.c (try_replace_reg): Check cost of constants before propagating.
18180 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18182 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18183 provide access to the IBM extended double floating point mode if
18184 long double is IEEE 128-bit floating point.
18185 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18186 point if long double is the IBM extended double type.
18188 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18189 enable adding IEEE 128-bit floating point support.
18190 (-mfloat128-software): Likewise.
18191 (-mfloat128-sw): Likewise.
18193 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18194 128-bit floating point types to occupy any register if
18195 -mlong-double-64. Do not allow use of IFmode/KFmode unless
18196 -mfloat128-software is enabled.
18197 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18199 (rs6000_option_override_internal): Add -mfloat128-* support.
18200 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18202 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18203 and float128 type nodes.
18204 (ieee128_float_type_node): Likewise.
18205 (ibm128_float_type_node): Likewise.
18207 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18210 * config/aarch64/geniterators.sh: Rewrite in awk.
18212 2015-06-02 Martin Liska <mliska@suse.cz>
18214 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18215 values to avoid -Wmaybe-uninitialized errors.
18217 2015-06-02 Richard Biener <rguenther@suse.de>
18220 * dwarf2out.c (lookup_context_die): New function.
18221 (resolve_addr): Avoid forcing a full DIE for the
18222 target of a DW_TAG_GNU_call_site during late compilation.
18223 Instead create a stub DIE without a type if we have a
18224 context DIE present.
18226 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
18228 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18230 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18232 PR tree-optimization/48052
18233 * cfgloop.h (struct control_iv): New.
18234 (struct loop): New field control_ivs.
18235 * tree-ssa-loop-niter.c : Include "stor-layout.h".
18236 (number_of_iterations_lt): Set no_overflow information.
18237 (number_of_iterations_exit): Init control iv in niter struct.
18238 (record_control_iv): New.
18239 (estimate_numbers_of_iterations_loop): Call record_control_iv.
18240 (loop_exits_before_overflow): New. Interface factored out of
18241 scev_probably_wraps_p.
18242 (scev_probably_wraps_p): Factor loop niter related code into
18243 loop_exits_before_overflow.
18244 (free_numbers_of_iterations_estimates_loop): Free control ivs.
18245 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18247 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
18249 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18250 the target doesn't belong to the current function.
18252 2015-06-02 Marek Polacek <polacek@redhat.com>
18254 PR middle-end/66345
18255 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18256 get_maxval_strlen does not produce an INTEGER_CST.
18258 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
18260 * config/arc/constraints.md: Use lower-case names in match_code.
18261 * config/mmix/constraints.md: Likewise.
18263 2015-06-02 Richard Biener <rguenther@suse.de>
18265 PR tree-optimization/65961
18266 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18267 check and clarify dump message.
18268 (vect_build_slp_tree): If all children are built up from scalars
18269 build up the parent from scalars instead.
18270 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18272 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
18275 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
18276 instead of print ... .
18278 2015-06-02 Alan Modra <amodra@gmail.com>
18280 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18283 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18285 PR tree-optimization/52563
18286 PR tree-optimization/62173
18287 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
18288 (alloc_iv, set_iv): New parameter.
18289 (determine_biv_step): Delete.
18290 (find_bivs): Inline original determine_biv_step. Pass new
18291 argument to set_iv.
18292 (idx_find_step): Use no_overflow information for conversion.
18293 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18294 resolve_mixers handle folded_casts.
18295 (instantiate_scev_name): Change bool parameter to bool pointer.
18296 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18297 (instantiate_array_ref, instantiate_scev_not): Ditto.
18298 (instantiate_scev_3, instantiate_scev_2): Ditto.
18299 (instantiate_scev_1, instantiate_scev_r): Ditto.
18300 (instantiate_scev_convert, ): Change parameter. Pass argument
18301 to chrec_convert_aggressive.
18302 (instantiate_scev): Change argument.
18303 (resolve_mixers): New parameter and set it.
18304 (scev_const_prop): New argument.
18305 * tree-scalar-evolution.h (resolve_mixers): New parameter.
18306 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18308 (chrec_convert): New parameter. Move definition below.
18309 (chrec_convert_aggressive): New parameter and set it. Call
18310 convert_affine_scev.
18311 * tree-chrec.h (chrec_convert): New parameter.
18312 (chrec_convert_aggressive): Ditto.
18314 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18316 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18317 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18318 the LHS of a no-return call if its type has variable size.
18319 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18320 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18322 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
18324 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18325 * config.in: Regenerate.
18327 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18329 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18330 consecutive accesses within outer-loop with force_vectorize
18331 for references with zero step in inner-loop.
18333 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18335 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18336 rather than from gcc/build directory.
18338 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18341 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18342 for __sync memory models, emit initial loads and final barriers as
18345 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18348 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18349 (aarch64_split_atomic_op): Check for __sync memory models, emit
18350 appropriate initial loads and final barriers.
18352 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18354 * Makefile.in: Fix gcov dependencies that should
18355 not point to a build folder.
18357 2015-06-01 Richard Biener <rguenther@suse.de>
18360 2015-05-29 Richard Biener <rguenther@suse.de>
18362 PR tree-optimization/66314
18363 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18364 parameter that says which loop the new block belongs to.
18365 (ssa_create_duplicates): Blocks duplicated for the threaded
18366 path belong to the loop of the thread destination.
18368 2015-06-01 Martin Liska <mliska@suse.cz>
18370 * sched-deps.c: Include pool-alloc.h before
18371 cselib.h header file is included.
18373 2015-06-01 Richard Biener <rguenther@suse.de>
18375 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18378 2015-06-01 Martin Liska <mliska@suse.cz>
18380 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18381 a function local variable.
18383 2015-06-01 Martin Liska <mliska@suse.cz>
18385 * alloc-pool.c (create_alloc_pool): Remove.
18386 (empty_alloc_pool): Likewise.
18387 (free_alloc_pool): Likewise.
18388 (free_alloc_pool_if_empty): Likewise.
18389 (pool_alloc): Likewise.
18390 (pool_free): Likewise.
18391 * alloc-pool.h: Remove old declarations.
18393 2015-06-01 Martin Liska <mliska@suse.cz>
18395 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18396 (ira_create_object): Likewise.
18397 (ira_create_allocno): Likewise.
18398 (ira_create_live_range): Likewise.
18399 (copy_live_range): Likewise.
18400 (ira_finish_live_range): Likewise.
18401 (ira_free_allocno_costs): Likewise.
18402 (finish_allocno): Likewise.
18403 (finish_allocnos): Likewise.
18404 (initiate_prefs): Likewise.
18405 (ira_create_pref): Likewise.
18406 (finish_pref): Likewise.
18407 (finish_prefs): Likewise.
18408 (initiate_copies): Likewise.
18409 (ira_create_copy): Likewise.
18410 (finish_copy): Likewise.
18411 (finish_copies): Likewise.
18412 (finish_prefs): Likewise.
18414 2015-06-01 Martin Liska <mliska@suse.cz>
18416 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18417 (allocate_and_init_ipcp_value): Likewise.
18418 (ipcp_lattice::add_value): Likewise.
18419 (merge_agg_lats_step): Likewise.
18420 (ipcp_driver): Likewise.
18421 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18422 (ipa_free_all_structures_after_iinln): Likewise.
18423 * ipa-prop.h: Likewise.
18425 2015-06-01 Martin Liska <mliska@suse.cz>
18427 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18429 (set_hint_predicate): Likewise.
18430 (inline_summary_alloc): Likewise.
18431 (reset_inline_edge_summary): Likewise.
18432 (reset_inline_summary): Likewise.
18433 (set_cond_stmt_execution_predicate): Likewise.
18434 (set_switch_stmt_execution_predicate): Likewise.
18435 (compute_bb_predicates): Likewise.
18436 (estimate_function_body_sizes): Likewise.
18437 (inline_free_summary): Likewise.
18439 2015-06-01 Martin Liska <mliska@suse.cz>
18441 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
18442 (ipa_edge_duplication_hook): Likewise.
18443 (ipa_free_all_structures_after_ipa_cp): Likewise.
18444 (ipa_free_all_structures_after_iinln): Likewise.
18446 2015-06-01 Martin Liska <mliska@suse.cz>
18448 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
18449 (ipa_profile_generate_summary): Likewise.
18450 (ipa_profile_read_summary): Likewise.
18451 (ipa_profile): Likewise.
18453 2015-06-01 Martin Liska <mliska@suse.cz>
18455 * tree-ssa-structalias.c (new_var_info): Use new type-based
18457 (new_constraint): Likewise.
18458 (init_alias_vars): Likewise.
18459 (delete_points_to_sets): Likewise.
18461 2015-06-01 Martin Liska <mliska@suse.cz>
18463 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
18464 (free_strinfo): Likewise.
18465 (pass_strlen::execute): Likewise.
18467 2015-06-01 Martin Liska <mliska@suse.cz>
18469 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
18471 (vn_reference_insert_pieces): Likewise.
18472 (vn_phi_insert): Likewise.
18473 (visit_reference_op_call): Likewise.
18474 (copy_phi): Likewise.
18475 (copy_reference): Likewise.
18476 (process_scc): Likewise.
18477 (allocate_vn_table): Likewise.
18478 (free_vn_table): Likewise.
18480 2015-06-01 Martin Liska <mliska@suse.cz>
18482 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
18484 (add_repeat_to_ops_vec): Likewise.
18485 (get_ops): Likewise.
18486 (maybe_optimize_range_tests): Likewise.
18487 (init_reassoc): Likewise.
18488 (fini_reassoc): Likewise.
18490 2015-06-01 Martin Liska <mliska@suse.cz>
18492 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
18494 (bitmap_set_new): Likewise.
18495 (get_or_alloc_expr_for_constant): Likewise.
18496 (get_or_alloc_expr_for): Likewise.
18497 (phi_translate_1): Likewise.
18498 (compute_avail): Likewise.
18499 (init_pre): Likewise.
18500 (fini_pre): Likewise.
18502 2015-06-01 Martin Liska <mliska@suse.cz>
18504 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
18505 (delete_dep_node): Likewise.
18506 (create_deps_list): Likewise.
18507 (free_deps_list): Likewise.
18508 (sched_deps_init): Likewise.
18509 (sched_deps_finish): Likewise.
18511 2015-06-01 Martin Liska <mliska@suse.cz>
18513 * regcprop.c (free_debug_insn_changes): Use new type-based
18515 (replace_oldest_value_reg): Likewise.
18516 (pass_cprop_hardreg::execute): Likewise.
18518 2015-06-01 Martin Liska <mliska@suse.cz>
18520 * ira-build.c (initiate_cost_vectors): Use new type-based
18522 (ira_allocate_cost_vector): Likewise.
18523 (ira_free_cost_vector): Likewise.
18524 (finish_cost_vectors): Likewise.
18526 2015-06-01 Martin Liska <mliska@suse.cz>
18528 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
18530 (free_sched_pools): Likewise.
18531 * sel-sched-ir.h (_list_alloc): Likewise.
18532 (_list_remove): Likewise.
18534 2015-06-01 Martin Liska <mliska@suse.cz>
18536 * stmt.c (add_case_node): Use new type-based pool allocator.
18537 (expand_case): Likewise.
18538 (expand_sjlj_dispatch_table): Likewise.
18540 2015-06-01 Martin Liska <mliska@suse.cz>
18542 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
18543 (free_bb): Likewise.
18544 (pass_cse_reciprocals::execute): Likewise.
18546 2015-06-01 Martin Liska <mliska@suse.cz>
18548 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
18549 (sra_deinitialize) Likewise.
18550 (create_access_1) Likewise.
18551 (build_accesses_from_assign) Likewise.
18552 (create_artificial_child_access) Likewise.
18554 2015-06-01 Martin Liska <mliska@suse.cz>
18556 * dse.c (get_group_info):Use new type-based pool allocator.
18557 (dse_step0) Likewise.
18558 (free_store_info) Likewise.
18559 (delete_dead_store_insn) Likewise.
18560 (free_read_records) Likewise.
18561 (record_store) Likewise.
18562 (replace_read) Likewise.
18563 (check_mem_read_rtx) Likewise.
18564 (scan_insn) Likewise.
18565 (dse_step1) Likewise.
18566 (dse_step7) Likewise.
18568 2015-06-01 Martin Liska <mliska@suse.cz>
18570 * df-scan.c (struct df_scan_problem_data):Use new type-based
18572 (df_scan_free_internal) Likewise.
18573 (df_scan_alloc) Likewise.
18574 (df_grow_reg_info) Likewise.
18575 (df_free_ref) Likewise.
18576 (df_insn_create_insn_record) Likewise.
18577 (df_mw_hardreg_chain_delete) Likewise.
18578 (df_insn_info_delete) Likewise.
18579 (df_free_collection_rec) Likewise.
18580 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
18581 (df_sort_and_compress_mws) Likewise.
18582 (df_ref_create_structure) Likewise.
18583 (df_ref_record) Likewise.
18585 2015-06-01 Martin Liska <mliska@suse.cz>
18587 * df-problems.c (df_chain_create):Use new type-based pool allocator.
18588 (df_chain_unlink_1) Likewise.
18589 (df_chain_unlink) Likewise.
18590 (df_chain_remove_problem) Likewise.
18591 (df_chain_alloc) Likewise.
18592 (df_chain_free) Likewise.
18593 * df.h (struct dataflow) Likewise.
18595 2015-06-01 Martin Liska <mliska@suse.cz>
18597 * cselib.c (new_elt_list):Use new type-based pool allocator.
18598 (new_elt_loc_list) Likewise.
18599 (unchain_one_elt_list) Likewise.
18600 (unchain_one_elt_loc_list) Likewise.
18601 (unchain_one_value) Likewise.
18602 (new_cselib_val) Likewise.
18603 (cselib_init) Likewise.
18604 (cselib_finish) Likewise.
18606 2015-06-01 Martin Liska <mliska@suse.cz>
18608 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
18609 (sh_reorg) Likewise.
18611 2015-06-01 Martin Liska <mliska@suse.cz>
18613 * cfg.c (initialize_original_copy_tables):Use new type-based
18615 (free_original_copy_tables) Likewise.
18616 (copy_original_table_clear) Likewise.
18617 (copy_original_table_set) Likewise.
18619 2015-06-01 Martin Liska <mliska@suse.cz>
18621 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
18623 (asan_mem_ref_new) Likewise.
18624 (free_mem_ref_resources) Likewise.
18626 2015-06-01 Martin Liska <mliska@suse.cz>
18628 * var-tracking.c (variable_htab_free):Use new type-based
18630 (attrs_list_clear) Likewise.
18631 (attrs_list_insert) Likewise.
18632 (attrs_list_copy) Likewise.
18633 (shared_hash_unshare) Likewise.
18634 (shared_hash_destroy) Likewise.
18635 (unshare_variable) Likewise.
18636 (var_reg_delete_and_set) Likewise.
18637 (var_reg_delete) Likewise.
18638 (var_regno_delete) Likewise.
18639 (drop_overlapping_mem_locs) Likewise.
18640 (variable_union) Likewise.
18641 (insert_into_intersection) Likewise.
18642 (canonicalize_values_star) Likewise.
18643 (variable_merge_over_cur) Likewise.
18644 (dataflow_set_merge) Likewise.
18645 (remove_duplicate_values) Likewise.
18646 (variable_post_merge_new_vals) Likewise.
18647 (dataflow_set_preserve_mem_locs) Likewise.
18648 (dataflow_set_remove_mem_locs) Likewise.
18649 (variable_from_dropped) Likewise.
18650 (variable_was_changed) Likewise.
18651 (set_slot_part) Likewise.
18652 (clobber_slot_part) Likewise.
18653 (delete_slot_part) Likewise.
18654 (loc_exp_insert_dep) Likewise.
18655 (notify_dependents_of_changed_value) Likewise.
18656 (emit_notes_for_differences_1) Likewise.
18657 (vt_emit_notes) Likewise.
18658 (vt_initialize) Likewise.
18659 (vt_finalize) Likewise.
18661 2015-06-01 Martin Liska <mliska@suse.cz>
18663 * ira-color.c (init_update_cost_records):Use new type-based
18665 (get_update_cost_record) Likewise.
18666 (free_update_cost_record_list) Likewise.
18667 (finish_update_cost_records) Likewise.
18668 (initiate_cost_update) Likewise.
18670 2015-06-01 Martin Liska <mliska@suse.cz>
18672 * lra.c (init_insn_regs): Use new type-based pool allocator.
18673 (new_insn_reg) Likewise.
18674 (free_insn_reg) Likewise.
18675 (free_insn_regs) Likewise.
18676 (finish_insn_regs) Likewise.
18677 (init_insn_recog_data) Likewise.
18678 (init_reg_info) Likewise.
18679 (finish_reg_info) Likewise.
18680 (lra_free_copies) Likewise.
18681 (lra_create_copy) Likewise.
18682 (invalidate_insn_data_regno_info) Likewise.
18684 2015-06-01 Martin Liska <mliska@suse.cz>
18686 * lra-lives.c (free_live_range): Use new type-based pool allocator.
18687 (free_live_range_list) Likewise.
18688 (create_live_range) Likewise.
18689 (copy_live_range) Likewise.
18690 (lra_merge_live_ranges) Likewise.
18691 (remove_some_program_points_and_update_live_ranges) Likewise.
18692 (lra_live_ranges_init) Likewise.
18693 (lra_live_ranges_finish) Likewise.
18695 2015-06-01 Martin Liska <mliska@suse.cz>
18697 * et-forest.c (et_new_occ): Use new type-based pool allocator.
18698 (et_new_tree): Likewise.
18699 (et_free_tree): Likewise.
18700 (et_free_tree_force): Likewise.
18701 (et_free_pools): Likewise.
18702 (et_split): Likewise.
18704 2015-06-01 Martin Liska <mliska@suse.cz>
18706 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
18708 * alloc-pool.h (pool_allocator::pool_allocator): New function.
18709 (pool_allocator::release): Likewise.
18710 (inline pool_allocator::release_if_empty): Likewise.
18711 (inline pool_allocator::~pool_allocator): Likewise.
18712 (pool_allocator::allocate): Likewise.
18713 (pool_allocator::remove): Likewise.
18715 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18717 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
18720 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18722 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
18724 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
18725 (arm_macro_fusion_p): Likewise.
18726 (arm_macro_fusion_pair_p): Likewise.
18728 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18730 * config/aarch64/aarch64-protos.h (tune_params): Rename
18731 fuseable_ops to fusible_ops.
18732 * config/aarch64/aarch64.c (generic_tunings): Rename
18733 fuseable_ops to fusible_ops.
18734 (cortexa53_tunings): Likewise.
18735 (cortexa57_tunings): Likewise.
18736 (thunderx_tunings): Likewise.
18737 (xgene1_tunings): Likewise.
18738 (aarch64_macro_fusion_p): Likewise.
18739 (aarch64_macro_fusion_pair_p): Likewise.
18741 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
18743 * config/s390/driver-native.c: New file.
18744 * config/s390/x-native: New file.
18745 * config.host: Add new files for s390.
18746 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
18748 * config.gcc: Likewise.
18749 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
18750 * config/s390/s390-opts.h (enum processor_type): Ditto.
18751 * config/s390/s390.c (s390_option_override): Catch unhandled
18754 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
18757 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
18758 redirection for instrumented calls.
18759 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
18760 (append_compiler_options): Append -fcheck-pointer-bounds.
18761 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
18762 (chkp_redirect_edge): New.
18763 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
18764 (chkp_redirect_edge): New.
18766 2015-06-01 Richard Biener <rguenther@suse.de>
18768 PR tree-optimization/66280
18769 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
18772 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18774 * config/aarch64/aarch64.md
18775 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
18778 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18780 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
18781 Remove obsolete kludge.
18783 2015-06-01 Richard Biener <rguenther@suse.de>
18785 * tree-ssa-reassoc.c (get_rank): Simplify.
18787 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
18789 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
18790 * configure: Regenerated.
18792 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
18794 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18795 issue (add space between string literal and macro).
18796 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
18798 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
18800 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
18801 implict or explicit -fPIE or -fpie.
18803 2015-05-30 Mike Frysinger <vapier@gentoo.org>
18805 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
18807 2015-05-28 DJ Delorie <dj@redhat.com>
18809 * expmed.c (extract_bit_field_1): Avoid clobbering a
18810 yet-to-be-used base/index register.
18812 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
18814 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
18815 (alias_stats): Add num_universal.
18816 (alias_set_subset_of): Special case pointers; be ready for NULL
18818 (alias_sets_conflict_p): Special case pointers; be ready for NULL
18820 (init_alias_set_entry): Break out from ...
18821 (record_alias_subset): ... here; propagate new fields;
18822 allocate children only when really needed.
18823 (get_alias_set): Do less generous pointer globbing.
18824 (dump_alias_stats_in_alias_c): Update statistics.
18826 2015-05-30 Alan Modra <amodra@gmail.com>
18828 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
18829 correct block for use of r12.
18830 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
18832 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18835 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
18838 2015-05-29 Jakub Jelinek <jakub@redhat.com>
18840 PR tree-optimization/66142
18841 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
18842 virtual phis that feed themselves.
18844 2015-05-29 Richard Biener <rguenther@suse.de>
18846 PR tree-optimization/66314
18847 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18848 parameter that says which loop the new block belongs to.
18849 (ssa_create_duplicates): Blocks duplicated for the threaded
18850 path belong to the loop of the thread destination.
18852 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18854 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
18855 to cleanup-saved-temps.
18856 * doc/sourcebuild.texi (Clean up generated test files): Expand
18858 (dg-keep-saved-temps): Document new proc.
18859 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
18860 cleanup-saved-temps): Remove.
18862 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
18864 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
18865 gcc_AC_CHECK_DECLS.
18866 * configure: Regenerate.
18868 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18870 * config/nios2/linux.h (CPP_SPEC): Define.
18872 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18874 * config/microblaze/linux.h (CPP_SPEC): Define.
18876 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18878 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
18879 -pthread is specified.
18881 2015-05-28 Richard Biener <rguenther@suse.de>
18883 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
18884 (vect_fixup_scalar_cycles_with_patterns): Likewise.
18885 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
18886 after pattern recog.
18887 (vect_create_epilog_for_reduction): Properly handle reductions
18889 (vectorizable_reduction): Likewise.
18890 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
18892 (vect_get_constant_vectors): Create the correct number of
18893 initial values for reductions.
18894 (vect_schedule_slp_instance): Handle reduction chains that are
18895 type changing properly.
18896 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
18898 2015-05-28 Richard Biener <rguenther@suse.de>
18900 PR tree-optimization/66142
18901 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
18902 values better in memcpy destination handling. Handle non-aliasing
18905 2015-05-28 Lawrence Velázquez <vq@larryv.me>
18908 * config/darwin-c.c (version_components): New global enum.
18909 (parse_version, version_as_legacy_macro)
18910 (version_as_modern_macro, macosx_version_as_macro): New functions.
18911 (version_as_macro): Remove.
18912 (darwin_cpp_builtins): Use new function.
18914 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
18916 * builtins.c (expand_builtin_acc_on_device): Mark parameters
18917 with ATTRIBUTE_UNUSED.
18919 2015-05-28 Julian Brown <julian@codesourcery.com>
18923 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
18924 sequence for !ACCEL_COMPILER.
18926 2015-05-28 Nick Clifton <nickc@redhat.com>
18928 * config/rx/rx.c (push_regs): New function. Extracts code from...
18929 (rx_expand_prologue): ... here. Use push_regs to push even small
18930 spans of registers.
18931 (pop_regs): New function.
18932 (rx_expand_epilogue): Use pop_regs to pop even small spans of
18935 2015-05-28 Richard Biener <rguenther@suse.de>
18937 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
18939 (SLP_INSTANCE_BODY_COST_VEC): Remove.
18940 (vect_update_slp_costs_according_to_vf): Likewise.
18941 (vect_slp_analyze_operations): Update prototype.
18942 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
18943 vect_update_slp_costs_according_to_vf, adjust.
18944 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
18945 (vect_analyze_slp_cost_1): Likewise.
18946 (vect_analyze_slp_cost): Likewise. Properly deal with
18947 widening reduction ops. Commit body costs.
18948 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
18949 cost for loops from here.
18950 (vect_slp_analyze_operations): But do it from here when
18951 the vectorization factor is known and stmts are analyzed.
18952 (vect_bb_vectorization_profitable_p): Simplify.
18953 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
18954 (vect_update_slp_costs_according_to_vf): Remove.
18956 2015-05-27 Magnus Granberg <zorry@gentoo.org>
18957 H.J. Lu <hongjiu.lu@intel.com>
18959 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
18960 (BUILD_CFLAGS): Likewise.
18961 (BUILD_CXXFLAGS): Likewise.
18962 (LINKER): Add @NO_PIE_FLAG@.
18963 (BUILD_LDFLAGS): Likewise.
18964 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
18965 --enable-default-pie.
18966 * common.opt (fPIE): Initialize to -1.
18968 (no-pie): New option.
18969 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
18970 * configure.ac: Add --enable-default-pie.
18971 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
18972 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
18973 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
18974 * gcc.c (NO_PIE_SPEC): New.
18975 (PIE_SPEC): Likewise.
18976 (NO_FPIE1_SPEC): Likewise.
18977 (FPIE1_SPEC): Likewise.
18978 (NO_FPIE2_SPEC): Likewise.
18979 (FPIE2_SPEC): Likewise.
18980 (NO_FPIE2_SPEC): Likewise.
18981 (FPIE_SPEC): Likewise.
18982 (NO_FPIE_SPEC): Likewise.
18983 (NO_FPIC1_SPEC): Likewise.
18984 (FPIC1_SPEC): Likewise.
18985 (NO_FPIC2_SPEC): Likewise.
18986 (FPIC2_SPEC): Likewise.
18987 (NO_FPIC2_SPEC): Likewise.
18988 (FPIC_SPEC): Likewise.
18989 (NO_FPIC_SPEC): Likewise.
18990 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
18991 (FPIE1_OR_FPIC1_SPEC): Likewise.
18992 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
18993 (FPIE2_OR_FPIC2_SPEC): Likewise.
18994 (NO_FPIE_AND_FPIC_SPEC): Likewise.
18995 (FPIE_OR_FPIC_SPEC): Likewise.
18996 (LD_PIE_SPEC): Likewise.
18997 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
18998 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
18999 * config/darwin.h (PIE_SPEC): Renamed to ...
19000 (DARWIN_PIE_SPEC): This.
19001 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19002 * config/darwin9.h (PIE_SPEC): Renamed to ...
19003 (DARWIN_PIE_SPEC): This.
19004 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19005 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19006 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19007 FPIE2_OR_FPIC2_SPEC.
19008 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19009 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19010 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19011 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19012 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19013 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19014 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19015 * config/m32r/m32r.h (ASM_SPEC): Likewise.
19016 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19017 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19018 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19019 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19020 * config/sparc/linux.h (ASM_SPEC): Likewise.
19021 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19022 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19023 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19024 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19025 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19026 * config/sparc/sparc.h (ASM_SPEC): Likewise.
19027 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19028 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19029 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19030 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19031 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19032 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19033 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19034 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19035 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19036 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19037 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19038 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19039 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19040 * config/vax/linux.h (ASM_SPEC): Likewise.
19041 * doc/install.texi: Document --enable-default-pie.
19042 * doc/invoke.texi: Document -no-pie.
19043 * config.in: Regenerated.
19044 * configure: Likewise.
19046 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19048 PR rtl-optimization/66168
19049 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19050 can_move_invariant_reg.
19052 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
19055 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19056 REG_EQUAL note when doing insert.
19058 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19059 instead of "%d" for 'o' operand.
19061 2015-05-27 Nathan Sidwell <nathan@acm.org>
19064 * tree.c (build_pointer_type_for_mode): Canonical type does not
19065 inherit can_alias_all.
19066 (build_reference_type_for_mode): Likewise.
19068 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
19070 * expr.h (array_at_struct_end_p): Move to...
19071 (array_ref_element_size): Likewise.
19072 (component_ref_field_offset): Likewise.
19073 * tree.h (array_ref_element_size): ...here.
19074 (array_at_struct_end_p): Likewise.
19075 (component_ref_field_offset): Likewise.
19076 * expr.c (array_ref_element_size): Move to...
19077 (array_ref_low_bound): Likewise.
19078 (array_at_struct_end_p): Likewise.
19079 (array_ref_up_bound): Likewise.
19080 (component_ref_field_offset): Likewise.
19081 * tree.c (array_ref_element_size): ...here.
19082 (array_ref_low_bound): Likewise.
19083 (array_ref_up_bound): Likewise.
19084 (array_at_struct_end_p): Likewise.
19085 (component_ref_field_offset): Likewise.
19087 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19088 Szabolcs Nagy <szabolcs.nagy@arm.com>
19090 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19092 2015-05-27 Jason Merrill <jason@redhat.com>
19095 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19096 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19097 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19099 2015-05-22 Aditya Kumar <hiraditya@msn.com>
19101 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19104 * statistics.c (statistics_fini_pass): Print pass name.
19106 2015-05-27 Richard Biener <rguenther@suse.de>
19108 PR tree-optimization/66272
19110 2014-08-15 Richard Biener <rguenther@suse.de>
19112 PR tree-optimization/62031
19113 * tree-data-ref.c (dr_analyze_indices): Do not set
19114 DR_UNCONSTRAINED_BASE.
19115 (dr_may_alias_p): All indirect accesses have to go the
19116 formerly DR_UNCONSTRAINED_BASE path.
19117 * tree-data-ref.h (struct indices): Remove
19118 unconstrained_base member.
19119 (DR_UNCONSTRAINED_BASE): Remove.
19121 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
19123 * dwarf2out.c: Remove block_map.
19124 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19125 (gen_lexical_block_die): Same.
19126 (dwarf2out_function_decl): Remove block_map use.
19127 (dwarf2out_c_finalize): Same.
19128 * tree-core.h (struct tree_block): Add die field.
19129 * tree.h (BLOCK_DIE): New.
19131 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19134 * expr.c (memory_load_overlap): New function.
19135 (emit_push_insn): When pushing partial args to the stack would
19136 clobber the register part load the overlapping part into a pseudo
19137 and put it into the hard reg after pushing. Change return type
19138 to bool. Add bool argument.
19139 * expr.h (emit_push_insn): Change return type to bool.
19141 * calls.c (expand_call): Cancel sibcall optimization when encountering
19142 partial argument on targets with ARGS_GROW_DOWNWARD and
19143 !STACK_GROWS_DOWNWARD.
19144 (emit_library_call_value_1): Update callsite of emit_push_insn.
19145 (store_one_arg): Likewise.
19147 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19149 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19151 2015-05-27 Martin Liska <mliska@suse.cz>
19153 * Makefile.in: Add additional dependencies related to memory report
19155 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19156 * bitmap.c (struct bitmap_descriptor_d): Remove.
19157 (struct loc): Likewise.
19158 (struct bitmap_desc_hasher): Likewise.
19159 (bitmap_desc_hasher::hash): Likewise.
19160 (bitmap_desc_hasher::equal): Likewise.
19161 (get_bitmap_descriptor): Likewise.
19162 (bitmap_register): User new memory descriptor API.
19163 (register_overhead): Likewise.
19164 (bitmap_find_bit): Register nsearches and search_iter statistics.
19165 (struct bitmap_output_info): Remove.
19166 (print_statistics): Likewise.
19167 (dump_bitmap_statistics): Use new memory descriptor.
19168 * bitmap.h (struct bitmap_usage): New class.
19169 * genmatch.c: Extend header file inclusion.
19170 * genpreds.c: Likewise.
19171 * ggc-common.c (struct ggc_usage): New class.
19172 (struct ggc_loc_desc_hasher): Remove.
19173 (ggc_loc_desc_hasher::hash): Likewise.
19174 (ggc_loc_desc_hasher::equal): Likewise.
19175 (struct ggc_ptr_hash_entry): Likewise.
19176 (struct ptr_hash_hasher): Likewise.
19177 (ptr_hash_hasher::hash): Likewise.
19178 (ptr_hash_hasher::equal): Likewise.
19179 (make_loc_descriptor): Likewise.
19180 (ggc_prune_ptr): Likewise.
19181 (dump_ggc_loc_statistics): Use new memory descriptor.
19182 (ggc_record_overhead): Likewise.
19183 (ggc_free_overhead): Likewise.
19184 (final_cmp_statistic): Remove.
19185 (cmp_statistic): Likewise.
19186 (ggc_add_statistics): Liekwise.
19187 (ggc_prune_overhead_list): Likewise.
19188 * hash-map-traits.h: New file.
19189 * hash-map.h (struct default_hashmap_traits): Move the traits to a
19190 separate header file.
19191 * hash-set.h: Pass memory statistics info to ctor.
19192 * hash-table.c (void dump_hash_table_loc_statistics): New function.
19193 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19194 (hash_table::~hash_table): Register memory release operation.
19195 (hash_table::alloc_entries): Handle memory allocation operation.
19196 (hash_table::expand): Likewise.
19197 * inchash.c (iterative_hash_hashval_t): Move implementation to header
19199 (iterative_hash_host_wide_int): Likewise.
19200 * inchash.h (class hash): Likewise.
19201 * mem-stats-traits.h: New file.
19202 * mem-stats.h: New file.
19203 (mem_location): Add new class.
19204 (mem_usage): Likewise.
19205 (mem_alloc_description): Likewise.
19206 * sese.c: Add new header file inclusision.
19207 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19209 * tree-sra.c: Add new header file inclusision.
19210 * vec.c (struct vec_descriptor): Remove.
19211 (hash_descriptor): Likewise.
19212 (struct vec_usage): Likewise.
19213 (struct ptr_hash_entry): Likewise.
19214 (hash_ptr): Likewise.
19215 (eq_ptr): Likewise.
19216 (vec_prefix::register_overhead): Use new memory descriptor API.
19217 (vec_prefix::release_overhead): Likewise.
19218 (add_statistics): Remove.
19219 (dump_vec_loc_statistics): Use new memory descriptor API.
19220 * vec.h (struct vec_prefix): Likewise.
19221 (va_heap::reserve): Likewise.
19222 (va_heap::release): Likewise.
19223 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19225 2015-05-27 Richard Biener <rguenther@suse.de>
19227 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19228 earlier and remove ??? comment.
19229 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19230 and got called from loop analysis bail out. Always pass the SLP
19231 node to the vectorizable_* functions.
19232 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19233 the premature SLP check here.
19234 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19235 detected SLP stmts.
19236 (vect_detect_hybrid_slp_1): Likewise.
19238 2015-05-26 Jeff Law <law@redhat.com>
19240 * combine.c (find_split_point): Verify that the shift count is a
19241 constant when choosing (plus (ashift ...)) as a split point.
19243 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19244 No functional changes.
19246 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
19248 * ipa-polymorphic-call.c
19249 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19250 case when call target is already known.
19252 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
19255 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19256 take into account the case that operands[1] and operands[2]
19257 are the same register.
19259 2015-05-26 Michael Matz <matz@suse.de>
19261 PR middle-end/66251
19263 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19265 (vect_create_vectorized_demotion_stmts): Always set
19266 STMT_VINFO_VEC_STMT, also with SLP.
19267 (vectorizable_store): Handle strided group stores.
19269 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19272 * config/aarch64/aarch64.md
19273 (*adds_shift_imm_<mode>): New pattern.
19274 (*subs_shift_imm_<mode>): Likewise.
19275 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19276 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19277 (*add_uxt<mode>_shift2): Likewise.
19278 (*add_uxtsi_shift2_uxtw): Likewise.
19279 (*sub_uxt<mode>_shift2): Likewise.
19280 (*sub_uxtsi_shift2_uxtw): Likewise.
19282 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
19284 * config/rs6000/constraints.md (Y, U): Use match_test.
19286 2015-05-26 Christian Bruel <christian.bruel@st.com>
19289 * config/arm/arm.c (arm_option_check_internal)
19290 (arm_option_params_internal): Check opts->target_flags to set macros.
19291 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19292 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19293 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19294 (builtin_define): Replaced with def_or_undef_macro.
19295 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19296 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19297 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19298 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19299 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19300 (TARGET_ARM_FEATURE_LDREX_P)
19301 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19302 * config/arm/arm-c.c (def_or_undef_macro): New function.
19303 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19305 2015-05-26 Christian Bruel <christian.bruel@st.com>
19307 * c-common.h (builtin_define_with_int_value)
19308 (builtin_define_type_sizeof): Declare.
19309 * c-cppbuiltin.c (builtin_define_with_int_value)
19310 (builtin_define_type_sizeof): Externalize.
19311 (builtin_define_std): Cleanup declaration.
19312 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19313 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19314 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19315 (builtin_define, builtin_assert): New macros.
19317 2015-05-26 Richard Biener <rguenther@suse.de>
19319 PR tree-optimization/66142
19320 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19321 MEM_REFs for the same base address.
19323 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19326 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19328 2015-05-26 Jason Merrill <jason@redhat.com>
19330 * configure.ac: Set CXXFLAGS for ISL test.
19331 * configure: Regenerate.
19333 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
19334 strstr and basename.
19335 * configure: Regenerate.
19337 2015-05-26 Richard Biener <rguenther@suse.de>
19339 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19340 X % C -> X & (C - 1) for C being a power-of two to ...
19341 * match.pd: ... patterns.
19343 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
19345 * match.pd (swapped_tcc_comparison): New operator list.
19346 (-A CMP -B): New simplification.
19347 * fold-const.c (fold_comparison): Remove corresponding code.
19349 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19351 * caller-save.c (init_caller_save): Base temporary register numbers
19352 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19353 * cfgloopanal.c (init_set_costs): Likewise.
19354 * dojump.c (prefer_and_bit_test): Likewise.
19355 * expr.c (init_expr_target): Likewise.
19356 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19357 * lower-subreg.c (init_lower_subreg): Likewise.
19358 * postreload.c (reload_cse_regs_1): Likewise.
19360 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19362 * gensupport.h (compute_test_codes): Declare.
19363 * gensupport.c (compute_predicate_codes): Rename to...
19364 (compute_test_codes): ...this. Generalize error message.
19365 (process_define_predicate): Update accordingly.
19366 * genpreds.c (compute_maybe_allows): Delete.
19367 (add_constraint): Use compute_test_codes to determine whether
19368 something can accept a SUBREG, REG or MEM.
19370 2015-05-26 Torvald Riegel <triegel@redhat.com>
19372 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19373 'memory model' to align with C++11; fix description of memory orders;
19376 2015-05-26 Richard Biener <rguenther@suse.de>
19378 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19379 (vect_analyze_loop_operations): ... here. Remove slp parameter,
19380 detect whether we apply SLP. Remove call to
19381 vect_update_slp_costs_according_to_vf.
19382 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19383 vect_update_slp_costs_according_to_vf from here. Dispatch
19384 to vect_slp_analyze_operations to analyze SLP stmts.
19385 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19386 unused bb_vec_info parameter, adjust assert.
19387 (vect_slp_analyze_operations): Pass in the slp instance tree
19388 instead of bb_vec_info.
19389 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19390 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19392 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19394 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19395 Q_REGS. Expand comment.
19396 (REG_CLASS_NAMES): Ditto.
19397 (REG_CLASS_CONTENTS): Ditto.
19399 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
19402 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19403 when LEGACY_INT_REGNO_P is processed.
19405 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19407 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19409 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19411 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19412 register if not marked dead/unused, before return.
19414 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19417 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19418 is set; check for assembler name at LTO time.
19419 (type_in_anonymous_namespace): Remove hacks, check that all
19420 anonymous types are called "<anon>"
19421 (odr_type_p): Simplify; add check for "<anon>"
19422 (odr_subtypes_equivalent): Add odr_type_p check.
19423 * tree.c (need_assembler_name_p): Even anonymous namespace needs
19426 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19428 * ipa-utils.h (method_class_type): Remove.
19429 * cgraphunit.c (walk_polymorphic_call_targets): Use
19430 TYPE_METHOD_BASETYPE.
19431 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
19432 on main variants only.
19433 (method_class_type): Remove.
19434 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
19435 (build_type_inheritance_graph): Likewise.
19436 * ipa-icf.c (sem_function::equals_wpa): Likewise.
19437 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
19438 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
19440 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19442 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
19443 is_typedef_decl, typedef_variant_p): Constify.
19444 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
19445 is_typedef_decl, typedef_variant_p): Constify.
19447 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19449 * defaults.h (gen_tablejump): New function.
19450 (HAVE_tablejump): Add default value.
19452 * stmt.c: Likewise.
19454 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19456 * defaults.h (gen_store_multiple): New function.
19457 (HAVE_store_multiple): Add default value.
19458 * expr.c (move_block_from_reg): Adjust.
19460 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19462 * defaults.h (gen_load_multiple): New function.
19463 (HAVE_load_multiple): Add default value.
19464 * expr.c (move_block_to_reg): Adjust.
19466 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19468 * defaults.h (gen_mem_signal_fence): New function.
19469 (HAVE_mem_signal_fence): Add default value.
19470 * optabs.c: Adjust.
19472 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19474 * defaults.h (gen_memory_barrier): New function.
19475 (HAVE_memory_barrier): Add default value.
19476 * optabs.c: Adjust.
19478 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19480 * defaults.h (gen_mem_thread_fence): New function.
19481 (HAVE_mem_thread_fence): Add default definition.
19482 * optabs.c: Adjust.
19484 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19486 * combine.c (find_split_point): Check the value of HAVE_lo_sum
19487 instead of if it is defined.
19488 (combine_simplify_rtx): Likewise.
19489 * lra-constraints.c (process_address_1): Likewise.
19490 * config/darwin.c: Adjust.
19491 * genconfig.c (main): Always define HAVE_lo_sum.
19493 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19495 * genmatch.c (parser::parse_operation): Reject expanding
19496 operator-list inside 'for'.
19498 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19500 * genmatch.c (parser::parse_for): Reject iterator if used as
19503 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19505 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
19506 after end of id-list.
19508 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19510 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
19511 we do not try to compute canonical type for type that does not need
19513 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
19515 * tree.h (type_with_alias_set_p): New.
19517 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19519 * tree.c (gimple_canonical_types_compatible_p): Do not compare
19520 function attributes.
19521 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
19523 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
19525 * Makefile.in (check_gcc_parallelize): Delete.
19526 (lang_checks_parallelized): Update comment.
19528 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
19530 PR rtl-optimization/66237
19531 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
19532 location of an "as_a" cast.
19534 2015-05-22 Jeff Law <law@redhat.com>
19536 * config/pa/pa.md (non-canonical shift-add insns): Remove.
19537 (peepholes with non-canonical RTL sources): Remove.
19538 (peepholes for indexed stores of FP regs in integer modes): Match and
19539 generate canonical RTL.
19541 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19543 PR tree-optimization/63387
19544 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
19545 ((x ord x) & (y ord y) -> (x ord y),
19546 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
19547 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
19548 vectors like scalars.
19550 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19552 * convert.c (convert_to_integer, convert_to_vector): Include the
19553 types in the error message.
19555 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19557 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
19560 2015-05-22 Jeff Law <law@redhat.com>
19562 * config/pa/pa.md (integer_indexed_store splitters): Use
19563 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
19564 insns -- adjusting the constant 2nd operand accordingly.
19566 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
19567 (plus (ashift X log2) Y) if it is a split point.
19569 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
19570 out of hppa_legitimize_address to handle both forms of a multiply
19572 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
19573 Always generate the ASHIFT variant as the result is not directly
19574 used in a MEM. Update comments and refactor slightly to improve
19577 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19580 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
19581 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
19582 (aarch64_composite_type_p): Return false if given type and mode are
19583 for a short vector.
19585 2015-05-22 Richard Biener <rguenther@suse.de>
19587 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
19589 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
19590 patterns when determining whether SLP is pure.
19591 (vect_is_slp_reduction): Remove check for pattern stmts.
19592 (vect_is_simple_reduction_1): Remove dead code.
19593 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
19594 (vect_get_and_check_slp_defs): Pass in the stmt number.
19595 Allow the first def in a reduction to be not a pattern stmt when
19596 the rest of the stmts def are patterns.
19597 (vect_build_slp_tree_1): Allow tcc_expression codes like
19598 SAD_EXPR and DOT_PROD_EXPR.
19599 (vect_build_slp_tree): Adjust.
19600 (vect_analyze_slp): Refactor and move BB vect error message ...
19601 (vect_slp_analyze_bb_1): ... here.
19603 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
19605 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
19606 for CSWTCH temporary.
19608 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19610 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
19611 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
19614 2015-05-22 Richard Biener <rguenther@suse.de>
19616 PR tree-optimization/66251
19617 * tree-vect-stmts.c (vectorizable_conversion): Properly
19618 set STMT_VINFO_VEC_STMT even for the SLP case.
19620 2015-05-22 Marek Polacek <polacek@redhat.com>
19622 * doc/extend.texi: Use @pxref instead of @xref.
19624 2015-05-22 hiraditya <hiraditya@msn.com>
19626 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
19629 2015-05-22 Richard Biener <rguenther@suse.de>
19631 PR tree-optimization/65701
19632 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19633 Move peeling cost models into one place. Peel for alignment
19634 for single loads only if an aligned load is cheaper than
19637 2015-05-22 Marek Polacek <polacek@redhat.com>
19640 * doc/extend.texi (Enumerator Attributes): New section.
19641 Document syntax of enumerator attributes.
19643 2015-05-22 Richard Biener <rguenther@suse.de>
19645 * tree-vect-loop.c (get_reduction_op): New function.
19646 (vect_model_reduction_cost): Use it, add reduc_index parameter.
19647 Make ready for BB reductions.
19648 (vect_create_epilog_for_reduction): Use get_reduction_op.
19649 (vectorizable_reduction): Init reduc_index to a valid value.
19650 Adjust vect_model_reduction_cost call.
19651 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
19652 operand for reduction defaults. Add SAD_EXPR support.
19653 Assert we have a neutral op for SLP reductions.
19654 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
19655 walking pattern stmt ops only recurse to SSA names.
19657 2015-05-22 Richard Biener <rguenther@suse.de>
19659 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
19660 assert with guard, remove check on detected reduction.
19661 (vect_recog_sad_pattern): Likewise.
19662 (vect_recog_widen_sum_pattern): Likewise.
19664 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19666 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
19667 __always_inline__ attribute.
19668 (vaesdq_u8): Likewise.
19669 (vaesmcq_u8): Likewise.
19670 (vaesimcq_u8): Likewise.
19671 (vsha1cq_u32): Likewise.
19672 (vsha1mq_u32): Likewise.
19673 (vsha1pq_u32): Likewise.
19674 (vsha1h_u32): Likewise.
19675 (vsha1su0q_u32): Likewise.
19676 (vsha1su1q_u32): Likewise.
19677 (vsha256hq_u32): Likewise.
19678 (vsha256h2q_u32): Likewise.
19679 (vsha256su0q_u32): Likewise.
19680 (vsha256su1q_u32): Likewise.
19681 (vmull_p64): Likewise.
19682 (vmull_high_p64): Likewise.
19684 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19686 * final.c (final_scan_insn): Don't check HAVE_peephole with the
19688 * output.h: Likewise.
19689 * genconfig.c (main): Alwways define HAVE_peephole.
19690 * genpeep.c: Don't emit checks of HAVE_peephole.
19692 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19694 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
19695 check HAVE_conditional_move with the preprocessor.
19697 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19699 * genconfig.c (main): Always define HAVE_conditional_move.
19700 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
19701 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
19704 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19706 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
19707 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
19708 and FRAME_POINTER_REGNUM with the preprocessor.
19710 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19712 * defaults.h: Add default for STACK_PUSH_CODE.
19713 * expr.c: Don't redefine STACK_PUSH_CODE.
19714 * recog.c: Likewise.
19716 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19718 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
19719 sched-deps.c: Use if instead of preprocessor checks with
19720 STACK_GROWS_DOWNWARD.
19722 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19724 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
19726 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
19727 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
19728 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
19729 * doc/tm.texi: Regenerate.
19731 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
19734 * config/i386/constraints.md (Bg): New constraint for GOT memory
19736 * config/i386/i386.md (*call_got_x32): New pattern.
19737 (*call_value_got_x32): Likewise.
19738 * config/i386/predicates.md (GOT_memory_operand): New predicate.
19740 2015-05-21 Jakub Jelinek <jakub@redhat.com>
19742 PR tree-optimization/66233
19743 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
19746 2015-05-21 Jeff Law <law@redhat.com>
19748 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
19749 than MULT for shadd sequences.
19751 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
19753 * alias.c (alias_stats): New static var.
19754 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
19755 (dump_alias_stats_in_alias_c): New function.
19756 * alias.h (dump_alias_stats_in_alias_c): Declare.
19757 * tree-ssa-alias.c (dump_alias_stats): Call it.
19759 2015-05-08 Michael Matz <matz@suse.de>
19761 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
19763 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
19764 (STMT_VINFO_STRIDED_P): ... this.
19765 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
19766 (vect_verify_datarefs_alignment): Likewise.
19767 (vect_enhance_data_refs_alignment): Likewise.
19768 (vect_analyze_data_ref_access): Likewise.
19769 (vect_analyze_data_refs): Accept strided stores.
19770 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
19771 (vect_model_load_cost): Adjust for macro rename.
19772 (vectorizable_mask_load_store): Likewise.
19773 (vectorizable_load): Likewise.
19774 (vectorizable_store): Open code strided stores.
19776 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19778 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
19779 Document sqrt_insn.
19781 2015-05-21 Richard Biener <rguenther@suse.de>
19784 * match.pd: Guard pattern optimzing (int)(float)int
19785 conversions to apply only on GIMPLE.
19787 2015-05-21 Jeff Law <law@redhat.com>
19789 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
19790 multiply-accumulate/shift-add insn generation.
19792 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19795 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
19796 operands[1] are the same.
19798 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
19800 PR middle-end/66221
19801 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
19802 build_distinct_type_copy to copy bounds.
19804 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
19806 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
19807 Change to unsigned int.
19809 2015-05-20 Jeff Law <law@redhat.com>
19811 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
19812 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
19813 (pa_shadd_constant_p): Allow constants for shadd insns rather
19814 than valid scaling constants for memory addresses.
19815 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
19816 * config/pa/predicates.md (mem_shadd_operand): New predicate.
19817 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
19818 (shift-add insns using ASHIFT): New patterns.
19820 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
19822 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
19824 (fix_up_fall_thru_edges): Likewise.
19825 (fix_crossing_conditional_branches): Likewise. Promote jump targets
19826 from to rtx_insn to rtx_code_label where feasible.
19827 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
19828 gen_move_insn (returned type changed to rtx_insn).
19829 * builtins.c (expand_errno_check): Fix arguments of
19830 do_compare_rtx_and_jump (now expects rtx_code_label).
19831 (expand_builtin_acc_on_device): Likewise.
19832 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
19833 invert_jump (now exprects rtx_jump_insn).
19834 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
19835 (construct_init_block): Use rtx_code_label.
19836 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
19837 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
19838 calling redirect_jump.
19839 (patch_jump_insn): Likewise.
19840 (redirect_branch_edge): Likewise.
19841 (force_nonfallthru_and_redirect): Likewise.
19842 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
19844 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
19845 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
19846 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
19847 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
19848 to store the value retured by gen_label_rtx.
19849 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
19851 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
19852 (split_branches): Fix calls of redirect_jump.
19853 * dojump.c (jumpifnot): Promote argument type from rtx to
19855 (jumpifnot_1): Likewise.
19856 (jumpif): Likewise.
19857 (jumpif_1): Likewise.
19858 (do_jump_1): Likewise.
19859 (do_jump): Likewise. Use rtx_code_label when feasible.
19860 (do_jump_by_parts_greater_rtx): Likewise.
19861 (do_jump_by_parts_zero_rtx): Likewise.
19862 (do_jump_by_parts_equality_rtx): Likewise.
19863 (do_compare_rtx_and_jump): Likewise.
19864 * dojump.h: Update function prototypes.
19865 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
19867 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
19869 (emit_label_before): Likewise.
19870 (emit_jump_insn_after_noloc): Likewise.
19871 (emit_jump_insn_after_setloc): Likewise.
19872 (emit_jump_insn_after): Likewise
19873 (emit_jump_insn_before_setloc): Likewise.
19874 (emit_jump_insn_before): Likewise.
19875 (emit_label_before): Promote return type to rtx_code_label.
19876 (emit_label): Likewise.
19877 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
19878 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
19880 (emit_stack_restore): Likewise.
19881 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
19882 (do_cmp_and_jump): Likewise.
19883 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
19884 from rtx to rtx_code_label.
19885 (gen_move_insn_uncast): New function.
19886 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
19887 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
19888 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
19889 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
19890 invert_jump_1 and redirect_jump_1.
19891 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
19892 do_compare_rtx_and_jump.
19893 (expand_addsub_overflow): Likewise.
19894 (expand_neg_overflow): Likewise.
19895 (expand_mul_overflow): Likewise.
19896 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
19897 return value of gen_move_insn.
19898 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
19899 * loop-doloop.c (add_test): Use rtx_code_label.
19900 (doloop_modify): Likewise.
19901 (doloop_optimize): Likewise.
19902 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
19903 * lra-constraints.c (emit_spill_move): Remove cast of value returned
19905 (inherit_reload_reg): Add cast when calling dump_insn_slim.
19906 (split_reg): Likewise.
19907 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
19909 * optabs.c (expand_binop_directly): Remove casts of values returned by
19911 (expand_unop_direct): Likewise.
19912 (expand_abs): Likewise.
19913 (maybe_emit_unop_insn): Likewise.
19914 (maybe_gen_insn): Promote return type to rtx_insn.
19915 * optabs.h: Update prototype of maybe_gen_insn.
19916 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
19918 * recog.c (struct peep2_insn_data): Promote type of insn field to
19920 (peep2_reinit_state): Use NULL instead of NULL_RTX.
19921 (peep2_attempt): Remove casts of insn in peep2_insn_data.
19922 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
19923 * recog.h (struct insn_gen_fn): Promote return types of function
19924 pointers and operator ().from rtx to rtx_insn.
19925 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
19926 (fill_eager_delay_slots): Likewise.
19927 (relax_delay_slots): Likewise.
19928 (make_return_insns): Likewise.
19929 (dbr_schedule): Likewise.
19930 (optimize_skips): Likewise.
19931 (reorg_redirect_jump): Likewise.
19932 (fill_slots_from_thread): Likewise.
19933 * reorg.h: Update prototypes.
19934 * resource.c (find_dead_or_set_registers): Use dyn_cast to
19935 rtx_jump_insn instead of check. Use it's jump_target method.
19936 * rtl.h (rtx_jump_insn::jump_label): Define new method.
19937 (rtx_jump_insn::jump_target): Define new method.
19938 (rtx_jump_insn::set_jump_target): Define new method.
19939 * rtlanal.c (tablejump_p): Promote type of one local variable.
19940 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
19941 (sched_analyze_insn): Likewise.
19942 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
19943 (print_insn): Likewise.
19944 * stmt.c (label_rtx): Promote return type to rtx_insn.
19945 (force_label_rtx): Likewise.
19946 (jump_target_rtx): Define new function.
19947 (expand_label): Use it, get rid of one cast.
19948 (expand_naked_return): Promote rtx to rtx_code_label.
19949 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
19950 (expand_case): Use rtx_code_label instread of rtx where feasible.
19951 (expand_sjlj_dispatch_table): Likewise.
19952 (emit_case_nodes): Likewise.
19953 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
19954 * store-motion.c (insert_store): Make use of new return type of
19955 gen_move_insn and remove a cast.
19956 (replace_store_insn): Likewise.
19958 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
19960 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
19961 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
19963 2015-05-20 Jeff Law <law@redhat.com>
19965 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
19966 dispose of the jump thread path when the jump threading
19967 opportunity is cancelled.
19969 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19971 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
19972 when printing the caret character.
19974 2015-05-20 Marek Polacek <polacek@redhat.com>
19976 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
19978 2015-05-20 Marek Polacek <polacek@redhat.com>
19980 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
19981 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
19982 * gimple-fold.c (canonicalize_bool): Likewise.
19983 (same_bool_result_p): Likewise.
19984 * tree-if-conv.c (parse_predicate): Likewise.
19986 2015-05-20 Marek Polacek <polacek@redhat.com>
19988 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
19989 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
19991 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19993 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
19994 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
19997 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
19999 * config/mips/mips.h (micromips_globals): Declare.
20001 2015-05-20 David Malcolm <dmalcolm@redhat.com>
20003 * timevar.def (TV_INITIALIZE_RTL): New.
20004 * toplev.c (initialize_rtl): Use an auto_timevar to account this
20005 function's time to TV_INITIALIZE_RTL.
20007 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
20009 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20010 gimple_build_nop calls.
20011 (chkp_find_bounds_for_elem): Likewise.
20012 (chkp_get_zero_bounds): Likewise.
20013 (chkp_get_none_bounds): Likewise.
20014 (chkp_get_bounds_by_definition): Likewise.
20015 (chkp_generate_extern_var_bounds): Likewise.
20016 (chkp_get_bounds_for_decl_addr): Likewise.
20017 (chkp_get_bounds_for_string_cst): Likewise.
20019 2015-05-20 Bin Cheng <bin.cheng@arm.com>
20021 PR tree-optimization/65447
20022 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20023 (dump_use, dump_uses): Support to dump sub use.
20024 (record_use): New parameters to support sub use. Remove call to
20026 (record_sub_use, record_group_use): New functions.
20027 (compute_max_addr_offset, split_all_small_groups): New functions.
20028 (group_address_uses, rewrite_use_address): New functions.
20029 (strip_offset): New declaration.
20030 (find_interesting_uses_address): Call record_group_use.
20031 (add_candidate): New assertion.
20032 (infinite_cost_p): Move definition forward.
20033 (add_costs): Check INFTY cost and return immediately.
20034 (get_computation_cost_at): Clear setup cost and dependent bitmap
20036 (determine_use_iv_cost_address): Compute cost for sub uses.
20037 (rewrite_use_address_1): Rename from old rewrite_use_address.
20038 (free_loop_data): Free sub uses.
20039 (tree_ssa_iv_optimize_loop): Call group_address_uses.
20041 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20042 Jim Wilson <jim.wilson@linaro.org>
20044 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20045 new fields loadv and storev.
20046 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20047 Initialize loadv and storev.
20048 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20049 (cortexa53_extra_costs): Likewise.
20050 (cortexa57_extra_costs): Likewise.
20051 (xgene1_extra_costs): Likewise.
20052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20055 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20057 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20059 (cortexa8_extra_costs): Likewise.
20060 (cortexa5_extra_costs): Likewise.
20061 (cortexa7_extra_costs): Likewise.
20062 (cortexa12_extra_costs): Likewise.
20063 (cortexa15_extra_costs): Likewise.
20064 (v7m_extra_costs): Likewise.
20066 2015-05-20 Jeff Law <law@redhat.com>
20068 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20069 instead of open-coded version. Also delete the jump thread created
20070 within this function.
20072 2015-05-20 Alan Modra <amodra@gmail.com>
20074 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20075 stack adjusting insn. Formatting.
20076 (rs6000_emit_prologue): Track stack adjusting insn, and use of
20077 r12. If possible, emit first -fsplit-stack arg pointer insn
20078 before stack adjust. Don't use r12 to save cr if split-stack.
20080 2015-05-20 Alan Modra <amodra@gmail.com>
20082 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20084 (rs6000_supports_split_stack): New function.
20085 * gcc/config/rs6000/rs6000.c (machine_function): Add
20086 split_stack_arg_pointer.
20087 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20088 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20089 rather than virtual_incoming_args_rtx.
20090 (rs6000_va_start): Likewise.
20091 (split_stack_arg_pointer_used_p): New function.
20092 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20093 (morestack_ref): New var.
20094 (gen_add3_const, rs6000_expand_split_stack_prologue,
20095 rs6000_internal_arg_pointer, rs6000_live_on_entry,
20096 rs6000_split_stack_space_check): New functions.
20097 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20098 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20099 (UNSPECV_SPLIT_STACK_RETURN): Define.
20100 (split_stack_prologue, load_split_stack_limit,
20101 load_split_stack_limit_di, load_split_stack_limit_si,
20102 split_stack_return, split_stack_space_check): New expands and insns.
20103 * gcc/config/rs6000/rs6000-protos.h
20104 (rs6000_expand_split_stack_prologue): Declare.
20105 (rs6000_split_stack_space_check): Declare.
20107 2015-05-20 Alan Modra <amodra@gmail.com>
20109 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20110 (direct_return): Test vrsave_size rather than vrsave_mask.
20111 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
20112 (rs6000_emit_epilogue): Likewise.
20114 2015-05-20 Alan Modra <amodra@gmail.com>
20116 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20117 when not saving registers.
20118 (debug_stack_info): Adjust to omit printing unused offsets,
20120 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20123 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20126 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20127 value_type to const char *.
20129 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
20131 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20132 to build a biarch toolchain again.
20134 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20136 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20137 or implicit declarations.
20138 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20140 (get_odr_type): Check type has linkage before adding bases.
20141 (register_odr_type): Check that type has linkage before adding it.
20142 (type_known_to_have_no_deriavations_p): Rename to ..
20143 (type_known_to_have_no_derivations_p): This one.
20144 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20145 (type_known_to_have_no_derivations_p): This one.
20146 * ipa-polymorphic-call.c
20147 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20150 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20152 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20153 (layout_type): Use RECORD_OR_UNION_TYPE_P.
20155 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20157 * config/s390/s390.c (s390_vector_bool_type_p): New function.
20158 (s390_invalid_binary_op): New function.
20159 (TARGET_INVALID_BINARY_OP): Define macro.
20161 2015-05-19 David Sherwood <david.sherwood@arm.com>
20163 * loop-invariant.c (create_new_invariant): Don't calculate address cost
20164 if mode is not a scalar integer.
20165 (get_inv_cost): Increase computational cost for unused invariants.
20167 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20169 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
20170 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
20171 * config/s390/s390-builtin-types.def: New file.
20172 * config/s390/s390-builtins.def: New file.
20173 * config/s390/s390-builtins.h: New file.
20174 * config/s390/s390-c.c: New file.
20175 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20176 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20177 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20178 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20180 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20182 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20183 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20184 variable definitions.
20185 (s390_const_operand_ok): New function.
20186 (s390_expand_builtin): Rewrite.
20187 (s390_init_builtins): New function.
20188 (s390_handle_vectorbool_attribute): New function.
20189 (s390_attribute_table): Add s390_vector_bool attribute.
20190 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20191 (s390_branch_condition_mask): Generate masks for new modes.
20192 (s390_expand_vec_compare_cc): New function.
20193 (s390_mangle_type): Add mangling for vector bool types.
20194 (enum s390_builtin): Remove.
20195 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20197 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20198 s390_cpu_cpp_builtins.
20199 (REGISTER_TARGET_PRAGMAS): New macro.
20200 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20201 (insn_cmp mode attribute): Add new CC modes.
20202 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20203 (lcbb): New pattern definition.
20204 * config/s390/s390intrin.h: Include vecintrin.h.
20205 * config/s390/t-s390: New file.
20206 * config/s390/vecintrin.h: New file.
20207 * config/s390/vector.md: Include vx-builtins.md.
20208 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20211 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20213 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20215 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20216 (s390_select_ccmode): Likewise.
20217 (s390_canonicalize_comparison): Swap operands if necessary.
20218 (s390_expand_vec_compare_scalar): Expand DFmode compare using
20219 single element vector instructions.
20220 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20221 (s390_branch_condition_mask): Generate CC masks for the new modes.
20222 * config/s390/s390.md (v0, vf, vd): New mode attributes.
20223 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20224 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20225 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20226 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20227 (*extend<DSF:mode><BFP:mode>2): New insn definition.
20228 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20229 (extend<DSF:mode><BFP:mode>2): Turn into expander.
20230 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20231 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20232 (sqrt<mode>2): Add vector instruction.
20234 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20236 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20238 * config/s390/predicates.md (const0_operand, constm1_operand)
20239 (constable_operand): Accept vector operands.
20240 * config/s390/s390-modes.def: Add supported vector modes.
20241 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20242 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20243 (s390_bytemask_vector_p, s390_expand_vec_strlen)
20244 (s390_expand_vec_compare, s390_expand_vcond)
20245 (s390_expand_vec_init): Add prototypes.
20246 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20247 (s390_vector_mode_supported_p): New function.
20248 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20249 (s390_contiguous_bitmask_vector_p): New function.
20250 (s390_bytemask_vector_p): New function.
20251 (s390_split_ok_p): Vector regs don't work either.
20252 (regclass_map): Add VEC_REGS.
20253 (s390_legitimate_constant_p): Handle vector constants.
20254 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20255 (legitimate_reload_vector_constant_p): New function.
20256 (s390_preferred_reload_class): Handle CONST_VECTOR.
20257 (s390_reload_symref_address): Likewise.
20258 (s390_secondary_reload): Vector memory instructions only support
20259 short displacements. Rename reload*_nonoffmem* to reload*_la*.
20260 (s390_emit_ccraw_jump): New function.
20261 (s390_expand_vec_strlen): New function.
20262 (s390_expand_vec_compare): New function.
20263 (s390_expand_vcond): New function.
20264 (s390_expand_vec_init): New function.
20265 (s390_dwarf_frame_reg_mode): New function.
20266 (print_operand): Handle addresses with 'O' and 'R' constraints.
20267 (NR_C_MODES, constant_modes): Add vector modes.
20268 (s390_output_pool_entry): Handle vector constants.
20269 (s390_hard_regno_mode_ok): Handle vector registers.
20270 (s390_class_max_nregs): Likewise.
20271 (s390_cannot_change_mode_class): New function.
20272 (s390_invalid_arg_for_unprototyped_fn): New function.
20273 (s390_function_arg_vector): New function.
20274 (s390_function_arg_float): Remove size variable.
20275 (s390_pass_by_reference): Handle vector arguments.
20276 (s390_function_arg_advance): Likewise.
20277 (s390_function_arg): Likewise.
20278 (s390_return_in_memory): Vector values are returned in a VR if
20280 (s390_function_and_libcall_value): Handle vector arguments.
20281 (s390_gimplify_va_arg): Likewise.
20282 (s390_call_saved_register_used): Consider the arguments named.
20283 (s390_conditional_register_usage): Disable v16-v31 for non-vec
20285 (s390_preferred_simd_mode): New function.
20286 (s390_support_vector_misalignment): New function.
20287 (s390_vector_alignment): New function.
20288 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20289 (TARGET_VECTOR_MODE_SUPPORTED_P)
20290 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20291 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20292 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20293 (TARGET_VECTOR_ALIGNMENT): Define target macro.
20294 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20295 (FIRST_PSEUDO_REGISTER): Increase value.
20296 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20297 (VECTOR_REG_P): Define macros.
20298 (FIXED_REGISTERS, CALL_USED_REGISTERS)
20299 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20300 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20301 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20302 Add vector registers.
20303 (CANNOT_CHANGE_MODE_CLASS): Call C function.
20304 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20305 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20307 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20308 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20309 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20310 (VR*_REGNUM): New constants.
20311 (ALL): New mode iterator.
20312 (INTALL): Remove mode iterator.
20314 (movti): Implement TImode moves for VRs.
20315 Disable TImode splitter for VR targets.
20316 Implement splitting TImode GPR<->VR moves.
20317 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20318 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20319 reload<mode>_la_in, reload<mode>_la_out.
20320 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20321 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20322 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20323 (mov<mode> SF SD): Prefer lder, lde for loading.
20324 Add lrl and strl instructions.
20325 Add vector instructions.
20326 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20327 Call s390_expand_vec_strlen on z13.
20328 (*cc_to_int): Change predicate to nonimmediate_operand.
20329 (addti3): Rename to *addti3. New expander.
20330 (subti3): Rename to *subti3. New expander.
20331 * config/s390/vector.md: New file.
20333 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20335 * common/config/s390/s390-common.c (processor_flags_table): Add
20337 * config.gcc: Add z13.
20338 * config/s390/s390-opts.h (enum processor_type): Add
20339 PROCESSOR_2964_Z13.
20340 * config/s390/s390.c (s390_adjust_priority): Check for
20341 PROCESSOR_2964_Z13.
20342 (s390_reorg): Likewise.
20343 (s390_sched_reorder): Likewise.
20344 (s390_sched_variable_issue): Likewise.
20345 (s390_loop_unroll_adjust): Likewise.
20346 (s390_option_override): Likewise. Default to -mvx when available.
20347 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20348 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20349 (TARGET_VX_ABI): Define macros.
20351 (TARGET_DEFAULT): Add MASK_OPT_VX.
20352 * config/s390/s390.md ("cpu" attribute): Add z13.
20353 ("cpu_facility" attribute): Add vec.
20354 * config/s390/s390.opt (processor_type): Add z13.
20355 (mvx): New options.
20356 * doc/invoke.texi: Add z13 option for -march.
20358 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20360 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20361 mode check to make sure that only scalar integer values are
20364 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20366 * tree.c (verify_type_variant): Fix #undef.
20367 (gimple_canonical_types_compatible_p): Move here from lto.c
20368 (verify_type): Verify TYPE_CANONICAL compatibility.
20369 * tree.h (gimple_canonical_types_compatible_p): Declare.
20371 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20373 PR middle-end/66199
20374 * tree.h (OMP_TEAMS_COMBINED): Define.
20375 * gimplify.c (enum gimplify_omp_var_data): Add
20376 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20377 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20378 (omp_notice_variable): Accept both ORT_TEAMS
20379 and ORT_COMBINED_TEAMS. Don't recurse if
20380 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20381 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20383 (omp_no_lastprivate): New function.
20384 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20385 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20386 notice_outer and set appropriate bits, otherwise make
20387 sure default(none) combined constructs won't complain.
20388 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20389 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20390 omp_no_lastprivate either remove the clause or turn it
20391 into OMP_CLAUSE_PRIVATE.
20392 (gimplify_omp_for): Fix up handling of implicit
20393 lastprivate or linear iterators.
20394 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20395 ORT_COMBINED_TEAMS.
20396 * omp-low.c (lower_omp_for_lastprivate): For combined
20397 for simd use fd.loop.n2 from the for rather than simd.
20399 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20401 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20402 instead of gen_rtx_raw_REG.
20403 (cris_expand_epilogue): Likewise.
20404 * config/microblaze/microblaze.c (microblaze_classify_address):
20406 * config/sparc/sparc.md: Likewise.
20408 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
20410 * config/alpha/alpha.c (alpha_legitimize_reload_address)
20411 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20412 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20413 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20414 Use CASE_CONST_SCALAR_INT.
20415 (print_operand) <case 'M'>: Use mode_width_operand to check the
20416 value of the constant.
20417 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20418 * config/alpha/predicates.md (input_operand): Use general_operand
20419 instead of match_code as operand check.
20420 (symbolic_operand): Use match_code with subexpression digits.
20421 * config/alpha/constraints.md (Q): Ditto.
20423 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20425 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20427 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20429 * config/s390/s390.c (s390_secondary_reload): Fix check for
20430 load/store relative.
20432 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20434 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
20435 alternative_mask to uint64_t.
20437 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20439 PR tree-optimization/66187
20440 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
20441 Pass TYPE_SIGN to tree_int_cst_min_precision. If
20442 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
20444 2015-05-19 David Malcolm <dmalcolm@redhat.com>
20446 * diagnostic.c (diagnostic_report_current_module): Strengthen
20447 local "new_map" from const line_map * to
20448 const line_map_ordinary *.
20449 * genmatch.c (error_cb): Likewise for local "map".
20450 (output_line_directive): Likewise for local "map".
20451 * input.c (expand_location_1): Likewise for local "map".
20452 Pass NULL rather than &map to
20453 linemap_unwind_to_first_non_reserved_loc, since the value is never
20454 read from there, and the value written back not read from here.
20455 (is_location_from_builtin_token): Strengthen local "map" from
20456 const line_map * to const line_map_ordinary *.
20457 (dump_location_info): Strengthen locals "map" from
20458 line_map *, one to const line_map_ordinary *, the other
20459 to const line_map_macro *.
20460 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
20461 const line_map * to const line_map_macro *.
20462 (maybe_unwind_expanded_macro_loc): Add a call to
20463 linemap_check_macro when writing to the "map" field of the
20465 Introduce local const line_map_ordinary * "ord_map", using it in
20466 place of "map" in the part of the function where we know we have
20467 an ordinary map. Strengthen local "m" from const line_map * to
20468 const line_map_ordinary *.
20470 2015-05-19 Nick Clifton <nickc@redhat.com>
20473 * config/msp430/msp430.md (zero_extendhisi2): Add support for
20474 separate source and destination registers.
20476 2015-05-19 Richard Biener <rguenther@suse.de>
20478 PR tree-optimization/66165
20479 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
20480 for no load permutation.
20482 PR tree-optimization/66185
20483 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
20484 when building the SLP node from scalars.
20486 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20487 Tristan Gingold <gingold@adacore.com>
20489 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
20490 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
20491 (expand_stack_restore): Call record_new_stack_level.
20492 (expand_stack_save): Do not call do_pending_stack_adjust.
20493 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
20494 * calls.c (expand_call): Call record_new_stack_level for alloca.
20495 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
20496 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
20497 (update_sjlj_context): New global function.
20498 * except.h (update_sjlj_context): Declare.
20499 * explow.c (record_new_stack_level): New global function.
20500 (allocate_dynamic_stack_space): Call record_new_stack_level.
20501 * explow.h (record_new_stack_level): Declare.
20502 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
20503 * cfgrtl.c (duplicate_insn_chain): Likewise.
20505 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20507 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
20508 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
20509 STACK_GROWS_DOWNWARD as normal if.
20510 (expand_call): Likewise.
20512 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
20515 * config/sh/sh.md (*round_int_even): New insn_and_split and
20516 accompanying new unnamed split.
20518 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20520 * bitmap.c (bitmap_set_range): Handle count==1 specially.
20521 (bitmap_clear_range): Likewise.
20522 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
20523 bitmap_set_range unconditionally.
20524 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20525 * df-scan.c (df_mark_reg): Likewise.
20526 * haifa-sched.c (setup_ref_regs): Likewise.
20527 * sched-rgn.c (update_live_1): Likewise.
20529 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20531 * regs.h (END_HARD_REGNO): Delete.
20532 (END_REGNO): Move to...
20534 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
20535 * caller-save.c (mark_set_regs): Likewise.
20536 * combine.c (move_deaths, distribute_notes): Likewise.
20537 * cse.c (invalidate, invalidate_for_call): Likewise.
20538 * df-scan.c (df_ref_record): Likewise.
20539 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
20540 (record_last_reg_set_info): Likewise.
20541 * reg-stack.c (convert_regs_exit): Likewise.
20542 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
20543 * resource.c (update_live_status): Likewise.
20544 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
20546 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20548 * rtl.h (reg_info): Add an nregs field.
20549 (REG_NREGS): Use it.
20550 (SET_REGNO_RAW): Delete.
20551 (set_regno_raw): New function.
20552 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
20553 (END_REGNO): Redefine in terms of REG_NREGS.
20554 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
20556 * emit-rtl.c (set_mode_and_regno): Likewise.
20557 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
20558 instead of SET_REGNO_RAW.
20560 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20562 * rtl.h (PUT_MODE_RAW): New macro.
20563 (PUT_REG_NOTE_KIND): Use it.
20564 (set_mode_and_regno): Declare.
20565 (gen_raw_REG): Change regno to "unsigned int".
20566 (gen_rtx_REG): Change "unsigned" to "unsigned int".
20567 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
20568 use set_mode_and_regno to change the mode of registers.
20569 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
20570 * emit-rtl.c (set_mode_and_regno): New function.
20571 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
20572 * caller-save.c (reg_save_code): Use set_mode_and_regno.
20573 * expr.c (init_expr_target): Likewise.
20574 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20575 * postreload.c (reload_cse_simplify_operands): Likewise.
20577 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20579 * caller-save.c (init_caller_save): Use word_mode and
20580 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
20581 * expr.c (init_expr_target): Likewise.
20582 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20583 * postreload.c (reload_cse_regs_1): Likewise.
20585 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20587 * rtl.def (REG): Change format to "r".
20588 * rtl.h (rtunion): Remove rt_reg.
20589 (reg_info): New structure.
20590 (rtx_def): Add reg field to main union.
20591 (X0REGATTR): Delete.
20592 (REG_CHECK): New macro.
20593 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
20594 * rtl.c (rtx_format): Document "r".
20595 (rtx_code_size): Handle REG specially.
20596 * gengenrtl.c (special_format): Return true for formats
20598 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
20599 Deal with REG_ATTRS after the field loop.
20600 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
20601 * expmed.c (init_expmed): Call gen_raw_REG instead of
20603 * expr.c (init_expr_target): Likewise.
20604 * regcprop.c (maybe_mode_change): Likewise.
20605 * varasm.c (make_decl_rtl): Likewise.
20606 * final.c (leaf_renumber_regs_insn): Return early after
20608 * genemit.c (gen_exp): Handle 'r' fields.
20609 * genpeep.c (match_rtx): Likewise.
20610 * gensupport.c (subst_pattern_match): Likewise.
20611 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
20612 (alter_constraints, subst_dup): Likewise.
20613 * read-rtl.c (read_rtx_code): Likewise.
20614 * print-rtl.c (print_rtx): Likewise.
20615 * genrecog.c (find_operand, find_matching_operand): Likewise.
20616 (validate_pattern, match_pattern_2): Likewise.
20617 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
20618 (rtx_test::regno_field): New function.
20619 (operator ==, safe_to_hoist_p, transition_parameter_type)
20620 (parameter_type_string, print_parameter_value)
20621 (print_nonbool_test, print_test): Handle new enum values.
20622 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
20623 * lra-constraints.c (operands_match_p): Likewise.
20625 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20627 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
20628 Change type of new_regno to unsigned int.
20629 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
20630 new_regno to unsigned int.
20631 (df_ref_change_reg_with_loc): Remove old_regno parameter.
20632 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
20633 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
20634 (SET_REGNO_RAW): Add space after ",".
20636 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20638 * rtl.h (REG_NREGS): New macro
20639 * alias.c (record_set): Use it.
20640 * cfgcleanup.c (mark_effect): Likewise.
20641 * combine.c (likely_spilled_retval_1): Likewise.
20642 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
20643 (move_deaths, distribute_notes): Likewise.
20644 * cselib.c (cselib_record_set): Likewise.
20645 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20646 * df-scan.c (df_mark_reg): Likewise.
20647 * dse.c (look_for_hardregs): Likewise.
20648 * dwarf2out.c (reg_loc_descriptor): Likewise.
20649 (multiple_reg_loc_descriptor): Likewise.
20650 * expr.c (write_complex_part, read_complex_part): Likewise.
20651 (emit_move_complex): Likewise.
20652 * haifa-sched.c (setup_ref_regs): Likewise.
20653 * ira-lives.c (mark_hard_reg_live): Likewise.
20654 * lra.c (lra_set_insn_recog_data): Likewise.
20655 * mode-switching.c (create_pre_exit): Likewise.
20656 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
20657 (reload_combine_recognize_pattern): Likewise.
20658 (reload_combine_note_use, move2add_record_mode): Likewise.
20659 (reload_cse_move2add): Likewise.
20660 * reg-stack.c (subst_stack_regs_pat): Likewise.
20661 * regcprop.c (kill_value, copy_value): Likewise.
20662 (copyprop_hardreg_forward_1): Likewise.
20663 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
20664 (build_def_use): Likewise.
20665 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
20666 (deps_analyze_insn): Likewise.
20667 * sched-rgn.c (check_live_1, update_live_1): Likewise.
20668 * sel-sched.c (count_occurrences_equiv): Likewise.
20669 * valtrack.c (dead_debug_insert_temp): Likewise.
20671 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20673 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
20674 * dse.c (note_add_store): Likewise.
20675 * ira-lives.c (mark_hard_reg_dead): Likewise.
20676 * loop-invariant.c (mark_reg_store): Likewise.
20677 (mark_reg_death): Likewise.
20678 * postreload.c (reload_combine): Likewise.
20679 (reload_combine_note_store): Likewise.
20680 (reload_combine_note_use): Likewise.
20681 * recog.c (peep2_reg_dead_p): Likewise.
20683 2015-05-19 Alan Modra <amodra@gmail.com>
20685 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
20686 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
20687 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
20689 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
20690 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
20691 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
20692 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
20694 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
20696 * config/mips/mips.md (JOIN_MODE): New mode iterator.
20697 (join2_load_Store<JOIN_MODE:mode>): New pattern.
20698 (join2_loadhi): Likewise.
20699 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
20700 load-load and store-stores.
20701 * config/mips/mips.opt (mload-store-pairs): New option.
20702 (TARGET_LOAD_STORE_PAIRS): New macro.
20703 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
20704 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
20705 * config/mips/mips.c (mips_load_store_bonding_p): New function.
20707 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
20709 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
20711 * dojump.c (do_compare_rtx_and_jump): Likewise.
20712 * expmed.c (emit_store_flag_1): Likewise.
20713 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
20714 * final.c (sprint_ul): Use std::reverse for reversing a string.
20715 * fold-const.c (extract_muldiv_1): Use std::swap.
20716 * genmodes.c (emit_mode_int_n): Likewise.
20717 * ifcvt.c (dead_or_predicable): Likewise.
20718 * ira-build.c (ira_merge_live_ranges): Likewise.
20719 (swap_allocno_copy_ends_if_necessary): Likewise.
20720 * ira.c (ira_setup_alts): Likewise.
20721 * loop-iv.c (iv_analyze_expr): Likewise.
20722 (implies_p): Likewise.
20723 (canon_condition): Likewise.
20724 * lra-constraints.c (swap_operands): Likewise.
20725 * lra-lives.c (lra_merge_live_ranges): Likewise.
20726 * omega.c (swap): Remove.
20728 (omega_unprotect_1): Use std::swap.
20729 (omega_solve_geq): Likewise.
20730 * optabs.c (expand_binop_directly): Likewise.
20731 (expand_binop): Likewise.
20732 (emit_conditional_move): Likewise.
20733 (emit_conditional_add): Likewise.
20734 * postreload.c (reload_cse_simplify_operands): Likewise.
20735 * reg-stack.c (emit_swap_insn): Likewise.
20736 (swap_to_top): Likewise.
20737 (compare_for_stack_reg): Likewise.
20738 (subst_asm_stack_regs): Likewise.
20739 * reload.c (find_reloads): Likewise.
20740 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
20741 * sel-sched.c (invoke_reorder_hooks): Likewise.
20742 (create_block_for_bookkeeping): Likewise.
20743 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
20744 (lambda_matrix_right_hermite): Use std::swap.
20745 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
20746 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20747 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
20748 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
20749 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
20750 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
20751 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20752 * tree-vrp.c (compare_ranges): Likewise.
20753 * var-tracking.c (add_with_sets): Likewise.
20754 (vt_find_locations): Likewise.
20756 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
20758 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
20760 (FBSD_ENDFILE_SPEC): Likewise.
20761 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
20762 config/freebsd-spec.h.
20763 (ENDFILE_SPEC): Likewise.
20765 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
20766 Richard Henderson <rth@redhat.com>
20769 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
20770 Check for a memory location that is not a reference (using an AND)
20771 to an unaligned location here.
20772 * config/alpha/predicates.md (normal_memory_operand): Remove.
20774 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
20776 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
20777 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
20779 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
20781 * config/mips/mips.c (micromips_globals): New variable.
20782 (mips_set_compression_mode): Save and reinitialize target-dependent
20783 state for microMIPS.
20785 2015-05-18 Martin Liska <mliska@suse.cz>
20787 * dbgcnt.def: Add new counter.
20788 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
20790 2015-05-18 Martin Liska <mliska@suse.cz>
20792 * dbgcnt.def: Sort counters.
20793 * opts.c (common_handle_option): Do not compile if
20794 -fdbg-cnt-list is enabled.
20796 2015-05-18 Tom de Vries <tom@codesourcery.com>
20798 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
20799 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
20800 address operator to va_list operand.
20801 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
20803 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
20805 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
20806 * config/s390/s390.c (s390_gimplify_va_arg): Same.
20807 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
20809 2015-05-18 Tom de Vries <tom@codesourcery.com>
20811 * tree-ssa-tail-merge.c: Fix whitespace.
20813 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
20815 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
20816 cortex-a17, and cortex-a17.cortex-a7.
20818 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
20821 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
20823 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
20826 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
20827 QImode inner modes for TARGET_AVX512BW. Force mask operand
20828 to a register for AVX512F modes.
20830 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20832 * toplev.c (emit_debug_global_declarations): Do not output debug info
20833 when doing slim LTO objects.
20835 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20837 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
20838 odr_types_equivalent_p): Declare.
20839 (odr_type_p): Use gcc_checking_assert.
20840 (type_in_anonymous_namespace_p) Declare.
20841 (type_with_linkage_p): Declare.
20842 * common.opt (Wlto-type-mismatch): New warning.
20843 * ipa-devirt.c (compound_type_base): New function.
20844 (odr_or_derived_type_p): New function.
20845 (odr_types_equivalent_p): New function.
20846 (add_type_duplicate): Simplify.
20847 (type_with_linkage_p): Add hack to prevent false positives on C types
20848 (type_in_anonymous_namespace_p): Likewise.
20849 * tree.c (need_assembler_name_p): Use type_with_linkage.
20850 * tree.h (type_in_anonymous_namespace_p): Remove.
20851 * doc/invoke.texi (-Wlto-type-mismatch): Document
20853 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20855 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
20856 (verify_type): Verify STRING_FLAG.
20858 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
20861 * tree-pretty-print.c (percent_K_format): Replace locus pointer
20862 with accessor function.
20863 * tree-diagnostic.c (diagnostic_report_current_function): Use
20864 diagnostic_location function.
20865 (maybe_unwind_expanded_macro_loc): Likewise.
20866 (virt_loc_aware_diagnostic_finalizer): Likewise.
20867 (default_tree_printer): Replace locus pointer with accessor function.
20868 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
20869 (diagnostic_set_info_translated): Initialize second location.
20870 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
20871 (diagnostic_show_locus): Handle two locations. Call
20872 diagnostic_print_caret_line.
20873 (diagnostic_print_caret_line): New.
20874 (default_diagnostic_starter): Use diagnostic_location function.
20875 (diagnostic_report_diagnostic): Use diagnostic_location function.
20876 (verbatim): Do not set text.locus.
20877 * diagnostic.h (struct diagnostic_info): Remove location field.
20878 (struct diagnostic_context): Make caret_chars an array of two.
20879 (diagnostic_location): New inline.
20880 (diagnostic_expand_location): Handle two locations.
20881 (diagnostic_same_line): New inline.
20882 (diagnostic_print_caret_line): Declare.
20883 (CARET_LINE_MARGIN): New constant.
20884 * pretty-print.c (pp_printf): Do not set text.locus.
20885 (pp_verbatim): Do not set text.locus.
20886 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
20887 (struct text_info): Replace locus pointer with locations
20888 array. Add accessor functions.
20890 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
20891 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20894 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
20895 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
20896 large constants in register instead of splitting them.
20898 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
20901 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
20902 replacements in memory addresses.
20903 (get_unaligned_address): Ditto.
20905 2015-05-16 James Bowman <james.bowman@ftdichip.com>
20907 * config/ft32/*: New files for FT32 port.
20908 * doc/install.texi: Add FT32 information.
20909 * doc/invoke.texi: Add FT32 information.
20910 * doc/md.texi: Add FT32 information.
20911 * doc/contrib.texi: Self added.
20913 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
20915 PR tree-optimization/64454
20916 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
20917 (-1 - A -> ~A): Remove unnecessary condition.
20919 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
20921 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
20922 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
20923 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
20925 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
20927 * ipa-chkp.h (chkp_wrap_function): New.
20928 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
20929 (chkp_wrap_function_name): New.
20930 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
20931 to get wrapper name.
20932 * lto-cgraph.c: Include ipa-chkp.h.
20933 (input_cgraph_1): Avoid alias chain for wrappers.
20935 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
20937 PR middle-end/66134
20938 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
20939 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
20941 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20943 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
20944 (AARCH64_FL_SLOWMUL): Delete.
20945 (AARCH64_FL_CRC): Redefine to 1<<3.
20946 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
20948 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20950 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
20953 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
20955 * config/alpha/alpha.md (extendqidi2): Use general_operand
20956 instead of some_operand for operand[1] predicate.
20957 (extendhidi2): Ditto.
20958 (cbranchdi4): Use general_operand instead of some_operand
20959 for operand[1] and operands[2] predicates.
20960 (cstoredi4): Ditto.
20961 * config/alpha/predicates.md (some_operand): Remove unused predicate.
20962 (some_ni_operand): Ditto.
20964 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
20966 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
20967 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
20968 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
20969 low part of the constant using alpha_emit_set_const_1.
20970 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
20972 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
20974 * varasm.c (output_constant_pool_1): Pass down alignment from
20975 constant pool entry's descriptor to output_constant_pool_2.
20976 (output_object_block): Add comment prior to call to
20977 output_constant_pool_1.
20979 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
20981 PR rtl-optimization/65862
20982 * target.def (ira_change_pseudo_allocno_class): New hook.
20983 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
20985 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
20986 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
20988 * ira-costs.c (find_costs_and_classes): Call the hook and change
20989 classes when it is necessary.
20990 * doc/tm.texi: Update.
20992 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
20994 * config/i386/i386.md (sibcall_memory): Check that register with
20995 callee address is not also used as one of the arguments, instead
20996 of checking that it is not live after the sibcall.
20997 (sibcall_pop_memory): Ditto.
20998 (sibcall_value_memory): Ditto.
20999 (sibcall_value_pop_memory): Ditto.
21001 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
21003 * generic-match-head.c (types_match): Handle non-types.
21004 * gimple-match-head.c (types_match): Likewise.
21005 * match.pd: Remove unnecessary TREE_TYPE for types_match.
21007 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
21009 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21010 (csneg3<mode>_insn): Enable expansion of pattern.
21012 2015-05-14 Nick Clifton <nickc@redhat.com>
21014 * config/rl78/rl78.c (rl78_select_section): Select the correct
21015 default section based upon the category of the decl.
21017 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21019 PR rtl-optimization/30967
21020 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21021 destination mode for the cost of scc patterns.
21023 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21025 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21026 using SWIM248 mode iterator.
21027 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21028 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
21029 for operand[2] constraint.
21030 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21032 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21034 PR middle-end/66133
21035 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21036 make sure it is never noreturn, even when the task body does not
21038 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21039 right before GIMPLE_OMP_RETURN.
21040 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21041 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
21042 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21044 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21046 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21047 * tree-ssa-math-opts.c: Include params.h
21048 (pow_synth_sqrt_info): New struct.
21049 (representable_as_half_series_p): New function.
21050 (get_fn_chain): Likewise.
21051 (print_nested_fn): Likewise.
21052 (dump_fractional_sqrt_sequence): Likewise.
21053 (dump_integer_part): Likewise.
21054 (expand_pow_as_sqrts): Likewise.
21055 (gimple_expand_builtin_pow): Use above to attempt to expand
21056 pow as series of square roots. Removed now unused variables.
21058 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21060 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21061 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21062 Remove *p0 and *p1 arguments. Rewrite function.
21063 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21064 (alpha_split_const_mov): Update calls to alpha_extract_integer and
21065 alpha_emit_set_long_const.
21066 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21067 (alpha_output_mi_thunk_osf): Ditto.
21068 * config/alpha/alpha.md (movti): Do not check operands[1]
21071 2015-05-13 Richard Biener <rguenther@suse.de>
21073 PR tree-optimization/66129
21074 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21076 (vect_schedule_slp_instance): Fix typo.
21078 2015-05-13 David Malcolm <dmalcolm@redhat.com>
21080 * common.opt (fdump-internal-locations): New option.
21081 * input.c: Include diagnostic-core.h.
21082 (get_end_location): New function.
21083 (write_digit): New function.
21084 (write_digit_row): New function.
21085 (dump_location_range): New function.
21086 (dump_labelled_location_range): New function.
21087 (dump_location_info): New function.
21088 * input.h (dump_location_info): New prototype.
21089 * toplev.c (compile_file): Handle flag_dump_locations.
21091 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
21093 * gimple-expr.h (is_gimple_constant): Reorder.
21094 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21096 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21098 * combine.c (simplify_set): When generating a CC set, if the
21099 source already is in the correct mode, do not wrap it in a
21100 compare. Simplify the rest of that code.
21102 2015-05-13 Richard Biener <rguenther@suse.de>
21104 PR tree-optimization/66123
21105 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21108 2015-05-13 Richard Biener <rguenther@suse.de>
21110 PR middle-end/66110
21111 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21113 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21115 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21117 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21118 * aclocal.m4: Regenerated with automake-1.11.6.
21120 2015-05-13 Tom de Vries <tom@codesourcery.com>
21122 PR tree-optimization/66010
21123 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21124 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21125 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
21126 and rval based on do_deref.
21128 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21131 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21132 link time constants into adress expressions and therefore set
21135 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21138 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21139 Use SWI248 iterator instead of SWI.
21140 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
21141 Use eq_attr "alternative" "0" instead of match_test in
21142 length_immediate attribute computation.
21143 (*mulvhi4, *mulvhi4_1): New define_insns.
21146 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21147 SIGNED to get precision of non-negative value.
21149 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21152 * function.c (diddle_return_value_1): Process bounds first.
21153 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21156 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21158 PR rtl-optimization/64616
21159 * loop-invariant.c (can_move_invariant_reg): New.
21160 (move_invariant_reg): Call above new function to decide whether
21161 instruction can just be moved, skipping creation of temporary
21164 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21166 PR target/pr66047.c
21167 * i386.c (ix86_function_sseregparm): Only return -1 if local function
21168 with implied regparm is called from -mno-sse function.
21169 (init_cumulative_args): Output error if ix86_function_sseregparm
21170 return -1 and SSE register would be needed.
21171 (function_arg_advance_32): Likewise.
21172 (function_arg_32): Likewise.
21173 * i386.h (ix86_args): Add decl field.
21175 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21178 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21179 inlines across optimization boundary.
21181 2015-05-12 Jason Merrill <jason@redhat.com>
21183 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21184 string literal and macro name.
21186 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
21188 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21189 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21190 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21192 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21194 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21195 (-Wmisleading-indentation): New option.
21196 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21198 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
21200 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21201 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21202 (alpha_extract_integer): Ditto.
21203 (alpha_legitimate_constant_p): Ditto.
21204 (alpha_split_tmode_pair): Ditto.
21205 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21206 (alpha_expand_mov): Ditto.
21207 (print_operand): Remove handling of 'H' modifier.
21208 <case 'm'>: Remove CONST_DOUBLE handling.
21209 (summarize_insn): Handle CONST_WIDE_INT.
21210 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21212 (movti): Handle CONST_WIDE_INT.
21213 * config/alpha/constraints.md ('H'): Remove constraint definition.
21214 ('G'): Do not match MODE_FLOAT class.
21215 * config/alpha/predicates.md (const0_operand): Also match
21217 (non_add_const_operand): Ditto.
21218 (non_zero_const_operand): Ditto.
21219 (some_operand): Ditto.
21220 (input_operand): Ditto. Handle CONST_WIDE_INT.
21221 (and_operand): Do not match const_double.
21222 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21224 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
21227 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21228 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21229 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21230 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21231 is_mm_seq_cst, is_mm_sync): New accessor functions.
21232 * builtins.c (expand_builtin_sync_operation,
21233 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21234 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21235 (get_memmodel, expand_builtin_atomic_compare_exchange,
21236 expand_builtin_atomic_load, expand_builtin_atomic_store,
21237 expand_builtin_atomic_clear): Use new accessor routines.
21238 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21239 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21240 (maybe_emit_sync_lock_test_and_set): Use new accessors and
21241 MEMMODEL_SYNC_ACQUIRE.
21242 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21243 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21244 expand_atomic_store): Use new accessors.
21245 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21246 * tsan.c (instrument_builtin_call): Update check for memory model beyond
21247 final enum to use MEMMODEL_LAST.
21248 * c-family/c-common.c: Use new accessor for memmodel_base.
21249 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21251 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21252 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21253 mem_thread_fence, *dmb): Likewise.
21254 * config/alpha/alpha.c (alpha_split_compare_and_swap,
21255 alpha_split_compare_and_swap_12): Likewise.
21256 * config/arm/arm.c (arm_expand_compare_and_swap,
21257 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21258 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21259 atomic_loaddi): Likewise.
21260 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21262 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21263 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21265 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21266 atomic_store<mode>, atomic_compare_and_swap<mode>,
21267 atomic_exchange<mode>): Use new accessors.
21268 * config/mips/mips.c (mips_process_sync_loop): Likewise.
21269 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21270 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21271 rs6000_post_atomic_barrier): Add new cases.
21272 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21273 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21274 (atomic_load<mode>): Add new cases and use new accessors.
21275 (store_quadpti): Add new cases.
21276 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21278 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21279 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21282 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21284 * ipa-devirt.c (type_with_linkage_p): New function.
21285 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21287 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21288 (can_be_name_hashed_p): Simplify.
21289 (hash_odr_name): Check that type has linkage before checking if it is
21291 (types_same_for_odr): Likewise.
21292 (odr_name_hasher::equal): Likewise.
21293 (odr_subtypes_equivalent_p): Likewise.
21294 (warn_types_mismatch): Likewise.
21295 (get_odr_type): Likewise.
21296 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21297 * ipa-utils.h (odr_type_p): Move offline.
21298 * tree.c (need_assembler_name_p): Fix handling of types
21300 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21302 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21304 * timevar.c (timevar_enable): Delete in favor of...
21305 (g_timer): New global.
21306 (struct timevar_def): Move to timevar.h inside class timer.
21307 (struct timevar_stack_def): Likewise.
21308 (timevars): Delete global in favor of field "m_timevars" within
21309 class timer in timevar.h
21310 (stack): Likewise, in favor of field "m_stack".
21311 (unused_stack_instances): Likewise, in favor of field
21312 "m_unused_stack_instances".
21313 (start_time): Likewise, in favor of field "m_start_time".
21314 (get_time): Eliminate check for timevar_enable.
21315 (timer::timer): New function, built from part of timevar_init.
21316 (timevar_init): Rewrite idempotency test from using
21317 "timevar_enable" bool to using dynamic allocation of "g_timer".
21318 Move rest of implementation into timer's constructor.
21319 (timevar_push_1): Rename to...
21320 (timer::push): ...this, adding "m_" prefixes to variables that
21321 are now fields of timer.
21322 (timevar_pop_1): Likewise, rename to...
21323 (timer::pop): ...this, and add "m_" prefixes.
21324 (timevar_start): Replace test for "timevar_enable" with one for
21325 "g_timer", and move bulk of implementation to...
21326 (timer::start): ...here, adding "m_" prefixes.
21327 (timevar_stop): Likewise, from here...
21328 (timer::stop): ...to here.
21329 (timevar_cond_start): Likewise, from here...
21330 (timer::cond_start): ...to here.
21331 (timevar_cond_stop): Likewise, from here...
21332 (timer::cond_stop): ...to here.
21333 (validate_phases): Rename to...
21334 (timer::validate_phases): ...this, and add "m_" prefixes. Make
21335 locals "total" and "tv" const.
21336 (timevar_print): Rename to...
21337 (timer::print): ...this, and add "m_" prefixes. Make locals
21338 "total" and "tv" const. Eliminate test for timevar_enable.
21339 * timevar.h (timevar_enable): Eliminate.
21340 (g_timer): New declaration.
21341 (timevar_push_1): Eliminate.
21342 (timevar_pop_1): Eliminate.
21343 (timevar_print): Eliminate.
21344 (class timer): New class.
21345 (timevar_push): Rewrite to use g_timer.
21346 (timevar_pop): Likewise.
21347 * toplev.c (toplev::~toplev): Likewise.
21349 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
21351 * arm-protos.h (arm_sched_autopref): Delete.
21352 (tune_params): Re-organize, use enums for flag values.
21353 (FUSE_OPS): New macro.
21354 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21355 (ARM_PREFETCH_BENEFICIAL): Likewise.
21356 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21357 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21358 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21359 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21360 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21361 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
21362 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21363 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21365 (arm_option_override, thumb2_reorg, arm_print_tune_info)
21366 (aarch_macro_fusion_pair_p): Update uses of current_tune.
21367 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21369 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
21371 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21374 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
21375 Sandra Loosemore <sandra@codesourcery.com>
21377 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21379 (REG_CLASS_NAMES): Add "IJMP_REGS".
21380 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21381 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21382 use new "c" register constraint.
21383 * config/nios2/constraint.md (c): New register constraint
21384 corresponding to IJMP_REGS.
21386 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21388 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21389 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21390 define_splits): Delete, revamp, transmogrify into ...
21391 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21392 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21393 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21396 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21398 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21399 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21401 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21403 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21404 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21405 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21406 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21407 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21408 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21409 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21410 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21411 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21412 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21413 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21414 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21415 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21416 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21417 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21418 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21419 and 30 corresponding splitters): Delete.
21421 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21423 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21426 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21428 * combine.c (recog_for_combine_1): New function, factored out
21429 from recog_for_combine.
21430 (change_zero_ext): New function.
21431 (recog_for_combine): If recog fails, try again with the pattern
21432 modified by change_zero_ext; if that still fails, restore the
21435 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21437 * combine.c (get_undo_marker): New function.
21438 (undo_to_marker): New function, largely factored out from ...
21439 (undo_all): ... this. Adjust.
21441 2015-05-12 Richard Biener <rguenther@suse.de>
21443 PR tree-optimization/66101
21444 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
21445 fixup if we turn a loop exit edge to a fallthru edge.
21447 2015-05-12 Richard Biener <rguenther@suse.de>
21449 PR tree-optimization/37021
21450 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
21451 (SLP_TREE_TWO_OPERATORS): New define.
21452 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
21453 SLP_TREE_TWO_OPERATORS.
21454 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
21456 (vect_build_slp_tree): Adjust.
21457 (vect_analyze_slp_cost_1): Likewise.
21458 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
21459 emitting two vector stmts and mixing the results.
21461 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
21463 * call.c (print_z_candidates): Remove dead code.
21465 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21467 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
21468 and zEC12_simple_fp.
21469 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
21472 2015-05-12 Tom de Vries <tom@codesourcery.com>
21474 PR tree-optimization/66010
21475 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
21477 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
21478 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
21479 va_lists are passed, and remove corresponding handling.
21480 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
21481 do_deref argument to ifn_va_arg.
21482 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
21485 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21488 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
21489 REG before taking its REGNO.
21491 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21493 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
21494 rsp->sign_bit_copies and rsp->nonzero_bits into ...
21495 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
21496 present to get more accurate information about the number of sign bit
21497 copies and non zero bits.
21499 2015-05-12 Richard Biener <rguenther@suse.de>
21501 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
21502 do not allow unrolling.
21504 2015-05-11 Richard Henderson <rth@redhat.com>
21506 * config/i386/i386-modes.def (CCP): New.
21507 * config/i386/i386.c (put_condition_code): Handle it.
21508 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
21510 2015-05-11 Richard Henderson <rth@redhat.com>
21512 * target.def (md_asm_clobbers): Replace with...
21513 (md_asm_adjust): this.
21514 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
21515 (TARGET_MD_ASM_ADJUST): New.
21516 * tm.texi: Rebuild.
21517 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
21518 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
21519 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
21521 * cfgexpand.c (check_operand_nalternatives): Accept vector of
21522 constraints instead of lists of outputs and inputs.
21523 (expand_asm_stmt): Save and restore input_location around the
21524 body of the function. Move asm data into vectors instead of
21525 building tree lists. Generate cleanup sequences as needed,
21526 rather than waiting til the end. Use new md_asm_adjust hook.
21528 * config/vxworks.c: Include vec.h before target.h.
21529 * gimple.c: Likewise.
21530 * incpath.c: Likewise.
21531 * mode-switching.c: Likewise.
21533 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
21534 (cris_md_asm_adjust): this.
21535 (TARGET_MD_ASM_CLOBBERS): Remove.
21536 (TARGET_MD_ASM_ADJUST): New.
21537 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
21538 (ix86_md_asm_adjust): this.
21539 (TARGET_MD_ASM_CLOBBERS): Remove.
21540 (TARGET_MD_ASM_ADJUST): New.
21541 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
21542 (mn10300_md_asm_adjust): this.
21543 (TARGET_MD_ASM_CLOBBERS): Remove.
21544 (TARGET_MD_ASM_ADJUST): New.
21545 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
21546 (rs6000_md_asm_adjust): this.
21547 (TARGET_MD_ASM_CLOBBERS): Remove.
21548 (TARGET_MD_ASM_ADJUST): New.
21549 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
21550 (visium_md_asm_adjust): this.
21551 (TARGET_MD_ASM_CLOBBERS): Remove.
21552 (TARGET_MD_ASM_ADJUST): New.
21554 2015-05-11 Richard Henderson <rth@redhat.com>
21556 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
21557 if noutputs is zero.
21558 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
21560 * cfgexpand.c (expand_asm_operands): Merge into...
21561 (expand_asm_stmt): ... here.
21563 * cfgexpand.c (expand_asm_operands): Don't call
21564 resolve_asm_operand_names.
21565 * stmt.c (resolve_asm_operand_names): Clarify block comment.
21567 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
21569 * dwarf2out.c (gen_member_die): Sanity check that we access
21570 TYPE_MAIN_VARIANT for TYPE_METHODS.
21571 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
21572 checking TYPE_METHODS.
21573 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
21575 (build_distinct_type_copy): Clear TYPE_METHODS.
21576 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
21577 (verify_type): Allow TYPE_METHODS to be error_mark_node.
21578 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
21580 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
21582 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
21583 (emit_pattern_before_setloc): Likewise.
21585 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
21587 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
21588 for define_peephole2s.
21589 (get_peephole2_pattern): New function.
21590 (main): Use it. Call validate_pattern.
21592 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21594 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
21595 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
21596 (Last callee saved reg is different for AVR_TINY architecture)
21598 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
21600 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
21601 when looking for memory references.
21603 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
21606 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
21607 via function pointers.
21609 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
21611 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
21612 indirect call by forcing address into a pseudo with -fno-plt.
21613 * common.opt (flag_plt): New option.
21614 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
21615 ([-fno-plt]): Document.
21617 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
21620 * config/rs6000/option-defaults.h: Add space between string literal
21623 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21625 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
21626 accross ARM targets.
21628 2015-05-11 Christian Bruel <christian.bruel@st.com>
21630 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
21631 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
21633 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
21635 PR rtl-optimization/66076
21636 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
21637 Don't grow the heap array if it is already big enough from a
21638 previous iteration.
21640 2015-05-11 Christian Bruel <christian.bruel@st.com>
21642 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
21643 (is_called_in_ARM_mode): Remove.
21644 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
21645 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
21646 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
21647 arm_declare_function_name.
21649 2015-05-11 Christian Bruel <christian.bruel@st.com>
21651 * config/arm/arm.c (arm_option_override): Reoganized and split into :
21652 (arm_option_params_internal); New function.
21653 (arm_option_check_internal): New function.
21654 (arm_option_override_internal): New function.
21655 (thumb_code, thumb1_code): Remove.
21656 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
21657 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
21658 (thumb_code, thumb1_code): Remove.
21659 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
21661 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
21663 * config/alpha/alpha.c (alpha_emit_set_const_1)
21664 (alpha_emit_set_long_const, alpha_extract_integer)
21665 (alpha_legitimate_constant_p, alpha_split_const_mov)
21666 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
21667 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21668 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
21670 * config/alpha/predicates.md (mode_mask_operand): Do not match
21672 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21673 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
21674 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
21675 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21676 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
21678 2015-05-11 Jakub Jelinek <jakub@redhat.com>
21681 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
21682 default_binds_local_p_2.
21683 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
21684 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
21686 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21688 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
21690 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21692 Patch by Richard Biener
21693 * coverage.c (coverage_obj_init): Delay building of type variant
21694 until the type is finished.
21696 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21698 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
21699 mismatch between C and C++ type; compoare correctly ARG_TYPES
21700 for non-prototypes and output correctly parameter index for METHOD_TYPE.
21701 (odr_types_equivalent_p): Fix wording of warning about attributes;
21702 it is OK to match prototype and non-prototype.
21704 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21706 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
21707 TYPE_ARG_TYPES list.
21708 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
21709 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
21711 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21713 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
21714 * tree.h (is_lang_specific): Constify.
21716 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
21718 PR tree-optimization/64454
21719 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
21722 2015-05-08 Jason Merrill <jason@redhat.com>
21724 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
21725 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
21726 config/darwin.h, config/darwin9.h, config/elfos.h,
21727 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
21728 config/microblaze/microblaze.h, config/mips/mips.h,
21729 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
21730 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
21731 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
21732 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
21733 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
21734 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
21735 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
21736 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
21737 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
21738 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
21739 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
21740 between string literal and macro name.
21742 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21744 * jump.c: Change argument types to rtx_insn *.
21747 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21749 * lra-constraints.c: Change argument type to rtx_insn *.
21751 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21753 * df-problems.c: Change argument type to rtx_insn *.
21755 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21757 * combine.c: Change argument type to rtx_insn *.
21759 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21762 * rtlanal.c: Change argument type to rtx_insn *.
21764 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21766 * sched-deps.c: Change argument types to rtx_insn *.
21767 * sched-int.h: Adjust.
21769 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21771 * dwarf2cfi.c: Change argument type to rtx_insn *.
21773 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21775 * ira.c (decrease_live_ranges_number): Changetype of local
21776 variable to rtx_insn *.
21777 * recog.c: Change argument types to rtx_insn *.
21780 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21782 * reorg.c: Change argument types to rtx_insn *.
21784 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21786 * ira-color.c: Change argument types to rtx_insn *.
21787 * lra-eliminations.c: Likewise.
21790 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21792 * gcse.c: Change argument types to rtx_insn *.
21794 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21796 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
21798 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21800 * emit-rtl.c (emit_debug_insn_before): Change argument type to
21804 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21806 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
21809 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21811 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
21814 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21816 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
21819 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21821 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
21824 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21826 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
21830 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21832 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
21836 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21838 * except.c (can_nonlocal_goto): Change type of argument to
21842 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21844 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
21847 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21849 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
21850 * cfgrtl.c (can_delete_label_p): Adjust.
21853 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21855 * reorg.c (stop_search_p): Change argument to rtx_insn *.
21857 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21859 * except.c (make_reg_eh_region_note): Change argument to
21861 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
21862 * except.h: Adjust.
21864 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21866 * mode-switching.c (commit_mode_sets): Change type of local
21867 variable from rtx to rtx_insn *.
21869 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
21871 * doc/install.texi (--enable-languages): Add missing jit and lto info.
21872 Add ^ to grep command.
21873 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
21874 arg to last gimple_simplify declaration. Add missing gimple_build
21875 declaration for built-in function case with four tree args.
21877 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
21878 Szabolcs Nagy <szabolcs.nagy@arm.com>
21880 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
21881 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
21882 (GNU_USER_DYNAMIC_LINKERN32): Update.
21884 2015-05-08 Richard Biener <rguenther@suse.de>
21886 PR tree-optimization/66036
21887 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21888 Handle strided group loads.
21889 (vect_verify_datarefs_alignment): Likewise.
21890 (vect_enhance_data_refs_alignment): Likewise.
21891 (vect_analyze_group_access): Likewise.
21892 (vect_analyze_data_ref_access): Likewise.
21893 (vect_analyze_data_ref_accesses): Likewise.
21894 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
21895 (vectorizable_load): Likewise.
21897 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
21899 * config/rs6000/rs6000.md: Require operand inequality in one
21902 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
21903 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21905 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
21907 * config/rx/rx.md (movdi, movdf): Likewise.
21908 Likewise for define_peephole2s.
21910 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21912 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
21913 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
21914 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
21915 vtst_u64): Rewrite using gcc vector extensions.
21917 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21919 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
21920 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
21922 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21924 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
21926 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
21928 * config/glibc-stdint.h (OPTION_MUSL): Define.
21929 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
21930 Change the definition based on OPTION_MUSL for 64 bit targets.
21931 * config/linux.h (OPTION_MUSL): Redefine.
21932 * config/alpha/linux.h (OPTION_MUSL): Redefine.
21933 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
21934 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
21936 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
21937 Szabolcs Nagy <szabolcs.nagy@arm.com>
21939 * config.gcc (LIBC_MUSL): New tm_defines macro.
21940 * config/linux.h (OPTION_MUSL): Define.
21941 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
21942 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
21943 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21944 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21945 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21946 * config/linux.opt (mmusl): New option.
21947 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
21948 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21949 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21950 * configure: Regenerate.
21952 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
21953 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21956 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
21957 * config/i386/knetbsd-gnu64.h: New file.
21959 2015-05-08 Marek Polacek <polacek@redhat.com>
21962 * doc/invoke.texi: Document -Woverride-init-side-effects.
21964 2015-05-07 Marek Polacek <polacek@redhat.com>
21967 * doc/invoke.texi: Document -Wshift-negative-value.
21969 2015-05-06 Aditya Kumar <hiraditya@msn.com>
21971 * gcov-tool.c (do_merge): Refactore to remove int ret.
21972 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
21973 !type == FUNC to type != FUNC.
21974 * reload.h (struct target_reload): Changee to type of
21975 x_spill_indirect_levels from bool to unsigned char.
21977 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
21979 * rtl.h (always_void_p): New function.
21980 * gengenrtl.c (always_void_p): Likewise.
21981 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
21982 with code foo are always VOIDmode.
21983 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
21984 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
21985 compare-elim.c, config/aarch64/aarch64.c,
21986 config/aarch64/aarch64.md, config/alpha/alpha.c,
21987 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
21988 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
21989 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
21990 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21991 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
21992 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
21993 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
21994 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
21995 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
21996 config/ia64/vect.md, config/iq2000/iq2000.c,
21997 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
21998 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
21999 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22000 config/mep/mep.c, config/microblaze/microblaze.c,
22001 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22002 config/mn10300/mn10300.c, config/msp430/msp430.c,
22003 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22004 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22005 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22006 config/rs6000/altivec.md, config/rs6000/rs6000.c,
22007 config/rs6000/rs6000.md, config/rs6000/vector.md,
22008 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22009 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22010 config/sh/sh.md, config/sh/sh_treg_combine.cc,
22011 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22012 config/spu/spu.md, config/stormy16/stormy16.c,
22013 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22014 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22015 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22016 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22017 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22018 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22019 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22020 var-tracking.c: Update calls accordingly.
22022 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22025 PR middle-end/54303
22026 * varasm.c (function_mergeable_rodata_prefix): New function.
22027 (mergeable_string_section): Use it.
22028 (mergeable_constant_section): Use it.
22030 2015-05-07 Jeff Law <law@redhat.com>
22033 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22034 simplifier to narrow arithmetic.
22035 * generic-match-head.c: (types_match, single_use): New functions.
22036 * gimple-match-head.c: (types_match, single_use): New functions.
22038 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22040 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22043 2015-05-07 Richard Biener <rguenther@suse.de>
22045 PR tree-optimization/66002
22046 * passes.def: Schedule another pass_merge_phi after ifcombine, right
22049 2015-05-07 Marek Polacek <polacek@redhat.com>
22050 Martin Uecker <uecker@eecs.berkeley.edu>
22052 * doc/invoke.texi: Document -fsanitize=bounds-strict.
22053 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22054 into SANITIZE_NONDEFAULT.
22055 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22057 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
22060 * config/alpha/alpha.c (alpha_override_options_after_change): New.
22061 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22062 (alpha_override_options): Move align_loops, align_jumps and
22063 align_functions handling into alpha_override_options_after_change.
22065 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
22066 Chris Jones <chrisj@nvidia.com>
22067 Joshua Conner <jconner@nvidia.com>
22069 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22070 linking of crtfastmath.o.
22071 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22073 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
22075 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22076 (cstore<mode>4_unsigned_imm): New expander.
22077 (cstore<mode>4): Remove empty constraint strings. Use the new
22080 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
22083 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22086 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22088 * config/aarch64/geniterators.sh: Use standard BRE in sed.
22090 2015-05-06 Alan Modra <amodra@gmail.com>
22093 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22094 (UNSPEC_NOP): Define.
22095 (reload_vsx_from_gpr<mode>): Add missing DONE.
22096 (reload_gpr_from_vsx<mode>): Likewise.
22097 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22098 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22100 2015-05-06 Christian Bruel <christian.bruel@st.com>
22103 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22104 align_jumps, align_functions into aarch64_override_options_after_change.
22106 2015-05-06 Richard Biener <rguenther@suse.de>
22108 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22109 vect_transform_slp_perm_load to check if we support a permutation
22110 for basic-block vectorization.
22112 2015-05-06 Nick Clifton <nickc@redhat.com>
22114 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22115 used, even if it is not being used as a frame pointer.
22117 2015-05-05 Jason Merrill <jason@redhat.com>
22119 * dwarf2out.c (gen_member_die): Don't emit anything for an
22120 anonymous class constructor.
22122 2015-05-05 David Malcolm <dmalcolm@redhat.com>
22124 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22125 that it reflects the block structure.
22126 (afdo_propagate_edge): Likewise.
22127 (afdo_calculate_branch_prob): Likewise.
22128 (afdo_annotate_cfg): Likewise.
22129 * cfgcleanup.c (equal_different_set_p): Likewise.
22130 (try_crossjump_to_edge): Likewise.
22131 * cgraph.c (cgraph_node::verify_node): Likewise.
22132 * cgraphunit.c (expand_all_functions): Likewise.
22133 * config/i386/i386.c (ix86_expand_copysign): Likewise.
22134 (exact_dependency_1): Likewise.
22135 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22136 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22137 * gensupport.c (process_define_subst): Likewise.
22138 * lto-wrapper.c (merge_and_complain): Likewise.
22139 * tree-if-conv.c (if_convertible_bb_p): Likewise.
22140 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22141 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22142 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22143 * tree-vect-loop.c (vectorizable_reduction): Likewise.
22144 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22145 * tree-vect-stmts.c (vectorizable_shift): Likewise.
22146 * tree-vrp.c (vrp_finalize): Likewise.
22147 * tree.c (variably_modified_type_p): Likewise.
22149 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
22151 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22152 on darwin12 and later.
22153 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22154 file to pass -rdynamic on darwin12 and later.
22155 * config/darwin.opt (rdynamic): Add.
22157 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22159 * doc/extend.texi (C Extensions): Update menu for moved Variable
22160 Attributes and Type Attributes sections.
22162 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22165 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22166 if rep_8byte stringop strategy was specified for 32-bit target.
22168 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
22171 * config/i386/i386.md (vector convert to float spltiter): Check for
22172 xmm16+, when splitting scalar float conversion.
22173 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22175 2015-05-05 Nick Clifton <nickc@redhat.com>
22177 * config/msp430/msp430-opts.h (enum msp430_regions): New.
22178 * config/msp430/msp430.c (msp430_override_options): Complain if
22179 -mcode-region or -mdata-region is used on a non MSP430X.
22180 (msp430_section_attr): New function. Checks lower, upper and
22182 (msp430_attribute_table): Add lower, upper and either.
22183 (gen_prefix): New function. Generates a prefix for a section
22185 (msp430_select_section): New function - handles the choice of
22186 section for an object. Takes into account memory region
22187 attributes and options.
22188 (msp430_function_section): Use gen_prefix.
22189 (TARGET_SECTION_TYPE_FLAGS): Define.
22190 (msp430_section_type_flags): New function.
22191 (TARGET_ASM_UNIQUE_SECTION): Define.
22192 (msp430_unique_section): New function.
22193 (msp430_output_aligned_decl_common): New function.
22194 (msp430_do_not_relax_short_jumps): New function.
22195 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22197 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22198 * config/msp430/msp430-protos.h
22199 (msp430_do_not_relax_short_jumps): New prototype.
22200 (msp430_output_aligned_decl_common): New prototype.
22201 * config/msp430/msp430.md (length): New attribute.
22202 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22203 then use a long code sequence for short jumps.
22204 * config/msp430/msp430.opt (mcode-region): New.
22205 (mdata-region): New.
22206 * doc/invoke.texi: Document new options.
22207 * doc/extend.texi: Document new attributes.
22209 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22211 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22212 (tune_params): Add field branch_costs.
22213 (aarch64_branch_cost): Declare.
22214 * gcc/config/aarch64.c (generic_branch_cost): New.
22215 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22216 (cortexa53_tunings): Likewise.
22217 (cortexa57_tunings): Likewise.
22218 (thunderx_tunings): Likewise.
22219 (xgene1_tunings): Likewise.
22220 (aarch64_branch_cost): Define.
22221 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22223 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22225 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22226 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22227 * config/i386/i386.md: Ditto.
22228 * config/i386/winnt.c: Ditto.
22230 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22232 * doc/extend.texi (__atomic Builtins): Move implementation details
22233 to the end of the description, rewrite opening paragraphs, state
22234 difference with __sync builtins, state C11/C++11 assumptions,
22235 weaken itemized descriptions, add explanation of memory model
22236 behaviour, expand description of compare-exchange, simplify text.
22238 2015-05-05 Renlin Li <renlin.li@arm.com>
22240 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22242 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
22244 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22245 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22246 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22247 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22248 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22249 * configure: Regenerate.
22250 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22251 * doc/install.texi (aarch64*-*-*): Document new
22252 --enable-fix-cortex-a53-843419 option.
22253 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22254 and -mno-fix-cortex-a53-843419 options.
22256 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22259 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22261 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
22263 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22264 fix overactive TYPE_MIN_VALUE check and add FIXME for type
22265 compatibility problems.
22267 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22269 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22271 (cbranchsi4_reg): New.
22272 * config/microblaze/microblaze.c
22273 (microblaze_expand_conditional_branch_reg): New.
22274 * config/microblaze/microblaze-protos.h
22275 (microblaze_expand_conditional_branch_reg): New prototype.
22277 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22279 * config/microblaze/microblaze.md (peephole2): New.
22281 2015-05-04 Jeff Law <law@redhat.com>
22284 2015-05-04 Jeff Law <law@redhat.com>
22286 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22287 simplifier to narrow arithmetic.
22288 * generic-match-head.c: (types_match, single_use): New functions.
22289 * gimple-match-head.c: (types_match, single_use): New functions.
22291 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
22294 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22295 (split_branches): Likewise.
22297 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
22299 * common.opt (fdelete-null-pointer-checks): Init to -1.
22300 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22301 override flag_delete_null_pointer_checks default.
22302 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22303 behavior re address zero. Better document target-specific behavior.
22304 (-fisolate-errneous-paths-dereference): Mention relationship to
22305 -fdelete-null-pointer-checks.
22307 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22309 PR tree-optimization/65984
22310 * ubsan.c: Include tree-cfg.h.
22311 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22312 stmt_could_throw_p test, rename can_throw variable to ends_bb.
22314 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22316 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22317 to CONST_DOUBLE_P predicate.
22318 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22319 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22320 allow only operands that satisfy standard_sse_constant_p predicate.
22321 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22322 to CONST_DOUBLE_P predicate.
22324 2015-05-04 Jeff Law <law@redhat.com>
22326 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22327 simplifier to narrow arithmetic.
22328 * generic-match-head.c: (types_match, single_use): New functions.
22329 * gimple-match-head.c: (types_match, single_use): New functions.
22331 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
22333 * config/arm/arm.c: Restore bootstrap.
22335 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22337 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22338 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22339 as CONST_WIDE_INT, not CONST_DOUBLE.
22340 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22341 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22342 (ix86_find_base_term): Do not check for CONST_DOUBLE.
22343 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22344 (ix86_build_signbit_mask): Rewrite using wide ints.
22345 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22346 (ix86_rtx_costs): Handle CONST_WIDE_INT.
22347 (find_constant): Ditto.
22348 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22349 using gen_int_mode.
22350 * config/i386/predicates.md (x86_64_immediate_operand)
22351 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22352 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22353 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22354 (const0_operand): Also match const_wide_int.
22355 (constm1_operand): Ditto.
22356 (const1_operand): Ditto.
22358 2015-05-04 Richard Biener <rguenther@suse.de>
22360 PR tree-optimization/65965
22361 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22362 store groups at gaps.
22364 2015-05-04 Richard Biener <rguenther@suse.de>
22366 PR tree-optimization/65935
22367 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22368 then make sure to apply that swapping to the IL.
22370 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22372 * Makefile.in (PATCHLEVEL_c): New variable.
22373 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22374 expand the same way as if DEVPHASE_c was non-empty.
22376 2015-05-04 Kai Tietz <ktietz@redhat.com>
22379 * lto-wrapper.c (run_gcc): Open filename
22382 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
22384 * doc/extend.texi (Variable Attributes, Type Attributes): Move
22385 sections up in file, to immediately after the Function Attributes
22388 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
22390 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22392 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22394 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22395 (insert_partition_copy_on_edge): Adjust.
22396 (insert_rtx_to_part_on_edge): Likewise.
22397 (insert_part_to_rtx_on_edge): Likewise.
22399 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22401 * function.c (set_return_jump_label): Change type of argument to
22403 * function.h (set_return_jump_label): Adjust.
22405 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22407 * reload.h (struct reg_equivs_t): Change type of init to
22409 * ira.c (fix_reg_equiv_init): Adjust.
22410 * reload1.c (eliminate_regs_1): Likewise.
22411 (init_eliminable_invariants): Likewise.
22413 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22415 * cselib.c (fp_setter_insn): Take a rtx_insn *.
22416 * cselib.h (fp_setter_insn): Adjust.
22418 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22420 * recog.c (struct validate_replace_src_data): Change type of
22421 insn field to rtx_insn *.
22422 (validate_replace_src_group): Change type of argument to rtx_insn *.
22423 * recog.h (validate_replace_src_group): Adjust.
22425 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22427 * haifa-sched.c: Change the type of some variables to rtx_insn *.
22428 * sched-deps.c: Likewise.
22429 * sched-int.h: Likewise.
22430 * sched-rgn.c: Likewise.
22431 * sel-sched.c: Likewise.
22433 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22436 * config/i386/i386.c: Change the type of some arguments to
22438 * config/arm/arm.c: Likewise.
22440 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22442 * lra-constraints.c: Change type of some arguments to rtx_insn *.
22444 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22446 * regcprop.c (kill_autoinc_value): Change type of argument to
22449 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22451 * genrecog.c (print_subroutine): Adjust.
22452 * recog.c (get_bool_attr_mask_uncached): Likewise.
22453 * recog.h (struct recog_data_d): Change the type of insn to
22456 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22458 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
22460 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22462 * df-problems.c (df_set_note): Change type of argument to
22465 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22467 * builtins.c (expand_builtin_trap): Change type of local
22468 variable to rtx_insn *.
22469 (add_sched_insns_for_speculation): Likewise.
22470 (ix86_emit_save_regs): Likewise.
22471 (get_scratch_register_on_entry): Likewise.
22472 (ix86_emit_restore_reg_using_pop): Likewise.
22473 (ix86_emit_leave): Likewise.
22474 (ix86_emit_restore_regs_using_mov): Likewise.
22475 (ix86_expand_epilogue): Likewise.
22477 (rl78_alloc_physical_registers_umul): Likewise.
22478 * cselib.c (discard_useless_locs): Likewise.
22479 (cselib_invalidate_regno): Likewise.
22480 (cselib_invalidate_mem): Likewise.
22481 * function.c (expand_function_start): Likewise.
22482 (emit_use_return_register_into_block): Likewise.
22483 * gcse.c: Likewise.
22484 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
22485 * ifcvt.c (noce_get_alt_condition): Likewise.
22486 * loop-doloop.c (doloop_condition_get): Likewise.
22487 * lra-constraints.c (inherit_in_ebb): Likewise.
22488 * modulo-sched.c (sms_schedule_by_order): Likewise.
22489 * recog.c (next_insn_tests_no_inequality): Likewise.
22490 * reorg.c (emit_delay_sequence): Likewise.
22491 (update_reg_dead_notes): Likewise.
22492 (fix_reg_dead_note): Likewise.
22493 (fill_slots_from_thread): Likewise.
22494 (delete_computation): Likewise.
22496 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
22498 * doc/extend.texi (Variable Attributes): Add menu and proper
22499 @nodes to subsections. Move Microsoft Windows attributes to
22500 their own subsection.
22501 (Type Attributes): Reorganize introduction to remove duplicate
22502 list of attributes. Add menu and proper @nodes to subsections.
22503 Alphabetize the main table of common attributes.
22505 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
22507 * match.pd: New simplification patterns.
22508 (x + (x & 1)) -> ((x + 1) & ~1)
22509 (x & ~(x & y)) -> ((x & ~y))
22510 (x | ~(x | y)) -> ((x | ~y))
22512 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22514 * target.def (attribute_table): Mention that struct attribute_spec
22515 is defined in tree-core.h rather than tree.h
22516 * doc/tm.texi: Regenerate.
22518 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
22520 * genrecog.c (test): Rename to rtx_test. Update rest of file
22523 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
22525 PR translation/65959
22526 * params.h (DEFPARAM): Rename msgid to nocmsgid.
22528 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22530 * gcc/config/aarch64/aarch64-protos.h (tune_params):
22531 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
22532 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
22533 Return value depending on target.
22534 (generic_tunings): Initialize new target settings.
22535 (cortexa53_tunings): Likewise.
22536 (cortexa57_tunings): Likewise.
22537 (thunderx_tunings): Likewise.
22538 (xgene1_tunings): Likewise.
22540 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22542 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
22543 Make Cortex-A53 shift costs more accurate.
22545 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22547 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
22550 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22552 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
22553 Calculate cost of op0 and op1 in PLUS and MINUS cases.
22555 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22557 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
22558 Add cost of op0 in the compare-with-fpzero case.
22560 2015-04-30 David Malcolm <dmalcolm@redhat.com>
22562 * builtins.c (fold_builtin_1): Remove spurious second
22564 * cgraph.h (symtab_node::get_availability): Likewise.
22565 * opts.c (common_handle_option): Remove spurious second semicolon.
22566 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22567 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22569 2015-04-30 Caroline Tice <cmtice@google.com>
22571 PR gcov-profile/65929
22572 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
22573 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
22574 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
22575 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
22576 * doc/tm.texi: Regenerate.
22577 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
22578 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
22579 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
22580 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
22582 2015-04-30 Marek Polacek <polacek@redhat.com>
22584 * varasm.c (handle_cache_entry): Fix logic.
22586 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22588 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
22589 (*extrsi5_insn_uxtw_alt): Likewise.
22590 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
22591 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
22594 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22596 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
22599 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22601 * config/aarch64/aarch64.md
22602 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
22603 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
22604 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
22605 appropriately. Handle alternative EON form.
22607 2015-04-30 Renlin Li <renlin.li@arm.com>
22609 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
22610 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
22612 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
22615 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
22616 -fstrict-aliasing boundaries.
22618 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22620 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
22621 and [SU]MNEGL patterns.
22623 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22625 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
22626 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
22627 combined arithmetic-shift ops. Properly handle all shift and extend
22628 operations that can occur in combination with PLUS/MINUS.
22629 Rename maybe_fma to compound_p.
22630 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
22631 arithmetic and shift operations.
22633 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22635 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
22636 rather than arith_shift cost when costing ADD/MINUS of an
22639 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
22642 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
22645 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
22647 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
22648 are for the same position.
22650 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
22652 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
22654 (vectorize_loops): Use it.
22656 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22658 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
22659 for aggregate types.
22660 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
22661 type to be non_ODR.
22662 * tree.c (need_assembler_name_p): Compute mangled name for
22663 non-fundamental types and integer types.
22665 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
22667 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
22669 * expr.c (expand_expr_real_2): Likewise.
22671 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22673 * tree.c (build_common_builtin_nodes): Do not build
22674 __builtin_alloca_with_align as equivalent of library alloca.
22676 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22678 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
22679 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
22681 * tree.c: Include print-tree.h and ipa-utils.h
22682 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
22683 (free_lang_data_in_cgraph): Call verify_type.
22684 (verify_type_variant): New function.
22685 (verify_type): New function.
22686 * tree.h (verify_type): Declare.
22688 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
22690 * config/mips/mips-cpus.def: (mips4): Change default processor
22691 from PROCESSOR_R8000 to PROCESSOR_R10000.
22693 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
22695 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
22696 la/jalr instead of jal.
22698 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
22701 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
22702 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
22703 (setcc+movzbl peephole2): Check also clobbered reg.
22704 (setcc+andl peephole2): Ditto.
22706 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
22709 * config/nvptx/mkoffload.c (target_ilp32): New variable.
22710 (main): Set it depending on "-foffload-abi=[...]".
22711 (compile_native, main): Use it to pass "-m32" or "-m64" to the
22714 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22717 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
22718 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
22719 Flip lane index back at assembly time for bigendian.
22721 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
22723 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
22724 * gimplify.c (gimplify_omp_workshare): Use it.
22726 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22728 * Makefile.in (build/genrecog.o): Depend on inchash.h.
22729 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
22731 * genrecog.c: Rewrite most of the code except for the third page.
22733 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22735 * inchash.h, inchash.c: Include bconfig.h for build objects.
22736 * Makefile.in (build/inchash.o): New rule.
22738 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
22741 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
22742 number in type attribute expression.
22744 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22746 * loop-iv.c (canon_condition): Generalize to all types of integer
22749 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
22751 * gimple-walk.c: Prune duplicate or unneeded includes.
22752 (walk_gimple_asm): Only call parse_input_constraint or
22753 parse_output_constraint if their findings are used.
22754 Honour parse_input_constraint and parse_output_constraint
22757 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22759 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
22761 2015-04-29 Tom de Vries <tom@codesourcery.com>
22763 PR tree-optimization/65893
22764 * passes.def (pass_all_optimizations): Move pass_stdarg to after
22767 2015-04-29 Richard Biener <rguenther@suse.de>
22769 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22770 compute GROUP_SIZE for basic-block SLP.
22771 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
22772 take into account gaps.
22773 (vect_get_mask_element): Properly reject references to previous
22775 (vect_transform_slp_perm_load): Likewise.
22777 2015-04-29 Christian Bruel <christian.bruel@st.com>
22780 * config/i386/i386.c (ix86_default_align): New function.
22781 (ix86_override_options_after_change): Call ix86_default_align.
22782 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
22783 (ix86_override_options_after_change): New function.
22785 2015-04-28 Jeff Law <law@redhat.com>
22787 * tree-ssa-dom.c (record_equality); Fix comment typos.
22789 2015-04-28 Tom de Vries <tom@codesourcery.com>
22791 PR tree-optimization/65887
22792 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
22794 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
22796 * doc/extend.texi (Declaring Attributes of Functions): Split into
22797 subsections by target. Alphabetize the table of common attributes.
22798 Rewrite some of the introductory text to reflect the new structure.
22799 Update some cross-references to point to the new subsections.
22800 (Attribute Syntax): Put paragraph about "__" naming here. Remove
22801 duplicate copies in the discussion of function, label, and type
22804 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
22807 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
22809 2015-04-28 Jason Merrill <jason@redhat.com>
22812 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
22813 (finalize_type_size): Respect TYPE_USER_ALIGN.
22814 (layout_type) [ARRAY_TYPE]: Likewise.
22816 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
22818 * config/arm/arm.md (*arm_movt): Fix type attribute.
22819 (*cmpsi_shiftsi): Likewise.
22820 (*cmpsi_shiftsi_swp): Likewise.
22821 (*movsicc_insn): Likewise.
22822 (*cond_move): Likewise.
22823 (*if_plus_move): Likewise.
22824 (*if_move_plus): Likewise.
22825 (*if_arith_move): Likewise.
22826 (*if_move_arith): Likewise.
22827 (*if_shift_move): Likewise.
22828 (*if_move_shift): Likewise.
22829 (*arm_movtas_ze): Likewise.
22830 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
22831 redundancy and type attribute.
22832 (*thumb2_movsi_insn): Fix type attribute.
22833 (*thumb2_addsi_short): Likewise.
22834 (thumb2_addsi3_compare0): Likewise.
22835 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
22836 attributes accordingly.
22838 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
22841 * function.c (pad_to_arg_alignment): Add parentheses.
22843 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
22845 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
22846 libgcc/config/frv/elf-lib.h.
22848 2015-04-28 Tom de Vries <tom@codesourcery.com>
22850 * tree-call-cdce.c: Fix example in header comment.
22852 2015-04-28 Richard Biener <rguenther@suse.de>
22854 PR tree-optimization/62283
22855 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
22856 fails fatally and we are vectorizing a basic-block simply
22857 cause the child to be constructed piecewise.
22858 (vect_analyze_slp_cost_1): Adjust.
22859 (vect_detect_hybrid_slp_stmts): Likewise.
22860 (vect_bb_slp_scalar_cost): Likewise.
22861 (vect_get_constant_vectors): For piecewise constructed
22862 constants place them after the last def.
22863 (vect_get_slp_defs): Adjust.
22864 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
22865 externals for basic-block vectorization.
22867 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22870 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
22872 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
22873 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
22874 (AARCH64_TUNE_FMA_STEERING): Likewise.
22875 * config/aarch64/aarch64-cores.def: Set
22876 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
22877 FMUL/FMADD instructions.
22878 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
22879 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
22880 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
22881 * config/aarch64/cortex-a57-fma-steering.h: New file.
22882 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22884 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
22886 * gensupport.c (std_preds): Add missing codes to address_operand entry.
22888 2015-04-28 Richard Biener <rguenther@suse.de>
22890 PR tree-optimization/65851
22891 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
22892 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
22893 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
22894 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
22895 (ccp_visit_phi_node): Adjust.
22896 (evaluate_stmt): For simplifications to SSA names return its
22897 lattice value if that isn't VARYING. Return immediately when
22898 simplified to a constant.
22899 (visit_assignment): Adjust.
22900 (ccp_visit_stmt): Likewise.
22902 2015-04-28 Tom de Vries <tom@codesourcery.com>
22904 PR tree-optimization/65818
22905 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
22908 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22910 * calls.c (save_fixed_argument_area): Don't check
22911 ARGS_GROW_DOWNWARD with the preprocessor.
22912 (restore_fixed_argument_area): Likewise.
22913 (mem_overlaps_already_clobbered_arg_p): Likewise.
22914 (check_sibcall_argument_overlap): Likewise.
22915 (expand_call): Likewise.
22916 (emit_library_call_value_1): Likewise.
22917 (store_one_arg): Likewise.
22918 * function.c (assign_parms): Likewise.
22919 (locate_and_pad_parm): Likewise.
22920 (pad_to_arg_alignment): Likewise.
22921 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22923 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22925 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
22926 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
22927 * calls.c (save_fixed_argument_area): Don't chekc if
22928 ARGS_GROW_DOWNWARD is defined.
22929 (restore_fixed_argument_area): Likewise.
22930 (mem_overlaps_already_clobbered_arg_p): Likewise.
22931 (check_sibcall_argument_overlap): Likewise.
22932 (expand_call): Likewise.
22933 (emit_library_call_value_1): Likewise.
22934 (store_one_arg): Likewise.
22935 * function.c (assign_parms): Likewise.
22936 (locate_and_pad_parm): Likewise.
22937 (pad_to_arg_alignment): Likewise.
22938 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22940 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22942 * defaults.h (gen_epilogue): New function.
22943 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
22945 * cfgrtl.c (cfg_layout_finalize): Likewise.
22946 * df-scan.c: Likewise.
22947 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22948 (reposition_prologue_and_epilogue_notes): Likewise.
22949 * reorg.c (find_end_label): Likewise.
22950 * toplev.c: Likewise.
22952 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22954 * bb-reorder.c (HAVE_return): Don't check if its undefined.
22955 * defaults.h (gen_simple_return): New function.
22956 (gen_simple_return): Likewise.
22957 (HAVE_return): Add default definition to false.
22958 (HAVE_simple_return): Likewise.
22959 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
22960 HAVE_return and HAVE_simple_return are defined.
22961 * function.c (gen_return_pattern): Likewise.
22962 (convert_jumps_to_returns): Likewise.
22963 (thread_prologue_and_epilogue_insns): Likewise.
22964 * reorg.c (find_end_label): Likewise.
22965 (dbr_schedule): Likewise.
22966 * shrink-wrap.c: Likewise.
22967 * shrink-wrap.h: Likewise.
22969 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22971 * defaults.h (EPILOGUE_USES): Add default definition of false.
22972 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
22973 * resource.c (init_resource_info): Likewise.
22975 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22977 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
22979 * dwarf2out.c (field_byte_offset): REmove check if
22980 PCC_BITFIELD_TYPE_MATTERS is defined.
22981 * stor-layout.c (layout_decl): Likewise.
22982 (update_alignment_for_field): Likewise.
22983 (place_field): Likewise.
22985 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22987 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
22989 * regrename.c (check_new_reg_p): Remove check if
22990 HARD_REGNO_RENAME_OK is defined.
22991 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
22993 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22995 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
22996 * cse.c (fold_rtx): Likewise.
22997 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
22998 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
22999 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23000 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23001 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23002 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23003 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23004 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23005 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23006 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23008 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23009 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23010 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23011 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23012 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23013 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23014 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23015 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23016 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23017 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23018 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23019 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23020 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23021 * doc/tm.texi: Regenerate.
23022 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23023 either true or false.
23025 2015-04-27 Jeff Law <law@redhat.com>
23027 PR tree-optimization/65217
23028 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23029 of them has a single use, make sure it is the LHS of the implied
23032 2015-04-28 Alan Modra <amodra@gmail.com>
23035 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23036 (offsettable_ok_by_alignment): Use minimum of decl and toc
23037 pointer alignment. Replace dead code with assertion.
23038 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
23039 case if size exceeds toc pointer alignment.
23040 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23041 (rs6000_emit_move): Likewise.
23042 * configure.ac: Add linker toc pointer alignment check.
23043 * configure: Regenerate.
23044 * config.in: Regenerate.
23046 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
23048 * config.gcc: Add h8300-*-linux.
23049 * config/h8300/linux.h: New.
23050 * config/h8300/t-linux: New.
23051 * config/h8300/h8300.c (h8300_option_override): Normal mode
23052 is not supported for h8300-*-linux.
23053 (h8300_file_start): Target priority change.
23054 (get_shift_alg): Likewise.
23055 (h8300_shift_need_scratch_p): Likewise.
23056 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23057 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23059 2015-04-27 Caroline Tice <cmtice@google.com>
23061 * final.c (final_scan_insn): Output cold_function_name as function
23063 * varasm.c (cold_function_name): Make global.
23064 (assemble_start_function): Re-set cold_function_name.
23065 (assemble_end_function): Output cold partition size.
23066 * varasm.h (cold_function_name): Declare global.
23068 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
23070 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23071 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23073 (*movxi_internal_avx512f): Ditto.
23074 (define_split): Check for xmm16+, when splitting scalar float_extend.
23075 (*extendsfdf2_mixed): Use "v" constraint.
23076 (define_split): Check for xmm16+, when splitting scalar float_truncate.
23077 (*truncdfsf_fast_sse): Use "v" constraint.
23078 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23079 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23080 (define_peephole2): Check for xmm16+, when converting scalar
23082 (define_peephole2): Check for xmm16+, when converting scalar
23084 (*fop_<mode>_comm_mixed): Use "v" constraint.
23085 (*fop_<mode>_comm_sse): Ditto.
23086 (*fop_<mode>_1_mixed): Ditto.
23087 (*sqrt<mode>2_sse): Ditto.
23088 (*ieee_s<ieee_maxmin><mode>3): Ditto.
23090 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23092 * combine.c (simplify_if_then_else): Use std::swap instead
23093 of manually swapping.
23094 (known_cond): Likewise.
23095 (simplify_comparison): Likewise.
23097 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
23100 * config/rs6000/htm.md: Remove all define_expands.
23101 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23102 UNSPECV_HTM_TABORTWCI): Remove.
23103 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23104 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23105 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23106 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23107 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23108 tabortwci_internal): Remove define_insns.
23109 (tabort<wd>c, tabort<wd>ci): New define_insns.
23110 (tabort): Use gpc_reg_operand.
23111 (tcheck): Remove operand.
23112 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23113 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23115 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23116 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
23117 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23118 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23119 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23120 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23121 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23122 (tcheck): Remove builtin argument.
23123 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23125 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
23126 tabortdc and tabortdci builtins when not in 64-bit mode.
23127 Modify code to handle the loss of the HTM define_expands.
23128 Emit code to copy the CR register to TARGET.
23129 (htm_init_builtins): Modify code to handle the loss of the HTM
23131 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23132 (RS6000_BTC_64BIT): Likewise.
23133 (RS6000_BTC_CR): New macro.
23134 * doc/extend.texi: Update documentation for htm builtins.
23136 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23138 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23139 of manually swapping.
23140 (simplify_associative_operation): Likewise.
23141 (simplify_binary_operation): Likewise.
23142 (simplify_plus_minus): Likewise.
23143 (simplify_relational_operation): Likewise.
23144 (simplify_ternary_operation): Likewise.
23146 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23148 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23149 (xs_hi_nonmemory_operand): Remove error.
23150 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23151 general_operand rather than xs_hi_general_operand.
23153 2015-04-27 Richard Biener <rguenther@suse.de>
23155 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23156 (record_equivalences_from_stmt): Valueize rhs.
23157 (record_equality): Canonicalize x and y order via
23158 tree_swap_operands_p. Do not swap operands for same loop depth.
23160 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
23164 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23165 Add hint how to use own spec file.
23167 2015-04-27 Jakub Jelinek <jakub@redhat.com>
23169 PR tree-optimization/65875
23170 * tree-vrp.c (update_value_range): If in is_new case setting
23171 old_vr to VR_VARYING, also set new_vr to it. Remove
23172 old_vr->type == VR_VARYING test.
23173 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23174 SSA_PROP_INTERESTING if update_value_range returned true,
23175 but new range is VR_VARYING.
23177 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
23179 * combine.c (sign_extend_short_imm): New.
23180 (set_nonzero_bits_and_sign_copies): Use above new function for sign
23181 extension of src short immediate.
23182 (reg_nonzero_bits_for_combine): Likewise for tem.
23184 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23186 * stor-layout.c (self_referential_component_ref_p): New predicate.
23187 (copy_self_referential_tree_r): Use it.
23188 (self_referential_size): Punt for simple operations directly involving
23189 self-referential component references.
23190 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23192 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23194 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23196 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23198 * vec.h (vec): Make splice arguments const. Update definitions
23201 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
23203 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23206 2015-04-26 Tom de Vries <tom@codesourcery.com>
23208 PR tree-optimization/65826
23209 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23211 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
23213 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23214 (*madd3<mode>): Ditto.
23215 (*msub4<mode>): Ditto.
23216 (*msub3<mode>): Ditto.
23217 (*nmadd4<mode>): Ditto.
23218 (*nmadd3<mode>): Ditto.
23219 (*nmadd4<mode>_fastmath): Ditto.
23220 (*nmadd3<mode>_fastmath): Ditto.
23221 (*nmsub4<mode>): Ditto.
23222 (*nmsub3<mode>): Ditto.
23223 (*nmsub4<mode>_fastmath): Ditto.
23224 (*nmsub3<mode>_fastmath): Ditto.
23226 2015-04-24 Jason Merrill <jason@redhat.com>
23229 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23230 down when building TYPE_CANONICAL.
23231 (build_pointer_type_for_mode): Likewise.
23233 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
23235 * genrecog.c (validate_pattern): Check matching constraint refers
23236 to a lower numbered operand.
23238 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23241 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23242 save to independent variables use the Save attribute. This will
23243 allow these options to be modified with the #pragma/attribute
23245 (-mallow-movmisalign): Likewise.
23246 (-mallow-df-permute): Likewise.
23247 (-msched-groups): Likewise.
23248 (-malways-hint): Likewise.
23249 (-malign-branch-targets): Likewise.
23250 (-mvectorize-builtins): Likewise.
23251 (-msave-toc-indirect): Likewise.
23253 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23254 can be set via the #pragma/attribute target support.
23255 (rs6000_opt_vars): Likewise.
23256 (rs6000_inner_target_options): If VSX was set, also set
23257 -mno-avoid-indexed-addresses.
23259 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23261 * config/arm/iterators.md (shiftable_ops): Rename to...
23262 (SHIFTABLE_OPS): ... This. Update use in comments.
23263 (ior_xor): Rename to...
23264 (IOR_XOR): ... This.
23265 (vqh_ops): Rename to...
23266 (VQH_OPS): ... This.
23267 (vqhs_ops): Rename to...
23268 (VQHS_OPS): ... This.
23269 (rshifts): Rename to...
23270 (RSHIFTS): ... This.
23271 (returns): Rename to...
23272 (RETURNS): ... This.
23273 * config/arm/arm.md: Update uses of the above.
23274 * config/arm/neon.md: Likewise.
23276 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23278 * config.host (case ${host}): Add aarch64*-*-linux case.
23279 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23280 fields to all the cores.
23281 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23282 Add MCPU_MTUNE_NATIVE_SPECS.
23283 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23284 field to all extensions.
23285 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23286 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23287 Adjust definition of AARCH64_OPT_EXTENSION.
23288 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23289 (MCPU_MTUNE_NATIVE_SPECS): Define.
23290 * config/aarch64/driver-aarch64.c: New file.
23291 * config/aarch64/x-arch64: New file.
23292 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23295 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23296 Wei Mi <wmi@google.com>
23298 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23299 * config/i386/i386.c (extract_base_offset_in_addr): New function.
23300 (ix86_operands_ok_for_move_multiple): Ditto.
23301 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23302 (movlpd/movhpd to movupd peephole2): Ditto.
23304 2015-04-24 Marek Polacek <polacek@redhat.com>
23307 * input.h (from_macro_expansion_at): Define.
23310 * doc/invoke.texi: Update description of -Wlogical-op.
23312 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23314 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23315 ternary operator in fprintf and harmonize spacing.
23317 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23319 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23320 Mark operand1 commutative.
23322 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23324 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23325 input operands in memory.
23326 (*vec_concatv2si_sse4_1): Ditto.
23327 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23328 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23330 (vec_extract_hi_v32hi): Ditto.
23331 (vec_extract_hi_v64hi): Ditto.
23332 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23334 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23335 Steven Bosscher <steven@gcc.gnu.org>
23337 PR rtl-optimization/34503
23338 * cprop.c (cprop_reg_p): New.
23339 (hash_scan_set): Use above function to check if register can be
23341 (find_avail_set): Return up to two sets, one whose source is a
23342 register and one whose source is a constant. Sets are returned in an
23343 array passed as parameter rather than as a return value.
23344 (cprop_insn): Use a do while loop rather than a goto. Try each of the
23345 sets returned by find_avail_set, starting with the one whose source is
23346 a constant. Use cprop_reg_p to check if register can be propagated.
23347 (do_local_cprop): Use cprop_reg_p to check if register can be
23349 (implicit_set_cond_p): Likewise.
23351 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23353 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23354 (sem_function::equals): IGNORED_NODES parameter is now unused;
23355 update call of equals_private.
23356 (sem_function::equals_private): Do not call equals_wpa; skip
23357 gimple body matching if there is no body.
23358 (sem_function::init): Add logic to hash tthunk info.
23359 (sem_function::parse): Also parse thunks.
23360 * ipa-icf.h (equals_private): Update declaration.
23362 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23364 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23365 asterisk from name so this can be generated directly.
23366 (*altivec_stvx_<mode>_internal): Likewise.
23367 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23368 that this is never called during or after reload/lra.
23369 (rs6000_frame_related): Remove split_reg
23370 argument and logic that references it.
23371 (emit_frame_save): Remove last parameter from call to
23372 rs6000_frame_related.
23373 (rs6000_emit_prologue): Remove last parameter from eight calls to
23374 rs6000_frame_related. Force generation of stvx instruction for
23375 Altivec register saves. Remove split_reg handling, which is no
23377 (rs6000_emit_epilogue): Force generation of lvx instruction for
23378 Altivec register restores.
23380 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23382 * config/rs6000/rs6000.opt (mcrypto): Change option description to
23383 match category changes in ISA 2.07B.
23385 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23387 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23389 (cmp_op, cmp_type): New code attributes.
23390 (NEON_VCMP, NEON_VACMP): New int iterators.
23391 (cmp_op_unsp): New int attribute.
23392 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23393 (neon_vceq<mode>): Delete.
23394 (neon_vc<cmp_op><mode>_insn): New pattern.
23395 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23396 (neon_vcgeu<mode>): Delete.
23397 (neon_vcle<mode>): Likewise.
23398 (neon_vclt<mode>: Likewise.
23399 (neon_vcage<mode>): Likewise.
23400 (neon_vcagt<mode>): Likewise.
23401 (neon_vca<cmp_op><mode>): New define_expand.
23402 (neon_vca<cmp_op><mode>_insn): New pattern.
23403 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23405 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23407 * tree.h (attribute_value_equal): Declare.
23408 * tree.c (attribute_value_equal): Export.
23410 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23412 * ipa-icf.c (sem_item::compare_attributes): New function.
23413 (sem_item::compare_referenced_symbol_properties): Compare variable
23415 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23416 (sem_function::param_used_p): New function.
23417 (sem_function::equals_wpa): Fix attribute comparsion; match
23418 parameter type codes; do not compare paremter flags when
23419 they are not used; compare edge flags; compare indirect calls.
23420 (sem_item::update_hash_by_addr_refs): Hash reference type.
23421 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23422 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23423 reference use type.
23424 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23425 * ipa-icf.h (compare_attributes, param_used_p): Declare.
23427 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23429 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23431 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
23432 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
23433 (sem_item::compare_referenced_symbol_properties): New.
23434 (sem_item::hash_referenced_symbol_properties): New.
23435 (sem_item::compare_cgraph_references): Rename to ...
23436 (sem_item::compare_symbol_references): ... this one; use
23437 compare_referenced_symbol_properties.
23438 (sem_function::equals_wpa): Do not compare
23439 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
23440 DECL_IS_OPERATOR_NEW; compare pointer sizes.
23441 (sem_item::update_hash_by_addr_refs): Call
23442 hash_referenced_symbol_properties.
23443 (sem_item::update_hash_by_local_refs): Cleanup.
23444 (sem_function::merge): Do not mix up symbol properties.
23445 (sem_variable::equals_wpa): Use compare_symbol_references.
23446 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
23447 (sem_item::hash_referenced_symbol_properties): New.
23448 (sem_item::compare_symbol_references): New.
23449 (sem_item::compare_cgraph_references): Remove.
23451 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
23454 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
23455 Emit size of local.
23457 2015-04-23 Nick Clifton <nickc@redhat.com>
23459 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
23460 ATTRIBUTE_UNUSED to x parameter.
23461 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
23463 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23465 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
23466 TARGET_CRYPTO to TARGET_P8_VECTOR>
23467 (crypto_vpermxor_<mode>): Likewise.
23468 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
23469 (BU_CRYPTO_3A): Likewise.
23470 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
23471 (BU_CRYPTO_OVERLOAD_3A): New #define.
23472 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
23473 (VPMSUMH): Likewise.
23474 (VPMSUMW): Likewise.
23475 (VPMSUMD): Likewise.
23476 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
23477 (VPERMXOR_V4SI): Likewise.
23478 (VPERMXOR_V8HI): Likewise.
23479 (VPERMXOR_V16QI): Likewise.
23480 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
23481 BU_CRYPTO_OVERLOAD_2A.
23482 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
23483 BU_CRYPTO_OVERLOAD_3A.
23484 * config/rs6000/rs6000.opt (mcrypto): Change description of
23487 2015-04-23 Richard Biener <rguenther@suse.de>
23489 * passes.def: Remove copy propagation passes run directly after CCP.
23490 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
23492 (ccp_visit_phi_node): Rework to handle first executable edge
23495 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
23497 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23498 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23499 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23500 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
23501 (thumb_legimitimize_reload_address): Remove.
23502 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
23504 (thumb_legimitimize_reload_address): Remove.
23506 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23508 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
23510 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23512 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
23514 (store_multiple): Likewise.
23516 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23518 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
23519 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
23520 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
23521 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
23522 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
23523 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
23524 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
23525 Specify issue_rate value.
23526 (arm_issue_rate): Look up issue rate from tuning structs. Remove
23527 large switch statement.
23528 (arm_marvell_pj4_tune): New struct.
23529 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
23532 2015-04-23 Richard Biener <rguenther@suse.de>
23534 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
23535 (vect_find_last_store_in_slp_instance): Rename to ...
23536 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
23537 (vect_analyze_slp_cost_1): Use vector_load for constant defs
23538 and vec_construct for external defs when estimating prologue cost.
23539 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
23540 Compute costs here only when vectorizing loops.
23541 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
23542 have been determined.
23543 (vect_schedule_slp_instance): Simplify vectorized code placement
23544 and prepare for in-BB external defs.
23545 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
23546 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
23547 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
23549 (vect_model_load_cost): Likewise.
23550 (vectorizable_store): Instead add it here.
23551 (vectorizable_load): Likewise.
23552 (vect_is_simple_use): Dump def type textually.
23554 2015-04-23 Richard Biener <rguenther@suse.de>
23556 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
23557 * cfgloop.c (verify_loop_structure): Verify the root loop node.
23558 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
23559 instead of get_eh_region_from_lp_number.
23560 * loop-init.c (fix_loop_structure): If we removed a loop, reset
23563 2015-04-23 Anton Blanchard <anton@samba.org>
23565 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
23566 need for -mprofile-kernel to save LR to stack.
23568 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23570 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
23572 (insn_is_swappable_p): Return 1 for a convert from double to
23573 single precision when all of its uses are splats of BE element
23576 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23578 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
23580 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23583 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
23584 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
23585 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
23587 (rs6000_builtin_mask_for_load): Return 0 for targets with
23588 efficient unaligned VSX accesses so that the vectorizer will use
23589 direct unaligned loads.
23590 (rs6000_builtin_support_vector_misalignment): Always return true
23591 for targets with efficient unaligned VSX accesses.
23592 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
23593 stores on targets with efficient unaligned VSX accesses is almost
23594 always the same as the cost of an aligned load or store, so model
23596 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
23597 unaligned vectors if we have efficient unaligned VSX accesses.
23598 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
23599 undocumented option.
23601 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23604 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
23606 * config.gcc (LIBC_MUSL): New tm_defines macro.
23607 * config/linux.h (OPTION_MUSL): Define.
23608 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23609 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23610 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23612 * config/linux.opt (mmusl): New option.
23613 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23614 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23616 * configure: Regenerate.
23618 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
23620 * config.gcc (LIBC_MUSL): New tm_defines macro.
23621 * config/linux.h (OPTION_MUSL): Define.
23622 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23623 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23624 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23626 * config/linux.opt (mmusl): New option.
23627 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23628 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23630 * configure: Regenerate.
23632 2015-04-22 Yury Gribov <y.gribov@samsung.com>
23634 * doc/invoke.texi (-fsanitize-sections): Update description.
23635 * asan.c (set_sanitized_sections): Parse incoming arg.
23636 (section_sanitized_p): Support wildcards.
23638 2015-04-22 Tom de Vries <tom@codesourcery.com>
23640 PR tree-optimization/65823
23641 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
23642 equality between ap_copy and ap.
23644 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23647 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
23649 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23652 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
23654 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23657 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
23658 remove already contained t-files.
23660 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23662 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
23663 Remove unneeded forward declarations.
23664 (suitable_for_tail_call_opt_p): Commentary typo fix.
23666 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23668 * varasm.c (emit_bss): Remove redundant guard.
23670 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23672 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
23674 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23676 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
23678 2015-04-22 Hale Wang <hale.wang@arm.com>
23679 Terry Guo <terry.guo@arm.com>
23681 PR rtl-optimization/64818
23682 * combine.c (can_combine_p): Don't combine user-specified
23683 register if it is in an asm input.
23685 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
23688 * passes.def (early_optimizations): Add pass_dse.
23690 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23692 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
23693 * reorg.c (redundant_insn): Remove ifdef
23694 INSN_REFERENCES_ARE_DELAYED.
23695 * resource.c (mark_referenced_resources): Likewise.
23697 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23699 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
23700 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
23701 * resource.c (mark_set_resources): Likewise.
23703 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23705 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
23706 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23707 (flow_find_head_matching_sequence): Likewise.
23708 (try_head_merge_bb): Likewise.
23709 * combine.c (can_combine_p): Likewise.
23710 (try_combine): Likewise.
23711 (distribute_notes): Likewise.
23712 * df-problems.c (can_move_insns_across): Likewise.
23713 * final.c (final): Likewise.
23714 * gcse.c (insert_insn_end_basic_block): Likewise.
23715 * ira.c (find_moveable_pseudos): Likewise.
23716 * reorg.c (try_merge_delay_insns): Likewise.
23717 (fill_simple_delay_slots): Likewise.
23718 (fill_slots_from_thread): Likewise.
23719 * sched-deps.c (sched_analyze_2): Likewise.
23721 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23723 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
23724 PIC_OFFSET_TABLE_REGNUM.
23726 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23728 * alias.c (init_alias_target): Remove ifdef
23729 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
23730 * df-scan.c (df_insn_refs_collect): Likewise.
23731 (df_get_regular_block_artificial_uses): Likewise.
23732 (df_get_eh_block_artificial_uses): Likewise.
23733 (df_get_entry_block_def_set): Likewise.
23734 (df_get_exit_block_use_set): Likewise.
23735 * emit-rtl.c (gen_rtx_REG): Likewise.
23736 * ira.c (ira_setup_eliminable_regset): Likewise.
23737 * reginfo.c (init_reg_sets_1): Likewise.
23738 * regrename.c (rename_chains): Likewise.
23739 * reload1.c (reload): Likewise.
23740 (eliminate_regs_in_insn): Likewise.
23741 * resource.c (mark_referenced_resources): Likewise.
23742 (init_resource_info): Likewise.
23744 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23746 * defaults.h (MASK_RETURN_ADDR): New definition.
23747 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23750 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23752 * defaults.h (RETURN_ADDR_OFFSET): New definition.
23753 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23754 RETURN_ADDR_OFFSET.
23755 (expand_builtin_frob_return_addr): Likewise.
23757 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23759 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
23760 (try_redirect_by_replacing_jump): Likewise.
23761 (rtl_tidy_fallthru_edge): Likewise.
23762 * combine.c (insn_a_feeds_b): Likewise.
23763 (find_split_point): Likewise.
23764 (simplify_set): Likewise.
23765 * cprop.c (cprop_jump): Likewise.
23766 * cse.c (cse_extended_basic_block): Likewise.
23767 * df-problems.c (can_move_insns_across): Likewise.
23768 * function.c (emit_use_return_register_into_block): Likewise.
23769 * haifa-sched.c (sched_init): Likewise.
23770 * ira.c (find_moveable_pseudos): Likewise.
23771 * loop-invariant.c (find_invariant_insn): Likewise.
23772 * lra-constraints.c (curr_insn_transform): Likewise.
23773 * postreload.c (reload_combine_recognize_const_pattern):
23775 * reload.c (find_reloads): Likewise.
23776 * reorg.c (delete_scheduled_jump): Likewise.
23777 (steal_delay_list_from_target): Likewise.
23778 (steal_delay_list_from_fallthrough): Likewise.
23779 (redundant_insn): Likewise.
23780 (fill_simple_delay_slots): Likewise.
23781 (fill_slots_from_thread): Likewise.
23782 (delete_computation): Likewise.
23783 * sched-rgn.c (add_branch_dependences): Likewise.
23785 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23787 * genconfig.c (main): Always define HAVE_cc0.
23788 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
23790 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23791 (flow_find_head_matching_sequence): Likewise.
23792 (try_head_merge_bb): Likewise.
23793 * cfgrtl.c (rtl_merge_blocks): Likewise.
23794 (try_redirect_by_replacing_jump): Likewise.
23795 (rtl_tidy_fallthru_edge): Likewise.
23796 * combine.c (do_SUBST_MODE): Likewise.
23797 (insn_a_feeds_b): Likewise.
23798 (combine_instructions): Likewise.
23799 (can_combine_p): Likewise.
23800 (try_combine): Likewise.
23801 (find_split_point): Likewise.
23803 (simplify_set): Likewise.
23804 (distribute_notes): Likewise.
23805 * cprop.c (cprop_jump): Likewise.
23806 * cse.c (cse_extended_basic_block): Likewise.
23807 * df-problems.c (can_move_insns_across): Likewise.
23808 * final.c (final): Likewise.
23809 (final_scan_insn): Likewise.
23810 * function.c (emit_use_return_register_into_block): Likewise.
23811 * gcse.c (insert_insn_end_basic_block): Likewise.
23812 * haifa-sched.c (sched_init): Likewise.
23813 * ira.c (find_moveable_pseudos): Likewise.
23814 * loop-invariant.c (find_invariant_insn): Likewise.
23815 * lra-constraints.c (curr_insn_transform): Likewise.
23816 * optabs.c (prepare_cmp_insn): Likewise.
23817 * postreload.c (reload_combine_recognize_const_pattern):
23819 * reload.c (find_reloads): Likewise.
23820 (find_reloads_address_1): Likewise.
23821 * reorg.c (delete_scheduled_jump): Likewise.
23822 (steal_delay_list_from_target): Likewise.
23823 (steal_delay_list_from_fallthrough): Likewise.
23824 (try_merge_delay_insns): Likewise.
23825 (redundant_insn): Likewise.
23826 (fill_simple_delay_slots): Likewise.
23827 (fill_slots_from_thread): Likewise.
23828 (delete_computation): Likewise.
23829 (relax_delay_slots): Likewise.
23830 * sched-deps.c (sched_analyze_2): Likewise.
23831 * sched-rgn.c (add_branch_dependences): Likewise.
23833 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23835 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
23836 that is trivially ded on non cc0 targets.
23837 (simplify_set): Likewise.
23838 (mark_used_regs_combine): Likewise.
23839 * cse.c (new_basic_block): Likewise.
23840 (fold_rtx): Likewise.
23841 (cse_insn): Likewise.
23842 (cse_extended_basic_block): Likewise.
23843 (set_live_p): Likewise.
23844 * rtlanal.c (canonicalize_condition): Likewise.
23845 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23847 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23849 * conditions.h: Define macros even if HAVE_cc0 is undefined.
23850 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
23851 * final.c: Likewise.
23852 * jump.c: Likewise.
23853 * recog.c: Likewise.
23854 * recog.h: Declare functions even when HAVE_cc0 is undefined.
23855 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
23857 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23859 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
23860 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
23861 * builtins.c (expand_builtin): Remove check if
23862 EH_RETURN_DATA_REGNO is defined.
23863 * df-scan.c (df_bb_refs_collect): Likewise.
23864 (df_get_exit_block_use_set): Likewise.
23865 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
23866 * ira-lives.c (process_bb_node_lives): Likewise.
23867 * lra-lives.c (process_bb_lives): Likewise.
23869 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
23871 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
23872 FIRST_PSEUDO_REG): New.
23873 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
23874 (ARG_POINTER_REGNUM): Define to ARGP_REG.
23875 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
23876 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
23877 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
23878 (FIRST_INT_REG): New.
23879 (LAST_INT_REG): New.
23880 (FIRST_*_REG): Define using *_REG.
23881 (LAST_*_REG): Ditto.
23882 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
23883 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
23884 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
23886 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23888 * expmed.c: (synth_mult): Only assume overlapping
23889 shift with previous steps in alg_sub_t_m2 case.
23891 2015-04-21 Richard Biener <rguenther@suse.de>
23893 PR tree-optimization/65650
23894 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
23895 transitions involving copies.
23896 (set_lattice_value): Adjust for copy lattice state.
23897 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
23898 if that doesn't dominate the merge point.
23899 (bit_value_unop): Adjust what we treat as varying mask.
23900 (bit_value_binop): Likewise.
23901 (bit_value_assume_aligned): Likewise.
23902 (evaluate_stmt): When we simplified to a SSA name record a copy
23903 instead of dropping to varying.
23904 (visit_assignment): Simplify.
23906 * gimple-match.h (gimple_simplify): Add another callback.
23907 * gimple-fold.c (fold_stmt_1): Adjust caller.
23908 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
23909 for the 2nd callback.
23910 * gimple-match-head.c (gimple_simplify): Add a callback that is
23911 used to valueize the stmt operands and use it that way.
23913 2015-04-21 Richard Biener <rguenther@suse.de>
23915 PR tree-optimization/65788
23916 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
23918 2015-04-21 Richard Biener <rguenther@suse.de>
23920 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
23921 vec_construct cost by vec_stmt_cost.
23923 2015-04-21 Richard Biener <rguenther@suse.de>
23925 * cfghooks.h (create_basic_block): Replace with two overloads
23926 for RTL and GIMPLE.
23927 (split_block): Likewise.
23928 * cfghooks.c (split_block): Rename to ...
23929 (split_block_1): ... this.
23930 (split_block): Add two type-safe overloads for RTL and GIMPLE.
23931 (split_block_after_labels): Call split_block_1.
23932 (create_basic_block): Rename to ...
23933 (create_basic_block_1): ... this.
23934 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
23935 (create_empty_bb): Call create_basic_block_1.
23936 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
23937 split_block_after_labels.
23938 * omp-low.c (expand_parallel_call): Likewise.
23939 (expand_omp_target): Likewise.
23940 (simd_clone_adjust): Likewise.
23941 * tree-chkp.c (chkp_get_entry_block): Likewise.
23942 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
23943 create_basic_block overload.
23944 (cgraph_node::expand_thunk): Likewise.
23945 * tree-cfg.c (make_blocks): Likewise.
23946 (handle_abnormal_edges): Likewise.
23947 * tree-inline.c (copy_bb): Likewise.
23949 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23951 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
23953 (*xor_one_cmplsidi3_ze): Likewise.
23955 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
23957 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
23958 use df_remove_problem rather than manually removing problems, leaving
23959 holes in df->problems_in_order[].
23961 2015-04-21 Tom de Vries <tom@codesourcery.com>
23963 PR tree-optimization/65802
23964 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
23966 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23968 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
23970 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
23971 at '.'. Assert that there's enough space for everything.
23973 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
23975 PR tree-optimization/64950
23977 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
23980 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
23983 2015-04-20 Shiva Chen <shiva0217@gmail.com>
23985 PR rtl-optimization/64916
23986 * cfgcleanup.c (values_equal_p): New function.
23987 (can_replace_by): Use it.
23989 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
23992 * doc/invoke.texi ([-Wnarrowing]): Update.
23994 2015-04-20 Jeff Law <law@redhat.com>
23996 PR tree-optimization/65658
23997 * tree-ssa-threadupdate.c (redirection_block_p): Remove
23998 redundant test for GIMPLE_ASSIGN in last change.
24000 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
24002 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24003 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24004 (legitimize_tls_address): Ditto.
24005 (ix86_expand_move): Ditto.
24006 (ix86_expand_binary_operator): Remove reload_in_progress checks.
24007 (ix86_expand_unary_operator): Ditto.
24008 * config/i386/predicates.md (index_register_operand): Ditto.
24010 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
24012 * reorg.c (try_merge_delay_insns): Improve correctness checking
24013 for targets with multiple delay slots.
24015 2015-04-20 Jeff Law <law@redhat.com>
24017 PR tree-optimization/65658
24018 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24021 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24023 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24024 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24027 2015-04-20 Jakub Jelinek <jakub@redhat.com>
24030 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24032 2015-04-20 Richard Biener <rguenther@suse.de>
24034 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24035 * gimple-fold.c (gimple_build_valueize): New function.
24036 (gimple_build): Always use gimple_build_valueize as valueize hook.
24038 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24041 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24042 and overwrite variable parts if <= 1/2 the elements are variable.
24044 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
24046 PR rtl-optimization/65805
24047 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24048 Don't use difference of offset and previous offset if
24049 update_sp_offset is non-zero.
24050 (eliminate_regs_in_insn): Ditto.
24051 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24052 lra_eliminate_regs_1 call.
24053 * lra-constraints.c (get_equiv_with_elimination): Ditto.
24055 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
24057 * hash-table.h: Remove version of hash_table that stored value_type *.
24058 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24059 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24060 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24061 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24062 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24063 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24064 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24065 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24066 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24067 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24068 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24069 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24070 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24071 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24072 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24073 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24075 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24076 Jakub Jelinek <jakub@redhat.com>
24079 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24080 subsequent SH_NONE operand does not overwrite an existing *special
24082 (adjust_extract): Handle case where a vec_extract operation is
24083 wrapped in a PARALLEL.
24085 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24088 * config/i386/i386.c (ix86_binds_local_p): Define only if
24089 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24091 2015-04-17 Jeff Law <law@redhat.com>
24093 PR tree-optimization/47679
24094 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24095 * tree-ssa-scopedtables.c: New file.
24096 * tree-ssa-scopedtables.h: New file.
24097 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24098 (const_and_copies): Change name/type.
24099 (record_const_or_copy): Move into tree-ssa-scopedtables.c
24100 (record_const_or_copy_1): Similarly.
24101 (restore_vars_to_original_value): Similarly.
24102 (pass_dominator::execute): Create and destroy const_and_copies table.
24103 (thread_across_edge): Update passing of const_and_copies.
24104 (record_temporary_equivalence): Use method calls rather than
24105 manipulating const_and_copies directly.
24106 (record_equality, cprop_into_successor_phis): Similarly.
24107 (dom_opt_dom_walker::before_dom_children): Similarly.
24108 (dom_opt_dom_walker::after_dom_children): Similarly.
24109 (eliminate_redundant_computations): Similarly.
24110 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24111 (record_temporary_equivalence): Likewise.
24112 (invalidate_equivalences): Likewise.
24113 (record_temporary_equivalences_from_phis): Update due to type
24114 change of const_and_copies. Use method calls rather than
24115 manipulating the stack directly.
24116 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24117 (thread_through_normal_block, thread_across_edge): Likewise.
24118 (thread_across_edge): Likewise.
24119 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24120 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
24122 (identify_jump_threads): Update due to type change of equiv_stack.
24123 (finalize_jump_threads): Delete the equiv_stack when complete.
24125 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
24127 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24128 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24129 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24131 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
24134 * config.gcc: Exit with a comment when we do not have a major version
24135 number for the FreeBSD target.
24137 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24140 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24141 maybe_allows_mem bitfields.
24142 (maybe_allows_none_start, maybe_allows_none_end,
24143 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24144 maybe_allows_mem_end): New variables.
24145 (compute_maybe_allows): New function.
24146 (add_constraint): Use it to initialize maybe_allows_reg and
24147 maybe_allows_mem fields.
24148 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24149 is_address constraints such that those that allow neither mem nor
24150 reg come first, then those that only allow reg but not mem, then
24151 those that only allow mem but not reg, then the rest.
24152 (write_allows_reg_mem_function): New function.
24153 (write_tm_preds_h): Call it.
24154 * stmt.c (parse_output_constraint, parse_input_constraint): Use
24155 the generated insn_extra_constraint_allows_reg_mem function
24156 instead of always setting *allows_reg = true; *allows_mem = true;
24157 for unknown extra constraints.
24159 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24162 * output.h (default_binds_local_p_3): New.
24163 * varasm.c (default_binds_local_p_3): Make it public. Take an
24164 argument to indicate if common symbol may be local. If common
24165 symbol may be local, treat non-external variable as defined
24167 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24168 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24169 * config/i386/i386.c (ix86_binds_local_p): New.
24170 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24171 ix86_binds_local_p.
24173 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24176 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24177 trying mem_loc_descriptor on XEXP (rtl, 0).
24179 2015-04-17 Martin Liska <mliska@suse.cz>
24181 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24182 Release symbol_compare_collection.
24183 * ipa-reference.c: Add TODO that a vector should be released.
24185 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24188 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24189 to new AVR-LibC file layout (bug #44574).
24190 (*avrlibc_devicelib): Same.
24191 * config/avr/avr-mcus.def: Adjust comments.
24192 * config/avr/avr.opt (nodevicelib): Adjust help.
24194 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
24196 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24198 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
24201 * gimplify.c (gimplify_init_constructor): Always emit a
24202 side-effecting constructor.
24204 2015-04-17 Tom de Vries <tom@codesourcery.com>
24206 PR tree-optimization/64950
24207 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24208 in cfun->curr_properties.
24209 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24210 if we generate an IFN_VA_ARG.
24211 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24212 function if PROP_gimple_lva is not set in src function.
24214 2015-04-17 Tom de Vries <tom@codesourcery.com>
24215 Michael Matz <matz@suse.de>
24217 PR tree-optimization/64950
24218 * gimple-iterator.c (update_modified_stmts): Remove static.
24219 * gimple-iterator.h (update_modified_stmts): Declare.
24220 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24221 (gimplify_va_arg_internal): New function.
24222 (gimplify_va_arg_expr): Use IFN_VA_ARG.
24223 * gimplify.h (gimplify_va_arg_internal): Declare.
24224 * internal-fn.c (expand_VA_ARG): New unreachable function.
24225 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24226 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24227 (expand_ifn_va_arg): New function.
24228 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24229 (pass_stdarg::execute): Call expand_ifn_va_arg.
24230 (pass_data_lower_vaarg): New pass_data.
24231 (pass_lower_vaarg): New gimple_opt_pass.
24232 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24233 (make_pass_lower_vaarg): New function.
24234 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24235 properties_required field.
24236 * passes.def (all_passes): Add pass_lower_vaarg.
24237 * tree-pass.h (PROP_gimple_lva): Add define.
24238 (make_pass_lower_vaarg): Declare.
24240 2015-04-17 Tom de Vries <tom@codesourcery.com>
24242 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24243 * calls.c (call_expr_flags): Same.
24245 2015-04-17 Tom de Vries <tom@codesourcery.com>
24247 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24248 (pass_stdarg::execute): ... here.
24250 2015-04-17 Tom de Vries <tom@codesourcery.com>
24251 Michael Matz <matz@suse.de>
24253 * tree-cfg.c (make_blocks_1): Factor out of ...
24254 (make_blocks): ... here.
24255 (make_edges_bb): Factor out of ...
24256 (make_edges): ... here.
24257 (gimple_find_sub_bbs): New function.
24258 * tree-cfg.h (gimple_find_sub_bbs): Declare.
24260 2015-04-17 Tom de Vries <tom@codesourcery.com>
24262 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24264 2015-04-17 Yury Gribov <y.gribov@samsung.com>
24266 * asan.c (set_sanitized_sections): New function.
24267 (section_sanitized_p): Ditto.
24268 (asan_protect_global): Optionally sanitize user-defined
24270 * asan.h (set_sanitized_sections): Declare new function.
24271 * common.opt (fsanitize-sections): New option.
24272 * doc/invoke.texi (-fsanitize-sections): Document new option.
24273 * opts-global.c (handle_common_deferred_options): Handle new
24276 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24279 * dwarf2out.c (loc_list_from_tree): Return NULL
24280 for DEBUG_EXPR_DECL.
24282 2015-04-17 Christian Bruel <christian.bruel@st.com>
24284 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24287 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24289 * ira-color.c (setup_left_conflict_sizes_p): Do not process
24290 node itself when computing left conflict subnode size.
24292 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24294 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24295 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24296 *fop_<mode>_1_sse using enabled attribute. Use
24297 register_mixssei387nonimm_operand operand 1 predicate. Change
24298 alternative 3 constraints from "x" to "v".
24300 2015-04-16 Richard Biener <rguenther@suse.de>
24302 PR tree-optimization/65774
24303 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24304 bit-value tracking on.
24306 2015-04-16 Richard Biener <rguenther@suse.de>
24308 PR tree-optimization/64277
24309 * tree-vrp.c (check_array_ref): Fix anti-range handling,
24310 simplify upper bound handling.
24311 (search_for_addr_array): Simplify.
24312 (check_array_bounds): Handle ADDR_EXPRs here.
24313 (check_all_array_refs): Simplify.
24315 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24317 * config/i386/i386.c (print_reg): Rewrite function.
24319 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24321 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24322 Invert the condition.
24324 2015-04-16 Renlin Li <renlin.li@arm.com>
24326 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24327 simplifications for UNSIGNED_FLOAT.
24329 2015-04-16 Nick Clifton <nickc@redhat.com>
24331 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24333 (enum rl78_cpu_type): New.
24334 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24335 (umulhi3_shift_virt): Remove m constraint from operand 1.
24336 (umulqihi3_virt): Likewise.
24337 * config/rl78/rl78.c (rl78_option_override): Add code to process
24338 -mcpu and -mmul options.
24339 (rl78_alloc_physical_registers): Add code to handle divhi and
24340 divsi valloc attributes.
24341 (set_origin): Likewise.
24342 * config/rl78/rl78.h (RL78_MUL_G14): Define.
24343 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24344 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24346 (ASM_SPEC): Pass -mcpu on to assembler.
24347 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24348 (mulqi3_rl78): Likewise.
24349 (mulhi3_g13): Likewise.
24350 (mulhi3): Generate the G13 or G14 versions of the insn directly.
24351 (mulsi3): Likewise.
24352 (mulhi3_g14): Add clobbers of AX and BC.
24353 (mulsi3_g14): Likewise.
24354 (mulsi3_g13): Likewise.
24355 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24356 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24357 * config/rl78/rl78.opt (mmul): Initialise value to
24359 (mcpu): New option.
24360 (m13, m14, mrl78): New option aliases.
24361 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24362 (MULTILIB_DIRNAMES): Add g13 and g14.
24363 * doc/invoke.texi: Document -mcpu and -mmul options.
24365 2015-04-16 Richard Biener <rguenther@suse.de>
24367 * tree-ssa-ccp.c (likely_value): See if we have operands that
24368 are marked as never simulate again and return CONSTANT in this
24370 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24371 not have any operands that will be simulated again as
24372 not being simulated again.
24374 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
24376 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24377 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24378 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24380 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24382 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24383 *float<SWI48:mode><MODEF:mode>2_sse.
24384 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24386 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24389 2015-04-15 Tom de Vries <tom@codesourcery.com>
24392 * function.c (push_dummy_function): New function.
24393 (init_dummy_function_start): Use push_dummy_function.
24394 (pop_dummy_function): New function. Factored out of ...
24395 (expand_dummy_function_end): ... here.
24396 * function.h (push_dummy_function, pop_dummy_function): Declare.
24397 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24398 pop_dummy_function.
24399 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24401 2015-04-15 Jeff Law <law@redhat.com>
24403 PR tree-optimization/47679
24404 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24405 need for forward declaration in upcoming changes.
24406 (record_conditions, record_edge_info): Likewise.
24408 PR rtl-optimization/42522
24409 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24410 SIGN_EXTRACT as a whole object rather than simplifying
24413 2015-04-15 Jakub Jelinek <jakub@redhat.com>
24416 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24417 and GIMPLE_PREDICT use break instead of return true. For
24418 GIMPLE_EH_DISPATCH, compare dispatch region.
24420 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
24422 * doc/extend.texi (__sync Builtins): Simplify some text. Update
24423 details about the implementation. Make clear preference for
24424 __atomic builtins. Reduce possibility of future change.
24426 2015-04-15 Nick Clifton <nickc@redhat.com>
24428 * config/rx/rx.opt (mallow-string-insns): New option.
24429 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24430 builtin if string instructions are denied.
24431 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
24432 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
24434 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
24435 * config/rx/rx.md (movstr): Enable pattern only if string
24436 instructions are allowed.
24437 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
24438 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
24439 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
24440 (MULTILIB_DIRNAMES): Add no-strings.
24441 * doc/invoke.texi: Document -mno-allow-string-insns.
24443 2015-04-15 Alan Modra <amodra@gmail.com>
24447 PR middle-end/36043
24448 * calls.c (load_register_parameters): Don't load past end of
24449 mem unless suitably aligned.
24451 2015-04-15 Nick Clifton <nickc@redhat.com>
24453 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
24454 decrement instruction as being frame related.
24455 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
24457 If zero extending a function address enclose the operation in
24459 (rl78_preferred_reload_class): New function.
24460 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24461 * config/rl78/rl78.md: Remove useless constraints in expanders.
24462 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
24463 (mulhi3_rl78): Likewise.
24464 (mulhi3_g13): Likewise.
24465 (mulsi3_rl78): Likewise.
24466 (es_addr): Move to before the multiply patterns.
24468 2015-04-15 Alan Modra <amodra@gmail.com>
24470 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
24471 and sequence_stack. Add seq.
24472 (seq_stack): Delete.
24473 * function.c (prepare_function_start): Don't access x_last_insn.
24474 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
24475 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
24476 * emit_rtl.c (start_sequence, push_topmost_sequence,
24477 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
24478 sequence accessors.
24479 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
24480 remove_insn): Likewise. Simplify.
24481 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
24482 and pop_topmost_sequence.
24483 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
24485 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
24487 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
24490 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
24493 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24495 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
24496 (LEGACY_INT_REGNO_P): Ditto.
24497 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
24498 (ANY_MASK_REG_P): Remove.
24499 (BND_REG_P): Rename from ANY_BND_REG_P.
24500 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
24501 legacy integer registers. Do not handle MMX_REG_P in a special way.
24502 Merge 64byte and 32byte SSE handling.
24504 2015-04-14 Nick Clifton <nickc@redhat.com>
24506 * expr.c (expand_assignment): Force an address offset computation
24507 into a register before changing its mode.
24508 (expand_expr_real_1): Likewise.
24510 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
24512 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
24513 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
24514 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
24515 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
24516 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
24517 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
24518 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
24519 and __aarch64_vget_lane_any.
24521 2015-04-14 Jakub Jelinek <jakub@redhat.com>
24523 PR rtl-optimization/65761
24524 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
24525 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
24527 2015-04-14 Richard Biener <rguenther@suse.de>
24529 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
24530 (graphite_can_represent_scev): Use POINTER_TYPE_P.
24532 2015-04-14 Richard Biener <rguenther@suse.de>
24534 PR tree-optimization/65758
24535 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
24537 (ccp_lattice_meet): Likewise.
24538 (bit_value_unop): Likewise.
24539 (bit_value_binop): Likewise.
24540 (bit_value_assume_aligned): Likewise.
24542 2015-04-14 Christian Bruel <christian.bruel@st.com>
24544 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
24547 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
24549 PR tree-optimization/63387
24550 * match.pd ((x unord x) | (y unord y) -> (x unord y),
24551 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
24553 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24555 * config/i386/predicates.md (any_QIreg_operand): Rename from
24556 q_regs_operand. Do not process subregs.
24557 (QIreg_operand): Use QI_REGNO_P predicate.
24558 (ext_QIreg_operand): Ditto.
24559 (ext_register_operand): Ditto.
24560 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
24561 (AND splitters): Ditto.
24562 (AND with -65536 splitter): Add SWI48 mode for operand 0.
24563 (AND with -256 splitter): Use any_QIreg_operand predicate and
24564 SWI248 mode for operand 0.
24565 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
24566 mode for operand 0.
24567 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
24569 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
24571 * doc/plugins.texi: Rewrite first introductory paragraph.
24573 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24575 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
24576 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
24578 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24580 * ipa-profie.c (ipa_profile): Check number of parameters
24581 and possible polymorphic call targets before
24584 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
24586 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
24587 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
24589 2015-04-13 Richard Biener <rguenther@suse.de>
24591 PR tree-optimization/65204
24592 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
24593 takens for bit-CCP.
24595 2015-04-13 Richard Biener <rguenther@suse.de>
24598 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
24599 and cond_not_taken_branch_cost to 4 and 2.
24600 (bdver2_cost): Likewise.
24601 (bdver3_cost): Likewise.
24602 (bdver4_cost): Likewise.
24604 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24606 * hash-table.h (hash_table constructor): Add mem stats.
24607 (alloc_entries): Likewise.
24609 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24611 * ipa-cp.c (ipcp_driver): Relase prev_edge.
24612 * passes.c (execute_one_pass): Only add transform if pass has one.
24614 2015-04-12 Joseph Myers <joseph@codesourcery.com>
24616 * config/i386/i386.c (ix86_option_override_internal): Don't set
24617 -fprefetch-loop-arrays if optimizing for size.
24619 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24620 Gerald Pfeifer <gerald@pfeifer.com>
24622 * doc/contrib.texi (Contributors): Add Martin Jambor and
24625 2015-04-12 Jakub Jelinek <jakub@redhat.com>
24627 * BASE-VER: Set to 6.0.0.
24629 PR tree-optimization/65747
24630 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
24631 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
24633 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
24635 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
24636 sentence. Improve grammar.
24638 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
24640 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
24642 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
24645 * ipa-inline-transform.c (speculation_removed): Remove static var.
24646 (check_speculations): New function.
24647 (clone_inlined_nodes): Do not check spculations.
24648 (inline_call): Call check_speculations.
24649 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
24650 consider non-invariants.
24652 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
24653 Martin Liska <mliska@suse.cz>
24656 * ipa-icf.c (sem_item::compare_cgraph_references): function and
24657 variable can not match.
24658 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
24659 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
24661 2015-04-11 Jakub Jelinek <jakub@redhat.com>
24663 PR tree-optimization/65735
24664 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
24665 Remove visited_phis argument, add visited_bbs, avoid recursing into the
24666 same bb rather than just into the same phi node.
24667 (thread_through_normal_block): Adjust caller.
24669 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
24671 * doc/contrib.texi (Contributors): Add Ira Rosen.
24673 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
24675 * gcov.c (find_source): Fix miswording in error message.
24676 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
24677 (ix86_expand_sse_comi_round): Fix typo in error message.
24679 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
24681 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
24683 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
24685 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
24687 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
24690 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
24691 Print bad_spills_num and insn_pseudos_num.
24693 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24696 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
24697 when creating +1 values for SImode.
24699 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
24702 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
24705 2015-04-10 Jakub Jelinek <jakub@redhat.com>
24706 Iain Sandoe <iain@codesourcery.com>
24709 * configure: Regenerate.
24711 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24714 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
24716 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
24718 * doc/contrib.texi (Contributors): Add John Marino.
24720 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24722 PR tree-optimization/65709
24723 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
24724 TREE_TYPE (TREE_TYPE (t)).
24726 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
24729 * lra-int.h (lra_bad_spill_regno_start): New.
24730 * lra.c (lra_bad_spill_regno_start): New.
24731 (lra): Set up lra_bad_spill_regno_start. Set up
24732 lra_constraint_new_regno_start unconditionally.
24733 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
24736 2015-04-09 Marek Polacek <polacek@redhat.com>
24737 Jakub Jelinek <jakub@redhat.com>
24739 PR middle-end/65554
24740 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
24741 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
24744 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
24746 PR rtl-optimization/65693
24747 * combine.c (is_parallel_of_n_reg_sets): Move outside of
24750 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
24753 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
24754 device specs file if "device-specs%s" didn't resolve to a path.
24756 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24759 * config/i386/i386.c (fixup_modeless_constant): New.
24760 (ix86_expand_args_builtin): Fixup modeless constant operand.
24761 (ix86_expand_round_builtin): Ditto.
24762 (ix86_expand_special_args_builtin): Ditto.
24763 (ix86_expand_builtin): Ditto.
24765 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24768 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
24769 any pow2 integer in between 2 and 0x80000000U inclusive.
24771 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
24773 PR rtl-optimization/65693
24774 * combine.c (is_parallel_of_n_reg_sets): Change first argument
24775 from an rtx_insn * to an rtx.
24776 (try_combine): Adjust both callers. Use it once more.
24778 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24780 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
24781 (chkp_make_static_const_bounds): Search existing
24782 symbol by assembler name. Use make_decl_one_only.
24783 (chkp_get_zero_bounds_var): Remove node search which
24784 is now performed in chkp_make_static_const_bounds.
24785 (chkp_get_none_bounds_var): Likewise.
24787 2015-04-08 Michael Witten <mfwitten@gmail.com>
24789 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
24792 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24794 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
24796 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24798 * doc/extend.texi (__sync Builtins): Fix grammar.
24800 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24802 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
24804 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24806 * varasm.c (emit_local): Move definition of align.
24808 2015-04-08 Julian Brown <julian@codesourcery.com>
24810 * config/nvptx/mkoffload.c (process): Support variable mapping.
24812 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
24814 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
24816 (alpha_write_one_linkage): Correct typo.
24818 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24820 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
24822 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24824 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
24826 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24828 * tree-chkp.h (chkp_insert_retbnd_call): New.
24829 * tree-chkp.c (chkp_insert_retbnd_call): New.
24830 * ipa-split.c (insert_bndret_call_after): Remove.
24831 (split_function): Use chkp_insert_retbnd_call.
24832 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
24833 bounds for instrumented functions.
24835 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
24838 * calls.c (initialize_argument_information): When producing tail
24839 call also turn SSA_NAMES passed by references to original PARM_DECLs
24841 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
24844 * lra-remat.c (do_remat): Process input and non-input insn
24845 registers separately.
24847 2015-04-07 Jakub Jelinek <jakub@redhat.com>
24850 * valtrack.c (debug_lowpart_subreg): New function.
24851 (dead_debug_insert_temp): Use it.
24853 PR middle-end/65680
24854 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
24855 into signed HOST_WIDE_INT the same as negative bit_offset.
24857 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
24859 * ipa-comdats.c (ipa_comdats): Visit all thunks
24860 to set proper comdat group.
24862 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24865 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
24866 on constants for NEON VSTRUCT modes.
24868 2015-04-07 Jakub Jelinek <jakub@redhat.com>
24869 Iain Sandoe <iain@codesourcery.com>
24872 * configure: Regenerate.
24874 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24877 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
24878 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
24879 that LFD is used to load double constants instead of LFS. Add
24880 defaults for all costs structures. Add comments for missing
24881 initialization fields.
24882 (size32_cost): Likewise.
24883 (size64_cost): Likewise.
24884 (rs64a_cost): Likewise.
24885 (mpccore_cost): Likewise.
24886 (ppc403_cost): Likewise.
24887 (ppc405_cost): Likewise.
24888 (ppc440_cost): Likewise.
24889 (ppc476_cost): Likewise.
24890 (ppc601_cost): Likewise.
24891 (ppc603_cost): Likewise.
24892 (ppc604_cost): Likewise.
24893 (ppc604e_cost): Likewise.
24894 (ppc620_cost): Likewise.
24895 (ppc630_cost): Likewise.
24896 (ppccell_cost): Likewise.
24897 (ppc750_cost): Likewise.
24898 (ppc7450_cost): Likewise.
24899 (ppc8540_cost): Likewise.
24900 (ppce300c2c3_cost): Likewise.
24901 (ppce500mc_cost): Likewise.
24902 (ppce500mc64_cost): Likewise.
24903 (ppce5500_cost): Likewise.
24904 (ppce6500_cost): Likewise.
24905 (titan_cost): Likewise.
24906 (power4_cost): Likewise.
24907 (power6_cost): Likewise.
24908 (power7_cost): Likewise.
24909 (power8_cost): Likewise.
24910 (ppca2_cost): Likewise.
24911 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
24913 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
24914 instead of XXLOR to copy SFmode to clear out dirty bits created
24915 when SFmode denormals are generated.
24916 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
24917 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
24919 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
24921 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
24922 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
24923 * config/aarch64/aarch64-tune.md: Regenerate.
24925 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
24927 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
24928 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
24929 * config/arm/arm-cores.def (exynos-m1): New core.
24930 * config/arm/arm-tune.md: Regenerate.
24931 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
24932 * config/arm/bpabi.h: Likewise.
24934 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
24936 * ipa-cp (set_single_call_flag): Remove too
24937 restrictive assert.
24939 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
24941 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
24942 GOMP_offload_unregister from the destructor.
24944 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
24946 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
24947 flags for instrumentation thunk.
24948 (chkp_produce_thunks): Likewise.
24950 2015-04-05 Martin Liska <mliska@suse.cz>
24953 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
24954 has computed data structure.
24955 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24957 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
24959 * invoke.texi (inline-unit-growth): Increase growth to 20%
24960 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
24962 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
24965 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
24967 (lra_rematerialization_iter): New.
24968 * lra.c (lra): Initialize lra_rematerialization_iter.
24969 Stop updating lra_constraint_new_regno_start after switching of
24970 inheritance and rematerialization.
24971 * lra-remat.c (lra_rematerialization_iter): New.
24972 (lra_remat): Add printing pass iteration. Do rematerialization
24973 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
24975 2015-04-04 Richard Biener <rguenther@suse.de>
24977 PR tree-optimization/64909
24978 PR tree-optimization/65660
24979 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
24980 to take a cost vector for scalar iteration cost.
24981 (vect_get_single_scalar_iteration_cost): Likewise.
24982 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
24983 Compute the scalar iteration cost into a cost vector.
24984 (vect_get_known_peeling_cost): Use the scalar cost vector to
24985 account for the cost of the peeled iterations.
24986 (vect_estimate_min_profitable_iters): Likewise.
24987 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24990 2015-04-04 Alan Modra <amodra@gmail.com>
24994 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
24995 0.0 constant unless TARGET_VSX.
24996 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
24999 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25002 * ipa-inline-transform.c (inline_call): Skip sanity check to work
25005 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25008 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25009 speculative indirect edges to avoid ordering issue.
25011 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25014 * ipa-inline.c (edge_badness): Add combined size to the denominator.
25016 2015-04-03 Jakub Jelinek <jakub@redhat.com>
25018 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25019 TYPE_ARTIFICIAL on the .omp_data* types.
25021 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25023 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25024 instrumentation thunks.
25026 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25028 * config/i386/i386.c (ix86_expand_call): Avoid nested
25029 PARALLEL in returned call value.
25031 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25033 * lto-cgraph.c (input_cgraph_1): Always link instrumented
25034 assembler name with original one.
25036 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25038 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25040 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25042 Revert parts of r216820.
25043 * config/i386/i386.md (movqi_internal): Correct type calculation
25044 for alternatives 3 and 5.
25046 2015-04-02 Jakub Jelinek <jakub@redhat.com>
25048 PR preprocessor/61977
25049 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25050 predefine __vector/__bool/__pixel macros nor context sensitive
25051 macros for CLK_ASM.
25052 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25054 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
25056 * config/pa/pa.c (pa_output_move_double): Directly handle register
25057 indexed memory operand. Simplify handling of scaled register indexed
25060 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25063 * config/i386/linux-common.h (MPX_SPEC): New.
25064 (CHKP_SPEC): Add MPX_SPEC.
25065 * doc/invoke.texi (-fcheck-pointer-boudns): Document
25066 possible issues with '-z bndplt' support in linker.
25068 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25070 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25071 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25072 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25073 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25074 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25076 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
25078 * config/i386/sync.md (UNSPEC_MOVA): Remove.
25079 (atomic_load<mode>): Change operand 0 predicate to
25080 nonimmediate_operand and fix up the destination when needed.
25082 (atomic_loaddi_fpu): Use UNSPEC_LDA.
25083 (atomic_store<mode>): Change operand 1 predicate to
25084 nonimmendate_operand and move the source to register when needed.
25086 (atomic_store<mode>_1): Use UNSPEC_STA.
25087 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25088 Fix moves from memory operand. Use UNSPEC_STA.
25090 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25092 * expmed.c (strict_volatile_bitfield_p): Check that the access will
25093 not cross a MODESIZE boundary.
25094 (store_bit_field, extract_bit_field): Added assertions in the
25095 strict volatile bitfields code path.
25097 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
25100 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25101 Increase args array size by one to avoid buffer overflow.
25103 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25105 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25107 * ipa-inline.c (edge_badness): Add wrapper penalty.
25108 (sum_callers): Move up.
25109 (inline_small_functions): Set single_caller.
25110 * ipa-inline.h (inline_summary): Add single_caller.
25111 * ipa-split.c (split_function): Set split_part.
25112 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25113 * cgraph.h (cgraph_node): Add split_part.
25115 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
25118 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25119 Do not split operands 0 and operands 2 to halfmode.
25120 (atomic_compare_and_swap<mode>): Update for
25121 atomic_compare_and_swap<dwi>_doubleword changes.
25123 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25125 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25126 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25127 no caching is done.
25129 2015-03-31 Martin Liska <mliska@suse.cz>
25132 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25133 has already filled up function summary.
25134 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25136 2015-03-31 Richard Biener <rguenther@suse.de>
25138 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25141 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
25143 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25145 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25146 (s390_asm_output_function_label): Adapt to new signature of
25147 s390_function_num_hotpatch_hw
25148 Optimise the code generating assembler output.
25149 Add comments to assembler file.
25151 2015-03-31 Richard Biener <rguenther@suse.de>
25153 PR middle-end/65626
25154 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25155 of the noreturn call so it is last and cleanup_control_flow_bb
25156 can do the CFG part.
25158 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
25161 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25162 same_comdat_group for external symbols.
25163 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25164 infinite same_comdat_group traversal loop.
25166 2015-03-31 Jakub Jelinek <jakub@redhat.com>
25169 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25170 automatically to $headers.
25172 2015-03-30 Jakub Jelinek <jakub@redhat.com>
25175 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25176 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25178 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25180 * ipa-prop.c (param_type_may_change_p): Likewise.
25181 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25182 (remove_unused_scope_block_p): Add in_ctor_dtor_block
25183 argument. Before inlining, preserve
25184 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25185 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
25187 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25189 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25192 * ipa-inline.c (edge_badness): Base denominator on callee's
25195 2015-03-27 Martin Jambor <mjambor@suse.cz>
25198 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25199 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25200 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25201 node_calling_single_call.
25202 * ipa-cp.c (count_callers): New function.
25203 (set_single_call_flag): Likewise.
25204 (initialize_node_lattices): Count callers and set single_flag_call if
25206 (incorporate_penalties): New function.
25207 (good_cloning_opportunity_p): Use it, dump new flags.
25208 (propagate_constants_topo): Set node_within_scc flag if appropriate.
25209 * doc/invoke.texi (ipa-cp-recursion-penalty,
25210 ipa-cp-single-call-pentalty): Document.
25212 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25215 * symtab.c (symtab_node::get_partitioning_class): Register vars
25217 * varpool.c (symbol_table::output_variables) Do not assemble unefined
25218 decls for non-symbols.
25220 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
25223 * output.h (default_binds_local_p_2): New.
25224 * varasm.c (default_binds_local_p_2): Renamed to ...
25225 (default_binds_local_p_3): This. Don't return true on protected
25226 data symbol if protected data may be external.
25227 (default_binds_local_p): Use default_binds_local_p_3.
25228 (default_binds_local_p_1): Likewise.
25229 (default_binds_local_p_2): New.
25230 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25231 default_binds_local_p_2 if TARGET_MACHO is undefined.
25233 2015-03-27 Jakub Jelinek <jakub@redhat.com>
25236 * config/i386/i386.c (legitimize_pic_address): If base
25237 is SYMBOL_REF or LABEL_REF using %rip addressing, force
25238 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25240 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25243 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25246 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25249 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25250 of optimized out indirect call.
25251 (redirect_to_unreachable): Always build symbol table node for
25252 BUILT_IN_UNREACHABLE
25254 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
25257 * ira-costs.c (record_reg_classes): Process all constraint string
25260 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
25262 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25266 * config/c6x/constraints.md (S3): New constraint.
25267 * config/c6x/c6x.md (real_jump): Use it.
25269 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25271 PR middle-end/65595
25272 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25273 do redirection if the call is not optimized out.
25275 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
25278 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25279 (fchkp-check-incomplete-type): Add LTO.
25280 (fchkp-zero-input-bounds-for-main): Likewise.
25281 (fchkp-first-field-has-own-bounds): Likewise.
25282 (fchkp-narrow-bounds): Likewise.
25283 (fchkp-narrow-to-innermost-array): Likewise.
25284 (fchkp-use-static-bounds): Likewise.
25285 (fchkp-use-static-const-bounds): Likewise.
25286 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25288 2015-03-27 Marek Polacek <polacek@redhat.com>
25290 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25292 2015-03-27 Marek Polacek <polacek@redhat.com>
25295 * ubsan.c (ubsan_create_edge): New function.
25296 (instrument_bool_enum_load): Call it.
25297 (instrument_nonnull_arg): Likewise.
25298 (instrument_nonnull_return): Likewise.
25299 (instrument_object_size): Likewise.
25301 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25303 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25306 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25309 * lto-streamer.h (class lto_location_cache): New.
25310 (struct data_in): Add location_cache.
25311 (lto_input_location): Update prototype.
25312 (stream_input_location_now): New.
25313 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25314 pointer to location.
25315 (stream_input_location): Update.
25316 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25317 (warn_odr): Apply location cache before warning.
25318 (lto_input_location): Update prototype.
25319 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25320 Use stream_input_location_now.
25321 * lto-streamer-in.c (lto_location_cache::current_cache): New static
25323 (lto_location_cache::cmp_loc): New function.
25324 (lto_location_cache::apply_location_cache): New function.
25325 (lto_location_cache::accept_location_cache): New function.
25326 (lto_location_cache::revert_location_cache): New function.
25327 (lto_location_cache::input_location): New function.
25328 (lto_input_location): Do location caching.
25329 (stream_input_location_now): New function.
25330 (input_eh_region, input_struct_function_base): Use
25331 stream_input_location_now.
25332 (lto_data_in_create): use new.
25333 (lto_data_in_delete): Use delete.
25334 * tree-streamer-in.c (unpack_ts_block_value_fields,
25335 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25336 lto_input_ts_exp_tree_pointers): Update for cached location api.
25338 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25341 * passes.def: Add pass_nothrow.
25342 * ipa-pure-const.c: (pass_data_nothrow): New.
25343 (pass_nothrow): New.
25344 (pass_nothrow::execute): New.
25345 (make_pass_nothrow): New.
25346 * tree-pass.h (make_pass_nothrow): Declare.
25348 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25350 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25351 edge to change by speculation resolution or redirection.
25352 (edge_set_predicate): Likewise.
25353 (inline_summary_t::duplicate): Likewise.
25354 (remap_edge_summaries): Likewise.
25356 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25358 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25360 (can_inline_edge_p): Relax option matching for always inline functions.
25362 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
25365 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25366 Check operand 4 and operand 0 for equality.
25367 (avx512f_vextract<shuffletype>32x4_1_maskm):
25368 Check operand 6 and operand 0 for equality.
25369 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25371 (vec_extract_hi_<mode>_maskm): Ditto.
25373 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25375 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25376 dead calls back to live.
25377 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25379 (cgraph_node::verify_node): ... here; verify only callee edges,
25381 * cif-code.def (CILK_SPAWN): New code.
25383 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25385 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25386 (edge_set_predicate): Use it to mark unreachable edges.
25387 (inline_summary_t::duplicate): Remove unnecesary code.
25388 (remap_edge_summaries): Likewise.
25389 (dump_inline_summary): Report contains_cilk_spawn.
25390 (compute_inline_parameters): Compute contains_cilk_spawn.
25391 (inline_read_section, inline_write_summary): Stream
25392 contains_cilk_spawn.
25393 * ipa-inline.c (can_inline_edge_p): Do not touch
25394 DECL_STRUCT_FUNCTION that may not be available;
25395 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25396 remove check for callee_fun->can_throw_non_call_exceptions and
25397 replace it by optimization attribute check; check for flag_exceptions.
25398 * ipa-inline-transform.c (inline_call): Maintain
25399 DECL_FUNCTION_PERSONALITY
25400 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25402 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25404 PR tree-optimization/65551
25405 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25406 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25408 2015-03-26 Richard Biener <rguenther@suse.de>
25410 PR middle-end/65555
25411 * tree-cfg.c (verify_gimple_call): Do not require a call to
25412 have no LHS if it wasn't recognized as control altering yet.
25414 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25416 PR tree-optimization/64715
25417 * passes.def: Add another instance of pass_object_sizes before ccp1.
25418 * tree-object-size.c (pass_object_sizes::execute): In
25419 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25420 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25421 __bos result and the computed constant. Remove redundant
25422 checks, obsoleted by gimple_call_builtin_p test.
25424 * var-tracking.c (variable_tracking_main_1): Don't track
25425 variables for targetm.no_register_allocation targets.
25427 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
25429 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25430 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
25432 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
25435 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
25436 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
25437 0.0 is correctly setup.
25438 (extenddftf2_internal): Likewise.
25440 2015-03-25 Sebastian Pop <s.pop@samsung.com>
25442 PR tree-optimization/65177
25443 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
25445 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
25446 edges not adjacent on the path to the original code.
25448 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
25451 * doc/install.texi (Building a native compiler): Document new
25452 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
25453 configuration assumes that the host supports the linker plugin.
25455 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
25458 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
25459 chain for generated call.
25461 2015-03-25 Richard Biener <rguenther@suse.de>
25463 * passes.c (pass_manager::execute_early_local_passes): Guard
25464 execution of pass_chkp_instrumentation_passes with
25465 flag_check_pointer_bounds.
25466 (pass_chkp_instrumentation_passes::gate): Likewise.
25468 2015-03-25 Martin Liska <mliska@suse.cz>
25470 PR tree-optimization/65538
25471 * symbol-summary.h (function_summary::~function_summary):
25472 Relese memory for allocated summaries.
25473 (function_summary::release): New function.
25475 2015-03-25 Jakub Jelinek <jakub@redhat.com>
25478 * lto-streamer-out.c (DFS::worklist): New struct.
25479 (DFS::worklist_vec): New data member.
25480 (DFS::next_dfs_num): Remove.
25481 (DFS::DFS): Rewritten using worklist instead of recursion,
25482 using most of code from DFS::DFS_write_tree.
25483 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
25484 pass it to DFS_write_tree calls.
25485 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
25486 quick initial checks push it into worklist_vec and return.
25488 2015-03-25 Richard Biener <rguenther@suse.de>
25490 PR middle-end/65519
25491 * genmatch.c (expr::gen_transform): Re-write to avoid
25492 using gimple_build.
25494 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25496 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
25498 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25500 * config/arm/arm.opt (print_tune_info): New option.
25501 * config/arm/arm.c (arm_print_tune_info): New function.
25502 (arm_file_start): Call arm_print_tune_info.
25503 * config/arm/arm-protos.h (struct tune_params): Add comment.
25504 * doc/invoke.texi (@item -mprint-tune-info): New item.
25505 (-mtune): mention it in ARM Option Summary.
25507 2015-03-25 DJ Delorie <dj@redhat.com>
25509 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
25512 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
25513 Martin Liska <mliska@suse.cz>
25515 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
25516 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
25517 (sem_item::add_type): New function.
25518 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
25519 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
25520 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
25521 (sem_function::equals_wpa): Fix typo.
25522 * ipa-icf.h (sem_item::add_type): New function.
25523 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
25526 2015-03-24 Jakub Jelinek <jakub@redhat.com>
25528 PR tree-optimization/65533
25529 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
25530 with swapped operands, call vect_free_slp_tree on
25531 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
25534 2015-03-24 Richard Biener <rguenther@suse.de>
25536 PR middle-end/65517
25537 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
25538 for fixup if necessary.
25540 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
25542 * doc/extend.texi (Function Attributes): Add @cindex entries
25543 for all attributes and regularize their format. Delete text
25544 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
25545 information about "eightbit_data", "tiny_data", and "model"
25546 variable attributes to the Variable Attributes section. Fix
25547 some obvious typos and copy-editing issues.
25548 (Variable Attributes, Type Attributes): Likewise add/fix
25549 @cindex entries for all attributes.
25551 2015-03-23 Jakub Jelinek <jakub@redhat.com>
25554 * tree-chkp.c (chkp_build_returned_bound): Ignore
25555 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
25557 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
25560 * config/sh/predicates.md (simple_mem_operand,
25561 displacement_mem_operand): Add test for reg.
25562 (short_displacement_mem_operand): Test for displacement_mem_operand
25563 before invoking sh_disp_addr_displacement.
25564 * config/sh/constraints.md (Sdd, Sra): Simplify.
25565 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
25566 Remove redundant displacement_mem_operand tests.
25568 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
25571 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
25572 the same -mmcu=MCU more than once.
25574 2015-03-23 Jakub Jelinek <jakub@redhat.com>
25577 * ipa-devirt.c: Remove duplicate demangle.h include.
25580 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
25582 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
25583 REG_POINTER on *destptr after adjusting it for prologue size.
25586 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
25587 ultimate_alias_target ()->order ints instead of
25588 ultimate_alias_target () pointers.
25590 2015-03-23 Richard Biener <rguenther@suse.de>
25592 PR tree-optimization/65518
25593 * tree-vect-stmts.c (vectorizable_load): Reject single-element
25594 interleaving cases we generate absymal code for.
25596 2015-03-23 Richard Biener <rguenther@suse.de>
25598 PR tree-optimization/65494
25599 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
25601 (vect_analyze_slp_instance): But do that here, always and once.
25603 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25605 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
25606 adding T or multiplying by T+1 and subracting T.
25608 2015-03-22 Jeff Law <law@redhat.com>
25610 PR rtl-optimization/64317
25611 * Makefile.in (OBJS): Add gcse-common.c
25612 * gcse.c: Include gcse-common.h
25613 (struct modify_pair_s): Move structure definition to gcse-common.h
25614 (compute_transp): Move function to gcse-common.c.
25615 (canon_list_insert): Similarly.
25616 (record_last_mem_set_info): Break out some code and put it into
25617 gcse-common.c. Call into the new common code.
25618 (compute_local_properties): Pass additional arguments to compute_transp.
25619 * postreload-gcse.c: Include gcse-common.h and df.h
25620 (modify_mem_list_set, blocks_with_calls): New variables.
25621 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
25622 (get_bb_avail_insn): Pass in the expression index too.
25623 (alloc_mem): Allocate memory for the new bitmaps and lists.
25624 (free_mem): Free memory for the new bitmaps and lists.
25625 (insert_expr_in_table): Record a bitmap index for each entry we
25627 (record_last_mem_set_info): Call into common code in gcse-common.c.
25628 (get_bb_avail_insn): If no available insn was found in the requested
25629 BB. If BB has a single predecessor, see if the expression is
25630 transparent in BB and available in that single predecessor.
25631 (compute_expr_transp): New wrapper for compute_transp.
25632 (eliminate_partially_redundant_load): Pass expression's bitmap_index
25633 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
25634 (gcse_after_reload_main): If there are elements in the hash table,
25635 then compute transparency for all the elements in the hash table.
25636 * gcse-common.h: New file.
25637 * gcse-common.c: New file.
25639 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
25641 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
25643 (System Headers): Likewise.
25645 (Traditional macros): Likewise.
25646 (Invocation): Likewise.
25647 (Option Index): Likewise.
25648 * doc/cppopts.texi (-M): Likewise.
25649 (-finput-charset): Likewise.
25650 (--help): Likewise.
25651 * doc.invoke.texi (AVR Options): Likewise.
25652 (V850 Options): Likewise.
25654 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
25657 * ipa-devirt.c: Include demangle.h
25658 (odr_type_d): Add field rtti_broken.
25659 (odr_subtypes_equivalent_p): Do not require name to match.
25660 (compare_virtual_tables): Fix typo; if type already has ODR violation,
25661 bypass the tests; be ready for function referneces in vtables that are
25662 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
25663 (warn_odr): Give up for nameless types.
25664 (warn_types_mismatch): Report mismatch in mangled names;
25665 report mismatch in anonymous namespaces; look into component types to
25666 give useful error; report when mismatch is dragged in from other ODR
25668 (odr_types_equivalent_p): Match types for being polymorphic; avoid
25669 duplicated diagnostics.
25670 (add_type_duplicate): Reorder checks so more informative ones come
25671 first; fix typo; do not output "the extra base is defined here" when
25673 (BINFO_N_BASE_BINFOS): Relax sanity check.
25675 2015-03-22 Martin Liska <mliska@suse.cz>
25676 Jakub Jelinek <jakub@redhat.com>
25678 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
25679 masks that can potentially include a builtin.
25680 (ix86_add_new_builtins): Introduce fast filter for isa values
25681 that cannot trigger builtin inclusion.
25683 2015-03-22 Martin Liska <mliska@suse.cz>
25685 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
25686 (sem_item::update_hash_by_local_refs): Likewise.
25687 (sem_variable::get_hash): Empty line is fixed.
25688 (sem_item_optimizer::execute): Include adding of hash references.
25689 (sem_item_optimizer::update_hash_by_addr_refs): New function.
25690 (sem_item_optimizer::build_hash_based_classes): Use local hash.
25691 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
25692 (sem_item::update_hash_by_local_refs): Likewise.
25694 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25697 * ipa-comdats.c (enqueue_references): Walk through thunks.
25698 (ipa_comdats): Likewise.
25699 (set_comdat_group_1): New function.
25701 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25704 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
25707 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
25708 Gerald Pfeifer <gerald@pfeifer.com>
25710 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
25712 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
25713 Sandra Loosemore <sandra@codesourcery.com>
25715 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
25716 function parameter declaration.
25717 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
25718 Update arguments to nios2_adjust_call_address().
25719 (sibcall_internal): Rename from *sibcall.
25720 (sibcall_value_internal): Rename from *sibcall_value.
25721 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
25722 (nios2_large_got_address): Add target temp reg parameter.
25723 (nios2_got_address): Adjust call to nios2_large_got_address, add
25724 force_reg around it.
25725 (nios2_load_pic_address): Add target temp reg parameter, replace call
25726 to nios2_got_address with corresponding code.
25727 (nios2_legitimize_constant_address): Update call to
25728 nios2_load_pic_address.
25729 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
25730 to use temp reg for PIC loading purposes.
25731 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
25732 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25733 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
25735 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25737 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
25738 usage of "the @option{...}".
25739 (-Wopenmp-simd): Likewise.
25740 (-fsanitize-recover): Likewise.
25741 (-fsanitize-undefined-trap-on-error): Likewise.
25743 (tracer-dynamic-coverage-feedback): Likewise.
25744 (reorder-block-duplicate-feedback): Likewise.
25745 (loop-unroll-jam-size): Likewise.
25748 (-mabs=legacy): Likewise.
25749 (-mupper-regs-df): Likewise.
25750 (-mupper-regs-sf): Likewise.
25751 (-mpointers-to-nested-functions): Likewise.
25753 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25755 * doc/extend.texi (Cilk Plus Builtins): Add markup.
25757 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25759 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
25760 additional index entries and cross-references.
25761 (-fchkp-check-incomplete-type): Likewise.
25762 (-fchkp-first-field-has-own-bounds): Likewise.
25763 (-fchkp-narrow-to-innermost-array): Likewise.
25764 (-fchkp-use-fast-string-functions): Likewise.
25765 (-fchkp-use-nochk-string-functions): Likewise.
25766 (-fchkp-use-static-const-bounds): Likewise.
25767 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25768 (-fchkp-instrument-marked-only): Likewise.
25769 (-fchkp-use-wrappers): Likewise.
25770 (-static-libmpx): Likewise.
25771 (-static-libmpxwrappers): Likewise.
25772 * doc/extend.texi (bnd_legacy): Likewise.
25773 (bnd_instrument): Likewise.
25774 (bnd_variable_size): Likewise.
25775 (Pointer Bounds Checker builtins): Likewise.
25777 2015-03-21 Tom de Vries <tom@codesourcery.com>
25779 PR tree-optimization/65458
25780 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
25781 * cgraph.h (cgraph_node): Add parallelized_function field.
25782 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
25783 (input_overwrite_node): Read parallelized_function field.
25784 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
25785 parallelized_function on cgraph_node for child_fn.
25786 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
25787 Remove include of gt-tree-parloops.h.
25788 (parallelized_functions): Remove static variable.
25789 (parallelized_function_p): Rewrite using parallelized_function field of
25791 (create_loop_fn): Remove adding to parallelized_functions.
25792 * Makefile.in (GTFILES): Remove tree-parloops.c
25794 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
25796 PR rtl-optimization/64366
25797 * lra.c (lra_update_insn_regno_info): Consider regs in
25798 CALL_INSN_FUNCTION_USAGE memory.
25800 2015-03-20 Richard Biener <rguenther@suse.de>
25802 PR middle-end/64715
25803 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
25804 for type comparison and gcc_checking_assert.
25805 (chrec_fold_plus_poly_poly): Likewise.
25806 (chrec_fold_multiply_poly_poly): Likewise.
25807 (chrec_convert_1): Likewise.
25808 * gimplify.c (gimplify_expr): Remove premature folding of
25809 &X + CST to &MEM[&X, CST].
25811 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25813 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
25815 (ipa_inline): Recompute inline_failed codes.
25816 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25817 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
25820 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
25822 PR rtl-optimization/60851
25823 * recog.c (constrain_operands): Accept a pseudo register before reload
25824 for LRA enabled targets.
25826 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
25829 * config/rs6000/predicates.md (easy_fp_constant): Remove special
25830 -ffast-math handling that kept non-0 constants live in the RTL
25831 until reload. Remove logic testing the number of instructions it
25832 took to create a constant in a GPR that was never used, due to a
25833 test for soft-float earlier.
25834 (memory_fp_constant): Delete, no longer used.
25836 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
25837 alternatives for loading non-0 constants into GPRs for hard
25838 floating point that is no longer needed due to changes in
25839 easy_fp_constant. Add support for loading 0.0 into GPRs.
25840 (mov<mode>_hardfloat32): Likewise.
25841 (mov<mode>_hardfloat64): Likewise.
25842 (mov<mode>_64bit_dm): Likewise.
25843 (movtd_64bit_nodm): Likewise.
25844 (pre-reload move FP constant define_split): Delete define_split,
25845 since it is no longer used.
25846 (extenddftf2_internal): Remove GHF constraints that are not valid
25849 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
25851 PR rtl-optimization/63491
25852 * lra-constraints.c (check_and_process_move): Use src instead of
25853 sreg. Remove some dead code.
25855 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
25858 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
25859 (sem_variable::merge): Likewise.
25861 2015-03-19 Martin Liska <mliska@suse.cz>
25864 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
25865 all fields of cgraph_thunk_info.
25867 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
25869 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
25870 clone instrumented thunks.
25872 2015-03-19 Richard Biener <rguenther@suse.de>
25875 2015-03-10 Richard Biener <rguenther@suse.de>
25877 PR middle-end/63155
25878 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25879 * tree-ssa-coalesce.c: Include timevar.h.
25880 (attempt_coalesce): Handle graph being NULL.
25881 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25882 Split out abnormal coalescing to ...
25883 (perform_abnormal_coalescing): ... this function.
25884 (coalesce_ssa_name): Perform abnormal coalescing without computing
25886 (verify_ssa_coalescing_worker): New function.
25887 (verify_ssa_coalescing): Likewise.
25889 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
25890 Jakub Jelinek <jakub@redhat.com>
25893 * tsan.c (instrument_gimple): Clear tail call flag on
25896 2015-03-19 Jakub Jelinek <jakub@redhat.com>
25899 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
25900 call in the return bb.
25901 (find_split_points): Add RETURN_BB argument, don't call
25903 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
25904 if true append TSAN_FUNC_EXIT internal call after the call to
25905 the split off function.
25906 (execute_split_functions): Call find_return_bb here.
25907 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
25908 Adjust find_split_points and split_function calls.
25910 2015-03-18 DJ Delorie <dj@redhat.com>
25912 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
25913 (iorqi3_virt): Likewise.
25915 2015-03-18 Tom de Vries <tom@codesourcery.com>
25917 * tree-parloops.c (parallelize_loops): Make static.
25918 * tree-parloops.h (parallelize_loops): Remove extern declaration.
25920 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
25922 PR middle-end/64491
25924 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
25926 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
25927 condition would be removed due to undefined behaviour.
25929 2015-03-18 Martin Liska <mliska@suse.cz>
25932 * cgraph.c (cgraph_node::get_create): Remove unnecessary
25933 xstrdup_for_dump wrapper.
25934 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
25936 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
25937 with xstrdup_for_dump.
25938 (sem_variable::equals): Likewise.
25939 (sem_item_optimizer::read_section): Use symtab_node::name instead of
25941 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
25942 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
25943 symtab_node::asm_name with xstrdup_for_dump.
25944 (congruence_class::dump): Use symtab_node::name instead of
25946 * ipa-icf.h (symtab_node::name): Remove.
25947 (symtab_node::asm_name): Likewise.
25949 2015-03-18 Jakub Jelinek <jakub@redhat.com>
25951 PR tree-optimization/65450
25952 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
25954 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
25955 it instead of duplicate_ssa_name_ptr_info.
25958 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
25960 2015-03-18 Richard Biener <rguenther@suse.de>
25962 * tree-data-ref.h (struct access_matrix): Remove.
25963 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
25964 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
25965 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
25966 (am_vector_index_for_loop): Likewise.
25967 (struct data_reference): Remove access_matrix member.
25968 (DR_ACCESS_MATRIX): Remove.
25969 (lambda_vector_new): Add comment.
25970 (lambda_matrix_new): Use XOBNEWVEC.
25972 2015-03-18 Richard Biener <rguenther@suse.de>
25974 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
25975 (pass_ch::execute): Cleanup the CFG only if we did sth.
25976 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
25978 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25980 * expmed.c (synth_mult): Use std::swap instead of manually
25981 swapping algorithms.
25983 2015-03-18 Jakub Jelinek <jakub@redhat.com>
25986 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
25988 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
25991 * config/avr/avr.opt (-nodevicelib): New option.
25992 * doc/invoke.texi (AVR Options): Document it.
25993 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
25994 libgcc.a, libc.a, libm.a.
25995 * config/avr/specs.h: Same.
25996 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
25997 which don't (directly) depend on the device. Print more help.
25998 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
25999 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26000 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26002 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26003 for specs file name.
26004 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26005 * config/avr/avr-mcus.def: Adjust initializers and comments.
26007 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
26009 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26010 DECL_ONE_ONLY to check if decl is one only.
26011 * ipa-split.c (consider_split): Limit splitt of one only functions.
26013 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26015 PR tree-optimization/65427
26016 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26018 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26020 2015-03-16 Marek Polacek <polacek@redhat.com>
26022 * cgraph.h (add_new_static_var): Remove declaration.
26023 * varpool.c (add_new_static_var): Remove function.
26025 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26027 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26028 instead of vec<tree> * with vec_alloc and release for args.
26031 PR middle-end/65431
26032 * omp-low.c (delete_omp_context): Only splay_tree_delete
26033 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26034 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
26036 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
26039 * cfgexpand.c (align_base): New function.
26040 (alloc_stack_frame_space): Call it.
26041 (expand_stack_vars): Align prev_frame to be sure
26042 data->asan_vec elements aligned properly.
26044 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
26046 PR middle-end/65409
26047 * expr.c (store_field): Do not do a direct block copy if the source is
26048 a PARALLEL with BLKmode.
26050 2015-03-16 Tom de Vries <tom@codesourcery.com>
26052 PR middle-end/65414
26054 2015-03-12 Tom de Vries <tom@codesourcery.com>
26056 PR rtl-optimization/64895
26057 * lra-lives.c (check_pseudos_live_through_calls): Use
26058 actual_call_used_reg_set instead of call_used_reg_set, if available.
26060 2015-03-16 Alan Modra <amodra@gmail.com>
26063 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26064 Modify Z->r bswapdi splitter to use dest in place of scratch.
26065 In r->Z and Z->r bswapdi splitter rename word_high, word_low
26066 to word1, word2 and rearrange logic to suit.
26067 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26068 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
26069 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26070 Add one '?' on r->r. Modify Z->r splitter to avoid need for
26073 2015-03-14 Jakub Jelinek <jakub@redhat.com>
26075 PR tree-optimization/65369
26076 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26077 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26078 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26080 PR tree-optimization/65418
26081 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26082 are casts in the first PLUS_EXPR operand, ensure tbias and
26083 *totallowp are in the inner type.
26085 PR rtl-optimization/65401
26086 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26087 argument. If true, adjust_address_nv of x with big-endian
26088 correction for the mode widening to GET_MODE (y).
26089 (make_field_assignment): Don't do MEM mode widening here.
26090 Use MEM_P instead of GET_CODE == MEM.
26092 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
26094 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26095 the external decls.
26097 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26100 * config/arm/arm.c (arm_gen_constant, AND case): Use
26101 ARM_SIGN_EXTEND when constructing AND mask.
26103 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26105 * graph.c (print_graph_cfg): Make function names visible and append
26106 parenthesis to it. Also make groups of basic blocks belonging to the
26107 same function visible.
26109 2015-03-12 Richard Biener <rguenther@suse.de>
26111 PR middle-end/44563
26112 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26113 to avoid quadratic behavior with inline expansion splitting blocks.
26114 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26115 with the successor if the predecessor will be merged with it.
26116 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26117 entry block with its successor.
26119 2015-03-13 Richard Biener <rguenther@suse.de>
26121 PR middle-end/44563
26122 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26123 (cleanup_tree_cfg_1): Do not call it.
26124 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26125 (fixup_noreturn_call): Mark the stmt as control altering.
26126 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26128 (pass_data_fixup_cfg): Produce a dump file.
26129 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26130 (need_noreturn_fixup): New global.
26131 (pass_dominator::execute): Fixup queued noreturn calls.
26132 (optimize_stmt): Queue calls that became noreturn for fixup.
26133 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26134 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26135 (el_to_fixup): New global.
26136 (eliminate_dom_walker::before_dom_childre): Queue calls that
26137 became noreturn for fixup.
26138 (eliminate): Fixup queued noreturn calls.
26139 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26140 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26141 (substitute_and_fold_dom_walker::before_dom_children): Queue
26142 alls that became noreturn for fixup.
26143 (substitute_and_fold): Fixup queued noreturn calls.
26145 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
26147 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26148 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26149 are building; for methods check ODR type of class they belong to if
26150 they may lead to a polymorphic call.
26151 (sem_function::compare_polymorphic_p): Be bit smarter about testing
26152 when function may lead to a polymorphic call.
26153 (sem_function::compare_type_list): Remove.
26154 (sem_variable::equals): Update use of compatible_types_p.
26155 (sem_variable::parse_tree_refs): Remove.
26156 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26158 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26160 (func_checker::compatible_polymorphic_types_p): Break out from ...
26161 (unc_checker::compatible_types_p): ... here.
26162 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26164 (unc_checker::compatible_types_p): Update.
26165 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26168 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26170 PR rtl-optimization/65235
26171 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26172 When first element of vec_concat is const_int, calculate its size
26173 using second element.
26175 2015-03-12 Richard Biener <rguenther@suse.de>
26177 PR middle-end/65270
26178 * fold-const.c (operand_equal_p): Fix ordering of resetting
26179 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26181 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26183 * config/s390/s390.c (s390_reorg): Move code to output nops after label
26185 (s390_asm_output_function_label): Likewise.
26186 * config/s390/s390.c (s390_asm_output_function_label):
26187 Fix function label alignment with -mhtopatch.
26188 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26189 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26190 ("nop_2_byte"): New define_insn.
26191 ("nop_4_byte"): Likewise.
26192 ("nop_6_byte"): Likewise.
26193 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26194 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26196 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26199 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26202 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26205 * toplev.c (process_options): Restrict Pointer Bounds Checker
26206 usage with Address Sanitizer.
26208 2015-03-12 Richard Biener <rguenther@suse.de>
26210 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26212 * omp-low.c (expand_omp_taskreg): Split block before removing
26214 (expand_omp_target): Likewise.
26215 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26216 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26217 stmt to split_block.
26219 2015-03-12 Tom de Vries <tom@codesourcery.com>
26221 PR rtl-optimization/64895
26222 * lra-lives.c (check_pseudos_live_through_calls): Use
26223 actual_call_used_reg_set instead of call_used_reg_set, if available.
26225 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26227 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26228 (cgraph_node::remove): Likewise.
26229 (cgraph_node::get_untransformed_body): Likewise.
26230 * varpool.c (varpool_node::remove): Likewise.
26231 (varpool_node::get_constructor): Add sanity check.
26233 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
26235 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26237 (-fabi-compat-version): Likewise.
26238 (-ffriend-injection): Likewise.
26239 (-Wdeclaration-after-statement): Likewise.
26240 (-fomit-frame-pointer): Likewise.
26241 (-ftree-coalesce-inlined-vars): Likewise.
26242 (-fvisibility=): Likewise.
26243 * doc/extend.texi (Typeof): Likewise.
26244 (Zero Length): Likewise.
26245 (Escaped Newlines): Likewise.
26246 (Compound Literals): Likewise.
26247 (Function Attributes): Likewise.
26248 (Label Attributes): Likewise.
26249 (Type Attributes): Likewise.
26250 (Function Names): Likewise.
26251 (Other Builtins): Likewise.
26252 (Function Specific Option Pragmas): Likewise.
26253 (C++ Interface): Likewise.
26255 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
26257 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26259 2015-03-11 Marek Polacek <polacek@redhat.com>
26261 PR tree-optimization/65388
26262 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26264 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26267 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26268 * configure: Regenerate.
26269 * config.in: Regenerate.
26270 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26271 [-mn-flash]: Document it.
26272 [__AVR_ARCH__]: Document avrtiny.
26274 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26275 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26276 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26278 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26280 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26282 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26285 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26286 allow reloads of PLUS in floating point/VSX registers.
26288 2015-03-11 Junmo Park <junmoz.park@samsung.com>
26290 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26291 crypto_sha256_fast.
26292 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26294 2015-03-11 Richard Biener <rguenther@suse.de>
26296 PR tree-optimization/65310
26297 * tree-sra.c (build_ref_for_offset): Also preserve larger
26300 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
26302 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26304 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26307 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26309 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26311 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26313 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26314 (sem_function::equals_wpa): ... here.
26316 2015-03-10 Marek Polacek <polacek@redhat.com>
26317 Jakub Jelinek <jakub@redhat.com>
26320 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26321 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
26324 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26327 * config/rs6000/t-linux: For powerpc64* target set
26328 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26330 2015-03-10 Richard Biener <rguenther@suse.de>
26332 PR middle-end/44563
26333 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26334 for redirect_all_calls.
26336 2015-03-10 Marek Polacek <polacek@redhat.com>
26338 * gdbinit.in (pcfun): Define and document.
26340 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
26342 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26343 of libgomp-plugin.h.
26344 (find_target_compiler): Support a case when the path to gcc is
26345 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26346 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26347 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26349 (main): Use GCC_INSTALL_NAME as target_driver_name.
26350 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26352 (mkoffload.o): Remove obsolete include path and defines.
26353 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26355 2015-03-10 Richard Biener <rguenther@suse.de>
26357 PR middle-end/63155
26358 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26359 * tree-ssa-coalesce.c: Include timevar.h.
26360 (attempt_coalesce): Handle graph being NULL.
26361 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26362 Split out abnormal coalescing to ...
26363 (perform_abnormal_coalescing): ... this function.
26364 (coalesce_ssa_name): Perform abnormal coalescing without computing
26366 (verify_ssa_coalescing_worker): New function.
26367 (verify_ssa_coalescing): Likewise.
26369 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26372 * config.gcc (extra_options) [avr]: Remove.
26373 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26374 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26375 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26377 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26378 (-mmcu=): Add Var and MissingArgError properties.
26380 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26381 * config/avr/t-multilib: Regenerate.
26382 * config/avr/specs.h: New file.
26383 * config/avr/driver-avr.c: New file.
26384 * config/avr/genopt.sh: Remove file.
26385 * config/avr/avr-tables.opt: Remove file.
26386 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26387 * config/avr/avr-c.c: Same.
26388 * avr-arch.h: Same.
26389 (avr_current_device): Remove proto.
26390 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26391 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26392 (EXTRA_SPEC_FUNCTIONS): Define.
26393 (avr_devicespecs_file): New specs function proto.
26394 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26395 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26396 (avr_current_device): Remove definition and usage.
26397 (avr_set_core_architecture): New static function.
26398 (avr_option_override): Use it.
26399 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26400 (mcu_name): New static array.
26401 (comparator, avr_archs_str, avr_mcus_str): New static functions.
26402 (avr_inform_devices, avr_inform_core_architectures): New functions.
26403 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26404 (avrlibc.h) [WITH_AVRLIBC]: Include.
26405 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26406 (print_mcu): Rewrite from scratch.
26407 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26408 Forward to avr-specific specs defined in device-specs file.
26409 * config/avr/t-avr (driver-avr.o): New rule.
26410 (avr-devices.o): Depend on avr-arch.h.
26411 (avr-mcus): No more depend on avr-tables.opt.
26412 (avr-tables.opt): Remove rule.
26413 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26415 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26417 * c-family/c.opt (fchkp-use-wrappers): New.
26418 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26419 (chkp_wrap_function): New.
26420 (chkp_build_instrumented_fndecl): Support wrapped
26422 * doc/invoke.texi (-fcheck-pointer-bounds): New.
26423 (-fchkp-check-incomplete-type): New.
26424 (-fchkp-first-field-has-own-bounds): New.
26425 (-fchkp-narrow-bounds): New.
26426 (-fchkp-narrow-to-innermost-array): New.
26427 (-fchkp-optimize): New.
26428 (-fchkp-use-fast-string-functions): New.
26429 (-fchkp-use-nochk-string-functions): New.
26430 (-fchkp-use-static-bounds): New.
26431 (-fchkp-use-static-const-bounds): New.
26432 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
26433 (-fchkp-check-read): New.
26434 (-fchkp-check-write): New.
26435 (-fchkp-store-bounds): New.
26436 (-fchkp-instrument-calls): New.
26437 (-fchkp-instrument-marked-only): New.
26438 (-fchkp-use-wrappers): New.
26439 (-static-libmpx): New.
26440 (-static-libmpxwrappers): New.
26442 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26444 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
26445 (CHKP_SPEC): Add wrappers library.
26446 * c-family/c.opt (static-libmpxwrappers): New.
26448 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26450 * config/i386/linux-common.h (LIBMPX_LIBS): New.
26451 (LIBMPX_SPEC): New.
26453 * gcc.c (CHKP_SPEC): New.
26454 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
26455 * c-family/c.opt (static-libmpx): New.
26457 2015-03-10 Richard Biener <rguenther@suse.de>
26459 PR middle-end/44563
26460 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
26462 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
26463 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
26464 (cgraph_add_edge_to_call_site_hash): Likewise.
26465 (cgraph_node::get_edge): Likewise.
26466 (cgraph_edge::set_call_stmt): Likewise.
26467 (cgraph_edge::remove_caller): Likewise.
26469 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
26471 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
26472 (callee_saved_gpr_regs_size): ... this.
26473 (callee_saved_regs_first_regno): Rename to ...
26474 (callee_saved_first_gpr_regno): ... this.
26475 (callee_saved_regs_last_regno) Rename to ...
26476 (callee_saved_last_gpr_regno): ... this.
26477 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
26479 (nds32_initial_elimination_offset): Likewise.
26480 (nds32_expand_prologue): Likewise.
26481 (nds32_expand_epilogue): Likewise.
26482 (nds32_expand_prologue_v3push): Likewise.
26483 (nds32_expand_epilogue_v3pop): Likewise.
26484 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
26485 Adjust renamed variables.
26486 (nds32_output_stack_pop): Likewise.
26488 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
26490 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
26493 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26495 PR rtl-optimization/65321
26496 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
26498 * var-tracking.c (use_narrower_mode): Likewise.
26500 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26502 PR tree-optimization/65355
26503 * varasm.c (notice_global_symbol): Do not produce RTL.
26504 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
26506 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
26507 check for section anchors.
26509 2015-03-10 Alan Modra <amodra@gmail.com>
26512 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
26513 to be single-arch by default. Set cpu_is_64bit for powerpc64
26514 given --with-cpu=native.
26515 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
26516 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
26518 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
26519 rs6000_isa_flags rather than TARGET_64BIT.
26521 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
26522 Kaz Kojima <kkojima@gcc.gnu.org>
26524 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
26526 2015-03-09 Jakub Jelinek <jakub@redhat.com>
26529 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
26530 on a TREE_BINFO, instead use BINFO_TYPE.
26532 2015-03-09 Richard Biener <rguenther@suse.de>
26534 PR middle-end/65270
26535 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
26536 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
26537 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
26538 of that. When comparing dereferences compare alignment.
26539 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
26541 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
26543 * ipa-inline-analysis.c (check_callers): Check
26544 node->can_remove_if_no_direct_calls_and_refs_p.
26545 (growth_likely_positive): Reorganize to call
26546 can_remove_if_no_direct_calls_p later.
26547 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
26548 will_be_removed_from_program_if_no_direct_calls_p): Add
26549 will_inline parameter.
26550 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
26551 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26552 Handle inliner case correctly.
26554 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
26556 PR tree-optimization/63743
26557 * cfgexpand.c (reorder_operands): Also reorder if only second operand
26558 had its definition forwarded by TER.
26560 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
26563 * ipa-utils.h (types_odr_comparable): Add strict argument.
26564 * ipa-devirt.c: Fix whitespace;
26565 (odr_hasher): Remove.
26566 (odr_name_hasher, odr_vtable_hasher): New hashers.
26567 (can_be_name_hashed_p): New predicate.
26568 (hash_type_name): remove.
26569 (hash_odr_name): New.
26570 (odr_name_hasher::hash): new.
26571 (can_be_vtable_hashed_p): New.
26572 (hash_odr_vtable): New.
26573 (odr_vtable_hasher::hash): New.
26574 (types_same_for_odr): Add strict parameter.
26575 (types_odr_comparable): Likewise.
26576 (odr_name_hasher::equal): New.
26577 (odr_vtable_hasher::equal): New.
26578 (odr_name_hasher::remove): New.
26579 (odr_hash_type): Change to hash_table<odr_name_hasher>.
26580 (odr_vtable_hash_type): New.
26581 (odr_vtable_hash): New.
26582 (odr_subtypes_equivalent_p): Do strict comparsion.
26583 (add_type_duplicate): Merge type names; cleanup; avoid type
26585 (register_odr_type): Initialize vtable hash.
26586 (build_type_inheritance_graph): Likewise
26587 (get_odr_type): Reorg to use two hashes.
26588 (dump_possible_polymorphic_call_targets): Move sanity check after debug
26590 (ipa_devirt): Dump type_inheritance_graph.
26591 (types_same_for_odr): Add strict mode.
26593 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26596 * cgraph.h (symtab_node): Add definition_alignment,
26597 can_increase_alignment_p and increase_alignment.
26598 * symtab.c (symtab_node::can_increase_alignment_p,
26599 increase_alignment_1, symtab_node::increase_alignment,
26600 symtab_node::definition_alignment): New.
26601 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
26602 can_increase_alignment_p.
26603 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
26604 * tree-vect-stmts.c (ensure_base_align): Likewise.
26605 * varasm.c (function_section_1): Use definition_alignment.
26606 (assemble_start_function): Likewise.
26607 (emit_local): likewise.
26608 (build_constant_desc): Likewsie.
26609 (output_constant_def_contents): Likewise.
26610 (place_block_symbol): Likewise.
26611 (output_object_block): Likewise.
26613 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26616 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
26617 when outputting debug.
26619 2015-03-07 Marek Polacek <polacek@redhat.com>
26620 Martin Uecker <uecker@eecs.berkeley.edu>
26623 * doc/invoke.texi: Update description of -fsanitize=bounds.
26625 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
26627 * tree-ssa-phiopt.c (neg_replacement): Remove.
26628 (tree_ssa_phiopt_worker): Remove negate optimization.
26630 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26633 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
26635 2015-03-06 Richard Biener <rguenther@suse.de>
26637 PR middle-end/64928
26638 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
26639 and liveout_obstack members.
26640 (calculate_live_on_exit): Remove.
26641 (calculate_live_ranges): Change declaration.
26642 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
26643 (new_tree_live_info): Adjust.
26644 (calculate_live_ranges): Delete livein when not wanted.
26645 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
26646 Deal with partly deleted live info.
26647 (loe_visit_block): Remove temporary bitmap by using
26648 bitmap_ior_and_compl_into.
26649 (live_worklist): Adjust accordingly.
26650 (calculate_live_on_exit): Make static.
26651 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
26652 we do not need livein.
26654 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
26656 * real.c (real_from_string): Fix typo in assertion.
26658 2015-03-06 Alex Velenko <alex.velenko@arm.com>
26660 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
26663 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26665 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
26667 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
26670 * lra-assigns.c (find_hard_regno_for): Rename to
26671 find_hard_regno_for_1. Add a new parameter.
26672 (find_hard_regno_for): New function using find_hard_regno_for_1.
26674 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
26676 PR rtl-optimization/65067
26677 * expmed.c (store_bit_field, extract_bit_field): Reworked the
26678 strict volatile bitfield handling.
26680 2015-03-05 Martin Liska <mliska@suse.cz>
26683 * ipa-icf.c (sem_variable::equals): Compare variables types.
26685 2015-03-05 Richard Henderson <rth@redhat.com>
26688 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
26689 correctly check weak symbol binding.
26691 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
26693 PR middle-end/65315
26694 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
26697 2015-03-05 Martin Liska <mliska@suse.cz>
26699 * ipa-inline.c (inline_small_functions): Set default value to
26700 prevent warning during bootstrap.
26701 * tree.h: Add pragma guard that ignores false positives during
26704 2015-03-05 Richard Biener <rguenther@suse.de>
26706 PR tree-optimization/65310
26707 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26708 Properly preserve alignment of the base of the access.
26710 2015-03-05 Richard Biener <rguenther@suse.de>
26713 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
26714 Compare dependence info.
26716 2015-03-05 Richard Biener <rguenther@suse.de>
26718 PR middle-end/65233
26719 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
26721 (walk_ssa_copies): Revert last chage. Instead do not walk
26722 SSA names registered for SSA update.
26724 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26727 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
26728 vtable references for their containing type.
26729 (sem_function::equals_wpa): Compare TYPE_RESTRICT
26730 and type attributes.
26732 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
26734 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
26735 before negating it.
26736 * stor-layout.c (finalize_record_size): Revert latest change.
26738 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
26740 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
26742 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26744 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
26745 for correct comdat handling.
26746 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26748 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
26749 (used_from_object_file_p_worker): Remove.
26750 (cgraph_node::only_called_directly_or_alised): Add
26751 used_from_object_file_p.
26752 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
26753 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
26754 can_remove_if_no_direct_calls_and_refs_p.
26756 2015-03-04 Nick Clifton <nickc@redhat.com>
26758 * config/rl78/rl78.h (enum reg_class): Remove real registers from
26759 General register class.
26760 * config/rl78/rl78-real.md: Replace general register constraints
26761 with real+virtual register constraints.
26763 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26765 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
26766 from checking for -mhtm option.
26768 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26770 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
26771 (struct ipa_sra_check_caller_data): Add has_thunk field.
26772 (ipa_sra_check_caller): Check for thunk.
26773 (ipa_sra_preliminary_function_checks): Give up on function with
26775 (ipa_early_sra): Use call_for_symbol_and_aliases.
26777 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
26780 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26781 called for __stack_chk_guard symbol.
26783 2015-03-03 DJ Delorie <dj@redhat.com>
26785 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
26787 (*addhi3_real): Likewise.
26788 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
26789 pattern to match incrementing memory.
26790 * config/rl78/predicates.md (rl78_1_2_operand): New.
26791 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
26792 it's the same and only mem.
26793 (rl78_alloc_physical_registers_op2): If there's effectively only
26794 one MEM, transcode it into HL.
26795 (rl78_far_p): Reject addresses that aren't legitimate.
26797 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26799 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
26802 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
26804 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26806 Implement call0 ABI for xtensa
26807 * config/xtensa/constraints.md ("a" constraint): Include stack
26808 pointer in case of call0 ABI.
26809 ("q" constraint): Make empty in case of call0 ABI.
26810 ("D" constraint): Include stack pointer in case of call0 ABI.
26811 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
26812 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
26814 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
26816 (xtensa_regno_to_class): Make it a local variable in the
26817 function xtensa_regno_to_class.
26818 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
26819 macro, function prototype and implementation.
26820 (reg_nonleaf_alloc_order): Make it a local variable in the
26821 function order_regs_for_local_alloc.
26822 (xtensa_conditional_register_usage): New function.
26823 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
26824 (xtensa_valid_move): Allow direct moves to stack pointer
26825 register in call0 ABI.
26826 (xtensa_setup_frame_addresses): Only spill register windows in
26828 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
26829 call0 ABI respectively.
26830 (xtensa_function_arg_1): Only mark a7 register for copying in
26832 (xtensa_call_save_reg): New function.
26833 (compute_frame_size): Add space for callee saved register
26834 storage to the frame size in call0 ABI.
26835 (xtensa_expand_prologue): Generate code to set up stack frame
26836 and save callee-saved registers in call0 ABI.
26837 (xtensa_expand_epilogue): New function.
26838 (xtensa_set_return_address): New function.
26839 (xtensa_return_addr): Calculate return address in call0 ABI.
26840 (xtensa_builtin_saveregs): Only mark a7 register for copying and
26841 emit copying code in windowed ABI.
26842 (order_regs_for_local_alloc): Add preferred register allocation
26843 order for non-leaf function in call0 ABI.
26844 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
26845 (xtensa_asm_trampoline_template): Add trampoline generation for
26847 (xtensa_trampoline_init): Add trampoline initialization for
26849 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
26851 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
26852 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
26853 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
26854 ABI call-used registers.
26855 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
26856 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
26858 (REG_CLASS_CONTENTS): Include all registers into the preferred
26859 reload registers set, adjust the set in the
26860 xtensa_conditional_register_usage.
26861 (xtensa_regno_to_class): Drop variable declaration.
26862 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
26864 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
26866 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
26867 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
26868 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
26869 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
26870 location in call0 ABI.
26871 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
26872 stack adjustment size when handling exception.
26873 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
26874 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
26876 ("return" pattern): Generate ret.n/ret in call0 ABI.
26877 ("epilogue" pattern): Expand epilogue.
26878 ("nonlocal_goto" pattern): Use default in call0 ABI.
26879 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
26880 emit eh_set_a0_* depending on ABI.
26881 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
26882 ("eh_set_a0_call0", "blockage"): New patterns.
26884 2015-03-03 Martin Liska <mliska@suse.cz>
26887 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
26889 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26892 * config/rs6000/rs6000-tables.opt: Regenerate table.
26894 2015-03-03 Renlin Li <renlin.li@arm.com>
26896 * doc/md.texi (@item ^): Change ? into ^.
26898 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
26900 * doc/tm.texi: Regenerated.
26902 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26904 * builtins.c (expand_builtin_return_addr): Add
26905 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
26906 surrounding #ifdef.
26907 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
26909 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
26911 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
26913 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
26916 2015-03-03 Martin Jambor <mjambor@suse.cz>
26917 Eric Botcazou <ebotcazou@adacore.com>
26919 * tree-sra.c (ipa_sra_check_caller_data): New type.
26920 (has_caller_p): Removed.
26921 (ipa_sra_check_caller): New function.
26922 (ipa_sra_preliminary_function_checks): Use it.
26924 2015-03-03 Martin Liska <mliska@suse.cz>
26926 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
26927 instead of if branch.
26929 2015-03-03 Martin Liska <mliska@suse.cz>
26932 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
26934 2015-03-23 Jeff Law <law@redhat.com>
26936 PR tree-optimization/65241
26937 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
26938 hash table if INSERT is true.
26940 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26943 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
26945 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26948 * config/avr/avr.c (context.h, tree-pass.h): Include them.
26949 (avr_pass_data_recompute_notes): New static variable.
26950 (avr_pass_recompute_notes): New class.
26951 (avr_register_passes): New static function.
26952 (avr_option_override): Call it.
26954 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26956 Fix various problems with specs file generation.
26959 * config.gcc (extra_gcc_objs) [avr]: Remove.
26960 * config/avr/driver-avr.c: Remove file.
26961 * config/avr/t-avr (driver-avr.o): Remove rule.
26962 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
26963 INCLUDES to build. Depend on TM_H.
26964 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
26965 build warnings. Fix non-matching types and non-existing %-codes.
26967 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
26968 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
26969 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
26970 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
26971 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
26972 (LIBGCC_SPEC): Remove definitions.
26974 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26976 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
26977 to create a register in testing mode.
26979 2015-03-03 Martin Liska <mliska@suse.cz>
26980 Jan Hubicka <hubicka@ucw.cz>
26983 * cgraph.c (cgraph_node::has_thunk_p): New function.
26984 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
26985 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
26986 (sem_function::merge): Assert is changed.
26988 2015-03-03 Martin Liska <mliska@suse.cz>
26989 Martin Jambor <mjambor@suse.cz>
26992 * ipa-icf.c (sem_item_optimizer::execute): Change function
26993 return value to boolean.
26994 (sem_item_optimizer::merge_classes): Likewise.
26995 (ipa_icf_driver): Return TODO_remove_functions in case there's
26996 a merge operation processed.
26997 * ipa-icf.h: Change function return value to boolean.
26999 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27002 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27003 processor type for 64-bit little endian PowerPC.
27005 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27006 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
27007 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
27008 printing built-in mask so it does not pass NULL pointers.
27010 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27013 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
27016 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27017 !ISA_HAS_FP_CONDMOVE.
27019 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
27021 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27024 2015-03-02 Ulrich Drepper <drepper@gmail.com>
27026 * doc/invoke.texi (Options for Code Generation Conventions):
27027 Fix URL of DSO paper.
27029 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27032 * ipa-inline.c (check_callers): Looks for recursion.
27033 (inline_to_all_callers): Give up on uninlinable or recursive edges.
27034 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27035 summary of inline clones.
27036 (do_estimate_growth_1): Fix recursion check.
27038 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27041 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27044 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27045 Aldy Hernandez <aldyh@redhat.com>
27048 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27049 when checking TYPE_BINFO.
27051 2015-03-02 Richard Biener <rguenther@suse.de>
27054 * ipa-icf-gimple.c: Include builtins.h.
27055 (func_checker::compare_memory_operand): Compare base alignment.
27057 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27060 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27061 are never passed by reference.
27063 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27066 * tree-chkp.c (chkp_check_lower): Don't check against
27067 zero bounds for already instrumented functions.
27068 (chkp_check_upper): Likewise.
27069 (chkp_fini): Clean pass local data to avoid wrong reusage.
27071 2015-02-28 Martin Liska <mliska@suse.cz>
27072 Jan Hubicka <hubicka@ucw.cz>
27074 * ipa-icf.c (sem_variable::equals): Improve debug output;
27075 get variable constructor.
27076 (sem_variable::parse): Do not filter out too early; give up on
27077 volatile and register vars.
27078 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27080 * ipa-icf.h (sem_variable::init): Do not set ctor.
27081 (sem_variable::ctor): Remove.
27083 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
27085 PR middle-end/65233
27086 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27088 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27090 * ipa-icf.c: Include stor-layout.h
27091 (sem_function::compare_cgraph_references): Rename to ...
27092 (sem_item::compare_cgraph_references): ... this one.
27093 (sem_variable::equals_wpa): New function
27094 (sem_variable::equals): Do not check stuff already verified by
27096 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27097 * ipa-icf.h (sem_item): Add compare_cgraph_references.
27098 (sem_function): Remove compare_cgraph_references.
27099 (sem_variable): Turns equals_wpa into non-inline.
27101 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27103 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27104 (sem_item::add_expr): New function.
27105 (sem_function::hash_stmt): Handle operands of most statements.
27106 (sem_variable::get_hash): Hash the actual constructor.
27107 * ipa-icf.h (sem_item): Add add_expr.
27108 (sem_function): Update prototype of hash_stmt
27110 2015-02-28 Martin Liska <mliska@suse.cz>
27111 Jan Hubicka <hubicka@ucw.cz>
27114 * ipa-icf-gimple.c (func_checker::compare_function_decl):
27116 (func_checker::compare_variable_decl): Skip symtab vars.
27117 (func_checker::compare_cst_or_decl): Update.
27118 * ipa-icf.c (sem_function::parse): Do not consider aliases.
27119 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27120 use correct symtab predicates.
27121 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27122 (sem_variable::parse): Update comment.
27123 (sem_item_optimizer::build_graph): Consider ultimate aliases
27126 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27128 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27131 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27133 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27134 (sem_variable::merge) Likewise.
27136 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27138 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27139 target; also match flag_ipa_devirt.
27141 2015-03-01 Martin Liska <mliska@suse.cz>
27142 Jan Hubicka <hubicka@ucw.cz>
27144 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27145 Validate variable alignment.
27146 * ipa-icf.c (sem_function::equals_private): Be more precise
27147 about non-common function attributes.
27148 (sem_variable::equals): Likewise.
27150 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27153 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27154 across COMDAT group boundary.
27156 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27159 * ipa-icf.c (clear_decl_rtl): New function.
27160 (sem_function::merge): Clear RTL before forming alias.
27161 (sem_variable::merge): Clear RTL before forming alias.
27163 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27166 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27168 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
27170 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27173 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27175 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27176 a typo in the description.
27178 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27181 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27182 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27183 * lra-constraints.c: Include "params.h".
27184 (EBB_PROBABILITY_CUTOFF): Use
27185 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27186 (lra_inheritance): Use '<' instead of '<=' for
27187 EBB_PROBABILITY_CUTOFF.
27188 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27191 2015-02-27 Martin Liska <mliska@suse.cz>
27193 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27194 vector length condition.
27196 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
27198 * doc/extend.texi (x86 transactional memory intrinsics):
27199 Reorganize discussion of _xbegin. Clarify that the return
27200 value is a bit mask. Expand example and move to end of section.
27202 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27203 Aldy Hernandez <aldyh@redhat.com>
27205 PR rtl-optimization/65220
27206 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27208 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27211 * lra-remat.c (update_scratch_ops): New.
27212 (do_remat): Call it.
27213 * lra.c (lra_register_new_scratch_op): New. Take code from ...
27214 (remove_scratches): ... here.
27215 * lra-int.h (lra_register_new_scratch_op): New prototype.
27217 2015-02-27 Marek Polacek <polacek@redhat.com>
27220 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27221 -Wformat-signedness anymore.
27223 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27225 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27227 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27229 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27231 * config/s390/s390.c (enum s390_builtin):
27232 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27233 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27234 (s390_init_builtins): Generate new builtin functions.
27235 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27236 (s390_sfpc, s390_efpc): New pattern definitions.
27238 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27240 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27241 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27242 (s390_builtin_decls): New array.
27243 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27244 (s390_builtin_decl): New function.
27245 (TARGET_BUILTIN_DECL): Define macro.
27247 2015-02-27 Richard Biener <rguenther@suse.de>
27249 PR middle-end/63175
27250 * builtins.c (get_object_alignment_2): Make sure to re-apply
27251 the ANDed mask after recursing to its operand gets us a new
27252 misalignment bit position.
27254 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
27255 Martin Liska <mliska@suse.cz>
27258 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27259 Use address_matters_p.
27260 (redirect_all_callers, set_addressable): New functions.
27261 (sem_function::merge): Reorganize and fix merging issues.
27262 (sem_variable::merge): Likewise.
27263 (sem_variable::compare_sections): Remove.
27264 * common.opt (fmerge-all-constants, fmerge-constants): Remove
27266 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27268 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27270 (address_matters_1): New function.
27271 (symtab_node::address_matters_p): New function.
27272 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27273 check for merged flag.
27274 * cgraph.h (address_matters_p): Declare.
27275 (symtab_node::address_taken_from_non_vtable_p): Remove.
27276 (symtab_node::address_can_be_compared_p): New method.
27277 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27278 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27280 (comdat_can_be_unshared_p_1) Use address_matters_p.
27281 (update_vtable_references): Fix formating.
27282 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27283 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27284 * cgraphclones.c: Preserve merged and icf_merged flags.
27286 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
27288 * doc/extend.texi (Function Attributes): Fix spelling and typos.
27289 (Label Attributes): Likewise.
27290 (Cilk Plus Builtins): Likewise.
27291 (ARC SIMD Built-in Functions): Likewise.
27292 (ARM C Language Extensions (ACLE)): Likewise.
27293 (PowerPC Built-in Functions): Likewise.
27294 (PowerPC Hardware Transactional Memory Built-in Functions):
27297 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27299 PR tree-optimization/65216
27300 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27301 new stmt and new SSA_NAME for lhs whenever the arguments have
27302 changed and weren't just swapped. Fix comment typo.
27304 PR tree-optimization/65215
27305 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27306 for PDP endian targets.
27307 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27308 Fix up formatting issues.
27309 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
27310 size is smaller than the original, adjust MEM_REF offset by the
27311 difference of sizes. Use is_gimple_mem_ref_addr instead of
27312 is_gimple_min_invariant test to avoid adding address temporaries.
27314 2015-02-26 Martin Liska <mliska@suse.cz>
27315 Jan Hubicka <hubicka@ucw.cz>
27318 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27319 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27320 (sem_item_optimizer::process_cong_reduction): Include division by
27321 sensitive references.
27322 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27323 * ipa-ref.c (ipa_ref::address_matters_p): New function.
27324 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27326 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
27329 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27331 * config/avr/avr.c: Same.
27332 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27333 Refuse any constant address not in 0..0xbf.
27334 * config/avr/avr.md (*mov<mode>, *movsf): Remove
27335 tiny_valid_direct_memory_access_range from insn conditions.
27336 (mov<mode>): Don't special-case expansion of avrtiny addresses.
27338 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
27341 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27342 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27343 * config/sh/predicates.md (const_logical_operand): New predicate.
27344 * config/sh/sh.md: Add new peephole2 patterns.
27346 2015-02-26 Marek Polacek <polacek@redhat.com>
27349 * ipa-inline.c (early_inliner): Recompute inline parameters.
27351 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27354 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27355 instructions with TImode operands are included in the analysis.
27357 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27359 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27360 of an EDGE_FSM_THREAD.
27362 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
27364 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27366 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
27369 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27371 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27373 PR tree-optimization/65048
27374 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27375 (thread_through_all_blocks): Call valid_jump_thread_path.
27376 Remove invalid FSM jump-thread paths.
27378 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27380 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27381 (ipa_write_optimization_summaries): Likewise.
27382 * tree-streamer.h: Include data-streamer.h.
27383 (streamer_mode_table): Declare extern variable.
27384 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27385 * lto-streamer-out.c (lto_output_init_mode_table,
27386 lto_write_mode_table): New functions.
27387 (produce_asm_for_decls): Call lto_write_mode_table when streaming
27389 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27390 (lto_create_simple_input_block): Add mode_table argument to the
27391 lto_input_block constructors.
27392 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27394 * data-streamer-in.c (string_for_index): Likewise.
27395 * ipa-inline-analysis.c (inline_read_section): Likewise.
27396 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27397 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27398 * lto-streamer-in.c (lto_read_body_or_constructor,
27399 lto_input_toplevel_asms): Likewise.
27400 (lto_input_mode_table): New function.
27401 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27402 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27403 Use bp_pack_machine_mode.
27404 * real.h (struct real_format): Add name field.
27405 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27406 (class lto_input_block): Add mode_table member.
27407 (lto_input_block::lto_input_block): Add mode_table_ argument,
27408 initialize mode_table.
27409 (struct lto_file_decl_data): Add mode_table field.
27410 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27411 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27412 unpack_ts_decl_common_value_fields,
27413 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27414 * tree-streamer.c (streamer_mode_table): New variable.
27415 * real.c (ieee_single_format, mips_single_format,
27416 motorola_single_format, spu_single_format, ieee_double_format,
27417 mips_double_format, motorola_double_format,
27418 ieee_extended_motorola_format, ieee_extended_intel_96_format,
27419 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27420 ibm_extended_format, mips_extended_format, ieee_quad_format,
27421 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27422 decimal_single_format, decimal_double_format, decimal_quad_format,
27423 ieee_half_format, arm_half_format, real_internal_format): Add name
27425 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27427 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
27430 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
27431 reordering for selective scheduling.
27433 2015-02-26 Terry Guo <terry.guo@arm.com>
27435 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
27436 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
27437 (arm_arch_no_volatile_ce): Declare new global variable.
27438 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
27439 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
27440 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
27441 (TARGET_NO_VOLATILE_CE): New macro.
27442 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
27443 volatile memory access in IT block
27445 2015-02-25 Kai Tietz <ktietz@redhat.com>
27447 PR tree-optimization/61917
27448 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
27449 that reduc_def_stmt is null.
27451 2015-02-25 Martin Liska <mliska@suse.cz>
27453 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
27454 hard register variables.
27456 2015-02-25 Kai Tietz <ktietz@redhat.com>
27459 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
27460 (symtab::noninterposable_alias): Likewise.
27462 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
27465 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
27467 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
27469 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
27472 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
27473 as split condition; force split via '#' in output pattern.
27475 2015-02-25 Richard Biener <rguenther@suse.de>
27476 Kai Tietz <ktietz@redhat.com>
27478 PR tree-optimization/61917
27479 * tree-vect-loop.c (vectorizable_reduction): Allow
27480 vect_internal_def without reduction to exit graceful.
27482 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27485 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
27486 only with NONDEBUG_INSN_P.
27488 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27490 Use variadic macros with avr-log.c.
27492 * config/avr/avr-protos.h (avr_vdump): New prototype.
27493 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
27494 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
27495 * config/avr/avr-log.c: Adjust comments.
27496 (avr_vdump): New function.
27497 (avr_vadump): Pass caller as 2nd argument instead of format string.
27498 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
27499 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
27501 2015-02-25 Jakub Jelinek <jakub@redhat.com>
27504 * target.def (target_option_stream_in): New target hook.
27505 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
27506 targetm.target_option.post_stream_in if non-NULL.
27507 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
27508 * doc/tm.texi: Updated.
27509 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
27511 (TARGET_OPTION_POST_STREAM_IN): Redefine.
27513 2015-02-24 Jeff Law <law@redhat.com>
27516 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
27517 of operand 0 and operand 2.
27518 (zero_cost_loop_end, loop_end): Similarly.
27520 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
27522 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
27525 2015-02-24 DJ Delorie <dj@redhat.com>
27527 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
27528 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
27529 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
27530 instead of hardcoding SImode.
27532 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
27534 * omp-low.c (create_omp_child_function): Tag entrypoint
27535 functions with a special attribute.
27537 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27540 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
27542 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
27544 PR rtl-optimization/65123
27545 * lra-remat.c (operand_to_remat): Check hard regs in insn
27548 2015-02-24 Nick Clifton <nickc@redhat.com>
27550 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
27553 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
27556 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
27557 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
27558 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
27559 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
27560 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
27561 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
27562 (BUILT_IN_GOACC_PARALLEL): Specify as
27563 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
27564 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
27565 * builtin-types.def
27566 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27567 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27568 Remove function types.
27569 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
27570 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27571 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27572 New function types.
27574 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
27576 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
27578 2015-02-24 Jakub Jelinek <jakub@redhat.com>
27580 PR tree-optimization/65170
27581 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
27582 if val[1] < 0, clear also val[2] and return 3.
27584 2015-02-24 Alan Modra <amodra@gmail.com>
27587 * config/rs6000/rs6000.c (get_memref_parts): Only return true
27588 when *base is a reg. Handle nested plus addresses. Simplify
27591 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
27593 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
27594 use natural alignment when optimizing for size.
27596 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
27599 * config/sh/sh.md (movsicc_true+3): Remove peephole.
27600 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
27601 * config/sh/sh.c (replace_n_hard_rtx): Remove.
27603 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
27606 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
27607 too big for a wide_int. Implement missing wrapping operation.
27609 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
27612 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
27613 instead of const_int 4294901760.
27615 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
27617 * config/avr/t-avr: Fix typo in comment.
27619 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
27621 * doc/rtl.texi (fma): Clarify documentation.
27623 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
27626 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
27627 over input_location.
27629 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27631 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
27632 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
27633 restrict alignments to absolute_biggest_alignment.
27634 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
27636 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
27637 * doc/tm.texi: Regenerate.
27638 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
27640 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
27643 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
27645 2015-02-20 Richard Biener <rguenther@suse.de>
27647 PR tree-optimization/65136
27648 * tree-ssa-propagate.c: Include cfgloop.h.
27649 (replace_phi_args_in): Avoid replacing loop latch edge PHI
27650 arguments with constants.
27652 2015-02-20 Jakub Jelinek <jakub@redhat.com>
27653 Martin Liska <mliska@suse.cz>
27656 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
27657 don't try to create_thunk if stdarg_p. If
27658 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
27659 redirect_callers if possible.
27660 (sem_item_optimizer::execute): Call unregister_hooks here...
27661 (ipa_icf_driver): ... instead of here.
27663 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27665 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
27666 Mark operand 0 as earlyclobber in 2nd alternative.
27667 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
27668 Write negated shift amount into QI lowpart operand 0 and use it
27670 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
27672 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27674 * cgraph.h (clone_function_name_1): Declare.
27675 * cgraphclones.c (clone_function_name_1): New function.
27676 (clone_function_name): Use it.
27677 * lto-partition.c: Include "stringpool.h".
27678 (must_not_rename, maybe_rewrite_identifier)
27679 (validize_symbol_for_target): New static functions.
27680 (privatize_symbol_name): Use must_not_rename.
27681 (promote_symbol): Call validize_symbol_for_target.
27682 (lto_promote_cross_file_statics): Likewise.
27683 (lto_promote_statics_nonwpa): Likewise.
27685 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
27688 * config/avr/avr.md (pushhi_insn): New insn.
27689 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
27691 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27692 Jakub Jelinek <jakub@redhat.com>
27694 * tree-streamer.c (preload_common_nodes): Don't preload
27695 TI_VA_LIST* for offloading.
27696 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
27699 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
27701 * config/pa/pa.c (pa_emit_move_sequence): Always force
27702 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
27705 * config/pa/pa.c (pa_reloc_rw_mask): New function.
27706 (TARGET_ASM_RELOC_RW_MASK): Define.
27707 (pa_cannot_force_const_mem): Revert previous change.
27709 2015-02-19 Martin Jambor <mjmabor@suse.cz>
27710 Jan Hubicka <hubicka@ucw.cz>
27713 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
27714 across jump functions.
27716 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
27718 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
27720 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
27722 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
27724 2015-02-19 Richard Henderson <rth@redhat.com>
27726 PR middle-end/65074
27727 * varasm.c (default_binds_local_p_2): Don't test node->definition;
27728 test DECL_EXTERNAL independent of symtab_node.
27730 2015-02-19 Jakub Jelinek <jakub@redhat.com>
27733 * varpool.c (varpool_node::get_constructor): Return early
27734 if this->lto_file_data is NULL.
27736 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27738 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
27739 (rank_for_schedule_debug): Update.
27740 (ready_sort): Make static. Move sorting logic to ...
27741 (ready_sort_debug, ready_sort_real): New static functions.
27742 (schedule_block): Sort both debug insns and real insns in preparation
27743 for ready list trimming. Improve debug output.
27744 * sched-int.h (ready_sort): Remove global declaration.
27746 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
27748 * ipa-icf.c (sem_function::equals_private): Adjust.
27749 (sem_function::bb_dict_test): Take a vec<int> * instead of
27751 * ipa-icf.h (bb_dict_test): Likewise.
27753 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27755 PR gcov-profile/64634
27756 * tree-eh.c (frob_into_branch_around): Fix up typos
27757 in function comment.
27758 (lower_catch): Put eh_seq resulting from EH lowering of
27759 the cleanup sequence after the cleanup rather than before it.
27761 2015-02-18 Tom de Vries <tom@codesourcery.com>
27763 * common.opt (fstdarg-opt): New option.
27764 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
27765 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
27766 (@item -fstdarg-opt): New item.
27768 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
27771 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
27772 for common symbols.
27774 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27776 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
27778 (ALL_HOST_OBJS): Add mkoffload.o.
27779 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
27781 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
27783 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
27784 (compare_virtual_tables): Be smarter about skipping typeinfos;
27785 do sane output on virtual table table mismatch.
27786 (warn_odr): Be ready for forward declarations of enums;
27787 output sane info on base mismatch and virtual table mismatch.
27788 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
27789 when only one type is polymorphic.
27790 (get_odr_type): Fix hashtable corruption.
27791 (dump_odr_type): Dump mangled names.
27793 2015-02-18 Richard Biener <rguenther@suse.de>
27795 PR tree-optimization/65063
27796 * tree-predcom.c (determine_unroll_factor): Return 1 if we
27797 have replaced looparound PHIs.
27799 2015-02-18 Martin Liska <mliska@suse.cz>
27801 * lto-streamer.c (lto_streamer_init): Encapsulate
27802 streamer_check_handled_ts_structures with checking macro.
27804 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27807 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
27808 section if !implicit_section.
27809 (cgraph_node::create_version_clone_with_body): Likewise.
27810 * trans-mem.c (ipa_tm_create_version): Likewise.
27812 2015-02-18 Richard Biener <rguenther@suse.de>
27814 PR tree-optimization/62217
27815 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
27818 2015-02-18 Marek Polacek <polacek@redhat.com>
27821 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
27822 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
27823 is in range [-16K, -1]. Don't issue run-time error if
27824 (ptr > ptr + offset).
27826 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
27828 * doc/install.texi (nvptx-*-none): New section.
27829 * doc/invoke.texi (Nvidia PTX Options): Likewise.
27830 * config/nvptx/nvptx.opt: Update.
27832 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
27833 (access_check): New functions, copied from
27834 config/i386/intelmic-mkoffload.c.
27835 (main): For non-installed testing, look in all COMPILER_PATHs for
27838 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
27840 2015-02-18 Andrew Pinski <apinski@cavium.com>
27841 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27843 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
27844 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
27846 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
27848 * ipa-visibility.c (function_and_variable_visibility): Only
27849 check locality if node is not already local.
27850 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27851 call_for_symbol_and_aliases instead of
27852 call_for_symbol_thunks_and_aliases.
27853 (ipa_inline): Likewise.
27854 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27855 first walk aliases.
27856 * ipa.c (symbol_table::remove_unreachable_nodes): Use
27857 call_for_symbol_and_aliases.
27858 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27859 (ipa_propagate_frequency_1): Use it; use opt_for_fn
27860 (ipa_propagate_frequency): Update.
27861 (ipa_profile): Add opt_for_fn gueards.
27863 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
27865 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
27866 * doc/invoke.texi (SH options): Document it.
27867 * config/sh/sh.c (sh_insn_length_adjustment): Check
27868 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
27870 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
27872 * common.opt (fipa-cp-alignment): New.
27873 * ipa-cp.c (ipcp_store_alignment_results): Check
27874 flag_ipa_cp_alignment.
27875 * opts.c (default_options_table): Enable -fipa-cp-alignment for
27877 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
27878 * doc/invoke.texi: Document -fipa-cp-alignment.
27880 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
27883 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
27884 to nil. Adjust comments.
27886 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
27888 * ipa-visibility.c (function_and_variable_visibility): Only
27889 check locality if node is not already local.
27890 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27891 call_for_symbol_and_aliases instead of
27892 call_for_symbol_thunks_and_aliases.
27893 (ipa_inline): Likewise.
27894 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27895 first walk aliases.
27896 * ipa.c (symbol_table::remove_unreachable_nodes): Use
27897 call_for_symbol_and_aliases.
27898 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27899 (ipa_propagate_frequency_1): Use it; use opt_for_fn
27900 (ipa_propagate_frequency): Update.
27901 (ipa_profile): Add opt_for_fn guards.
27903 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
27905 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
27906 skipping of "strange" tokens.
27908 2015-02-17 Jeff Law <law@redhat.com>
27910 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
27913 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
27915 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
27916 as forcing a HARD_DEP between instructions, thereby
27917 disallowing rewriting to break dependencies.
27919 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
27921 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
27922 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
27923 variables in boundary that have no inlitalizer encoded and are
27925 * varasm.c (default_binds_local_p_2): External definitions do not
27926 count as definitions here.
27928 2015-02-16 Jeff Law <law@redhat.com>
27930 PR tree-optimization/64823
27931 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
27933 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27934 threading through blocks with PHIs, but no statements.
27935 (thread_through_normal_block): Distinguish between blocks where
27936 we did not process all the statements and blocks with no statements.
27938 2015-02-16 Jakub Jelinek <jakub@redhat.com>
27939 James Greenhalgh <james.greenhalgh@arm.com>
27942 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
27943 section if not linkonce. Fix up formatting.
27944 (cgraph_node::create_version_clone_with_body): Copy section.
27945 * trans-mem.c (ipa_tm_create_version): Likewise.
27947 2015-02-16 Richard Biener <rguenther@suse.de>
27949 PR tree-optimization/65077
27950 * tree-ssa-structalias.c (get_constraint_for_1): Handle
27951 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
27952 (find_func_aliases): Allow float values to carry pointers again.
27954 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27956 * doc/install.texi (Specific): Reorder targets list to put
27957 aarch64 in alphabetical order. Add a link to aarch64*-*-*
27960 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27961 David Edelsohn <dje.gcc@gmail.com>
27964 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
27965 mapping class to external variable or function reference.
27966 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
27969 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
27972 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
27973 ASM_WEAKEN_DECL if defined.
27975 2015-02-16 Richard Biener <rguenther@suse.de>
27978 * varasm.c (default_file_start): For LTO produced units
27979 emit <artificial> as file directive.
27981 2015-02-16 Richard Biener <rguenther@suse.de>
27983 PR tree-optimization/63593
27984 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
27985 stmts and releasing SSA names until...
27986 (execute_pred_commoning): ... after processing all chains.
27988 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
27991 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
27992 external functions.
27994 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
27996 * doc/bugreport.texi: Adjust section titles throughout the file
27997 to use "Title Case".
27998 * doc/extend.texi: Likewise.
27999 * doc/gcov.texi: Likewise.
28000 * doc/implement-c.texi: Likewise.
28001 * doc/implement-cxx.texi: Likewise.
28002 * doc/invoke.texi: Likewise.
28003 * doc/objc.texi: Likewise.
28004 * doc/standards.texi: Likewise.
28005 * doc/trouble.texi: Likewise.
28007 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
28009 * cgraph.h (symtab_node::has_aliases_p): Simplify.
28010 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28011 * tree.c (lookup_binfo_at_offset): Make static.
28012 (get_binfo_at_offset): Do not shadow offset; add explanatory
28015 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
28017 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28018 for all floading point loads and stores except those using a register
28020 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28023 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28025 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28026 (do_estimate_growth_1): Record if any uninlinable edge was seen.
28027 (estimate_growth): Handle uninlinable edges correctly.
28028 (check_callers): New.
28029 (growth_likely_positive): Handle aliases correctly.
28031 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28033 * ipa-chkp.c: Use iterate_direct_aliases.
28034 * symtab.c (resolution_used_from_other_file_p): Move inline.
28035 (symtab_node::create_reference): Fix formating.
28036 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28037 (symtab_node::iterate_reference): Move inline.
28038 (symtab_node::iterate_referring): Move inline.
28039 (symtab_node::iterate_direct_aliases): Move inline.
28040 (symtab_node::used_from_object_file_p_worker): Inline into ...
28041 (symtab_node::used_from_object_file_p): ... this one; move inline.
28042 (symtab_node::call_for_symbol_and_aliases): Move inline;
28043 use iterate_direct_aliases.
28044 (symtab_node::call_for_symbol_and_aliases_1): New method.
28045 (cgraph_node::call_for_symbol_and_aliases): Move inline;
28046 use iterate_direct_aliases.
28047 (cgraph_node::call_for_symbol_and_aliases_1): New method.
28048 (varpool_node::call_for_node_and_aliases): Rename to ...
28049 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28050 use iterate_direct_aliases.
28051 (varpool_node::call_for_symbol_and_aliases_1): New method.
28052 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28053 (ipa_discover_readonly_nonaddressable_var): Update.
28054 * ipa-devirt.c: Fix formating.
28055 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28057 (cgraph_node::call_for_symbol_and_aliases): Move inline.
28058 (cgraph_node::call_for_symbol_and_aliases_1): New function..
28059 * cgraph.h (used_from_object_file_p_worker): Remove.
28060 (resolution_used_from_other_file_p): Move inline.
28061 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28062 (symtab_node::iterate_reference): Move inline.
28063 (symtab_node::iterate_referring): Move inline.
28064 (symtab_node::iterate_direct_aliases): Move inline.
28065 (symtab_node::used_from_object_file_p_worker): Inline into ...
28066 (symtab_node::used_from_object_file_p): Move inline.
28067 * tree-emutls.c (ipa_lower_emutls): Update.
28068 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28069 (varpool_node::call_for_node_and_aliases): Remove.
28071 2015-02-14 Jakub Jelinek <jakub@redhat.com>
28073 PR tree-optimization/62209
28074 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28075 op == range->exp, insert seq and gimplified code after labels
28076 instead of after the phi.
28078 2015-02-13 Jeff Law <law@redhat.com>
28081 Revert my change for tree-optimization/64823.
28083 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28085 PR tree-optimization/65053
28086 * tree-ssa-phiopt.c (value_replacement): When moving assign before
28087 cond, either reset VR on lhs or set it to phi result VR.
28089 2015-02-13 Jeff Law <law@redhat.com>
28091 PR tree-optimization/64823
28092 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28093 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28094 threading through blocks with PHIs, but no statements.
28095 (thread_through_normal_block): Distinguish between blocks where
28096 we did not process all the statements and blocks with no statements.
28098 PR rtl-optimization/47477
28099 * match.pd (convert (plus/minus (convert @0) (convert @1): New
28100 simplifier to narrow arithmetic.
28102 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
28105 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28106 polymorphic call info when type is not known to be preserved.
28108 2015-02-13 Maritn Jambor <mjambor@suse.cz>
28111 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28112 (inline_call): Use it.
28114 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
28116 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28117 GOMP_DEVICE_NVIDIA_PTX.
28119 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28122 * stmt.c (emit_case_nodes): Use void_type_node instead of
28123 NULL_TREE as LABEL_DECL type.
28125 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
28127 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28129 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28130 symbolic references to data to be forced to constant memory on the
28133 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
28135 PR tree-optimization/65002
28136 * tree-cfg.c (pass_data_fixup_cfg): Don't update
28138 * tree-sra.c (some_callers_have_no_vuse_p): New.
28139 (ipa_early_sra): Reject functions whose callers
28140 assume function is read only.
28142 2015-02-13 Richard Biener <rguenther@suse.de>
28145 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28146 for LTO produced CUs.
28148 2015-02-13 Bin Cheng <bin.cheng@arm.com>
28150 PR tree-optimization/64705
28151 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28152 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28153 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28154 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28155 expand_simple_operations.
28157 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
28158 Richard Henderson <rth@redhat.com>
28161 * cgraphunit.c (cgraph_node::finalize_function): Set definition
28162 before notice_global_symbol.
28163 (varpool_node::finalize_decl): Likewise.
28164 * varasm.c (default_binds_local_p_2): Rename from
28165 default_binds_local_p_1, add weak_dominate argument. Use direct
28166 returns instead of assigning to local variable. Unify varpool and
28167 cgraph paths via symtab_node. Reject undef weak variables before
28168 testing visibility. Reorder tests for simplicity.
28169 (default_binds_local_p): Use default_binds_local_p_2.
28170 (default_binds_local_p_1): Likewise.
28171 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28173 (default_elf_asm_output_external): Emit visibility when specified.
28175 2015-02-13 Alan Modra <amodra@gmail.com>
28177 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28178 code setting up r11 for out-of-line fp restore.
28180 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
28182 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28183 (muser-mode): Likewise.
28185 2015-02-13 Alan Modra <amodra@gmail.com>
28187 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28188 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28190 2015-02-12 David Howells <dhowells@redhat.com>
28192 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28194 * tree-ssa-uninit.c (dump_predicates): Likewise.
28195 * opts.c (print_filtered_help): Likewise.
28197 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28199 * dwarf2out.c (output_die): Use "%s", name instead of name to
28200 avoid -Wformat-security warning.
28202 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28203 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28204 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28205 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28207 2015-02-12 Jason Merrill <jason@redhat.com>
28209 * common.opt (-flifetime-dse): New.
28211 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28214 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28216 PR tree-optimization/65014
28217 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28218 use original second operand of arg0 or arg1 instead of
28219 that adjusted by STRIP_NOPS.
28221 2015-02-11 Jeff Law <law@redhat.com>
28224 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28225 that needs to be queued, just queue it for a single cycle.
28227 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
28229 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28230 bodies of thunks; comment on why.
28231 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28232 symbols are extern.
28234 2015-02-11 Richard Henderson <rth@redhat.com>
28237 * tree-eh.c (mark_reachable_handlers): Mark source and destination
28238 regions of __builtin_eh_copy_values.
28240 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28242 PR middle-end/65003
28243 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28244 ultimate alias is MEM with SYMBOL_REF satisfying
28245 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
28246 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28248 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
28250 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28251 "diagnostic-core.h".
28252 (main): Initialize progname, and call diagnostic_initialize.
28254 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28255 instead of __OPENMP_TARGET__.
28257 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28258 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28259 hard-coding PTX_ID.
28261 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
28263 * doc/sourcebuild.texi (pie_enabled): Document.
28265 2015-02-11 Martin Liska <mliska@suse.cz>
28268 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28269 a return value for call to a function that is noreturn.
28271 2015-02-11 Richard Biener <rguenther@suse.de>
28274 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28277 2015-02-11 Andrew Pinski <apinski@cavium.com>
28280 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28281 Change the first argument type to size_type_node and add another
28283 (aarch64_simd_expand_builtin): Handle the new argument to
28284 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28285 print an out when the first two arguments are not
28286 nonzero integer constants.
28287 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28288 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28290 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28293 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28294 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28295 (ix86_set_current_function): Rewritten.
28296 (ix86_add_new_builtins): Temporarily clear current_target_pragma
28297 when creating builtin fndecls.
28299 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28302 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28304 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28305 have no comdat group.
28306 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28307 (lto_output_varpool_node): Always output alias info.
28308 (output_refs): Output refs of boundary aliases, too.
28309 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28310 (output_symtab): Output call eges in thunks in boundary.
28311 (get_alias_symbol): Remove.
28312 (input_node, input_varpool_node): Do not special case weakrefs.
28313 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28314 alias and thunks targets in the boundary; do not take removed symbols
28315 from their comdat groups.
28316 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28317 (cgraph_node::global_info): Remove.
28318 (cgraph_node::rtl_info): Look through aliases and thunks.
28319 * cgrpah.h (global_info): Remove.
28320 (non_local_p): Remove.
28322 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28323 Sandra Loosemore <sandra@codesourcery.com>
28325 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28326 to inline asm. List dialects in proper order.
28328 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28329 Sandra Loosemore <sandra@codesourcery.com>
28331 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28333 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28335 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28336 modified) reference to Solaris.
28338 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
28340 * doc/extend.texi (Extended Asm): Fix typos.
28342 2015-02-10 Jakub Jelinek <jakub@redhat.com>
28345 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28347 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
28350 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28351 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28352 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28353 * config/sh/constraints.md (Ara, Add): New constraints.
28354 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28356 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28357 atomic_mem_operand_0. Don't use force_reg on the memory address.
28358 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28359 Sra constraint. Convert to insn_and_split. Add workaround for
28361 (atomic_compare_and_swap<mode>_hard): Copy to
28362 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
28363 Use atomic_mem_operand_0 predicate.
28364 (atomic_compare_and_swap<mode>_soft_gusa,
28365 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28366 AraAdd constraints.
28367 (atomic_compare_and_swap<mode>_soft_tcb,
28368 atomic_compare_and_swap<mode>_soft_imask,
28369 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28370 atomic_mem_operand_0 predicate and SraSdd constraints.
28371 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28373 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28374 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
28375 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28376 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
28377 force_reg on the memory address.
28378 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28379 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28380 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28381 atomic_mem_operand_1 predicate and Sra constraint.
28382 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28383 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28384 Use atomic_mem_operand_1 predicate.
28385 (atomic_<fetchop_name><mode>_hard): Copy to
28386 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28387 Use atomic_mem_operand_1 predicate.
28388 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28389 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28390 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
28391 insn_and_split. Use atomic_mem_operand_1 predicate.
28392 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28393 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
28394 Use atomic_mem_operand_1 predicate.
28395 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28396 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28397 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28398 in generated insn with original mem operand before emitting the insn.
28399 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28400 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28401 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28402 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28403 Use atomic_mem_operand_1 predicate and AraAdd constraints.
28404 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28405 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28406 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28407 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28408 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28409 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28410 atomic_not_fetch<mode>_soft_tcb,
28411 atomic_<fetchop_name>_fetch<mode>_soft_imask,
28412 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28413 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28414 Use atomic_mem_operand_1 predicate and SraSdd constraints.
28416 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
28418 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28419 and 3 earlyclobber operands.
28421 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28423 * common.opt (fstack-reuse): Mark as optimization.
28425 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28428 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28430 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
28432 PR tree-optimization/64326
28433 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
28435 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
28437 PR gcov-profile/61889
28438 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
28440 2015-02-10 Richard Biener <rguenther@suse.de>
28442 PR tree-optimization/64995
28443 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
28444 value we use is final.
28445 (visit_reference_op_store): Always valueize op.
28446 (visit_use): Properly valueize vuses.
28448 2015-02-10 Richard Biener <rguenther@suse.de>
28450 PR tree-optimization/64909
28451 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
28452 pass a scalar-stmt count estimate to the cost model.
28453 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
28455 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
28457 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
28458 enabled by default together with var-tracking.
28460 2015-02-10 Nick Clifton <nickc@redhat.com>
28462 * config/rl78/rl78.c: Remove DIV attribute code accidentally
28463 included in previous rl78 commit.
28465 2015-02-10 Richard Biener <rguenther@suse.de>
28467 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
28468 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
28469 return the bitpack.
28471 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28473 PR gcov-profile/61889
28474 * config.in: regenerate.
28475 * configure.in: Likewise.
28476 * configure.ac: Check for ftw.h.
28477 * gcov-tool.c: Check for ftw.h before using nftw.
28479 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28482 * ipa-visibility.c (update_visibility_by_resolution_info): Only
28483 assert when not in lto mode.
28485 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28487 * ira-color.c (setup_left_conflict_sizes_p): Simplify
28488 initialization/assignment of conflict_size.
28490 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
28493 * ipa-cp.c (gather_caller_stats): Skip thunks.
28494 (propagate_constants_topo): Skip aliases.
28496 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
28499 * config/sh/sh.c (sh_option_override): Don't change
28500 -freorder-blocks-and-partition to -freorder-blocks even when
28501 unwinding is enabled.
28502 (sh_can_follow_jump): Return false if the followee jump is
28503 a crossing jump when -freorder-blocks-and-partition is specified.
28504 * config/sh/sh.md (*jump_compact_crossing): New insn.
28506 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
28507 Kaz Kojima <kkojima@gcc.gnu.org>
28510 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
28511 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
28512 (sh_can_redirect_branch): Rename to ...
28513 (sh_can_follow_jump): ... this. Constify argument types.
28514 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
28515 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
28516 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
28517 * doc/tm.texi: Regenerate.
28519 2015-02-09 Jakub Jelinek <jakub@redhat.com>
28522 * builtins.c (expand_builtin): Call targetm.expand_builtin
28523 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
28525 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28528 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
28530 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28533 * ipa-icf.c (set_local): New function.
28534 (sem_function::merge): Use it.
28536 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28538 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
28539 (add_type_duplicate): Fix comparison of BINFOs.
28541 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28543 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
28544 on getting VOID pointer.
28546 2015-02-09 Jakub Jelinek <jakub@redhat.com>
28549 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
28552 2015-02-09 Richard Biener <rguenther@suse.de>
28554 * genmatch.c (replace_id): Copy expr_type.
28556 2015-02-09 Richard Biener <rguenther@suse.de>
28558 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
28559 (streamer_write_tree_bitfields): Declare.
28560 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
28561 properly unpack padding.
28562 (unpack_value_fields): Inline ...
28563 (streamer_read_tree_bitfields): ... here.
28564 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
28565 and properly add padding bits.
28566 (streamer_pack_tree_bitfields): Fold into ...
28567 (streamer_write_tree_bitfields): ... this new function,
28568 exposing the bitpack object.
28569 * lto-streamer-out.c (lto_write_tree_1): Call
28570 streamer_write_tree_bitfields.
28572 2015-02-09 Richard Biener <rguenther@suse.de>
28574 PR tree-optimization/54000
28575 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
28576 (struct ivopts_data): Add loop_loc member.
28577 (tree_ssa_iv_optimize_loop): Dump loop location.
28578 (create_new_ivs): Likewise, also dump number of IVs generated.
28580 2015-02-09 Martin Liska <mliska@suse.cz>
28582 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
28583 just if not yet registered.
28584 (ipa_icf_generate_summary): Register callgraph hooks.
28586 2015-02-08 Andrew Pinski <apinski@cavium.com>
28588 * config/aarch64/aarch64.c (gty_dummy): Delete.
28590 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28593 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
28594 (cgraph_node::local_p): Remove thunk related FIXME.
28596 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28599 * i386.c (ix86_function_regparm): Look through aliases to see if callee
28600 is local and optimized.
28601 (ix86_function_sseregparm): Likewise; also use target's SSE math
28602 settings; error out instead of silently generating wrong code
28604 (init_cumulative_args): Look through aliases.
28606 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28609 * ipa-split.c (execute_split_functions): Split if function has aliases.
28611 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28614 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
28615 aliases before trying to expand it.
28616 (cgraph_node::expand_thunk): Fix formating.
28618 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
28620 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
28621 (Using Assembly Language with C): Expand introduction.
28622 (Basic Asm): Copy-edit. Add more information about uses of
28624 (Extended Asm): Copy-edit. Document new escape syntax and
28626 (Global Reg Vars): Copy-edit.
28627 (Local Reg Vars): Likewise.
28629 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
28633 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
28634 (DBX_CONTIN_CHAR): Define.
28636 2015-02-06 Sebastian Pop <s.pop@samsung.com>
28637 Brian Rzycki <b.rzycki@samsung.com>
28639 PR tree-optimization/64878
28640 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
28641 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
28642 Stop recursion at loop phi nodes after having visited a loop phi node.
28644 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28646 * toplev.c (process_options): Change flag_ipa_ra before creating
28647 optimization_{default,current}_node.
28650 * cgraphunit.c (cgraph_node::expand_thunk): If
28651 restype is not is_gimple_reg_type nor the thunk_fndecl
28652 returns aggregate_value_p, set restmp to a temporary variable
28653 instead of resdecl.
28655 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
28657 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
28659 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28662 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
28663 add a general secondary reload handler for SDmode, unless we have
28664 both read/write support for SDmode.
28666 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28668 PR middle-end/64937
28669 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
28670 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
28671 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
28672 1 before, push it to abstract_vec.
28673 (dwarf2out_abstract_function): Adjust caller. Don't call
28674 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
28675 DECL_ABSTRACT_P flags for all abstract_vec elts.
28677 2015-02-06 Renlin Li <renlin.li@arm.com>
28679 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
28681 * tree-ssa.c (execute_update_addresses_taken): Likewise.
28683 2015-02-06 Jeff Law <law@redhat.com>
28686 * config/h8300/h8300.c (push): New argument "in_prologue".
28687 Pass "in_prologue" along to "F".
28688 (h8300_push_pop): Corresponding changes.
28689 (h8300_expand_prologue): Likewise.
28690 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
28692 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28694 PR rtl-optimization/64957
28696 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
28697 IOR rather than for AND.
28699 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
28702 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
28703 of shift-add and (add + shift) operations. Rename local variable.
28705 2015-02-05 Jeff Law <law@redhat.com>
28708 * config/h8300/constraints.md (U): Correctly dectect
28709 "eightbit_data" memory addresses.
28710 * config/h8300/h8300.c (eightbit_constant_address_p): Also
28711 handle (const (plus (symbol_ref (x)))) where x is declared
28712 as an 8-bit data memory address.
28713 * config/h8300/h8300.md (call, call_value): Correctly detect
28714 "funcvec" functions.
28717 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
28718 24 to 28 bits for the H8/300.
28720 2015-02-06 Alan Modra <amodra@gmail.com>
28723 * config/rs6000/rs6000.c (chain_already_loaded): New function.
28724 (rs6000_call_aix): Use it.
28726 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
28728 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
28731 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
28733 * config/h8300/constraints.md ("U" constraint): Use strict
28734 variant of REG_OK_FOR_BASE_P after reload has started.
28736 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
28738 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
28739 define to zero if !TARGET_NEON.
28740 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
28742 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28743 Trevor Saunders <tsaunders@mozilla.com>
28746 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
28748 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28751 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
28752 when removing varpool nodes.
28754 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28757 * varpool.c (varpool_node::remove): Fix order of variables.
28759 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28762 * ipa-inline.c (inline_small_functions): Fix ordering issue between
28763 speculation resolution and key updates.
28765 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28767 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
28768 about not letting any speculative edges unupdated.
28770 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28773 * gcov-io.c (gcov_var): Export.
28775 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28777 PR middle-end/64922
28778 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
28779 edges that become speculative.
28781 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28783 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
28784 or DW_LANG_Fortran08.
28785 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
28787 (gen_compile_unit_die): Handle "GNU Fortran2003" and
28788 "GNU Fortran2008" language strings.
28789 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
28790 * langhooks.h (lang_GNU_Fortran): New prototype.
28791 * langhooks.c (lang_GNU_Fortran): New function.
28792 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
28795 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28797 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
28798 (RTX_OK_FOR_OLO10_P): Likewise.
28800 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28802 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
28804 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28806 PR middle-end/64922
28807 * gimple.c: Include gimple-ssa.h.
28808 (maybe_remove_unused_call_args): New function.
28809 * gimple.h (maybe_remove_unused_call_args): Declare.
28810 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
28811 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
28812 * gimple-fold.c (gimple_fold_call): Likewise.
28814 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
28816 PR rtl-optimization/64905
28817 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
28818 pointer alignment if it isn't needed.
28820 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
28822 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
28823 cortex-a72.cortex-a53.
28824 * config/aarch64/aarch64-tune.md: Regenerate.
28825 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
28827 2015-02-04 Nick Clifton <nickc@redhat.com>
28829 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
28832 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28834 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
28835 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
28836 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
28838 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
28839 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
28840 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
28841 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
28842 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
28843 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
28844 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
28845 * tree-core.h (enum built_in_function): In between
28846 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
28847 for builtins that use DEF_BUILTIN_CHKP macro.
28849 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
28852 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
28853 operands for tcc_comparison exprs. Fix typos.
28856 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
28857 of two XORs that have an intervening AND or IOR.
28860 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
28861 simplification of XOR of AND to not allocate new rtx before
28862 committing to a simplification.
28864 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28866 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
28867 manual swaps in all peepholes.
28869 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28871 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
28872 of manual swapping implementation.
28873 (aarch64_expand_vec_perm_const_1): Likewise.
28875 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
28877 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
28878 (generic_addrcost_table): Remove NAMED_PARAM.
28879 (cortexa57_addrcost_table): Likewise.
28880 (xgene1_addrcost_table): Likewise.
28881 (generic_regmove_table): Likewise.
28882 (cortexa53_regmove_table): Likewise.
28883 (xgene1_regmove_table): Likewise.
28884 (generic_vector_table): Likewise.
28885 (cortexa57_vector_table): Likewise.
28886 (xgene1_vector_table): Likewise.
28887 (generic_tunings): Likewise.
28888 (cortexa53_tunings): Likewise.
28889 (cortexa57_tunings): Likewise.
28890 (xgene1_tunings): Likewise.
28892 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
28894 * config/arm/arm-cores.def: Add cortex-a72 and
28895 cortex-a72.cortex-a53.
28896 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
28897 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
28898 * config/arm/arm-tune.md: Regenerate.
28899 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
28900 "cortex-a72.cortex-a53".
28901 * doc/invoke.texi (ARM Options/-mtune): Likewise.
28903 2015-02-04 Nick Clifton <nickc@redhat.com>
28906 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
28908 (nonimmediate_di_operand): Likewise.
28910 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
28911 prefixes of known F5 using MSP430 MCUs.
28913 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28915 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
28916 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
28917 instead of __builtin_sqrt.
28919 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
28921 * varasm.c (do_assemble_alias): Follow transparent alias
28923 (default_assemble_visibility): Follow transparent alias
28924 chain for decl name.
28926 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
28928 PR middle-end/62103
28929 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
28930 to compute size of referenced value in the constant case.
28932 2015-02-03 Jakub Jelinek <jakub@redhat.com>
28934 PR rtl-optimization/64756
28935 * cse.c (invalidate_dest): New function.
28936 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
28937 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
28938 invalidate and do not record it.
28940 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
28943 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
28944 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
28945 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
28946 atomic_nand<mode>_soft_tcb): New insns.
28947 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
28948 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
28949 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
28950 Split into atomic_not_fetchsi_hard if operands[0] is unused.
28951 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
28952 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28953 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
28954 atomic_not<mode>_hard if operands[0] is unused.
28955 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
28956 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
28957 if operands[0] is unused.
28958 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
28959 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
28960 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
28961 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28963 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
28964 into atomic_not<mode>_soft_tcb if operands[0] is unused.
28965 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
28966 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
28967 if operands[0] is unused.
28968 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
28969 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
28970 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
28971 atomic_nand_fetchsi_hard if operands[0] is unused.
28972 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
28973 atomic_nand<mode>_hard if operands[0] is unused.
28974 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
28975 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
28976 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
28977 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28978 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
28979 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
28980 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
28981 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28982 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
28983 atomic_not<mode>_hard if operands[0] is unused.
28984 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
28985 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28987 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
28988 into atomic_not<mode>_soft_tcb if operands[0] is unused.
28989 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
28990 atomic_nand<mode>_hard if operands[0] is unused.
28991 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
28992 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28994 2015-02-03 David Malcolm <dmalcolm@redhat.com>
28997 * Makefile.in (GCC_OBJS): Add gcc-main.o.
28998 * gcc-main.c: New file, containing "main" taken from gcc.c.
28999 * gcc.c (do_self_spec): Free decoded_options.
29000 (class driver): Move declaration to gcc.h.
29001 (main): Move declaration and implementation to new file
29003 (driver_get_configure_time_options): New function.
29004 * gcc.h (class driver): Move this declaration here, from
29006 (driver_get_configure_time_options): New declaration.
29008 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
29010 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29011 cross-module inlining.
29012 * cgraph.h (cgraph_node): Add flag merged.
29013 * ipa-icf.c (sem_function::merge): Maintain it.
29015 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
29017 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29018 instead of OBJECT_P.
29020 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
29023 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29024 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29025 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29026 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29028 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29031 * combine.c (reg_n_sets_max): New variable.
29032 (can_change_dest_mode, reg_nonzero_bits_for_combine,
29033 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29034 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29035 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29036 (rest_of_handle_combine): Initialize reg_n_sets_max.
29038 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
29040 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29041 if some always_inline was inlined, apply changes before inlining
29044 2015-02-02 David Malcolm <dmalcolm@redhat.com>
29047 * config/arm/arm.c (arm_option_override): Set
29048 arm_selected_arch/cpu/tune to NULL on entry.
29050 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
29051 Andrew Pinski <pinskia@gcc.gnu.org>
29052 Jakub Jelinek <jakub@gcc.gnu.org>
29055 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29056 integer typing for small model. Use IN_RANGE.
29058 2015-02-02 Richard Biener <rguenther@suse.de>
29060 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29061 * tree-vrp.c (vrp_valueize_1): Likewise.
29063 2015-02-02 Alan Modra <amodra@gmail.com>
29065 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29066 than mem for toc_restore.
29067 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29068 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29069 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29071 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
29074 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29075 explicit default options.
29077 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
29080 * ipa-utils.c (ipa_merge_profiles): Add release argument.
29081 * ipa-icf.c (sem_function::merge): Do not release body when merging.
29082 * ipa-utils.h (ipa_merge_profiles): Update prototype.
29084 2015-02-01 Jakub Jelinek <jakub@redhat.com>
29087 * cfgexpand.c (deep_ter_debug_map): New variable.
29088 (avoid_deep_ter_for_debug): New function.
29089 (expand_debug_expr): If TERed SSA_NAME is in
29090 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29091 instead of trying to expand SSA_NAME's def stmt.
29092 (expand_debug_locations): When expanding debug bind
29093 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29094 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29096 (pass_expand::execute): Call avoid_deep_ter_for_debug on
29097 all debug bind stmts. Delete deep_ter_debug_map after
29098 expand_debug_location if non-NULL and clear it.
29100 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
29103 * config/sh/sync.md (atomic_fetch_notsi_hard,
29104 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29105 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29106 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29107 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29108 atomic_not_fetch<mode>_soft_imask): New insns.
29110 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29112 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29113 (rank_for_schedule_debug): Split from ...
29114 (rank_for_schedule): ... this.
29115 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29116 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29118 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29120 * doc/md.texi (Machine Constraints): Alphabetize table by target.
29121 * doc/extend.texi (x86 Variable Attributes): Move section to
29122 correct alphabetization after renaming.
29123 (x86 Type Attributes): Likewise.
29124 (Target Builtins): Re-alphabetize menu.
29125 (x86 Built-in Functions): Move section to correct alphabetization
29127 (x86 transactional memory intrinsics): Likewise.
29128 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29129 and x86 Windows Options in table and menu.
29130 (x86 Options): Move section to correct alphabetization after
29132 (x86 Windows Options): Likewise.
29134 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29136 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29137 preferred names of the architecture and its 32- and 64-bit
29139 * doc/invoke.texi: Likewise.
29140 * doc/md.texi: Likewise.
29142 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29145 * config/i386/predicates.md (address_no_seg_operand): Reject
29146 non-CONST_INT_P operands in invalid mode.
29148 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29150 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29151 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
29152 * config/i386/predicates.md (address_no_seg_operand): Call
29153 address_operand with VOIDmode.
29154 (vsib_address_operand): Ditto.
29155 (address_mpx_no_base_operand): Ditto.
29156 (address_mpx_no_index_operand): Ditto.
29158 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29161 * lra-constraints.c (original_subreg_reg_mode): New.
29162 (simplify_operand_subreg): Try to simplify subreg of const. Use
29163 original_subreg_reg_mode for it.
29164 (swap_operands): Update original_subreg_reg_mode.
29165 (curr_insn_transform): Set up original_subreg_reg_mode.
29167 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29170 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29172 (process_alt_operands): Use it.
29173 (curr_insn_transform): Check the optional reload pseudo class is
29176 2015-01-30 Joseph Myers <joseph@codesourcery.com>
29178 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29179 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29181 * toplev.h (init_asm_output): Update comment on use of
29182 UNKNOWN_LOCATION with fatal_error.
29183 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29184 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29185 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29186 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29187 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29188 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29189 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29190 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29191 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29192 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29193 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29194 fatal_error changed to pass input_location as first argument.
29196 2015-01-30 Martin Liska <mliska@suse.cz>
29198 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29199 in #pragma GCC diagnostic guards.
29201 2015-01-30 Richard Biener <rguenther@suse.de>
29203 PR tree-optimization/64829
29204 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29205 not add a widening conversion pattern but hand off extra
29206 widenings to callers.
29207 (vect_recog_widen_mult_pattern): Handle extra widening produced
29208 by vect_handle_widen_op_by_const.
29209 (vect_recog_widen_shift_pattern): Likewise.
29210 (vect_pattern_recog_1): Remove excess vertical space in dumping.
29211 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29212 (vect_init_vector_1): Likewise.
29213 (vect_get_vec_def_for_operand): Likewise.
29214 (vect_finish_stmt_generation): Likewise.
29215 (vectorizable_load): Likewise.
29216 (vect_analyze_stmt): Likewise.
29217 (vect_is_simple_use): Likewise.
29219 2015-01-29 Jeff Law <law@redhat.com>
29221 * combine.c (try_combine): Fix typo in comment.
29223 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
29226 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29227 (rs6000_stack_info): Add assert.
29228 (rs6000_output_savres_externs): New function, split off from...
29229 (rs6000_output_function_prologue): ... here. Do not call it for
29232 2015-01-29 Jeff Law <law@redhat.com>
29235 * combine.c (try_combine): If I0 is a memory load and I3 a store
29236 to a related address, increase the "goodness" of doing a 4-insn
29237 combination with I0-I3.
29238 (make_field_assignment): Handle SUBREGs in the ior+and case.
29240 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
29242 PR tree-optimization/64746
29243 * tree-if-conv.c (mask_exists): New function.
29244 (predicate_mem_writes): Save created mask with given size for further
29246 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29247 (ifcvt_repair_bool_pattern): Collect all statements that are root
29248 of bool pattern and use iterative algorithm to remove multiple uses
29249 of predicates, display number of required iterations.
29251 2015-01-29 Richard Biener <rguenther@suse.de>
29253 PR tree-optimization/64853
29254 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29255 stmt will get simulated again.
29256 * tree-ssa-ccp.c (valueize_op_1): Likewise.
29258 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29260 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29261 return_in_pc. Remove redundant assignments.
29262 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29263 (arm_expand_epilogue): Don't compare boolean with true in if condition.
29265 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
29267 * config/i386/i386.c (ix86_mode_after): Make static.
29269 2015-01-29 Richard Biener <rguenther@suse.de>
29271 PR tree-optimization/64844
29272 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29273 dump cost model analysis.
29274 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29275 Do not register adjusted load/store costs here.
29277 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29278 Uros Bizjak <ubizjak@gmail.com>
29280 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29281 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29282 using x86_use_pseudo_pic_reg.
29283 * config/i386/i386.c (ix86_conditional_register_usage): Remove
29284 support for fixed PIC register.
29285 (ix86_use_pseudo_pic_reg): Not static any more.
29287 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29289 PR middle-end/64805
29290 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29291 to avoid error in cgraph node verification.
29293 2015-01-29 Marek Polacek <polacek@redhat.com>
29295 * doc/standards.texi: Reflect that the default for C is gnu11.
29297 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
29300 * reorg.c (switch_text_sections_between_p): New function.
29301 (relax_delay_slots): Call it when testing if the jump insn
29302 is removable. Use targetm.can_follow_jump when testing if
29303 the conditional branch can follow an unconditional jump.
29305 2015-01-27 Caroline Tice <cmtice@google.com>
29307 Committing VTV Cywin/Ming patch for Patrick Wollgast
29308 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29309 if -fvtable-verify=preinit/std is used.
29310 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29311 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29312 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29313 if -fvtable-verify=preinit/std is used.
29314 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29315 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29316 if -fvtable-verify=preinit/std is used.
29317 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29318 * config/i386/mingw32.h (LIB_SPEC): Likewise.
29319 * varasm.c (assemble_variable): Add code to properly set the comdat
29320 section and name for the .vtable_map_vars section in case the
29321 target is PE or COFF.
29323 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29326 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29327 make sane BB profile.
29328 (cgraph_node::expand_thunk): Make sane BB profile.
29329 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29330 * cgraph.h (init_lowered_empty_function): Update prototype.
29331 * config/i386/i386.c (make_resolver_func): Update call.
29332 * predict.c (gate): Disable branch prediction pass if
29333 profile is already there.
29335 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29337 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29338 * opth-gen.awk: Likewise.
29339 * common.opt: Mark flag_fp_contract_mode as Optimization.
29341 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
29343 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29344 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29346 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
29349 * config/sh/predicates.md (atomic_arith_operand,
29350 atomic_logical_operand): Remove.
29351 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29352 (atomic_arith_operand_0): New predicate.
29353 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29354 Use atomic_arith_operand_0 for input values.
29355 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29356 atomic_compare_and_swap<mode>_soft_gusa,
29357 atomic_compare_and_swap<mode>_soft_tcb,
29358 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29359 arith_reg_operand instead of register_operand.
29360 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
29361 atomic_arith_operand_0 for newval input.
29362 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29363 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29364 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29365 arith_reg_operand instead of register_operand.
29366 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29367 fetchop_predicate_1, fetchop_constraint_1_llcs,
29368 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29369 fetchop_constraint_1_imask): New code iterator attributes.
29370 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29371 register_operand. Use fetchop_predicate_1.
29372 (atomic_fetch_<fetchop_name>si_hard,
29373 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29374 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29375 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29376 and arith_reg_operand instead of register_operand. Use
29377 fetchop_predicate_1, fetchop_constraint_1_gusa.
29378 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29379 and arith_reg_operand instead of register_operand. Use
29380 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
29382 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29383 and arith_reg_operand instead of register_operand. Use
29384 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
29386 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29387 register_operand. Use atomic_logical_operand_1.
29388 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29389 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29390 arith_reg_operand instead of register_operand.
29391 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29392 Use arith_reg_dest and arith_reg_operand instead of register_operand.
29393 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
29394 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29395 register_operand. Use fetchop_predicate_1.
29396 (atomic_<fetchop_name>_fetchsi_hard,
29397 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29398 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29399 fetchop_constraint_1_llcs.
29400 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29401 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29402 fetchop_constraint_1_gusa.
29403 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29404 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29405 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
29406 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29407 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29408 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
29409 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29410 register_operand. Use atomic_logical_operand_1.
29411 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29412 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29413 arith_reg_operand instead of register_operand.
29414 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29415 arith_reg_operand instead of register_operand. Use logical_operand
29416 and K08. Adjust asm sequence to allow R0 usage.
29417 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29418 arith_reg_operand instead of register_operand. Use logical_operand
29421 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29424 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29425 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29426 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29427 only get_full_len HOST_WIDE_INTs from get_val () array rather than
29428 all bits in *val_wide.
29430 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
29432 * varpool.c (tls_model_names): Fix names.
29433 (varpool_node::dump): Dump tls- prefix for tls models.
29435 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
29436 Bernd Schmidt <bernds@codesourcery.com>
29437 Nathan Sidwell <nathan@codesourcery.com>
29439 * config/nvptx/mkoffload.c: New file.
29440 * config/nvptx/t-nvptx: Add build rules for it.
29441 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
29442 (extra_programs): Add mkoffload.
29443 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
29445 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
29447 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
29449 PR middle-end/64809
29450 * cfgexpand.c (reorder_operands): Skip debug gimples.
29452 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
29454 PR tree-optimization/64277
29455 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
29456 range info when possible to refine estimation.
29458 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29460 PR tree-optimization/64718
29461 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
29462 be a 16bit unsigned integer when n->range is 16.
29463 (bswap_replace): Convert src to that type if necessary for all bswap
29464 sizes. Fix rotation right notation in nearby comment. Use bswap_type
29465 set in pass_optimize_bswap::execute ().
29467 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
29469 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
29470 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
29471 integer and floating point variants.
29472 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
29474 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
29476 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
29477 for all vector modes.
29479 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29482 * doc/sourcebuild.texi (comdat_group): Document.
29484 2015-01-28 Terry Guo <terry.guo@arm.com>
29486 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
29488 2015-01-27 David Malcolm <dmalcolm@redhat.com>
29490 * toplev.c (print_version): Add param "show_global_state", and
29491 only print GGC and plugin information if it is true.
29492 (init_asm_output): Pass in "true" for the new param when calling
29494 (process_options): Likewise.
29495 (toplev::main): Likewise.
29496 * toplev.h (print_version): Add new param to decl.
29498 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29502 * tree.c (lookup_binfo_at_offset): New function.
29503 (get_binfo_at_offset): Use it.
29505 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29508 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
29509 on vtable being vtable.
29511 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
29513 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
29514 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
29515 -mhotpatch= option.
29516 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
29517 -mno-hotpatch options. Change syntax of -mhotpatch= option.
29518 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
29520 (s390_hotpatch_trampoline_halfwords_max): Renamed.
29521 (s390_hotpatch_hw_max): New name.
29522 (s390_hotpatch_trampoline_halfwords): Renamed.
29523 (s390_hotpatch_hw_before_label): New name.
29524 (get_hotpatch_attribute): Removed.
29525 (s390_hotpatch_hw_after_label): New name.
29526 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
29528 (s390_attribute_table): Ditto.
29529 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
29530 (s390_function_num_hotpatch_hw): New name.
29531 Remove special handling of inline functions and hotpatching.
29532 Return number of nops before and after the function label.
29533 (s390_can_inline_p): Removed.
29534 (s390_asm_output_function_label): Emit a configurable number of nops
29535 after the function label.
29536 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
29537 (TARGET_CAN_INLINE_P) Removed.
29538 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
29540 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29541 Jiong Wang <jiong.wang@arm.com>
29543 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
29545 (cb<optab><mode>1): Likewise.
29546 * config/aarch64/iterators.md (bcond): New define_code_attr.
29548 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29550 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
29553 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29555 * config/s390/s390.c (s390_register_move_cost): Increase costs for
29558 2015-01-27 Richard Biener <rguenther@suse.de>
29560 * tree-vrp.c (update_value_range): Intersect the range with
29561 old recorded SSA name range information.
29563 2015-01-27 Nick Clifton <nickc@redhat.com>
29565 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
29566 BC, DE and HL registers directly, not via AX.
29567 When decrementing the stack pointer by a large amount, transfer SP
29568 into AX and perform the subtraction there.
29569 (rl78_expand_epilogue): Perform the inverse of the above
29572 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29574 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
29576 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29577 Yury Gribov <y.gribov@samsung.com>
29580 * ubsan.c (ubsan_source_location): Refactor code.
29581 (ubsan_type_descriptor): Update type size. Refactor code.
29583 2015-01-27 Richard Biener <rguenther@suse.de>
29585 PR tree-optimization/56273
29586 PR tree-optimization/59124
29587 PR tree-optimization/64277
29588 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
29589 from the first VRP pass.
29591 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29594 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
29595 handle the first argument in the same loop as all the other arguments.
29597 PR rtl-optimization/61058
29598 * jump.c (cleanup_barriers): Update basic block boundaries
29599 if BLOCK_FOR_INSN is non-NULL on PREV.
29601 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
29603 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
29604 bounds narrowing, already instrumented calls and calls to
29605 not instrumentable functions.
29607 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29609 PR tree-optimization/64807
29610 * wide-int.cc (wi::divmod_internal): Clear
29611 b_dividend[dividend_blocks_needed].
29613 2015-01-26 DJ Delorie <dj@redhat.com>
29615 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
29616 volatile memory references.
29618 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
29621 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
29623 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
29624 shifts if it already fits into K08.
29626 2015-01-26 Jakub Jelinek <jakub@redhat.com>
29629 * ipa-inline.c (inline_small_functions): Print "unknown" even
29630 if edge->call_stmt is non-NULL, but has builtins or unknown
29633 PR middle-end/64421
29634 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
29635 with asterisk, skip the first character.
29637 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
29640 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
29643 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
29646 * config/i386/i386.md (*movdi_internal): Also check operand 0
29647 to determine TYPE_LEA operand.
29648 (*movsi_internal): Ditto.
29650 2015-01-26 Jakub Jelinek <jakub@redhat.com>
29652 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
29653 OPTION_MASK_QUAD_MEMORY_ATOMIC.
29655 2015-01-26 Renlin Li <renlin.li@arm.com>
29657 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
29659 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
29662 2015-01-26 Richard Biener <rguenther@suse.de>
29664 PR middle-end/64764
29665 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
29666 combining two BIT_AND_EXPR predicates.
29668 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
29671 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
29673 2015-01-26 Terry Guo <terry.guo@arm.com>
29675 * config/arm/arm.c (arm_file_start): Update the assignment of
29676 Tag_ABI_HardFP_use.
29678 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
29680 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
29682 config/arm/arm.md: Include the new Cortex-A57 model.
29683 (generic_sched): Don't use generic_sched when tuning for
29686 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
29687 Uros Bizjak <ubizjak@gmail.com>
29689 * config/i386/i386.c (get_builtin_code_for_version): Add
29690 support for BMI and BMI2 multiversion functions.
29692 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29694 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
29695 (extract_bit_field): Likewise.
29696 (extract_low_bits): Likewise.
29697 (expand_mult): Likewise.
29698 (expand_mult_highpart_adjust): Likewise.
29700 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
29702 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
29703 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
29704 * config/i386/i386.c (processor_model): Add
29705 M_INTEL_COREI7_BROADWELL.
29706 (arch_names_table): Add "broadwell".
29708 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
29717 * config/sh/sh-protos.h
29718 (sh_extending_set_of_reg::can_use_as_unextended_reg,
29719 sh_extending_set_of_reg::use_as_unextended_reg,
29720 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
29721 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
29722 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
29723 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
29724 (sh_treg_insns): New class.
29725 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
29726 (scope_counter): New class.
29727 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
29728 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
29729 sh_extending_set_of_reg::can_use_as_unextended_reg,
29730 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
29731 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
29732 sh_split_treg_set_expr): New functions.
29733 (addsubcosts): Handle treg_set_expr.
29734 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
29735 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
29736 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
29737 (sh_insn_operands_modified_between_p): Make non-static.
29738 * config/sh/predicates.md (zero_extend_movu_operand): Allow
29739 simple_mem_operand in addition to displacement_mem_operand.
29740 (zero_extend_operand): Don't allow zero_extend_movu_operand.
29741 (treg_set_expr, treg_set_expr_not_const01,
29742 arith_reg_or_treg_set_expr): New predicates.
29743 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
29744 arith_or_int_operand instead of logical_operand. Convert to
29745 insn_and_split. Try to optimize constant operand in splitter.
29746 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
29747 (*tstqi_t_zero): Delete.
29748 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
29749 (tstsi_t_and_not): Delete.
29750 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
29751 Convert to insn_and_split.
29752 (unnamed split, tstsi_t_zero_extract_xor,
29753 tstsi_t_zero_extract_subreg_xor_little,
29754 tstsi_t_zero_extract_subreg_xor_big): Delete.
29755 (*tstsi_t_shift_mask): New insn_and_split.
29756 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
29757 to recombine with surrounding insns when splitting.
29758 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
29759 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
29760 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
29761 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
29762 (*cbranch_div0s: Delete.
29763 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29764 Try to recombine with surrounding insns when splitting. Add operand
29766 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
29767 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
29768 *addc_r_r_msb, *addc_2r_msb): Delete.
29769 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
29771 (*addc_negreg_t): New insn_and_split.
29772 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29773 Try to recombine with surrounding insns when splitting.
29774 Add operand order variants.
29775 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
29776 insn_and_split patterns.
29777 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
29778 surrounding insns when splitting.
29779 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
29780 (*rotcl): Likewise. Add zero_extract variant.
29781 (*ashrsi2_31): New insn_and_split.
29782 (*negc): Convert to insn_and_split. Use treg_set_expr.
29783 (*zero_extend<mode>si2_disp_mem): Update comment.
29784 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
29786 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
29787 with surrounding insns when splitting.
29788 (any_treg_expr_to_reg): New insn_and_split.
29789 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
29790 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
29791 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
29792 *zero_extract_2): New single bit zero extract patterns.
29793 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
29794 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
29795 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
29796 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
29798 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
29799 register_operand for set source.
29801 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
29803 * i386.opt (prefetch_sse): New targetsave.
29804 * i386.c (ix86_function_specific_save): Save prefetch_sse.
29805 (ix86_function_specific_restore): Restore prefetch_sse and initialize
29806 ix86_cost/ix86_tune_cost.
29808 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29810 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
29811 Support the JIT by using 0 as the language type.
29813 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
29816 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
29817 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
29818 (mark_regno_live, process_bb_lives): Pass new parameter value to
29819 make_hard_regno_born.
29821 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29823 PR rtl-optimization/63637
29824 PR rtl-optimization/60663
29825 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
29826 if elt->cost is MAX_COST for ASM_OPERANDS.
29827 (find_sets_in_insn): Fix up comment typo.
29828 (cse_insn): Don't set src_volatile for all non-volatile
29829 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
29830 or with "memory" clobber. Set elt->cost to MAX_COST
29831 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
29832 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
29834 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
29836 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
29839 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
29841 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
29842 libgcc/config/i386/elf-lib.h.
29844 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29847 * gcc.c (print_configuration): Don't print a blank line at the end
29849 (run_attempt): ... but here unstead.
29851 PR middle-end/64734
29852 * omp-low.c (scan_sharing_clauses): Don't ignore
29853 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
29854 on target data/update constructs.
29856 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
29859 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
29860 (DEBUG_RELOAD): Removed define.
29861 (m32c_limit_reload_class): Enable traces with if DEBUG0.
29862 (m32c_function_arg): Added a type cast.
29863 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
29864 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
29865 * config/m32c/bitops.md (andqi3_16): Likewise.
29866 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
29867 (push_a01_l): Likewise.
29869 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29872 * main.c (main): Construct toplev instances with init_signals=true.
29873 * toplev.c (general_init): Add param "init_signals", and use it to
29874 conditionalize the calls to signal and host_hooks.extra_signals.
29875 (toplev::toplev): Add param "init_signals".
29876 (toplev::main): When invoking general_init, pass m_init_signals
29877 to control whether signal-handlers are installed.
29878 * toplev.h (toplev::toplev): Add param "init_signals".
29879 (toplev::m_init_signals): New field.
29881 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29884 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
29885 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
29886 latter may be affected by the former (e.g. on i686).
29888 2015-01-23 Martin Liska <mliska@suse.cz>
29890 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
29891 false positive during profiledbootstrap.
29893 2015-01-23 Tom de Vries <tom@codesourcery.com>
29896 * lto-opts.c (lto_write_options): Output non-explicit conservative
29898 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
29899 (append_compiler_options): Pass -fopenacc through.
29901 2015-01-23 Tom de Vries <tom@codesourcery.com>
29904 * lto-opts.c (lto_write_options): Output non-explicit conservative
29906 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
29907 (append_compiler_options): Pass -fopenmp through.
29909 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29912 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
29915 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
29916 * diagnostic.def (DK_ICE_NOBT): New kind.
29917 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
29918 like DK_ICE, but never print backtrace.
29919 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
29920 (internal_error_no_backtrace): New function.
29921 * gcc.c (execute): Use internal_error_no_backtrace instead of
29924 2015-01-22 Jeff Law <law@redhat.com>
29927 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
29928 improve code density for small immediate to memory case.
29929 (insv): Better handle bitfield assignments when the field is
29930 being set to all ones.
29931 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
29934 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29935 Jakub Jelinek <jakub@redhat.com>
29937 PR middle-end/64729
29938 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
29939 for !TARGET_LIBC_PROVIDES_SSP version and
29940 -fstack-protector-{all,strong,explicit} otherwise.
29941 * config/freebsd.h (LINK_SSP_SPEC): Handle
29942 -fstack-protector-{strong,explicit}.
29944 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
29945 H.J. Lu <hongjiu.lu@intel.com>
29948 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
29951 2015-01-22 Wei Mi <wmi@google.com>
29953 PR rtl-optimization/64557
29954 * dse.c (record_store): Call get_addr for mem_addr.
29955 (check_mem_read_rtx): Likewise.
29957 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
29959 * fold-const.c (const_binop): Add early return for non-tcc_binary.
29961 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
29963 * toplev.c (init_local_tick): Process the failure when read
29964 fails for random_seed.
29966 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
29967 'pretty_name' to avoid memory overflow.
29969 2015-01-22 Richard Biener <rguenther@suse.de>
29971 PR middle-end/64728
29972 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
29973 abnormal coalescing on undefined SSA names.
29975 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
29979 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
29981 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
29983 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
29985 PR middle-end/63325
29986 * fold-const.c (fold_checksum_tree): Don't include value of
29987 expr->decl_with_vis.symtab_node in the checksum.
29989 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29991 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
29993 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
29996 * gcc.c (insert_comments): New function.
29997 (try_generate_repro): Call it.
29998 (append_text): Removed.
30000 2015-01-22 Richard Biener <rguenther@suse.de>
30002 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30003 with IL incompatible options. Properly honor user optimize
30006 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
30008 PR rtl-optimization/64682
30009 * combine.c (distribute_notes): When moving a death note for
30010 a register that is set in the new I2, make sure to put it
30011 before that new I2.
30013 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
30015 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30016 not TARGET_DEFAULT.
30018 2015-01-21 Jakub Jelinek <jakub@redhat.com>
30021 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30022 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30023 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30026 * doc/invoke.texi (-fsanitize=vptr): Document.
30028 PR rtl-optimization/62078
30029 * dse.c: Include cfgcleanup.h.
30030 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30031 anything call purge_all_dead_edges and cleanup_cfg at the end
30034 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
30036 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30039 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30041 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30044 2015-01-21 David Sherwood <david.sherwood@arm.com>
30045 Tejas Belagod <Tejas.Belagod@arm.com>
30047 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30048 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30049 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30052 2015-01-21 David Sherwood <david.sherwood@arm.com>
30053 Tejas Belagod <Tejas.Belagod@arm.com>
30055 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30056 (aarch64_reverse_mask): New decls.
30057 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30058 (insn_count): New mode_attr.
30059 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30060 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30061 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30062 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30063 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30064 (aarch64_simd_st4): New patterns.
30065 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30066 (aarch64_reverse_mask): New functions.
30068 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
30070 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30072 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30073 addressing modes for BE.
30074 (aarch64_print_operand): Add 'R' specifier.
30075 (aarch64_simd_disambiguate_copy): Delete.
30076 (aarch64_simd_emit_reg_reg_move): New function.
30077 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30078 in define_splits for structural moves.
30079 (mov<mode>): Use less restrictive predicates.
30080 (*aarch64_mov<mode>): Simplify and only allow for LE.
30081 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30083 2015-01-21 Alan Hayward <alan.hayward@arm.com>
30085 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30087 2015-01-21 Richard Henderson <rth@redhat.com>
30090 * ccmp.c (used_in_cond_stmt_p): Remove.
30091 (expand_ccmp_expr): Don't use it.
30093 2015-01-21 Nick Clifton <nickc@redhat.com>
30095 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30098 2015-01-21 Richard Biener <rguenther@suse.de>
30100 PR middle-end/64313
30101 * tree-core.h (builtin_info, builtin_info_type): Turn from
30102 an object with two arrays into an array of an object with
30103 decl and two flags, implicit_p and declared_p.
30104 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30105 set_builtin_decl, set_builtin_decl_implicit_p,
30106 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30107 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30108 * builtins.c (builtin_info): Adjust.
30109 * gimplify.c (gimplify_addr_expr): References to builtins
30110 that have been declared by the user makes them eligible for
30111 use by the compiler. Call set_builtin_decl_implicit_p on them.
30113 2015-01-20 Jeff Law <law@redhat.com>
30116 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30117 allow pc-relative addresses in operand predicates or constraints.
30119 2015-01-21 Bin Cheng <bin.cheng@arm.com>
30121 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30122 neon on aarch32 processors for stringops.
30124 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30127 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30129 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30132 * ipa-inline.c: Include lto-streamer.h
30133 (report_inline_failed_reason): Output source file differences and
30134 flags on optimization/target node mismatch.
30135 (can_inline_edge_p): Consider caller to be the outer inline function;
30136 be less restrictive about matching opimize and optimize_size attributes.
30137 (inline_account_function_p): Break out from ...
30138 (inline_small_functions): ... here.
30139 * ipa-inline-transform.c (clone_inlined_nodes): Use
30140 inline_account_function_p.
30141 (inline_call): Use optimize attribution; use inline_account_function_p.
30142 (inline_transform): Use opt_for_fn.
30143 * ipa-inline.h (inline_account_function_p): Declare.
30145 2015-01-20 Jakub Jelinek <jakub@redhat.com>
30148 * dwarf2out.c (decl_piece_node): Don't put bitsize into
30149 mode if bitsize <= 0.
30150 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30151 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30152 sizes and positions.
30154 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
30156 * config/nios2/nios2.c (nios2_asm_file_end): Implement
30157 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30159 (TARGET_ASM_FILE_END): Define.
30161 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30163 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30164 (struct tune_params): Use the enum.
30165 * arm.c (arm_*_tune): Update.
30166 (arm_option_override): Update.
30168 2015-01-20 Richard Biener <rguenther@suse.de>
30171 * ipa-reference.c (add_static_var): Inline ...
30172 (analyze_function): ... here after splitting out from ...
30173 (is_proper_for_analysis): ... this.
30175 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
30178 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30179 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30180 replace the conditional with it's true branch.
30181 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30182 (arm_lra_p): Remove.
30184 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
30186 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30188 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30190 * config/tilegx/mul-tables.c: Move symtab.h include after
30191 coretypes.h include.
30192 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30193 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30194 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30195 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30196 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30198 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
30202 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30204 PR rtl-optimization/64081
30205 * loop-iv.c (def_pred_latch_p): New function.
30206 (latch_dominating_def): Allow specific cases with non-single
30208 (iv_get_reaching_def): Likewise.
30209 (check_complex_exit_p): New function.
30210 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30211 with exits not executing on any iteration.
30213 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30216 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30217 to set branch cost.
30219 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30222 * i386.c (gate): Check flag_expensive_optimizations and
30224 (ix86_option_override_internal): Drop optimize_size condition
30225 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30226 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30227 MASK_PREFER_AVX128.
30228 (ix86_avx256_split_vector_move_misalign,
30229 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30230 * sse.md (all uses of TARGET_PREFER_AVX128): Add
30231 optimize_insn_for_speed_p check.
30233 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
30235 * config/mips/mips.h (FP_ASM_SPEC): New define.
30236 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30239 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
30242 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30243 nullptr for insn when reaching the first insn.
30244 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30245 (sh_insn_operands_modified_between_p): Add nullptr check.
30246 (sh_find_extending_set_of_reg): Fix log message. Don't accept
30247 sign extending mem load if the insn contains any UNSPEC or
30250 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30252 * params.def (inline-unit-growth): Drop to 15%.
30253 * invoke.texi (inline-unit-growth): Document change.
30255 2015-01-19 Martin Liska <mliska@suse.cz>
30258 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30259 function for second argument of OBJ_TYPE_REF.
30261 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30264 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30265 whether function is an alias.
30267 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30269 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30272 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
30274 PR rtl-optimization/64671
30275 * lra-remat.c (operand_to_remat): Don't consider jump and call
30278 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
30281 * config/rs6000/default64.h: Include rs6000-cpus.def.
30282 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30283 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30284 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30286 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30288 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30289 pseudo-op to specify assembler dialect.
30291 2015-01-19 Martin Liska <mliska@suse.cz>
30294 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30295 Handle safe potentially removed nodes during filtering.
30297 2015-01-19 Martin Liska <mliska@suse.cz>
30299 * doc/extend.texi (no_icf): Add new attribute description.
30300 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30301 where the pass attempts to merge a function with no_icf attribute.
30303 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30306 * doc/md.texi (ARM Options): Document register constraints.
30308 2015-01-19 Jiong Wang <jiong.wang@arm.com>
30309 Andrew Pinski <apinski@cavium.com>
30312 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30313 (ashl<mode>3): Don't expand if operands[2] is not constant.
30315 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30318 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30319 Match xor-and-xor RTL pattern.
30321 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30323 PR rtl-optimization/64081
30324 * loop-iv.c (def_pred_latch_p): New function.
30325 (latch_dominating_def): Allow specific cases with non-single
30327 (iv_get_reaching_def): Likewise.
30328 (check_complex_exit_p): New function.
30329 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30330 with exits not executing on any iteration.
30332 2015-01-19 Jakub Jelinek <jakub@redhat.com>
30334 * common.opt (fgraphite): Fix a typo.
30336 2015-01-19 Felix Yang <felix.yang@huawei.com>
30338 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30340 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30341 uminp, smax_nanp, smin_nanp): New builtins.
30342 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30343 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30344 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30345 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30346 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30347 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30348 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30349 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30350 vpminnms_f32): Rewrite using builtin functions.
30352 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
30355 * omp-low.c (offload_symbol_decl): Remove variable.
30356 (get_offload_symbol_decl): Remove function.
30357 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30358 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30359 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30360 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30361 BUILT_IN_GOACC_UPDATE don't pass it at all.
30363 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30365 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30368 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30370 * ipa-chkp.c (chkp_produce_thunks): Add early param
30371 to split thunks production into two passes. Keep
30372 'always_inline' function bodies after the first pass.
30373 (pass_data_ipa_chkp_early_produce_thunks): New.
30374 (pass_ipa_chkp_early_produce_thunks): New.
30375 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30376 chkp_produce_thunks signature.
30377 (make_pass_ipa_chkp_early_produce_thunks): New.
30378 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30379 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30380 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30382 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30384 * cgraph.c (cgraph_node::dump): Dump profile flags.
30386 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
30389 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30390 reg appear first in the parallel.
30392 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30394 * ipa-reference.c (set_reference_optimization_summary,
30395 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30397 (ignore_module_statics): New static var.
30398 (propagate_bits): If ipa-reference is disabled, do not look into local
30400 (analyze_function): Disable analysis when ipa_reference is disabled.
30401 (generate_summary): Do not dump when reference is disabled;
30402 collect vars accessed from functions with ipa-reference disabled.
30403 (get_read_write_all_from_node): When ipa-reference is disabled, use the
30405 (gate): Enable for LTO.
30406 (ignore_edge_p): New function.
30407 (propagate): Skip functions w/o ipa-reference analysis.
30408 * optc-save-gen.awk: Handle optimize_debug correctly.
30409 * opth-gen.awk: Likewise.
30410 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30411 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30412 fira-share-save-slots, fira-share-spill-slots,
30413 fmodulo-sched-allow-regmoves, fpartial-inlining,
30414 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30415 ftracer, ftree-parallelize-loops, fassociative-math,
30416 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30418 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30419 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30421 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30424 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30427 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30429 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30431 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
30433 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
30434 Remove duplicate option listings.
30436 2015-01-18 Felix Yang <felix.yang@huawei.com>
30438 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
30439 (autofdo_source_profile::get_callsite_total_count,
30440 function_instance::get_function_instance_by_decl,
30441 string_table::get_index, string_table::get_index_by_decl,
30442 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
30443 Fix comment typos. Reformatting and minor code rearrangement.
30445 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30447 * config/rs6000/rs6000.md (probe_stack): Delete.
30448 (probe_stack_address): New.
30450 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30452 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
30453 to test for 32-bit ABIs, not !TARGET_POWERPC64.
30455 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30457 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
30458 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
30459 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
30461 (rs6000_libcall_value): Use the new function.
30463 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
30465 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
30467 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
30469 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
30470 implement a more precise life analysis for it during backward scan.
30472 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
30474 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
30476 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
30478 PR rtl-optimization/52773
30479 * calls.c (emit_library_call_value): When pushing arguments use
30480 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
30481 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
30482 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
30484 2015-01-17 Jeff Law <law@redhat.com>
30486 PR rtl-optimization/32790
30487 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
30488 not ZERO_EXTEND in SET_DESTs.
30490 2015-01-17 Alan Modra <amodra@gmail.com>
30492 * cprop.c (do_local_cprop): Revert last change.
30494 2015-01-16 DJ Delorie <dj@redhat.com>
30495 Nick Clifton <nickc@redhat.com>
30497 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
30498 (addhi3_real): Likewise. Fix [HL+0] syntax.
30499 (subqi3_real): Likewise.
30500 (subhi3_real): Likewise.
30501 (cbranchqi4_real): Likewise. Allow saddr,#imm.
30502 (cbranchhi4_real): Likewise.
30503 (cbranchhi4_real_inverted): Likewise.
30504 (cbranchsi4_real_lt): Likewise.
30505 (cbranchsi4_real_ge): Likewise.
30506 (cbranchsi4_real_ge): Likewise.
30507 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
30508 (sub<mode>3_virt): Likewise.
30509 (cbranchqi4_virt): Likewise.
30510 (cbranchhi4_virt): Likewise.
30511 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
30512 always use '[reg+imm]' even when imm is zero.
30513 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
30514 (rl78_general_operand): New.
30515 (rl78_nonimmediate_operand): New.
30516 (rl78_nonfar_operand): Use them.
30517 (rl78_nonfar_nonimm_operand): Likewise.
30518 (rl78_stack_based_mem): Fix.
30519 * config/rl78/constraints.md (Ibqi): New.
30524 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
30525 (iorqi3): Likewise.
30526 (xorqi3): Likewise.
30527 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
30529 * config/rl78/constrains (Qs8): New constraint.
30530 * config/rl78/rl78.c (rl78_flags_already_set): New function.
30531 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
30532 * config/rl78/rl78-real.md (update_Z): New attribute.
30533 Update patterns to set it.
30534 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
30535 shorter compare and branch sequence can be used.
30536 (cbranchhi4_real): Likewise.
30537 (cbranchhi4_real_inverted): Likewise.
30539 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
30540 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
30542 * config/rl78/rl78.c (rl78_get_name_encoding): New.
30543 (rl78_option_override): Allow -mes0 only if C.
30544 (characterize_address): Support subregs of symbol_refs.
30545 (rl78_addr_space_address_mode): Move. Add __near.
30546 (rl78_far_p): Likewise.
30547 (rl78_addr_space_pointer_mode): Likewise.
30548 (rl78_as_legitimate_address): Likewise.
30549 (rl78_addr_space_subset_p): Likewise.
30550 (rl78_addr_space_convert): Likewise.
30551 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
30552 symbols with -mes0.
30553 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
30555 (rl78_alloc_physical_registers_op1): Change logic to prefer
30556 symbol[BC] addressing.
30557 (frodata_section): New.
30558 (rl78_asm_init_sections): Initialize it.
30559 (rl78_select_section): Put __far readonly symbols in .frodata.
30560 (rl78_make_type_far): New.
30561 (rl78_insert_attributes): Force all readonly symbols to be
30563 (rl78_asm_out_integer): New.
30564 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
30565 * config/rl78/rl78.opt (-mes0): New.
30567 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
30568 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
30569 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
30570 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
30571 (rl78_saddr_p): New.
30572 (rl78_output_aligned_common): New.
30573 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
30574 (rl78_handle_saddr_attribute): New.
30575 (rl78_handle_naked_attribute): New.
30576 (rl78_attribute_table): Add saddr.
30577 (rl78_print_operand_1): Don't print '!' on saddr operands.
30578 (rl78_print_operand_1): Strip encodings.
30580 (rl78_strip_name_encoding): New.
30581 (rl78_attrlist_to_encoding): New.
30582 (rl78_encode_section_info): New.
30583 (rl78_asm_init_sections): New.
30584 (rl78_select_section): New.
30585 (rl78_output_labelref): New.
30586 (rl78_output_aligned_common): New.
30587 (rl78_asm_out_integer): New.
30588 (rl78_asm_ctor_dtor): New.
30589 (rl78_asm_constructor): New.
30590 (rl78_asm_destructor): New.
30592 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
30593 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
30594 (transcode_memory_rtx): Update.
30595 (rl78_expand_epilogue): Use A_REG instead of 0.
30597 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30599 * config/arm/arm-protos.h (struct tune_params): New field
30600 sched_autopref_queue_depth.
30601 * config/arm/arm.c (sched-int.h): Include header.
30602 (arm_first_cycle_multipass_dfa_lookahead_guard,)
30603 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
30604 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
30605 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
30606 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
30607 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
30608 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
30609 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
30610 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
30611 * config/arm/t-arm (arm.o): Update.
30612 * haifa-sched.c (update_insn_after_change): Update.
30613 (rank_for_schedule): Use auto-prefetcher model, if requested.
30614 (autopref_multipass_init): New static function.
30615 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
30616 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
30617 variable for debug dumps.
30618 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
30619 (autopref_multipass_dfa_lookahead_guard): New global function that
30620 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
30621 (init_h_i_d): Update.
30622 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
30623 * sched-int.h (enum autopref_multipass_data_status): New const enum.
30624 (autopref_multipass_data_): Structure for auto-prefetcher data.
30625 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
30626 (struct _haifa_insn_data:autopref_multipass_data): New field.
30627 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
30628 (autopref_multipass_dfa_lookahead_guard): Declare.
30630 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30632 * rtlanal.c (get_base_term): Handle SCRATCH.
30634 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30636 * config/aarch64/aarch64.c
30637 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
30638 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30640 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
30641 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30643 2015-01-17 Alan Modra <amodra@gmail.com>
30645 * cprop.c (do_local_cprop): Disallow replacement of fixed
30648 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30651 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
30654 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
30656 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
30657 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
30659 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30661 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
30662 * config/arm/thumb1.md: ... Here.
30664 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30666 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
30667 TImode for TARGET_32BIT.
30669 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30671 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
30672 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
30674 (rs6000_abi_word_mode): New function.
30676 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30678 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
30679 instead of UNITS_PER_WORD to describe the size of stack slots.
30681 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30683 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
30684 as rs6000_promote_function_mode. Move comment to there.
30685 (rs6000_promote_function_mode): New function.
30687 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30689 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
30690 -mpowerpc64 is active.
30692 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30694 PR middle-end/64353
30695 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
30698 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30700 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
30701 introduced in revision 219724.
30703 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30704 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30707 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
30708 destination is not a GP reg.
30709 (*movdi_aarch64): Likewise.
30711 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
30714 * config/rs6000/default64.h: Revert ISA change.
30716 2015-01-16 Richard Biener <rguenther@suse.de>
30718 PR middle-end/64614
30719 * tree-ssa-uninit.c: Include tree-cfg.h.
30720 (MAX_SWITCH_CASES): New define.
30721 (convert_control_dep_chain_into_preds): Handle switch statements.
30722 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
30723 (normalize_one_pred_1): Do not split bit-manipulations.
30726 2015-01-16 Richard Biener <rguenther@suse.de>
30728 PR tree-optimization/64568
30729 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
30730 complex load rewriting for TARGET_MEM_REFs.
30732 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
30734 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
30736 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
30739 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
30741 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
30742 (aarch64_lra_p): Remove.
30744 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30747 * ipa-chkp.h (chkp_instrumentable_p): New.
30748 * ipa-chkp.c: Include tree-inline.h.
30749 (chkp_instrumentable_p): New.
30750 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
30751 Fix processing of not instrumentable functions.
30752 (chkp_versioning): Use chkp_instrumentable_p. Warn about
30753 not instrumentable functions.
30754 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
30755 chkp_instrumentable_p.
30756 * tree-inline.h (copy_forbidden): New.
30757 * tree-inline.c (copy_forbidden): Not static anymore.
30759 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30761 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
30764 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30766 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
30767 type OP_OUT to OP_INOUT.
30769 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30771 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
30772 (high x) y) to y if x and y have the same base.
30774 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30776 * config/arm/cortex-a57.md: New.
30777 * config/aarch64/aarch64.md: Include it.
30778 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
30779 * config/aarch64/aarch64-tune.md: Regenerate.
30781 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
30784 * ccmp.c (expand_ccmp_next): New function.
30785 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
30786 and compare insn sequence.
30787 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
30788 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
30789 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
30790 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
30791 (*ccmp_ior): Changed to ccmp_ior<mode>.
30792 (cmp<mode>): New pattern.
30793 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
30795 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
30797 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
30799 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
30800 _mm256_bsrli_epi128): New.
30801 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
30803 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30805 * expmed.c (store_bit_field_using_insv): Improve warning message.
30806 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
30808 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30810 PR rtl-optimization/64011
30811 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
30812 there is partial overflow.
30814 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30816 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
30818 (nds32_expand_epilogue_v3pop): Likewise.
30819 * config/nds32/nds32.md (sibcall): Define this for sibling call
30821 (sibcall_register): Likewise.
30822 (sibcall_immediate): Likewise.
30823 (sibcall_value): Likewise.
30824 (sibcall_value_register): Likewise.
30825 (sibcall_value_immediate): Likewise.
30826 (sibcall_epilogue): Likewise.
30827 (epilogue): Pass false to indicate this is not a sibcall epilogue.
30828 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
30829 (nds32_expand_epilogue_v3pop): Likewise.
30831 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30833 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
30834 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
30835 (return_internal): New.
30836 (return): Define this named pattern.
30837 (simple_return): Define this named pattern.
30838 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
30839 pattern instead of unspec_volatile_func_return.
30840 (nds32_expand_epilogue_v3pop): Likewise.
30841 (nds32_can_use_return_insn): New function.
30843 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30845 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
30846 * config/nds32/nds32.md (pop25return): New.
30847 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
30848 pop25return pattern.
30850 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30852 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
30853 -mforbid-fp-as-gp, and -mex9 options.
30855 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30857 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
30858 remove -mgp-direct option.
30860 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30862 * doc/invoke.texi (--param early-inlining-insns): Update default value.
30863 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
30865 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30867 * ipa-inline.c (inline_small_functions): Work around hints
30870 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
30873 * doc/invoke.texi (Option Summary): Document new Nios II
30875 (Nios II Options): Likewise.
30876 * config/nios2/nios2.opt: Add -mgpopt= option support.
30877 Modify existing -mgpopt and -mno-gpopt options to be aliases.
30878 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
30879 * config/nios2/nios2.c (nios2_option_override): Adjust
30880 -mgpopt defaulting.
30881 (nios2_in_small_data_p): Return true for explicit small data
30882 sections even with -G0.
30883 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
30886 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30889 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
30891 (inline_call): Fix removal of aliases.
30893 2015-01-15 Jakub Jelinek <jakub@redhat.com>
30895 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
30896 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
30897 * opts.c (common_handle_option): Add -fsanitize=vptr.
30898 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
30899 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
30900 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
30901 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
30902 (ubsan_expand_vptr_ifn): New prototype.
30903 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
30904 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
30905 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
30906 expand_LOOP_VECTORIZED): Make argument nameless, remove
30908 (expand_UBSAN_VPTR): New function.
30909 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
30911 (UBSAN_VPTR): New internal function.
30912 * sanopt.c (tree_map_traits): Renamed to ...
30913 (sanopt_tree_map_traits): ... this.
30914 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
30915 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
30916 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
30917 (maybe_optimize_ubsan_vptr_ifn): New function.
30918 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
30919 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
30921 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
30922 internal calls like pure functions for aliasing, even when they
30923 have other side-effects that prevent making them ECF_PURE.
30924 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
30925 (ubsan_expand_vptr_ifn): New function.
30927 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
30929 PR rtl-optimization/64110
30930 * stmt.c (parse_output_constraint): Process '^' and '$'.
30931 (parse_input_constraint): Ditto.
30932 * lra-constraints.c (process_alt_operands): Process the new
30934 * ira-costs.c (record_reg_classes): Process the new constraint
30936 * genoutput.c (indep_constraints): Add '^' and '$'.
30937 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
30938 * doc/md.texi: Add description of the new constraints.
30940 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
30941 Bernd Schmidt <bernds@codesourcery.com>
30942 Cesar Philippidis <cesar@codesourcery.com>
30943 James Norris <jnorris@codesourcery.com>
30944 Tom de Vries <tom@codesourcery.com>
30945 Ilmir Usmanov <i.usmanov@samsung.com>
30946 Dmitry Bocharnikov <dmitry.b@samsung.com>
30947 Evgeny Gavrin <e.gavrin@samsung.com>
30948 Jakub Jelinek <jakub@redhat.com>
30950 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
30951 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30952 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30953 New function types.
30954 * builtins.c: Include "gomp-constants.h".
30955 (expand_builtin_acc_on_device): New function.
30956 (expand_builtin, is_inexpensive_builtin): Handle
30957 BUILT_IN_ACC_ON_DEVICE.
30958 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
30960 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
30962 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
30963 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
30964 i386/intelmic-offload.h.
30965 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
30966 to libgomp and its dependencies.
30967 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
30968 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
30969 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
30970 * config/ia64/hpux.h (LIB_SPEC): Likewise.
30971 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30972 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
30973 * doc/generic.texi: Update for OpenACC changes.
30974 * doc/gimple.texi: Likewise.
30975 * doc/invoke.texi: Likewise.
30976 * doc/sourcebuild.texi: Likewise.
30977 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
30978 GF_OMP_FOR_KIND_OACC_LOOP.
30979 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
30980 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
30981 GF_OMP_TARGET_KIND_OACC_UPDATE,
30982 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30984 * gimple.c: Update comments for OpenACC changes.
30985 * gimple.def: Likewise.
30986 * gimple.h: Likewise.
30987 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
30988 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30989 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
30990 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30991 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
30993 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
30994 * gimplify.c: Include "gomp-constants.h".
30995 Update comments for OpenACC changes.
30996 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
30997 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
30998 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30999 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31000 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31001 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31002 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31003 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31004 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31006 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31007 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31008 OMP_CLAUSE_SET_MAP_KIND.
31009 (gimplify_oacc_cache): New function.
31010 (gimplify_omp_for): Handle OACC_LOOP.
31011 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31013 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31014 OACC_EXIT_DATA, OACC_UPDATE.
31015 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31016 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31017 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31018 (gimplify_body): Consider flag_openacc next to flag_openmp.
31019 * lto-streamer-out.c: Include "gomp-constants.h".
31020 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31021 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31022 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31023 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31024 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31025 (BUILT_IN_ACC_ON_DEVICE): New builtins.
31026 * omp-low.c: Include "gomp-constants.h".
31027 Update comments for OpenACC changes.
31028 (struct omp_context): Add reduction_map, gwv_below, gwv_this
31030 (extract_omp_for_data, use_pointer_for_field, install_var_field)
31031 (new_omp_context, delete_omp_context, scan_sharing_clauses)
31032 (create_omp_child_function, scan_omp_for, scan_omp_target)
31033 (check_omp_nesting_restrictions, lower_reduction_clauses)
31034 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31035 Update for OpenACC changes.
31036 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31037 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31038 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31039 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31040 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31041 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
31043 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31044 Handle GF_OMP_FOR_KIND_OACC_LOOP.
31045 (expand_omp_target, lower_omp_target): Handle
31046 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31047 GF_OMP_TARGET_KIND_OACC_UPDATE,
31048 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31049 GF_OMP_TARGET_KIND_OACC_DATA.
31050 (pass_expand_omp::execute, execute_lower_omp)
31051 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31053 (offload_symbol_decl): New variable.
31054 (oacc_get_reduction_array_id, oacc_max_threads)
31055 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31056 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31057 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31058 (oacc_gimple_assign, oacc_initialize_reduction_data)
31059 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31061 (is_targetreg_ctx): Remove function.
31062 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31063 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31064 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31065 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31066 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31067 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31068 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31069 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31070 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31071 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31072 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31073 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31074 * tree-core.h: Update comments for OpenACC changes.
31075 (enum omp_clause_map_kind): Remove.
31076 (struct tree_omp_clause): Change type of map_kind member from enum
31077 omp_clause_map_kind to unsigned char.
31078 * tree-inline.c: Update comments for OpenACC changes.
31079 * tree-nested.c: Likewise. Include "gomp-constants.h".
31080 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31081 (convert_tramp_reference_stmt, convert_gimple_call): Update for
31082 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31083 OMP_CLAUSE_SET_MAP_KIND.
31084 * tree-pretty-print.c: Include "gomp-constants.h".
31085 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31086 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31087 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31088 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31089 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31090 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
31091 instead of OMP_CLAUSE_MAP_*.
31092 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31093 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31094 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31095 * tree-streamer-in.c: Include "gomp-constants.h".
31096 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31097 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
31098 * tree-streamer-out.c: Include "gomp-constants.h".
31099 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31101 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31102 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31103 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31104 * tree.c (omp_clause_num_ops): Update accordingly.
31105 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31107 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31108 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31109 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31110 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31111 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31112 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31113 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31114 (OMP_CLAUSE_SET_MAP_KIND): New macro.
31115 * varpool.c (varpool_node::get_create): Consider flag_openacc next
31117 * config/i386/intelmic-offload.h: New file.
31118 * config/nvptx/offload.h: Likewise.
31120 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31122 * explow.h: Remove duplicate contents.
31123 * dojump.h: Likewise.
31125 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
31127 * arm.c (arm_xgene_tune): Add default initializer for instruction
31130 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31134 * ipa.c (symbol_table::remove_unreachable_nodes):
31135 Do not put abstract origins into boundary.
31137 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
31139 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31140 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31142 2015-01-15 Steve Ellcey <sellcey@mips.com>
31144 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31145 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31146 builtins.def, and chkp-builtins.def.
31148 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
31150 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31153 2015-01-15 Richard Biener <rguenther@suse.de>
31155 PR tree-optimization/61743
31156 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31157 information on PHIs for some simple cases.
31159 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31161 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31163 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31164 * config/arm/arm-cores.def (xgene1): New entry.
31165 * config/arm/arm-tables.opt: Regenerate.
31166 * config/arm/arm-tune.md: Regenerate.
31167 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31169 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31171 * tree-if-conv.c: Include hash-map.h.
31172 (aggressive_if_conv): New variable.
31173 (fold_build_cond_expr): Add simplification of non-zero condition.
31174 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31175 destination block is not always executed.
31176 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31177 than two predecessors if AGGRESSIVE_IF_CONV is true.
31178 (if_convertible_stmt_p): Fix commentary.
31179 (all_preds_critical_p): New function.
31180 (has_pred_critical_p): New function.
31181 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31182 BB can have more than two predecessors and all incoming edges can be
31184 (predicate_bbs): Skip predication for loop exit block, use build2_loc
31185 to compute predicate for true edge.
31186 (find_phi_replacement_condition): Delete this function.
31187 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31188 Allow interchange PHI arguments if EXTENDED is false.
31189 Change check that block containing reduction statement candidate
31190 is predecessor of phi-block since phi may have more than two arguments.
31191 (phi_args_hash_traits): New helper structure.
31192 (struct phi_args_hash_traits): New type.
31193 (phi_args_hash_traits::hash): New function.
31194 (phi_args_hash_traits::equal_keys): New function.
31195 (gen_phi_arg_condition): New function.
31196 (predicate_scalar_phi): Add handling of phi nodes with more than two
31197 arguments, delete COND and TRUE_BB arguments, insert body of
31198 find_phi_replacement_condition to predicate ordinary phi nodes.
31199 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31200 delete call of find_phi_replacement_condition and invoke
31201 predicate_scalar_phi with two arguments.
31202 (insert_gimplified_predicates): Add assert that non-predicated block
31203 don't have statements to insert.
31204 (ifcvt_split_critical_edges): New function.
31205 (ifcvt_split_def_stmt): Likewise.
31206 (ifcvt_walk_pattern_tree): Likewise.
31207 (stmt_is_root_of_bool_pattern): Likewise.
31208 (ifcvt_repair_bool_pattern): Likewise.
31209 (ifcvt_local_dce): Likewise.
31210 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31211 is copy of inner or outer loop force_vectorize field, invoke
31212 ifcvt_split_critical_edges, ifcvt_local_dce and
31213 ifcvt_repair_bool_pattern for aggressive if-conversion.
31215 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
31217 * config/aarch64/aarch64.md: Include xgene1.md.
31218 * config/aarch64/xgene1.md: New file.
31220 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31222 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31223 xgene1 (APM XGene-1) core definition.
31224 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31225 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31226 * doc/invoke.texi: Document -mcpu=xgene1.
31228 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31230 * dojump.h: New header file.
31231 * explow.h: Likewise.
31232 * expr.h: Remove includes.
31233 Move expmed.c prototypes to expmed.h.
31234 Move dojump.c prototypes to dojump.h.
31235 Move alias.c prototypes to alias.h.
31236 Move explow.c prototypes to explow.h.
31237 Move calls.c prototypes to calls.h.
31238 Move emit-rtl.c prototypes to emit-rtl.h.
31239 Move varasm.c prototypes to varasm.h.
31240 Move stmt.c prototypes to stmt.h.
31241 (saved_pending_stack_adjust): Move to dojump.h.
31242 (adjust_address): Move to explow.h.
31243 (adjust_address_nv): Move to emit-rtl.h.
31244 (adjust_bitfield_address): Likewise.
31245 (adjust_bitfield_address_size): Likewise.
31246 (adjust_bitfield_address_nv): Likewise.
31247 (adjust_automodify_address_nv): Likewise.
31248 * explow.c (expr_size): Move to expr.c.
31249 (int_expr_size): Likewise.
31250 (tree_expr_size): Likewise.
31251 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31252 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31253 * genemit.c (main): Generate includes statistics.h, real.h,
31254 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31256 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31257 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31258 explow.h, emit-rtl.h, stmt.h.
31259 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31260 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31261 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31262 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31263 emit-rtl.h, varasm.h, stmt.h.
31264 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31265 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31266 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31267 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31268 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31269 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31270 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31271 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31272 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31273 tm.h tree.h varasm.h vec.h wide-int.h.
31274 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31275 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31276 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31277 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31278 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
31279 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
31280 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31281 * loop-iv.c: Likewise.
31282 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31283 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31284 statistics.h stmt.h tree.h varasm.h wide-int.h.
31285 * lra-constraints.c: Likewise.
31286 * lra-eliminations.c: Likewise.
31287 * lra-lives.c: Likewise.
31288 * lra-remat.c: Likewise.
31289 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31290 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31291 statistics.h stmt.h tree.h varasm.h wide-int.h.
31292 * hw-doloop.c: Likewise.
31293 * ira-color.c: Likewise.
31294 * ira-emit.c: Likewise.
31295 * loop-doloop.c: Likewise.
31296 * loop-invariant.c: Likewise.
31297 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31298 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31299 statistics.h stmt.h tree.h varasm.h wide-int.h.
31300 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31301 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31302 statistics.h stmt.h tree.h varasm.h wide-int.h.
31303 * combine-stack-adj.c: Likewise.
31306 * ifcvt.c: Likewise.
31307 * ira-costs.c: Likewise.
31308 * jump.c: Likewise.
31309 * lra-coalesce.c: Likewise.
31310 * lra-spills.c: Likewise.
31311 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31312 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31313 stmt.h varasm.h wide-int.h.
31314 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31315 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31317 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31318 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31319 statistics.h stmt.h varasm.h wide-int.h.
31320 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31321 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31322 varasm.h wide-int.h.
31323 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31324 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31325 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31326 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31327 statistics.h stmt.h.
31328 * config/tilepro/tilepro.c: Likewise.
31329 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
31330 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
31331 * config/pdp11/pdp11.c: Likewise.
31332 * config/xtensa/xtensa.c: Likewise.
31333 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31334 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31336 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31337 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31338 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31339 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31340 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31341 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31342 * rtl-chkp.c: Likewise.
31343 * tree-chkp-opt.c: Likewise.
31344 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31345 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31346 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31347 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31348 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31349 statistics.h stmt.h.
31350 * tree-vect-data-refs.c: Likewise.
31351 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31352 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31353 rtl.h statistics.h stmt.h varasm.h.
31354 * internal-fn.c: Likewise.
31355 * ipa-icf-gimple.c: Likewise.
31356 * lto-section-out.c: Likewise.
31357 * tree-data-ref.c: Likewise.
31358 * tree-nested.c: Likewise.
31359 * tree-outof-ssa.c: Likewise.
31360 * tree-predcom.c: Likewise.
31361 * tree-pretty-print.c: Likewise.
31362 * tree-scalar-evolution.c: Likewise.
31363 * tree-ssa-strlen.c: Likewise.
31364 * tree-vect-loop.c: Likewise.
31365 * tree-vect-patterns.c: Likewise.
31366 * tree-vect-slp.c: Likewise.
31367 * tree-vect-stmts.c: Likewise.
31368 * tsan.c: Likewise.
31369 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31370 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31372 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31373 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31374 statistics.h stmt.h varasm.h.
31375 * loop-unroll.c: Likewise.
31376 * ubsan.c: Likewise.
31377 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31378 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31380 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31381 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31382 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31383 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31384 statistics.h stmt.h.
31385 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31386 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31387 statistics.h stmt.h varasm.h.
31388 * gimple-match-head.c: Likewise.
31389 * lto-cgraph.c: Likewise.
31390 * lto-section-in.c: Likewise.
31391 * lto-streamer-in.c: Likewise.
31392 * lto-streamer-out.c: Likewise.
31393 * tree-affine.c: Likewise.
31394 * tree-cfg.c: Likewise.
31395 * tree-cfgcleanup.c: Likewise.
31396 * tree-if-conv.c: Likewise.
31397 * tree-into-ssa.c: Likewise.
31398 * tree-ssa-alias.c: Likewise.
31399 * tree-ssa-copyrename.c: Likewise.
31400 * tree-ssa-dse.c: Likewise.
31401 * tree-ssa-forwprop.c: Likewise.
31402 * tree-ssa-live.c: Likewise.
31403 * tree-ssa-math-opts.c: Likewise.
31404 * tree-ssa-pre.c: Likewise.
31405 * tree-ssa-sccvn.c: Likewise.
31406 * tree-tailcall.c: Likewise.
31407 * tree-vect-generic.c: Likewise.
31408 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31409 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31410 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31411 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31412 * varasm.c: Likewise.
31413 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31414 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31416 * init-regs.c: Likewise.
31418 * omp-low.c: Likewise.
31419 * stack-ptr-mod.c: Likewise.
31420 * tree-ssa-reassoc.c: Likewise.
31421 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31422 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31424 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31425 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31426 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31427 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31428 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31429 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31430 * tree-ssa-phiopt.c: Likewise.
31431 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31432 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31433 * config/fr30/fr30.c: Likewise.
31434 * config/frv/frv.c: Likewise.
31435 * expr.c: Likewise.
31436 * final.c: Likewise.
31437 * optabs.c: Likewise.
31438 * passes.c: Likewise.
31439 * simplify-rtx.c: Likewise.
31440 * stmt.c: Likewise.
31441 * toplev.c: Likewise.
31442 * var-tracking.c: Likewise.
31443 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31444 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31445 * lower-subreg.c: Likewise.
31446 * postreload-gcse.c: Likewise.
31448 * reginfo.c: Likewise.
31449 * store-motion.c: Likewise.
31450 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31451 fixed-value.h hashtab.h real.h stmt.h varasm.h.
31452 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31453 fixed-value.h hashtab.h statistics.h stmt.h.
31454 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31455 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31456 * except.c: Likewise.
31457 * explow.c: Likewise.
31458 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31459 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
31461 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31462 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
31463 * tree-ssa-structalias.c: Likewise.
31464 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31465 fixed-value.h insn-config.h real.h statistics.h.
31466 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31467 fixed-value.h insn-config.h real.h statistics.h stmt.h.
31468 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31469 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31470 * cfgbuild.c: Likewise.
31471 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31472 fixed-value.h real.h rtl.h statistics.h stmt.h.
31473 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31474 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31475 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31476 fixed-value.h real.h statistics.h stmt.h.
31477 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31478 fixed-value.h real.h statistics.h stmt.h varasm.h.
31479 * cprop.c: Likewise.
31480 * modulo-sched.c: Likewise.
31481 * postreload.c: Likewise.
31482 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31483 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
31484 statistics.h stmt.h varasm.h.
31485 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
31486 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31487 rtl.h statistics.h stmt.h varasm.h.
31488 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
31489 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
31491 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31492 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
31494 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
31495 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
31497 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
31498 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31499 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31500 function.h real.h statistics.h stmt.h varasm.h.
31501 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31502 insn-config.h real.h statistics.h stmt.h.
31503 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31504 statistics.h stmt.h.
31505 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
31506 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
31507 statistics.h stmt.h varasm.h.
31508 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
31509 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
31510 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31511 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
31512 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
31513 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31514 statistics.h stmt.h varasm.h.
31515 * ipa-polymorphic-call.c: Likewise.
31516 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
31517 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31518 statistics.h stmt.h.
31519 * config/c6x/c6x.c: Likewise.
31520 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
31521 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31522 statistics.h stmt.h varasm.h.
31523 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
31524 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
31526 * ipa-split.c: Likewise.
31527 * tree-eh.c: Likewise.
31528 * tree-ssa-dce.c: Likewise.
31529 * tree-ssa-loop-niter.c: Likewise.
31530 * tree-vrp.c: Likewise.
31531 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
31532 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
31534 * config/nds32/nds32-fp-as-gp.c: Likewise.
31535 * config/nds32/nds32-intrinsic.c: Likewise.
31536 * config/nds32/nds32-isr.c: Likewise.
31537 * config/nds32/nds32-md-auxiliary.c: Likewise.
31538 * config/nds32/nds32-memory-manipulation.c: Likewise.
31539 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
31540 * config/nds32/nds32-predicates.c: Likewise.
31541 * config/nds32/nds32.c: Likewise.
31542 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
31543 fixed-value.h hashtab.h real.h statistics.h.
31544 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
31545 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31546 * config/arm/arm.c: Likewise.
31547 * config/avr/avr.c: Likewise.
31548 * config/bfin/bfin.c: Likewise.
31549 * config/h8300/h8300.c: Likewise.
31550 * config/i386/i386.c: Likewise.
31551 * config/ia64/ia64.c: Likewise.
31552 * config/iq2000/iq2000.c: Likewise.
31553 * config/m32c/m32c.c: Likewise.
31554 * config/m32r/m32r.c: Likewise.
31555 * config/m68k/m68k.c: Likewise.
31556 * config/mcore/mcore.c: Likewise.
31557 * config/mep/mep.c: Likewise.
31558 * config/mips/mips.c: Likewise.
31559 * config/mn10300/mn10300.c: Likewise.
31560 * config/moxie/moxie.c: Likewise.
31561 * config/pa/pa.c: Likewise.
31562 * config/rl78/rl78.c: Likewise.
31563 * config/rx/rx.c: Likewise.
31564 * config/s390/s390.c: Likewise.
31565 * config/sh/sh.c: Likewise.
31566 * config/sparc/sparc.c: Likewise.
31567 * config/spu/spu.c: Likewise.
31568 * config/stormy16/stormy16.c: Likewise.
31569 * config/v850/v850.c: Likewise.
31570 * config/vax/vax.c: Likewise.
31571 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
31572 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31573 * config/msp430/msp430.c: Likewise.
31574 * predict.c: Likewise.
31575 * value-prof.c: Likewise.
31576 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
31577 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
31578 * config/microblaze/microblaze.c: Likewise.
31579 * config/nios2/nios2.c: Likewise.
31580 * config/rs6000/rs6000.c: Likewise.
31581 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31582 insn-config.h real.h rtl.h statistics.h stmt.h.
31583 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31584 insn-config.h real.h statistics.h stmt.h.
31585 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
31586 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31587 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
31588 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31589 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
31590 fixed-value.h real.h statistics.h stmt.h.
31591 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
31592 fixed-value.h statistics.h stmt.h.
31593 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
31596 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31598 * gengtype.c (create_user_defined_type): Workaround
31599 -Wmaybe-uninitialized false positives.
31600 * cse.c (fold_rtx): Likewise.
31601 * loop-invariant.c (gain_for_invariant): Likewise.
31603 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
31605 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
31606 set the memory attributes in all cases but clear MEM_EXPR if need be.
31608 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31610 PR tree-optimization/64434
31611 * cfgexpand.c (reorder_operands): New function.
31612 (expand_gimple_basic_block): Insert call of reorder_operands if
31615 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
31617 * config/mips/micromips.md (*swp): Remove explicit parallel.
31618 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
31619 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
31620 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
31621 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
31622 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
31623 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
31624 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
31625 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
31626 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
31627 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
31628 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
31629 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
31630 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
31631 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
31632 (mips_wrdsp): Likewise.
31633 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
31635 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
31636 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
31637 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
31638 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
31639 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
31640 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
31641 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
31642 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
31643 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
31645 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31647 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
31648 (mips_print_operand): Support 'y' to print exact log2 in decimal
31650 * config/mips/mips.h (ISA_HAS_LSA): New define.
31651 (ISA_HAS_DLSA): Likewise.
31652 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
31653 * config/mips/predicates.md (const_immlsa_operand): New predicate.
31655 2015-01-15 Martin Liska <mliska@suse.cz>
31658 * optc-save-gen.awk: Add support for array types.
31660 2015-01-15 Richard Biener <rguenther@suse.de>
31662 PR middle-end/64365
31663 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
31664 for MEM_REF access functions with the same base can never partially
31667 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
31669 * common.opt: New option -fstack-protector-explicit.
31670 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
31671 (stack_protect_decl_phase): Handle stack_protect attribute for
31672 explicit stack protection requests.
31673 (expand_used_vars): Similarly.
31674 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
31675 * doc/extend.texi: Add documentation for "stack_protect" attribute.
31676 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
31678 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
31681 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
31683 (sh_extending_set_of_reg): New struct.
31684 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
31685 sh_remove_reg_dead_or_unused_notes): New Declarations.
31686 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
31687 sh_find_extending_set_of_reg, sh_split_tst_subregs,
31688 sh_extending_set_of_reg::use_as_extended_reg): New functions.
31689 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
31690 convert to insn_and_split and use new function sh_split_tst_subregs.
31692 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
31694 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
31696 (Optimization Options): Move -fuse-ld documentation to...
31697 (Link Options): ...here.
31699 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31701 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
31703 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
31704 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
31705 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
31706 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
31707 instead of ZR for the memory operand of LL/SC.
31708 (compare_and_swap_12, sync_add<mode>): Likewise.
31709 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
31710 (sync_new_<optab>_12, sync_nand_12): Likewise.
31711 (sync_old_nand_12, sync_new_nand_12): Likewise.
31712 (sync_sub<mode>, sync_old_add<mode>): Likewise.
31713 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
31714 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
31715 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
31716 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
31717 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
31718 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
31719 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
31720 * doc/md.texi (ZC): Update description.
31722 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31724 * builtins.c (expand_builtin_atomic_exchange): Remove error when
31725 memory model is CONSUME.
31726 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
31727 expand_builtin_atomic_store): Change invalid memory model errors to
31729 (expand_builtin_atomic_clear): Change invalid model errors to warnings
31730 and issue warning for CONSUME.
31732 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
31734 * lto-cgraph: Update function comments for
31735 lto_symtab_encoder_encode_*.
31737 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
31739 * Makefile.in (site.exp): Do not set ENABLE_LTO.
31741 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
31743 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
31744 * lto-cgraph.c (select_what_to_stream): Remove argument, use
31745 lto_stream_offload_p instead.
31746 * lto-streamer.h (select_what_to_stream): Remove argument.
31747 * passes.c (ipa_write_summaries): Likewise.
31748 * tree-pass.h (ipa_write_summaries): Likewise.
31750 2015-01-14 Richard Biener <rguenther@suse.de>
31752 PR tree-optimization/59354
31753 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
31754 groups larger than the slp group size as having gaps.
31756 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31758 PR middle-end/59448
31759 * builtins.c (get_memmodel): Promote consume to acquire always.
31761 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31764 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
31767 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31770 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
31772 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
31773 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
31774 AVX512VBMI, as it implies AVX512BW.
31776 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31779 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
31780 (vec_unpacks_hi_v16sf): Ditto.
31782 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31784 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
31787 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31789 * doc/invoke.texi (mapcs): Mention deprecation.
31790 (mapcs-frame): Likewise.
31792 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
31795 * config/arm/arm.c (callee_saved_reg_p): Define.
31796 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
31797 register is callee saved instead of !call_used_regs[reg].
31798 (thumb1_compute_save_reg_mask): Likewise.
31800 2015-01-14 Hale Wang <hale.wang@arm.com>
31802 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
31805 2015-01-14 Richard Biener <rguenther@suse.de>
31808 * tree-inline.c (insert_debug_decl_map): Check destination
31809 function MAY_HAVE_DEBUG_STMTS.
31810 (insert_init_debug_bind): Likewise.
31811 (insert_init_stmt): Remove redundant check.
31812 (remap_gimple_stmt): Drop debug stmts if the destination
31813 function has var-tracking assignments disabled.
31815 2015-01-14 Martin Liska <mliska@suse.cz>
31817 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
31818 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
31820 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31823 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
31824 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
31826 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31828 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
31829 level from an ARCH; do not inject the default.
31830 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
31831 MIPS_ISA_LEVEL_SPEC.
31832 (MIPS_ISA_NAN2008_SPEC): Update comment.
31833 (BASE_DRIVER_SELF_SPECS): Likewise.
31834 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
31835 MIPS_DEFAULT_ISA_LEVEL_SPEC.
31836 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
31837 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
31838 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
31840 2015-01-14 Richard Biener <rguenther@suse.de>
31842 PR tree-optimization/64493
31843 PR tree-optimization/64495
31844 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
31845 assign the proper vectorized PHI to the inner loop exit PHIs.
31847 2015-01-14 Joey Ye <joey.ye@arm.com>
31849 * config/arm/arm.c (arm_compute_save_reg_mask):
31850 Do not save lr in case of tail call.
31851 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
31853 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
31855 * tree-vrp.c (check_array_ref): Emit more warnings
31856 for warn_array_bounds >= 2.
31857 * common.opt: New option -Warray-bounds=.
31858 * doc/invoke.texi: Document -Warray-bounds=.
31860 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
31862 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
31863 (mforbid-fp-as-gp): Remove.
31865 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
31866 (nds32_symbol_load_store_p): Remove.
31867 (nds32_fp_as_gp_check_available): Clean up implementation.
31868 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
31870 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
31871 fp-as-gp and ex9 cases.
31873 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31875 * tree-profile.c (init_ic_make_global_vars): Drop workaround
31876 for bintuils bug 14342.
31877 (init_ic_make_global_vars): Likewise.
31878 (gimple_init_edge_profiler): Likewise.
31879 (gimple_gen_ic_func_profiler): Likewise.
31881 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31883 * ipa-inline.c (inline_small_functions): Swap the operands in
31886 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31889 * ipa-inline-analysis.c (node_growth_cache): Remove.
31890 (initialize_growth_caches): Do not initialize it.
31891 (free_growth_caches): Do not free it.
31892 (do_estimate_growth): Rename to ...
31893 (estimate_growth): ... this one; drop growth cache code.
31894 (growth_likely_positive): Always go the heuristics way.
31895 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
31896 (reset_edge_caches): Do not reset node growth.
31897 (heap_edge_removal_hook): Do not maintain cache.
31898 (inline_small_functions): Likewise; strenghten sanity check.
31899 (ipa_inline): Do not maintain caches.
31900 * ipa-inline.h (node_growth_cache): Remove.
31901 (do_estimate_growth): Remove to ...
31902 (estimate_growth): this one; remove inline version.
31903 (reset_node_growth_cache): Remove.
31905 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31908 * ipa-inline.c (inline_small_functions): Update callee keys after
31909 resolving speculation
31910 (inline_small_functions): Always check monotonicity of the queue.
31912 2015-01-13 Marek Polacek <polacek@redhat.com>
31914 PR middle-end/64391
31915 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
31917 2015-01-13 Jakub Jelinek <jakub@redhat.com>
31919 PR rtl-optimization/64286
31920 * ree.c (combine_reaching_defs): Move part of comment earlier,
31921 remove !SCALAR_INT_MODE_P check.
31922 (add_removable_extension): Don't add vector mode
31923 extensions if all uses of the source register aren't the same
31926 2015-01-13 Renlin Li <renlin.li@arm.com>
31928 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
31929 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
31931 2015-01-13 Martin Liska <mliska@suse.cz>
31933 * ipa-icf.c (sem_function::equals_private): Call new functions
31934 cl_target_option_print_diff and cl_optimization_print_diff.
31935 * optc-save-gen.awk (cl_target_option_print_diff): New function.
31936 (cl_optimization_print_diff): Likewise.
31937 * opth-gen.awk: Likewise.
31939 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
31941 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
31942 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
31943 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
31944 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
31945 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
31946 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
31948 2015-01-13 Andrew Pinski <apinski@cavium.com>
31950 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
31951 instead of src mode.
31953 2015-01-13 Richard Biener <rguenther@suse.de>
31956 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
31959 2015-01-13 Andrew Pinski <apinski@cavium.com>
31961 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
31963 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
31965 2015-01-13 Jakub Jelinek <jakub@redhat.com>
31967 PR middle-end/63974
31968 * cfgexpand.c (expand_computed_goto): Don't call
31969 convert_memory_address here.
31971 2015-01-13 Richard Biener <rguenther@suse.de>
31973 PR tree-optimization/64406
31974 * tree-loop-distibution.c (pass_loop_distribution::execute):
31975 Reset the SCEV hashtable if we distributed anything.
31977 2015-01-13 Richard Biener <rguenther@suse.de>
31979 PR tree-optimization/64404
31980 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
31981 SLP types for CSEd loads.
31983 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31985 PR tree-optimization/64436
31986 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
31987 merge of two symbolic numbers for a bitwise OR to ...
31988 (perform_symbolic_merge): This. Also fix computation of the range and
31989 end of the symbolic number corresponding to the result of a bitwise OR.
31991 2015-01-13 Richard Biener <rguenther@suse.de>
31993 PR tree-optimization/64568
31994 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
31995 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
31997 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31999 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32000 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32002 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32004 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32005 target-specific symbol_ref flag.
32006 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32007 resides in rodata section.
32008 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32009 (nds32_encode_section_info): New function.
32011 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32013 * config/nds32/nds32.md (call): Use pseudo instruction bal which
32014 clobbers TA_REGNUM if large code model is specified.
32015 (call_register): Likewise.
32016 (call_immediate): Likewise.
32017 (call_value): Likewise.
32018 (call_value_register): Likewise.
32019 (call_value_immediate): Likewise.
32021 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32023 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32024 (TARGET_CMODEL_MEDIUM): New macro.
32025 (TARGET_CMODEL_LARGE): New macro.
32026 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32027 code model setting in assembly code.
32029 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32031 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32032 Remove MASK_GP_DIRECT flag.
32033 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32034 one of the multilib default options.
32035 * config/nds32/nds32.opt (mgp-direct): Remove.
32036 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32037 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
32039 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32041 * config/nds32/nds32.opt (mcmodel): Add new option.
32042 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32043 to describe code model.
32045 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
32048 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32050 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
32052 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32053 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32054 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32055 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32056 __builtin_sh_set_fpscr.
32058 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32060 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32061 after a funtion name just to indicate it is a function.
32062 ([-fsanitize-undefined-trap-on-error]): Likewise.
32063 ([-fdbg-cnt=]): Likewise.
32064 ([-mmemcpy]): Likewise.
32065 ([-mflush-func]): Likewise.
32066 ([-msynci]): Likewise.
32068 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32070 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32073 2015-01-12 Jakub Jelinek <jakub@redhat.com>
32075 PR tree-optimization/64563
32076 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32077 instead of != VR_VARYING.
32080 * config/i386/i386.c (ix86_expand_prologue): Add
32081 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32083 PR tree-optimization/64454
32084 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32085 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32086 for signed or [0, op1 - 1] for unsigned modulo.
32087 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32088 even if op1 does not satisfy integer_pow2p.
32091 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32093 2015-01-12 Jeff Law <law@redhat.com>
32096 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32097 (trunchiqi2, truncsihi2): Similarly.
32099 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32100 rather than calling F.
32102 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
32104 * tsan.c (instrument_expr): Use force_gimple_operand.
32105 Use may_be_nonaddressable_p instead of is_gimple_addressable.
32107 2015-01-12 Richard Biener <rguenther@suse.de>
32109 PR tree-optimization/64530
32110 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32113 2015-01-12 Richard Biener <rguenther@suse.de>
32115 PR middle-end/64357
32116 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32119 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32121 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32122 Cortex-A17 tuning parameters.
32123 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32125 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32127 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32128 * config/arm/arm.c (arm_macro_fusion_p): New function.
32129 (arm_macro_fusion_pair_p): Likewise.
32130 (TARGET_SCHED_MACRO_FUSION_P): Define.
32131 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32132 (ARM_FUSE_NOTHING): Likewise.
32133 (ARM_FUSE_MOVW_MOVT): Likewise.
32134 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32135 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32136 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32137 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32138 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32139 arm_cortex_a5_tune): Specify fuseable_ops value.
32141 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
32144 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32145 test for PIE with copy reloc.
32146 * configure: Regenerated.
32148 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32150 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32152 (arm_tls_descseq_addr): Likewise.
32153 (arm_gen_movmemqi): Likewise.
32154 (arm_expand_epilogue_apcs_frame): Likewise.
32155 (arm_expand_epilogue): Likewise.
32156 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
32159 2015-01-12 Martin Liska <mliska@suse.cz>
32162 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32163 volatility for correct operands.
32165 2015-01-12 Martin Liska <mliska@suse.cz>
32167 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32168 indication that a function is not leaf.
32169 (sem_function::compare_polymorphic_p): Likewise.
32171 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32173 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32174 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32175 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32176 fold-const.h, tree-check.h.
32178 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32182 * ipa-inline.c (compute_uninlined_call_time,
32183 compute_inlined_call_time): Use counts for extra precision when
32185 (big_speedup_p): Fix formating.
32186 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32187 (relative_time_benefit): Remove.
32188 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32189 merge guessed and read profile paths.
32190 (inline_small_functions): Count only !optimize_size functions into
32191 initial size; be more lax about sanity check when profile is used;
32192 be sure to update inlined function profile when profile is read.
32194 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32197 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32198 cost when edge becomes direct.
32199 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32200 is resolved or when introducing new speculation.
32202 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
32206 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32207 '||' to fix typo issue.
32209 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32210 accept and return NULL.
32212 2015-01-12 Martin Liska <mliska@suse.cz>
32214 * cgraph.c (cgraph_edge::remove_callee): Move function to header
32215 file for being inlined.
32216 (cgraph_set_edge_callee): Delete.
32217 (cgraph_edge::redirect_callee): Move function to header file
32219 (cgraph_edge::make_direct): Use new function.
32220 (cgraph_edge::dump_edge_flags): New function created from
32221 static dump_edge_flags function.
32222 (cgraph_node::dump): Use new function.
32223 (cgraph_edge::verify_count_and_frequency): New function created
32224 from verify_edge_count_and_frequency.
32225 (cgraph_edge::verify_corresponds_to_fndecl): New function created
32226 from verify_edge_corresponds_to_fndecl.
32227 (verify_edge_corresponds_to_fndecl): Delete.
32228 (cgraph_node::verify_node): Use new function.
32229 * cgraph.h (cgraph_edge::set_callee): New function.
32230 (cgraph_edge::dump_edge_flags): Likewise.
32231 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32233 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
32235 * ipa-utils.c (estimate_function_body_sizes): Do not
32236 free node params when called late with early=true.
32238 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
32240 * doc/md.texi (Instruction Patterns): Rewrite text for
32242 (Example): Likewise.
32244 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
32246 * doc/invoke.texi (Option Summary): Break long lines.
32247 [(-fdiagnostics-color)]: Put long literal in @smallexample
32249 [(-fsanitize-recover)]: Likewise.
32250 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32251 [(-ffast-math)]: Likewise.
32252 [(--param max-inline-insns-recursive)]: Likewise.
32253 [(--param max-inline-recursive-depth)]: Likewise.
32254 [(-mno-text-section-literals)]: Likewise.
32256 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
32258 * doc/install.texi: Update for libgomp being renamed from "GNU
32259 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32261 * doc/sourcebuild.texi: Likewise.
32263 2015-01-10 Anthony Green <green@moxielogic.com>
32265 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32266 mul.x availability for moxiebox configuration.
32268 2015-01-09 Anthony Green <green@moxielogic.com>
32270 * config/moxie/moxie.md: Tabify assembly output.
32272 2015-01-09 Anthony Green <green@moxielogic.com>
32274 * config/moxie/moxie.md (CC_REG): Correct register definition.
32276 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
32278 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32279 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
32282 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32284 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32286 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
32287 Jakub Jelinek <jakub@redhat.com>
32289 PR middle-end/64412
32290 * lto-streamer.h (lto_stream_offload_p): New declaration.
32291 * lto-streamer.c (lto_stream_offload_p): New variable.
32292 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32293 at the same time as section_name_prefix.
32294 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32295 if lto_stream_offload_p.
32296 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32297 stream TREE_TARGET_OPTION if lto_stream_offload_p.
32298 (write_ts_function_decl_tree_pointers): Don't
32299 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32300 * tree-streamer-in.c (unpack_value_fields): Don't stream
32301 TREE_TARGET_OPTION in if ACCEL_COMPILER.
32302 (lto_input_ts_function_decl_tree_pointers): Don't stream
32303 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32304 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32305 instead of section_name_prefix string comparisons.
32307 2015-01-09 Jakub Jelinek <jakub@redhat.com>
32309 PR rtl-optimization/64536
32310 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32313 2015-01-09 Michael Collison <michael.collison@linaro.org>
32315 PR tree-optimization/64322
32316 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32317 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32319 2015-01-09 Tom de Vries <tom@codesourcery.com>
32321 PR rtl-optimization/64539
32322 * regcprop.c (kill_clobbered_values): Factor out of ...
32323 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
32324 instead of note_stores with kill_clobbered_value.
32326 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32328 * ginclude/unwind-arm-common.h: Revert previous commit.
32330 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32332 * config.gcc (arm*-*-freebsd*): New configuration.
32333 * config/arm/freebsd.h: New file.
32334 * config.host: Add extra components for arm*-*-freebsd*.
32335 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32336 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32338 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32340 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32342 * config/rs6000/t-rtems: Add e6500 multilibs.
32344 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32346 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32349 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32351 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32352 MULTILIB_EXCEPTIONS.
32354 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32356 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32357 MULTILIB_EXCEPTIONS.
32359 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32361 * config/arm/t-rtems-eabi: Rename to...
32362 * config/arm/t-rtems: ...this.
32363 * config/arm/rtems-eabi.h: Rename to...
32364 * config/arm/rtems.h: ...this.
32365 * config.gcc (arm*-*-rtems*): Reflect changes above.
32367 2015-01-09 Richard Biener <rguenther@suse.de>
32369 PR tree-optimization/64410
32370 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32372 (execute_update_addresses_taken): Deal with that.
32373 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32374 loads/stores for complex variables.
32376 2015-01-09 Martin Liska <mliska@suse.cz>
32378 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32380 (func_checker::compare_memory_operand): New function.
32381 (func_checker::compare_operand): Split case to newly
32383 (func_checker::compare_cst_or_decl): New function.
32384 (func_checker::compare_gimple_call): Identify
32386 (func_checker::compare_gimple_assign): Likewise.
32387 * ipa-icf-gimple.h: New function.
32389 2015-01-09 Martin Liska <mliska@suse.cz>
32392 * sreal.c (sreal::dump): Change unsigned format to signed for
32394 (sreal::to_double): Replace exp2 with scalbln.
32396 2015-01-09 Martin Liska <mliska@suse.cz>
32398 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32399 * ipa-icf.c (sem_function::equals_private): Add support for target and
32400 (sem_item_optimizer::merge_classes): Remove redundant function
32401 optimization flags comparison.
32402 * tree.h (target_opts_for_fn): New function.
32404 2015-01-09 Tom de Vries <tom@codesourcery.com>
32406 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32408 2015-01-09 Kito Cheng <kito@0xlab.org>
32410 PR rtl-optimization/64348
32411 * lra-constraints.c (split_reg): Fix caller-save store/restore
32412 instruction generation.
32414 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
32416 PR gcov-profile/61790
32417 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32418 long long. Fallback to int64_t if host doesn't have long long and
32419 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
32421 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32423 PR tree-optimization/63989
32424 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32425 from 1000 to 10000.
32426 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32427 (get_stridx): If we don't have a record for certain SSA_NAME,
32428 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32429 constant offset, call get_stridx_plus_constant.
32430 (get_stridx_plus_constant): New function.
32431 (zero_length_string): Don't use get_stridx here.
32434 PR middle-end/64388
32435 * dse.c (struct insn_info): Mention frame_read set also
32436 before reload for tail calls on some targets.
32437 (scan_insn): Revert 2014-12-22 change. Set frame_read
32438 also before reload for tail calls if
32439 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
32440 instead of add_non_frame_wild_read for non-const/memset
32441 tail calls after reload.
32443 2015-01-08 Jason Merrill <jason@redhat.com>
32445 * ubsan.c (do_ubsan_in_current_function): New.
32446 (pass_ubsan::gate): Use it.
32447 * ubsan.h: Declare it.
32448 * convert.c (convert_to_integer): Use it.
32450 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32453 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
32454 compare_code when it is unconditionally overwritten afterwards.
32455 Use ix86_reverse_condition instead of reverse_condition. Don't
32456 change code if *reverse_condition* returned UNKNOWN and don't
32457 swap ct/cf and negate diff in that case.
32459 2015-01-08 Mike Stump <mikestump@comcast.net>
32461 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
32462 (pass_tsan_O0::gate): Likewise.
32463 * extend.texi (Function Attributes): Add no_sanitize_thread
32466 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
32468 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
32469 for registering builtins.
32470 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
32471 add -fopenmp to the argv_obstack used when invoking
32472 compile_for_target.
32474 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
32475 add "-m32" or "-m64" to argv_obstack.
32476 (generate_host_descr_file): Likewise, when invoking host_compiler.
32477 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
32480 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32482 * config/sh/sh-mem.cc: Use constant as second operand when emitting
32485 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32488 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
32489 constant load if constant operand fits into I08.
32491 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32494 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
32495 and TREE_THIS_VOLATILE for MEM_REFs.
32496 (build5_stat): Fix up initialization of TREE_READONLY and
32497 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
32499 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
32502 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
32503 of r for the second alternative of the destination operand.
32505 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
32508 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
32510 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
32512 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
32514 ([-fivar-visibility], [-fvisibility]): Likewise.
32516 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
32518 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
32519 the file where @code, @command, etc is more appropriate.
32521 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
32523 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
32524 of -mrecip= documentation.
32526 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32529 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
32530 correct reload handler if -m32 -mpowerpc64 is used.
32532 2015-01-06 Tom de Vries <tom@codesourcery.com>
32534 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
32536 2015-01-08 Christian Bruel <christian.bruel@st.com>
32539 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
32541 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
32543 PR tree-optimization/63259
32544 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
32545 if optab exists for 16bit byteswap.
32547 2015-01-06 Jakub Jelinek <jakub@redhat.com>
32549 * opts.c (common_handle_option): Add support for
32550 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
32551 * doc/invoke.texi: Document -fno-sanitize=all,
32552 -f{,no-}sanitize-recover=all. Document that
32553 -fsanitize=float-cast-overflow is not enabled
32554 by -fsanitize=undefined. Fix up documentation
32555 of -f{,no-}sanitize-recover.
32557 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
32559 * config.gcc: Add Visium support.
32560 * configure.ac: Likewise.
32561 * configure: Regenerate.
32562 * doc/extend.texi (interrupt attribute): Add Visium.
32563 * doc/invoke.texi: Document Visium options.
32564 * doc/install.texi: Document Visium target.
32565 * doc/md.texi: Document Visium constraints.
32566 * common/config/visium: New directory.
32567 * config/visium: Likewise.
32569 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
32571 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
32572 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
32574 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
32576 * combine.c (combine_validate_cost): Do not count the cost of a
32577 split I2 twice. Do not display it twice in the dump, either.
32579 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
32581 Revert parts of r219199.
32582 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
32584 ([-Wtraditional]): Restore markup on <limits.h>.
32586 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
32589 * doc/invoke.texi: Document -Wsuggest-override.
32591 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
32593 PR rtl-optimization/64287
32594 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
32595 (process_options): Disable flag_ipa_ra if profiling.
32597 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
32599 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
32601 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
32603 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
32604 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
32605 put under #if TARGET_LOOPS guard.
32607 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
32609 * config/i386/i386.c (output_387_binary_op): Use std::swap.
32611 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
32613 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
32614 * rtl.h (refers_to_regno_p): Add overload.
32616 * bt-load.c: Likewise.
32617 * combine.c: Likewise.
32618 * df-scan.c: Likewise.
32619 * sched-deps.c: Likewise.
32620 * config/s390/s390.c: Likewise.
32621 * config/m32r/m32r.c: Likewise.
32622 * config/rs6000/spe.md: Likewise.
32623 * config/rs6000/rs6000.c: Likewise.
32624 * config/pa/pa.c: Likewise.
32625 * config/stormy16/stormy16.c: Likewise.
32626 * config/cris/cris.c: Likewise.
32627 * config/arc/arc.md: Likewise.
32628 * config/arc/arc.c: Likewise.
32629 * config/sh/sh.md: Likewise.
32630 * config/sh/sh.c: Likewise.
32631 * config/frv/frv.c: Likewise.
32633 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32636 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
32637 call as cleanup of the whole body.
32638 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
32639 * tsan.c (replace_func_exit): New function.
32640 (instrument_func_exit): Moved earlier.
32641 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
32642 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
32644 (tsan_pass): Don't call instrument_func_exit.
32645 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
32646 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
32650 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
32651 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
32652 it to libubsan handler instead of EXPR. Fold comparisons earlier,
32653 if the result is integer_zerop, return NULL_TREE.
32654 * convert.c (convert_to_integer): Pass expr as ARG.
32656 PR tree-optimization/64465
32657 * tree-inline.c (redirect_all_calls): During inlining
32658 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
32659 changed the stmt to a non-throwing call.
32661 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
32663 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
32664 etc markup throughout the file.
32666 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32668 Enable experimental TSAN support for Ada.
32669 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
32671 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32673 PR tree-optimization/64494
32674 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
32675 clear SSA_NAME_ANTI_RANGE_P flag.
32677 2015-01-05 Marek Polacek <polacek@redhat.com>
32679 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
32681 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32683 Update copyright years.
32685 * gcc.c (process_command): Update copyright notice dates.
32686 * gcov-dump.c: Ditto.
32688 * doc/cpp.texi: Bump @copying's copyright year.
32689 * doc/cppinternals.texi: Ditto.
32690 * doc/gcc.texi: Ditto.
32691 * doc/gccint.texi: Ditto.
32692 * doc/gcov.texi: Ditto.
32693 * doc/install.texi: Ditto.
32694 * doc/invoke.texi: Ditto.
32696 * auto-profile.c, auto-profile.h: Fix up Copyright line.
32698 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
32700 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
32702 ([-fvtable-verify], [-fvtv-debug]): Likewise.
32703 ([-Wabi]): Likewise.
32704 ([-fmessage-length]): Likewise.
32705 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
32706 ([-Wno-discarded-qualifiers]): Likewise.
32707 ([-Wnodiscarded-array-qualifiers]): Likewise.
32708 ([-Wno-virtual-move-assign]): Likewise.
32709 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
32710 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
32711 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
32712 ([-fsanitize-undefined-trap-on-error]): Likewise.
32713 ([-floop-interchange]): Likewise.
32714 ([-ftree-coalesce-inlined-vars]): Likewise.
32715 ([-fvect-cost-model]): Likewise.
32716 ([-flto]): Likewise.
32717 ([--param]): Likewise.
32718 (Spec Files): Likewise.
32719 ([-mstrict-align]): Likewise.
32720 ([-mfix-cortex-a53-835769]): Likewise.
32721 ([-march], [-mtune]): Likewise.
32722 ([-mpic-register]): Likewise.
32723 ([-munaligned-access]): Likewise.
32724 ([-msp8]): Likewise.
32725 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
32726 (AVR Built-in Macros): Likewise.
32727 ([-mpreferred-stack-boundary]): Likewise.
32728 ([-mtune-crtl]): Likewise.
32729 ([-mashf]): Likewise.
32730 ([-mmcu=]): Likewise.
32731 ([-minrt]): Likewise.
32732 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
32733 ([-mupper-regs]): Likewise.
32734 ([-matomic-model]): Likewise.
32735 ([-mdiv]): Likewise.
32736 ([-mzdcbranch]): Likewise.
32737 ([-mdisable-callt]): Likewise.
32738 ([-msoft-float]): Likewise.
32739 ([-m8byte-align]): Likewise.
32740 ([-fstack-reuse]): Likewise.
32742 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32744 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
32745 Fix markup, light copy-editing.
32746 ([-fauto-profile]): Rewrite to fix formatting and content
32749 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32751 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
32752 Copy-edit description.
32753 ([-fisolate-erroneous-paths-attribute]): Likewise.
32754 * common.opt (fisolate-erroneous-paths-dereference):
32755 Copy-edit description.
32756 (fisolate-erroneous-paths-attribute): Likewise.
32758 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32760 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
32763 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32765 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
32766 ([-fvtv-debug]): Likewise.
32767 ([-Wc++-compat]): Likewise.
32768 ([-Wc++11-compat]): Likewise.
32769 ([-Wc++14-compat]): Likewise.
32770 ([-Wno-sized-deallocation]): Likewise.
32771 ([-femit-class-debug-always]): Likewise.
32772 ([-femit-struct-debug-detailed]): Likewise.
32773 ([-fno-keep-inline-dllexport]): Likewise.
32774 ([-fira-algorithm]): Likewise.
32775 ([-fira-region]): Likewise.
32776 ([-flra-remat]): Likewise.
32777 ([-fipa-ra]): Likewise.
32778 ([-fhoist-adjacent-loads]): Likewise.
32779 ([-fisolate-erroneous-paths-dereference]): Likewise.
32780 ([-fisolate-erroneous-paths-attribute]): Likewise.
32781 ([-ftree-switch-conversion]): Likewise.
32782 ([-ftree-tail-merge]): Likewise.
32783 ([-ftree-loop-if-convert]): Likewise.
32784 ([-ftree-loop-if-convert-stores]): Likewise.
32785 ([-ftree-loop-distribution]): Likewise.
32786 ([-ftree-loop-distribute-patterns]): Likewise.
32787 ([-flto-compression-level]): Likewise.
32788 ([-flto-report]): Likewise.
32789 ([-flto-report-wpa]): Likewise.
32790 ([-fuse-linker-plugin]): Likewise.
32791 ([-mfix-cortex-a53-835769]): Likewise.
32792 ([-mno-fix-cortex-a53-835769]): Likewise.
32793 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
32794 explicit listing; add a note to the discussion indicating they
32795 exist. Reorder table to group similar options. Add missing
32796 @opindex entries. Add @need commands throughout the table to
32797 allow it to be split across multiple pages.
32798 ([-m8bit-idiv]): Fix @opindex.
32799 ([-mavx256-split-unaligned-load]): Likewise.
32800 ([-mavx256-split-unaligned-store]): Likewise.
32801 ([-mstack-protector-guard]): Likewise.
32802 ([-mcpu=]): Likewise.
32803 ([-mcpu]): Likewise.
32804 ([-mpointer-size=]): Likewise.
32806 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
32808 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
32809 instead of `m' constraint. Likewise for unnamed movb comparison
32810 patterns using reg_before_reload_operand predicate.
32811 * config/pa/predicates.md (reg_before_reload_operand): Tighten
32812 predicate to reject register index and LO_SUM DLT memory forms
32815 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32817 * doc/invoke.texi (Option Summary): Fix spelling of
32818 -fdevirtualize-at-ltrans.
32819 ([-fdevirtualize]): Fix markup.
32820 ([-fdevirtualize-speculatively]): Fix typo.
32821 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
32822 implementor-speaky.
32823 * common.opt (fdevirtualize-at-ltrans): Likewise.
32824 * ipa-devirt.c: Fix typos in comments throughout the file.
32825 (ipa_devirt): Fix typos in format strings for dump output.
32827 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32829 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
32830 discussion of defaults, light copy-editing.
32832 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
32834 * tsan.c (instrument_expr): corrected previous checkin.
32836 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
32838 Instrument bit field and unaligned accesses for TSAN.
32839 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
32840 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
32841 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
32842 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
32843 unaligned memory regions.
32845 2015-01-01 Anthony Green <green@moxielogic.com>
32847 * config/moxie/predicates.md (moxie_general_movsrc_operand):
32848 Restrict move source register offsets to 16 bits.
32850 Copyright (C) 2015 Free Software Foundation, Inc.
32852 Copying and distribution of this file, with or without modification,
32853 are permitted in any medium without royalty provided the copyright
32854 notice and this notice are preserved.